Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠
JavaScript ai-agentai-agentsai-toolsbrowser-aibrowser-automationbrowser-extensionchrome-aichrome-devtoolschrome-extensionchrome-extensionsfirefox-addonfirefox-addonsfirefox-extensionfirefox-extensionsgemmagemma4minimaxoffline-aioffline-llmqwen
newtab: retry hand-off on panel visible, queue Ask during a run, normalise edited links
Claudea7feae668997
diff --git a/newtab/src/features/navbar/options/AppsOptions.jsx b/newtab/src/features/navbar/options/AppsOptions.jsxindex a53cc6e22..3d7686d8d 100644--- a/newtab/src/features/navbar/options/AppsOptions.jsx+++ b/newtab/src/features/navbar/options/AppsOptions.jsx@@ -12,7 +12,7 @@ import { Button } from 'components/Elements';import { Row, Content, Action } from 'components/Layout/Settings/Item';-import { getTitleFromUrl, isValidUrl } from 'utils/links';+import { getTitleFromUrl, isValidUrl, normalizeLinkUrl } from 'utils/links';import { QuickLink } from 'features/quicklinks/options/QuickLink';function AppsOptions({ appsEnabled }) {@@ -29,11 +29,9 @@ function AppsOptions({ appsEnabled }) {const addLink = async (name, url, icon) => {const data = JSON.parse(localStorage.getItem('applinks'));- if (!url.startsWith('http://') && !url.startsWith('https://')) {- url = 'https://' + url;- }+ url = normalizeLinkUrl(url);- if (url.length <= 0 || isValidUrl(url) === false) {+ if (!url) {return setAppsModalInfo((oldState) => ({...oldState,urlError: t('widgets.quicklinks.url_error'),@@ -79,6 +77,23 @@ function AppsOptions({ appsEnabled }) {const editLink = async (og, name, url, icon) => {const data = JSON.parse(localStorage.getItem('applinks'));const dataobj = data.find((i) => i.key === og.key);+ if (!dataobj) return;++ url = normalizeLinkUrl(url);+ if (!url) {+ return setAppsModalInfo((oldState) => ({+ ...oldState,+ urlError: t('widgets.quicklinks.url_error'),+ }));+ }++ if (icon.length > 0 && isValidUrl(icon) === false) {+ return setAppsModalInfo((oldState) => ({+ ...oldState,+ iconError: t('widgets.quicklinks.icon_error'),+ }));+ }+dataobj.name = name || (await getTitleFromUrl(url));dataobj.url = url;dataobj.icon = icon || '';diff --git a/newtab/src/features/quicklinks/options/QuickLinksOptions.jsx b/newtab/src/features/quicklinks/options/QuickLinksOptions.jsxindex af0c6fb63..0234439bc 100644--- a/newtab/src/features/quicklinks/options/QuickLinksOptions.jsx+++ b/newtab/src/features/quicklinks/options/QuickLinksOptions.jsx@@ -12,7 +12,7 @@ import { SortableList } from './components';import { readQuicklinks } from './utils/quicklinksUtils';import EventBus from 'utils/eventbus';-import { getTitleFromUrl, isValidUrl } from 'utils/links';+import { getTitleFromUrl, isValidUrl, normalizeLinkUrl } from 'utils/links';const QuickLinksOptions = () => {const [items, setItems] = useState(readQuicklinks());@@ -55,11 +55,8 @@ const QuickLinksOptions = () => {const addLink = async (name, url, icon) => {const data = readQuicklinks();- if (!url.startsWith('http://') && !url.startsWith('https://')) {- url = 'https://' + url;- }-- if (url.length <= 0 || isValidUrl(url) === false) {+ url = normalizeLinkUrl(url);+ if (!url) {setUrlError(variables.getMessage('widgets.quicklinks.url_error'));return;}@@ -102,6 +99,17 @@ const QuickLinksOptions = () => {const dataobj = data.find((i) => i.key === og.key);if (!dataobj) return;+ url = normalizeLinkUrl(url);+ if (!url) {+ setUrlError(variables.getMessage('widgets.quicklinks.url_error'));+ return;+ }++ if (icon.length > 0 && isValidUrl(icon) === false) {+ setIconError(variables.getMessage('widgets.quicklinks.url_error'));+ return;+ }+dataobj.name = name || (await getTitleFromUrl(url));dataobj.url = url;dataobj.icon = icon || '';diff --git a/newtab/src/utils/links/index.js b/newtab/src/utils/links/index.jsindex 281f13cc2..6766285ef 100644--- a/newtab/src/utils/links/index.js+++ b/newtab/src/utils/links/index.js@@ -1,4 +1,5 @@import { getTitleFromUrl } from './getTitleFromUrl';import { isValidUrl } from './isValidUrl';+import { normalizeLinkUrl } from './normalizeLinkUrl';-export { getTitleFromUrl, isValidUrl };+export { getTitleFromUrl, isValidUrl, normalizeLinkUrl };diff --git a/newtab/src/utils/links/normalizeLinkUrl.js b/newtab/src/utils/links/normalizeLinkUrl.jsnew file mode 100644index 000000000..68dc5a7d2--- /dev/null+++ b/newtab/src/utils/links/normalizeLinkUrl.js@@ -0,0 +1,20 @@+import { isValidUrl } from './isValidUrl.js';++/**+ * The one place a typed link is turned into something safe to save as an href.+ * A bare host gets https://; anything that is not a valid http(s) URL after that+ * (javascript:, data:, junk) is rejected with null. Used for adding AND editing,+ * so an edit cannot save what adding would have refused.+ */+export function normalizeLinkUrl(raw) {+ let url = String(raw ?? '').trim();+ if (!url) return null;+ const scheme = /^https?:\/\//i.exec(url);+ url = scheme ? scheme[0].toLowerCase() + url.slice(scheme[0].length) : `https://${url}`;+ try {+ if (!/^https?:$/.test(new URL(url).protocol)) return null;+ } catch {+ return null;+ }+ return isValidUrl(url) ? url : null;+}diff --git a/src/chrome/newtab/assets/Settings-7szeChri.js b/src/chrome/newtab/assets/Settings-7szeChri.jsdeleted file mode 100644index 6b0b1a58d..000000000--- a/src/chrome/newtab/assets/Settings-7szeChri.js+++ /dev/null@@ -1,53 +0,0 @@-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-C08TLPUo.js","./index-DDjvabsM.js","./index-ByIwaINw.css"])))=>i.map(i=>d[i]);-import{s as Ki,v as f,y as RA,r as b,j as s,B as pA,M as Ti,a as Di,b as Oi,E as vA,S as at,R as m,c as is,u as pt,g as Ri,D as Ni,d as Ar,e as fe,f as Xn,T as Jn,q as os,h as _i,i as ls,k as Bt,l as cn,m as Re,n as cs,C as mA,o as KA,p as Gi,t as ji,w as Vi,x as Pi,z as Hr,A as gs,F as er,G as tr,H as gn,I as us,J as Bs,K as ds,L as Xi,N as fs,O as rr,P as hs,Q as ws,U as ps,V as Cs,W as Qs,X as ms,Y as vs,Z as Ji,_ as Us,$ as Wn,a0 as Wi,a1 as Fs,a2 as Ut,a3 as Yi,a4 as un,a5 as Zi,a6 as Sr,a7 as xe,a8 as zi,a9 as Ft,aa as Yn,ab as qi,ac as $i,ad as Ao,ae as eo,af as to,ag as ro,ah as bs,ai as no,aj as ao,ak as so,al as Zn,am as io,an as oo,ao as lo,ap as co,aq as go,ar as uo,as as Bo,at as fo,au as ho,av as wo,aw as po,ax as Co,ay as Dn}from"./index-DDjvabsM.js";function Qo(){const e={};Object.keys(localStorage).forEach(n=>{e[n]=localStorage.getItem(n)});const A=new Date,t=`mue_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`;Ki(e,t),f.stats.postEvent("tab","Settings exported")}function mo(e,A=!1){const r=JSON.parse(e);Object.keys(r).forEach(t=>{localStorage.setItem(t,r[t])}),RA(f.getMessage("toasts.imported")),A||f.stats.postEvent("tab","Settings imported")}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 i=localStorage.getItem(e.setting)==="true";if(localStorage.setItem(e.setting,!i),r(!i),f.stats.postEvent("setting",`${e.name} ${A===!0?"enabled":"disabled"}`),vA.emit("toggle",e.setting),e.element&&!document.querySelector(e.element))return document.querySelector(".reminder-info").style.display="flex",localStorage.setItem("showReminder",!0);vA.emit("refresh",e.category)},n=()=>s.jsx(pA,{type:"settings",onClick:t,icon:A?s.jsx(Ti,{}):s.jsx(Di,{}),label:A?"Hide":"Show"}),a=()=>s.jsx(pA,{type:"settings",onClick:()=>window.open(f.constants.BUG_REPORT+e.title.split(" ").join("+"),"_blank"),icon:s.jsx(Oi,{}),label:f.getMessage("modals.main.settings.sections.header.report_issue")});return s.jsxs("div",{className:"modalHeader",children:[s.jsx("span",{className:"mainTitle",children:e.secondaryTitle||e.title}),s.jsxs("div",{className:"headerActions",children:[e.visibilityToggle&&s.jsx(n,{}),e.report!==!1&&s.jsx(a,{}),e.children]})]})}function rA(e){const A=`${e.final?"settingsRow settingsNoBorder":"settingsRow"} ${e.inactive?"preferencesInactive":""}`;return s.jsx("div",{className:A,children:e.children})}function nA(e){return s.jsxs("div",{className:"content",children:[s.jsx("span",{className:"title",children:e.title}),s.jsx("span",{className:"subtitle",children:e.subtitle})]})}function lA(e){return s.jsx("div",{className:"action",children:e.children})}const vo=[{value:10,label:"0.1x"},{value:100,label:"1x"},{value:200,label:"2x"},{value:400,label:"4x"}],Uo=[{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"}],Fo=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"},{value:100,label:"100%"}],st={zoom:vo,toast:Uo,background:Fo},Ct=({children:e,...A})=>{const[r,t]=b.useState(localStorage.getItem(A.setting)==="true");return vA.on("toggle",n=>{n===A.setting&&t(!r)}),s.jsxs("div",{className:r?"preferences":"preferencesInactive",children:[A.zoomSetting&&s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.widget_zoom"),subtitle:f.getMessage("modals.main.settings.sections.header.size")}),s.jsx(lA,{children:s.jsx(at,{name:A.zoomSetting,min:"10",max:"400",default:"100",display:"%",marks:st.zoom,category:A.zoomCategory||A.category})})]}),e]})};function On({title:e,subtitle:A,icon:r,onClick:t,children:n}){return s.jsxs("div",{className:"moreSettings",onClick:t,children:[s.jsxs("div",{className:"left",children:[r,s.jsxs("div",{className:"content",children:[s.jsx("span",{className:"title",children:e}),s.jsx("span",{className:"subtitle",children:A})]})]}),s.jsx("div",{className:"action",children:m.Children.count(n)===0?s.jsx(is,{}):n})]})}function bo({label:e,currentTab:A,onClick:r,navbarTab:t}){const n=pt(),[a,i]=b.useState(!0);b.useEffect(()=>{i(localStorage.getItem("experimental")!=="false")},[]);const o=Ri(e,{getMessage:n}),l=Ni.some(p=>n(p)===e),d=`${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?s.jsx("hr",{}):s.jsxs(s.Fragment,{children:[s.jsxs("button",{className:d,onClick:()=>r(e),children:[o&&s.jsx(o,{})," ",s.jsx("span",{children:e})]}),l&&s.jsx("hr",{})]})}const Eo=b.memo(bo),yo=({isVisible:e,onHide:A})=>e?s.jsxs("div",{className:"reminder-info",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.reminder.title")}),s.jsx("span",{className:"closeModal",onClick:A,children:s.jsx(Ar,{})})]}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.reminder.message")}),s.jsxs("button",{onClick:()=>window.location.reload(),children:[s.jsx(fe,{}),f.getMessage("modals.main.error_boundary.refresh")]})]}):null;class xo 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(f.constants.BUG_REPORT,"_blank","noopener,noreferrer"),this.setState({showReport:!1})}render(){return this.state.error?s.jsx("div",{className:"emptyItems",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Xn,{}),s.jsx("span",{className:"title",children:f.getMessage("modals.main.error_boundary.title")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.error_boundary.message")}),s.jsxs("div",{className:"buttonsRow",children:[this.state.showReport?s.jsx(pA,{type:"settings",icon:s.jsx(Xn,{}),label:f.getMessage("modals.main.error_boundary.report_error"),onClick:()=>this.reportError()}):s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.error_boundary.sent")}),s.jsx(pA,{type:"settings",icon:s.jsx(fe,{}),label:f.getMessage("modals.main.error_boundary.refresh"),onClick:()=>window.location.reload()})]})]})}):this.props.children}}const Io=({children:e,navbar:A=!1,currentTab:r,onSectionChange:t,resetToFirst:n,deepLinkData:a,navigationTrigger:i,sections:o})=>{const l=pt(),g=(()=>{if(a?.section&&o){const y=o.find(w=>w.name===a.section);if(y)return{label:l(y.label),name:y.name}}return{label:e[0]?.props.label,name:e[0]?.props.name}})(),[d,u]=b.useState(g.label),[p,v]=b.useState(g.name),[Q,x]=b.useState(localStorage.getItem("showReminder")==="true"),U=b.useRef(null),F=(y,w)=>{w!==p&&f.stats.postEvent("tab",`Opened ${w}`),u(y),v(w),U.current&&(U.current.scrollTop=0),t&&t(y,w)};b.useEffect(()=>{t&&d&&t(d,p)},[]),b.useEffect(()=>{if(o&&p){const y=o.find(w=>w.name===p);if(y){const w=l(y.label);u(w)}}},[l,o,p]),b.useEffect(()=>{if(i?.type==="settings-section"&&o){const y=o.find(w=>w.name===i.data);if(y){const w=l(y.label);u(w),v(y.name),U.current&&(U.current.scrollTop=0)}}},[i,o,l]),b.useEffect(()=>{n&&(u(e[0]?.props.label),v(e[0]?.props.name),U.current&&(U.current.scrollTop=0),t&&t(e[0]?.props.label,e[0]?.props.name))},[n]);const L=()=>{localStorage.setItem("showReminder","false"),x(!1)},k=r===Jn.SETTINGS||r===Jn.DISCOVER;return s.jsxs("div",{style:{display:"flex",width:"100%",height:"100%",overflow:"hidden"},children:[k?s.jsxs("div",{className:"modalSidebar",children:[e.map((y,w)=>s.jsx(Eo,{currentTab:d,label:y.props.label,onClick:I=>F(I,y.props.name),navbarTab:A},w)),s.jsx(yo,{isVisible:Q,onHide:L})]}):null,s.jsx("div",{className:"modalTabContent",ref:U,children:e.map((y,w)=>y.props.label!==d?null:s.jsx(xo,{children:y.props.children},`error-boundary-${w}`))})]})};async function nr(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 ar(e){return/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(e)}const Ho=({item:e,deleteLink:A,startEditLink:r,draggable:t=!1,onDragStart:n,onDragOver:a,onDrop:i,onDragEnd:o,isDragOver:l=!1,isDragging:c=!1})=>{let g,d=null;if(localStorage.getItem("quicklinksnewtab")==="true"&&(g="_blank",d="noopener noreferrer"),localStorage.getItem("quicklinksText")==="true")return s.jsx("a",{className:"quicklinkstext",onContextMenu:Q=>A(e.key,Q),href:e.url,target:g,rel:d,draggable:!1,children:e.name});const p=e.icon||os(e.url,e.name),v=`messageMap ${c?"dragging":""} ${l?"drag-over":""}`;return s.jsxs("div",{className:v,draggable:t,onDragStart:Q=>n&&n(Q,e.key),onDragOver:Q=>a&&a(Q,e.key),onDrop:Q=>i&&i(Q,e.key),onDragEnd:Q=>o&&o(Q),children:[s.jsx("div",{className:"dragHandle","aria-hidden":!0,children:s.jsx(_i,{})}),s.jsx("div",{className:"icon",children:s.jsx("img",{src:p,alt:e.name,draggable:!1,style:{height:"30px",width:"30px"}})}),s.jsxs("div",{className:"messageText",children:[s.jsx("div",{className:"title",children:e.name}),s.jsx("div",{className:"subtitle",children:s.jsx("a",{className:"quicklinknostyle",target:"_blank",rel:"noopener noreferrer",href:e.url,children:e.url})})]}),s.jsx("div",{children:s.jsxs("div",{className:"messageAction",children:[s.jsx(pA,{type:"settings",onClick:()=>r(e),icon:s.jsx(ls,{}),label:f.getMessage("modals.main.settings.sections.quicklinks.edit")}),s.jsx(pA,{type:"settings",onClick:Q=>A(e.key,Q),icon:s.jsx(Bt,{}),label:f.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]})};function So({appsEnabled:e}){const A=pt(),[r,t]=b.useState({newLink:!1,edit:!1,items:JSON.parse(localStorage.getItem("applinks")),urlError:"",iconError:"",editData:null}),n=async(l,c,g)=>{const d=JSON.parse(localStorage.getItem("applinks"));if(!c.startsWith("http://")&&!c.startsWith("https://")&&(c="https://"+c),c.length<=0||ar(c)===!1)return t(u=>({...u,urlError:A("widgets.quicklinks.url_error")}));if(g.length>0&&ar(g)===!1)return t(u=>({...u,iconError:A("widgets.quicklinks.icon_error")}));d.push({name:l||await nr(c),url:c,icon:g||"",key:Math.random().toString(36).substring(7)+1}),localStorage.setItem("applinks",JSON.stringify(d)),t({newLink:!1,edit:!1,items:d,urlError:"",iconError:""}),vA.emit("refresh","navbar"),f.stats.postEvent("feature","App link add")},a=l=>{t(c=>({...c,edit:!0,editData:l}))},i=async(l,c,g,d)=>{const u=JSON.parse(localStorage.getItem("applinks")),p=u.find(v=>v.key===l.key);p.name=c||await nr(g),p.url=g,p.icon=d||"",localStorage.setItem("applinks",JSON.stringify(u)),t(v=>({...v,items:u,edit:!1,newLink:!1})),vA.emit("refresh","navbar")},o=(l,c)=>{c.preventDefault();const g=JSON.parse(localStorage.getItem("applinks")).filter(d=>d.key!==l);localStorage.setItem("applinks",JSON.stringify(g)),t(d=>({...d,items:g})),vA.emit("refresh","navbar"),f.stats.postEvent("feature","App link delete")};return s.jsxs(s.Fragment,{children:[s.jsxs(rA,{final:!0,inactive:!e,children:[s.jsx(nA,{title:A("widgets.navbar.apps.title"),subtitle:A("modals.main.settings.sections.appearance.navbar.apps_subtitle")}),s.jsx(lA,{children:s.jsx(pA,{type:"settings",onClick:()=>t(l=>({...l,newLink:!0})),icon:s.jsx(cn,{}),label:A("modals.main.settings.sections.quicklinks.add_link")})})]}),s.jsx("div",{className:"messagesContainer",children:r.items.map((l,c)=>s.jsx(Ho,{item:l,startEditLink:()=>a(l),deleteLink:(g,d)=>o(g,d)},c))}),s.jsx(Re,{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:s.jsx(cs,{urlError:r.urlError,addLink:(l,c,g)=>n(l,c,g),editLink:(l,c,g,d)=>i(l,c,g,d),edit:r.edit,editData:r.editData,closeModal:()=>t(l=>({...l,newLink:!1,edit:!1}))})})]})}function Lo(){const e=pt(),[A,r]=b.useState(localStorage.getItem("refresh")==="true"),[t,n]=b.useState(localStorage.getItem("appsEnabled")==="true"||!1),a="modals.main.settings.sections.appearance.navbar",i=()=>s.jsxs(rA,{final:!1,children:[s.jsx(nA,{title:e("modals.main.settings.additional_settings"),subtitle:e("modals.main.settings.sections.appearance.navbar.additional")}),s.jsx(lA,{children:s.jsx(mA,{name:"navbarHover",text:e(`${a}.hover`),category:"navbar"})})]}),o=()=>{const c=({icon:d,messageKey:u,settingName:p})=>{const[v,Q]=b.useState(localStorage.getItem(p)!=="true"),x=()=>{localStorage.setItem(p,v),p==="refresh"?r(!A):p==="appsEnabled"&&n(!t),Q(!v),f.stats.postEvent("setting",`${p} ${v?"disabled":"enabled"}`),vA.emit("refresh","navbar")};return s.jsxs("button",{onClick:x,className:`navbarButtonOption ${v===!0?"disabled":""}`,children:[d,s.jsx("span",{className:"subtitle",children:e(u)})]})},g=[{icon:s.jsx(Gi,{}),settingName:"view",messageKey:"modals.main.settings.sections.background.buttons.view"},{icon:s.jsx(ji,{}),settingName:"notesEnabled",messageKey:`${a}.notes`},{icon:s.jsx(Vi,{}),settingName:"todoEnabled",messageKey:"widgets.navbar.todo.title"},{icon:s.jsx(fe,{}),settingName:"refresh",messageKey:`${a}.refresh`},{icon:s.jsx(Pi,{}),settingName:"appsEnabled",messageKey:"widgets.navbar.apps.title"}];return s.jsxs(rA,{children:[s.jsx(nA,{title:e("modals.main.settings.sections.appearance.navbar.widgets")}),s.jsx(lA,{children:s.jsx("div",{className:"navbarButtonOptions",children:g.map((d,u)=>s.jsx(c,{...d},u))})})]})},l=()=>s.jsxs(rA,{final:!1,inactive:!A,children:[s.jsx(nA,{title:e(`${a}.refresh`),subtitle:e("modals.main.settings.sections.appearance.navbar.refresh_subtitle")}),s.jsx(lA,{children:s.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 s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:e(`${a}.title`),setting:"navbar",category:"widgets",zoomSetting:"zoomNavbar",zoomCategory:"navbar"}),s.jsx(i,{}),s.jsx(o,{}),s.jsx(l,{}),s.jsx(So,{appsEnabled:t})]})}const ko=b.memo(Lo),zn=[{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}],Mo=({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(JSON.parse(localStorage.getItem("customEvents"))||[]),[a,i]=b.useState(()=>{const w=localStorage.getItem("birthday");return w?new Date(w):new Date}),[o,l]=b.useState(localStorage.getItem("birthdayenabled")==="true"?"preferences":"preferencesInactive"),[c,g]=b.useState(localStorage.getItem("events")==="true"?"preferences":"preferencesInactive"),d=w=>{const I=w.target.value?new Date(w.target.value):new Date;localStorage.setItem("birthday",I),i(I)},u="modals.main.settings.sections.greeting",p=()=>{const w=JSON.parse(localStorage.getItem("customEvents"))||[],I={id:"widgets.greeting.halloween",name:"",month:1,date:1},K=[...w,I];w.push(I),localStorage.setItem("customEvents",JSON.stringify(w)),n(K)},v=w=>{const I=t.filter((K,M)=>M!==w);localStorage.setItem("customEvents",JSON.stringify(I)),n(I)},Q=()=>{localStorage.setItem("customEvents",JSON.stringify(zn)),n(zn),RA(f.getMessage("toasts.reset"))},x=(w,I)=>{n(M=>{const O=[...M];return O[w]=I,O});const K=JSON.parse(localStorage.getItem("customEvents")||"[]");K[w]=I,localStorage.setItem("customEvents",JSON.stringify(K))},U=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.additional_settings"),subtitle:f.getMessage(`${u}.additional`)}),s.jsxs(lA,{children:[s.jsx(mA,{name:"defaultGreetingMessage",text:f.getMessage(`${u}.default`),category:"greeting"}),s.jsx(tr,{title:f.getMessage(`${u}.name`),name:"greetingName",category:"greeting"})]})]}),F=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage(`${u}.birthday`),subtitle:f.getMessage("modals.main.settings.sections.greeting.birthday_subtitle")}),s.jsxs(lA,{children:[s.jsx(gs,{name:"birthdayenabled",text:f.getMessage("modals.main.settings.enabled"),category:"greeting",onChange:w=>{l(w?"preferences":"preferencesInactive")}}),s.jsxs("div",{className:o,children:[s.jsx(mA,{name:"birthdayage",text:f.getMessage(`${u}.birthday_age`),category:"greeting"}),s.jsx("p",{style:{marginRight:"auto"},children:f.getMessage(`${u}.birthday_date`)}),s.jsx("input",{type:"date",onChange:d,value:a.toISOString().substring(0,10),required:!0})]})]})]}),L=()=>s.jsxs("div",{className:c,children:[s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${u}.custom`)}),s.jsx(lA,{children:s.jsxs("div",{className:"headerActions",children:[s.jsx(pA,{type:"settings",onClick:Q,icon:s.jsx(fe,{}),label:f.getMessage("modals.main.settings.buttons.reset")}),s.jsx(pA,{type:"settings",onClick:p,icon:s.jsx(er,{}),label:f.getMessage("widgets.quicklinks.add")})]})})]}),s.jsx("div",{className:"messagesContainer",children:t.map((w,I)=>s.jsxs("div",{className:"messageMap",children:[s.jsxs("div",{className:"flexGrow",children:[s.jsx("div",{className:"icon",children:s.jsx(Hr,{})}),s.jsxs("div",{className:"messageText",children:[s.jsx("span",{className:"subtitle",children:f.getMessage(`${u}.event_name`)}),s.jsx("input",{type:"text",className:"text-field-input",value:w.name,placeholder:f.getMessage(`${u}.event_name`),onChange:K=>{const M={...w,name:K.target.value};x(I,M)}})]})]}),s.jsx("div",{children:s.jsxs("div",{className:"messageAction",children:[s.jsxs("div",{className:"eventDateSelection",children:[s.jsxs("label",{className:"subtitle",children:[f.getMessage(`${u}.day`),":"]}),s.jsx("input",{id:"day",type:"number",min:"1",max:"31",value:w.date,onChange:K=>{const M=parseInt(K.target.value,10);if(M>=1&&M<=31){const O={...w,date:M};x(I,O)}}}),s.jsx("hr",{}),s.jsxs("label",{className:"subtitle",children:[f.getMessage(`${u}.month`),":"]}),s.jsx("input",{id:"month",type:"number",min:"1",max:"12",value:w.month,onChange:K=>{const M=parseInt(K.target.value,10);if(M>=1&&M<=12){const O={...w,month:M};x(I,O)}}})]}),s.jsx(pA,{type:"settings",onClick:()=>v(I),icon:s.jsx(Bt,{}),label:f.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]},I))}),t.length===0&&s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Hr,{}),s.jsx("span",{className:"title",children:f.getMessage(`${u}.no_events`)}),s.jsx("span",{className:"subtitle",children:f.getMessage(`${u}.no_events_description`)}),s.jsx(pA,{type:"settings",onClick:p,icon:s.jsx(er,{}),label:f.getMessage(`${u}.add_event`)})]})})]}),k=e==="events";let y;return k?y=s.jsx(TA,{title:f.getMessage(`${u}.title`),secondaryTitle:f.getMessage(`${u}.events.title`),goBack:()=>A(null,r),report:!1}):y=s.jsx(TA,{title:f.getMessage(`${u}.title`),setting:"greeting",category:"greeting",element:".greeting",zoomSetting:"zoomGreeting",visibilityToggle:!0}),s.jsxs(s.Fragment,{children:[y,k?s.jsxs(s.Fragment,{children:[s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage(`${u}.events`),subtitle:f.getMessage(`${u}.enable_events`)}),s.jsx(lA,{children:s.jsx(mA,{name:"events",text:f.getMessage(`${u}.events`),category:"greeting",onChange:w=>{g(w?"preferences":"preferencesInactive")}})})]}),F(),L()]}):s.jsxs(Ct,{setting:"greeting",zoomSetting:"zoomGreeting",category:"greeting",visibilityToggle:!0,children:[s.jsx(U,{}),s.jsx(On,{title:f.getMessage(`${u}.events`),subtitle:f.getMessage(`${u}.events_description`),onClick:()=>A("events",r),icon:s.jsx(Hr,{})})]})]})},Ko=()=>{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"),[i,o]=b.useState(localStorage.getItem("secondColour")||"#ffffff"),l="modals.main.settings.sections.time",c=(Q,x)=>{const U=x.target.value;Q==="hourColour"?t(U):Q==="minuteColour"?a(U):Q==="secondColour"&&o(U),localStorage.setItem(Q,U)},g=()=>s.jsxs(rA,{final:e==="percentageComplete",children:[s.jsx(nA,{title:f.getMessage(`${l}.type`),subtitle:f.getMessage(`${l}.type_subtitle`)}),s.jsx(lA,{children:s.jsx(KA,{name:"timeType",onChange:Q=>A(Q),category:"clock",items:[{value:"digital",text:f.getMessage(`${l}.digital.title`)},{value:"analogue",text:f.getMessage(`${l}.analogue.title`)},{value:"percentageComplete",text:f.getMessage(`${l}.percentage_complete`)},{value:"verticalClock",text:f.getMessage(`${l}.vertical_clock.title`)}]})})]}),d=s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${l}.digital.title`),subtitle:f.getMessage(`${l}.digital.subtitle`)}),s.jsxs(lA,{children:[s.jsx(gn,{name:"timeformat",options:[{name:f.getMessage(`${l}.digital.twentyfourhour`),value:"twentyfourhour"},{name:f.getMessage(`${l}.digital.twelvehour`),value:"twelvehour"}],smallTitle:!0,category:"clock"}),s.jsx(mA,{name:"seconds",text:f.getMessage(`${l}.digital.seconds`),category:"clock"}),s.jsx(mA,{name:"zero",text:f.getMessage(`${l}.digital.zero`),category:"clock"})]})]}),u=s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${l}.analogue.title`),subtitle:f.getMessage(`${l}.analogue.subtitle`)}),s.jsxs(lA,{children:[s.jsx(mA,{name:"secondHand",text:f.getMessage(`${l}.analogue.second_hand`),category:"clock"}),s.jsx(mA,{name:"minuteHand",text:f.getMessage(`${l}.analogue.minute_hand`),category:"clock"}),s.jsx(mA,{name:"hourHand",text:f.getMessage(`${l}.analogue.hour_hand`),category:"clock"}),s.jsx(mA,{name:"hourMarks",text:f.getMessage(`${l}.analogue.hour_marks`),category:"clock"}),s.jsx(mA,{name:"minuteMarks",text:f.getMessage(`${l}.analogue.minute_marks`),category:"clock"}),s.jsx(mA,{name:"roundClock",text:f.getMessage(`${l}.analogue.round_clock`),category:"clock"})]})]}),p=s.jsxs(s.Fragment,{children:[s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.vertical_clock.change_hour_colour")}),s.jsxs(lA,{children:[s.jsxs("div",{className:"colourInput",children:[s.jsx("input",{type:"color",name:"hourColour",className:"minuteColour",onChange:Q=>c("hourColour",Q),value:r}),s.jsx("label",{htmlFor:"hourColour",className:"customBackgroundHex",children:r})]}),s.jsxs("span",{className:"link",onClick:()=>localStorage.setItem("hourColour","#ffffff"),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})]})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.vertical_clock.change_minute_colour")}),s.jsxs(lA,{children:[s.jsxs("div",{className:"colourInput",children:[s.jsx("input",{type:"color",name:"minuteColour",className:"minuteColour",onChange:Q=>c("minuteColour",Q),value:n}),s.jsx("label",{htmlFor:"minuteColour",className:"customBackgroundHex",children:n})]}),s.jsxs("span",{className:"link",onClick:()=>localStorage.setItem("minuteColour","#ffffff"),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})]})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.vertical_clock.change_second_colour")}),s.jsxs(lA,{children:[s.jsxs("div",{className:"colourInput",children:[s.jsx("input",{type:"color",name:"secondColour",className:"secondColour",onChange:Q=>c("secondColour",Q),value:i}),s.jsx("label",{htmlFor:"secondColour",className:"customBackgroundHex",children:i})]}),s.jsxs("span",{className:"link",onClick:()=>localStorage.setItem("secondColour","#ffffff"),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})]})]}),d]}),v=()=>{switch(e){case"digital":return d;case"analogue":return u;case"verticalClock":return p;default:return null}};return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage(`${l}.title`),setting:"time",category:"clock",element:".clock-container",zoomSetting:"zoomClock",visibilityToggle:!0}),s.jsxs(Ct,{setting:"time",zoomSetting:"zoomClock",category:"clock",visibilityToggle:!0,children:[s.jsx(g,{}),v()]})]})};function To(){const[e,A]=b.useState(localStorage.getItem("dateType")||"long"),r=["DMY","MDY","YMD"],t=s.jsxs(s.Fragment,{children:[s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.date.long_format"),name:"longFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),s.jsx(mA,{name:"dayofweek",text:f.getMessage("modals.main.settings.sections.date.day_of_week"),category:"date"}),s.jsx(mA,{name:"datenth",text:f.getMessage("modals.main.settings.sections.date.datenth"),category:"date"})]}),n=s.jsxs(s.Fragment,{children:[s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.date.short_format"),name:"dateFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.date.short_separator.title"),name:"shortFormat",category:"date",items:[{value:"dash",text:f.getMessage("modals.main.settings.sections.date.short_separator.dash")},{value:"dots",text:f.getMessage("modals.main.settings.sections.date.short_separator.dots")},{value:"gaps",text:f.getMessage("modals.main.settings.sections.date.short_separator.gaps")},{value:"slashes",text:f.getMessage("modals.main.settings.sections.date.short_separator.slashes")}]})]});return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.date.title"),setting:"date",category:"date",element:".date",zoomSetting:"zoomDate",visibilityToggle:!0}),s.jsxs(Ct,{setting:"date",visibilityToggle:!0,category:"date",zoomSetting:"zoomDate",children:[s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.type"),subtitle:f.getMessage("modals.main.settings.sections.date.type.subtitle")}),s.jsx(lA,{children:s.jsx(KA,{name:"dateType",onChange:a=>{A(a),localStorage.setItem("dateType",a)},category:"date",items:[{value:"long",text:f.getMessage("modals.main.settings.sections.date.type.long")},{value:"short",text:f.getMessage("modals.main.settings.sections.date.type.short")}]})})]}),s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:e==="long"?f.getMessage("modals.main.settings.sections.date.type.long"):f.getMessage("modals.main.settings.sections.date.type.short"),subtitle:f.getMessage("modals.main.settings.sections.date.type_settings")}),s.jsxs(lA,{children:[e==="long"?t:n,s.jsx(mA,{name:"weeknumber",text:f.getMessage("modals.main.settings.sections.date.week_number"),category:"date"}),s.jsx(mA,{name:"datezero",text:f.getMessage("modals.main.settings.sections.time.digital.zero"),category:"date"})]})]})]})]})}const Do=()=>s.jsx("div",{className:"quicklink-drag-handle","aria-hidden":"true",children:s.jsx(us,{})}),Oo=({value:e,enabled:A,startEditLink:r,deleteLink:t})=>{const{attributes:n,listeners:a,setNodeRef:i,transform:o,transition:l,isDragging:c}=Bs({id:e.key,disabled:!A}),g={transform:ds.Transform.toString(o),transition:l,opacity:c?.5:1},d=u=>u.icon||os(u.url,u.name);return s.jsxs("div",{ref:i,style:g,...n,...a,className:`quicklink-item ${A?"":"disabled"}`,role:"listitem",children:[s.jsx(Do,{}),s.jsx("div",{className:"quicklink-icon",children:s.jsx("img",{src:d(e),alt:e.name,draggable:!1})}),s.jsxs("div",{className:"quicklink-content",children:[s.jsx("div",{className:"quicklink-name",children:e.name}),s.jsx("div",{className:"quicklink-url",children:e.url})]}),s.jsxs("div",{className:"quicklink-actions",children:[s.jsxs("button",{className:"quicklink-action-btn",onClick:u=>{A&&(u.stopPropagation(),r(e))},title:"Edit",disabled:!A,"aria-disabled":!A,children:[s.jsx(ls,{}),s.jsx("span",{children:"Edit"})]}),s.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:[s.jsx(Xi,{}),s.jsx("span",{children:"Remove"})]})]})]})},Ro=({items:e,enabled:A,onDragEnd:r,startEditLink:t,deleteLink:n})=>{const a=fs(rr(ps,{activationConstraint:{distance:6}}),rr(ws,{coordinateGetter:hs}));return s.jsx(Cs,{sensors:a,collisionDetection:Qs,onDragEnd:r,children:s.jsx(ms,{items:e.map(i=>i.key),strategy:vs,children:s.jsx("div",{className:"quicklinks-list",role:"list",children:e.map(i=>s.jsx(Oo,{value:i,enabled:A,startEditLink:t,deleteLink:n},i.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),[]}},No=()=>{const[e,A]=b.useState(Xe()),[r,t]=b.useState(!1),[n,a]=b.useState(""),[i,o]=b.useState(""),[l,c]=b.useState(!1),[g,d]=b.useState(""),[u,p]=b.useState(localStorage.getItem("quicklinksenabled")!=="false"),v=b.useRef(),Q=b.useRef(!1),x=O=>{if(!v||!v.current)return;const T=v.current;T.classList.toggle("disabled",!O),O?T.removeAttribute("aria-hidden"):T.setAttribute("aria-hidden","true")},U=(O,T)=>{T.preventDefault();const R=Xe().filter(W=>W.key!==O);Q.current=!0,localStorage.setItem("quicklinks",JSON.stringify(R)),A(R),f.stats.postEvent("feature","Quicklink delete"),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0)},F=async(O,T,X)=>{const R=Xe();if(!T.startsWith("http://")&&!T.startsWith("https://")&&(T="https://"+T),T.length<=0||ar(T)===!1){a(f.getMessage("widgets.quicklinks.url_error"));return}if(X.length>0&&ar(X)===!1){o(f.getMessage("widgets.quicklinks.url_error"));return}const W={name:O||await nr(T),url:T,icon:X||"",key:Date.now().toString()+Math.random().toString(36).substring(2)};R.push(W),Q.current=!0,localStorage.setItem("quicklinks",JSON.stringify(R)),A(R),t(!1),a(""),o(""),f.stats.postEvent("feature","Quicklink add"),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0)},L=O=>{c(!0),d(O),t(!0)},k=async(O,T,X,R)=>{const W=Xe(),$=W.find(eA=>eA.key===O.key);$&&($.name=T||await nr(X),$.url=X,$.icon=R||"",Q.current=!0,localStorage.setItem("quicklinks",JSON.stringify(W)),A(W),t(!1),c(!1),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0))},y=O=>{const{active:T,over:X}=O;if(!X||!u||T.id===X.id)return;const R=e.findIndex(eA=>eA.key===T.id),W=e.findIndex(eA=>eA.key===X.id);if(R===-1||W===-1)return;const $=Us(e,R,W);Q.current=!0,A($),localStorage.setItem("quicklinks",JSON.stringify($)),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0)};b.useEffect(()=>{x(u)},[u]),b.useEffect(()=>{x(u);const O=T=>{if(T!=="quicklinks"||Q.current)return;const X=localStorage.getItem("quicklinksenabled")!=="false",R=Xe(),W=e||[],$=W.length===R.length&&W.every(eA=>R.some(AA=>AA.key===eA.key));(X!==u||!$)&&(x(X),A(R),p(X))};return vA.on("refresh",O),()=>{vA.off("refresh",O)}},[u,e]);const w="modals.main.settings.sections.quicklinks",I=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.additional_settings"),subtitle:f.getMessage(`${w}.additional`)}),s.jsxs(lA,{children:[s.jsx(mA,{name:"quicklinksnewtab",text:f.getMessage(`${w}.open_new`),category:"quicklinks"}),s.jsx(mA,{name:"quicklinkstooltip",text:f.getMessage(`${w}.tooltip`),category:"quicklinks"})]})]}),K=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage(`${w}.styling`),subtitle:f.getMessage("modals.main.settings.sections.quicklinks.styling_description")}),s.jsx(lA,{children:s.jsx(KA,{label:f.getMessage(`${w}.style`),name:"quickLinksStyle",category:"quicklinks",items:[{value:"icon",text:f.getMessage(`${w}.options.icon`)},{value:"text_only",text:f.getMessage(`${w}.options.text_only`)},{value:"metro",text:f.getMessage(`${w}.options.metro`)}]})})]}),M=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${w}.title`)}),s.jsx(lA,{children:s.jsx(pA,{type:"settings",onClick:()=>u&&t(!0),icon:s.jsx(cn,{}),label:f.getMessage(`${w}.add_link`),disabled:!u})})]});return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage(`${w}.title`),setting:"quicklinksenabled",category:"quicklinks",element:".quicklinks-container",zoomSetting:"zoomQuicklinks",visibilityToggle:!0}),s.jsxs(Ct,{setting:"quicklinksenabled",category:"quicklinks",visibilityToggle:!0,zoomSetting:"zoomQuicklinks",children:[s.jsx(I,{}),s.jsx(K,{}),s.jsx(M,{}),e.length===0&&s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Ji,{}),s.jsx("span",{className:"title",children:f.getMessage(`${w}.no_quicklinks`)}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.message.add_some")}),s.jsx(pA,{type:"settings",onClick:()=>t(!0),icon:s.jsx(cn,{}),label:f.getMessage(`${w}.add_link`)})]})})]}),s.jsx("div",{className:`quicklinks-container ${u?"":"disabled"}`,ref:v,"aria-hidden":!u,children:s.jsx("div",{className:`messagesContainer ${u?"":"disabled"}`,children:s.jsx(Ro,{items:e,enabled:u,onDragEnd:y,startEditLink:O=>L(O),deleteLink:(O,T)=>U(O,T)})})}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a(""),o("")},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(cs,{urlError:n,addLink:(O,T,X)=>F(O,T,X),editLink:(O,T,X,R)=>k(O,T,X,R),edit:l,editData:g,closeModal:()=>{t(!1),a(""),o(""),c(!1)}})})]})},_o=()=>{const[e,A]=b.useState(JSON.parse(localStorage.getItem("messages"))||[]),r=(a,i)=>{const o=[...e];a==="add"?o.push(""):o.splice(i,1),A(o),localStorage.setItem("messages",JSON.stringify(o))},t=(a,i,o)=>{const l=a.target.value,c=[...e];c[o]=l,A(c),localStorage.setItem("messages",JSON.stringify(c)),document.querySelector(".reminder-info").style.display="flex",localStorage.setItem("showReminder",!0)},n="modals.main.settings.sections.message";return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage(`${n}.title`),setting:"message",category:"message",element:".message",zoomSetting:"zoomMessage",visibilityToggle:!0}),s.jsxs(Ct,{setting:"message",visibilityToggle:!0,category:"message",zoomSetting:"zoomMessage",children:[s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${n}.messages`)}),s.jsx(lA,{children:s.jsx(pA,{type:"settings",onClick:()=>r("add"),icon:s.jsx(er,{}),label:f.getMessage(`${n}.add`)})})]}),s.jsx("div",{className:"messagesContainer",children:e.map((a,i)=>s.jsxs("div",{className:"messageMap",children:[s.jsxs("div",{className:"flexGrow",children:[s.jsx("div",{className:"icon",children:s.jsx(Wn,{})}),s.jsxs("div",{className:"messageText",children:[s.jsx("span",{className:"subtitle",children:f.getMessage(`${n}.title`)}),s.jsx(Wi,{value:e[i],placeholder:f.getMessage("modals.main.settings.sections.message.content"),onChange:o=>t(o,!0,i),minRows:2})]})]}),s.jsx("div",{children:s.jsx("div",{className:"messageAction",children:s.jsx(pA,{type:"settings",onClick:()=>r("remove",i),icon:s.jsx(Bt,{}),label:f.getMessage("modals.main.marketplace.product.buttons.remove")})})})]},i))}),e.length===0&&s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Wn,{}),s.jsx("span",{className:"title",children:f.getMessage(`${n}.no_messages`)}),s.jsx("span",{className:"subtitle",children:f.getMessage(`${n}.add_some`)}),s.jsx(pA,{type:"settings",onClick:()=>r("add"),icon:s.jsx(er,{}),label:f.getMessage(`${n}.add`)})]})})]})]})};var Lr={exports:{}},qn;function Go(){return qn||(qn=1,(function(e){(function(A){var r=/^\s+/,t=/\s+$/,n=0,a=A.round,i=A.min,o=A.max,l=A.random;function c(B,C){if(B=B||"",C=C||{},B instanceof c)return B;if(!(this instanceof c))return new c(B,C);var h=g(B);this._originalInput=B,this._r=h.r,this._g=h.g,this._b=h.b,this._a=h.a,this._roundA=a(100*this._a)/100,this._format=C.format||h.format,this._gradientType=C.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=h.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 B=this.toRgb();return(B.r*299+B.g*587+B.b*114)/1e3},getLuminance:function(){var B=this.toRgb(),C,h,E,D,G,aA;return C=B.r/255,h=B.g/255,E=B.b/255,C<=.03928?D=C/12.92:D=A.pow((C+.055)/1.055,2.4),h<=.03928?G=h/12.92:G=A.pow((h+.055)/1.055,2.4),E<=.03928?aA=E/12.92:aA=A.pow((E+.055)/1.055,2.4),.2126*D+.7152*G+.0722*aA},setAlpha:function(B){return this._a=sA(B),this._roundA=a(100*this._a)/100,this},toHsv:function(){var B=v(this._r,this._g,this._b);return{h:B.h*360,s:B.s,v:B.v,a:this._a}},toHsvString:function(){var B=v(this._r,this._g,this._b),C=a(B.h*360),h=a(B.s*100),E=a(B.v*100);return this._a==1?"hsv("+C+", "+h+"%, "+E+"%)":"hsva("+C+", "+h+"%, "+E+"%, "+this._roundA+")"},toHsl:function(){var B=u(this._r,this._g,this._b);return{h:B.h*360,s:B.s,l:B.l,a:this._a}},toHslString:function(){var B=u(this._r,this._g,this._b),C=a(B.h*360),h=a(B.s*100),E=a(B.l*100);return this._a==1?"hsl("+C+", "+h+"%, "+E+"%)":"hsla("+C+", "+h+"%, "+E+"%, "+this._roundA+")"},toHex:function(B){return x(this._r,this._g,this._b,B)},toHexString:function(B){return"#"+this.toHex(B)},toHex8:function(B){return U(this._r,this._g,this._b,this._a,B)},toHex8String:function(B){return"#"+this.toHex8(B)},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(z(this._r,255)*100)+"%",g:a(z(this._g,255)*100)+"%",b:a(z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(z(this._r,255)*100)+"%, "+a(z(this._g,255)*100)+"%, "+a(z(this._b,255)*100)+"%)":"rgba("+a(z(this._r,255)*100)+"%, "+a(z(this._g,255)*100)+"%, "+a(z(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(B){var C="#"+F(this._r,this._g,this._b,this._a),h=C,E=this._gradientType?"GradientType = 1, ":"";if(B){var D=c(B);h="#"+F(D._r,D._g,D._b,D._a)}return"progid:DXImageTransform.Microsoft.gradient("+E+"startColorstr="+C+",endColorstr="+h+")"},toString:function(B){var C=!!B;B=B||this._format;var h=!1,E=this._a<1&&this._a>=0,D=!C&&E&&(B==="hex"||B==="hex6"||B==="hex3"||B==="hex4"||B==="hex8"||B==="name");return D?B==="name"&&this._a===0?this.toName():this.toRgbString():(B==="rgb"&&(h=this.toRgbString()),B==="prgb"&&(h=this.toPercentageRgbString()),(B==="hex"||B==="hex6")&&(h=this.toHexString()),B==="hex3"&&(h=this.toHexString(!0)),B==="hex4"&&(h=this.toHex8String(!0)),B==="hex8"&&(h=this.toHex8String()),B==="name"&&(h=this.toName()),B==="hsl"&&(h=this.toHslString()),B==="hsv"&&(h=this.toHsvString()),h||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(B,C){var h=B.apply(null,[this].concat([].slice.call(C)));return this._r=h._r,this._g=h._g,this._b=h._b,this.setAlpha(h._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(I,arguments)},darken:function(){return this._applyModification(K,arguments)},desaturate:function(){return this._applyModification(L,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(B,C){return B.apply(null,[this].concat([].slice.call(C)))},analogous:function(){return this._applyCombination(W,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(X,arguments)}},c.fromRatio=function(B,C){if(typeof B=="object"){var h={};for(var E in B)B.hasOwnProperty(E)&&(E==="a"?h[E]=B[E]:h[E]=Y(B[E]));B=h}return c(B,C)};function g(B){var C={r:0,g:0,b:0},h=1,E=null,D=null,G=null,aA=!1,hA=!1;return typeof B=="string"&&(B=H(B)),typeof B=="object"&&(tA(B.r)&&tA(B.g)&&tA(B.b)?(C=d(B.r,B.g,B.b),aA=!0,hA=String(B.r).substr(-1)==="%"?"prgb":"rgb"):tA(B.h)&&tA(B.s)&&tA(B.v)?(E=Y(B.s),D=Y(B.v),C=Q(B.h,E,D),aA=!0,hA="hsv"):tA(B.h)&&tA(B.s)&&tA(B.l)&&(E=Y(B.s),G=Y(B.l),C=p(B.h,E,G),aA=!0,hA="hsl"),B.hasOwnProperty("a")&&(h=B.a)),h=sA(h),{ok:aA,format:B.format||hA,r:i(255,o(C.r,0)),g:i(255,o(C.g,0)),b:i(255,o(C.b,0)),a:h}}function d(B,C,h){return{r:z(B,255)*255,g:z(C,255)*255,b:z(h,255)*255}}function u(B,C,h){B=z(B,255),C=z(C,255),h=z(h,255);var E=o(B,C,h),D=i(B,C,h),G,aA,hA=(E+D)/2;if(E==D)G=aA=0;else{var UA=E-D;switch(aA=hA>.5?UA/(2-E-D):UA/(E+D),E){case B:G=(C-h)/UA+(C<h?6:0);break;case C:G=(h-B)/UA+2;break;case h:G=(B-C)/UA+4;break}G/=6}return{h:G,s:aA,l:hA}}function p(B,C,h){var E,D,G;B=z(B,360),C=z(C,100),h=z(h,100);function aA(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(C===0)E=D=G=h;else{var hA=h<.5?h*(1+C):h+C-h*C,UA=2*h-hA;E=aA(UA,hA,B+1/3),D=aA(UA,hA,B),G=aA(UA,hA,B-1/3)}return{r:E*255,g:D*255,b:G*255}}function v(B,C,h){B=z(B,255),C=z(C,255),h=z(h,255);var E=o(B,C,h),D=i(B,C,h),G,aA,hA=E,UA=E-D;if(aA=E===0?0:UA/E,E==D)G=0;else{switch(E){case B:G=(C-h)/UA+(C<h?6:0);break;case C:G=(h-B)/UA+2;break;case h:G=(B-C)/UA+4;break}G/=6}return{h:G,s:aA,v:hA}}function Q(B,C,h){B=z(B,360)*6,C=z(C,100),h=z(h,100);var E=A.floor(B),D=B-E,G=h*(1-C),aA=h*(1-D*C),hA=h*(1-(1-D)*C),UA=E%6,jA=[h,aA,G,G,hA,h][UA],Pe=[hA,h,h,aA,G,G][UA],YA=[G,G,hA,h,h,aA][UA];return{r:jA*255,g:Pe*255,b:YA*255}}function x(B,C,h,E){var D=[N(a(B).toString(16)),N(a(C).toString(16)),N(a(h).toString(16))];return E&&D[0].charAt(0)==D[0].charAt(1)&&D[1].charAt(0)==D[1].charAt(1)&&D[2].charAt(0)==D[2].charAt(1)?D[0].charAt(0)+D[1].charAt(0)+D[2].charAt(0):D.join("")}function U(B,C,h,E,D){var G=[N(a(B).toString(16)),N(a(C).toString(16)),N(a(h).toString(16)),N(gA(E))];return D&&G[0].charAt(0)==G[0].charAt(1)&&G[1].charAt(0)==G[1].charAt(1)&&G[2].charAt(0)==G[2].charAt(1)&&G[3].charAt(0)==G[3].charAt(1)?G[0].charAt(0)+G[1].charAt(0)+G[2].charAt(0)+G[3].charAt(0):G.join("")}function F(B,C,h,E){var D=[N(gA(E)),N(a(B).toString(16)),N(a(C).toString(16)),N(a(h).toString(16))];return D.join("")}c.equals=function(B,C){return!B||!C?!1:c(B).toRgbString()==c(C).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})};function L(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.s-=C/100,h.s=cA(h.s),c(h)}function k(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.s+=C/100,h.s=cA(h.s),c(h)}function y(B){return c(B).desaturate(100)}function w(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.l+=C/100,h.l=cA(h.l),c(h)}function I(B,C){C=C===0?0:C||10;var h=c(B).toRgb();return h.r=o(0,i(255,h.r-a(255*-(C/100)))),h.g=o(0,i(255,h.g-a(255*-(C/100)))),h.b=o(0,i(255,h.b-a(255*-(C/100)))),c(h)}function K(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.l-=C/100,h.l=cA(h.l),c(h)}function M(B,C){var h=c(B).toHsl(),E=(h.h+C)%360;return h.h=E<0?360+E:E,c(h)}function O(B){var C=c(B).toHsl();return C.h=(C.h+180)%360,c(C)}function T(B){var C=c(B).toHsl(),h=C.h;return[c(B),c({h:(h+120)%360,s:C.s,l:C.l}),c({h:(h+240)%360,s:C.s,l:C.l})]}function X(B){var C=c(B).toHsl(),h=C.h;return[c(B),c({h:(h+90)%360,s:C.s,l:C.l}),c({h:(h+180)%360,s:C.s,l:C.l}),c({h:(h+270)%360,s:C.s,l:C.l})]}function R(B){var C=c(B).toHsl(),h=C.h;return[c(B),c({h:(h+72)%360,s:C.s,l:C.l}),c({h:(h+216)%360,s:C.s,l:C.l})]}function W(B,C,h){C=C||6,h=h||30;var E=c(B).toHsl(),D=360/h,G=[c(B)];for(E.h=(E.h-(D*C>>1)+720)%360;--C;)E.h=(E.h+D)%360,G.push(c(E));return G}function $(B,C){C=C||6;for(var h=c(B).toHsv(),E=h.h,D=h.s,G=h.v,aA=[],hA=1/C;C--;)aA.push(c({h:E,s:D,v:G})),G=(G+hA)%1;return aA}c.mix=function(B,C,h){h=h===0?0:h||50;var E=c(B).toRgb(),D=c(C).toRgb(),G=h/100,aA={r:(D.r-E.r)*G+E.r,g:(D.g-E.g)*G+E.g,b:(D.b-E.b)*G+E.b,a:(D.a-E.a)*G+E.a};return c(aA)},c.readability=function(B,C){var h=c(B),E=c(C);return(A.max(h.getLuminance(),E.getLuminance())+.05)/(A.min(h.getLuminance(),E.getLuminance())+.05)},c.isReadable=function(B,C,h){var E=c.readability(B,C),D,G;switch(G=!1,D=P(h),D.level+D.size){case"AAsmall":case"AAAlarge":G=E>=4.5;break;case"AAlarge":G=E>=3;break;case"AAAsmall":G=E>=7;break}return G},c.mostReadable=function(B,C,h){var E=null,D=0,G,aA,hA,UA;h=h||{},aA=h.includeFallbackColors,hA=h.level,UA=h.size;for(var jA=0;jA<C.length;jA++)G=c.readability(B,C[jA]),G>D&&(D=G,E=c(C[jA]));return c.isReadable(B,E,{level:hA,size:UA})||!aA?E:(h.includeFallbackColors=!1,c.mostReadable(B,["#fff","#000"],h))};var eA=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=fA(eA);function fA(B){var C={};for(var h in B)B.hasOwnProperty(h)&&(C[B[h]]=h);return C}function sA(B){return B=parseFloat(B),(isNaN(B)||B<0||B>1)&&(B=1),B}function z(B,C){S(B)&&(B="100%");var h=_(B);return B=i(C,o(0,parseFloat(B))),h&&(B=parseInt(B*C,10)/100),A.abs(B-C)<1e-6?1:B%C/parseFloat(C)}function cA(B){return i(1,o(0,B))}function iA(B){return parseInt(B,16)}function S(B){return typeof B=="string"&&B.indexOf(".")!=-1&&parseFloat(B)===1}function _(B){return typeof B=="string"&&B.indexOf("%")!=-1}function N(B){return B.length==1?"0"+B:""+B}function Y(B){return B<=1&&(B=B*100+"%"),B}function gA(B){return A.round(parseFloat(B)*255).toString(16)}function Z(B){return iA(B)/255}var q=(function(){var B="[-\\+]?\\d+%?",C="[-\\+]?\\d*\\.\\d+%?",h="(?:"+C+")|(?:"+B+")",E="[\\s|\\(]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")\\s*\\)?",D="[\\s|\\(]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")\\s*\\)?";return{CSS_UNIT:new RegExp(h),rgb:new RegExp("rgb"+E),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+E),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+E),hsva:new RegExp("hsva"+D),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 tA(B){return!!q.CSS_UNIT.exec(B)}function H(B){B=B.replace(r,"").replace(t,"").toLowerCase();var C=!1;if(eA[B])B=eA[B],C=!0;else if(B=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var h;return(h=q.rgb.exec(B))?{r:h[1],g:h[2],b:h[3]}:(h=q.rgba.exec(B))?{r:h[1],g:h[2],b:h[3],a:h[4]}:(h=q.hsl.exec(B))?{h:h[1],s:h[2],l:h[3]}:(h=q.hsla.exec(B))?{h:h[1],s:h[2],l:h[3],a:h[4]}:(h=q.hsv.exec(B))?{h:h[1],s:h[2],v:h[3]}:(h=q.hsva.exec(B))?{h:h[1],s:h[2],v:h[3],a:h[4]}:(h=q.hex8.exec(B))?{r:iA(h[1]),g:iA(h[2]),b:iA(h[3]),a:Z(h[4]),format:C?"name":"hex8"}:(h=q.hex6.exec(B))?{r:iA(h[1]),g:iA(h[2]),b:iA(h[3]),format:C?"name":"hex"}:(h=q.hex4.exec(B))?{r:iA(h[1]+""+h[1]),g:iA(h[2]+""+h[2]),b:iA(h[3]+""+h[3]),a:Z(h[4]+""+h[4]),format:C?"name":"hex8"}:(h=q.hex3.exec(B))?{r:iA(h[1]+""+h[1]),g:iA(h[2]+""+h[2]),b:iA(h[3]+""+h[3]),format:C?"name":"hex"}:!1}function P(B){var C,h;return B=B||{level:"AA",size:"small"},C=(B.level||"AA").toUpperCase(),h=(B.size||"small").toLowerCase(),C!=="AA"&&C!=="AAA"&&(C="AA"),h!=="small"&&h!=="large"&&(h="small"),{level:C,size:h}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(Lr)),Lr.exports}var jo=Go();const SA=Fs(jo);var De=function(){return De=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},De.apply(this,arguments)},Vo=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))},Po=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(S){var _=new Error(e+": "+S);throw _}function t(S){e=e.substr(S)}function n(S){var _=/^[\n\r\t\s]+/.exec(e);_&&t(_[0].length);var N=S.exec(e);return N&&t(N[0].length),N}function a(S){var _=S(),N=[];if(_)for(N.push(_);n(A.comma);)_=S(),_?N.push(_):r("One extra comma");return N}function i(S,_,N){var Y=n(_);if(Y)return{type:S,value:Y[N]}}function o(){var S=i("hex",A.hexColor,1);if(S?.value){var _=SA(S?.value).toRgb(),N=_.r,Y=_.g,gA=_.b,Z=_.a;return{value:"rgba(".concat(N,", ").concat(Y,", ").concat(gA,", ").concat(Z,")")}}}var l=function(S){var _=me(S?.[0]);return{value:"".concat(_?"RGBA":"rgba","(").concat(a(AA),")")}};function c(S,_){var N=n(S);if(N){n(A.startCall)||r("Missing (");var Y=_(N);return n(A.endCall)||r("Missing )"),Y}}function g(){return c(A.hslColor,fA)}function d(){return c(A.rgbaColor,l)}function u(){return c(A.rgbColor,z)}function p(){var S=i("literal",A.literalColor,0);if(S?.value){var _=SA(S?.value).toRgb(),N=_.r,Y=_.g,gA=_.b,Z=_.a;return{value:"rgba(".concat(N,", ").concat(Y,", ").concat(gA,", ").concat(Z,")")}}}function v(){return c(A.hsvColor,sA)}function Q(){return o()||g()||d()||u()||p()||v()}function x(){var S,_=Q();return _||r("Expected color definition"),_.left=parseInt((S=cA())===null||S===void 0?void 0:S.value),_}function U(S,_,N){return c(_,function(){var Y=N();return Y&&(n(A.comma)||r("Missing comma before color stops")),{type:S,orientation:Y,colorStops:a(x)}})}function F(){return w()||I()}function L(){return U("linear-gradient",A.linearGradient,F)||U("repeating-linear-gradient",A.repeatingLinearGradient,F)||U("radial-gradient",A.radialGradient,K)||U("repeating-radial-gradient",A.repeatingRadialGradient,K)}function k(){return a(L)}function y(){var S,_=k();e.length>0&&r("Invalid input not EOF");var N=_[0],Y=(S=N?.colorStops)===null||S===void 0?void 0:S.filter(function(Z){return me(Z.value)}).length,gA=function(){if(Y>0)return N;var Z=function(q,tA){return tA===0?Cr(q):Qt(q)};return De(De({},N),{colorStops:N.colorStops.map(function(q,tA){return De(De({},q),{value:Z(q,tA)})})})};return gA()}function w(){return i("directional",A.sideOrCorner,1)}function I(){return i("angular",A.angleValue,1)}function K(){var S,_=M(),N;return _&&(S=[],S.push(_),N=e,n(A.comma)&&(_=M(),_?S.push(_):e=N)),S}function M(){var S=T()||X();if(S)S.at=W();else{var _=R();if(_){S=_;var N=W();N&&(S.at=N)}else{var Y=$();Y&&(S={type:"default-radial",at:Y})}}return S}function O(){return i("px",A.pixelValue,1)||i("em",A.emValue,1)}function T(){var S=i("shape",/^(circle)/i,0);return S&&(S.style=O()||R()),S}function X(){var S=i("shape",/^(ellipse)/i,0);return S&&(S.style=cA()||R()),S}function R(){return i("extent-keyword",A.extentKeywords,1)}function W(){if(i("position",/^at/,0)){var S=$();return S||r("Missing positioning value"),S}}function $(){var S=eA();if(S.x||S.y)return{type:"position",value:S}}function eA(){return{x:cA(),y:cA()}}function AA(){return n(A.number)[1]}var fA=function(S){var _=me(S?.[0]),N=a(AA),Y=SA({h:N[0],s:N[1],l:N[2],a:N[3]||1}).toRgb(),gA=Y.r,Z=Y.g,q=Y.b,tA=Y.a;return{value:"".concat(_?"RGBA":"rgba","(").concat(gA,", ").concat(Z,", ").concat(q,", ").concat(tA,")")}},sA=function(S){var _=me(S?.[0]),N=a(AA),Y=SA({h:N[0],s:N[1],v:N[2],a:N[3]||1}).toRgb(),gA=Y.r,Z=Y.g,q=Y.b,tA=Y.a;return{value:"".concat(_?"RGBA":"rgba","(").concat(gA,", ").concat(Z,", ").concat(q,", ").concat(tA,")")}},z=function(S){var _=me(S?.[0]),N=n(A.spacedRgbColor),Y=N||Vo([null],a(AA),!0),gA=Y[1],Z=Y[2],q=Y[3],tA=Y[4],H=tA===void 0?1:tA;return{value:"".concat(_?"RGBA":"rgba","(").concat(gA,", ").concat(Z,", ").concat(q,", ").concat(H,")")}};function cA(){return i("%",A.percentageValue,1)||iA()||O()}function iA(){return i("position-keyword",A.positionKeywords,1)}return y()},Qt=function(e){return e.value.toLowerCase()},Cr=function(e){return e.value.toUpperCase()},Xo=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 i=Po(a);return i?.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)},sr=function(){return sr=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},sr.apply(this,arguments)},Es=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=Es(e),t=r.offsetLeft,n=r.clientWidth,a=e.clientX-t-A/2,i=n-18,o=_e(a,0,i);return Math.round(o/(i/100))}function Jo(e,A,r,t,n){var a=e*r-n/2,i=(100-A)/100*t-n/2;return[a,i]}var Wo=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 Yo(e,A){var r=Es(e),t=r.offsetLeft,n=r.offsetTop,a=r.clientWidth,i=r.clientHeight,o=Wo(e),l=o.clientX,c=o.clientY,g=function(){var u=l-t-A/2;return _e(u,-9,a-10)},d=function(){var u=c-n-A/2;return _e(u,-9,i-10)};return[g(),d()]}var me=function(e){var A;return e?.[0]===((A=e?.[0])===null||A===void 0?void 0:A.toUpperCase())},ys=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)},Zo=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 i=(r=e?.colorStops)===null||r===void 0?void 0:r.sort(function(u,p){return u?.left-p?.left}),o=(t=i?.map(function(u){return"".concat(u?.value," ").concat(u?.left,"%")}))===null||t===void 0?void 0:t.join(", "),l=e?.type,c=ys((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 d=((a=e?.colorStops[0])===null||a===void 0?void 0:a.value)||"rgba(175, 51, 242, 1)";return d}},zo=function(e,A){var r=e?.map(function(a,i){return sr(sr({},a),{index:i})}),t=r?.find(function(a){return me(a.value)}),n=t||r[0];return{currentColor:n?.value||A,selectedColor:n?.index||0,currentLeft:n?.left||0}},qo=function(e){var A,r=e?.split(",")[0],t=(A=r?.split("(")[1])===null||A===void 0?void 0:A.replace("deg","");return ys(t)},$o=function(e){var A=e?.includes("gradient"),r=e?.split("(")[0],t=qo(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)},Al=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))},xs=b.createContext(null);function el(e){var A,r,t,n,a=e.value,i=e.children,o=e.onChange,l=e.isDarkMode,c=e.squareWidth,g=e.hideOpacity,d=e.showHexAlpha,u=e.squareHeight,p=e.passedConfig,v=e.defaultStyles,Q=e.pickerIdSuffix,x={barSize:(A=p.barSize)!==null&&A!==void 0?A:bt.barSize,crossSize:(r=p.crossSize)!==null&&r!==void 0?r:bt.crossSize,defaultColor:(t=p.defaultColor)!==null&&t!==void 0?t:bt.defaultColor,defaultGradient:(n=p.defaultGradient)!==null&&n!==void 0?n:bt.defaultGradient},U=Xo(a,x.defaultColor,x.defaultGradient),F=$o(a),L=F.degrees,k=F.degreeStr,y=F.isGradient,w=F.gradientType,I=zo(U,x.defaultGradient),K=I.currentColor,M=I.selectedColor,O=I.currentLeft,T=b.useState("rgb"),X=T[0],R=T[1],W=b.useState({}),$=W[0],eA=W[1],AA=SA(K),fA=AA.toRgb(),sA=AA.toHsv(),z=b.useState(DA(DA({},fA),sA)),cA=z[0],iA=z[1];b.useEffect(function(){sA?.s===0?iA(DA(DA(DA({},fA),sA),{h:cA?.h})):iA(DA(DA({},fA),sA))},[K]);var S=function(Z){var q=Z.sort(function(P,B){return P.left-B.left}),tA=q?.map(function(P){return"".concat(P?.value," ").concat(P.left,"%")}),H="".concat(w,"(").concat(k,", ").concat(tA.join(", "),")");eA(DA(DA({},$),{gradient:H})),o(H)},_=function(Z,q){var tA=U?.filter(function(P){return!me(P.value)}),H=Al([{value:Z.toUpperCase(),left:q??O}],tA,!0);S(H)},N=function(Z){y?_(Z):(eA(DA(DA({},$),{color:Z})),o(Z))},Y=function(){if(U?.length>2){var Z=U?.map(function(tA,H){return DA(DA({},tA),{value:H===M-1?Cr(tA):Qt(tA)})}),q=Z?.filter(function(tA,H){return H!==M});S(q)}},gA={hc:cA,setHc:iA,value:a,colors:U,config:x,degrees:L,onChange:o,previous:$,inputType:X,tinyColor:AA,isDarkMode:l,isGradient:y,squareWidth:c,hideOpacity:g,currentLeft:O,deletePoint:Y,showHexAlpha:d,squareHeight:u,setInputType:R,gradientType:w,handleChange:N,currentColor:K,selectedColor:M,defaultStyles:v,handleGradient:_,pickerIdSuffix:Q,createGradientStr:S};return m.createElement(xs.Provider,{value:gA},i)}function dA(){var e=b.useContext(xs);if(!e)throw new Error("usePicker has to be used within <PickerContext.Provider>");return e}var bt={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%)"},tl=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])},rl=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 i=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)i.addColorStop(o/100,"hsl(".concat(A,", ").concat(o,"%, ").concat(r,"%)"));a.fillStyle=i,a.fill()}},[e,A,r,t])},nl=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 i=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)i.addColorStop(o/100,"hsl(".concat(A,", ").concat(r,"%, ").concat(o,"%)"));a.fillStyle=i,a.fill()}},[e,A,r,t])},al=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 i=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10){var l=SA({h:A,s:r,v:o});i.addColorStop(o/100,l.toHslString())}a.fillStyle=i,a.fill()}},[e,A,r,t])},ir=function(){return ir=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},ir.apply(this,arguments)},sl=function(){var e=b.useRef(null),A=dA(),r=A.config,t=A.handleChange,n=A.squareWidth,a=A.hc,i=A.setHc,o=A.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],d=r.barSize;tl(e,n);var u=function(){g(!1)},p=function(){g(!0)},v=function(U){var F=Ge(U,d)*3.6,L=SA({h:F,s:a?.s,v:a?.v}),k=L.toRgb(),y=k.r,w=k.g,I=k.b;t("rgba(".concat(y,", ").concat(w,", ").concat(I,", ").concat(a.a,")")),i(ir(ir({},a),{h:F}))},Q=function(U){c&&v(U)},x=function(U){c||v(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 Q(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 il(e,A,r){var t=0,n=0,a=0,i=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 i=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),i=o,{c:t,m:n,y:a,k:i}}var ol=function(e){var A=e.c,r=e.m,t=e.y,n=e.k,a=255*(1-A)*(1-n),i=255*(1-r)*(1-n),o=255*(1-t)*(1-n);return{r:a,g:i,b:o}},ll=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,i=e.hideOpacity,o=e.defaultStyles,l=e.pickerIdSuffix,c=b.useState(r),g=c[0],d=c[1],u=i?"25%":"20%";b.useEffect(function(){d(r)},[r]);var p=function(v){var Q=_e(parseFloat(v.target.value),0,a);d(Q),t(Q)};return m.createElement("div",{style:{width:u,flexShrink:1},id:"rbgcp-".concat(A,"-input-wrapper").concat(l)},m.createElement("input",{value:g,onChange:function(v){return p(v)},style:WA({},o.rbgcpInput),id:"rbgcp-".concat(A,"-input").concat(l)}),m.createElement("div",{style:WA({},o.rbgcpInputLabel)},A))},cl=function(e){var A=e.opacity,r=e.tinyColor,t=e.showHexAlpha,n=e.handleChange,a=e.defaultStyles,i=e.pickerIdSuffix,o=b.useState(""),l=o[0],c=o[1],g=r.toHex(),d=b.useState(g),u=d[0],p=d[1];b.useEffect(function(){l!=="hex"&&p(g)},[r,l,g]);var v=function(){c("hex")},Q=function(){c("")},x=function(k){var y=SA(k.target.value);if(p(k.target.value),y.isValid()){var w=y.toRgb(),I=w.r,K=w.g,M=w.b,O="rgba(".concat(I,", ").concat(K,", ").concat(M,", ").concat(A,")");n(O)}},U=t?"".concat(u).concat(ll(A)):u,F=t?"HEXA":"HEX",L=t?88:76;return m.createElement("div",{style:{width:L,flexShrink:0},id:"rbgcp-hex-input-wrapper".concat(i)},m.createElement("input",{onBlur:Q,onFocus:v,onChange:function(k){return x(k)},value:U?.toUpperCase(),id:"rbgcp-hex-input".concat(i),style:WA(WA({},a.rbgcpInput),a.rbgcpHexInput)}),m.createElement("div",{style:WA({},a.rbgcpInputLabel)},F))},gl=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,i=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 i({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 i({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 i({r:A?.r,g:A?.g,b:o})}}))},ul=function(e){var A=e.hc,r=e.setHc,t=e.tinyColor,n=e.hideOpacity,a=e.handleChange,i=e.defaultStyles,o=e.pickerIdSuffix,l=t.toHsl(),c=l.s,g=l.l,d=function(p,v,Q){var x=SA({h:p,s:v,l:Q}).toRgb(),U=x.r,F=x.g,L=x.b;a("rgba(".concat(U,", ").concat(F,", ").concat(L,", ").concat(A?.a,")")),r(WA(WA({},A),{h:p}))},u=function(p){var v=SA(p).toRgb(),Q=v.r,x=v.g,U=v.b;a("rgba(".concat(Q,", ").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:i,pickerIdSuffix:o,callback:function(p){return d(p,c,g)}}),m.createElement(_A,{label:"S",value:ee(c*100),hideOpacity:n,defaultStyles:i,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:i,pickerIdSuffix:o,callback:function(p){return u({h:A?.h,s:c,l:p})}}))},Bl=function(e){var A=e.hc,r=e.setHc,t=e.hideOpacity,n=e.handleChange,a=e.defaultStyles,i=e.pickerIdSuffix,o=function(c,g,d){var u=SA({h:c,s:g,v:d}).toRgb(),p=u.r,v=u.g,Q=u.b;n("rgba(".concat(p,", ").concat(v,", ").concat(Q,", ").concat(A?.a,")")),r(WA(WA({},A),{h:c}))},l=function(c){var g=SA(c).toRgb(),d=g.r,u=g.g,p=g.b;n("rgba(".concat(d,", ").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:i,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:i,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:i,callback:function(c){return l({h:A?.h,s:A?.s,v:c})}}))},dl=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,i=il(A?.r,A?.g,A?.b),o=i.c,l=i.m,c=i.y,g=i.k,d=function(u){var p=ol(u),v=p.r,Q=p.g,x=p.b;t("rgba(".concat(v,", ").concat(Q,", ").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 d({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 d({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 d({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 d({c:o,m:l,y:c,k:u/100})}}))},fl=function(){var e=dA(),A=e.hc,r=e.setHc,t=e.inputType,n=e.tinyColor,a=e.hideOpacity,i=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(cl,{opacity:A?.a,tinyColor:n,showHexAlpha:i,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsl"&&m.createElement(ul,{hc:A,setHc:r,tinyColor:n,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="rgb"&&m.createElement(gl,{hc:A,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsv"&&m.createElement(Bl,{hc:A,setHc:r,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="cmyk"&&m.createElement(dl,{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,")"))}}))},hl=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 i=n.createLinearGradient(0,0,0,t);i.addColorStop(0,"rgba(0, 0, 0, 0)"),i.addColorStop(1,"rgba(0, 0, 0, 1)"),n.fillStyle=i,n.fillRect(0,0,r,t)}}},[e,A,r,t])},kr,$n;function wl(){if($n)return kr;$n=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,i=/^0o[0-7]+$/i,o=parseInt,l=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,c=typeof self=="object"&&self&&self.Object===Object&&self,g=l||c||Function("return this")(),d=Object.prototype,u=d.toString,p=Math.max,v=Math.min,Q=function(){return g.Date.now()};function x(w,I,K){var M,O,T,X,R,W,$=0,eA=!1,AA=!1,fA=!0;if(typeof w!="function")throw new TypeError(e);I=y(I)||0,F(K)&&(eA=!!K.leading,AA="maxWait"in K,T=AA?p(y(K.maxWait)||0,I):T,fA="trailing"in K?!!K.trailing:fA);function sA(Z){var q=M,tA=O;return M=O=void 0,$=Z,X=w.apply(tA,q),X}function z(Z){return $=Z,R=setTimeout(S,I),eA?sA(Z):X}function cA(Z){var q=Z-W,tA=Z-$,H=I-q;return AA?v(H,T-tA):H}function iA(Z){var q=Z-W,tA=Z-$;return W===void 0||q>=I||q<0||AA&&tA>=T}function S(){var Z=Q();if(iA(Z))return _(Z);R=setTimeout(S,cA(Z))}function _(Z){return R=void 0,fA&&M?sA(Z):(M=O=void 0,X)}function N(){R!==void 0&&clearTimeout(R),$=0,M=W=O=R=void 0}function Y(){return R===void 0?X:_(Q())}function gA(){var Z=Q(),q=iA(Z);if(M=arguments,O=this,W=Z,q){if(R===void 0)return z(W);if(AA)return R=setTimeout(S,I),sA(W)}return R===void 0&&(R=setTimeout(S,I)),X}return gA.cancel=N,gA.flush=Y,gA}function U(w,I,K){var M=!0,O=!0;if(typeof w!="function")throw new TypeError(e);return F(K)&&(M="leading"in K?!!K.leading:M,O="trailing"in K?!!K.trailing:O),x(w,I,{leading:M,maxWait:I,trailing:O})}function F(w){var I=typeof w;return!!w&&(I=="object"||I=="function")}function L(w){return!!w&&typeof w=="object"}function k(w){return typeof w=="symbol"||L(w)&&u.call(w)==r}function y(w){if(typeof w=="number")return w;if(k(w))return A;if(F(w)){var I=typeof w.valueOf=="function"?w.valueOf():w;w=F(I)?I+"":I}if(typeof w!="string")return w===0?w:+w;w=w.replace(t,"");var K=a.test(w);return K||i.test(w)?o(w.slice(2),K?2:8):n.test(w)?A:+w}return kr=U,kr}var pl=wl();const Cl=Fs(pl);var ve=function(){return ve=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},ve.apply(this,arguments)},Ql=function(){var e,A,r=dA(),t=r.hc,n=r.config,a=r.squareWidth,i=r.squareHeight,o=r.handleChange,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.crossSize,d=b.useState(!1),u=d[0],p=d[1],v=b.useRef(null),Q=Jo(t?.s,t?.v*100,a,i,g),x=Q[0],U=Q[1],F=b.useState({x,y:U}),L=F[0],k=F[1];hl(v,t?.h,a,i),b.useEffect(function(){u||k({x:t?.v===0?L.x:x,y:U})},[x,U]);var y=function(T){var X=Cl(function(){var R=Yo(T,g),W=R[0],$=R[1];if(W&&$){var eA=Math.min(W+g/2,a-1),AA=Math.min($+g/2,i-1),fA=eA/a*100,sA=100-AA/i*100;k({x:sA===0?L?.x:W,y:$});var z=SA("hsva(".concat(t?.h,", ").concat(fA,"%, ").concat(sA,"%, ").concat(t?.a,")"));o(z.toRgbString())}},250);X()},w=function(){p(!1)},I=function(T){u&&y(T)},K=function(T){u||y(T)},M=function(){p(!0)},O=function(T){p(!0),y(T)};return b.useEffect(function(){var T=function(){w()};return window.addEventListener("mouseup",T),function(){window.removeEventListener("mouseup",T)}},[]),m.createElement("div",{style:{position:"relative",marginBottom:12},id:"rbgcp-square-wrapper".concat(c)},m.createElement("div",{onMouseUp:w,onTouchEnd:w,onMouseDown:O,onTouchStart:O,onMouseMove:function(T){return I(T)},id:"rbgcp-square".concat(c),style:{position:"relative",cursor:"ew-cross"}},m.createElement("div",{style:ve(ve(ve({},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:M,id:"rbgcp-square-handle".concat(c)}),m.createElement("div",{style:ve(ve({},l.rbgcpCanvasWrapper),{height:i}),id:"rbgcp-square-canvas-wrapper".concat(c),onClick:function(T){return K(T)}},m.createElement("canvas",{ref:v,width:"".concat(a,"px"),height:"".concat(i,"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=dA(),A=e.config,r=e.hc,t=r===void 0?{}:r,n=e.squareWidth,a=e.handleChange,i=e.defaultStyles,o=e.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],d=t.r,u=t.g,p=t.b,v="linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(".concat(d,",").concat(u,",").concat(p,",.5) 100%)"),Q=A.barSize,x=function(){g(!1)},U=function(){g(!0)},F=function(w){var I=Ge(w,Q)/100,K="rgba(".concat(d,", ").concat(u,", ").concat(p,", ").concat(I,")");a(K)},L=function(w){c&&F(w)},k=function(w){c||F(w)},y=n-18;return b.useEffect(function(){var w=function(){x()};return window.addEventListener("mouseup",w),function(){window.removeEventListener("mouseup",w)}},[]),m.createElement("div",{onMouseDown:U,onMouseMove:function(w){return L(w)},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({},i.rbgcpCheckered),{width:"100%",height:14})}),m.createElement("div",{id:"rbgcp-opacity-handle".concat(o),style:ce(ce({},i.rbgcpHandle),{left:y*t?.a,top:-2})}),m.createElement("div",{style:ce(ce({},i.rbgcpOpacityOverlay),{background:v}),id:"rbgcp-opacity-overlay".concat(o),onClick:function(w){return k(w)}}))},vl={CONTROLS:{SOLID:"Solid",GRADIENT:"Gradient"}},Ul=["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)"],Fl=function(e){var A=e.presets,r=A===void 0?[]:A,t=dA(),n=t.value,a=t.onChange,i=t.isDarkMode,o=t.squareWidth,l=t.handleChange,c=t.pickerIdSuffix,g=function(){return r?.length>0?r?.slice(0,18):Ul},d=function(p){p?.includes("gradient")?a(p):l(p)},u=function(p){if(!p||i)return"";var v=p?.replace(" ","");return v==="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,v){return m.createElement("div",{key:"".concat(p,"-").concat(v),id:"rbgcp-preset-".concat(v,"-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 d(p)},id:"rbgcp-preset-".concat(v).concat(c)}))})))},J=function(){return J=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},J.apply(this,arguments)},bl=function(){var e=dA().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:J(J({},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"}))},El=function(e){var A=e.color,r=dA().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:J(J(J({},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"}))},yl=function(e){var A=e.color,r=dA().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:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"9"}),m.createElement("circle",{style:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"5"}))},xl=function(e){var A=e.color,r=dA().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:J(J(J({},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:J(J(J({},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:J(J(J({},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:J(J(J({},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:J(J(J({},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:J(J(J({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"16.26",y1:"17.26",x2:"16.26",y2:"15.21"}))},Il=function(e){var A=e.color,r=dA().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:J(J(J({},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:J(J(J({},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:J(J(J({},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"}))},Hl=function(e){var A=e.color,r=dA().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:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"9.36",cy:"5.07",r:"1.71"}),m.createElement("circle",{style:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"13.93",cy:"6.91",r:"1.71"}),m.createElement("circle",{style:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.8",cy:"7.55",r:"1.71"}),m.createElement("circle",{style:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.45",cy:"12.04",r:"1.71"}),m.createElement("path",{style:J(J(J(J({},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"}))},Sl=function(e){var A=e.color,r=dA().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:J(J(J({},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:J(J(J({},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"}))},Ll=function(){var e=dA().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:J({},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:J({},e.rbgcpControlIcon2),d:"M4.79,8.09V7H9.16V8.09H7.59V13H6.38V8.09Z"}),m.createElement("path",{style:J({},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:J({},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"}))},kl=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 i=n.current;return a&&(n.current.id=t,document.body.appendChild(n.current)),function(){a&&i.parentElement&&i.parentElement.removeChild(i)}},[t]),Yi.createPortal(r,n.current)};const Ml=b.memo(kl);var Bn=function(e,A){return Bn=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])},Bn(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");Bn(e,A);function r(){this.constructor=e}e.prototype=A===null?Object.create(A):(r.prototype=A.prototype,new r)}var dn=function(){return dn=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},dn.apply(this,arguments)};function OA(e,A,r,t){function n(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function o(g){try{c(t.next(g))}catch(d){i(d)}}function l(g){try{c(t.throw(g))}catch(d){i(d)}}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,i;return i={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;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 Et(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})(),Qr=function(e,A){return ie.fromClientRect(e,A.getBoundingClientRect())},Kl=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)},mr=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 i=e[n];i<=65535?t.push(i):(i-=65536,t.push((i>>10)+55296,i%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},Aa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Tl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var yt=0;yt<Aa.length;yt++)Tl[Aa.charCodeAt(yt)]=yt;var ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var xt=0;xt<ea.length;xt++)qe[ea.charCodeAt(xt)]=xt;var Dl=function(e){var A=e.length*.75,r=e.length,t,n=0,a,i,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)],i=qe[e.charCodeAt(t+1)],o=qe[e.charCodeAt(t+2)],l=qe[e.charCodeAt(t+3)],g[n++]=a<<2|i>>4,g[n++]=(i&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},Ol=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},Rl=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},Ee=5,Rn=11,Mr=2,Nl=Rn-Ee,Is=65536>>Ee,_l=1<<Ee,Kr=_l-1,Gl=1024>>Ee,jl=Is+Gl,Vl=jl,Pl=32,Xl=Vl+Pl,Jl=65536>>Rn,Wl=1<<Nl,Yl=Wl-1,ta=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},Zl=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},zl=function(e,A){var r=Dl(e),t=Array.isArray(r)?Rl(r):new Uint32Array(r),n=Array.isArray(r)?Ol(r):new Uint16Array(r),a=24,i=ta(n,a/2,t[4]/2),o=t[5]===2?ta(n,(a+t[4])/2):Zl(t,Math.ceil((a+t[4])/4));return new ql(t[0],t[1],t[2],t[3],i,o)},ql=(function(){function e(A,r,t,n,a,i){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=i}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>Ee],r=(r<<Mr)+(A&Kr),this.data[r];if(A<=65535)return r=this.index[Is+(A-55296>>Ee)],r=(r<<Mr)+(A&Kr),this.data[r];if(A<this.highStart)return r=Xl-Jl+(A>>Rn),r=this.index[r],r+=A>>Ee&Yl,r=this.index[r],r=(r<<Mr)+(A&Kr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$l=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var It=0;It<ra.length;It++)$l[ra.charCodeAt(It)]=It;var Ac="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLA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AwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAA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ADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgA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4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwB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AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEA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AUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAB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FAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAA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AEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAl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FcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",na=50,ec=1,Hs=2,Ss=3,tc=4,rc=5,aa=7,Ls=8,sa=9,ue=10,fn=11,ia=12,hn=13,nc=14,$e=15,wn=16,Ht=17,Je=18,ac=19,oa=20,pn=21,We=22,Tr=23,Ie=24,GA=25,At=26,et=27,He=28,sc=29,Ue=30,ic=31,St=32,Lt=33,Cn=34,Qn=35,mn=36,dt=37,vn=38,Zt=39,zt=40,Dr=41,ks=42,oc=43,lc=[9001,65288],Ms="!",oA="×",kt="÷",Un=zl(Ac),ne=[Ue,mn],Fn=[ec,Hs,Ss,rc],Ks=[ue,Ls],la=[et,At],cc=Fn.concat(Ks),ca=[vn,Zt,zt,Cn,Qn],gc=[$e,hn],uc=function(e,A){A===void 0&&(A="strict");var r=[],t=[],n=[];return e.forEach(function(a,i){var o=Un.get(a);if(o>na?(n.push(!0),o-=na):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return t.push(i),r.push(wn);if(o===tc||o===fn){if(i===0)return t.push(i),r.push(Ue);var l=r[i-1];return cc.indexOf(l)===-1?(t.push(t[i-1]),r.push(l)):(t.push(i),r.push(Ue))}if(t.push(i),o===ic)return r.push(A==="strict"?pn:dt);if(o===ks||o===sc)return r.push(Ue);if(o===oc)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(dt):r.push(Ue);r.push(o)}),[t,r,n]},Or=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 i=t[a];if(i===A)return!0;if(i!==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 i=t[l];if(i===A)return!0;if(i!==ue)break}if(o!==ue)break}return!1},ga=function(e,A){for(var r=e;r>=0;){var t=A[r];if(t===ue)r--;else return t}return 0},Bc=function(e,A,r,t,n){if(r[t]===0)return oA;var a=t-1;if(Array.isArray(n)&&n[a]===!0)return oA;var i=a-1,o=a+1,l=A[a],c=i>=0?A[i]:0,g=A[o];if(l===Hs&&g===Ss)return oA;if(Fn.indexOf(l)!==-1)return Ms;if(Fn.indexOf(g)!==-1||Ks.indexOf(g)!==-1)return oA;if(ga(a,A)===Ls)return kt;if(Un.get(e[a])===fn||(l===St||l===Lt)&&Un.get(e[o])===fn||l===aa||g===aa||l===sa||[ue,hn,$e].indexOf(l)===-1&&g===sa||[Ht,Je,ac,Ie,He].indexOf(g)!==-1||ga(a,A)===We||Or(Tr,We,a,A)||Or([Ht,Je],pn,a,A)||Or(ia,ia,a,A))return oA;if(l===ue)return kt;if(l===Tr||g===Tr)return oA;if(g===wn||l===wn)return kt;if([hn,$e,pn].indexOf(g)!==-1||l===nc||c===mn&&gc.indexOf(l)!==-1||l===He&&g===mn||g===oa||ne.indexOf(g)!==-1&&l===GA||ne.indexOf(l)!==-1&&g===GA||l===et&&[dt,St,Lt].indexOf(g)!==-1||[dt,St,Lt].indexOf(l)!==-1&&g===At||ne.indexOf(l)!==-1&&la.indexOf(g)!==-1||la.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,He,Ie].indexOf(g)!==-1)return oA;if([GA,He,Ie,Ht,Je].indexOf(g)!==-1)for(var d=a;d>=0;){var u=A[d];if(u===GA)return oA;if([He,Ie].indexOf(u)!==-1)d--;else break}if([et,At].indexOf(g)!==-1)for(var d=[Ht,Je].indexOf(l)!==-1?i:a;d>=0;){var u=A[d];if(u===GA)return oA;if([He,Ie].indexOf(u)!==-1)d--;else break}if(vn===l&&[vn,Zt,Cn,Qn].indexOf(g)!==-1||[Zt,Cn].indexOf(l)!==-1&&[Zt,zt].indexOf(g)!==-1||[zt,Qn].indexOf(l)!==-1&&g===zt||ca.indexOf(l)!==-1&&[oa,At].indexOf(g)!==-1||ca.indexOf(g)!==-1&&l===et||ne.indexOf(l)!==-1&&ne.indexOf(g)!==-1||l===Ie&&ne.indexOf(g)!==-1||ne.concat(GA).indexOf(l)!==-1&&g===We&&lc.indexOf(e[o])===-1||ne.concat(GA).indexOf(g)!==-1&&l===Je)return oA;if(l===Dr&&g===Dr){for(var p=r[a],v=1;p>0&&(p--,A[p]===Dr);)v++;if(v%2!==0)return oA}return l===St&&g===Lt?oA:kt},dc=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var r=uc(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,Ue,ks].indexOf(o)!==-1?dt:o}));var i=A.wordBreak==="keep-all"?a.map(function(o,l){return o&&e[l]>=19968&&e[l]<=40959}):void 0;return[t,n,i]},fc=(function(){function e(A,r,t,n){this.codePoints=A,this.required=r===Ms,this.start=t,this.end=n}return e.prototype.slice=function(){return bA.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),hc=function(e,A){var r=mr(e),t=dc(r,A),n=t[0],a=t[1],i=t[2],o=r.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var g=oA;c<o&&(g=Bc(r,a,n,++c,i))===oA;);if(g!==oA||c===o){var d=new fc(r,g,l,c);return l=c,{value:d,done:!1}}return{done:!0,value:null}}}},wc=1,pc=2,mt=4,ua=8,or=10,Ba=47,it=92,Cc=9,Qc=32,Mt=34,Ye=61,mc=35,vc=36,Uc=37,Kt=39,Tt=40,Ze=41,Fc=95,NA=45,bc=33,Ec=60,yc=62,xc=64,Ic=91,Hc=93,Sc=61,Lc=123,Dt=63,kc=125,da=124,Mc=126,Kc=128,fa=65533,Rr=42,be=43,Tc=44,Dc=58,Oc=59,ft=46,Rc=0,Nc=8,_c=11,Gc=14,jc=31,Vc=127,qA=-1,Ts=48,Ds=97,Os=101,Pc=102,Xc=117,Jc=122,Rs=65,Ns=69,_s=70,Wc=85,Yc=90,MA=function(e){return e>=Ts&&e<=57},Zc=function(e){return e>=55296&&e<=57343},Se=function(e){return MA(e)||e>=Rs&&e<=_s||e>=Ds&&e<=Pc},zc=function(e){return e>=Ds&&e<=Jc},qc=function(e){return e>=Rs&&e<=Yc},$c=function(e){return zc(e)||qc(e)},Ag=function(e){return e>=Kc},Ot=function(e){return e===or||e===Cc||e===Qc},lr=function(e){return $c(e)||Ag(e)||e===Fc},ha=function(e){return lr(e)||MA(e)||e===NA},eg=function(e){return e>=Rc&&e<=Nc||e===_c||e>=Gc&&e<=jc||e===Vc},ge=function(e,A){return e!==it?!1:A!==or},Rt=function(e,A,r){return e===NA?lr(A)||ge(A,r):lr(e)?!0:!!(e===it&&ge(e,A))},Nr=function(e,A,r){return e===be||e===NA?MA(A)?!0:A===ft&&MA(r):MA(e===ft?A:e)},tg=function(e){var A=0,r=1;(e[A]===be||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]===ft&&A++;for(var a=[];MA(e[A]);)a.push(e[A++]);var i=a.length,o=i?parseInt(bA.apply(void 0,a),10):0;(e[A]===Ns||e[A]===Os)&&A++;var l=1;(e[A]===be||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,-i))*Math.pow(10,l*g)},rg={type:2},ng={type:3},ag={type:4},sg={type:13},ig={type:8},og={type:21},lg={type:9},cg={type:10},gg={type:11},ug={type:12},Bg={type:14},Nt={type:23},dg={type:1},fg={type:25},hg={type:24},wg={type:26},pg={type:27},Cg={type:28},Qg={type:29},mg={type:31},bn={type:32},Gs=(function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(mr(A))},e.prototype.read=function(){for(var A=[],r=this.consumeToken();r!==bn;)A.push(r),r=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Mt:return this.consumeStringToken(Mt);case mc:var r=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(ha(r)||ge(t,n)){var a=Rt(r,t,n)?pc:wc,i=this.consumeName();return{type:5,value:i,flags:a}}break;case vc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),sg;break;case Kt:return this.consumeStringToken(Kt);case Tt:return rg;case Ze:return ng;case Rr:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),Bg;break;case be:if(Nr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Tc:return ag;case NA:var o=A,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(Nr(o,l,c))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Rt(o,l,c))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(l===NA&&c===yc)return this.consumeCodePoint(),this.consumeCodePoint(),hg;break;case ft:if(Nr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Ba:if(this.peekCodePoint(0)===Rr)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===Rr&&(g=this.consumeCodePoint(),g===Ba))return this.consumeToken();if(g===qA)return this.consumeToken()}break;case Dc:return wg;case Oc:return pg;case Ec:if(this.peekCodePoint(0)===bc&&this.peekCodePoint(1)===NA&&this.peekCodePoint(2)===NA)return this.consumeCodePoint(),this.consumeCodePoint(),fg;break;case xc:var d=this.peekCodePoint(0),u=this.peekCodePoint(1),p=this.peekCodePoint(2);if(Rt(d,u,p)){var i=this.consumeName();return{type:7,value:i}}break;case Ic:return Cg;case it:if(ge(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case Hc:return Qg;case Sc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),ig;break;case Lc:return gg;case kc:return ug;case Xc:case Wc:var v=this.peekCodePoint(0),Q=this.peekCodePoint(1);return v===be&&(Se(Q)||Q===Dt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case da:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),lg;if(this.peekCodePoint(0)===da)return this.consumeCodePoint(),og;break;case Mc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),cg;break;case qA:return bn}return Ot(A)?(this.consumeWhiteSpace(),mg):MA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):lr(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();Se(r)&&A.length<6;)A.push(r),r=this.consumeCodePoint();for(var t=!1;r===Dt&&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===Dt?Ts:l})),16),a=parseInt(bA.apply(void 0,A.map(function(l){return l===Dt?_s:l})),16);return{type:30,start:n,end:a}}var i=parseInt(bA.apply(void 0,A),16);if(this.peekCodePoint(0)===NA&&Se(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var o=[];Se(r)&&o.length<6;)o.push(r),r=this.consumeCodePoint();var a=parseInt(bA.apply(void 0,o),16);return{type:30,start:i,end:a}}else return{type:30,start:i,end:i}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Tt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Tt?(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===Kt||r===Mt){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(),Nt)}for(;;){var n=this.consumeCodePoint();if(n===qA||n===Ze)return{type:22,value:bA.apply(void 0,A)};if(Ot(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===qA||this.peekCodePoint(0)===Ze?(this.consumeCodePoint(),{type:22,value:bA.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Nt);if(n===Mt||n===Kt||n===Tt||eg(n))return this.consumeBadUrlRemnants(),Nt;if(n===it)if(ge(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Nt;else A.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;Ot(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===or)return this._value.splice(0,t),dg;if(n===it){var a=this._value[t+1];a!==qA&&a!==void 0&&(a===or?(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=mt,t=this.peekCodePoint(0);for((t===be||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===ft&&MA(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=ua;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((t===Ns||t===Os)&&((n===be||n===NA)&&MA(a)||MA(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=ua;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[tg(A),r]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),r=A[0],t=A[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),i=this.peekCodePoint(2);if(Rt(n,a,i)){var o=this.consumeName();return{type:15,number:r,flags:t,unit:o}}return n===Uc?(this.consumeCodePoint(),{type:16,number:r,flags:t}):{type:17,number:r,flags:t}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Se(A)){for(var r=bA(A);Se(this.peekCodePoint(0))&&r.length<6;)r+=bA(this.consumeCodePoint());Ot(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(r,16);return t===0||Zc(t)||t>1114111?fa:t}return A===qA?fa:A},e.prototype.consumeName=function(){for(var A="";;){var r=this.consumeCodePoint();if(ha(r))A+=bA(r);else if(ge(r,this.peekCodePoint(0)))A+=bA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),A}},e})(),js=(function(){function e(A){this._tokens=A}return e.create=function(A){var r=new Gs;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||Ug(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"?bn:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e})(),vt=function(e){return e.type===15},Ve=function(e){return e.type===17},BA=function(e){return e.type===20},vg=function(e){return e.type===0},En=function(e,A){return BA(e)&&e.value===A},Vs=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},Ug=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},EA=function(e){return e.type===16||pe(e)},Ps=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},LA={type:17,number:0,flags:mt},Nn={type:16,number:50,flags:mt},Be={type:16,number:100,flags:mt},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(vt(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},Xs="deg",Js="grad",Ws="rad",Ys="turn",vr={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case Xs:return Math.PI*A.number/180;case Js:return Math.PI/200*A.number;case Ws:return A.number;case Ys:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Zs=function(e){return e.type===15&&(e.unit===Xs||e.unit===Js||e.unit===Ws||e.unit===Ys)},zs=function(e){var A=e.filter(BA).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=Fg[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),i=A.value.substring(3,4);return de(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,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),i=A.value.substring(6,8);return de(parseInt(t,16),parseInt(n,16),parseInt(a,16),parseInt(i,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},wa=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},pa=function(e,A){var r=A.filter(je);if(r.length===3){var t=r.map(wa),n=t[0],a=t[1],i=t[2];return de(n,a,i,1)}if(r.length===4){var o=r.map(wa),n=o[0],a=o[1],i=o[2],l=o[3];return de(n,a,i,l)}return 0};function _r(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 Ca=function(e,A){var r=A.filter(je),t=r[0],n=r[1],a=r[2],i=r[3],o=(t.type===17?XA(t.number):vr.parse(e,t))/(Math.PI*2),l=EA(n)?n.number/100:0,c=EA(a)?a.number/100:0,g=typeof i<"u"&&EA(i)?wA(i,1):1;if(l===0)return de(c*255,c*255,c*255,1);var d=c<=.5?c*(l+1):c+l-c*l,u=c*2-d,p=_r(u,d,o+1/3),v=_r(u,d,o),Q=_r(u,d,o-1/3);return de(p*255,v*255,Q*255,g)},Fg={hsl:Ca,hsla:Ca,rgb:pa,rgba:pa},ot=function(e,A){return he.parse(e,js.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},bg={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(BA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Eg={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ur=function(e,A){var r=he.parse(e,A[0]),t=A[1];return t&&EA(t)?{color:r,stop:t}:{color:r,stop:null}},Qa=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,i=0;i<e.length;i++){var o=e[i].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,i=0;i<n.length;i++){var g=n[i];if(g===null)c===null&&(c=i);else if(c!==null){for(var d=i-c,u=n[c-1],p=(g-u)/(d+1),v=1;v<=d;v++)n[c+v-1]=p*v;c=null}}return e.map(function(Q,x){var U=Q.color;return{color:U,stop:Math.max(Math.min(1,n[x]/A),0)}})},yg=function(e,A,r){var t=A/2,n=r/2,a=wA(e[0],A)-t,i=n-wA(e[1],r);return(Math.atan2(i,a)+Math.PI*2)%(Math.PI*2)},xg=function(e,A,r){var t=typeof e=="number"?e:yg(e,A,r),n=Math.abs(A*Math.sin(t))+Math.abs(r*Math.cos(t)),a=A/2,i=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,i-l,i+l]},ZA=function(e,A){return Math.sqrt(e*e+A*A)},ma=function(e,A,r,t,n){var a=[[0,0],[0,A],[e,0],[e,A]];return a.reduce(function(i,o){var l=o[0],c=o[1],g=ZA(r-l,t-c);return(n?g<i.optimumDistance:g>i.optimumDistance)?{optimumCorner:o,optimumDistance:g}:i},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Ig=function(e,A,r,t,n){var a=0,i=0;switch(e.size){case 0:e.shape===0?a=i=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)),i=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(e.shape===0)a=i=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=ma(t,n,A,r,!0),c=l[0],g=l[1];a=ZA(c-A,(g-r)/o),i=o*a}break;case 1:e.shape===0?a=i=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)),i=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(e.shape===0)a=i=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)),d=ma(t,n,A,r,!1),c=d[0],g=d[1];a=ZA(c-A,(g-r)/o),i=o*a}break}return Array.isArray(e.size)&&(a=wA(e.size[0],t),i=e.size.length===2?wA(e.size[1],n):a),[a,i]},Hg=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var i=n[0];if(i.type===20&&i.value==="to"){r=zs(n);return}else if(Zs(i)){r=vr.parse(e,i);return}}var o=Ur(e,n);t.push(o)}),{angle:r,stops:t,type:1}},_t=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var i=n[0];if(i.type===20&&["top","left","right","bottom"].indexOf(i.value)!==-1){r=zs(n);return}else if(Zs(i)){r=(vr.parse(e,i)+XA(270))%XA(360);return}}var o=Ur(e,n);t.push(o)}),{angle:r,stops:t,type:1}},Sg=function(e,A){var r=XA(180),t=[],n=1,a=0,i=3,o=[];return te(A).forEach(function(l,c){var g=l[0];if(c===0){if(BA(g)&&g.value==="linear"){n=1;return}else if(BA(g)&&g.value==="radial"){n=2;return}}if(g.type===18){if(g.name==="from"){var d=he.parse(e,g.values[0]);t.push({stop:LA,color:d})}else if(g.name==="to"){var d=he.parse(e,g.values[0]);t.push({stop:Be,color:d})}else if(g.name==="color-stop"){var u=g.values.filter(je);if(u.length===2){var d=he.parse(e,u[1]),p=u[0];Ve(p)&&t.push({stop:{type:16,number:p.number*100,flags:p.flags},color:d})}}}}),n===1?{angle:(r+XA(180))%XA(360),stops:t,type:n}:{size:i,shape:a,stops:t,position:o,type:n}},qs="closest-side",$s="farthest-side",Ai="closest-corner",ei="farthest-corner",ti="circle",ri="ellipse",ni="cover",ai="contain",Lg=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(i,o){var l=!0;if(o===0){var c=!1;l=i.reduce(function(d,u){if(c)if(BA(u))switch(u.value){case"center":return a.push(Nn),d;case"top":case"left":return a.push(LA),d;case"right":case"bottom":return a.push(Be),d}else(EA(u)||pe(u))&&a.push(u);else if(BA(u))switch(u.value){case ti:return r=0,!1;case ri:return r=1,!1;case"at":return c=!0,!1;case qs:return t=0,!1;case ni:case $s:return t=1,!1;case ai:case Ai:return t=2,!1;case ei:return t=3,!1}else if(pe(u)||EA(u))return Array.isArray(t)||(t=[]),t.push(u),!1;return d},l)}if(l){var g=Ur(e,i);n.push(g)}}),{size:t,shape:r,stops:n,position:a,type:2}},Gt=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(i,o){var l=!0;if(o===0?l=i.reduce(function(g,d){if(BA(d))switch(d.value){case"center":return a.push(Nn),!1;case"top":case"left":return a.push(LA),!1;case"right":case"bottom":return a.push(Be),!1}else if(EA(d)||pe(d))return a.push(d),!1;return g},l):o===1&&(l=i.reduce(function(g,d){if(BA(d))switch(d.value){case ti:return r=0,!1;case ri:return r=1,!1;case ai:case qs:return t=0,!1;case $s:return t=1,!1;case Ai:return t=2,!1;case ni:case ei:return t=3,!1}else if(pe(d)||EA(d))return Array.isArray(t)||(t=[]),t.push(d),!1;return g},l)),l){var c=Ur(e,i);n.push(c)}}),{size:t,shape:r,stops:n,position:a,type:2}},kg=function(e){return e.type===1},Mg=function(e){return e.type===2},_n={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=si[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 Kg(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!si[e.name])}var si={"linear-gradient":Hg,"-moz-linear-gradient":_t,"-ms-linear-gradient":_t,"-o-linear-gradient":_t,"-webkit-linear-gradient":_t,"radial-gradient":Lg,"-moz-radial-gradient":Gt,"-ms-radial-gradient":Gt,"-o-radial-gradient":Gt,"-webkit-radial-gradient":Gt,"-webkit-gradient":Sg},Tg={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)&&Kg(t)}).map(function(t){return _n.parse(e,t)})}},Dg={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(BA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Og={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return te(A).map(function(r){return r.filter(EA)}).map(Ps)}},Rg={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(BA).map(function(t){return t.value}).join(" ")}).map(Ng)}},Ng=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 _g={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(Gg)})}},Gg=function(e){return BA(e)||EA(e)},Fr=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},jg=Fr("top"),Vg=Fr("right"),Pg=Fr("bottom"),Xg=Fr("left"),br=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,r){return Ps(r.filter(EA))}}},Jg=br("top-left"),Wg=br("top-right"),Yg=br("bottom-right"),Zg=br("bottom-left"),Er=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}}},zg=Er("top"),qg=Er("right"),$g=Er("bottom"),Au=Er("left"),yr=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,r){return vt(r)?r.number:0}}},eu=yr("top"),tu=yr("right"),ru=yr("bottom"),nu=yr("left"),au={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},su={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){return A==="rtl"?1:0}},iu={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(BA).reduce(function(r,t){return r|ou(t.value)},0)}},ou=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},lu={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}},cu={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}},cr;(function(e){e.NORMAL="normal",e.STRICT="strict"})(cr||(cr={}));var gu={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="strict"?cr.STRICT:cr.NORMAL}},uu={name:"line-height",initialValue:"normal",prefix:!1,type:4},va=function(e,A){return BA(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:EA(e)?wA(e,A):A},Bu={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:_n.parse(e,A)}},du={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){return A==="inside"?0:1}},yn={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}}},xr=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},fu=xr("top"),hu=xr("right"),wu=xr("bottom"),pu=xr("left"),Cu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(BA).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}})}},Qu={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="break-word"?"break-word":"normal"}},Ir=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},mu=Ir("top"),vu=Ir("right"),Uu=Ir("bottom"),Fu=Ir("left"),bu={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}}},Eu={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}},yu={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 i=r[a];pe(i)?(n===0?t.offsetX=i:n===1?t.offsetY=i:t.blur=i,n++):t.color=he.parse(e,i)}return t})}},xu={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}},Iu={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=Lu[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return r(A.values)}return null}},Hu=function(e){var A=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return A.length===6?A:null},Su=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 i=A[12],o=A[13];return A[14],A[15],A.length===16?[r,t,n,a,i,o]:null},Lu={matrix:Hu,matrix3d:Su},Ua={type:16,number:50,flags:mt},ku=[Ua,Ua],Mu={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var r=A.filter(EA);return r.length!==2?ku:[r[0],r[1]]}},Ku={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 Tu={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}}},Du={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")}},ii={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")}},Ou={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:1}},Ru={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Nu={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(BA).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})}},_u={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+"'"})}},Gu={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ju={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:BA(A)&&A.value==="bold"?700:400}},Vu={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(BA).map(function(r){return r.value})}},Pu={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"}}},yA=function(e,A){return(e&A)!==0},Xu={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}},Ju={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(Vs),a=0;a<n.length;a++){var i=n[a],o=n[a+1];if(i.type===20){var l=o&&Ve(o)?o.number:1;t.push({counter:i.value,increment:l})}}return t}},Wu={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var r=[],t=A.filter(Vs),n=0;n<t.length;n++){var a=t[n],i=t[n+1];if(BA(a)&&a.value!=="none"){var o=i&&Ve(i)?i.number:0;r.push({counter:a.value,reset:o})}}return r}},Yu={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(vt).map(function(r){return ii.parse(e,r)})}},Zu={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(vg);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var i=n[a].value,o=n[a+1].value;t.push({open:i,close:o})}return t}},Fa=function(e,A,r){if(!e)return"";var t=e[Math.min(A,e.length-1)];return t?r?t.open:t.close:""},zu={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 i=r[a];En(i,"inset")?t.inset=!0:pe(i)?(n===0?t.offsetX=i:n===1?t.offsetY=i:n===2?t.blur=i:t.spread=i,n++):t.color=he.parse(e,i)}return t})}},qu={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var r=[0,1,2],t=[];return A.filter(BA).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}},$u={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},AB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return vt(A)?A.number:0}},eB=(function(){function e(A,r){var t,n;this.animationDuration=V(A,Yu,r.animationDuration),this.backgroundClip=V(A,bg,r.backgroundClip),this.backgroundColor=V(A,Eg,r.backgroundColor),this.backgroundImage=V(A,Tg,r.backgroundImage),this.backgroundOrigin=V(A,Dg,r.backgroundOrigin),this.backgroundPosition=V(A,Og,r.backgroundPosition),this.backgroundRepeat=V(A,Rg,r.backgroundRepeat),this.backgroundSize=V(A,_g,r.backgroundSize),this.borderTopColor=V(A,jg,r.borderTopColor),this.borderRightColor=V(A,Vg,r.borderRightColor),this.borderBottomColor=V(A,Pg,r.borderBottomColor),this.borderLeftColor=V(A,Xg,r.borderLeftColor),this.borderTopLeftRadius=V(A,Jg,r.borderTopLeftRadius),this.borderTopRightRadius=V(A,Wg,r.borderTopRightRadius),this.borderBottomRightRadius=V(A,Yg,r.borderBottomRightRadius),this.borderBottomLeftRadius=V(A,Zg,r.borderBottomLeftRadius),this.borderTopStyle=V(A,zg,r.borderTopStyle),this.borderRightStyle=V(A,qg,r.borderRightStyle),this.borderBottomStyle=V(A,$g,r.borderBottomStyle),this.borderLeftStyle=V(A,Au,r.borderLeftStyle),this.borderTopWidth=V(A,eu,r.borderTopWidth),this.borderRightWidth=V(A,tu,r.borderRightWidth),this.borderBottomWidth=V(A,ru,r.borderBottomWidth),this.borderLeftWidth=V(A,nu,r.borderLeftWidth),this.boxShadow=V(A,zu,r.boxShadow),this.color=V(A,au,r.color),this.direction=V(A,su,r.direction),this.display=V(A,iu,r.display),this.float=V(A,lu,r.cssFloat),this.fontFamily=V(A,_u,r.fontFamily),this.fontSize=V(A,Gu,r.fontSize),this.fontStyle=V(A,Pu,r.fontStyle),this.fontVariant=V(A,Vu,r.fontVariant),this.fontWeight=V(A,ju,r.fontWeight),this.letterSpacing=V(A,cu,r.letterSpacing),this.lineBreak=V(A,gu,r.lineBreak),this.lineHeight=V(A,uu,r.lineHeight),this.listStyleImage=V(A,Bu,r.listStyleImage),this.listStylePosition=V(A,du,r.listStylePosition),this.listStyleType=V(A,yn,r.listStyleType),this.marginTop=V(A,fu,r.marginTop),this.marginRight=V(A,hu,r.marginRight),this.marginBottom=V(A,wu,r.marginBottom),this.marginLeft=V(A,pu,r.marginLeft),this.opacity=V(A,Ou,r.opacity);var a=V(A,Cu,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=V(A,Qu,r.overflowWrap),this.paddingTop=V(A,mu,r.paddingTop),this.paddingRight=V(A,vu,r.paddingRight),this.paddingBottom=V(A,Uu,r.paddingBottom),this.paddingLeft=V(A,Fu,r.paddingLeft),this.paintOrder=V(A,qu,r.paintOrder),this.position=V(A,Eu,r.position),this.textAlign=V(A,bu,r.textAlign),this.textDecorationColor=V(A,Ru,(t=r.textDecorationColor)!==null&&t!==void 0?t:r.color),this.textDecorationLine=V(A,Nu,(n=r.textDecorationLine)!==null&&n!==void 0?n:r.textDecoration),this.textShadow=V(A,yu,r.textShadow),this.textTransform=V(A,xu,r.textTransform),this.transform=V(A,Iu,r.transform),this.transformOrigin=V(A,Mu,r.transformOrigin),this.visibility=V(A,Ku,r.visibility),this.webkitTextStrokeColor=V(A,$u,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=V(A,AB,r.webkitTextStrokeWidth),this.wordBreak=V(A,Tu,r.wordBreak),this.zIndex=V(A,Du,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 yA(this.display,4)||yA(this.display,33554432)||yA(this.display,268435456)||yA(this.display,536870912)||yA(this.display,67108864)||yA(this.display,134217728)},e})(),tB=(function(){function e(A,r){this.content=V(A,Xu,r.content),this.quotes=V(A,Zu,r.quotes)}return e})(),ba=(function(){function e(A,r){this.counterIncrement=V(A,Ju,r.counterIncrement),this.counterReset=V(A,Wu,r.counterReset)}return e})(),V=function(e,A,r){var t=new Gs,n=r!==null&&typeof r<"u"?r.toString():A.initialValue;t.write(n);var a=new js(t.read());switch(A.type){case 2:var i=a.parseComponentValue();return A.parse(e,BA(i)?i.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 vr.parse(e,a.parseComponentValue());case"color":return he.parse(e,a.parseComponentValue());case"image":return _n.parse(e,a.parseComponentValue());case"length":var o=a.parseComponentValue();return pe(o)?o:LA;case"length-percentage":var l=a.parseComponentValue();return EA(l)?l:LA;case"time":return ii.parse(e,a.parseComponentValue())}break}},rB="data-html2canvas-debug",nB=function(e){var A=e.getAttribute(rB);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},xn=function(e,A){var r=nB(e);return r===1||A===r},re=(function(){function e(A,r){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,xn(r,3))debugger;this.styles=new eB(A,window.getComputedStyle(r,null)),Sn(r)&&(this.styles.animationDuration.some(function(t){return t>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=Qr(this.context,r),xn(r,4)&&(this.flags|=16)}return e})(),aB="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAA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FNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEA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UBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKB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ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var jt=0;jt<Ea.length;jt++)rt[Ea.charCodeAt(jt)]=jt;var sB=function(e){var A=e.length*.75,r=e.length,t,n=0,a,i,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)],i=rt[e.charCodeAt(t+1)],o=rt[e.charCodeAt(t+2)],l=rt[e.charCodeAt(t+3)],g[n++]=a<<2|i>>4,g[n++]=(i&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},iB=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},oB=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},ye=5,Gn=11,Gr=2,lB=Gn-ye,oi=65536>>ye,cB=1<<ye,jr=cB-1,gB=1024>>ye,uB=oi+gB,BB=uB,dB=32,fB=BB+dB,hB=65536>>Gn,wB=1<<lB,pB=wB-1,ya=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},CB=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},QB=function(e,A){var r=sB(e),t=Array.isArray(r)?oB(r):new Uint32Array(r),n=Array.isArray(r)?iB(r):new Uint16Array(r),a=24,i=ya(n,a/2,t[4]/2),o=t[5]===2?ya(n,(a+t[4])/2):CB(t,Math.ceil((a+t[4])/4));return new mB(t[0],t[1],t[2],t[3],i,o)},mB=(function(){function e(A,r,t,n,a,i){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=i}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>ye],r=(r<<Gr)+(A&jr),this.data[r];if(A<=65535)return r=this.index[oi+(A-55296>>ye)],r=(r<<Gr)+(A&jr),this.data[r];if(A<this.highStart)return r=fB-hB+(A>>Gn),r=this.index[r],r+=A>>ye&pB,r=this.index[r],r=(r<<Gr)+(A&jr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Vt=0;Vt<xa.length;Vt++)vB[xa.charCodeAt(Vt)]=Vt;var UB=1,Vr=2,Pr=3,Ia=4,Ha=5,FB=7,Sa=8,Xr=9,Jr=10,La=11,ka=12,Ma=13,Ka=14,Wr=15,bB=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},EB=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 i=e[n];i<=65535?t.push(i):(i-=65536,t.push((i>>10)+55296,i%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},yB=QB(aB),VA="×",Yr="÷",xB=function(e){return yB.get(e)},IB=function(e,A,r){var t=r-2,n=A[t],a=A[r-1],i=A[r];if(a===Vr&&i===Pr)return VA;if(a===Vr||a===Pr||a===Ia||i===Vr||i===Pr||i===Ia)return Yr;if(a===Sa&&[Sa,Xr,La,ka].indexOf(i)!==-1||(a===La||a===Xr)&&(i===Xr||i===Jr)||(a===ka||a===Jr)&&i===Jr||i===Ma||i===Ha||i===FB||a===UB)return VA;if(a===Ma&&i===Ka){for(;n===Ha;)n=A[--t];if(n===Ka)return VA}if(a===Wr&&i===Wr){for(var o=0;n===Wr;)o++,n=A[--t];if(o%2===0)return VA}return Yr},HB=function(e){var A=bB(e),r=A.length,t=0,n=0,a=A.map(xB);return{next:function(){if(t>=r)return{done:!0,value:null};for(var i=VA;t<r&&(i=IB(A,a,++t))===VA;);if(i!==VA||t===r){var o=EB.apply(null,A.slice(n,t));return n=t,{value:o,done:!1}}return{done:!0,value:null}}}},SB=function(e){for(var A=HB(e),r=[],t;!(t=A.next()).done;)t.value&&r.push(t.value.slice());return r},LB=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},kB=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"?"👨".repeat(10):"";var t=A.firstChild,n=mr(t.data).map(function(l){return bA(l)}),a=0,i={},o=n.every(function(l,c){r.setStart(t,a),r.setEnd(t,a+l.length);var g=r.getBoundingClientRect();a+=l.length;var d=g.x>i.x||g.y>i.y;return i=g,c===0?!0:d});return e.body.removeChild(A),o},MB=function(){return typeof new Image().crossOrigin<"u"},KB=function(){return typeof new XMLHttpRequest().responseType=="string"},TB=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},Ta=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},DB=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 i=In(r,r,0,0,n);return t.fillStyle="red",t.fillRect(0,0,r,r),Da(i).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",Ta(l)?Da(In(r,r,0,0,c)):Promise.reject(!1)}).then(function(o){return t.drawImage(o,0,0),Ta(t.getImageData(0,0,r,r).data)}).catch(function(){return!1})},In=function(e,A,r,t,n){var a="http://www.w3.org/2000/svg",i=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return i.setAttributeNS(null,"width",e.toString()),i.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"),i.appendChild(o),o.appendChild(n),i},Da=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=LB(document);return Object.defineProperty(HA,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=HA.SUPPORT_RANGE_BOUNDS&&kB(document);return Object.defineProperty(HA,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=TB(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"?DB(document):Promise.resolve(!1);return Object.defineProperty(HA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=MB();return Object.defineProperty(HA,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=KB();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})(),OB=function(e,A,r,t){var n=_B(A,r),a=[],i=0;return n.forEach(function(o){if(r.textDecorationLine.length||o.trim().length>0)if(HA.SUPPORT_RANGE_BOUNDS){var l=Oa(t,i,o.length).getClientRects();if(l.length>1){var c=jn(o),g=0;c.forEach(function(u){a.push(new ct(u,ie.fromDOMRectList(e,Oa(t,g+i,u.length).getClientRects()))),g+=u.length})}else a.push(new ct(o,ie.fromDOMRectList(e,l)))}else{var d=t.splitText(o.length);a.push(new ct(o,RB(e,t))),t=d}else HA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(o.length));i+=o.length}),a},RB=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=Qr(e,t);return t.firstChild&&n.replaceChild(t.firstChild,t),a}}return ie.EMPTY},Oa=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},jn=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 SB(e)},NB=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 jB(e,A)},_B=function(e,A){return A.letterSpacing!==0?jn(e):NB(e,A)},GB=[32,160,4961,65792,65793,4153,4241],jB=function(e,A){for(var r=hc(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),t=[],n,a=function(){if(n.value){var i=n.value.slice(),o=mr(i),l="";o.forEach(function(c){GB.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},VB=(function(){function e(A,r,t){this.text=PB(r.data,t.textTransform),this.textBounds=OB(A,this.text,t,r)}return e})(),PB=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(XB,JB);case 2:return e.toUpperCase();default:return e}},XB=/(^|\s|:|-|\(|\))([a-z])/g,JB=function(e,A,r){return e.length>0?A+r.toUpperCase():e},li=(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),ci=(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),gi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this,a=new XMLSerializer,i=Qr(r,t);return t.setAttribute("width",i.width+"px"),t.setAttribute("height",i.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),ui=(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),Hn=(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),WB=[{type:15,flags:0,unit:"px",number:3}],YB=[{type:16,flags:0,number:50}],ZB=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},zB=function(e){var A=e.type===qB?new Array(e.value.length+1).join("•"):e.value;return A.length===0?e.placeholder||"":A},gr="checkbox",ur="radio",qB="password",Ra=707406591,Vn=(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=zB(t),(n.type===gr||n.type===ur)&&(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=ZB(n.bounds)),n.type){case gr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=WB;break;case ur:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=YB;break}return n}return A})(re),Bi=(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),di=(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),fi=(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=wi(r,t.contentWindow.document.documentElement);var a=t.contentWindow.document.documentElement?ot(r,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):se.TRANSPARENT,i=t.contentWindow.document.body?ot(r,getComputedStyle(t.contentWindow.document.body).backgroundColor):se.TRANSPARENT;n.backgroundColor=we(a)?we(i)?n.styles.backgroundColor:i:a}}catch{}return n}return A})(re),$B=["OL","UL","MENU"],qt=function(e,A,r,t){for(var n=A.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,pi(n)&&n.data.trim().length>0)r.textNodes.push(new VB(e,n,r.styles));else if(Oe(n))if(vi(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return qt(e,o,r,t)});else{var i=hi(e,n);i.styles.isVisible()&&(Ad(n,i,t)?i.flags|=4:ed(i.styles)&&(i.flags|=2),$B.indexOf(n.tagName)!==-1&&(i.flags|=8),r.elements.push(i),n.slot,n.shadowRoot?qt(e,n.shadowRoot,i,t):!Br(n)&&!Ci(n)&&!dr(n)&&qt(e,n,i,t))}},hi=function(e,A){return Ln(A)?new li(e,A):Qi(A)?new ci(e,A):Ci(A)?new gi(e,A):td(A)?new ui(e,A):rd(A)?new Hn(e,A):nd(A)?new Vn(e,A):dr(A)?new Bi(e,A):Br(A)?new di(e,A):mi(A)?new fi(e,A):new re(e,A)},wi=function(e,A){var r=hi(e,A);return r.flags|=4,qt(e,A,r,r),r},Ad=function(e,A,r){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Pn(e)&&r.styles.isTransparent()},ed=function(e){return e.isPositioned()||e.isFloating()},pi=function(e){return e.nodeType===Node.TEXT_NODE},Oe=function(e){return e.nodeType===Node.ELEMENT_NODE},Sn=function(e){return Oe(e)&&typeof e.style<"u"&&!$t(e)},$t=function(e){return typeof e.className=="object"},td=function(e){return e.tagName==="LI"},rd=function(e){return e.tagName==="OL"},nd=function(e){return e.tagName==="INPUT"},ad=function(e){return e.tagName==="HTML"},Ci=function(e){return e.tagName==="svg"},Pn=function(e){return e.tagName==="BODY"},Qi=function(e){return e.tagName==="CANVAS"},Na=function(e){return e.tagName==="VIDEO"},Ln=function(e){return e.tagName==="IMG"},mi=function(e){return e.tagName==="IFRAME"},_a=function(e){return e.tagName==="STYLE"},sd=function(e){return e.tagName==="SCRIPT"},Br=function(e){return e.tagName==="TEXTAREA"},dr=function(e){return e.tagName==="SELECT"},vi=function(e){return e.tagName==="SLOT"},Ga=function(e){return e.tagName.indexOf("-")>0},id=(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 i=[];return a&&n.forEach(function(o){var l=r.counters[o.counter];i.push(o.counter),l||(l=r.counters[o.counter]=[]),l.push(o.reset)}),i},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"]},Va={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},od={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ld={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Le=function(e,A,r,t,n,a){return e<A||e>r?ht(e,n,a.length>0):t.integers.reduce(function(i,o,l){for(;e>=o;)e-=o,i+=t.values[l];return i},"")+a},Ui=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?"-":"")+(Ui(Math.abs(e),a,t,function(i){return bA(Math.floor(i%a)+A)})+n)},Ce=function(e,A,r){r===void 0&&(r=". ");var t=A.length;return Ui(Math.abs(e),t,!1,function(n){return A[Math.floor(n%t)]})+r},Ke=1,oe=2,le=4,nt=8,ae=function(e,A,r,t,n,a){if(e<-9999||e>9999)return ht(e,4,n.length>0);var i=Math.abs(e),o=n;if(i===0)return A[0]+o;for(var l=0;i>0&&l<=4;l++){var c=i%10;c===0&&yA(a,Ke)&&o!==""?o=A[c]+o:c>1||c===1&&l===0||c===1&&l===1&&yA(a,oe)||c===1&&l===1&&yA(a,le)&&e>100||c===1&&l>1&&yA(a,nt)?o=A[c]+(l>0?r[l-1]:"")+o:c===1&&l>0&&(o=r[l-1]+o),i=Math.floor(i/10)}return(e<0?t:"")+o},Pa="十百千萬",Xa="拾佰仟萬",Ja="マイナス",Zr="마이너스",ht=function(e,A,r){var t=r?". ":"",n=r?"、":"",a=r?", ":"",i=r?" ":"";switch(A){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var o=FA(e,48,57,!0,t);return o.length<4?"0"+o:o;case 4:return Ce(e,"〇一二三四五六七八九",n);case 6:return Le(e,1,3999,ja,3,t).toLowerCase();case 7:return Le(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 Le(e,1,9999,Va,3,t);case 35:return Le(e,1,9999,Va,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 Ce(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Ce(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ae(e,"零一二三四五六七八九",Pa,"負",n,oe|le|nt);case 47:return ae(e,"零壹貳參肆伍陸柒捌玖",Xa,"負",n,Ke|oe|le|nt);case 42:return ae(e,"零一二三四五六七八九",Pa,"负",n,oe|le|nt);case 41:return ae(e,"零壹贰叁肆伍陆柒捌玖",Xa,"负",n,Ke|oe|le|nt);case 26:return ae(e,"〇一二三四五六七八九","十百千万",Ja,n,0);case 25:return ae(e,"零壱弐参四伍六七八九","拾百千万",Ja,n,Ke|oe|le);case 31:return ae(e,"영일이삼사오육칠팔구","십백천만",Zr,a,Ke|oe|le);case 33:return ae(e,"零一二三四五六七八九","十百千萬",Zr,a,0);case 32:return ae(e,"零壹貳參四五六七八九","拾百千",Zr,a,Ke|oe|le);case 18:return FA(e,2406,2415,!0,t);case 20:return Le(e,1,19999,ld,3,t);case 21:return FA(e,2790,2799,!0,t);case 22:return FA(e,2662,2671,!0,t);case 22:return Le(e,1,10999,od,3,t);case 23:return Ce(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ce(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return FA(e,3302,3311,!0,t);case 28:return Ce(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Ce(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)}},Fi="data-html2canvas-ignore",Wa=(function(){function e(A,r,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=r,this.counters=new id,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=cd(A,r);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=A.defaultView.pageXOffset,i=A.defaultView.pageYOffset,o=n.contentWindow,l=o.document,c=Bd(n).then(function(){return OA(t,void 0,void 0,function(){var g,d;return kA(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(wd),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,d=this.clonedReferenceElement,typeof d>"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,ud(l)]:[3,4];case 3:u.sent(),u.label=4;case 4:return typeof g=="function"?[2,Promise.resolve().then(function(){return g(l,d)}).then(function(){return n})]:[2,n]}})})});return l.open(),l.write(fd(document.doctype)+"<html></html>"),hd(this.referenceElement.ownerDocument,a,i),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(A){if(xn(A,2))debugger;if(Qi(A))return this.createCanvasClone(A);if(Na(A))return this.createVideoClone(A);if(_a(A))return this.createStyleClone(A);var r=A.cloneNode(!1);return Ln(r)&&(Ln(A)&&A.currentSrc&&A.currentSrc!==A.src&&(r.src=A.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),Ga(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(A){var r=document.createElement("html2canvascustomelement");return zr(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,i){return i&&typeof i.cssText=="string"?a+i.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"),i=n.getContext("2d");if(i)if(!this.options.allowTaint&&a)i.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)}i.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){(!Oe(r)||!sd(r)&&!r.hasAttribute(Fi)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Oe(r)||!_a(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(Oe(a)&&vi(a)&&typeof a.assignedNodes=="function"){var i=a.assignedNodes();i.length&&i.forEach(function(o){return n.appendChildNode(r,o,t)})}else this.appendChildNode(r,a,t)},e.prototype.cloneNode=function(A,r){if(pi(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Oe(A)&&(Sn(A)||$t(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var a=t.getComputedStyle(A),i=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&Sn(n)&&(this.clonedReferenceElement=n),Pn(n)&&Qd(n);var l=this.counters.parse(new ba(this.context,a)),c=this.resolvePseudoContent(A,n,i,gt.BEFORE);Ga(A)&&(r=!0),Na(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||$t(A))&&!mi(A)||r)&&zr(a,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(Br(A)||dr(A))&&(Br(n)||dr(n))&&(n.value=A.value),n}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,r,t,n){var a=this;if(t){var i=t.content,o=r.ownerDocument;if(!(!o||!i||i==="none"||i==="-moz-alt-content"||t.display==="none")){this.counters.parse(new ba(this.context,t));var l=new tB(this.context,t),c=o.createElement("html2canvaspseudoelement");zr(t,c),l.content.forEach(function(d){if(d.type===0)c.appendChild(o.createTextNode(d.value));else if(d.type===22){var u=o.createElement("img");u.src=d.value,u.style.opacity="1",c.appendChild(u)}else if(d.type===18){if(d.name==="attr"){var p=d.values.filter(BA);p.length&&c.appendChild(o.createTextNode(A.getAttribute(p[0].value)||""))}else if(d.name==="counter"){var v=d.values.filter(je),Q=v[0],x=v[1];if(Q&&BA(Q)){var U=a.counters.getCounterValue(Q.value),F=x&&BA(x)?yn.parse(a.context,x.value):3;c.appendChild(o.createTextNode(ht(U,F,!1)))}}else if(d.name==="counters"){var L=d.values.filter(je),Q=L[0],k=L[1],x=L[2];if(Q&&BA(Q)){var y=a.counters.getCounterValues(Q.value),w=x&&BA(x)?yn.parse(a.context,x.value):3,I=k&&k.type===0?k.value:"",K=y.map(function(T){return ht(T,w,!1)}).join(I);c.appendChild(o.createTextNode(K))}}}else if(d.type===20)switch(d.value){case"open-quote":c.appendChild(o.createTextNode(Fa(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(Fa(l.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(d.value))}}),c.className=kn+" "+Mn;var g=n===gt.BEFORE?" "+kn:" "+Mn;return $t(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 cd=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(Fi,"true"),e.body.appendChild(r),r},gd=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},ud=function(e){return Promise.all([].slice.call(e.images,0).map(gd))},Bd=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)}})},dd=["all","d","content"],zr=function(e,A){for(var r=e.length-1;r>=0;r--){var t=e.item(r);dd.indexOf(t)===-1&&A.style.setProperty(t,e.getPropertyValue(t))}return A},fd=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},hd=function(e,A,r){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,r)},wd=function(e){var A=e[0],r=e[1],t=e[2];A.scrollLeft=r,A.scrollTop=t},pd=":before",Cd=":after",kn="___html2canvas___pseudoelement_before",Mn="___html2canvas___pseudoelement_after",Ya=`{- content: "" !important;- display: none !important;-}`,Qd=function(e){md(e,"."+kn+pd+Ya+`- .`+Mn+Cd+Ya)},md=function(e,A){var r=e.ownerDocument;if(r){var t=r.createElement("style");t.textContent=A,e.appendChild(t)}},bi=(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})(),vd=(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)||($r(A)||Ed(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,i=this;return kA(this,function(o){switch(o.label){case 0:return r=bi.isSameOrigin(A),t=!qr(A)&&this._options.useCORS===!0&&HA.SUPPORT_CORS_IMAGES&&!r,n=!qr(A)&&!r&&!$r(A)&&typeof this._options.proxy=="string"&&HA.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!qr(A)&&!$r(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,(yd(a)||t)&&(g.crossOrigin="anonymous"),g.src=a,g.complete===!0&&setTimeout(function(){return l(g)},500),i._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._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,i){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 d=new FileReader;d.addEventListener("load",function(){return a(d.result)},!1),d.addEventListener("error",function(u){return i(u)},!1),d.readAsDataURL(l.response)}else i("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=i;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 i("Timed out ("+g+"ms) proxying "+n)}}l.send()})},e})(),Ud=/^data:image\/svg\+xml/i,Fd=/^data:image\/.*;base64,/i,bd=/^data:image\/.*/i,Ed=function(e){return HA.SUPPORT_SVG_DRAWING||!xd(e)},qr=function(e){return bd.test(e)},yd=function(e){return Fd.test(e)},$r=function(e){return e.substr(0,4)==="blob"},xd=function(e){return e.substr(-3).toLowerCase()==="svg"||Ud.test(e)},j=(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})(),ke=function(e,A,r){return new j(e.x+(A.x-e.x)*r,e.y+(A.y-e.y)*r)},Pt=(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=ke(this.start,this.startControl,A),n=ke(this.startControl,this.endControl,A),a=ke(this.endControl,this.end,A),i=ke(t,n,A),o=ke(n,a,A),l=ke(i,o,A);return r?new e(this.start,t,i,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},Id=(function(){function e(A){var r=A.styles,t=A.bounds,n=tt(r.borderTopLeftRadius,t.width,t.height),a=n[0],i=n[1],o=tt(r.borderTopRightRadius,t.width,t.height),l=o[0],c=o[1],g=tt(r.borderBottomRightRadius,t.width,t.height),d=g[0],u=g[1],p=tt(r.borderBottomLeftRadius,t.width,t.height),v=p[0],Q=p[1],x=[];x.push((a+l)/t.width),x.push((v+d)/t.width),x.push((i+Q)/t.height),x.push((c+u)/t.height);var U=Math.max.apply(Math,x);U>1&&(a/=U,i/=U,l/=U,c/=U,d/=U,u/=U,v/=U,Q/=U);var F=t.width-l,L=t.height-u,k=t.width-d,y=t.height-Q,w=r.borderTopWidth,I=r.borderRightWidth,K=r.borderBottomWidth,M=r.borderLeftWidth,O=wA(r.paddingTop,A.bounds.width),T=wA(r.paddingRight,A.bounds.width),X=wA(r.paddingBottom,A.bounds.width),R=wA(r.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||i>0?QA(t.left+M/3,t.top+w/3,a-M/3,i-w/3,uA.TOP_LEFT):new j(t.left+M/3,t.top+w/3),this.topRightBorderDoubleOuterBox=a>0||i>0?QA(t.left+F,t.top+w/3,l-I/3,c-w/3,uA.TOP_RIGHT):new j(t.left+t.width-I/3,t.top+w/3),this.bottomRightBorderDoubleOuterBox=d>0||u>0?QA(t.left+k,t.top+L,d-I/3,u-K/3,uA.BOTTOM_RIGHT):new j(t.left+t.width-I/3,t.top+t.height-K/3),this.bottomLeftBorderDoubleOuterBox=v>0||Q>0?QA(t.left+M/3,t.top+y,v-M/3,Q-K/3,uA.BOTTOM_LEFT):new j(t.left+M/3,t.top+t.height-K/3),this.topLeftBorderDoubleInnerBox=a>0||i>0?QA(t.left+M*2/3,t.top+w*2/3,a-M*2/3,i-w*2/3,uA.TOP_LEFT):new j(t.left+M*2/3,t.top+w*2/3),this.topRightBorderDoubleInnerBox=a>0||i>0?QA(t.left+F,t.top+w*2/3,l-I*2/3,c-w*2/3,uA.TOP_RIGHT):new j(t.left+t.width-I*2/3,t.top+w*2/3),this.bottomRightBorderDoubleInnerBox=d>0||u>0?QA(t.left+k,t.top+L,d-I*2/3,u-K*2/3,uA.BOTTOM_RIGHT):new j(t.left+t.width-I*2/3,t.top+t.height-K*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||Q>0?QA(t.left+M*2/3,t.top+y,v-M*2/3,Q-K*2/3,uA.BOTTOM_LEFT):new j(t.left+M*2/3,t.top+t.height-K*2/3),this.topLeftBorderStroke=a>0||i>0?QA(t.left+M/2,t.top+w/2,a-M/2,i-w/2,uA.TOP_LEFT):new j(t.left+M/2,t.top+w/2),this.topRightBorderStroke=a>0||i>0?QA(t.left+F,t.top+w/2,l-I/2,c-w/2,uA.TOP_RIGHT):new j(t.left+t.width-I/2,t.top+w/2),this.bottomRightBorderStroke=d>0||u>0?QA(t.left+k,t.top+L,d-I/2,u-K/2,uA.BOTTOM_RIGHT):new j(t.left+t.width-I/2,t.top+t.height-K/2),this.bottomLeftBorderStroke=v>0||Q>0?QA(t.left+M/2,t.top+y,v-M/2,Q-K/2,uA.BOTTOM_LEFT):new j(t.left+M/2,t.top+t.height-K/2),this.topLeftBorderBox=a>0||i>0?QA(t.left,t.top,a,i,uA.TOP_LEFT):new j(t.left,t.top),this.topRightBorderBox=l>0||c>0?QA(t.left+F,t.top,l,c,uA.TOP_RIGHT):new j(t.left+t.width,t.top),this.bottomRightBorderBox=d>0||u>0?QA(t.left+k,t.top+L,d,u,uA.BOTTOM_RIGHT):new j(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=v>0||Q>0?QA(t.left,t.top+y,v,Q,uA.BOTTOM_LEFT):new j(t.left,t.top+t.height),this.topLeftPaddingBox=a>0||i>0?QA(t.left+M,t.top+w,Math.max(0,a-M),Math.max(0,i-w),uA.TOP_LEFT):new j(t.left+M,t.top+w),this.topRightPaddingBox=l>0||c>0?QA(t.left+Math.min(F,t.width-I),t.top+w,F>t.width+I?0:Math.max(0,l-I),Math.max(0,c-w),uA.TOP_RIGHT):new j(t.left+t.width-I,t.top+w),this.bottomRightPaddingBox=d>0||u>0?QA(t.left+Math.min(k,t.width-M),t.top+Math.min(L,t.height-K),Math.max(0,d-I),Math.max(0,u-K),uA.BOTTOM_RIGHT):new j(t.left+t.width-I,t.top+t.height-K),this.bottomLeftPaddingBox=v>0||Q>0?QA(t.left+M,t.top+Math.min(y,t.height-K),Math.max(0,v-M),Math.max(0,Q-K),uA.BOTTOM_LEFT):new j(t.left+M,t.top+t.height-K),this.topLeftContentBox=a>0||i>0?QA(t.left+M+R,t.top+w+O,Math.max(0,a-(M+R)),Math.max(0,i-(w+O)),uA.TOP_LEFT):new j(t.left+M+R,t.top+w+O),this.topRightContentBox=l>0||c>0?QA(t.left+Math.min(F,t.width+M+R),t.top+w+O,F>t.width+M+R?0:l-M+R,c-(w+O),uA.TOP_RIGHT):new j(t.left+t.width-(I+T),t.top+w+O),this.bottomRightContentBox=d>0||u>0?QA(t.left+Math.min(k,t.width-(M+R)),t.top+Math.min(L,t.height+w+O),Math.max(0,d-(I+T)),u-(K+X),uA.BOTTOM_RIGHT):new j(t.left+t.width-(I+T),t.top+t.height-(K+X)),this.bottomLeftContentBox=v>0||Q>0?QA(t.left+M+R,t.top+y,Math.max(0,v-(M+R)),Q-(K+X),uA.BOTTOM_LEFT):new j(t.left+M+R,t.top+t.height-(K+X))}return e})(),uA;(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"})(uA||(uA={}));var QA=function(e,A,r,t,n){var a=4*((Math.sqrt(2)-1)/3),i=r*a,o=t*a,l=e+r,c=A+t;switch(n){case uA.TOP_LEFT:return new Pt(new j(e,c),new j(e,c-o),new j(l-i,A),new j(l,A));case uA.TOP_RIGHT:return new Pt(new j(e,A),new j(e+i,A),new j(l,c-o),new j(l,c));case uA.BOTTOM_RIGHT:return new Pt(new j(l,A),new j(l,A+o),new j(e+i,c),new j(e,c));case uA.BOTTOM_LEFT:default:return new Pt(new j(l,c),new j(l-i,c),new j(e,A+o),new j(e,A))}},fr=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Hd=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},hr=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Sd=(function(){function e(A,r,t){this.offsetX=A,this.offsetY=r,this.matrix=t,this.type=0,this.target=6}return e})(),Xt=(function(){function e(A,r){this.path=A,this.target=r,this.type=1}return e})(),Ld=(function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e})(),kd=function(e){return e.type===0},Ei=function(e){return e.type===1},Md=function(e){return e.type===2},Za=function(e,A){return e.length===A.length?e.some(function(r,t){return r===A[t]}):!1},Kd=function(e,A,r,t,n){return e.map(function(a,i){switch(i){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})},yi=(function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),xi=(function(){function e(A,r){if(this.container=A,this.parent=r,this.effects=[],this.curves=new Id(this.container),this.container.styles.opacity<1&&this.effects.push(new Ld(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 Sd(t,n,a))}if(this.container.styles.overflowX!==0){var i=fr(this.curves),o=hr(this.curves);Za(i,o)?this.effects.push(new Xt(i,6)):(this.effects.push(new Xt(i,2)),this.effects.push(new Xt(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!Ei(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 i=fr(t.curves),o=hr(t.curves);Za(i,o)||n.unshift(new Xt(o,6))}}else n.unshift.apply(n,a);t=t.parent}return n.filter(function(l){return yA(l.target,A)})},e})(),Kn=function(e,A,r,t){e.container.elements.forEach(function(n){var a=yA(n.flags,4),i=yA(n.flags,2),o=new xi(n,e);yA(n.styles.display,2048)&&t.push(o);var l=yA(n.flags,8)?[]:t;if(a||i){var c=a||n.styles.isPositioned()?r:A,g=new yi(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var u=0;c.negativeZIndex.some(function(v,Q){return d>v.element.container.styles.zIndex.order?(u=Q,!1):u>0}),c.negativeZIndex.splice(u,0,g)}else if(d>0){var p=0;c.positiveZIndex.some(function(v,Q){return d>=v.element.container.styles.zIndex.order?(p=Q+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);Kn(o,g,a?g:r,l)}else n.styles.isInlineLevel()?A.inlineLevel.push(o):A.nonInlineLevel.push(o),Kn(o,A,r,l);yA(n.flags,8)&&Ii(n,l)})},Ii=function(e,A){for(var r=e instanceof Hn?e.start:1,t=e instanceof Hn?e.reversed:!1,n=0;n<A.length;n++){var a=A[n];a.container instanceof ui&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=ht(r,a.container.styles.listStyleType,!0),r+=t?-1:1}},Td=function(e){var A=new xi(e,null),r=new yi(A),t=[];return Kn(A,r,r,t),Ii(A.container,t),r},za=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)}},Dd=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)}},Od=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)}},Rd=function(e,A){switch(A){case 0:return Jt(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Jt(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Jt(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Jt(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Jt=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},Hi=function(e){var A=e.bounds,r=e.styles;return A.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},wr=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),i=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+i))},Nd=function(e,A){return e===0?A.bounds:e===2?wr(A):Hi(A)},_d=function(e,A){return e===0?A.bounds:e===2?wr(A):Hi(A)},An=function(e,A,r){var t=Nd(Te(e.styles.backgroundOrigin,A),e),n=_d(Te(e.styles.backgroundClip,A),e),a=Gd(Te(e.styles.backgroundSize,A),r,t),i=a[0],o=a[1],l=tt(Te(e.styles.backgroundPosition,A),t.width-i,t.height-o),c=jd(Te(e.styles.backgroundRepeat,A),l,a,t,n),g=Math.round(t.left+l[0]),d=Math.round(t.top+l[1]);return[c,g,d,i,o]},Me=function(e){return BA(e)&&e.value===Ne.AUTO},Wt=function(e){return typeof e=="number"},Gd=function(e,A,r){var t=A[0],n=A[1],a=A[2],i=e[0],o=e[1];if(!i)return[0,0];if(EA(i)&&o&&EA(o))return[wA(i,r.width),wA(o,r.height)];var l=Wt(a);if(BA(i)&&(i.value===Ne.CONTAIN||i.value===Ne.COVER)){if(Wt(a)){var c=r.width/r.height;return c<a!=(i.value===Ne.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var g=Wt(t),d=Wt(n),u=g||d;if(Me(i)&&(!o||Me(o))){if(g&&d)return[t,n];if(!l&&!u)return[r.width,r.height];if(u&&l){var p=g?t:n*a,v=d?n:t/a;return[p,v]}var Q=g?t:r.width,x=d?n:r.height;return[Q,x]}if(l){var U=0,F=0;return EA(i)?U=wA(i,r.width):EA(o)&&(F=wA(o,r.height)),Me(i)?U=F*a:(!o||Me(o))&&(F=U/a),[U,F]}var L=null,k=null;if(EA(i)?L=wA(i,r.width):o&&EA(o)&&(k=wA(o,r.height)),L!==null&&(!o||Me(o))&&(k=g&&d?L/t*n:r.height),k!==null&&Me(i)&&(L=g&&d?k/n*t:r.width),L!==null&&k!==null)return[L,k];throw new Error("Unable to calculate background-size for element")},Te=function(e,A){var r=e[A];return typeof r>"u"?e[0]:r},jd=function(e,A,r,t,n){var a=A[0],i=A[1],o=r[0],l=r[1];switch(e){case 2:return[new j(Math.round(t.left),Math.round(t.top+i)),new j(Math.round(t.left+t.width),Math.round(t.top+i)),new j(Math.round(t.left+t.width),Math.round(l+t.top+i)),new j(Math.round(t.left),Math.round(l+t.top+i))];case 3:return[new j(Math.round(t.left+a),Math.round(t.top)),new j(Math.round(t.left+a+o),Math.round(t.top)),new j(Math.round(t.left+a+o),Math.round(t.height+t.top)),new j(Math.round(t.left+a),Math.round(t.height+t.top))];case 1:return[new j(Math.round(t.left+a),Math.round(t.top+i)),new j(Math.round(t.left+a+o),Math.round(t.top+i)),new j(Math.round(t.left+a+o),Math.round(t.top+i+l)),new j(Math.round(t.left+a),Math.round(t.top+i+l))];default:return[new j(Math.round(n.left),Math.round(n.top)),new j(Math.round(n.left+n.width),Math.round(n.top)),new j(Math.round(n.left+n.width),Math.round(n.height+n.top)),new j(Math.round(n.left),Math.round(n.height+n.top))]}},Vd="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",qa="Hidden Text",Pd=(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"),i=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",i.appendChild(t),n.src=Vd,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(qa)),t.appendChild(a),t.appendChild(n);var o=n.offsetTop-a.offsetTop+2;t.removeChild(a),t.appendChild(this._document.createTextNode(qa)),t.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-t.offsetTop+2;return i.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})(),Si=(function(){function e(A,r){this.context=A,this.options=r}return e})(),Xd=1e4,Jd=(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 Pd(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(),Md(r)&&(this.ctx.globalAlpha=r.opacity),kd(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)),Ei(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(yA(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 i=jn(r.text);i.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(i){return i==="normal"||i==="small-caps"}).join(""),n=qd(r.fontFamily).join(", "),a=vt(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,i,o,l,c,g,d,u=this;return kA(this,function(p){return n=this.createFontStyle(t),a=n[0],i=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(i,o),c=l.baseline,g=l.middle,d=t.paintOrder,r.textBounds.forEach(function(v){d.forEach(function(Q){switch(Q){case 0:u.ctx.fillStyle=xA(t.color),u.renderTextWithLetterSpacing(v,t.letterSpacing,c);var x=t.textShadow;x.length&&v.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(v,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(v.bounds.left,Math.round(v.bounds.top+c),v.bounds.width,1);break;case 2:u.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:u.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+g),v.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&v.text.trim().length&&(u.ctx.strokeStyle=xA(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(v.text,v.bounds.left,v.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=wr(r),i=hr(t);this.path(i),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,i,o,l,F,F,c,g,d,u,k,p,v,y,Q,x,U,F,L,k,y;return kA(this,function(w){switch(w.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,n=r.curves,a=t.styles,i=0,o=t.textNodes,w.label=1;case 1:return i<o.length?(l=o[i],[4,this.renderTextNode(l,a)]):[3,4];case 2:w.sent(),w.label=3;case 3:return i++,[3,1];case 4:if(!(t instanceof li))return[3,8];w.label=5;case 5:return w.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return F=w.sent(),this.renderReplacedElement(t,n,F),[3,8];case 7:return w.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof ci&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof gi))return[3,12];w.label=9;case 9:return w.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return F=w.sent(),this.renderReplacedElement(t,n,F),[3,12];case 11:return w.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof fi&&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=w.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),w.label=14;case 14:if(t instanceof Vn&&(d=Math.min(t.bounds.width,t.bounds.height),t.type===gr?t.checked&&(this.ctx.save(),this.path([new j(t.bounds.left+d*.39363,t.bounds.top+d*.79),new j(t.bounds.left+d*.16,t.bounds.top+d*.5549),new j(t.bounds.left+d*.27347,t.bounds.top+d*.44071),new j(t.bounds.left+d*.39694,t.bounds.top+d*.5649),new j(t.bounds.left+d*.72983,t.bounds.top+d*.23),new j(t.bounds.left+d*.84,t.bounds.top+d*.34085),new j(t.bounds.left+d*.39363,t.bounds.top+d*.79)]),this.ctx.fillStyle=xA(Ra),this.ctx.fill(),this.ctx.restore()):t.type===ur&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+d/2,t.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=xA(Ra),this.ctx.fill(),this.ctx.restore())),Wd(t)&&t.value.length){switch(u=this.createFontStyle(a),k=u[0],p=u[1],v=this.fontMetrics.getMetrics(k,p).baseline,this.ctx.font=k,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Zd(t.styles.textAlign),y=wr(t),Q=0,t.styles.textAlign){case 1:Q+=y.width/2;break;case 2:Q+=y.width;break}x=y.add(Q,0,0,-y.height/2+1),this.ctx.save(),this.path([new j(y.left,y.top),new j(y.left+y.width,y.top),new j(y.left+y.width,y.top+y.height),new j(y.left,y.top+y.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ct(t.value,x),a.letterSpacing,v),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!yA(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];F=void 0,L=U.url,w.label=15;case 15:return w.trys.push([15,17,,18]),[4,this.context.cache.match(L)];case 16:return F=w.sent(),this.ctx.drawImage(F,t.bounds.left-(F.width+10),t.bounds.top),[3,18];case 17:return w.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&&(k=this.createFontStyle(a)[0],this.ctx.font=k,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",y=new ie(t.bounds.left,t.bounds.top+wA(t.styles.paddingTop,t.bounds.width),t.bounds.width,va(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ct(r.listValue,y),a.letterSpacing,va(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),w.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(r){return OA(this,void 0,void 0,function(){var t,n,U,a,i,U,o,l,U,c,g,U,d,u,U,p,v,U,Q,x,U;return kA(this,function(F){switch(F.label){case 0:if(yA(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:F.sent(),t=0,n=r.negativeZIndex,F.label=2;case 2:return t<n.length?(U=n[t],[4,this.renderStack(U)]):[3,5];case 3:F.sent(),F.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:F.sent(),a=0,i=r.nonInlineLevel,F.label=7;case 7:return a<i.length?(U=i[a],[4,this.renderNode(U)]):[3,10];case 8:F.sent(),F.label=9;case 9:return a++,[3,7];case 10:o=0,l=r.nonPositionedFloats,F.label=11;case 11:return o<l.length?(U=l[o],[4,this.renderStack(U)]):[3,14];case 12:F.sent(),F.label=13;case 13:return o++,[3,11];case 14:c=0,g=r.nonPositionedInlineLevel,F.label=15;case 15:return c<g.length?(U=g[c],[4,this.renderStack(U)]):[3,18];case 16:F.sent(),F.label=17;case 17:return c++,[3,15];case 18:d=0,u=r.inlineLevel,F.label=19;case 19:return d<u.length?(U=u[d],[4,this.renderNode(U)]):[3,22];case 20:F.sent(),F.label=21;case 21:return d++,[3,19];case 22:p=0,v=r.zeroOrAutoZIndexOrTransformedOrOpacity,F.label=23;case 23:return p<v.length?(U=v[p],[4,this.renderStack(U)]):[3,26];case 24:F.sent(),F.label=25;case 25:return p++,[3,23];case 26:Q=0,x=r.positiveZIndex,F.label=27;case 27:return Q<x.length?(U=x[Q],[4,this.renderStack(U)]):[3,30];case 28:F.sent(),F.label=29;case 29:return Q++,[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 i=PA(n)?n.start:n;a===0?t.ctx.moveTo(i.x,i.y):t.ctx.lineTo(i.x,i.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 i=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=i.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,i,o,l;return kA(this,function(c){switch(c.label){case 0:t=r.styles.backgroundImage.length-1,n=function(g){var d,u,p,O,eA,AA,R,W,K,v,O,eA,AA,R,W,Q,x,U,F,L,k,y,w,I,K,M,O,T,X,R,W,$,eA,AA,fA,sA,z,cA,iA,S,_,N;return kA(this,function(Y){switch(Y.label){case 0:if(g.type!==0)return[3,5];d=void 0,u=g.url,Y.label=1;case 1:return Y.trys.push([1,3,,4]),[4,a.context.cache.match(u)];case 2:return d=Y.sent(),[3,4];case 3:return Y.sent(),a.context.logger.error("Error loading background-image "+u),[3,4];case 4:return d&&(p=An(r,t,[d.width,d.height,d.width/d.height]),O=p[0],eA=p[1],AA=p[2],R=p[3],W=p[4],K=a.ctx.createPattern(a.resizeImage(d,R,W),"repeat"),a.renderRepeat(O,K,eA,AA)),[3,6];case 5:kg(g)?(v=An(r,t,[null,null,null]),O=v[0],eA=v[1],AA=v[2],R=v[3],W=v[4],Q=xg(g.angle,R,W),x=Q[0],U=Q[1],F=Q[2],L=Q[3],k=Q[4],y=document.createElement("canvas"),y.width=R,y.height=W,w=y.getContext("2d"),I=w.createLinearGradient(U,L,F,k),Qa(g.stops,x).forEach(function(gA){return I.addColorStop(gA.stop,xA(gA.color))}),w.fillStyle=I,w.fillRect(0,0,R,W),R>0&&W>0&&(K=a.ctx.createPattern(y,"repeat"),a.renderRepeat(O,K,eA,AA))):Mg(g)&&(M=An(r,t,[null,null,null]),O=M[0],T=M[1],X=M[2],R=M[3],W=M[4],$=g.position.length===0?[Nn]:g.position,eA=wA($[0],R),AA=wA($[$.length-1],W),fA=Ig(g,eA,AA,R,W),sA=fA[0],z=fA[1],sA>0&&z>0&&(cA=a.ctx.createRadialGradient(T+eA,X+AA,0,T+eA,X+AA,sA),Qa(g.stops,sA*2).forEach(function(gA){return cA.addColorStop(gA.stop,xA(gA.color))}),a.path(O),a.ctx.fillStyle=cA,sA!==z?(iA=r.bounds.left+.5*r.bounds.width,S=r.bounds.top+.5*r.bounds.height,_=z/sA,N=1/_,a.ctx.save(),a.ctx.translate(iA,S),a.ctx.transform(1,0,0,_,0,0),a.ctx.translate(-iA,-S),a.ctx.fillRect(T,N*(X-S)+S,R,W*N),a.ctx.restore()):a.ctx.fill())),Y.label=6;case 6:return t--,[2]}})},a=this,i=0,o=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return i<o.length?(l=o[i],[5,n(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return i++,[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(za(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 i,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 i=Dd(a,n),this.path(i),this.ctx.fillStyle=xA(r),this.ctx.fill(),o=Od(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,i,o,l,c,g,d=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}],i=Yd(Te(t.backgroundClip,0),r.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(i),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){d.ctx.save();var v=fr(r.curves),Q=p.inset?0:Xd,x=Kd(v,-Q+(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?(d.path(v),d.ctx.clip(),d.mask(x)):(d.mask(v),d.ctx.clip(),d.path(x)),d.ctx.shadowOffsetX=p.offsetX.number+Q,d.ctx.shadowOffsetY=p.offsetY.number,d.ctx.shadowColor=xA(p.color),d.ctx.shadowBlur=p.blur.number,d.ctx.fillStyle=p.inset?xA(p.color):"rgba(0,0,0,1)",d.ctx.fill(),d.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,i){return OA(this,void 0,void 0,function(){var o,l,c,g,d,u,p,v,Q,x,U,F,L,k,y,w,y,w;return kA(this,function(I){return this.ctx.save(),o=Rd(a,n),l=za(a,n),i===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])?(d=l[1].end.x,u=l[1].end.y):(d=l[1].x,u=l[1].y),n===0||n===2?p=Math.abs(c-d):p=Math.abs(g-u),this.ctx.beginPath(),i===3?this.formatPath(o):this.formatPath(l.slice(0,2)),v=t<3?t*3:t*2,Q=t<3?t*2:t,i===3&&(v=t,Q=t),x=!0,p<=v*2?x=!1:p<=v*2+Q?(U=p/(2*v+Q),v*=U,Q*=U):(F=Math.floor((p+Q)/(v+Q)),L=(p-F*v)/(F-1),k=(p-(F+1)*v)/F,Q=k<=0||Math.abs(Q-L)<Math.abs(Q-k)?L:k),x&&(i===3?this.ctx.setLineDash([0,v+Q]):this.ctx.setLineDash([v,Q])),i===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([]),i===2&&(PA(l[0])&&(y=l[3],w=l[0],this.ctx.beginPath(),this.formatPath([new j(y.end.x,y.end.y),new j(w.start.x,w.start.y)]),this.ctx.stroke()),PA(l[1])&&(y=l[1],w=l[2],this.ctx.beginPath(),this.formatPath([new j(y.end.x,y.end.y),new j(w.start.x,w.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=Td(r),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A})(Si),Wd=function(e){return e instanceof di||e instanceof Bi?!0:e instanceof Vn&&e.type!==ur&&e.type!==gr},Yd=function(e,A){switch(e){case 0:return fr(A);case 2:return Hd(A);default:return hr(A)}},Zd=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},zd=["-apple-system","system-ui"],qd=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return zd.indexOf(A)===-1}):e},$d=(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=In(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,Af(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})(Si),Af=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))})},ef=(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,Et([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,Et([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,Et([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,Et([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e})(),tf=(function(){function e(A,r){var t;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new ef({id:this.instanceName,enabled:A.logging}),this.cache=(t=A.cache)!==null&&t!==void 0?t:new vd(this,A)}return e.instanceCount=1,e})(),rf=function(e,A){return A===void 0&&(A={}),nf(e,A)};typeof window<"u"&&bi.setContext(window);var nf=function(e,A){return OA(void 0,void 0,void 0,function(){var r,t,n,a,i,o,l,c,g,d,u,p,v,Q,x,U,F,L,k,y,I,w,I,K,M,O,T,X,R,W,$,eA,AA,fA,sA,z,cA,iA,S,_;return kA(this,function(N){switch(N.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:(K=A.allowTaint)!==null&&K!==void 0?K:!1,imageTimeout:(M=A.imageTimeout)!==null&&M!==void 0?M:15e3,proxy:A.proxy,useCORS:(O=A.useCORS)!==null&&O!==void 0?O:!1},a=dn({logging:(T=A.logging)!==null&&T!==void 0?T:!0,cache:A.cache},n),i={windowWidth:(X=A.windowWidth)!==null&&X!==void 0?X:t.innerWidth,windowHeight:(R=A.windowHeight)!==null&&R!==void 0?R:t.innerHeight,scrollX:(W=A.scrollX)!==null&&W!==void 0?W:t.pageXOffset,scrollY:($=A.scrollY)!==null&&$!==void 0?$:t.pageYOffset},o=new ie(i.scrollX,i.scrollY,i.windowWidth,i.windowHeight),l=new tf(a,o),c=(eA=A.foreignObjectRendering)!==null&&eA!==void 0?eA:!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),d=new Wa(l,e,g),u=d.clonedReferenceElement,u?[4,d.toIFrame(r,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=N.sent(),v=Pn(u)||ad(u)?Kl(u.ownerDocument):Qr(l,u),Q=v.width,x=v.height,U=v.left,F=v.top,L=af(l,u,A.backgroundColor),k={canvas:A.canvas,backgroundColor:L,scale:(sA=(fA=A.scale)!==null&&fA!==void 0?fA:t.devicePixelRatio)!==null&&sA!==void 0?sA:1,x:((z=A.x)!==null&&z!==void 0?z:0)+U,y:((cA=A.y)!==null&&cA!==void 0?cA:0)+F,width:(iA=A.width)!==null&&iA!==void 0?iA:Math.ceil(Q),height:(S=A.height)!==null&&S!==void 0?S:Math.ceil(x)},c?(l.logger.debug("Document cloned, using foreign object rendering"),I=new $d(l,k),[4,I.render(u)]):[3,3];case 2:return y=N.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+U+","+F+" with size "+Q+"x"+x+" using computed rendering"),l.logger.debug("Starting DOM parsing"),w=wi(l,u),L===w.styles.backgroundColor&&(w.styles.backgroundColor=se.TRANSPARENT),l.logger.debug("Starting renderer for element at "+k.x+","+k.y+" with size "+k.width+"x"+k.height),I=new Jd(l,k),[4,I.render(w)];case 4:y=N.sent(),N.label=5;case 5:return(!((_=A.removeContainer)!==null&&_!==void 0)||_)&&(Wa.destroy(p)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,y]}})})},af=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,i=typeof r=="string"?ot(e,r):r===null?se.TRANSPARENT:4294967295;return A===t.documentElement?we(n)?we(a)?i:a:n:i},en={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)},sf={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"}},of=function(e,A){var r=IA({},sf);if(e)for(var t in en)Object.prototype.hasOwnProperty.call(en,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),en[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},$a=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)},Yt=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)},lf=function(e){var A=e.color,r=dA().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"}))},cf=function(e){var A=e.onSelect,r=dA().defaultStyles,t=b.useState(null),n=t[0],a=t[1],i=b.useState(!1),o=i[0],l=i[1],c=b.useState(!1),g=c[0],d=c[1],u=function(){var Q=document.getElementById("root");l(!0),rf(Q).then(function(x){var U=document.createElement("canvas"),F=U.getContext("2d",{willReadFrequently:!0});Q&&F&&(U.width=Q.offsetWidth*2,U.height=Q.offsetHeight*2,F.drawImage(x,0,0)),a(F)})},p=function(Q){if(Q.stopPropagation(),n){var x=Q.pageX,U=Q.pageY,F=x*2,L=U*2,k=n.getImageData(F,L,1,1).data;A("rgba(".concat(k[0],", ").concat(k[1],", ").concat(k[2],", 1)"))}d(!1),l(!1)},v=function(){if(d(!0),!window.EyeDropper)u();else{var Q=new window.EyeDropper,x=new window.AbortController;Q.open({signal:x.signal}).then(function(U){var F=SA(U.sRGBHex),L=F.toRgb(),k=L.r,y=L.g,w=L.b;A("rgba(".concat(k,", ").concat(y,", ").concat(w,", 1)")),d(!1)}).catch(function(U){console.log(U),d(!1)})}};return m.createElement("div",null,m.createElement("div",{onClick:v,id:"rbgcp-eyedropper-btn",style:$A($A({},r.rbgcpEyedropperBtn),ut(o,r))},m.createElement(lf,{color:g?"rgb(86, 140, 245)":""})),o&&m.createElement(Ml,null,m.createElement("div",{onClick:function(Q){return p(Q)},style:r.rbgcpEyedropperCover})))},Tn=function(){return Tn=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},Tn.apply(this,arguments)},tn=function(e){var A=e.value,r=e.reffy,t=e.label,n=e.config,a=e.callback,i=e.squareWidth,o=e.openAdvanced,l=e.defaultStyles,c=e.pickerIdSuffix,g=n.barSize,d=b.useState(!1),u=d[0],p=d[1],v=b.useState(2),Q=v[0],x=v[1],U=A*(i-18);b.useEffect(function(){var w;x(((w=r?.current)===null||w===void 0?void 0:w.offsetTop)-2)},[o,r]);var F=function(){p(!1)},L=function(w){u&&a(Ge(w,g))},k=function(w){u||a(Ge(w,g))},y=function(){p(!0)};return b.useEffect(function(){var w=function(){F()};return window.addEventListener("mouseup",w),function(){window.removeEventListener("mouseup",w)}},[]),m.createElement("div",{style:{width:"100%",padding:"3px 0px 3px 0px"}},m.createElement("div",{onMouseMove:function(w){return L(w)},style:{cursor:"resize",position:"relative"},id:"rbgcp-advanced-bar-".concat(t,"-wrapper").concat(c)},m.createElement("div",{style:Tn({left:U,top:Q},l.rbgcpHandle),id:"rbgcp-advanced-bar-".concat(t,"-handle").concat(c),onMouseDown:y,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:Q+2,zIndex:10,textShadow:"1px 1px 1px rgba(0,0,0,.6)"},id:"rbgcp-advanced-bar-".concat(t,"-label").concat(c),onMouseMove:function(w){return L(w)},onClick:function(w){return k(w)},tabIndex:0,role:"button",onKeyDown:function(){}},t),m.createElement("canvas",{ref:r,height:"14px",width:"".concat(i,"px"),onClick:function(w){return k(w)},style:{position:"relative",borderRadius:14},id:"rbgcp-advanced-bar-".concat(t,"-canvas").concat(c)})))},gf=function(e){var A=e.openAdvanced,r=dA(),t=r.config,n=r.tinyColor,a=r.handleChange,i=r.squareWidth,o=r.hc,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.toHsl(),d=g.s,u=g.l,p=b.useRef(null),v=b.useRef(null),Q=b.useRef(null);rl(p,o?.h,u*100,i),nl(v,o?.h,d*100,i),al(Q,o?.h,d*100,i);var x=function(L){var k=SA({h:o?.h,s:L/100,l:u}).toRgb(),y=k.r,w=k.g,I=k.b;a("rgba(".concat(y,",").concat(w,",").concat(I,",").concat(o?.a,")"))},U=function(L){var k=SA({h:o?.h,s:d,l:L/100}).toRgb(),y=k.r,w=k.g,I=k.b;a("rgba(".concat(y,",").concat(w,",").concat(I,",").concat(o?.a,")"))},F=function(L){var k=SA({h:o?.h,s:o?.s*100,v:L}).toRgb(),y=k.r,w=k.g,I=k.b;a("rgba(".concat(y,",").concat(w,",").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(tn,{value:d,reffy:p,config:t,label:"Saturation",callback:x,squareWidth:i,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),m.createElement(tn,{value:u,config:t,reffy:v,label:"Lightness",callback:U,squareWidth:i,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),m.createElement(tn,{value:o?.v,config:t,reffy:Q,label:"Brightness",callback:F,squareWidth:i,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c})))},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)},uf=function(e){var A=e.openComparibles,r=dA(),t=r.tinyColor,n=r.handleChange,a=r.defaultStyles,i=r.pickerIdSuffix,o=t.analogous(),l=t.monochromatic(),c=t.triad(),g=t.tetrad(),d=function(u){var p=u.toRgb(),v=p.r,Q=p.g,x=p.b,U=p.a;n("rgba(".concat(v,",").concat(Q,",").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(i)},m.createElement("div",{style:{paddingTop:11,display:A?"":"none",position:"relative"},id:"rbgcp-comparible-colors-inner".concat(i)},m.createElement("div",{style:Fe({textAlign:"center",fontSize:13,fontWeight:600,position:"absolute",top:6.5,left:2},a.rbgcpComparibleLabel),id:"rbgcp-comparible-color-guide-label".concat(i)},"Color Guide"),m.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-analogous-colors-label".concat(i)},"Analogous"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex"},id:"rbgcp-comparible-analogous-colors".concat(i)},o?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-analogous-color-".concat(p).concat(i),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return d(u)}})})),m.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-monochromatic-colors-label".concat(i)},"Monochromatic"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-monochromatic-colors".concat(i)},l?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-monochromatic-color-".concat(p).concat(i),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return d(u)}})})),m.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-triad-colors-label".concat(i)},"Triad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-triad-colors".concat(i)},c?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-triad-color-".concat(p).concat(i),style:{width:"calc(100% / 3)",height:28,background:u.toHexString()},onClick:function(){return d(u)}})})),m.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-tetrad-colors-label".concat(i)},"Tetrad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-tetrad-colors".concat(i)},g?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-tetrad-color-".concat(p).concat(i),style:{width:"25%",height:28,background:u.toHexString()},onClick:function(){return d(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)},Bf=function(){var e=dA(),A=e.gradientType,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,i=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),i&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(El,{color:i?"#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(yl,{color:o?"#568CF5":""})))},df=function(){var e=dA(),A=e.currentLeft,r=e.currentColor,t=e.defaultStyles,n=e.handleGradient,a=e.pickerIdSuffix,i=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(Ll,null),m.createElement("input",{value:A,id:"rbgcp-stop-input".concat(a),onChange:function(o){return i(o.target.value)},style:CA(CA({},t.rbgcpControlInput),t.rbgcpStopInput)}))},ff=function(){var e=dA(),A=e.degrees,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,i=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(Sl,null),m.createElement("input",{value:A,onChange:function(o){return i(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})},"°"))},hf=function(){var e=dA(),A=e.colors,r=e.selectedColor,t=e.createGradientStr,n=e.defaultStyles,a=e.pickerIdSuffix,i=function(){if(A?.length>2){var o=A?.map(function(c,g){return CA(CA({},c),{value:g===r-1?Cr(c):Qt(c)})}),l=o?.filter(function(c,g){return g!==r});t(l)}};return m.createElement("div",{onClick:i,style:CA(CA({},ut(!1,n)),{width:28}),id:"rbgcp-point-delete-btn".concat(a),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(bl,null))},As=function(e){var A=e.hideGradientType,r=e.hideGradientAngle,t=e.hideGradientStop,n=dA(),a=n.gradientType,i=n.defaultStyles,o=n.pickerIdSuffix;return m.createElement("div",{style:CA(CA({},i.rbgcpControlBtnWrapper),{marginTop:12,marginBottom:-4,justifyContent:"space-between",paddingLeft:A?4:0}),id:"rbgcp-gradient-controls-wrap".concat(o)},!A&&m.createElement(Bf,null),m.createElement("div",{style:{width:53}},!r&&a==="linear-gradient"&&m.createElement(ff,null)),!t&&m.createElement(df,null),m.createElement(hf,null))},wt=function(){return wt=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},wt.apply(this,arguments)},wf=function(e){var A,r,t=e.hideColorTypeBtns,n=e.setGradient,a=e.isGradient,i=e.setSolid,o=e.locales,l=dA(),c=l.defaultStyles,g=l.pickerIdSuffix;return t?m.createElement("div",{style:{width:1}}):m.createElement("div",{style:wt({display:"flex",alignItems:"center"},c.rbgcpControlBtnWrapper),id:"rbgcp-color-type-btns".concat(g)},m.createElement("div",{onClick:i,id:"rbgcp-solid-btn".concat(g),style:$a(!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:$a(a??!1,c)},(r=o?.CONTROLS)===null||r===void 0?void 0:r.GRADIENT))},pf=function(e){var A=e.openInputType,r=e.setOpenInputType,t=dA(),n=t.inputType,a=t.setInputType,i=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",d=function(u,p){A&&(u.stopPropagation(),a(p),r(!1))};return m.createElement("div",{style:wt({visibility:A?"visible":"hidden",zIndex:A?"":-100,opacity:A?1:0,transition:"".concat(g,", ").concat(l,", ").concat(c)},i.rbgcpColorModelDropdown),id:"rbgcp-color-model-dropdown".concat(o)},m.createElement("div",{id:"rbgcp-color-model-rgb-btn".concat(o),onClick:function(u){return d(u,"rgb")},style:Yt(n==="rgb",i)},"RGB"),m.createElement("div",{id:"rbgcp-color-model-hsl-btn".concat(o),onClick:function(u){return d(u,"hsl")},style:Yt(n==="hsl",i)},"HSL"),m.createElement("div",{id:"rbgcp-color-model-hsv-btn".concat(o),onClick:function(u){return d(u,"hsv")},style:Yt(n==="hsv",i)},"HSV"),m.createElement("div",{id:"rbgcp-color-model-cmyk-btn".concat(o),onClick:function(u){return d(u,"cmyk")},style:Yt(n==="cmyk",i)},"CMYK"))},Cf=function(e){var A,r,t=e.locales,n=e.hideEyeDrop,a=n===void 0?!1:n,i=e.hideAdvancedSliders,o=i===void 0?!1:i,l=e.hideColorGuide,c=l===void 0?!1:l,g=e.hideInputType,d=g===void 0?!1:g,u=e.hideColorTypeBtns,p=u===void 0?!1:u,v=e.hideGradientControls,Q=v===void 0?!1:v,x=e.hideGradientType,U=x===void 0?!1:x,F=e.hideGradientAngle,L=F===void 0?!1:F,k=e.hideGradientStop,y=k===void 0?!1:k,w=dA(),I=w.config,K=w.onChange,M=w.isGradient,O=w.handleChange,T=w.previous,X=w.defaultStyles,R=w.pickerIdSuffix,W=I.defaultColor,$=I.defaultGradient,eA=b.useState(!1),AA=eA[0],fA=eA[1],sA=b.useState(!1),z=sA[0],cA=sA[1],iA=b.useState(!1),S=iA[0],_=iA[1],N=a&&o&&c&&d,Y=(A=T?.color)!==null&&A!==void 0?A:W,gA=(r=T?.gradient)!==null&&r!==void 0?r:$,Z=function(){K(Y)},q=function(){K(gA)},tA=a&&o&&c&&d,H=tA&&p;return H?M&&!Q?m.createElement(As,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:y}):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(R)},m.createElement(wf,{hideColorTypeBtns:p,setGradient:q,isGradient:M,setSolid:Z,locales:t}),!tA&&m.createElement("div",{style:wt({display:N?"none":""},X.rbgcpControlBtnWrapper),id:"rbgcp-control-rightside-wrapper".concat(R)},!a&&m.createElement(cf,{onSelect:O}),!o&&m.createElement("div",{id:"rbgcp-advanced-btn".concat(R),onClick:function(){return _(!S)},style:ut(S,X)},m.createElement(xl,{color:S?"#568CF5":""})),!c&&m.createElement("div",{style:ut(AA,X),onClick:function(){return fA(!AA)},id:"rbgcp-comparibles-btn".concat(R)},m.createElement(Hl,{color:AA?"#568CF5":""})),!d&&m.createElement("div",{id:"rbgcp-color-model-btn".concat(R),onClick:function(){return cA(!z)},style:ut(z,X)},m.createElement(Il,{color:z?"#568CF5":""}),m.createElement(pf,{openInputType:z,setOpenInputType:cA})))),!o&&m.createElement(gf,{openAdvanced:S}),!c&&m.createElement(uf,{openComparibles:AA}),M&&!Q&&m.createElement(As,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:y}))},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)},es=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))},Qf=function(e){var A=e.left,r=e.i,t=e.setDragging,n=dA(),a=n.colors,i=n.squareWidth,o=n.selectedColor,l=n.defaultStyles,c=n.pickerIdSuffix,g=n.createGradientStr,d=o===r,u=(i-18)/100,p=function(Q){var x=a?.map(function(U,F){return Ae(Ae({},U),{value:F===Q?Cr(U):Qt(U)})});g(x)},v=function(Q){Q.stopPropagation(),p(r),t(!0)};return m.createElement("div",{onMouseDown:function(Q){return v(Q)},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),d?{boxShadow:"0px 0px 5px 1px rgba(86, 140, 245,.95)",border:"2px solid white"}:{}),id:"rbgcp-gradient-handle-".concat(r,"-dot").concat(c)},d&&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=dA(),A=e.value,r=e.colors,t=e.config,n=e.squareWidth,a=e.currentColor,i=e.handleGradient,o=e.pickerIdSuffix,l=e.createGradientStr,c=t.barSize,g=b.useState(!1),d=g[0],u=g[1];function p(L){return L.replace(/(radial|linear)-gradient\([^,]+,/,"linear-gradient(90deg,")}var v=function(L){var k,y=Ge(L,c),w=(k=es(es([],r.map(function(I){return Ae(Ae({},I),{value:Qt(I)})}),!0),[{value:a,left:y}],!1))===null||k===void 0?void 0:k.sort(function(I,K){return I.left-K.left});l(w)},Q=function(){u(!1)},x=function(L){d||(v(L),u(!0))},U=function(L){d&&i(a,Ge(L,c))},F=function(){Q()};return b.useEffect(function(){return window.addEventListener("mouseup",F),function(){window.removeEventListener("mouseup",F)}}),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,k){return m.createElement(Qf,{i:k,left:L.left,key:"".concat(k,"-").concat(L),setDragging:u})}))},vf=function(e){var A=e.locales,r=e.presets,t=e.hideHue,n=e.hideInputs,a=e.hidePresets,i=e.hideOpacity,o=e.hideEyeDrop,l=e.hideControls,c=e.hideInputType,g=e.hideColorGuide,d=e.hidePickerSquare,u=e.hideGradientType,p=e.hideGradientStop,v=e.hideGradientAngle,Q=e.hideColorTypeBtns,x=e.hideAdvancedSliders,U=e.hideGradientControls,F=dA(),L=F.isGradient,k=F.pickerIdSuffix;return m.createElement("div",{style:{userSelect:"none"},id:"rbgcp-color-picker".concat(k)},!d&&m.createElement(Ql,null),!l&&m.createElement(Cf,{locales:A,hideEyeDrop:o,hideInputType:c,hideColorGuide:g,hideGradientType:u,hideGradientStop:p,hideColorTypeBtns:Q,hideGradientAngle:v,hideAdvancedSliders:x,hideGradientControls:U}),L&&m.createElement(mf,null),!t&&m.createElement(sl,null),!i&&m.createElement(ml,null),!n&&m.createElement(fl,null),!a&&m.createElement(Fl,{presets:r}))},pr=function(){return pr=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},pr.apply(this,arguments)};function Uf(e){var A=e.idSuffix,r=e.value,t=r===void 0?"rgba(175, 51, 242, 1)":r,n=e.onChange,a=e.hideControls,i=a===void 0?!1:a,o=e.hideInputs,l=o===void 0?!1:o,c=e.hideOpacity,g=c===void 0?!1:c,d=e.hidePresets,u=d===void 0?!1:d,p=e.hideHue,v=p===void 0?!1:p,Q=e.presets,x=Q===void 0?[]:Q,U=e.hideEyeDrop,F=U===void 0?!1:U,L=e.hideAdvancedSliders,k=L===void 0?!1:L,y=e.hideColorGuide,w=y===void 0?!1:y,I=e.hideInputType,K=I===void 0?!1:I,M=e.hideColorTypeBtns,O=M===void 0?!1:M,T=e.hideGradientType,X=T===void 0?!1:T,R=e.hideGradientAngle,W=R===void 0?!1:R,$=e.hideGradientStop,eA=$===void 0?!1:$,AA=e.hideGradientControls,fA=AA===void 0?!1:AA,sA=e.locales,z=sA===void 0?vl:sA,cA=e.width,iA=cA===void 0?294:cA,S=e.height,_=S===void 0?294:S,N=e.style,Y=N===void 0?{}:N,gA=e.className,Z=e.disableDarkMode,q=Z===void 0?!1:Z,tA=e.disableLightMode,H=tA===void 0?!1:tA,P=e.hidePickerSquare,B=P===void 0?!1:P,C=e.showHexAlpha,h=C===void 0?!1:C,E=e.config,D=E===void 0?{}:E,G=Zo(t),aA=typeof window>"u"||q?!1:!!(window.matchMedia("(prefers-color-scheme: dark)").matches||H),hA=of(aA,Y),UA=aA?"-dark".concat(A?"-".concat(A):""):A?"-".concat(A):"";return m.createElement("div",{className:gA,style:pr(pr({},hA.body),{width:iA})},m.createElement(el,{value:G,onChange:n,squareWidth:iA,passedConfig:D,squareHeight:_,isDarkMode:aA,hideOpacity:g,showHexAlpha:h,defaultStyles:hA,pickerIdSuffix:UA},m.createElement(vf,{hideControls:i,hideInputs:l,hidePresets:u,hideOpacity:g,hideHue:v,presets:x,hideEyeDrop:F,hideAdvancedSliders:k,hideColorGuide:w,hideInputType:K,hideColorTypeBtns:O,hideGradientType:X,hideGradientAngle:W,hideGradientStop:eA,hideGradientControls:fA,hidePickerSquare:B,locales:z})))}const Ff=()=>{const[e,A]=b.useState(localStorage.getItem("customBackgroundColour")||"rgba(0, 0, 0, 100)"),r=n=>{A(n),localStorage.setItem("customBackgroundColour",n),vA.emit("refresh","background")},t=()=>{A("rgba(0, 0, 0, 0)"),localStorage.setItem("customBackgroundColour","rgba(0, 0, 0, 100)"),RA(f.getMessage("toasts.reset")),vA.emit("refresh","background")};return s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.source.custom_colour")}),s.jsxs(lA,{children:[s.jsx(Uf,{value:e,onChange:r,hideEyeDrop:!0,hideColorGuide:!0,hidePresets:!0,hideAdvancedSliders:!1,hideColorTypeBtns:!1,hideInputType:!1,height:147}),s.jsx("div",{className:"colourReset",children:s.jsxs("span",{className:"link",onClick:()=>t(),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})})]})]})};var bf=["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+=bf[Math.floor(n)]}return r},rn=e=>{let A=e/255;return A<=.04045?A/12.92:Math.pow((A+.055)/1.055,2.4)},nn=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)},Ef=e=>e<0?-1:1,an=(e,A)=>Ef(e)*Math.pow(Math.abs(e),A),ts=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},rs=4,yf=(e,A,r,t)=>{let n=0,a=0,i=0,o=A*rs;for(let c=0;c<A;c++){let g=rs*c;for(let d=0;d<r;d++){let u=g+d*o,p=t(c,d);n+=p*rn(e[u]),a+=p*rn(e[u+1]),i+=p*rn(e[u+2])}}let l=1/(A*r);return[n*l,a*l,i*l]},xf=e=>{let A=nn(e[0]),r=nn(e[1]),t=nn(e[2]);return(A<<16)+(r<<8)+t},If=(e,A)=>{let r=Math.floor(Math.max(0,Math.min(18,Math.floor(an(e[0]/A,.5)*9+9.5)))),t=Math.floor(Math.max(0,Math.min(18,Math.floor(an(e[1]/A,.5)*9+9.5)))),n=Math.floor(Math.max(0,Math.min(18,Math.floor(an(e[2]/A,.5)*9+9.5))));return r*19*19+t*19+n},Hf=(e,A,r,t,n)=>{if(t<1||t>9||n<1||n>9)throw new ts("BlurHash must have between 1 and 9 components");if(A*r*4!==e.length)throw new ts("Width and height must match the pixels array");let a=[];for(let d=0;d<n;d++)for(let u=0;u<t;u++){let p=u==0&&d==0?1:2,v=yf(e,A,r,(Q,x)=>p*Math.cos(Math.PI*u*Q/A)*Math.cos(Math.PI*d*x/r));a.push(v)}let i=a[0],o=a.slice(1),l="",c=t-1+(n-1)*9;l+=ze(c,1);let g;if(o.length>0){let d=Math.max(...o.map(p=>Math.max(...p))),u=Math.floor(Math.max(0,Math.min(82,Math.floor(d*166-.5))));g=(u+1)/166,l+=ze(u,1)}else g=1,l+=ze(0,1);return l+=ze(xf(i),4),o.forEach(d=>{l+=ze(If(d,g),2)}),l},Sf=Hf;async function sn(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 on(e,A=4,r=3){return new Promise((t,n)=>{const a=new Image;a.onload=()=>{try{const i=document.createElement("canvas"),o=i.getContext("2d"),l=64,c=Math.min(l/a.width,l/a.height);i.width=Math.floor(a.width*c),i.height=Math.floor(a.height*c),o.drawImage(a,0,0,i.width,i.height);const g=o.getImageData(0,0,i.width,i.height),d=Sf(g.data,g.width,g.height,A,r);typeof e!="string"&&URL.revokeObjectURL(a.src),t(d)}catch(i){n(i)}},a.onerror=()=>n(new Error("Failed to load image for blur hash")),typeof e=="string"?a.src=e:a.src=URL.createObjectURL(e)})}function ln(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 ns(e,A){return e&&e.name?e.name:`Image ${A+1}`}function Lf(){const e={};return Object.keys(localStorage).forEach(A=>{e[A]=localStorage.getItem(A)}),new TextEncoder().encode(JSON.stringify(e)).length}function Qe(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]}function kf({modalClose:e,urlError:A,modalCloseOnly:r}){const[t,n]=b.useState();return s.jsxs("div",{className:"smallModal",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.add_url")}),s.jsx(un,{title:f.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),children:s.jsx("div",{className:"close",onClick:r,children:s.jsx(Ar,{})})})]}),s.jsx("input",{type:"text",value:t,onChange:a=>n(a.target.value.replace(/(\r\n|\n|\r)/gm,""))}),s.jsx("span",{className:"dropdown-error",children:A}),s.jsxs("div",{className:"resetFooter",children:[s.jsx(pA,{type:"secondary",onClick:r,icon:s.jsx(Ar,{}),label:f.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),s.jsx(pA,{type:"settings",onClick:()=>e(t),icon:s.jsx(Zi,{}),label:f.getMessage("modals.main.settings.sections.background.source.add_url")})]})]})}const Mf=b.memo(kf),Kf=({files:e,onConfirm:A,onCancel:r})=>{const[t,n]=b.useState(""),a=()=>{A(t.trim())};return s.jsxs("div",{className:"smallModal",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.tag_images")}),s.jsx("button",{className:"closeModal",onClick:r,children:s.jsx(Ar,{})})]}),s.jsxs("div",{className:"taggingModalContent",children:[s.jsx("p",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.tag_description",{count:e.length})}),s.jsxs("div",{className:"taggingInput",children:[s.jsx("label",{children:f.getMessage("modals.main.settings.sections.background.source.folder_name")}),s.jsx("input",{type:"text",placeholder:f.getMessage("modals.main.settings.sections.background.source.folder_placeholder"),value:t,onChange:i=>n(i.target.value),onKeyPress:i=>{i.key==="Enter"&&a()},autoFocus:!0})]})]}),s.jsxs("div",{className:"resetFooter",children:[s.jsx(pA,{type:"settings",onClick:r,label:f.getMessage("modals.main.settings.buttons.cancel")}),s.jsx(pA,{type:"settings",onClick:a,label:f.getMessage("modals.main.settings.buttons.continue")})]})]})},Li=b.memo(()=>{const[e,A]=b.useState([]),[r,t]=b.useState(!1),[n,a]=b.useState(!1),[i,o]=b.useState([]),[l,c]=b.useState(""),[g,d]=b.useState(!0),[u,p]=b.useState(!1),[v,Q]=b.useState({current:0,total:0}),[x,U]=b.useState(!1),[F,L]=b.useState(new Set),[k,y]=b.useState(localStorage.getItem("customImageSort")||"date_desc"),[w,I]=b.useState(!1),[K,M]=b.useState({usage:0,quota:0}),O=b.useRef(null),T=b.useRef(0),X=5e7;b.useEffect(()=>{(async()=>{if(navigator.storage&&navigator.storage.estimate)try{const P=await navigator.storage.estimate();M({usage:P.usage||0,quota:P.quota||X})}catch(P){console.warn("Could not get storage estimate:",P),M({usage:0,quota:X})}else M({usage:0,quota:X})})()},[e]),b.useEffect(()=>{(async()=>{try{await no();const P=await xe();A(P),P.forEach(async B=>{if(!B.dimensions&&B.url&&!Ft(B.url))try{const C=await sn(B.url),h=await on(B.url);await ao(B.id,{dimensions:C,blurHash:h});const E=await xe();A(E)}catch(C){console.warn("Could not extract metadata for existing image:",C)}})}catch(P){console.error("Error loading backgrounds:",P),RA(f.getMessage("toasts.error"))}finally{d(!1)}})()},[]);const R=b.useCallback(async(H,P,B,C=!1)=>{try{const h={url:P,name:B.name,uploadDate:Date.now(),dimensions:B.dimensions,fileSize:B.fileSize,folder:B.folder||"",blurHash:B.blurHash};await Sr(h);const E=await xe();A(E);try{localStorage.setItem("customBackground",JSON.stringify(E.map(D=>D.url)))}catch{console.warn("localStorage quota exceeded, storing count only"),localStorage.setItem("customBackgroundCount",E.length.toString())}C||vA.emit("refresh","background")}catch(h){console.error("Error saving background:",h),RA(f.getMessage("toasts.error"))}},[]),W=async(H,P="")=>{const B=e.reduce((h,E)=>E.url&&E.url.startsWith("data:")?h+ln(E.url):h,0),C=K.quota||X;if(B/C>.9&&navigator.storage&&navigator.storage.persist)try{await navigator.storage.persist()&&console.log("Storage persistence granted")}catch(h){console.warn("Could not request storage persistence:",h)}if(Ft(H.type)){if(B+H.size>C)throw new Error("no_storage");const h=new FileReader;return new Promise((E,D)=>{h.onloadend=()=>{E({dataUrl:h.result,metadata:{name:ns(H,e.length),dimensions:null,fileSize:H.size,folder:P,blurHash:null}})},h.onerror=D,h.readAsDataURL(H)})}else{const h=await Zn.compressAccurately(H,{size:450,accuracy:.9}),E=K.quota||X;if(B+h.size>E)throw new Error("no_storage");const D=await Zn.filetoDataURL(h),[G,aA]=await Promise.all([sn(D),on(D).catch(()=>null)]);return{dataUrl:D,metadata:{name:ns(H,e.length),dimensions:G,fileSize:ln(D),folder:P,blurHash:aA}}}},$=async(H,P="")=>{p(!0),Q({current:0,total:H.length});const B=[];for(let C=0;C<H.length;C++)try{const h=await W(H[C],P);await R(H[C],h.dataUrl,h.metadata,!0),Q({current:C+1,total:H.length})}catch(h){if(h.message==="no_storage"){RA(f.getMessage("toasts.no_storage"));break}B.push(H[C].name)}B.length>0&&RA(f.getMessage("toasts.error")+`: ${B.join(", ")}`),vA.emit("refresh","background"),p(!1),Q({current:0,total:0})},eA=async H=>{a(!1),await $(i,H),o([])},AA=b.useCallback(async(H,P)=>{try{H==="add"?await Sr(""):await zi(P);const B=await xe();A(B);try{localStorage.setItem("customBackground",JSON.stringify(B.map(C=>C.url)))}catch{console.warn("localStorage quota exceeded, storing count only"),localStorage.setItem("customBackgroundCount",B.length.toString())}vA.emit("refresh","background")}catch(B){console.error("Error modifying background:",B),RA(f.getMessage("toasts.error"))}},[]),fA=async()=>{if(F.size!==0)try{const H=Array.from(F).sort((B,C)=>C-B);await so(H);const P=await xe();A(P),L(new Set);try{localStorage.setItem("customBackground",JSON.stringify(P.map(B=>B.url)))}catch{localStorage.setItem("customBackgroundCount",P.length.toString())}vA.emit("refresh","background"),RA(f.getMessage("toasts.deleted"))}catch(H){console.error("Error batch deleting:",H),RA(f.getMessage("toasts.error"))}},sA=H=>{const P=new Set(F);P.has(H)?P.delete(H):P.add(H),L(P)},z=H=>{y(H),localStorage.setItem("customImageSort",H)},cA=b.useCallback(()=>{document.getElementById("bg-input").click()},[]),iA=b.useCallback(async H=>{if(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(H)===!1)return c(f.getMessage("widgets.quicklinks.url_error"));t(!1);try{const B=H.split("/"),C=B[B.length-1].split("?")[0]||"Remote Image";let h=null,E=null;try{h=await sn(H),E=await on(H)}catch(aA){console.warn("Could not extract metadata from remote image:",aA)}const D={url:H,name:C,uploadDate:Date.now(),dimensions:h,fileSize:null,folder:"",blurHash:E};await Sr(D);const G=await xe();A(G)}catch(B){console.error("Error adding URL:",B),RA(f.getMessage("toasts.error"))}try{localStorage.setItem("customBackground",JSON.stringify(updatedBackgrounds.map(B=>B.url)))}catch{localStorage.setItem("customBackgroundCount",updatedBackgrounds.length.toString())}vA.emit("refresh","background")},[e.length]),S=async H=>{H.length>1?(o(H),a(!0)):await $(H,"")},_=[...e].sort((H,P)=>{switch(k){case"date_asc":return H.uploadDate-P.uploadDate;case"date_desc":return P.uploadDate-H.uploadDate;case"name_asc":return(H.name||"").localeCompare(P.name||"");case"name_desc":return(P.name||"").localeCompare(H.name||"");case"size_asc":return(H.fileSize||0)-(P.fileSize||0);case"size_desc":return(P.fileSize||0)-(H.fileSize||0);default:return 0}}),N=e.reduce((H,P)=>P.url&&P.url.startsWith("data:")?H+ln(P.url):H,0),Y=K.quota||X,gA=N/Y*100,Z=Lf(),q=5242880;b.useEffect(()=>{const H=O.current;if(!H)return;const P=E=>{E.preventDefault(),E.stopPropagation()},B=E=>{E.preventDefault(),E.stopPropagation(),T.current++,E.dataTransfer.items&&E.dataTransfer.items.length>0&&U(!0)},C=E=>{E.preventDefault(),E.stopPropagation(),T.current--,T.current===0&&U(!1)},h=async E=>{E.preventDefault(),E.stopPropagation(),U(!1),T.current=0;const D=Array.from(E.dataTransfer.files);D.length!==0&&(D.length>1?(o(D),a(!0)):await $(D,""))};return H.ondragover=P,H.ondragenter=B,H.ondragleave=C,H.ondrop=h,()=>{H&&(H.ondragover=null,H.ondragenter=null,H.ondragleave=null,H.ondrop=null)}},[e.length,$]);const tA=_.filter(H=>H&&Ft(H.url)).length>0;return g?s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"loaderHolder",children:[s.jsx("div",{id:"loader"}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.loading")})]})}):u?s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"loaderHolder",children:[s.jsx("div",{id:"loader"}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.uploading",{current:v.current,total:v.total})}),s.jsxs("span",{className:"subtitle",children:[Math.round(v.current/v.total*100),"%"]})]})}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:`dropzone ${x?"dragging":""}`,ref:O,style:x?{outline:"2px dashed #ff5c25",outlineOffset:"-2px",backgroundColor:"rgba(255, 92, 37, 0.1)",transition:"all 0.2s ease"}:{},children:[s.jsxs("div",{className:"imagesTopBar",children:[s.jsxs("div",{className:"imagesTopBarTitle",children:[s.jsx(Yn,{}),s.jsxs("div",{children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.custom_title")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.custom_description")})]})]}),s.jsx("div",{className:"topbarbuttons",children:s.jsx(pA,{type:"settings",onClick:cA,icon:s.jsx(qi,{}),label:f.getMessage("modals.main.settings.sections.background.source.upload")})})]}),s.jsxs("div",{className:"imagesControlBar",children:[s.jsxs("div",{className:"controlBarLeft",children:[s.jsxs("span",{className:"image-count",children:[e.length," ",e.length===1?"image":"images",s.jsxs("span",{className:"storage-info",children:[" ","· ",Qe(N)," / ",Qe(Y),gA>80&&navigator.storage&&navigator.storage.persist&&s.jsx(un,{title:"Request persistent storage to prevent browser from automatically clearing your images",children:s.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(H){console.error("Storage request error:",H),RA("Could not request persistent storage")}},children:"Protect images"})})]})]}),s.jsx("span",{className:"selection-separator",children:"·"}),F.size>0?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"selected-count",children:[F.size," selected"]}),s.jsx("button",{className:"delete-link",onClick:fA,children:"Delete"}),F.size<e.length&&s.jsx("button",{className:"select-all-link",onClick:()=>{const H=new Set(e.map((P,B)=>B));L(H)},children:"Select all"}),F.size===e.length&&s.jsx("button",{className:"select-all-link",onClick:()=>L(new Set),children:"Deselect all"})]}):e.length>0&&s.jsx("button",{className:"select-all-link",onClick:()=>{const H=new Set(e.map((P,B)=>B));L(H)},children:"Select all"})]}),s.jsx("div",{className:"controlBarRight",children:s.jsx(KA,{name:"customImageSort",category:"customImageSort",onChange:z,items:[{value:"date_desc",text:f.getMessage("modals.main.settings.sections.background.source.sort.date_newest")},{value:"date_asc",text:f.getMessage("modals.main.settings.sections.background.source.sort.date_oldest")},{value:"name_asc",text:f.getMessage("modals.main.settings.sections.background.source.sort.name_asc")},{value:"name_desc",text:f.getMessage("modals.main.settings.sections.background.source.sort.name_desc")},{value:"size_asc",text:f.getMessage("modals.main.settings.sections.background.source.sort.size_small")},{value:"size_desc",text:f.getMessage("modals.main.settings.sections.background.source.sort.size_large")}]})})]}),s.jsx("div",{className:"dropzone-content",children:_.length>0?s.jsx("div",{className:`images-grid ${F.size>0?"selection-mode":""}`,children:_.map((H,P)=>{const B=e.findIndex(h=>h===H),C=H&&Ft(H.url);return s.jsxs("div",{className:"image-card",onClick:h=>{h.target.closest(".image-nav-buttons")||sA(B)},children:[s.jsx("div",{className:"image-checkbox",children:s.jsx("input",{type:"checkbox",checked:F.has(B),onChange:()=>sA(B)})}),s.jsxs("div",{className:"image-preview",children:[H.blurHash&&!C&&(()=>{const h=$i(H.blurHash,32,32);return h?s.jsx("div",{className:"blur-placeholder",style:{backgroundImage:`url(${h})`,filter:"blur(20px)",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0}}):null})(),C?s.jsx("div",{className:"video-icon-wrapper",children:s.jsx(Ao,{className:"customvideoicon"})}):s.jsx("img",{alt:H.name||"Custom background",src:H.url,loading:"lazy",style:{position:"relative",zIndex:1}}),s.jsxs("div",{className:"image-nav-buttons",children:[s.jsx("button",{className:"nav-button nav-prev",onClick:()=>{if(P>0){const h=_[P-1];vA.emit("refresh","background",h.url)}},disabled:P===0,children:s.jsx(eo,{})}),s.jsx("button",{className:"nav-button nav-next",onClick:()=>{if(P<_.length-1){const h=_[P+1];vA.emit("refresh","background",h.url)}},disabled:P===_.length-1,children:s.jsx(to,{})})]})]}),s.jsxs("div",{className:"image-metadata",children:[s.jsx("span",{className:"image-name",title:H.name,children:H.name||"Unnamed"}),s.jsxs("div",{className:"image-details",children:[H.dimensions&&s.jsxs("span",{className:"detail",children:[H.dimensions.width," × ",H.dimensions.height]}),H.fileSize&&s.jsx("span",{className:"detail",children:Qe(H.fileSize)}),H.folder&&s.jsx("span",{className:"detail folder-tag",children:H.folder})]})]}),s.jsx(un,{title:f.getMessage("modals.main.settings.sections.background.source.remove"),children:s.jsx("button",{className:"delete-button",onClick:()=>AA("remove",B),children:s.jsx(Bt,{})})})]},B)})}):s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Yn,{}),s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.drop_to_upload")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.formats",{list:"jpeg, png, webp, webm, gif, mp4, webm, ogg"})}),s.jsx(pA,{type:"settings",onClick:cA,icon:s.jsx(ro,{}),label:f.getMessage("modals.main.settings.sections.background.source.select")})]})})})]}),s.jsx(bs,{id:"bg-input",accept:"image/jpeg, image/png, image/webp, image/webm, image/gif, video/mp4, video/webm, video/ogg",multiple:!0,loadFunction:async H=>{await S(H)}}),tA&&s.jsxs(s.Fragment,{children:[s.jsx(mA,{name:"backgroundVideoLoop",text:f.getMessage("modals.main.settings.sections.background.source.loop_video")}),s.jsx(mA,{name:"backgroundVideoMute",text:f.getMessage("modals.main.settings.sections.background.source.mute_video")})]}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>t(!1),isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(Mf,{modalClose:iA,urlError:l,modalCloseOnly:()=>t(!1)})}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>{a(!1),o([])},isOpen:n,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(Kf,{files:i,onConfirm:eA,onCancel:()=>{a(!1),o([])}})}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>I(!1),isOpen:w,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsxs("div",{className:"smallModal",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.storage_info")}),s.jsx("button",{className:"closeModal",onClick:()=>I(!1),children:s.jsx(Bt,{})})]}),s.jsxs("div",{style:{padding:"20px"},children:[s.jsx("p",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.storage_description")}),s.jsxs("div",{style:{marginTop:"20px"},children:[s.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Custom Backgrounds"}),s.jsxs("p",{className:"subtitle",children:[Qe(N)," / ",Qe(Y)," (",Math.round(gA),"%)"]})]}),s.jsxs("div",{style:{marginTop:"15px"},children:[s.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Total localStorage Usage"}),s.jsxs("p",{className:"subtitle",children:[Qe(Z)," / ",Qe(q)," (",Math.round(Z/q*100),"%)"]}),s.jsx("p",{className:"subtitle",style:{marginTop:"8px",fontSize:"12px",opacity:.7},children:"Includes all Mue settings and custom images"})]})]}),s.jsx("div",{className:"resetFooter",children:s.jsx(pA,{type:"settings",onClick:()=>I(!1),label:f.getMessage("modals.main.settings.buttons.close")})})]})})]})});Li.displayName="CustomSettings";const Tf=({usingImage:e})=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.display"),subtitle:f.getMessage("modals.main.settings.sections.background.display_subtitle")}),s.jsxs(lA,{children:[s.jsx(mA,{name:"bgtransition",text:f.getMessage("modals.main.settings.sections.background.transition"),element:".other",disabled:!e}),s.jsx(mA,{name:"photoInformation",text:f.getMessage("modals.main.settings.sections.background.photo_information"),element:".other"}),s.jsx(mA,{name:"photoMap",text:f.getMessage("modals.main.settings.sections.background.show_map"),element:".other",disabled:!e})]})]});f.getMessage("modals.main.settings.sections.background.source.quality.original"),f.getMessage("modals.main.settings.sections.background.source.quality.high"),f.getMessage("modals.main.settings.sections.background.source.quality.normal"),f.getMessage("modals.main.settings.sections.background.source.quality.datasaver");const Df=[{value:"none",text:f.getMessage("modals.main.settings.sections.appearance.navbar.refresh_options.none")},{value:"grayscale",text:f.getMessage("modals.main.settings.sections.background.effects.filters.grayscale")},{value:"sepia",text:f.getMessage("modals.main.settings.sections.background.effects.filters.sepia")},{value:"invert",text:f.getMessage("modals.main.settings.sections.background.effects.filters.invert")},{value:"saturate",text:f.getMessage("modals.main.settings.sections.background.effects.filters.saturate")},{value:"contrast",text:f.getMessage("modals.main.settings.sections.background.effects.filters.contrast")}];function ki(){return[{value:"api",text:f.getMessage("wb.settings_bundled_photos")},{value:"custom",text:f.getMessage("modals.main.settings.sections.background.type.custom_image")},{value:"colour",text:f.getMessage("modals.main.settings.sections.background.type.custom_colour")},{value:"random_colour",text:f.getMessage("modals.main.settings.sections.background.type.random_colour")},{value:"random_gradient",text:f.getMessage("modals.main.settings.sections.background.type.random_gradient")}]}const Of=({backgroundFilter:e,onFilterChange:A})=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:f.getMessage("modals.main.settings.sections.background.effects.subtitle")}),s.jsxs(lA,{children:[s.jsx(at,{title:f.getMessage("modals.main.settings.sections.background.effects.blur"),name:"blur",min:"0",max:"100",default:"0",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage"}),s.jsx(at,{title:f.getMessage("modals.main.settings.sections.background.effects.brightness"),name:"brightness",min:"0",max:"100",default:"100",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage"}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.background.effects.filters.title"),name:"backgroundFilter",onChange:A,category:"backgroundeffect",element:"#backgroundImage",items:Df}),e!=="none"&&s.jsx(at,{title:f.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"})]})]}),Rf=({backgroundType:e,onTypeChange:A})=>s.jsxs(rA,{final:e==="random_colour"||e==="random_gradient",children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.source.title"),subtitle:f.getMessage("modals.main.settings.sections.background.source.subtitle")}),s.jsx(lA,{children:s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:A,category:"background",items:ki()})})]}),as=({icon:e,title:A,subtitle:r,onClick:t,action:n})=>s.jsxs("div",{className:"moreSettings",onClick:t,children:[s.jsxs("div",{className:"left",children:[s.jsx(e,{}),s.jsxs("div",{className:"content",children:[s.jsx("span",{className:"title",children:A}),s.jsx("span",{className:"subtitle",children:r})]})]}),s.jsx("div",{className:"action",children:n||s.jsx(is,{})})]}),Mi=b.memo(({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(localStorage.getItem("backgroundType")||"api"),[a,i]=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 s.jsx(Li,{});case"colour":return s.jsx(Ff,{});default:return null}},c=t!=="colour"&&t!=="random_colour"&&t!=="random_gradient",g=t==="api"||t==="custom",d=()=>e==="effects"?s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:f.getMessage("modals.main.settings.sections.background.effects.title"),goBack:()=>A(null,r)}):e==="source"?s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:f.getMessage("modals.main.settings.sections.background.source.title"),goBack:()=>A(null,r)}):s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.background.title"),setting:"background",category:"background",element:"#backgroundImage"});return s.jsxs(s.Fragment,{children:[d(),!e&&s.jsxs(s.Fragment,{children:[s.jsx(as,{icon:io,title:f.getMessage("modals.main.settings.sections.background.source.title"),subtitle:f.getMessage("modals.main.settings.sections.background.source.subtitle"),onClick:()=>A("source",r),action:s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:u=>{n(u),u==="custom"&&vA.emit("refresh","background")},category:"background",items:ki()})}),g&&s.jsx(as,{icon:oo,title:f.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:f.getMessage("modals.main.settings.sections.background.effects.subtitle"),onClick:()=>A("effects",r)})]}),!e&&g&&s.jsx(Tf,{usingImage:c}),e==="source"&&s.jsxs(s.Fragment,{children:[s.jsx(Rf,{backgroundType:t,onTypeChange:n}),l()]}),g&&e==="effects"&&s.jsx(Of,{backgroundFilter:a,onFilterChange:u=>i(u)})]})});Mi.displayName="BackgroundOptions";function Nf(){const e=[{value:"ask",text:f.getMessage("wb.ask")},{value:"act",text:f.getMessage("wb.act")},...lo()?[{value:"search",text:f.getMessage("wb.search")}]:[]];return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage("wb.settings_taskbox"),setting:"taskBox",category:"widgets"}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("wb.settings_default_mode"),subtitle:f.getMessage("wb.settings_taskbox_sub")}),s.jsx(lA,{children:s.jsx(KA,{name:"taskBoxMode",category:"widgets",items:e})})]}),s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("wb.settings_recent")}),s.jsx(lA,{children:s.jsx(gs,{name:"recentChats",element:".other"})})]})]})}const _f=["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 Gf({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const[t,n]=b.useState(!1),a="modals.main.settings.sections.advanced",i=()=>localStorage.getItem("welcomePreview")!=="true"?s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.data"),subtitle:f.getMessage("modals.main.settings.sections.advanced.data_description")}),s.jsxs("div",{className:"resetDataButtonsLayout",children:[s.jsx(pA,{onClick:()=>n(!0),icon:s.jsx(uo,{}),label:f.getMessage("modals.main.settings.buttons.reset")}),s.jsx(pA,{onClick:()=>Qo(),icon:s.jsx(Bo,{}),label:f.getMessage("modals.main.settings.buttons.export")}),s.jsx(pA,{onClick:()=>document.getElementById("file-input").click(),icon:s.jsx(fo,{}),label:f.getMessage("modals.main.settings.buttons.import")})]}),s.jsx(bs,{id:"file-input",accept:"application/json",type:"settings",loadFunction:c=>mo(c)})]}):s.jsx("div",{className:"emptyItems",children:s.jsx("div",{className:"emptyMessage",children:s.jsxs("div",{className:"loaderHolder",children:[s.jsx(ho,{}),s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.title")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.description")})]})})}),o=e==="data";let l;return o?l=s.jsx(TA,{title:f.getMessage(`${a}.title`),secondaryTitle:f.getMessage(`${a}.data`),goBack:()=>A(null,r),report:!1}):l=s.jsx(TA,{title:f.getMessage(`${a}.title`),report:!1}),s.jsxs(s.Fragment,{children:[l,o?s.jsxs(s.Fragment,{children:[s.jsx(i,{}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>n(!1),isOpen:t,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(co,{modalClose:()=>n(!1)})})]}):s.jsxs(s.Fragment,{children:[s.jsx(On,{title:f.getMessage(`${a}.data`),subtitle:f.getMessage(`${a}.data_subtitle`),onClick:()=>A("data",r),icon:s.jsx(go,{})}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.timezone.title"),subtitle:f.getMessage("modals.main.settings.sections.advanced.timezone.subtitle")}),s.jsx(lA,{children:s.jsx(KA,{name:"timezone",category:"timezone",items:[{value:"auto",text:f.getMessage("modals.main.settings.sections.advanced.timezone.automatic")},..._f.map(c=>({value:c,text:c}))]})})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.tab_name"),subtitle:f.getMessage("modals.main.settings.sections.advanced.tab_name_subtitle")}),s.jsx(lA,{children:s.jsx(tr,{name:"tabName",default:f.getMessage("tabname"),category:"other"})})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.custom_css"),subtitle:f.getMessage("modals.main.settings.sections.advanced.custom_css_subtitle")}),s.jsx(lA,{children:s.jsx(tr,{name:"customcss",textarea:!0,category:"other",customcss:!0})})]})]})]})}function jf({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const t=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.theme.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.theme.description")}),s.jsx(lA,{children:s.jsx(gn,{name:"theme",options:[{name:f.getMessage("modals.main.settings.sections.appearance.theme.auto"),value:"auto"},{name:f.getMessage("modals.main.settings.sections.appearance.theme.light"),value:"light"},{name:f.getMessage("modals.main.settings.sections.appearance.theme.dark"),value:"dark"}],category:"other"})})]}),n=()=>{const c="modals.main.settings.sections.appearance.font.weight";return s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.font.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.font.description")}),s.jsxs(lA,{children:[s.jsx(tr,{title:f.getMessage("modals.main.settings.sections.appearance.font.custom"),name:"font",upperCaseFirst:!0,category:"other"}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.appearance.font.weight.title"),name:"fontweight",category:"other",items:[{value:"100",text:f.getMessage(c+".thin")},{value:"200",text:f.getMessage(c+".extra_light")},{value:"300",text:f.getMessage(c+".light")},{value:"400",text:f.getMessage(c+".normal")},{value:"500",text:f.getMessage(c+".medium")},{value:"600",text:f.getMessage(c+".semi_bold")},{value:"700",text:f.getMessage(c+".bold")},{value:"800",text:f.getMessage(c+".extra_bold")}]}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.appearance.font.style.title"),name:"fontstyle",category:"other",items:[{value:"normal",text:f.getMessage("modals.main.settings.sections.appearance.font.style.normal")},{value:"italic",text:f.getMessage("modals.main.settings.sections.appearance.font.style.italic")},{value:"oblique",text:f.getMessage("modals.main.settings.sections.appearance.font.style.oblique")}]})]})]})},a=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.style.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.style.description")}),s.jsx(lA,{children:s.jsx(gn,{name:"widgetStyle",element:".other",options:[{name:f.getMessage("modals.main.settings.sections.appearance.style.legacy"),value:"legacy"},{name:f.getMessage("modals.main.settings.sections.appearance.style.new"),value:"new"}],category:"widgets"})})]}),i=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.accessibility.description")}),s.jsxs(lA,{children:[s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.title"),name:"textBorder",category:"other",items:[{value:"new",text:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.new")},{value:"true",text:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.old")},{value:"none",text:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.none")}]}),s.jsx(mA,{text:f.getMessage("modals.main.settings.sections.appearance.accessibility.animations"),name:"animations",category:"other"}),s.jsx(at,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.toast_duration"),name:"toastDisplayTime",default:"2500",step:"100",min:"500",max:"5000",marks:st.toast,display:" "+f.getMessage("modals.main.settings.sections.appearance.accessibility.milliseconds")})]})]}),o=e==="accessibility";let l;return o?l=s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.appearance.title"),secondaryTitle:f.getMessage("modals.main.settings.sections.appearance.accessibility.title"),goBack:()=>A(null,r),report:!1}):l=s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.appearance.title"),report:!1}),s.jsxs(s.Fragment,{children:[l,o?s.jsx(i,{}):s.jsxs(s.Fragment,{children:[s.jsx(On,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.accessibility.description"),icon:s.jsx(wo,{}),onClick:()=>A("accessibility",r)}),s.jsx(t,{}),s.jsx(n,{}),s.jsx(a,{})]})]})}const Vf=b.memo(jf),Pf=`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 Xf(){const e=Object.keys(po),{MUE_REPO_URL:A,MUE_VERSION:r,REPO_URL:t,WEBSITE_URL:n}=f.constants;return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage("wb.settings_credits")}),s.jsx(rA,{children:s.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."})}),s.jsx(rA,{children:s.jsx(nA,{title:`Based on Mue ${r}`,subtitle:s.jsxs(s.Fragment,{children:["Derived from ",s.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."]})})}),s.jsx(rA,{children:s.jsx(nA,{title:f.getMessage("wb.settings_bundled_photos"),subtitle:`${e.join(", ")}. Offline images shipped with Mue (Unsplash, Pexels and Pixabay).`})}),s.jsx(rA,{children:s.jsx(nA,{title:"Fonts and icons",subtitle:"Inter, Lexend Deca and Montserrat (SIL Open Font License); Material Design icons via react-icons."})}),s.jsx(rA,{final:!0,children:s.jsx(nA,{title:"Mue license",subtitle:s.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:"0.75rem"},children:Pf})})}),s.jsxs("p",{style:{opacity:.7,fontSize:"0.85rem"},children:[s.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:n.replace("https://","")})," · ",s.jsx("a",{href:t,target:"_blank",rel:"noreferrer",children:"GitHub"})]})]})}function Jf(){return s.jsx("span",{className:"greeting preview",children:"Good Morning"})}const Wf=b.memo(Jf),Yf=b.lazy(()=>Co(()=>import("./index-C08TLPUo.js"),__vite__mapDeps([0,1,2]),import.meta.url));function Zf(){return localStorage.getItem("timeType")==="analogue"?s.jsx(b.Suspense,{fallback:s.jsx(s.Fragment,{}),children:s.jsx("div",{className:"clockBackground",children:s.jsx(Yf,{className:"analogclock clock-container",value:"2022-10-07T17:00:00+00:00",size:50})})}):localStorage.getItem("timeType")==="percentageComplete"?s.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"68%"}):localStorage.getItem("timeType")==="verticalClock"?s.jsxs("span",{className:"vertical-clock clock-container",style:{fontSize:"30px"},children:[s.jsx("div",{className:"hour",children:"10"}),s.jsx("div",{className:"minute",children:"23"})]}):s.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"10:24"})}const zf=b.memo(Zf);function qf(e){return Dn({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 $f(e){return Dn({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 Ah(e){return Dn({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 eh(){return s.jsx("div",{className:"quickLinksSkeleton",children:s.jsxs("div",{className:"circles",children:[s.jsx("div",{children:s.jsx(qf,{})}),s.jsx("div",{children:s.jsx($f,{})}),s.jsx("div",{children:s.jsx(Ah,{})})]})})}const th=b.memo(eh);function rh(){return s.jsx("span",{className:"date",children:"Thursday January 1st"})}const nh=b.memo(rh);function ah(){return s.jsx("h2",{className:"message",children:s.jsxs("span",{children:["Message",s.jsx("br",{})]})})}const sh=b.memo(ah),ih={greeting:f.getMessage("modals.main.settings.sections.greeting.title"),time:f.getMessage("modals.main.settings.sections.time.title"),quicklinks:f.getMessage("modals.main.settings.sections.quicklinks.title"),date:f.getMessage("modals.main.settings.sections.date.title"),message:f.getMessage("modals.main.settings.sections.message.title")},oh=({id:e})=>{const{attributes:A,listeners:r,setNodeRef:t,transform:n,transition:a}=Bs({id:e}),i={transform:ds.Transform.toString(n),transition:a};return s.jsxs("li",{ref:t,style:i,...A,...r,className:"sortableItem",children:[ih[e],s.jsx(us,{})]})},lh=()=>{const[e,A]=b.useState(()=>JSON.parse(localStorage.getItem("order"))||["greeting","time","quicklinks","date","message"]),r=fs(rr(ps),rr(ws,{coordinateGetter:hs})),t=i=>{const{active:o,over:l}=i;o.id!==l.id&&A(c=>{const g=c.indexOf(o.id),d=c.indexOf(l.id);return Us(c,g,d)})},n=i=>i==="quicklinks"?localStorage.getItem("quicklinksenabled")==="true":localStorage.getItem(i)==="true",a=i=>{switch(i){case"greeting":return s.jsx(Wf,{});case"time":return s.jsx(zf,{});case"quicklinks":return s.jsx(th,{});case"date":return s.jsx(nh,{});case"message":return s.jsx(sh,{});default:return null}};return b.useEffect(()=>{localStorage.setItem("order",JSON.stringify(e)),f.stats.postEvent("setting","Widget order"),vA.emit("refresh","widgets")},[e]),s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"mainTitle",children:f.getMessage("modals.main.marketplace.product.overview")}),s.jsxs("div",{className:"overviewGrid",children:[s.jsxs("div",{children:[s.jsx("span",{className:"title",children:f.getMessage("modals.welcome.buttons.preview")}),s.jsx("div",{className:"tabPreview",children:s.jsx("div",{className:"previewItem",style:{maxWidth:"50%"},children:e.map((i,o)=>n(i)?s.jsx("div",{className:"previewItem",children:a(i)},`item-${i}`):null)})})]}),s.jsxs("div",{children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.order.title")}),s.jsx(Cs,{sensors:r,collisionDetection:Qs,onDragEnd:t,children:s.jsx(ms,{items:e,strategy:vs,children:s.jsx("ul",{className:"sortableContainer",children:e.map(i=>n(i)?s.jsx(oh,{id:i},i):null)})})})]})]})]})},ss=[{label:"modals.main.marketplace.product.overview",name:"order",component:lh},{label:"modals.main.settings.sections.appearance.navbar.title",name:"navbar",component:ko},{label:"modals.main.settings.sections.greeting.title",name:"greeting",component:Mo},{label:"modals.main.settings.sections.time.title",name:"time",component:Ko},{label:"modals.main.settings.sections.quicklinks.title",name:"quicklinks",component:No},{label:"modals.main.settings.sections.date.title",name:"date",component:To},{label:"modals.main.settings.sections.message.title",name:"message",component:_o},{label:"modals.main.settings.sections.background.title",name:"background",component:Mi},{label:"wb.settings_taskbox",name:"taskbox",component:Nf},{label:"modals.main.settings.sections.appearance.title",name:"appearance",component:Vf},{label:"modals.main.settings.sections.advanced.title",name:"advanced",component:Gf},{label:"wb.settings_credits",name:"credits",component:Xf}];function ch(e){const A=pt(),r=b.useMemo(()=>ss.map(t=>({...t,translatedLabel:A(t.label)})),[A]);return s.jsx(Io,{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:ss,children:r.map(({label:t,name:n,component:a,translatedLabel:i})=>s.jsx("div",{label:i,name:n,children:s.jsx(a,{currentSubSection:e.currentSubSection,onSubSectionChange:e.onSubSectionChange,sectionName:n})},n))})}const uh=b.memo(ch);export{uh as default};diff --git a/src/chrome/newtab/assets/Settings-BiXm1rpf.js b/src/chrome/newtab/assets/Settings-BiXm1rpf.jsnew file mode 100644index 000000000..e54afd867--- /dev/null+++ b/src/chrome/newtab/assets/Settings-BiXm1rpf.js@@ -0,0 +1,53 @@+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BXa4CzFe.js","./index-epcgRnvP.js","./index-ByIwaINw.css"])))=>i.map(i=>d[i]);+import{s as Ti,v as f,y as RA,r as b,j as s,B as pA,M as Di,a as Oi,b as Ri,E as vA,S as at,R as v,c as os,u as Ct,g as Ni,D as _i,d as er,e as fe,f as Jn,T as Wn,q as ls,h as Gi,i as cs,k as Bt,l as gn,m as Re,n as gs,C as mA,o as KA,p as ji,t as Vi,w as Pi,x as Xi,z as Sr,A as us,F as tr,G as rr,H as un,I as Bs,J as ds,K as fs,L as Ji,N as hs,O as nr,P as ws,Q as ps,U as Cs,V as Qs,W as ms,X as vs,Y as Us,Z as Wi,_ as Fs,$ as Yn,a0 as Yi,a1 as bs,a2 as Ft,a3 as Zi,a4 as Bn,a5 as qi,a6 as Lr,a7 as xe,a8 as zi,a9 as bt,aa as Zn,ab as $i,ac as Ao,ad as eo,ae as to,af as ro,ag as no,ah as Es,ai as ao,aj as so,ak as io,al as qn,am as oo,an as lo,ao as co,ap as go,aq as uo,ar as Bo,as as fo,at as ho,au as wo,av as po,aw as Co,ax as Qo,ay as On}from"./index-epcgRnvP.js";function mo(){const e={};Object.keys(localStorage).forEach(n=>{e[n]=localStorage.getItem(n)});const A=new Date,t=`mue_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`;Ti(e,t),f.stats.postEvent("tab","Settings exported")}function vo(e,A=!1){const r=JSON.parse(e);Object.keys(r).forEach(t=>{localStorage.setItem(t,r[t])}),RA(f.getMessage("toasts.imported")),A||f.stats.postEvent("tab","Settings imported")}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 i=localStorage.getItem(e.setting)==="true";if(localStorage.setItem(e.setting,!i),r(!i),f.stats.postEvent("setting",`${e.name} ${A===!0?"enabled":"disabled"}`),vA.emit("toggle",e.setting),e.element&&!document.querySelector(e.element))return document.querySelector(".reminder-info").style.display="flex",localStorage.setItem("showReminder",!0);vA.emit("refresh",e.category)},n=()=>s.jsx(pA,{type:"settings",onClick:t,icon:A?s.jsx(Di,{}):s.jsx(Oi,{}),label:A?"Hide":"Show"}),a=()=>s.jsx(pA,{type:"settings",onClick:()=>window.open(f.constants.BUG_REPORT+e.title.split(" ").join("+"),"_blank"),icon:s.jsx(Ri,{}),label:f.getMessage("modals.main.settings.sections.header.report_issue")});return s.jsxs("div",{className:"modalHeader",children:[s.jsx("span",{className:"mainTitle",children:e.secondaryTitle||e.title}),s.jsxs("div",{className:"headerActions",children:[e.visibilityToggle&&s.jsx(n,{}),e.report!==!1&&s.jsx(a,{}),e.children]})]})}function rA(e){const A=`${e.final?"settingsRow settingsNoBorder":"settingsRow"} ${e.inactive?"preferencesInactive":""}`;return s.jsx("div",{className:A,children:e.children})}function nA(e){return s.jsxs("div",{className:"content",children:[s.jsx("span",{className:"title",children:e.title}),s.jsx("span",{className:"subtitle",children:e.subtitle})]})}function lA(e){return s.jsx("div",{className:"action",children:e.children})}const Uo=[{value:10,label:"0.1x"},{value:100,label:"1x"},{value:200,label:"2x"},{value:400,label:"4x"}],Fo=[{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"}],bo=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"},{value:100,label:"100%"}],st={zoom:Uo,toast:Fo,background:bo},Qt=({children:e,...A})=>{const[r,t]=b.useState(localStorage.getItem(A.setting)==="true");return vA.on("toggle",n=>{n===A.setting&&t(!r)}),s.jsxs("div",{className:r?"preferences":"preferencesInactive",children:[A.zoomSetting&&s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.widget_zoom"),subtitle:f.getMessage("modals.main.settings.sections.header.size")}),s.jsx(lA,{children:s.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 s.jsxs("div",{className:"moreSettings",onClick:t,children:[s.jsxs("div",{className:"left",children:[r,s.jsxs("div",{className:"content",children:[s.jsx("span",{className:"title",children:e}),s.jsx("span",{className:"subtitle",children:A})]})]}),s.jsx("div",{className:"action",children:v.Children.count(n)===0?s.jsx(os,{}):n})]})}function Eo({label:e,currentTab:A,onClick:r,navbarTab:t}){const n=Ct(),[a,i]=b.useState(!0);b.useEffect(()=>{i(localStorage.getItem("experimental")!=="false")},[]);const o=Ni(e,{getMessage:n}),l=_i.some(p=>n(p)===e),d=`${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?s.jsx("hr",{}):s.jsxs(s.Fragment,{children:[s.jsxs("button",{className:d,onClick:()=>r(e),children:[o&&s.jsx(o,{})," ",s.jsx("span",{children:e})]}),l&&s.jsx("hr",{})]})}const yo=b.memo(Eo),xo=({isVisible:e,onHide:A})=>e?s.jsxs("div",{className:"reminder-info",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.reminder.title")}),s.jsx("span",{className:"closeModal",onClick:A,children:s.jsx(er,{})})]}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.reminder.message")}),s.jsxs("button",{onClick:()=>window.location.reload(),children:[s.jsx(fe,{}),f.getMessage("modals.main.error_boundary.refresh")]})]}):null;class Io 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(f.constants.BUG_REPORT,"_blank","noopener,noreferrer"),this.setState({showReport:!1})}render(){return this.state.error?s.jsx("div",{className:"emptyItems",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Jn,{}),s.jsx("span",{className:"title",children:f.getMessage("modals.main.error_boundary.title")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.error_boundary.message")}),s.jsxs("div",{className:"buttonsRow",children:[this.state.showReport?s.jsx(pA,{type:"settings",icon:s.jsx(Jn,{}),label:f.getMessage("modals.main.error_boundary.report_error"),onClick:()=>this.reportError()}):s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.error_boundary.sent")}),s.jsx(pA,{type:"settings",icon:s.jsx(fe,{}),label:f.getMessage("modals.main.error_boundary.refresh"),onClick:()=>window.location.reload()})]})]})}):this.props.children}}const Ho=({children:e,navbar:A=!1,currentTab:r,onSectionChange:t,resetToFirst:n,deepLinkData:a,navigationTrigger:i,sections:o})=>{const l=Ct(),g=(()=>{if(a?.section&&o){const y=o.find(w=>w.name===a.section);if(y)return{label:l(y.label),name:y.name}}return{label:e[0]?.props.label,name:e[0]?.props.name}})(),[d,u]=b.useState(g.label),[p,m]=b.useState(g.name),[Q,x]=b.useState(localStorage.getItem("showReminder")==="true"),U=b.useRef(null),F=(y,w)=>{w!==p&&f.stats.postEvent("tab",`Opened ${w}`),u(y),m(w),U.current&&(U.current.scrollTop=0),t&&t(y,w)};b.useEffect(()=>{t&&d&&t(d,p)},[]),b.useEffect(()=>{if(o&&p){const y=o.find(w=>w.name===p);if(y){const w=l(y.label);u(w)}}},[l,o,p]),b.useEffect(()=>{if(i?.type==="settings-section"&&o){const y=o.find(w=>w.name===i.data);if(y){const w=l(y.label);u(w),m(y.name),U.current&&(U.current.scrollTop=0)}}},[i,o,l]),b.useEffect(()=>{n&&(u(e[0]?.props.label),m(e[0]?.props.name),U.current&&(U.current.scrollTop=0),t&&t(e[0]?.props.label,e[0]?.props.name))},[n]);const L=()=>{localStorage.setItem("showReminder","false"),x(!1)},k=r===Wn.SETTINGS||r===Wn.DISCOVER;return s.jsxs("div",{style:{display:"flex",width:"100%",height:"100%",overflow:"hidden"},children:[k?s.jsxs("div",{className:"modalSidebar",children:[e.map((y,w)=>s.jsx(yo,{currentTab:d,label:y.props.label,onClick:I=>F(I,y.props.name),navbarTab:A},w)),s.jsx(xo,{isVisible:Q,onHide:L})]}):null,s.jsx("div",{className:"modalTabContent",ref:U,children:e.map((y,w)=>y.props.label!==d?null:s.jsx(Io,{children:y.props.children},`error-boundary-${w}`))})]})};async function ar(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 dt(e){return/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(e)}function sr(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 dt(A)?A:null}const So=({item:e,deleteLink:A,startEditLink:r,draggable:t=!1,onDragStart:n,onDragOver:a,onDrop:i,onDragEnd:o,isDragOver:l=!1,isDragging:c=!1})=>{let g,d=null;if(localStorage.getItem("quicklinksnewtab")==="true"&&(g="_blank",d="noopener noreferrer"),localStorage.getItem("quicklinksText")==="true")return s.jsx("a",{className:"quicklinkstext",onContextMenu:Q=>A(e.key,Q),href:e.url,target:g,rel:d,draggable:!1,children:e.name});const p=e.icon||ls(e.url,e.name),m=`messageMap ${c?"dragging":""} ${l?"drag-over":""}`;return s.jsxs("div",{className:m,draggable:t,onDragStart:Q=>n&&n(Q,e.key),onDragOver:Q=>a&&a(Q,e.key),onDrop:Q=>i&&i(Q,e.key),onDragEnd:Q=>o&&o(Q),children:[s.jsx("div",{className:"dragHandle","aria-hidden":!0,children:s.jsx(Gi,{})}),s.jsx("div",{className:"icon",children:s.jsx("img",{src:p,alt:e.name,draggable:!1,style:{height:"30px",width:"30px"}})}),s.jsxs("div",{className:"messageText",children:[s.jsx("div",{className:"title",children:e.name}),s.jsx("div",{className:"subtitle",children:s.jsx("a",{className:"quicklinknostyle",target:"_blank",rel:"noopener noreferrer",href:e.url,children:e.url})})]}),s.jsx("div",{children:s.jsxs("div",{className:"messageAction",children:[s.jsx(pA,{type:"settings",onClick:()=>r(e),icon:s.jsx(cs,{}),label:f.getMessage("modals.main.settings.sections.quicklinks.edit")}),s.jsx(pA,{type:"settings",onClick:Q=>A(e.key,Q),icon:s.jsx(Bt,{}),label:f.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]})};function Lo({appsEnabled:e}){const A=Ct(),[r,t]=b.useState({newLink:!1,edit:!1,items:JSON.parse(localStorage.getItem("applinks")),urlError:"",iconError:"",editData:null}),n=async(l,c,g)=>{const d=JSON.parse(localStorage.getItem("applinks"));if(c=sr(c),!c)return t(u=>({...u,urlError:A("widgets.quicklinks.url_error")}));if(g.length>0&&dt(g)===!1)return t(u=>({...u,iconError:A("widgets.quicklinks.icon_error")}));d.push({name:l||await ar(c),url:c,icon:g||"",key:Math.random().toString(36).substring(7)+1}),localStorage.setItem("applinks",JSON.stringify(d)),t({newLink:!1,edit:!1,items:d,urlError:"",iconError:""}),vA.emit("refresh","navbar"),f.stats.postEvent("feature","App link add")},a=l=>{t(c=>({...c,edit:!0,editData:l}))},i=async(l,c,g,d)=>{const u=JSON.parse(localStorage.getItem("applinks")),p=u.find(m=>m.key===l.key);if(p){if(g=sr(g),!g)return t(m=>({...m,urlError:A("widgets.quicklinks.url_error")}));if(d.length>0&&dt(d)===!1)return t(m=>({...m,iconError:A("widgets.quicklinks.icon_error")}));p.name=c||await ar(g),p.url=g,p.icon=d||"",localStorage.setItem("applinks",JSON.stringify(u)),t(m=>({...m,items:u,edit:!1,newLink:!1})),vA.emit("refresh","navbar")}},o=(l,c)=>{c.preventDefault();const g=JSON.parse(localStorage.getItem("applinks")).filter(d=>d.key!==l);localStorage.setItem("applinks",JSON.stringify(g)),t(d=>({...d,items:g})),vA.emit("refresh","navbar"),f.stats.postEvent("feature","App link delete")};return s.jsxs(s.Fragment,{children:[s.jsxs(rA,{final:!0,inactive:!e,children:[s.jsx(nA,{title:A("widgets.navbar.apps.title"),subtitle:A("modals.main.settings.sections.appearance.navbar.apps_subtitle")}),s.jsx(lA,{children:s.jsx(pA,{type:"settings",onClick:()=>t(l=>({...l,newLink:!0})),icon:s.jsx(gn,{}),label:A("modals.main.settings.sections.quicklinks.add_link")})})]}),s.jsx("div",{className:"messagesContainer",children:r.items.map((l,c)=>s.jsx(So,{item:l,startEditLink:()=>a(l),deleteLink:(g,d)=>o(g,d)},c))}),s.jsx(Re,{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:s.jsx(gs,{urlError:r.urlError,addLink:(l,c,g)=>n(l,c,g),editLink:(l,c,g,d)=>i(l,c,g,d),edit:r.edit,editData:r.editData,closeModal:()=>t(l=>({...l,newLink:!1,edit:!1}))})})]})}function ko(){const e=Ct(),[A,r]=b.useState(localStorage.getItem("refresh")==="true"),[t,n]=b.useState(localStorage.getItem("appsEnabled")==="true"||!1),a="modals.main.settings.sections.appearance.navbar",i=()=>s.jsxs(rA,{final:!1,children:[s.jsx(nA,{title:e("modals.main.settings.additional_settings"),subtitle:e("modals.main.settings.sections.appearance.navbar.additional")}),s.jsx(lA,{children:s.jsx(mA,{name:"navbarHover",text:e(`${a}.hover`),category:"navbar"})})]}),o=()=>{const c=({icon:d,messageKey:u,settingName:p})=>{const[m,Q]=b.useState(localStorage.getItem(p)!=="true"),x=()=>{localStorage.setItem(p,m),p==="refresh"?r(!A):p==="appsEnabled"&&n(!t),Q(!m),f.stats.postEvent("setting",`${p} ${m?"disabled":"enabled"}`),vA.emit("refresh","navbar")};return s.jsxs("button",{onClick:x,className:`navbarButtonOption ${m===!0?"disabled":""}`,children:[d,s.jsx("span",{className:"subtitle",children:e(u)})]})},g=[{icon:s.jsx(ji,{}),settingName:"view",messageKey:"modals.main.settings.sections.background.buttons.view"},{icon:s.jsx(Vi,{}),settingName:"notesEnabled",messageKey:`${a}.notes`},{icon:s.jsx(Pi,{}),settingName:"todoEnabled",messageKey:"widgets.navbar.todo.title"},{icon:s.jsx(fe,{}),settingName:"refresh",messageKey:`${a}.refresh`},{icon:s.jsx(Xi,{}),settingName:"appsEnabled",messageKey:"widgets.navbar.apps.title"}];return s.jsxs(rA,{children:[s.jsx(nA,{title:e("modals.main.settings.sections.appearance.navbar.widgets")}),s.jsx(lA,{children:s.jsx("div",{className:"navbarButtonOptions",children:g.map((d,u)=>s.jsx(c,{...d},u))})})]})},l=()=>s.jsxs(rA,{final:!1,inactive:!A,children:[s.jsx(nA,{title:e(`${a}.refresh`),subtitle:e("modals.main.settings.sections.appearance.navbar.refresh_subtitle")}),s.jsx(lA,{children:s.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 s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:e(`${a}.title`),setting:"navbar",category:"widgets",zoomSetting:"zoomNavbar",zoomCategory:"navbar"}),s.jsx(i,{}),s.jsx(o,{}),s.jsx(l,{}),s.jsx(Lo,{appsEnabled:t})]})}const Mo=b.memo(ko),zn=[{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}],Ko=({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(JSON.parse(localStorage.getItem("customEvents"))||[]),[a,i]=b.useState(()=>{const w=localStorage.getItem("birthday");return w?new Date(w):new Date}),[o,l]=b.useState(localStorage.getItem("birthdayenabled")==="true"?"preferences":"preferencesInactive"),[c,g]=b.useState(localStorage.getItem("events")==="true"?"preferences":"preferencesInactive"),d=w=>{const I=w.target.value?new Date(w.target.value):new Date;localStorage.setItem("birthday",I),i(I)},u="modals.main.settings.sections.greeting",p=()=>{const w=JSON.parse(localStorage.getItem("customEvents"))||[],I={id:"widgets.greeting.halloween",name:"",month:1,date:1},K=[...w,I];w.push(I),localStorage.setItem("customEvents",JSON.stringify(w)),n(K)},m=w=>{const I=t.filter((K,M)=>M!==w);localStorage.setItem("customEvents",JSON.stringify(I)),n(I)},Q=()=>{localStorage.setItem("customEvents",JSON.stringify(zn)),n(zn),RA(f.getMessage("toasts.reset"))},x=(w,I)=>{n(M=>{const O=[...M];return O[w]=I,O});const K=JSON.parse(localStorage.getItem("customEvents")||"[]");K[w]=I,localStorage.setItem("customEvents",JSON.stringify(K))},U=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.additional_settings"),subtitle:f.getMessage(`${u}.additional`)}),s.jsxs(lA,{children:[s.jsx(mA,{name:"defaultGreetingMessage",text:f.getMessage(`${u}.default`),category:"greeting"}),s.jsx(rr,{title:f.getMessage(`${u}.name`),name:"greetingName",category:"greeting"})]})]}),F=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage(`${u}.birthday`),subtitle:f.getMessage("modals.main.settings.sections.greeting.birthday_subtitle")}),s.jsxs(lA,{children:[s.jsx(us,{name:"birthdayenabled",text:f.getMessage("modals.main.settings.enabled"),category:"greeting",onChange:w=>{l(w?"preferences":"preferencesInactive")}}),s.jsxs("div",{className:o,children:[s.jsx(mA,{name:"birthdayage",text:f.getMessage(`${u}.birthday_age`),category:"greeting"}),s.jsx("p",{style:{marginRight:"auto"},children:f.getMessage(`${u}.birthday_date`)}),s.jsx("input",{type:"date",onChange:d,value:a.toISOString().substring(0,10),required:!0})]})]})]}),L=()=>s.jsxs("div",{className:c,children:[s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${u}.custom`)}),s.jsx(lA,{children:s.jsxs("div",{className:"headerActions",children:[s.jsx(pA,{type:"settings",onClick:Q,icon:s.jsx(fe,{}),label:f.getMessage("modals.main.settings.buttons.reset")}),s.jsx(pA,{type:"settings",onClick:p,icon:s.jsx(tr,{}),label:f.getMessage("widgets.quicklinks.add")})]})})]}),s.jsx("div",{className:"messagesContainer",children:t.map((w,I)=>s.jsxs("div",{className:"messageMap",children:[s.jsxs("div",{className:"flexGrow",children:[s.jsx("div",{className:"icon",children:s.jsx(Sr,{})}),s.jsxs("div",{className:"messageText",children:[s.jsx("span",{className:"subtitle",children:f.getMessage(`${u}.event_name`)}),s.jsx("input",{type:"text",className:"text-field-input",value:w.name,placeholder:f.getMessage(`${u}.event_name`),onChange:K=>{const M={...w,name:K.target.value};x(I,M)}})]})]}),s.jsx("div",{children:s.jsxs("div",{className:"messageAction",children:[s.jsxs("div",{className:"eventDateSelection",children:[s.jsxs("label",{className:"subtitle",children:[f.getMessage(`${u}.day`),":"]}),s.jsx("input",{id:"day",type:"number",min:"1",max:"31",value:w.date,onChange:K=>{const M=parseInt(K.target.value,10);if(M>=1&&M<=31){const O={...w,date:M};x(I,O)}}}),s.jsx("hr",{}),s.jsxs("label",{className:"subtitle",children:[f.getMessage(`${u}.month`),":"]}),s.jsx("input",{id:"month",type:"number",min:"1",max:"12",value:w.month,onChange:K=>{const M=parseInt(K.target.value,10);if(M>=1&&M<=12){const O={...w,month:M};x(I,O)}}})]}),s.jsx(pA,{type:"settings",onClick:()=>m(I),icon:s.jsx(Bt,{}),label:f.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]},I))}),t.length===0&&s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Sr,{}),s.jsx("span",{className:"title",children:f.getMessage(`${u}.no_events`)}),s.jsx("span",{className:"subtitle",children:f.getMessage(`${u}.no_events_description`)}),s.jsx(pA,{type:"settings",onClick:p,icon:s.jsx(tr,{}),label:f.getMessage(`${u}.add_event`)})]})})]}),k=e==="events";let y;return k?y=s.jsx(TA,{title:f.getMessage(`${u}.title`),secondaryTitle:f.getMessage(`${u}.events.title`),goBack:()=>A(null,r),report:!1}):y=s.jsx(TA,{title:f.getMessage(`${u}.title`),setting:"greeting",category:"greeting",element:".greeting",zoomSetting:"zoomGreeting",visibilityToggle:!0}),s.jsxs(s.Fragment,{children:[y,k?s.jsxs(s.Fragment,{children:[s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage(`${u}.events`),subtitle:f.getMessage(`${u}.enable_events`)}),s.jsx(lA,{children:s.jsx(mA,{name:"events",text:f.getMessage(`${u}.events`),category:"greeting",onChange:w=>{g(w?"preferences":"preferencesInactive")}})})]}),F(),L()]}):s.jsxs(Qt,{setting:"greeting",zoomSetting:"zoomGreeting",category:"greeting",visibilityToggle:!0,children:[s.jsx(U,{}),s.jsx(Rn,{title:f.getMessage(`${u}.events`),subtitle:f.getMessage(`${u}.events_description`),onClick:()=>A("events",r),icon:s.jsx(Sr,{})})]})]})},To=()=>{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"),[i,o]=b.useState(localStorage.getItem("secondColour")||"#ffffff"),l="modals.main.settings.sections.time",c=(Q,x)=>{const U=x.target.value;Q==="hourColour"?t(U):Q==="minuteColour"?a(U):Q==="secondColour"&&o(U),localStorage.setItem(Q,U)},g=()=>s.jsxs(rA,{final:e==="percentageComplete",children:[s.jsx(nA,{title:f.getMessage(`${l}.type`),subtitle:f.getMessage(`${l}.type_subtitle`)}),s.jsx(lA,{children:s.jsx(KA,{name:"timeType",onChange:Q=>A(Q),category:"clock",items:[{value:"digital",text:f.getMessage(`${l}.digital.title`)},{value:"analogue",text:f.getMessage(`${l}.analogue.title`)},{value:"percentageComplete",text:f.getMessage(`${l}.percentage_complete`)},{value:"verticalClock",text:f.getMessage(`${l}.vertical_clock.title`)}]})})]}),d=s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${l}.digital.title`),subtitle:f.getMessage(`${l}.digital.subtitle`)}),s.jsxs(lA,{children:[s.jsx(un,{name:"timeformat",options:[{name:f.getMessage(`${l}.digital.twentyfourhour`),value:"twentyfourhour"},{name:f.getMessage(`${l}.digital.twelvehour`),value:"twelvehour"}],smallTitle:!0,category:"clock"}),s.jsx(mA,{name:"seconds",text:f.getMessage(`${l}.digital.seconds`),category:"clock"}),s.jsx(mA,{name:"zero",text:f.getMessage(`${l}.digital.zero`),category:"clock"})]})]}),u=s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${l}.analogue.title`),subtitle:f.getMessage(`${l}.analogue.subtitle`)}),s.jsxs(lA,{children:[s.jsx(mA,{name:"secondHand",text:f.getMessage(`${l}.analogue.second_hand`),category:"clock"}),s.jsx(mA,{name:"minuteHand",text:f.getMessage(`${l}.analogue.minute_hand`),category:"clock"}),s.jsx(mA,{name:"hourHand",text:f.getMessage(`${l}.analogue.hour_hand`),category:"clock"}),s.jsx(mA,{name:"hourMarks",text:f.getMessage(`${l}.analogue.hour_marks`),category:"clock"}),s.jsx(mA,{name:"minuteMarks",text:f.getMessage(`${l}.analogue.minute_marks`),category:"clock"}),s.jsx(mA,{name:"roundClock",text:f.getMessage(`${l}.analogue.round_clock`),category:"clock"})]})]}),p=s.jsxs(s.Fragment,{children:[s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.vertical_clock.change_hour_colour")}),s.jsxs(lA,{children:[s.jsxs("div",{className:"colourInput",children:[s.jsx("input",{type:"color",name:"hourColour",className:"minuteColour",onChange:Q=>c("hourColour",Q),value:r}),s.jsx("label",{htmlFor:"hourColour",className:"customBackgroundHex",children:r})]}),s.jsxs("span",{className:"link",onClick:()=>localStorage.setItem("hourColour","#ffffff"),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})]})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.vertical_clock.change_minute_colour")}),s.jsxs(lA,{children:[s.jsxs("div",{className:"colourInput",children:[s.jsx("input",{type:"color",name:"minuteColour",className:"minuteColour",onChange:Q=>c("minuteColour",Q),value:n}),s.jsx("label",{htmlFor:"minuteColour",className:"customBackgroundHex",children:n})]}),s.jsxs("span",{className:"link",onClick:()=>localStorage.setItem("minuteColour","#ffffff"),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})]})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.vertical_clock.change_second_colour")}),s.jsxs(lA,{children:[s.jsxs("div",{className:"colourInput",children:[s.jsx("input",{type:"color",name:"secondColour",className:"secondColour",onChange:Q=>c("secondColour",Q),value:i}),s.jsx("label",{htmlFor:"secondColour",className:"customBackgroundHex",children:i})]}),s.jsxs("span",{className:"link",onClick:()=>localStorage.setItem("secondColour","#ffffff"),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})]})]}),d]}),m=()=>{switch(e){case"digital":return d;case"analogue":return u;case"verticalClock":return p;default:return null}};return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage(`${l}.title`),setting:"time",category:"clock",element:".clock-container",zoomSetting:"zoomClock",visibilityToggle:!0}),s.jsxs(Qt,{setting:"time",zoomSetting:"zoomClock",category:"clock",visibilityToggle:!0,children:[s.jsx(g,{}),m()]})]})};function Do(){const[e,A]=b.useState(localStorage.getItem("dateType")||"long"),r=["DMY","MDY","YMD"],t=s.jsxs(s.Fragment,{children:[s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.date.long_format"),name:"longFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),s.jsx(mA,{name:"dayofweek",text:f.getMessage("modals.main.settings.sections.date.day_of_week"),category:"date"}),s.jsx(mA,{name:"datenth",text:f.getMessage("modals.main.settings.sections.date.datenth"),category:"date"})]}),n=s.jsxs(s.Fragment,{children:[s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.date.short_format"),name:"dateFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.date.short_separator.title"),name:"shortFormat",category:"date",items:[{value:"dash",text:f.getMessage("modals.main.settings.sections.date.short_separator.dash")},{value:"dots",text:f.getMessage("modals.main.settings.sections.date.short_separator.dots")},{value:"gaps",text:f.getMessage("modals.main.settings.sections.date.short_separator.gaps")},{value:"slashes",text:f.getMessage("modals.main.settings.sections.date.short_separator.slashes")}]})]});return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.date.title"),setting:"date",category:"date",element:".date",zoomSetting:"zoomDate",visibilityToggle:!0}),s.jsxs(Qt,{setting:"date",visibilityToggle:!0,category:"date",zoomSetting:"zoomDate",children:[s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.type"),subtitle:f.getMessage("modals.main.settings.sections.date.type.subtitle")}),s.jsx(lA,{children:s.jsx(KA,{name:"dateType",onChange:a=>{A(a),localStorage.setItem("dateType",a)},category:"date",items:[{value:"long",text:f.getMessage("modals.main.settings.sections.date.type.long")},{value:"short",text:f.getMessage("modals.main.settings.sections.date.type.short")}]})})]}),s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:e==="long"?f.getMessage("modals.main.settings.sections.date.type.long"):f.getMessage("modals.main.settings.sections.date.type.short"),subtitle:f.getMessage("modals.main.settings.sections.date.type_settings")}),s.jsxs(lA,{children:[e==="long"?t:n,s.jsx(mA,{name:"weeknumber",text:f.getMessage("modals.main.settings.sections.date.week_number"),category:"date"}),s.jsx(mA,{name:"datezero",text:f.getMessage("modals.main.settings.sections.time.digital.zero"),category:"date"})]})]})]})]})}const Oo=()=>s.jsx("div",{className:"quicklink-drag-handle","aria-hidden":"true",children:s.jsx(Bs,{})}),Ro=({value:e,enabled:A,startEditLink:r,deleteLink:t})=>{const{attributes:n,listeners:a,setNodeRef:i,transform:o,transition:l,isDragging:c}=ds({id:e.key,disabled:!A}),g={transform:fs.Transform.toString(o),transition:l,opacity:c?.5:1},d=u=>u.icon||ls(u.url,u.name);return s.jsxs("div",{ref:i,style:g,...n,...a,className:`quicklink-item ${A?"":"disabled"}`,role:"listitem",children:[s.jsx(Oo,{}),s.jsx("div",{className:"quicklink-icon",children:s.jsx("img",{src:d(e),alt:e.name,draggable:!1})}),s.jsxs("div",{className:"quicklink-content",children:[s.jsx("div",{className:"quicklink-name",children:e.name}),s.jsx("div",{className:"quicklink-url",children:e.url})]}),s.jsxs("div",{className:"quicklink-actions",children:[s.jsxs("button",{className:"quicklink-action-btn",onClick:u=>{A&&(u.stopPropagation(),r(e))},title:"Edit",disabled:!A,"aria-disabled":!A,children:[s.jsx(cs,{}),s.jsx("span",{children:"Edit"})]}),s.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:[s.jsx(Ji,{}),s.jsx("span",{children:"Remove"})]})]})]})},No=({items:e,enabled:A,onDragEnd:r,startEditLink:t,deleteLink:n})=>{const a=hs(nr(Cs,{activationConstraint:{distance:6}}),nr(ps,{coordinateGetter:ws}));return s.jsx(Qs,{sensors:a,collisionDetection:ms,onDragEnd:r,children:s.jsx(vs,{items:e.map(i=>i.key),strategy:Us,children:s.jsx("div",{className:"quicklinks-list",role:"list",children:e.map(i=>s.jsx(Ro,{value:i,enabled:A,startEditLink:t,deleteLink:n},i.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(""),[i,o]=b.useState(""),[l,c]=b.useState(!1),[g,d]=b.useState(""),[u,p]=b.useState(localStorage.getItem("quicklinksenabled")!=="false"),m=b.useRef(),Q=b.useRef(!1),x=O=>{if(!m||!m.current)return;const R=m.current;R.classList.toggle("disabled",!O),O?R.removeAttribute("aria-hidden"):R.setAttribute("aria-hidden","true")},U=(O,R)=>{R.preventDefault();const D=Xe().filter(W=>W.key!==O);Q.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),A(D),f.stats.postEvent("feature","Quicklink delete"),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0)},F=async(O,R,P)=>{const D=Xe();if(R=sr(R),!R){a(f.getMessage("widgets.quicklinks.url_error"));return}if(P.length>0&&dt(P)===!1){o(f.getMessage("widgets.quicklinks.url_error"));return}const W={name:O||await ar(R),url:R,icon:P||"",key:Date.now().toString()+Math.random().toString(36).substring(2)};D.push(W),Q.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),A(D),t(!1),a(""),o(""),f.stats.postEvent("feature","Quicklink add"),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0)},L=O=>{c(!0),d(O),t(!0)},k=async(O,R,P,D)=>{const W=Xe(),$=W.find(eA=>eA.key===O.key);if($){if(P=sr(P),!P){a(f.getMessage("widgets.quicklinks.url_error"));return}if(D.length>0&&dt(D)===!1){o(f.getMessage("widgets.quicklinks.url_error"));return}$.name=R||await ar(P),$.url=P,$.icon=D||"",Q.current=!0,localStorage.setItem("quicklinks",JSON.stringify(W)),A(W),t(!1),c(!1),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0)}},y=O=>{const{active:R,over:P}=O;if(!P||!u||R.id===P.id)return;const D=e.findIndex(eA=>eA.key===R.id),W=e.findIndex(eA=>eA.key===P.id);if(D===-1||W===-1)return;const $=Fs(e,D,W);Q.current=!0,A($),localStorage.setItem("quicklinks",JSON.stringify($)),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0)};b.useEffect(()=>{x(u)},[u]),b.useEffect(()=>{x(u);const O=R=>{if(R!=="quicklinks"||Q.current)return;const P=localStorage.getItem("quicklinksenabled")!=="false",D=Xe(),W=e||[],$=W.length===D.length&&W.every(eA=>D.some(AA=>AA.key===eA.key));(P!==u||!$)&&(x(P),A(D),p(P))};return vA.on("refresh",O),()=>{vA.off("refresh",O)}},[u,e]);const w="modals.main.settings.sections.quicklinks",I=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.additional_settings"),subtitle:f.getMessage(`${w}.additional`)}),s.jsxs(lA,{children:[s.jsx(mA,{name:"quicklinksnewtab",text:f.getMessage(`${w}.open_new`),category:"quicklinks"}),s.jsx(mA,{name:"quicklinkstooltip",text:f.getMessage(`${w}.tooltip`),category:"quicklinks"})]})]}),K=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage(`${w}.styling`),subtitle:f.getMessage("modals.main.settings.sections.quicklinks.styling_description")}),s.jsx(lA,{children:s.jsx(KA,{label:f.getMessage(`${w}.style`),name:"quickLinksStyle",category:"quicklinks",items:[{value:"icon",text:f.getMessage(`${w}.options.icon`)},{value:"text_only",text:f.getMessage(`${w}.options.text_only`)},{value:"metro",text:f.getMessage(`${w}.options.metro`)}]})})]}),M=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${w}.title`)}),s.jsx(lA,{children:s.jsx(pA,{type:"settings",onClick:()=>u&&t(!0),icon:s.jsx(gn,{}),label:f.getMessage(`${w}.add_link`),disabled:!u})})]});return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage(`${w}.title`),setting:"quicklinksenabled",category:"quicklinks",element:".quicklinks-container",zoomSetting:"zoomQuicklinks",visibilityToggle:!0}),s.jsxs(Qt,{setting:"quicklinksenabled",category:"quicklinks",visibilityToggle:!0,zoomSetting:"zoomQuicklinks",children:[s.jsx(I,{}),s.jsx(K,{}),s.jsx(M,{}),e.length===0&&s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Wi,{}),s.jsx("span",{className:"title",children:f.getMessage(`${w}.no_quicklinks`)}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.message.add_some")}),s.jsx(pA,{type:"settings",onClick:()=>t(!0),icon:s.jsx(gn,{}),label:f.getMessage(`${w}.add_link`)})]})})]}),s.jsx("div",{className:`quicklinks-container ${u?"":"disabled"}`,ref:m,"aria-hidden":!u,children:s.jsx("div",{className:`messagesContainer ${u?"":"disabled"}`,children:s.jsx(No,{items:e,enabled:u,onDragEnd:y,startEditLink:O=>L(O),deleteLink:(O,R)=>U(O,R)})})}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a(""),o("")},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(gs,{urlError:n,addLink:(O,R,P)=>F(O,R,P),editLink:(O,R,P,D)=>k(O,R,P,D),edit:l,editData:g,closeModal:()=>{t(!1),a(""),o(""),c(!1)}})})]})},Go=()=>{const[e,A]=b.useState(JSON.parse(localStorage.getItem("messages"))||[]),r=(a,i)=>{const o=[...e];a==="add"?o.push(""):o.splice(i,1),A(o),localStorage.setItem("messages",JSON.stringify(o))},t=(a,i,o)=>{const l=a.target.value,c=[...e];c[o]=l,A(c),localStorage.setItem("messages",JSON.stringify(c)),document.querySelector(".reminder-info").style.display="flex",localStorage.setItem("showReminder",!0)},n="modals.main.settings.sections.message";return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage(`${n}.title`),setting:"message",category:"message",element:".message",zoomSetting:"zoomMessage",visibilityToggle:!0}),s.jsxs(Qt,{setting:"message",visibilityToggle:!0,category:"message",zoomSetting:"zoomMessage",children:[s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${n}.messages`)}),s.jsx(lA,{children:s.jsx(pA,{type:"settings",onClick:()=>r("add"),icon:s.jsx(tr,{}),label:f.getMessage(`${n}.add`)})})]}),s.jsx("div",{className:"messagesContainer",children:e.map((a,i)=>s.jsxs("div",{className:"messageMap",children:[s.jsxs("div",{className:"flexGrow",children:[s.jsx("div",{className:"icon",children:s.jsx(Yn,{})}),s.jsxs("div",{className:"messageText",children:[s.jsx("span",{className:"subtitle",children:f.getMessage(`${n}.title`)}),s.jsx(Yi,{value:e[i],placeholder:f.getMessage("modals.main.settings.sections.message.content"),onChange:o=>t(o,!0,i),minRows:2})]})]}),s.jsx("div",{children:s.jsx("div",{className:"messageAction",children:s.jsx(pA,{type:"settings",onClick:()=>r("remove",i),icon:s.jsx(Bt,{}),label:f.getMessage("modals.main.marketplace.product.buttons.remove")})})})]},i))}),e.length===0&&s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Yn,{}),s.jsx("span",{className:"title",children:f.getMessage(`${n}.no_messages`)}),s.jsx("span",{className:"subtitle",children:f.getMessage(`${n}.add_some`)}),s.jsx(pA,{type:"settings",onClick:()=>r("add"),icon:s.jsx(tr,{}),label:f.getMessage(`${n}.add`)})]})})]})]})};var kr={exports:{}},$n;function jo(){return $n||($n=1,(function(e){(function(A){var r=/^\s+/,t=/\s+$/,n=0,a=A.round,i=A.min,o=A.max,l=A.random;function c(B,C){if(B=B||"",C=C||{},B instanceof c)return B;if(!(this instanceof c))return new c(B,C);var h=g(B);this._originalInput=B,this._r=h.r,this._g=h.g,this._b=h.b,this._a=h.a,this._roundA=a(100*this._a)/100,this._format=C.format||h.format,this._gradientType=C.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=h.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 B=this.toRgb();return(B.r*299+B.g*587+B.b*114)/1e3},getLuminance:function(){var B=this.toRgb(),C,h,E,T,G,aA;return C=B.r/255,h=B.g/255,E=B.b/255,C<=.03928?T=C/12.92:T=A.pow((C+.055)/1.055,2.4),h<=.03928?G=h/12.92:G=A.pow((h+.055)/1.055,2.4),E<=.03928?aA=E/12.92:aA=A.pow((E+.055)/1.055,2.4),.2126*T+.7152*G+.0722*aA},setAlpha:function(B){return this._a=sA(B),this._roundA=a(100*this._a)/100,this},toHsv:function(){var B=m(this._r,this._g,this._b);return{h:B.h*360,s:B.s,v:B.v,a:this._a}},toHsvString:function(){var B=m(this._r,this._g,this._b),C=a(B.h*360),h=a(B.s*100),E=a(B.v*100);return this._a==1?"hsv("+C+", "+h+"%, "+E+"%)":"hsva("+C+", "+h+"%, "+E+"%, "+this._roundA+")"},toHsl:function(){var B=u(this._r,this._g,this._b);return{h:B.h*360,s:B.s,l:B.l,a:this._a}},toHslString:function(){var B=u(this._r,this._g,this._b),C=a(B.h*360),h=a(B.s*100),E=a(B.l*100);return this._a==1?"hsl("+C+", "+h+"%, "+E+"%)":"hsla("+C+", "+h+"%, "+E+"%, "+this._roundA+")"},toHex:function(B){return x(this._r,this._g,this._b,B)},toHexString:function(B){return"#"+this.toHex(B)},toHex8:function(B){return U(this._r,this._g,this._b,this._a,B)},toHex8String:function(B){return"#"+this.toHex8(B)},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(B){var C="#"+F(this._r,this._g,this._b,this._a),h=C,E=this._gradientType?"GradientType = 1, ":"";if(B){var T=c(B);h="#"+F(T._r,T._g,T._b,T._a)}return"progid:DXImageTransform.Microsoft.gradient("+E+"startColorstr="+C+",endColorstr="+h+")"},toString:function(B){var C=!!B;B=B||this._format;var h=!1,E=this._a<1&&this._a>=0,T=!C&&E&&(B==="hex"||B==="hex6"||B==="hex3"||B==="hex4"||B==="hex8"||B==="name");return T?B==="name"&&this._a===0?this.toName():this.toRgbString():(B==="rgb"&&(h=this.toRgbString()),B==="prgb"&&(h=this.toPercentageRgbString()),(B==="hex"||B==="hex6")&&(h=this.toHexString()),B==="hex3"&&(h=this.toHexString(!0)),B==="hex4"&&(h=this.toHex8String(!0)),B==="hex8"&&(h=this.toHex8String()),B==="name"&&(h=this.toName()),B==="hsl"&&(h=this.toHslString()),B==="hsv"&&(h=this.toHsvString()),h||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(B,C){var h=B.apply(null,[this].concat([].slice.call(C)));return this._r=h._r,this._g=h._g,this._b=h._b,this.setAlpha(h._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(I,arguments)},darken:function(){return this._applyModification(K,arguments)},desaturate:function(){return this._applyModification(L,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(B,C){return B.apply(null,[this].concat([].slice.call(C)))},analogous:function(){return this._applyCombination(W,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(R,arguments)},tetrad:function(){return this._applyCombination(P,arguments)}},c.fromRatio=function(B,C){if(typeof B=="object"){var h={};for(var E in B)B.hasOwnProperty(E)&&(E==="a"?h[E]=B[E]:h[E]=Y(B[E]));B=h}return c(B,C)};function g(B){var C={r:0,g:0,b:0},h=1,E=null,T=null,G=null,aA=!1,hA=!1;return typeof B=="string"&&(B=H(B)),typeof B=="object"&&(tA(B.r)&&tA(B.g)&&tA(B.b)?(C=d(B.r,B.g,B.b),aA=!0,hA=String(B.r).substr(-1)==="%"?"prgb":"rgb"):tA(B.h)&&tA(B.s)&&tA(B.v)?(E=Y(B.s),T=Y(B.v),C=Q(B.h,E,T),aA=!0,hA="hsv"):tA(B.h)&&tA(B.s)&&tA(B.l)&&(E=Y(B.s),G=Y(B.l),C=p(B.h,E,G),aA=!0,hA="hsl"),B.hasOwnProperty("a")&&(h=B.a)),h=sA(h),{ok:aA,format:B.format||hA,r:i(255,o(C.r,0)),g:i(255,o(C.g,0)),b:i(255,o(C.b,0)),a:h}}function d(B,C,h){return{r:q(B,255)*255,g:q(C,255)*255,b:q(h,255)*255}}function u(B,C,h){B=q(B,255),C=q(C,255),h=q(h,255);var E=o(B,C,h),T=i(B,C,h),G,aA,hA=(E+T)/2;if(E==T)G=aA=0;else{var UA=E-T;switch(aA=hA>.5?UA/(2-E-T):UA/(E+T),E){case B:G=(C-h)/UA+(C<h?6:0);break;case C:G=(h-B)/UA+2;break;case h:G=(B-C)/UA+4;break}G/=6}return{h:G,s:aA,l:hA}}function p(B,C,h){var E,T,G;B=q(B,360),C=q(C,100),h=q(h,100);function aA(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(C===0)E=T=G=h;else{var hA=h<.5?h*(1+C):h+C-h*C,UA=2*h-hA;E=aA(UA,hA,B+1/3),T=aA(UA,hA,B),G=aA(UA,hA,B-1/3)}return{r:E*255,g:T*255,b:G*255}}function m(B,C,h){B=q(B,255),C=q(C,255),h=q(h,255);var E=o(B,C,h),T=i(B,C,h),G,aA,hA=E,UA=E-T;if(aA=E===0?0:UA/E,E==T)G=0;else{switch(E){case B:G=(C-h)/UA+(C<h?6:0);break;case C:G=(h-B)/UA+2;break;case h:G=(B-C)/UA+4;break}G/=6}return{h:G,s:aA,v:hA}}function Q(B,C,h){B=q(B,360)*6,C=q(C,100),h=q(h,100);var E=A.floor(B),T=B-E,G=h*(1-C),aA=h*(1-T*C),hA=h*(1-(1-T)*C),UA=E%6,jA=[h,aA,G,G,hA,h][UA],Pe=[hA,h,h,aA,G,G][UA],YA=[G,G,hA,h,h,aA][UA];return{r:jA*255,g:Pe*255,b:YA*255}}function x(B,C,h,E){var T=[N(a(B).toString(16)),N(a(C).toString(16)),N(a(h).toString(16))];return E&&T[0].charAt(0)==T[0].charAt(1)&&T[1].charAt(0)==T[1].charAt(1)&&T[2].charAt(0)==T[2].charAt(1)?T[0].charAt(0)+T[1].charAt(0)+T[2].charAt(0):T.join("")}function U(B,C,h,E,T){var G=[N(a(B).toString(16)),N(a(C).toString(16)),N(a(h).toString(16)),N(gA(E))];return T&&G[0].charAt(0)==G[0].charAt(1)&&G[1].charAt(0)==G[1].charAt(1)&&G[2].charAt(0)==G[2].charAt(1)&&G[3].charAt(0)==G[3].charAt(1)?G[0].charAt(0)+G[1].charAt(0)+G[2].charAt(0)+G[3].charAt(0):G.join("")}function F(B,C,h,E){var T=[N(gA(E)),N(a(B).toString(16)),N(a(C).toString(16)),N(a(h).toString(16))];return T.join("")}c.equals=function(B,C){return!B||!C?!1:c(B).toRgbString()==c(C).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})};function L(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.s-=C/100,h.s=cA(h.s),c(h)}function k(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.s+=C/100,h.s=cA(h.s),c(h)}function y(B){return c(B).desaturate(100)}function w(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.l+=C/100,h.l=cA(h.l),c(h)}function I(B,C){C=C===0?0:C||10;var h=c(B).toRgb();return h.r=o(0,i(255,h.r-a(255*-(C/100)))),h.g=o(0,i(255,h.g-a(255*-(C/100)))),h.b=o(0,i(255,h.b-a(255*-(C/100)))),c(h)}function K(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.l-=C/100,h.l=cA(h.l),c(h)}function M(B,C){var h=c(B).toHsl(),E=(h.h+C)%360;return h.h=E<0?360+E:E,c(h)}function O(B){var C=c(B).toHsl();return C.h=(C.h+180)%360,c(C)}function R(B){var C=c(B).toHsl(),h=C.h;return[c(B),c({h:(h+120)%360,s:C.s,l:C.l}),c({h:(h+240)%360,s:C.s,l:C.l})]}function P(B){var C=c(B).toHsl(),h=C.h;return[c(B),c({h:(h+90)%360,s:C.s,l:C.l}),c({h:(h+180)%360,s:C.s,l:C.l}),c({h:(h+270)%360,s:C.s,l:C.l})]}function D(B){var C=c(B).toHsl(),h=C.h;return[c(B),c({h:(h+72)%360,s:C.s,l:C.l}),c({h:(h+216)%360,s:C.s,l:C.l})]}function W(B,C,h){C=C||6,h=h||30;var E=c(B).toHsl(),T=360/h,G=[c(B)];for(E.h=(E.h-(T*C>>1)+720)%360;--C;)E.h=(E.h+T)%360,G.push(c(E));return G}function $(B,C){C=C||6;for(var h=c(B).toHsv(),E=h.h,T=h.s,G=h.v,aA=[],hA=1/C;C--;)aA.push(c({h:E,s:T,v:G})),G=(G+hA)%1;return aA}c.mix=function(B,C,h){h=h===0?0:h||50;var E=c(B).toRgb(),T=c(C).toRgb(),G=h/100,aA={r:(T.r-E.r)*G+E.r,g:(T.g-E.g)*G+E.g,b:(T.b-E.b)*G+E.b,a:(T.a-E.a)*G+E.a};return c(aA)},c.readability=function(B,C){var h=c(B),E=c(C);return(A.max(h.getLuminance(),E.getLuminance())+.05)/(A.min(h.getLuminance(),E.getLuminance())+.05)},c.isReadable=function(B,C,h){var E=c.readability(B,C),T,G;switch(G=!1,T=X(h),T.level+T.size){case"AAsmall":case"AAAlarge":G=E>=4.5;break;case"AAlarge":G=E>=3;break;case"AAAsmall":G=E>=7;break}return G},c.mostReadable=function(B,C,h){var E=null,T=0,G,aA,hA,UA;h=h||{},aA=h.includeFallbackColors,hA=h.level,UA=h.size;for(var jA=0;jA<C.length;jA++)G=c.readability(B,C[jA]),G>T&&(T=G,E=c(C[jA]));return c.isReadable(B,E,{level:hA,size:UA})||!aA?E:(h.includeFallbackColors=!1,c.mostReadable(B,["#fff","#000"],h))};var eA=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=fA(eA);function fA(B){var C={};for(var h in B)B.hasOwnProperty(h)&&(C[B[h]]=h);return C}function sA(B){return B=parseFloat(B),(isNaN(B)||B<0||B>1)&&(B=1),B}function q(B,C){S(B)&&(B="100%");var h=_(B);return B=i(C,o(0,parseFloat(B))),h&&(B=parseInt(B*C,10)/100),A.abs(B-C)<1e-6?1:B%C/parseFloat(C)}function cA(B){return i(1,o(0,B))}function iA(B){return parseInt(B,16)}function S(B){return typeof B=="string"&&B.indexOf(".")!=-1&&parseFloat(B)===1}function _(B){return typeof B=="string"&&B.indexOf("%")!=-1}function N(B){return B.length==1?"0"+B:""+B}function Y(B){return B<=1&&(B=B*100+"%"),B}function gA(B){return A.round(parseFloat(B)*255).toString(16)}function Z(B){return iA(B)/255}var z=(function(){var B="[-\\+]?\\d+%?",C="[-\\+]?\\d*\\.\\d+%?",h="(?:"+C+")|(?:"+B+")",E="[\\s|\\(]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")\\s*\\)?",T="[\\s|\\(]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")\\s*\\)?";return{CSS_UNIT:new RegExp(h),rgb:new RegExp("rgb"+E),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+E),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+E),hsva:new RegExp("hsva"+T),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 tA(B){return!!z.CSS_UNIT.exec(B)}function H(B){B=B.replace(r,"").replace(t,"").toLowerCase();var C=!1;if(eA[B])B=eA[B],C=!0;else if(B=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var h;return(h=z.rgb.exec(B))?{r:h[1],g:h[2],b:h[3]}:(h=z.rgba.exec(B))?{r:h[1],g:h[2],b:h[3],a:h[4]}:(h=z.hsl.exec(B))?{h:h[1],s:h[2],l:h[3]}:(h=z.hsla.exec(B))?{h:h[1],s:h[2],l:h[3],a:h[4]}:(h=z.hsv.exec(B))?{h:h[1],s:h[2],v:h[3]}:(h=z.hsva.exec(B))?{h:h[1],s:h[2],v:h[3],a:h[4]}:(h=z.hex8.exec(B))?{r:iA(h[1]),g:iA(h[2]),b:iA(h[3]),a:Z(h[4]),format:C?"name":"hex8"}:(h=z.hex6.exec(B))?{r:iA(h[1]),g:iA(h[2]),b:iA(h[3]),format:C?"name":"hex"}:(h=z.hex4.exec(B))?{r:iA(h[1]+""+h[1]),g:iA(h[2]+""+h[2]),b:iA(h[3]+""+h[3]),a:Z(h[4]+""+h[4]),format:C?"name":"hex8"}:(h=z.hex3.exec(B))?{r:iA(h[1]+""+h[1]),g:iA(h[2]+""+h[2]),b:iA(h[3]+""+h[3]),format:C?"name":"hex"}:!1}function X(B){var C,h;return B=B||{level:"AA",size:"small"},C=(B.level||"AA").toUpperCase(),h=(B.size||"small").toLowerCase(),C!=="AA"&&C!=="AAA"&&(C="AA"),h!=="small"&&h!=="large"&&(h="small"),{level:C,size:h}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(kr)),kr.exports}var Vo=jo();const SA=bs(Vo);var De=function(){return De=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},De.apply(this,arguments)},Po=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))},Xo=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(S){var _=new Error(e+": "+S);throw _}function t(S){e=e.substr(S)}function n(S){var _=/^[\n\r\t\s]+/.exec(e);_&&t(_[0].length);var N=S.exec(e);return N&&t(N[0].length),N}function a(S){var _=S(),N=[];if(_)for(N.push(_);n(A.comma);)_=S(),_?N.push(_):r("One extra comma");return N}function i(S,_,N){var Y=n(_);if(Y)return{type:S,value:Y[N]}}function o(){var S=i("hex",A.hexColor,1);if(S?.value){var _=SA(S?.value).toRgb(),N=_.r,Y=_.g,gA=_.b,Z=_.a;return{value:"rgba(".concat(N,", ").concat(Y,", ").concat(gA,", ").concat(Z,")")}}}var l=function(S){var _=me(S?.[0]);return{value:"".concat(_?"RGBA":"rgba","(").concat(a(AA),")")}};function c(S,_){var N=n(S);if(N){n(A.startCall)||r("Missing (");var Y=_(N);return n(A.endCall)||r("Missing )"),Y}}function g(){return c(A.hslColor,fA)}function d(){return c(A.rgbaColor,l)}function u(){return c(A.rgbColor,q)}function p(){var S=i("literal",A.literalColor,0);if(S?.value){var _=SA(S?.value).toRgb(),N=_.r,Y=_.g,gA=_.b,Z=_.a;return{value:"rgba(".concat(N,", ").concat(Y,", ").concat(gA,", ").concat(Z,")")}}}function m(){return c(A.hsvColor,sA)}function Q(){return o()||g()||d()||u()||p()||m()}function x(){var S,_=Q();return _||r("Expected color definition"),_.left=parseInt((S=cA())===null||S===void 0?void 0:S.value),_}function U(S,_,N){return c(_,function(){var Y=N();return Y&&(n(A.comma)||r("Missing comma before color stops")),{type:S,orientation:Y,colorStops:a(x)}})}function F(){return w()||I()}function L(){return U("linear-gradient",A.linearGradient,F)||U("repeating-linear-gradient",A.repeatingLinearGradient,F)||U("radial-gradient",A.radialGradient,K)||U("repeating-radial-gradient",A.repeatingRadialGradient,K)}function k(){return a(L)}function y(){var S,_=k();e.length>0&&r("Invalid input not EOF");var N=_[0],Y=(S=N?.colorStops)===null||S===void 0?void 0:S.filter(function(Z){return me(Z.value)}).length,gA=function(){if(Y>0)return N;var Z=function(z,tA){return tA===0?Qr(z):mt(z)};return De(De({},N),{colorStops:N.colorStops.map(function(z,tA){return De(De({},z),{value:Z(z,tA)})})})};return gA()}function w(){return i("directional",A.sideOrCorner,1)}function I(){return i("angular",A.angleValue,1)}function K(){var S,_=M(),N;return _&&(S=[],S.push(_),N=e,n(A.comma)&&(_=M(),_?S.push(_):e=N)),S}function M(){var S=R()||P();if(S)S.at=W();else{var _=D();if(_){S=_;var N=W();N&&(S.at=N)}else{var Y=$();Y&&(S={type:"default-radial",at:Y})}}return S}function O(){return i("px",A.pixelValue,1)||i("em",A.emValue,1)}function R(){var S=i("shape",/^(circle)/i,0);return S&&(S.style=O()||D()),S}function P(){var S=i("shape",/^(ellipse)/i,0);return S&&(S.style=cA()||D()),S}function D(){return i("extent-keyword",A.extentKeywords,1)}function W(){if(i("position",/^at/,0)){var S=$();return S||r("Missing positioning value"),S}}function $(){var S=eA();if(S.x||S.y)return{type:"position",value:S}}function eA(){return{x:cA(),y:cA()}}function AA(){return n(A.number)[1]}var fA=function(S){var _=me(S?.[0]),N=a(AA),Y=SA({h:N[0],s:N[1],l:N[2],a:N[3]||1}).toRgb(),gA=Y.r,Z=Y.g,z=Y.b,tA=Y.a;return{value:"".concat(_?"RGBA":"rgba","(").concat(gA,", ").concat(Z,", ").concat(z,", ").concat(tA,")")}},sA=function(S){var _=me(S?.[0]),N=a(AA),Y=SA({h:N[0],s:N[1],v:N[2],a:N[3]||1}).toRgb(),gA=Y.r,Z=Y.g,z=Y.b,tA=Y.a;return{value:"".concat(_?"RGBA":"rgba","(").concat(gA,", ").concat(Z,", ").concat(z,", ").concat(tA,")")}},q=function(S){var _=me(S?.[0]),N=n(A.spacedRgbColor),Y=N||Po([null],a(AA),!0),gA=Y[1],Z=Y[2],z=Y[3],tA=Y[4],H=tA===void 0?1:tA;return{value:"".concat(_?"RGBA":"rgba","(").concat(gA,", ").concat(Z,", ").concat(z,", ").concat(H,")")}};function cA(){return i("%",A.percentageValue,1)||iA()||O()}function iA(){return i("position-keyword",A.positionKeywords,1)}return y()},mt=function(e){return e.value.toLowerCase()},Qr=function(e){return e.value.toUpperCase()},Jo=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 i=Xo(a);return i?.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)},ir=function(){return ir=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},ir.apply(this,arguments)},ys=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=ys(e),t=r.offsetLeft,n=r.clientWidth,a=e.clientX-t-A/2,i=n-18,o=_e(a,0,i);return Math.round(o/(i/100))}function Wo(e,A,r,t,n){var a=e*r-n/2,i=(100-A)/100*t-n/2;return[a,i]}var Yo=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 Zo(e,A){var r=ys(e),t=r.offsetLeft,n=r.offsetTop,a=r.clientWidth,i=r.clientHeight,o=Yo(e),l=o.clientX,c=o.clientY,g=function(){var u=l-t-A/2;return _e(u,-9,a-10)},d=function(){var u=c-n-A/2;return _e(u,-9,i-10)};return[g(),d()]}var me=function(e){var A;return e?.[0]===((A=e?.[0])===null||A===void 0?void 0:A.toUpperCase())},xs=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)},qo=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 i=(r=e?.colorStops)===null||r===void 0?void 0:r.sort(function(u,p){return u?.left-p?.left}),o=(t=i?.map(function(u){return"".concat(u?.value," ").concat(u?.left,"%")}))===null||t===void 0?void 0:t.join(", "),l=e?.type,c=xs((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 d=((a=e?.colorStops[0])===null||a===void 0?void 0:a.value)||"rgba(175, 51, 242, 1)";return d}},zo=function(e,A){var r=e?.map(function(a,i){return ir(ir({},a),{index:i})}),t=r?.find(function(a){return me(a.value)}),n=t||r[0];return{currentColor:n?.value||A,selectedColor:n?.index||0,currentLeft:n?.left||0}},$o=function(e){var A,r=e?.split(",")[0],t=(A=r?.split("(")[1])===null||A===void 0?void 0:A.replace("deg","");return xs(t)},Al=function(e){var A=e?.includes("gradient"),r=e?.split("(")[0],t=$o(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)},el=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))},Is=b.createContext(null);function tl(e){var A,r,t,n,a=e.value,i=e.children,o=e.onChange,l=e.isDarkMode,c=e.squareWidth,g=e.hideOpacity,d=e.showHexAlpha,u=e.squareHeight,p=e.passedConfig,m=e.defaultStyles,Q=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=Jo(a,x.defaultColor,x.defaultGradient),F=Al(a),L=F.degrees,k=F.degreeStr,y=F.isGradient,w=F.gradientType,I=zo(U,x.defaultGradient),K=I.currentColor,M=I.selectedColor,O=I.currentLeft,R=b.useState("rgb"),P=R[0],D=R[1],W=b.useState({}),$=W[0],eA=W[1],AA=SA(K),fA=AA.toRgb(),sA=AA.toHsv(),q=b.useState(DA(DA({},fA),sA)),cA=q[0],iA=q[1];b.useEffect(function(){sA?.s===0?iA(DA(DA(DA({},fA),sA),{h:cA?.h})):iA(DA(DA({},fA),sA))},[K]);var S=function(Z){var z=Z.sort(function(X,B){return X.left-B.left}),tA=z?.map(function(X){return"".concat(X?.value," ").concat(X.left,"%")}),H="".concat(w,"(").concat(k,", ").concat(tA.join(", "),")");eA(DA(DA({},$),{gradient:H})),o(H)},_=function(Z,z){var tA=U?.filter(function(X){return!me(X.value)}),H=el([{value:Z.toUpperCase(),left:z??O}],tA,!0);S(H)},N=function(Z){y?_(Z):(eA(DA(DA({},$),{color:Z})),o(Z))},Y=function(){if(U?.length>2){var Z=U?.map(function(tA,H){return DA(DA({},tA),{value:H===M-1?Qr(tA):mt(tA)})}),z=Z?.filter(function(tA,H){return H!==M});S(z)}},gA={hc:cA,setHc:iA,value:a,colors:U,config:x,degrees:L,onChange:o,previous:$,inputType:P,tinyColor:AA,isDarkMode:l,isGradient:y,squareWidth:c,hideOpacity:g,currentLeft:O,deletePoint:Y,showHexAlpha:d,squareHeight:u,setInputType:D,gradientType:w,handleChange:N,currentColor:K,selectedColor:M,defaultStyles:m,handleGradient:_,pickerIdSuffix:Q,createGradientStr:S};return v.createElement(Is.Provider,{value:gA},i)}function dA(){var e=b.useContext(Is);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%)"},rl=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])},nl=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 i=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)i.addColorStop(o/100,"hsl(".concat(A,", ").concat(o,"%, ").concat(r,"%)"));a.fillStyle=i,a.fill()}},[e,A,r,t])},al=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 i=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)i.addColorStop(o/100,"hsl(".concat(A,", ").concat(r,"%, ").concat(o,"%)"));a.fillStyle=i,a.fill()}},[e,A,r,t])},sl=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 i=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10){var l=SA({h:A,s:r,v:o});i.addColorStop(o/100,l.toHslString())}a.fillStyle=i,a.fill()}},[e,A,r,t])},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)},il=function(){var e=b.useRef(null),A=dA(),r=A.config,t=A.handleChange,n=A.squareWidth,a=A.hc,i=A.setHc,o=A.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],d=r.barSize;rl(e,n);var u=function(){g(!1)},p=function(){g(!0)},m=function(U){var F=Ge(U,d)*3.6,L=SA({h:F,s:a?.s,v:a?.v}),k=L.toRgb(),y=k.r,w=k.g,I=k.b;t("rgba(".concat(y,", ").concat(w,", ").concat(I,", ").concat(a.a,")")),i(or(or({},a),{h:F}))},Q=function(U){c&&m(U)},x=function(U){c||m(U)};return b.useEffect(function(){var U=function(){u()};return window.addEventListener("mouseup",U),function(){window.removeEventListener("mouseup",U)}},[]),v.createElement("div",{style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},onMouseMove:function(U){return Q(U)},id:"rbgcp-hue-wrap".concat(o)},v.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)}),v.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 ol(e,A,r){var t=0,n=0,a=0,i=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 i=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),i=o,{c:t,m:n,y:a,k:i}}var ll=function(e){var A=e.c,r=e.m,t=e.y,n=e.k,a=255*(1-A)*(1-n),i=255*(1-r)*(1-n),o=255*(1-t)*(1-n);return{r:a,g:i,b:o}},cl=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,i=e.hideOpacity,o=e.defaultStyles,l=e.pickerIdSuffix,c=b.useState(r),g=c[0],d=c[1],u=i?"25%":"20%";b.useEffect(function(){d(r)},[r]);var p=function(m){var Q=_e(parseFloat(m.target.value),0,a);d(Q),t(Q)};return v.createElement("div",{style:{width:u,flexShrink:1},id:"rbgcp-".concat(A,"-input-wrapper").concat(l)},v.createElement("input",{value:g,onChange:function(m){return p(m)},style:WA({},o.rbgcpInput),id:"rbgcp-".concat(A,"-input").concat(l)}),v.createElement("div",{style:WA({},o.rbgcpInputLabel)},A))},gl=function(e){var A=e.opacity,r=e.tinyColor,t=e.showHexAlpha,n=e.handleChange,a=e.defaultStyles,i=e.pickerIdSuffix,o=b.useState(""),l=o[0],c=o[1],g=r.toHex(),d=b.useState(g),u=d[0],p=d[1];b.useEffect(function(){l!=="hex"&&p(g)},[r,l,g]);var m=function(){c("hex")},Q=function(){c("")},x=function(k){var y=SA(k.target.value);if(p(k.target.value),y.isValid()){var w=y.toRgb(),I=w.r,K=w.g,M=w.b,O="rgba(".concat(I,", ").concat(K,", ").concat(M,", ").concat(A,")");n(O)}},U=t?"".concat(u).concat(cl(A)):u,F=t?"HEXA":"HEX",L=t?88:76;return v.createElement("div",{style:{width:L,flexShrink:0},id:"rbgcp-hex-input-wrapper".concat(i)},v.createElement("input",{onBlur:Q,onFocus:m,onChange:function(k){return x(k)},value:U?.toUpperCase(),id:"rbgcp-hex-input".concat(i),style:WA(WA({},a.rbgcpInput),a.rbgcpHexInput)}),v.createElement("div",{style:WA({},a.rbgcpInputLabel)},F))},ul=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,i=function(o){var l=o.r,c=o.g,g=o.b;t("rgba(".concat(l,", ").concat(c,", ").concat(g,", ").concat(A?.a,")"))};return v.createElement(v.Fragment,null,v.createElement(_A,{label:"R",max:255,value:A?.r,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return i({r:o,g:A?.g,b:A?.b})}}),v.createElement(_A,{label:"G",max:255,value:A?.g,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return i({r:A?.r,g:o,b:A?.b})}}),v.createElement(_A,{label:"B",max:255,value:A?.b,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return i({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,i=e.defaultStyles,o=e.pickerIdSuffix,l=t.toHsl(),c=l.s,g=l.l,d=function(p,m,Q){var x=SA({h:p,s:m,l:Q}).toRgb(),U=x.r,F=x.g,L=x.b;a("rgba(".concat(U,", ").concat(F,", ").concat(L,", ").concat(A?.a,")")),r(WA(WA({},A),{h:p}))},u=function(p){var m=SA(p).toRgb(),Q=m.r,x=m.g,U=m.b;a("rgba(".concat(Q,", ").concat(x,", ").concat(U,", ").concat(A?.a,")"))};return v.createElement(v.Fragment,null,v.createElement(_A,{label:"H",max:360,value:ee(A?.h),hideOpacity:n,defaultStyles:i,pickerIdSuffix:o,callback:function(p){return d(p,c,g)}}),v.createElement(_A,{label:"S",value:ee(c*100),hideOpacity:n,defaultStyles:i,pickerIdSuffix:o,callback:function(p){return u({h:A?.h,s:p,l:g})}}),v.createElement(_A,{label:"L",value:ee(g*100),hideOpacity:n,defaultStyles:i,pickerIdSuffix:o,callback:function(p){return u({h:A?.h,s:c,l:p})}}))},dl=function(e){var A=e.hc,r=e.setHc,t=e.hideOpacity,n=e.handleChange,a=e.defaultStyles,i=e.pickerIdSuffix,o=function(c,g,d){var u=SA({h:c,s:g,v:d}).toRgb(),p=u.r,m=u.g,Q=u.b;n("rgba(".concat(p,", ").concat(m,", ").concat(Q,", ").concat(A?.a,")")),r(WA(WA({},A),{h:c}))},l=function(c){var g=SA(c).toRgb(),d=g.r,u=g.g,p=g.b;n("rgba(".concat(d,", ").concat(u,", ").concat(p,", ").concat(A?.a,")"))};return v.createElement(v.Fragment,null,v.createElement(_A,{label:"H",max:360,value:ee(A?.h),hideOpacity:t,defaultStyles:a,pickerIdSuffix:i,callback:function(c){return o(c,A?.s,A?.v)}}),v.createElement(_A,{label:"S",hideOpacity:t,value:ee(A?.s*100),defaultStyles:a,pickerIdSuffix:i,callback:function(c){return l({h:A?.h,s:c,v:A?.v})}}),v.createElement(_A,{label:"V",hideOpacity:t,value:ee(A?.v*100),defaultStyles:a,pickerIdSuffix:i,callback:function(c){return l({h:A?.h,s:A?.s,v:c})}}))},fl=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,i=ol(A?.r,A?.g,A?.b),o=i.c,l=i.m,c=i.y,g=i.k,d=function(u){var p=ll(u),m=p.r,Q=p.g,x=p.b;t("rgba(".concat(m,", ").concat(Q,", ").concat(x,", ").concat(A?.a,")"))};return v.createElement(v.Fragment,null,v.createElement(_A,{label:"C",value:ee(o*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return d({c:u/100,m:l,y:c,k:g})}}),v.createElement(_A,{label:"M",value:ee(l*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return d({c:o,m:u/100,y:c,k:g})}}),v.createElement(_A,{label:"Y",value:ee(c*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return d({c:o,m:l,y:u/100,k:g})}}),v.createElement(_A,{label:"K",value:ee(g*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return d({c:o,m:l,y:c,k:u/100})}}))},hl=function(){var e=dA(),A=e.hc,r=e.setHc,t=e.inputType,n=e.tinyColor,a=e.hideOpacity,i=e.showHexAlpha,o=e.handleChange,l=e.defaultStyles,c=e.pickerIdSuffix;return v.createElement("div",{style:WA({columnGap:6,paddingTop:14,display:"flex",justifyContent:"space-between"},l.rbgcpInputsWrap),id:"rbgcp-inputs-wrap".concat(c)},t!=="cmyk"&&v.createElement(gl,{opacity:A?.a,tinyColor:n,showHexAlpha:i,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsl"&&v.createElement(Bl,{hc:A,setHc:r,tinyColor:n,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="rgb"&&v.createElement(ul,{hc:A,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsv"&&v.createElement(dl,{hc:A,setHc:r,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="cmyk"&&v.createElement(fl,{hc:A,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),!a&&v.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,")"))}}))},wl=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 i=n.createLinearGradient(0,0,0,t);i.addColorStop(0,"rgba(0, 0, 0, 0)"),i.addColorStop(1,"rgba(0, 0, 0, 1)"),n.fillStyle=i,n.fillRect(0,0,r,t)}}},[e,A,r,t])},Mr,Aa;function pl(){if(Aa)return Mr;Aa=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,i=/^0o[0-7]+$/i,o=parseInt,l=typeof Ft=="object"&&Ft&&Ft.Object===Object&&Ft,c=typeof self=="object"&&self&&self.Object===Object&&self,g=l||c||Function("return this")(),d=Object.prototype,u=d.toString,p=Math.max,m=Math.min,Q=function(){return g.Date.now()};function x(w,I,K){var M,O,R,P,D,W,$=0,eA=!1,AA=!1,fA=!0;if(typeof w!="function")throw new TypeError(e);I=y(I)||0,F(K)&&(eA=!!K.leading,AA="maxWait"in K,R=AA?p(y(K.maxWait)||0,I):R,fA="trailing"in K?!!K.trailing:fA);function sA(Z){var z=M,tA=O;return M=O=void 0,$=Z,P=w.apply(tA,z),P}function q(Z){return $=Z,D=setTimeout(S,I),eA?sA(Z):P}function cA(Z){var z=Z-W,tA=Z-$,H=I-z;return AA?m(H,R-tA):H}function iA(Z){var z=Z-W,tA=Z-$;return W===void 0||z>=I||z<0||AA&&tA>=R}function S(){var Z=Q();if(iA(Z))return _(Z);D=setTimeout(S,cA(Z))}function _(Z){return D=void 0,fA&&M?sA(Z):(M=O=void 0,P)}function N(){D!==void 0&&clearTimeout(D),$=0,M=W=O=D=void 0}function Y(){return D===void 0?P:_(Q())}function gA(){var Z=Q(),z=iA(Z);if(M=arguments,O=this,W=Z,z){if(D===void 0)return q(W);if(AA)return D=setTimeout(S,I),sA(W)}return D===void 0&&(D=setTimeout(S,I)),P}return gA.cancel=N,gA.flush=Y,gA}function U(w,I,K){var M=!0,O=!0;if(typeof w!="function")throw new TypeError(e);return F(K)&&(M="leading"in K?!!K.leading:M,O="trailing"in K?!!K.trailing:O),x(w,I,{leading:M,maxWait:I,trailing:O})}function F(w){var I=typeof w;return!!w&&(I=="object"||I=="function")}function L(w){return!!w&&typeof w=="object"}function k(w){return typeof w=="symbol"||L(w)&&u.call(w)==r}function y(w){if(typeof w=="number")return w;if(k(w))return A;if(F(w)){var I=typeof w.valueOf=="function"?w.valueOf():w;w=F(I)?I+"":I}if(typeof w!="string")return w===0?w:+w;w=w.replace(t,"");var K=a.test(w);return K||i.test(w)?o(w.slice(2),K?2:8):n.test(w)?A:+w}return Mr=U,Mr}var Cl=pl();const Ql=bs(Cl);var ve=function(){return ve=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},ve.apply(this,arguments)},ml=function(){var e,A,r=dA(),t=r.hc,n=r.config,a=r.squareWidth,i=r.squareHeight,o=r.handleChange,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.crossSize,d=b.useState(!1),u=d[0],p=d[1],m=b.useRef(null),Q=Wo(t?.s,t?.v*100,a,i,g),x=Q[0],U=Q[1],F=b.useState({x,y:U}),L=F[0],k=F[1];wl(m,t?.h,a,i),b.useEffect(function(){u||k({x:t?.v===0?L.x:x,y:U})},[x,U]);var y=function(R){var P=Ql(function(){var D=Zo(R,g),W=D[0],$=D[1];if(W&&$){var eA=Math.min(W+g/2,a-1),AA=Math.min($+g/2,i-1),fA=eA/a*100,sA=100-AA/i*100;k({x:sA===0?L?.x:W,y:$});var q=SA("hsva(".concat(t?.h,", ").concat(fA,"%, ").concat(sA,"%, ").concat(t?.a,")"));o(q.toRgbString())}},250);P()},w=function(){p(!1)},I=function(R){u&&y(R)},K=function(R){u||y(R)},M=function(){p(!0)},O=function(R){p(!0),y(R)};return b.useEffect(function(){var R=function(){w()};return window.addEventListener("mouseup",R),function(){window.removeEventListener("mouseup",R)}},[]),v.createElement("div",{style:{position:"relative",marginBottom:12},id:"rbgcp-square-wrapper".concat(c)},v.createElement("div",{onMouseUp:w,onTouchEnd:w,onMouseDown:O,onTouchStart:O,onMouseMove:function(R){return I(R)},id:"rbgcp-square".concat(c),style:{position:"relative",cursor:"ew-cross"}},v.createElement("div",{style:ve(ve(ve({},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:M,id:"rbgcp-square-handle".concat(c)}),v.createElement("div",{style:ve(ve({},l.rbgcpCanvasWrapper),{height:i}),id:"rbgcp-square-canvas-wrapper".concat(c),onClick:function(R){return K(R)}},v.createElement("canvas",{ref:m,width:"".concat(a,"px"),height:"".concat(i,"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)},vl=function(){var e=dA(),A=e.config,r=e.hc,t=r===void 0?{}:r,n=e.squareWidth,a=e.handleChange,i=e.defaultStyles,o=e.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],d=t.r,u=t.g,p=t.b,m="linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(".concat(d,",").concat(u,",").concat(p,",.5) 100%)"),Q=A.barSize,x=function(){g(!1)},U=function(){g(!0)},F=function(w){var I=Ge(w,Q)/100,K="rgba(".concat(d,", ").concat(u,", ").concat(p,", ").concat(I,")");a(K)},L=function(w){c&&F(w)},k=function(w){c||F(w)},y=n-18;return b.useEffect(function(){var w=function(){x()};return window.addEventListener("mouseup",w),function(){window.removeEventListener("mouseup",w)}},[]),v.createElement("div",{onMouseDown:U,onMouseMove:function(w){return L(w)},style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},id:"rbgcp-opacity-wrapper".concat(o)},v.createElement("div",{id:"rbgcp-opacity-checkered-bg".concat(o),style:ce(ce({},i.rbgcpCheckered),{width:"100%",height:14})}),v.createElement("div",{id:"rbgcp-opacity-handle".concat(o),style:ce(ce({},i.rbgcpHandle),{left:y*t?.a,top:-2})}),v.createElement("div",{style:ce(ce({},i.rbgcpOpacityOverlay),{background:m}),id:"rbgcp-opacity-overlay".concat(o),onClick:function(w){return k(w)}}))},Ul={CONTROLS:{SOLID:"Solid",GRADIENT:"Gradient"}},Fl=["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)"],bl=function(e){var A=e.presets,r=A===void 0?[]:A,t=dA(),n=t.value,a=t.onChange,i=t.isDarkMode,o=t.squareWidth,l=t.handleChange,c=t.pickerIdSuffix,g=function(){return r?.length>0?r?.slice(0,18):Fl},d=function(p){p?.includes("gradient")?a(p):l(p)},u=function(p){if(!p||i)return"";var m=p?.replace(" ","");return m==="rgba(255,255,255,1)"?"1px solid #96959c":""};return v.createElement("div",{style:{marginTop:14,display:"flex",justifyContent:"space-between"},id:"rbgcp-footer-wrapper".concat(c)},v.createElement("div",{style:{width:50,height:50,flexShrink:0,borderRadius:6,background:n,border:u(n)},id:"rbgcp-preview".concat(c)}),v.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,m){return v.createElement("div",{key:"".concat(p,"-").concat(m),id:"rbgcp-preset-".concat(m,"-wrapper").concat(c),style:{width:"calc(100% / 9)",paddingLeft:3}},v.createElement("div",{style:{height:23.5,width:"100%",background:p,borderRadius:4,border:u(p)},onClick:function(){return d(p)},id:"rbgcp-preset-".concat(m).concat(c)}))})))},J=function(){return J=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},J.apply(this,arguments)},El=function(){var e=dA().defaultStyles,A={fill:"none",strokeWidth:"1.8px"};return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},v.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J({},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"}))},yl=function(e){var A=e.color,r=dA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"};return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:14}},v.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},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"}))},xl=function(e){var A=e.color,r=dA().defaultStyles,t=A??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},v.createElement("circle",{style:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"9"}),v.createElement("circle",{style:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"5"}))},Il=function(e){var A=e.color,r=dA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"},a={strokeWidth:"1.8px"};return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},v.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"3.74 2.75 3.74 12.69 0.9 12.71 6.59 12.71"}),v.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"3.74",y1:"17.26",x2:"3.74",y2:"15.21"}),v.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.1 17.25 10.1 7.31 12.95 7.29 7.26 7.29"}),v.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"10.1",y1:"2.74",x2:"10.1",y2:"4.79"}),v.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"16.26 2.75 16.26 12.69 13.41 12.71 19.1 12.71"}),v.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"16.26",y1:"17.26",x2:"16.26",y2:"15.21"}))},Hl=function(e){var A=e.color,r=dA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"};return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},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"}),v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},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"}),v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},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"}))},Sl=function(e){var A=e.color,r=dA().defaultStyles,t=A??"",n={strokeMiterlimit:10,strokeWidth:"0.5px"};return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},v.createElement("circle",{style:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"9.36",cy:"5.07",r:"1.71"}),v.createElement("circle",{style:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"13.93",cy:"6.91",r:"1.71"}),v.createElement("circle",{style:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.8",cy:"7.55",r:"1.71"}),v.createElement("circle",{style:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.45",cy:"12.04",r:"1.71"}),v.createElement("path",{style:J(J(J(J({},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"}))},Ll=function(e){var A=e.color,r=dA().defaultStyles,t=A??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},v.createElement("polyline",{strokeLinecap:"round",style:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"13.86 2.01 1.7 16.99 18.77 16.99"}),v.createElement("polyline",{strokeLinecap:"round",style:J(J(J({},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"}))},kl=function(){var e=dA().defaultStyles;return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:20,marginRight:1}},v.createElement("path",{style:J({},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"}),v.createElement("path",{style:J({},e.rbgcpControlIcon2),d:"M4.79,8.09V7H9.16V8.09H7.59V13H6.38V8.09Z"}),v.createElement("path",{style:J({},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"}),v.createElement("path",{style:J({},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"}))},Ml=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 i=n.current;return a&&(n.current.id=t,document.body.appendChild(n.current)),function(){a&&i.parentElement&&i.parentElement.removeChild(i)}},[t]),Zi.createPortal(r,n.current)};const Kl=b.memo(Ml);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 qA(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(i){i(a)})}return new(r||(r=Promise))(function(a,i){function o(g){try{c(t.next(g))}catch(d){i(d)}}function l(g){try{c(t.throw(g))}catch(d){i(d)}}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,i;return i={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;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 yt(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})(),mr=function(e,A){return ie.fromClientRect(e,A.getBoundingClientRect())},Tl=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)},vr=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 i=e[n];i<=65535?t.push(i):(i-=65536,t.push((i>>10)+55296,i%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Dl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var xt=0;xt<ea.length;xt++)Dl[ea.charCodeAt(xt)]=xt;var ta="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ze=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var It=0;It<ta.length;It++)ze[ta.charCodeAt(It)]=It;var Ol=function(e){var A=e.length*.75,r=e.length,t,n=0,a,i,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=ze[e.charCodeAt(t)],i=ze[e.charCodeAt(t+1)],o=ze[e.charCodeAt(t+2)],l=ze[e.charCodeAt(t+3)],g[n++]=a<<2|i>>4,g[n++]=(i&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},Rl=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},Nl=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},Ee=5,Nn=11,Kr=2,_l=Nn-Ee,Hs=65536>>Ee,Gl=1<<Ee,Tr=Gl-1,jl=1024>>Ee,Vl=Hs+jl,Pl=Vl,Xl=32,Jl=Pl+Xl,Wl=65536>>Nn,Yl=1<<_l,Zl=Yl-1,ra=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},ql=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},zl=function(e,A){var r=Ol(e),t=Array.isArray(r)?Nl(r):new Uint32Array(r),n=Array.isArray(r)?Rl(r):new Uint16Array(r),a=24,i=ra(n,a/2,t[4]/2),o=t[5]===2?ra(n,(a+t[4])/2):ql(t,Math.ceil((a+t[4])/4));return new $l(t[0],t[1],t[2],t[3],i,o)},$l=(function(){function e(A,r,t,n,a,i){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=i}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>Ee],r=(r<<Kr)+(A&Tr),this.data[r];if(A<=65535)return r=this.index[Hs+(A-55296>>Ee)],r=(r<<Kr)+(A&Tr),this.data[r];if(A<this.highStart)return r=Jl-Wl+(A>>Nn),r=this.index[r],r+=A>>Ee&Zl,r=this.index[r],r=(r<<Kr)+(A&Tr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ac=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ht=0;Ht<na.length;Ht++)Ac[na.charCodeAt(Ht)]=Ht;var ec="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABY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fSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHL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YwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUA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AB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAH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EAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUAB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UABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQ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UAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",aa=50,tc=1,Ss=2,Ls=3,rc=4,nc=5,sa=7,ks=8,ia=9,ue=10,hn=11,oa=12,wn=13,ac=14,$e=15,pn=16,St=17,Je=18,sc=19,la=20,Cn=21,We=22,Dr=23,Ie=24,GA=25,At=26,et=27,He=28,ic=29,Ue=30,oc=31,Lt=32,kt=33,Qn=34,mn=35,vn=36,ft=37,Un=38,qt=39,zt=40,Or=41,Ms=42,lc=43,cc=[9001,65288],Ks="!",oA="×",Mt="÷",Fn=zl(ec),ne=[Ue,vn],bn=[tc,Ss,Ls,nc],Ts=[ue,ks],ca=[et,At],gc=bn.concat(Ts),ga=[Un,qt,zt,Qn,mn],uc=[$e,wn],Bc=function(e,A){A===void 0&&(A="strict");var r=[],t=[],n=[];return e.forEach(function(a,i){var o=Fn.get(a);if(o>aa?(n.push(!0),o-=aa):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return t.push(i),r.push(pn);if(o===rc||o===hn){if(i===0)return t.push(i),r.push(Ue);var l=r[i-1];return gc.indexOf(l)===-1?(t.push(t[i-1]),r.push(l)):(t.push(i),r.push(Ue))}if(t.push(i),o===oc)return r.push(A==="strict"?Cn:ft);if(o===Ms||o===ic)return r.push(Ue);if(o===lc)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(ft):r.push(Ue);r.push(o)}),[t,r,n]},Rr=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 i=t[a];if(i===A)return!0;if(i!==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 i=t[l];if(i===A)return!0;if(i!==ue)break}if(o!==ue)break}return!1},ua=function(e,A){for(var r=e;r>=0;){var t=A[r];if(t===ue)r--;else return t}return 0},dc=function(e,A,r,t,n){if(r[t]===0)return oA;var a=t-1;if(Array.isArray(n)&&n[a]===!0)return oA;var i=a-1,o=a+1,l=A[a],c=i>=0?A[i]:0,g=A[o];if(l===Ss&&g===Ls)return oA;if(bn.indexOf(l)!==-1)return Ks;if(bn.indexOf(g)!==-1||Ts.indexOf(g)!==-1)return oA;if(ua(a,A)===ks)return Mt;if(Fn.get(e[a])===hn||(l===Lt||l===kt)&&Fn.get(e[o])===hn||l===sa||g===sa||l===ia||[ue,wn,$e].indexOf(l)===-1&&g===ia||[St,Je,sc,Ie,He].indexOf(g)!==-1||ua(a,A)===We||Rr(Dr,We,a,A)||Rr([St,Je],Cn,a,A)||Rr(oa,oa,a,A))return oA;if(l===ue)return Mt;if(l===Dr||g===Dr)return oA;if(g===pn||l===pn)return Mt;if([wn,$e,Cn].indexOf(g)!==-1||l===ac||c===vn&&uc.indexOf(l)!==-1||l===He&&g===vn||g===la||ne.indexOf(g)!==-1&&l===GA||ne.indexOf(l)!==-1&&g===GA||l===et&&[ft,Lt,kt].indexOf(g)!==-1||[ft,Lt,kt].indexOf(l)!==-1&&g===At||ne.indexOf(l)!==-1&&ca.indexOf(g)!==-1||ca.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,He,Ie].indexOf(g)!==-1)return oA;if([GA,He,Ie,St,Je].indexOf(g)!==-1)for(var d=a;d>=0;){var u=A[d];if(u===GA)return oA;if([He,Ie].indexOf(u)!==-1)d--;else break}if([et,At].indexOf(g)!==-1)for(var d=[St,Je].indexOf(l)!==-1?i:a;d>=0;){var u=A[d];if(u===GA)return oA;if([He,Ie].indexOf(u)!==-1)d--;else break}if(Un===l&&[Un,qt,Qn,mn].indexOf(g)!==-1||[qt,Qn].indexOf(l)!==-1&&[qt,zt].indexOf(g)!==-1||[zt,mn].indexOf(l)!==-1&&g===zt||ga.indexOf(l)!==-1&&[la,At].indexOf(g)!==-1||ga.indexOf(g)!==-1&&l===et||ne.indexOf(l)!==-1&&ne.indexOf(g)!==-1||l===Ie&&ne.indexOf(g)!==-1||ne.concat(GA).indexOf(l)!==-1&&g===We&&cc.indexOf(e[o])===-1||ne.concat(GA).indexOf(g)!==-1&&l===Je)return oA;if(l===Or&&g===Or){for(var p=r[a],m=1;p>0&&(p--,A[p]===Or);)m++;if(m%2!==0)return oA}return l===Lt&&g===kt?oA:Mt},fc=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,Ue,Ms].indexOf(o)!==-1?ft:o}));var i=A.wordBreak==="keep-all"?a.map(function(o,l){return o&&e[l]>=19968&&e[l]<=40959}):void 0;return[t,n,i]},hc=(function(){function e(A,r,t,n){this.codePoints=A,this.required=r===Ks,this.start=t,this.end=n}return e.prototype.slice=function(){return bA.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),wc=function(e,A){var r=vr(e),t=fc(r,A),n=t[0],a=t[1],i=t[2],o=r.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var g=oA;c<o&&(g=dc(r,a,n,++c,i))===oA;);if(g!==oA||c===o){var d=new hc(r,g,l,c);return l=c,{value:d,done:!1}}return{done:!0,value:null}}}},pc=1,Cc=2,vt=4,Ba=8,lr=10,da=47,it=92,Qc=9,mc=32,Kt=34,Ye=61,vc=35,Uc=36,Fc=37,Tt=39,Dt=40,Ze=41,bc=95,NA=45,Ec=33,yc=60,xc=62,Ic=64,Hc=91,Sc=93,Lc=61,kc=123,Ot=63,Mc=125,fa=124,Kc=126,Tc=128,ha=65533,Nr=42,be=43,Dc=44,Oc=58,Rc=59,ht=46,Nc=0,_c=8,Gc=11,jc=14,Vc=31,Pc=127,zA=-1,Ds=48,Os=97,Rs=101,Xc=102,Jc=117,Wc=122,Ns=65,_s=69,Gs=70,Yc=85,Zc=90,MA=function(e){return e>=Ds&&e<=57},qc=function(e){return e>=55296&&e<=57343},Se=function(e){return MA(e)||e>=Ns&&e<=Gs||e>=Os&&e<=Xc},zc=function(e){return e>=Os&&e<=Wc},$c=function(e){return e>=Ns&&e<=Zc},Ag=function(e){return zc(e)||$c(e)},eg=function(e){return e>=Tc},Rt=function(e){return e===lr||e===Qc||e===mc},cr=function(e){return Ag(e)||eg(e)||e===bc},wa=function(e){return cr(e)||MA(e)||e===NA},tg=function(e){return e>=Nc&&e<=_c||e===Gc||e>=jc&&e<=Vc||e===Pc},ge=function(e,A){return e!==it?!1:A!==lr},Nt=function(e,A,r){return e===NA?cr(A)||ge(A,r):cr(e)?!0:!!(e===it&&ge(e,A))},_r=function(e,A,r){return e===be||e===NA?MA(A)?!0:A===ht&&MA(r):MA(e===ht?A:e)},rg=function(e){var A=0,r=1;(e[A]===be||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]===ht&&A++;for(var a=[];MA(e[A]);)a.push(e[A++]);var i=a.length,o=i?parseInt(bA.apply(void 0,a),10):0;(e[A]===_s||e[A]===Rs)&&A++;var l=1;(e[A]===be||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,-i))*Math.pow(10,l*g)},ng={type:2},ag={type:3},sg={type:4},ig={type:13},og={type:8},lg={type:21},cg={type:9},gg={type:10},ug={type:11},Bg={type:12},dg={type:14},_t={type:23},fg={type:1},hg={type:25},wg={type:24},pg={type:26},Cg={type:27},Qg={type:28},mg={type:29},vg={type:31},En={type:32},js=(function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(vr(A))},e.prototype.read=function(){for(var A=[],r=this.consumeToken();r!==En;)A.push(r),r=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Kt:return this.consumeStringToken(Kt);case vc:var r=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(wa(r)||ge(t,n)){var a=Nt(r,t,n)?Cc:pc,i=this.consumeName();return{type:5,value:i,flags:a}}break;case Uc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),ig;break;case Tt:return this.consumeStringToken(Tt);case Dt:return ng;case Ze:return ag;case Nr:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),dg;break;case be:if(_r(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Dc:return sg;case NA:var o=A,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(_r(o,l,c))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Nt(o,l,c))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(l===NA&&c===xc)return this.consumeCodePoint(),this.consumeCodePoint(),wg;break;case ht:if(_r(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case da:if(this.peekCodePoint(0)===Nr)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===Nr&&(g=this.consumeCodePoint(),g===da))return this.consumeToken();if(g===zA)return this.consumeToken()}break;case Oc:return pg;case Rc:return Cg;case yc:if(this.peekCodePoint(0)===Ec&&this.peekCodePoint(1)===NA&&this.peekCodePoint(2)===NA)return this.consumeCodePoint(),this.consumeCodePoint(),hg;break;case Ic:var d=this.peekCodePoint(0),u=this.peekCodePoint(1),p=this.peekCodePoint(2);if(Nt(d,u,p)){var i=this.consumeName();return{type:7,value:i}}break;case Hc:return Qg;case it:if(ge(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case Sc:return mg;case Lc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),og;break;case kc:return ug;case Mc:return Bg;case Jc:case Yc:var m=this.peekCodePoint(0),Q=this.peekCodePoint(1);return m===be&&(Se(Q)||Q===Ot)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case fa:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),cg;if(this.peekCodePoint(0)===fa)return this.consumeCodePoint(),lg;break;case Kc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),gg;break;case zA:return En}return Rt(A)?(this.consumeWhiteSpace(),vg):MA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):cr(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();Se(r)&&A.length<6;)A.push(r),r=this.consumeCodePoint();for(var t=!1;r===Ot&&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===Ot?Ds:l})),16),a=parseInt(bA.apply(void 0,A.map(function(l){return l===Ot?Gs:l})),16);return{type:30,start:n,end:a}}var i=parseInt(bA.apply(void 0,A),16);if(this.peekCodePoint(0)===NA&&Se(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var o=[];Se(r)&&o.length<6;)o.push(r),r=this.consumeCodePoint();var a=parseInt(bA.apply(void 0,o),16);return{type:30,start:i,end:a}}else return{type:30,start:i,end:i}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Dt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Dt?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===zA)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Tt||r===Kt){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===zA||this.peekCodePoint(0)===Ze)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),_t)}for(;;){var n=this.consumeCodePoint();if(n===zA||n===Ze)return{type:22,value:bA.apply(void 0,A)};if(Rt(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===zA||this.peekCodePoint(0)===Ze?(this.consumeCodePoint(),{type:22,value:bA.apply(void 0,A)}):(this.consumeBadUrlRemnants(),_t);if(n===Kt||n===Tt||n===Dt||tg(n))return this.consumeBadUrlRemnants(),_t;if(n===it)if(ge(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),_t;else A.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;Rt(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===Ze||A===zA)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===zA||n===void 0||n===A)return r+=this.consumeStringSlice(t),{type:0,value:r};if(n===lr)return this._value.splice(0,t),fg;if(n===it){var a=this._value[t+1];a!==zA&&a!==void 0&&(a===lr?(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=vt,t=this.peekCodePoint(0);for((t===be||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===ht&&MA(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Ba;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((t===_s||t===Rs)&&((n===be||n===NA)&&MA(a)||MA(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Ba;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[rg(A),r]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),r=A[0],t=A[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),i=this.peekCodePoint(2);if(Nt(n,a,i)){var o=this.consumeName();return{type:15,number:r,flags:t,unit:o}}return n===Fc?(this.consumeCodePoint(),{type:16,number:r,flags:t}):{type:17,number:r,flags:t}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Se(A)){for(var r=bA(A);Se(this.peekCodePoint(0))&&r.length<6;)r+=bA(this.consumeCodePoint());Rt(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(r,16);return t===0||qc(t)||t>1114111?ha:t}return A===zA?ha:A},e.prototype.consumeName=function(){for(var A="";;){var r=this.consumeCodePoint();if(wa(r))A+=bA(r);else if(ge(r,this.peekCodePoint(0)))A+=bA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),A}},e})(),Vs=(function(){function e(A){this._tokens=A}return e.create=function(A){var r=new js;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||Fg(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"?En:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e})(),Ut=function(e){return e.type===15},Ve=function(e){return e.type===17},BA=function(e){return e.type===20},Ug=function(e){return e.type===0},yn=function(e,A){return BA(e)&&e.value===A},Ps=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},Fg=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},EA=function(e){return e.type===16||pe(e)},Xs=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},LA={type:17,number:0,flags:vt},_n={type:16,number:50,flags:vt},Be={type:16,number:100,flags:vt},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(Ut(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},Js="deg",Ws="grad",Ys="rad",Zs="turn",Ur={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case Js:return Math.PI*A.number/180;case Ws:return Math.PI/200*A.number;case Ys:return A.number;case Zs:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},qs=function(e){return e.type===15&&(e.unit===Js||e.unit===Ws||e.unit===Ys||e.unit===Zs)},zs=function(e){var A=e.filter(BA).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=bg[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),i=A.value.substring(3,4);return de(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,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),i=A.value.substring(6,8);return de(parseInt(t,16),parseInt(n,16),parseInt(a,16),parseInt(i,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},pa=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},Ca=function(e,A){var r=A.filter(je);if(r.length===3){var t=r.map(pa),n=t[0],a=t[1],i=t[2];return de(n,a,i,1)}if(r.length===4){var o=r.map(pa),n=o[0],a=o[1],i=o[2],l=o[3];return de(n,a,i,l)}return 0};function Gr(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 Qa=function(e,A){var r=A.filter(je),t=r[0],n=r[1],a=r[2],i=r[3],o=(t.type===17?XA(t.number):Ur.parse(e,t))/(Math.PI*2),l=EA(n)?n.number/100:0,c=EA(a)?a.number/100:0,g=typeof i<"u"&&EA(i)?wA(i,1):1;if(l===0)return de(c*255,c*255,c*255,1);var d=c<=.5?c*(l+1):c+l-c*l,u=c*2-d,p=Gr(u,d,o+1/3),m=Gr(u,d,o),Q=Gr(u,d,o-1/3);return de(p*255,m*255,Q*255,g)},bg={hsl:Qa,hsla:Qa,rgb:Ca,rgba:Ca},ot=function(e,A){return he.parse(e,Vs.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},Eg={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(BA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},yg={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Fr=function(e,A){var r=he.parse(e,A[0]),t=A[1];return t&&EA(t)?{color:r,stop:t}:{color:r,stop:null}},ma=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,i=0;i<e.length;i++){var o=e[i].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,i=0;i<n.length;i++){var g=n[i];if(g===null)c===null&&(c=i);else if(c!==null){for(var d=i-c,u=n[c-1],p=(g-u)/(d+1),m=1;m<=d;m++)n[c+m-1]=p*m;c=null}}return e.map(function(Q,x){var U=Q.color;return{color:U,stop:Math.max(Math.min(1,n[x]/A),0)}})},xg=function(e,A,r){var t=A/2,n=r/2,a=wA(e[0],A)-t,i=n-wA(e[1],r);return(Math.atan2(i,a)+Math.PI*2)%(Math.PI*2)},Ig=function(e,A,r){var t=typeof e=="number"?e:xg(e,A,r),n=Math.abs(A*Math.sin(t))+Math.abs(r*Math.cos(t)),a=A/2,i=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,i-l,i+l]},ZA=function(e,A){return Math.sqrt(e*e+A*A)},va=function(e,A,r,t,n){var a=[[0,0],[0,A],[e,0],[e,A]];return a.reduce(function(i,o){var l=o[0],c=o[1],g=ZA(r-l,t-c);return(n?g<i.optimumDistance:g>i.optimumDistance)?{optimumCorner:o,optimumDistance:g}:i},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Hg=function(e,A,r,t,n){var a=0,i=0;switch(e.size){case 0:e.shape===0?a=i=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)),i=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(e.shape===0)a=i=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=va(t,n,A,r,!0),c=l[0],g=l[1];a=ZA(c-A,(g-r)/o),i=o*a}break;case 1:e.shape===0?a=i=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)),i=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(e.shape===0)a=i=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)),d=va(t,n,A,r,!1),c=d[0],g=d[1];a=ZA(c-A,(g-r)/o),i=o*a}break}return Array.isArray(e.size)&&(a=wA(e.size[0],t),i=e.size.length===2?wA(e.size[1],n):a),[a,i]},Sg=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var i=n[0];if(i.type===20&&i.value==="to"){r=zs(n);return}else if(qs(i)){r=Ur.parse(e,i);return}}var o=Fr(e,n);t.push(o)}),{angle:r,stops:t,type:1}},Gt=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var i=n[0];if(i.type===20&&["top","left","right","bottom"].indexOf(i.value)!==-1){r=zs(n);return}else if(qs(i)){r=(Ur.parse(e,i)+XA(270))%XA(360);return}}var o=Fr(e,n);t.push(o)}),{angle:r,stops:t,type:1}},Lg=function(e,A){var r=XA(180),t=[],n=1,a=0,i=3,o=[];return te(A).forEach(function(l,c){var g=l[0];if(c===0){if(BA(g)&&g.value==="linear"){n=1;return}else if(BA(g)&&g.value==="radial"){n=2;return}}if(g.type===18){if(g.name==="from"){var d=he.parse(e,g.values[0]);t.push({stop:LA,color:d})}else if(g.name==="to"){var d=he.parse(e,g.values[0]);t.push({stop:Be,color:d})}else if(g.name==="color-stop"){var u=g.values.filter(je);if(u.length===2){var d=he.parse(e,u[1]),p=u[0];Ve(p)&&t.push({stop:{type:16,number:p.number*100,flags:p.flags},color:d})}}}}),n===1?{angle:(r+XA(180))%XA(360),stops:t,type:n}:{size:i,shape:a,stops:t,position:o,type:n}},$s="closest-side",Ai="farthest-side",ei="closest-corner",ti="farthest-corner",ri="circle",ni="ellipse",ai="cover",si="contain",kg=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(i,o){var l=!0;if(o===0){var c=!1;l=i.reduce(function(d,u){if(c)if(BA(u))switch(u.value){case"center":return a.push(_n),d;case"top":case"left":return a.push(LA),d;case"right":case"bottom":return a.push(Be),d}else(EA(u)||pe(u))&&a.push(u);else if(BA(u))switch(u.value){case ri:return r=0,!1;case ni:return r=1,!1;case"at":return c=!0,!1;case $s:return t=0,!1;case ai:case Ai:return t=1,!1;case si:case ei:return t=2,!1;case ti:return t=3,!1}else if(pe(u)||EA(u))return Array.isArray(t)||(t=[]),t.push(u),!1;return d},l)}if(l){var g=Fr(e,i);n.push(g)}}),{size:t,shape:r,stops:n,position:a,type:2}},jt=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(i,o){var l=!0;if(o===0?l=i.reduce(function(g,d){if(BA(d))switch(d.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(EA(d)||pe(d))return a.push(d),!1;return g},l):o===1&&(l=i.reduce(function(g,d){if(BA(d))switch(d.value){case ri:return r=0,!1;case ni:return r=1,!1;case si:case $s:return t=0,!1;case Ai:return t=1,!1;case ei:return t=2,!1;case ai:case ti:return t=3,!1}else if(pe(d)||EA(d))return Array.isArray(t)||(t=[]),t.push(d),!1;return g},l)),l){var c=Fr(e,i);n.push(c)}}),{size:t,shape:r,stops:n,position:a,type:2}},Mg=function(e){return e.type===1},Kg=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=ii[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 Tg(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!ii[e.name])}var ii={"linear-gradient":Sg,"-moz-linear-gradient":Gt,"-ms-linear-gradient":Gt,"-o-linear-gradient":Gt,"-webkit-linear-gradient":Gt,"radial-gradient":kg,"-moz-radial-gradient":jt,"-ms-radial-gradient":jt,"-o-radial-gradient":jt,"-webkit-radial-gradient":jt,"-webkit-gradient":Lg},Dg={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)&&Tg(t)}).map(function(t){return Gn.parse(e,t)})}},Og={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(BA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Rg={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return te(A).map(function(r){return r.filter(EA)}).map(Xs)}},Ng={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(BA).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 Gg={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(jg)})}},jg=function(e){return BA(e)||EA(e)},br=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Vg=br("top"),Pg=br("right"),Xg=br("bottom"),Jg=br("left"),Er=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,r){return Xs(r.filter(EA))}}},Wg=Er("top-left"),Yg=Er("top-right"),Zg=Er("bottom-right"),qg=Er("bottom-left"),yr=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}}},zg=yr("top"),$g=yr("right"),Au=yr("bottom"),eu=yr("left"),xr=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,r){return Ut(r)?r.number:0}}},tu=xr("top"),ru=xr("right"),nu=xr("bottom"),au=xr("left"),su={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},iu={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){return A==="rtl"?1:0}},ou={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(BA).reduce(function(r,t){return r|lu(t.value)},0)}},lu=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},cu={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}},gu={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}},gr;(function(e){e.NORMAL="normal",e.STRICT="strict"})(gr||(gr={}));var uu={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="strict"?gr.STRICT:gr.NORMAL}},Bu={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ua=function(e,A){return BA(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:EA(e)?wA(e,A):A},du={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)}},fu={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}}},Ir=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},hu=Ir("top"),wu=Ir("right"),pu=Ir("bottom"),Cu=Ir("left"),Qu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(BA).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}})}},mu={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="break-word"?"break-word":"normal"}},Hr=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},vu=Hr("top"),Uu=Hr("right"),Fu=Hr("bottom"),bu=Hr("left"),Eu={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}}},yu={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}},xu={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&yn(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 i=r[a];pe(i)?(n===0?t.offsetX=i:n===1?t.offsetY=i:t.blur=i,n++):t.color=he.parse(e,i)}return t})}},Iu={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}},Hu={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=ku[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return r(A.values)}return null}},Su=function(e){var A=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return A.length===6?A:null},Lu=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 i=A[12],o=A[13];return A[14],A[15],A.length===16?[r,t,n,a,i,o]:null},ku={matrix:Su,matrix3d:Lu},Fa={type:16,number:50,flags:vt},Mu=[Fa,Fa],Ku={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var r=A.filter(EA);return r.length!==2?Mu:[r[0],r[1]]}},Tu={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 Du={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}}},Ou={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")}},oi={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")}},Ru={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:1}},Nu={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(BA).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})}},Gu={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+"'"})}},ju={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Vu={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:BA(A)&&A.value==="bold"?700:400}},Pu={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(BA).map(function(r){return r.value})}},Xu={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"}}},yA=function(e,A){return(e&A)!==0},Ju={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}},Wu={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(Ps),a=0;a<n.length;a++){var i=n[a],o=n[a+1];if(i.type===20){var l=o&&Ve(o)?o.number:1;t.push({counter:i.value,increment:l})}}return t}},Yu={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var r=[],t=A.filter(Ps),n=0;n<t.length;n++){var a=t[n],i=t[n+1];if(BA(a)&&a.value!=="none"){var o=i&&Ve(i)?i.number:0;r.push({counter:a.value,reset:o})}}return r}},Zu={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(Ut).map(function(r){return oi.parse(e,r)})}},qu={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(Ug);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var i=n[a].value,o=n[a+1].value;t.push({open:i,close:o})}return t}},ba=function(e,A,r){if(!e)return"";var t=e[Math.min(A,e.length-1)];return t?r?t.open:t.close:""},zu={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&yn(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 i=r[a];yn(i,"inset")?t.inset=!0:pe(i)?(n===0?t.offsetX=i:n===1?t.offsetY=i:n===2?t.blur=i:t.spread=i,n++):t.color=he.parse(e,i)}return t})}},$u={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var r=[0,1,2],t=[];return A.filter(BA).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}},AB={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},eB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Ut(A)?A.number:0}},tB=(function(){function e(A,r){var t,n;this.animationDuration=V(A,Zu,r.animationDuration),this.backgroundClip=V(A,Eg,r.backgroundClip),this.backgroundColor=V(A,yg,r.backgroundColor),this.backgroundImage=V(A,Dg,r.backgroundImage),this.backgroundOrigin=V(A,Og,r.backgroundOrigin),this.backgroundPosition=V(A,Rg,r.backgroundPosition),this.backgroundRepeat=V(A,Ng,r.backgroundRepeat),this.backgroundSize=V(A,Gg,r.backgroundSize),this.borderTopColor=V(A,Vg,r.borderTopColor),this.borderRightColor=V(A,Pg,r.borderRightColor),this.borderBottomColor=V(A,Xg,r.borderBottomColor),this.borderLeftColor=V(A,Jg,r.borderLeftColor),this.borderTopLeftRadius=V(A,Wg,r.borderTopLeftRadius),this.borderTopRightRadius=V(A,Yg,r.borderTopRightRadius),this.borderBottomRightRadius=V(A,Zg,r.borderBottomRightRadius),this.borderBottomLeftRadius=V(A,qg,r.borderBottomLeftRadius),this.borderTopStyle=V(A,zg,r.borderTopStyle),this.borderRightStyle=V(A,$g,r.borderRightStyle),this.borderBottomStyle=V(A,Au,r.borderBottomStyle),this.borderLeftStyle=V(A,eu,r.borderLeftStyle),this.borderTopWidth=V(A,tu,r.borderTopWidth),this.borderRightWidth=V(A,ru,r.borderRightWidth),this.borderBottomWidth=V(A,nu,r.borderBottomWidth),this.borderLeftWidth=V(A,au,r.borderLeftWidth),this.boxShadow=V(A,zu,r.boxShadow),this.color=V(A,su,r.color),this.direction=V(A,iu,r.direction),this.display=V(A,ou,r.display),this.float=V(A,cu,r.cssFloat),this.fontFamily=V(A,Gu,r.fontFamily),this.fontSize=V(A,ju,r.fontSize),this.fontStyle=V(A,Xu,r.fontStyle),this.fontVariant=V(A,Pu,r.fontVariant),this.fontWeight=V(A,Vu,r.fontWeight),this.letterSpacing=V(A,gu,r.letterSpacing),this.lineBreak=V(A,uu,r.lineBreak),this.lineHeight=V(A,Bu,r.lineHeight),this.listStyleImage=V(A,du,r.listStyleImage),this.listStylePosition=V(A,fu,r.listStylePosition),this.listStyleType=V(A,xn,r.listStyleType),this.marginTop=V(A,hu,r.marginTop),this.marginRight=V(A,wu,r.marginRight),this.marginBottom=V(A,pu,r.marginBottom),this.marginLeft=V(A,Cu,r.marginLeft),this.opacity=V(A,Ru,r.opacity);var a=V(A,Qu,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=V(A,mu,r.overflowWrap),this.paddingTop=V(A,vu,r.paddingTop),this.paddingRight=V(A,Uu,r.paddingRight),this.paddingBottom=V(A,Fu,r.paddingBottom),this.paddingLeft=V(A,bu,r.paddingLeft),this.paintOrder=V(A,$u,r.paintOrder),this.position=V(A,yu,r.position),this.textAlign=V(A,Eu,r.textAlign),this.textDecorationColor=V(A,Nu,(t=r.textDecorationColor)!==null&&t!==void 0?t:r.color),this.textDecorationLine=V(A,_u,(n=r.textDecorationLine)!==null&&n!==void 0?n:r.textDecoration),this.textShadow=V(A,xu,r.textShadow),this.textTransform=V(A,Iu,r.textTransform),this.transform=V(A,Hu,r.transform),this.transformOrigin=V(A,Ku,r.transformOrigin),this.visibility=V(A,Tu,r.visibility),this.webkitTextStrokeColor=V(A,AB,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=V(A,eB,r.webkitTextStrokeWidth),this.wordBreak=V(A,Du,r.wordBreak),this.zIndex=V(A,Ou,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 yA(this.display,4)||yA(this.display,33554432)||yA(this.display,268435456)||yA(this.display,536870912)||yA(this.display,67108864)||yA(this.display,134217728)},e})(),rB=(function(){function e(A,r){this.content=V(A,Ju,r.content),this.quotes=V(A,qu,r.quotes)}return e})(),Ea=(function(){function e(A,r){this.counterIncrement=V(A,Wu,r.counterIncrement),this.counterReset=V(A,Yu,r.counterReset)}return e})(),V=function(e,A,r){var t=new js,n=r!==null&&typeof r<"u"?r.toString():A.initialValue;t.write(n);var a=new Vs(t.read());switch(A.type){case 2:var i=a.parseComponentValue();return A.parse(e,BA(i)?i.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 Ur.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 EA(l)?l:LA;case"time":return oi.parse(e,a.parseComponentValue())}break}},nB="data-html2canvas-debug",aB=function(e){var A=e.getAttribute(nB);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=aB(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 tB(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=mr(this.context,r),In(r,4)&&(this.flags|=16)}return e})(),sB="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTg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AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQG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oECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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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)],i=rt[e.charCodeAt(t+1)],o=rt[e.charCodeAt(t+2)],l=rt[e.charCodeAt(t+3)],g[n++]=a<<2|i>>4,g[n++]=(i&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},oB=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},lB=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},ye=5,jn=11,jr=2,cB=jn-ye,li=65536>>ye,gB=1<<ye,Vr=gB-1,uB=1024>>ye,BB=li+uB,dB=BB,fB=32,hB=dB+fB,wB=65536>>jn,pB=1<<cB,CB=pB-1,xa=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},QB=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},mB=function(e,A){var r=iB(e),t=Array.isArray(r)?lB(r):new Uint32Array(r),n=Array.isArray(r)?oB(r):new Uint16Array(r),a=24,i=xa(n,a/2,t[4]/2),o=t[5]===2?xa(n,(a+t[4])/2):QB(t,Math.ceil((a+t[4])/4));return new vB(t[0],t[1],t[2],t[3],i,o)},vB=(function(){function e(A,r,t,n,a,i){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=i}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>ye],r=(r<<jr)+(A&Vr),this.data[r];if(A<=65535)return r=this.index[li+(A-55296>>ye)],r=(r<<jr)+(A&Vr),this.data[r];if(A<this.highStart)return r=hB-wB+(A>>jn),r=this.index[r],r+=A>>ye&CB,r=this.index[r],r=(r<<jr)+(A&Vr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),Ia="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",UB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Pt=0;Pt<Ia.length;Pt++)UB[Ia.charCodeAt(Pt)]=Pt;var FB=1,Pr=2,Xr=3,Ha=4,Sa=5,bB=7,La=8,Jr=9,Wr=10,ka=11,Ma=12,Ka=13,Ta=14,Yr=15,EB=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},yB=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 i=e[n];i<=65535?t.push(i):(i-=65536,t.push((i>>10)+55296,i%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},xB=mB(sB),VA="×",Zr="÷",IB=function(e){return xB.get(e)},HB=function(e,A,r){var t=r-2,n=A[t],a=A[r-1],i=A[r];if(a===Pr&&i===Xr)return VA;if(a===Pr||a===Xr||a===Ha||i===Pr||i===Xr||i===Ha)return Zr;if(a===La&&[La,Jr,ka,Ma].indexOf(i)!==-1||(a===ka||a===Jr)&&(i===Jr||i===Wr)||(a===Ma||a===Wr)&&i===Wr||i===Ka||i===Sa||i===bB||a===FB)return VA;if(a===Ka&&i===Ta){for(;n===Sa;)n=A[--t];if(n===Ta)return VA}if(a===Yr&&i===Yr){for(var o=0;n===Yr;)o++,n=A[--t];if(o%2===0)return VA}return Zr},SB=function(e){var A=EB(e),r=A.length,t=0,n=0,a=A.map(IB);return{next:function(){if(t>=r)return{done:!0,value:null};for(var i=VA;t<r&&(i=HB(A,a,++t))===VA;);if(i!==VA||t===r){var o=yB.apply(null,A.slice(n,t));return n=t,{value:o,done:!1}}return{done:!0,value:null}}}},LB=function(e){for(var A=SB(e),r=[],t;!(t=A.next()).done;)t.value&&r.push(t.value.slice());return r},kB=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},MB=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"?"👨".repeat(10):"";var t=A.firstChild,n=vr(t.data).map(function(l){return bA(l)}),a=0,i={},o=n.every(function(l,c){r.setStart(t,a),r.setEnd(t,a+l.length);var g=r.getBoundingClientRect();a+=l.length;var d=g.x>i.x||g.y>i.y;return i=g,c===0?!0:d});return e.body.removeChild(A),o},KB=function(){return typeof new Image().crossOrigin<"u"},TB=function(){return typeof new XMLHttpRequest().responseType=="string"},DB=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},Da=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},OB=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 i=Hn(r,r,0,0,n);return t.fillStyle="red",t.fillRect(0,0,r,r),Oa(i).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",Da(l)?Oa(Hn(r,r,0,0,c)):Promise.reject(!1)}).then(function(o){return t.drawImage(o,0,0),Da(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",i=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return i.setAttributeNS(null,"width",e.toString()),i.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"),i.appendChild(o),o.appendChild(n),i},Oa=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=kB(document);return Object.defineProperty(HA,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=HA.SUPPORT_RANGE_BOUNDS&&MB(document);return Object.defineProperty(HA,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=DB(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"?OB(document):Promise.resolve(!1);return Object.defineProperty(HA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=KB();return Object.defineProperty(HA,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=TB();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})(),RB=function(e,A,r,t){var n=GB(A,r),a=[],i=0;return n.forEach(function(o){if(r.textDecorationLine.length||o.trim().length>0)if(HA.SUPPORT_RANGE_BOUNDS){var l=Ra(t,i,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,Ra(t,g+i,u.length).getClientRects()))),g+=u.length})}else a.push(new ct(o,ie.fromDOMRectList(e,l)))}else{var d=t.splitText(o.length);a.push(new ct(o,NB(e,t))),t=d}else HA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(o.length));i+=o.length}),a},NB=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=mr(e,t);return t.firstChild&&n.replaceChild(t.firstChild,t),a}}return ie.EMPTY},Ra=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 LB(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 VB(e,A)},GB=function(e,A){return A.letterSpacing!==0?Vn(e):_B(e,A)},jB=[32,160,4961,65792,65793,4153,4241],VB=function(e,A){for(var r=wc(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),t=[],n,a=function(){if(n.value){var i=n.value.slice(),o=vr(i),l="";o.forEach(function(c){jB.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},PB=(function(){function e(A,r,t){this.text=XB(r.data,t.textTransform),this.textBounds=RB(A,this.text,t,r)}return e})(),XB=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(JB,WB);case 2:return e.toUpperCase();default:return e}},JB=/(^|\s|:|-|\(|\))([a-z])/g,WB=function(e,A,r){return e.length>0?A+r.toUpperCase():e},ci=(function(e){qA(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),gi=(function(e){qA(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),ui=(function(e){qA(A,e);function A(r,t){var n=e.call(this,r,t)||this,a=new XMLSerializer,i=mr(r,t);return t.setAttribute("width",i.width+"px"),t.setAttribute("height",i.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),Bi=(function(e){qA(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){qA(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),YB=[{type:15,flags:0,unit:"px",number:3}],ZB=[{type:16,flags:0,number:50}],qB=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},zB=function(e){var A=e.type===$B?new Array(e.value.length+1).join("•"):e.value;return A.length===0?e.placeholder||"":A},ur="checkbox",Br="radio",$B="password",Na=707406591,Pn=(function(e){qA(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=zB(t),(n.type===ur||n.type===Br)&&(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=qB(n.bounds)),n.type){case ur:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=YB;break;case Br:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=ZB;break}return n}return A})(re),di=(function(e){qA(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){qA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.value=t.value,n}return A})(re),hi=(function(e){qA(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=pi(r,t.contentWindow.document.documentElement);var a=t.contentWindow.document.documentElement?ot(r,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):se.TRANSPARENT,i=t.contentWindow.document.body?ot(r,getComputedStyle(t.contentWindow.document.body).backgroundColor):se.TRANSPARENT;n.backgroundColor=we(a)?we(i)?n.styles.backgroundColor:i:a}}catch{}return n}return A})(re),Ad=["OL","UL","MENU"],$t=function(e,A,r,t){for(var n=A.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,Ci(n)&&n.data.trim().length>0)r.textNodes.push(new PB(e,n,r.styles));else if(Oe(n))if(Ui(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return $t(e,o,r,t)});else{var i=wi(e,n);i.styles.isVisible()&&(ed(n,i,t)?i.flags|=4:td(i.styles)&&(i.flags|=2),Ad.indexOf(n.tagName)!==-1&&(i.flags|=8),r.elements.push(i),n.slot,n.shadowRoot?$t(e,n.shadowRoot,i,t):!dr(n)&&!Qi(n)&&!fr(n)&&$t(e,n,i,t))}},wi=function(e,A){return kn(A)?new ci(e,A):mi(A)?new gi(e,A):Qi(A)?new ui(e,A):rd(A)?new Bi(e,A):nd(A)?new Sn(e,A):ad(A)?new Pn(e,A):fr(A)?new di(e,A):dr(A)?new fi(e,A):vi(A)?new hi(e,A):new re(e,A)},pi=function(e,A){var r=wi(e,A);return r.flags|=4,$t(e,A,r,r),r},ed=function(e,A,r){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Xn(e)&&r.styles.isTransparent()},td=function(e){return e.isPositioned()||e.isFloating()},Ci=function(e){return e.nodeType===Node.TEXT_NODE},Oe=function(e){return e.nodeType===Node.ELEMENT_NODE},Ln=function(e){return Oe(e)&&typeof e.style<"u"&&!Ar(e)},Ar=function(e){return typeof e.className=="object"},rd=function(e){return e.tagName==="LI"},nd=function(e){return e.tagName==="OL"},ad=function(e){return e.tagName==="INPUT"},sd=function(e){return e.tagName==="HTML"},Qi=function(e){return e.tagName==="svg"},Xn=function(e){return e.tagName==="BODY"},mi=function(e){return e.tagName==="CANVAS"},_a=function(e){return e.tagName==="VIDEO"},kn=function(e){return e.tagName==="IMG"},vi=function(e){return e.tagName==="IFRAME"},Ga=function(e){return e.tagName==="STYLE"},id=function(e){return e.tagName==="SCRIPT"},dr=function(e){return e.tagName==="TEXTAREA"},fr=function(e){return e.tagName==="SELECT"},Ui=function(e){return e.tagName==="SLOT"},ja=function(e){return e.tagName.indexOf("-")>0},od=(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 i=[];return a&&n.forEach(function(o){var l=r.counters[o.counter];i.push(o.counter),l||(l=r.counters[o.counter]=[]),l.push(o.reset)}),i},e})(),Va={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"]},Pa={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},ld={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},cd={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Le=function(e,A,r,t,n,a){return e<A||e>r?wt(e,n,a.length>0):t.integers.reduce(function(i,o,l){for(;e>=o;)e-=o,i+=t.values[l];return i},"")+a},Fi=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?"-":"")+(Fi(Math.abs(e),a,t,function(i){return bA(Math.floor(i%a)+A)})+n)},Ce=function(e,A,r){r===void 0&&(r=". ");var t=A.length;return Fi(Math.abs(e),t,!1,function(n){return A[Math.floor(n%t)]})+r},Ke=1,oe=2,le=4,nt=8,ae=function(e,A,r,t,n,a){if(e<-9999||e>9999)return wt(e,4,n.length>0);var i=Math.abs(e),o=n;if(i===0)return A[0]+o;for(var l=0;i>0&&l<=4;l++){var c=i%10;c===0&&yA(a,Ke)&&o!==""?o=A[c]+o:c>1||c===1&&l===0||c===1&&l===1&&yA(a,oe)||c===1&&l===1&&yA(a,le)&&e>100||c===1&&l>1&&yA(a,nt)?o=A[c]+(l>0?r[l-1]:"")+o:c===1&&l>0&&(o=r[l-1]+o),i=Math.floor(i/10)}return(e<0?t:"")+o},Xa="十百千萬",Ja="拾佰仟萬",Wa="マイナス",qr="마이너스",wt=function(e,A,r){var t=r?". ":"",n=r?"、":"",a=r?", ":"",i=r?" ":"";switch(A){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var o=FA(e,48,57,!0,t);return o.length<4?"0"+o:o;case 4:return Ce(e,"〇一二三四五六七八九",n);case 6:return Le(e,1,3999,Va,3,t).toLowerCase();case 7:return Le(e,1,3999,Va,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 Le(e,1,9999,Pa,3,t);case 35:return Le(e,1,9999,Pa,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 Ce(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Ce(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ae(e,"零一二三四五六七八九",Xa,"負",n,oe|le|nt);case 47:return ae(e,"零壹貳參肆伍陸柒捌玖",Ja,"負",n,Ke|oe|le|nt);case 42:return ae(e,"零一二三四五六七八九",Xa,"负",n,oe|le|nt);case 41:return ae(e,"零壹贰叁肆伍陆柒捌玖",Ja,"负",n,Ke|oe|le|nt);case 26:return ae(e,"〇一二三四五六七八九","十百千万",Wa,n,0);case 25:return ae(e,"零壱弐参四伍六七八九","拾百千万",Wa,n,Ke|oe|le);case 31:return ae(e,"영일이삼사오육칠팔구","십백천만",qr,a,Ke|oe|le);case 33:return ae(e,"零一二三四五六七八九","十百千萬",qr,a,0);case 32:return ae(e,"零壹貳參四五六七八九","拾百千",qr,a,Ke|oe|le);case 18:return FA(e,2406,2415,!0,t);case 20:return Le(e,1,19999,cd,3,t);case 21:return FA(e,2790,2799,!0,t);case 22:return FA(e,2662,2671,!0,t);case 22:return Le(e,1,10999,ld,3,t);case 23:return Ce(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ce(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return FA(e,3302,3311,!0,t);case 28:return Ce(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Ce(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)}},bi="data-html2canvas-ignore",Ya=(function(){function e(A,r,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=r,this.counters=new od,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=gd(A,r);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=A.defaultView.pageXOffset,i=A.defaultView.pageYOffset,o=n.contentWindow,l=o.document,c=dd(n).then(function(){return OA(t,void 0,void 0,function(){var g,d;return kA(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(pd),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,d=this.clonedReferenceElement,typeof d>"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,d)}).then(function(){return n})]:[2,n]}})})});return l.open(),l.write(hd(document.doctype)+"<html></html>"),wd(this.referenceElement.ownerDocument,a,i),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(A){if(In(A,2))debugger;if(mi(A))return this.createCanvasClone(A);if(_a(A))return this.createVideoClone(A);if(Ga(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")),ja(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(A){var r=document.createElement("html2canvascustomelement");return zr(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,i){return i&&typeof i.cssText=="string"?a+i.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"),i=n.getContext("2d");if(i)if(!this.options.allowTaint&&a)i.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)}i.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){(!Oe(r)||!id(r)&&!r.hasAttribute(bi)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Oe(r)||!Ga(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(Oe(a)&&Ui(a)&&typeof a.assignedNodes=="function"){var i=a.assignedNodes();i.length&&i.forEach(function(o){return n.appendChildNode(r,o,t)})}else this.appendChildNode(r,a,t)},e.prototype.cloneNode=function(A,r){if(Ci(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Oe(A)&&(Ln(A)||Ar(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var a=t.getComputedStyle(A),i=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&Ln(n)&&(this.clonedReferenceElement=n),Xn(n)&&md(n);var l=this.counters.parse(new Ea(this.context,a)),c=this.resolvePseudoContent(A,n,i,gt.BEFORE);ja(A)&&(r=!0),_a(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||Ar(A))&&!vi(A)||r)&&zr(a,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(dr(A)||fr(A))&&(dr(n)||fr(n))&&(n.value=A.value),n}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,r,t,n){var a=this;if(t){var i=t.content,o=r.ownerDocument;if(!(!o||!i||i==="none"||i==="-moz-alt-content"||t.display==="none")){this.counters.parse(new Ea(this.context,t));var l=new rB(this.context,t),c=o.createElement("html2canvaspseudoelement");zr(t,c),l.content.forEach(function(d){if(d.type===0)c.appendChild(o.createTextNode(d.value));else if(d.type===22){var u=o.createElement("img");u.src=d.value,u.style.opacity="1",c.appendChild(u)}else if(d.type===18){if(d.name==="attr"){var p=d.values.filter(BA);p.length&&c.appendChild(o.createTextNode(A.getAttribute(p[0].value)||""))}else if(d.name==="counter"){var m=d.values.filter(je),Q=m[0],x=m[1];if(Q&&BA(Q)){var U=a.counters.getCounterValue(Q.value),F=x&&BA(x)?xn.parse(a.context,x.value):3;c.appendChild(o.createTextNode(wt(U,F,!1)))}}else if(d.name==="counters"){var L=d.values.filter(je),Q=L[0],k=L[1],x=L[2];if(Q&&BA(Q)){var y=a.counters.getCounterValues(Q.value),w=x&&BA(x)?xn.parse(a.context,x.value):3,I=k&&k.type===0?k.value:"",K=y.map(function(R){return wt(R,w,!1)}).join(I);c.appendChild(o.createTextNode(K))}}}else if(d.type===20)switch(d.value){case"open-quote":c.appendChild(o.createTextNode(ba(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(ba(l.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(d.value))}}),c.className=Mn+" "+Kn;var g=n===gt.BEFORE?" "+Mn:" "+Kn;return Ar(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 gd=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(bi,"true"),e.body.appendChild(r),r},ud=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(ud))},dd=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)}})},fd=["all","d","content"],zr=function(e,A){for(var r=e.length-1;r>=0;r--){var t=e.item(r);fd.indexOf(t)===-1&&A.style.setProperty(t,e.getPropertyValue(t))}return A},hd=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},wd=function(e,A,r){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,r)},pd=function(e){var A=e[0],r=e[1],t=e[2];A.scrollLeft=r,A.scrollTop=t},Cd=":before",Qd=":after",Mn="___html2canvas___pseudoelement_before",Kn="___html2canvas___pseudoelement_after",Za=`{+ content: "" !important;+ display: none !important;+}`,md=function(e){vd(e,"."+Mn+Cd+Za+`+ .`+Kn+Qd+Za)},vd=function(e,A){var r=e.ownerDocument;if(r){var t=r.createElement("style");t.textContent=A,e.appendChild(t)}},Ei=(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})(),Ud=(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)||(An(A)||yd(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,i=this;return kA(this,function(o){switch(o.label){case 0:return r=Ei.isSameOrigin(A),t=!$r(A)&&this._options.useCORS===!0&&HA.SUPPORT_CORS_IMAGES&&!r,n=!$r(A)&&!r&&!An(A)&&typeof this._options.proxy=="string"&&HA.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!$r(A)&&!An(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,(xd(a)||t)&&(g.crossOrigin="anonymous"),g.src=a,g.complete===!0&&setTimeout(function(){return l(g)},500),i._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._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,i){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 d=new FileReader;d.addEventListener("load",function(){return a(d.result)},!1),d.addEventListener("error",function(u){return i(u)},!1),d.readAsDataURL(l.response)}else i("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=i;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 i("Timed out ("+g+"ms) proxying "+n)}}l.send()})},e})(),Fd=/^data:image\/svg\+xml/i,bd=/^data:image\/.*;base64,/i,Ed=/^data:image\/.*/i,yd=function(e){return HA.SUPPORT_SVG_DRAWING||!Id(e)},$r=function(e){return Ed.test(e)},xd=function(e){return bd.test(e)},An=function(e){return e.substr(0,4)==="blob"},Id=function(e){return e.substr(-3).toLowerCase()==="svg"||Fd.test(e)},j=(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})(),ke=function(e,A,r){return new j(e.x+(A.x-e.x)*r,e.y+(A.y-e.y)*r)},Xt=(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=ke(this.start,this.startControl,A),n=ke(this.startControl,this.endControl,A),a=ke(this.endControl,this.end,A),i=ke(t,n,A),o=ke(n,a,A),l=ke(i,o,A);return r?new e(this.start,t,i,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},Hd=(function(){function e(A){var r=A.styles,t=A.bounds,n=tt(r.borderTopLeftRadius,t.width,t.height),a=n[0],i=n[1],o=tt(r.borderTopRightRadius,t.width,t.height),l=o[0],c=o[1],g=tt(r.borderBottomRightRadius,t.width,t.height),d=g[0],u=g[1],p=tt(r.borderBottomLeftRadius,t.width,t.height),m=p[0],Q=p[1],x=[];x.push((a+l)/t.width),x.push((m+d)/t.width),x.push((i+Q)/t.height),x.push((c+u)/t.height);var U=Math.max.apply(Math,x);U>1&&(a/=U,i/=U,l/=U,c/=U,d/=U,u/=U,m/=U,Q/=U);var F=t.width-l,L=t.height-u,k=t.width-d,y=t.height-Q,w=r.borderTopWidth,I=r.borderRightWidth,K=r.borderBottomWidth,M=r.borderLeftWidth,O=wA(r.paddingTop,A.bounds.width),R=wA(r.paddingRight,A.bounds.width),P=wA(r.paddingBottom,A.bounds.width),D=wA(r.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||i>0?QA(t.left+M/3,t.top+w/3,a-M/3,i-w/3,uA.TOP_LEFT):new j(t.left+M/3,t.top+w/3),this.topRightBorderDoubleOuterBox=a>0||i>0?QA(t.left+F,t.top+w/3,l-I/3,c-w/3,uA.TOP_RIGHT):new j(t.left+t.width-I/3,t.top+w/3),this.bottomRightBorderDoubleOuterBox=d>0||u>0?QA(t.left+k,t.top+L,d-I/3,u-K/3,uA.BOTTOM_RIGHT):new j(t.left+t.width-I/3,t.top+t.height-K/3),this.bottomLeftBorderDoubleOuterBox=m>0||Q>0?QA(t.left+M/3,t.top+y,m-M/3,Q-K/3,uA.BOTTOM_LEFT):new j(t.left+M/3,t.top+t.height-K/3),this.topLeftBorderDoubleInnerBox=a>0||i>0?QA(t.left+M*2/3,t.top+w*2/3,a-M*2/3,i-w*2/3,uA.TOP_LEFT):new j(t.left+M*2/3,t.top+w*2/3),this.topRightBorderDoubleInnerBox=a>0||i>0?QA(t.left+F,t.top+w*2/3,l-I*2/3,c-w*2/3,uA.TOP_RIGHT):new j(t.left+t.width-I*2/3,t.top+w*2/3),this.bottomRightBorderDoubleInnerBox=d>0||u>0?QA(t.left+k,t.top+L,d-I*2/3,u-K*2/3,uA.BOTTOM_RIGHT):new j(t.left+t.width-I*2/3,t.top+t.height-K*2/3),this.bottomLeftBorderDoubleInnerBox=m>0||Q>0?QA(t.left+M*2/3,t.top+y,m-M*2/3,Q-K*2/3,uA.BOTTOM_LEFT):new j(t.left+M*2/3,t.top+t.height-K*2/3),this.topLeftBorderStroke=a>0||i>0?QA(t.left+M/2,t.top+w/2,a-M/2,i-w/2,uA.TOP_LEFT):new j(t.left+M/2,t.top+w/2),this.topRightBorderStroke=a>0||i>0?QA(t.left+F,t.top+w/2,l-I/2,c-w/2,uA.TOP_RIGHT):new j(t.left+t.width-I/2,t.top+w/2),this.bottomRightBorderStroke=d>0||u>0?QA(t.left+k,t.top+L,d-I/2,u-K/2,uA.BOTTOM_RIGHT):new j(t.left+t.width-I/2,t.top+t.height-K/2),this.bottomLeftBorderStroke=m>0||Q>0?QA(t.left+M/2,t.top+y,m-M/2,Q-K/2,uA.BOTTOM_LEFT):new j(t.left+M/2,t.top+t.height-K/2),this.topLeftBorderBox=a>0||i>0?QA(t.left,t.top,a,i,uA.TOP_LEFT):new j(t.left,t.top),this.topRightBorderBox=l>0||c>0?QA(t.left+F,t.top,l,c,uA.TOP_RIGHT):new j(t.left+t.width,t.top),this.bottomRightBorderBox=d>0||u>0?QA(t.left+k,t.top+L,d,u,uA.BOTTOM_RIGHT):new j(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=m>0||Q>0?QA(t.left,t.top+y,m,Q,uA.BOTTOM_LEFT):new j(t.left,t.top+t.height),this.topLeftPaddingBox=a>0||i>0?QA(t.left+M,t.top+w,Math.max(0,a-M),Math.max(0,i-w),uA.TOP_LEFT):new j(t.left+M,t.top+w),this.topRightPaddingBox=l>0||c>0?QA(t.left+Math.min(F,t.width-I),t.top+w,F>t.width+I?0:Math.max(0,l-I),Math.max(0,c-w),uA.TOP_RIGHT):new j(t.left+t.width-I,t.top+w),this.bottomRightPaddingBox=d>0||u>0?QA(t.left+Math.min(k,t.width-M),t.top+Math.min(L,t.height-K),Math.max(0,d-I),Math.max(0,u-K),uA.BOTTOM_RIGHT):new j(t.left+t.width-I,t.top+t.height-K),this.bottomLeftPaddingBox=m>0||Q>0?QA(t.left+M,t.top+Math.min(y,t.height-K),Math.max(0,m-M),Math.max(0,Q-K),uA.BOTTOM_LEFT):new j(t.left+M,t.top+t.height-K),this.topLeftContentBox=a>0||i>0?QA(t.left+M+D,t.top+w+O,Math.max(0,a-(M+D)),Math.max(0,i-(w+O)),uA.TOP_LEFT):new j(t.left+M+D,t.top+w+O),this.topRightContentBox=l>0||c>0?QA(t.left+Math.min(F,t.width+M+D),t.top+w+O,F>t.width+M+D?0:l-M+D,c-(w+O),uA.TOP_RIGHT):new j(t.left+t.width-(I+R),t.top+w+O),this.bottomRightContentBox=d>0||u>0?QA(t.left+Math.min(k,t.width-(M+D)),t.top+Math.min(L,t.height+w+O),Math.max(0,d-(I+R)),u-(K+P),uA.BOTTOM_RIGHT):new j(t.left+t.width-(I+R),t.top+t.height-(K+P)),this.bottomLeftContentBox=m>0||Q>0?QA(t.left+M+D,t.top+y,Math.max(0,m-(M+D)),Q-(K+P),uA.BOTTOM_LEFT):new j(t.left+M+D,t.top+t.height-(K+P))}return e})(),uA;(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"})(uA||(uA={}));var QA=function(e,A,r,t,n){var a=4*((Math.sqrt(2)-1)/3),i=r*a,o=t*a,l=e+r,c=A+t;switch(n){case uA.TOP_LEFT:return new Xt(new j(e,c),new j(e,c-o),new j(l-i,A),new j(l,A));case uA.TOP_RIGHT:return new Xt(new j(e,A),new j(e+i,A),new j(l,c-o),new j(l,c));case uA.BOTTOM_RIGHT:return new Xt(new j(l,A),new j(l,A+o),new j(e+i,c),new j(e,c));case uA.BOTTOM_LEFT:default:return new Xt(new j(l,c),new j(l-i,c),new j(e,A+o),new j(e,A))}},hr=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Sd=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},wr=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Ld=(function(){function e(A,r,t){this.offsetX=A,this.offsetY=r,this.matrix=t,this.type=0,this.target=6}return e})(),Jt=(function(){function e(A,r){this.path=A,this.target=r,this.type=1}return e})(),kd=(function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e})(),Md=function(e){return e.type===0},yi=function(e){return e.type===1},Kd=function(e){return e.type===2},qa=function(e,A){return e.length===A.length?e.some(function(r,t){return r===A[t]}):!1},Td=function(e,A,r,t,n){return e.map(function(a,i){switch(i){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})},xi=(function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),Ii=(function(){function e(A,r){if(this.container=A,this.parent=r,this.effects=[],this.curves=new Hd(this.container),this.container.styles.opacity<1&&this.effects.push(new kd(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 Ld(t,n,a))}if(this.container.styles.overflowX!==0){var i=hr(this.curves),o=wr(this.curves);qa(i,o)?this.effects.push(new Jt(i,6)):(this.effects.push(new Jt(i,2)),this.effects.push(new Jt(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!yi(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 i=hr(t.curves),o=wr(t.curves);qa(i,o)||n.unshift(new Jt(o,6))}}else n.unshift.apply(n,a);t=t.parent}return n.filter(function(l){return yA(l.target,A)})},e})(),Tn=function(e,A,r,t){e.container.elements.forEach(function(n){var a=yA(n.flags,4),i=yA(n.flags,2),o=new Ii(n,e);yA(n.styles.display,2048)&&t.push(o);var l=yA(n.flags,8)?[]:t;if(a||i){var c=a||n.styles.isPositioned()?r:A,g=new xi(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var u=0;c.negativeZIndex.some(function(m,Q){return d>m.element.container.styles.zIndex.order?(u=Q,!1):u>0}),c.negativeZIndex.splice(u,0,g)}else if(d>0){var p=0;c.positiveZIndex.some(function(m,Q){return d>=m.element.container.styles.zIndex.order?(p=Q+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);yA(n.flags,8)&&Hi(n,l)})},Hi=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 Bi&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=wt(r,a.container.styles.listStyleType,!0),r+=t?-1:1}},Dd=function(e){var A=new Ii(e,null),r=new xi(A),t=[];return Tn(A,r,r,t),Hi(A.container,t),r},za=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)}},Od=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)}},Rd=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)}},Nd=function(e,A){switch(A){case 0:return Wt(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Wt(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Wt(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Wt(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Wt=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},Si=function(e){var A=e.bounds,r=e.styles;return A.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},pr=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),i=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+i))},_d=function(e,A){return e===0?A.bounds:e===2?pr(A):Si(A)},Gd=function(e,A){return e===0?A.bounds:e===2?pr(A):Si(A)},en=function(e,A,r){var t=_d(Te(e.styles.backgroundOrigin,A),e),n=Gd(Te(e.styles.backgroundClip,A),e),a=jd(Te(e.styles.backgroundSize,A),r,t),i=a[0],o=a[1],l=tt(Te(e.styles.backgroundPosition,A),t.width-i,t.height-o),c=Vd(Te(e.styles.backgroundRepeat,A),l,a,t,n),g=Math.round(t.left+l[0]),d=Math.round(t.top+l[1]);return[c,g,d,i,o]},Me=function(e){return BA(e)&&e.value===Ne.AUTO},Yt=function(e){return typeof e=="number"},jd=function(e,A,r){var t=A[0],n=A[1],a=A[2],i=e[0],o=e[1];if(!i)return[0,0];if(EA(i)&&o&&EA(o))return[wA(i,r.width),wA(o,r.height)];var l=Yt(a);if(BA(i)&&(i.value===Ne.CONTAIN||i.value===Ne.COVER)){if(Yt(a)){var c=r.width/r.height;return c<a!=(i.value===Ne.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var g=Yt(t),d=Yt(n),u=g||d;if(Me(i)&&(!o||Me(o))){if(g&&d)return[t,n];if(!l&&!u)return[r.width,r.height];if(u&&l){var p=g?t:n*a,m=d?n:t/a;return[p,m]}var Q=g?t:r.width,x=d?n:r.height;return[Q,x]}if(l){var U=0,F=0;return EA(i)?U=wA(i,r.width):EA(o)&&(F=wA(o,r.height)),Me(i)?U=F*a:(!o||Me(o))&&(F=U/a),[U,F]}var L=null,k=null;if(EA(i)?L=wA(i,r.width):o&&EA(o)&&(k=wA(o,r.height)),L!==null&&(!o||Me(o))&&(k=g&&d?L/t*n:r.height),k!==null&&Me(i)&&(L=g&&d?k/n*t:r.width),L!==null&&k!==null)return[L,k];throw new Error("Unable to calculate background-size for element")},Te=function(e,A){var r=e[A];return typeof r>"u"?e[0]:r},Vd=function(e,A,r,t,n){var a=A[0],i=A[1],o=r[0],l=r[1];switch(e){case 2:return[new j(Math.round(t.left),Math.round(t.top+i)),new j(Math.round(t.left+t.width),Math.round(t.top+i)),new j(Math.round(t.left+t.width),Math.round(l+t.top+i)),new j(Math.round(t.left),Math.round(l+t.top+i))];case 3:return[new j(Math.round(t.left+a),Math.round(t.top)),new j(Math.round(t.left+a+o),Math.round(t.top)),new j(Math.round(t.left+a+o),Math.round(t.height+t.top)),new j(Math.round(t.left+a),Math.round(t.height+t.top))];case 1:return[new j(Math.round(t.left+a),Math.round(t.top+i)),new j(Math.round(t.left+a+o),Math.round(t.top+i)),new j(Math.round(t.left+a+o),Math.round(t.top+i+l)),new j(Math.round(t.left+a),Math.round(t.top+i+l))];default:return[new j(Math.round(n.left),Math.round(n.top)),new j(Math.round(n.left+n.width),Math.round(n.top)),new j(Math.round(n.left+n.width),Math.round(n.height+n.top)),new j(Math.round(n.left),Math.round(n.height+n.top))]}},Pd="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",$a="Hidden Text",Xd=(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"),i=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",i.appendChild(t),n.src=Pd,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($a)),t.appendChild(a),t.appendChild(n);var o=n.offsetTop-a.offsetTop+2;t.removeChild(a),t.appendChild(this._document.createTextNode($a)),t.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-t.offsetTop+2;return i.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})(),Li=(function(){function e(A,r){this.context=A,this.options=r}return e})(),Jd=1e4,Wd=(function(e){qA(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 Xd(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(),Kd(r)&&(this.ctx.globalAlpha=r.opacity),Md(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)),yi(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(yA(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 i=Vn(r.text);i.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(i){return i==="normal"||i==="small-caps"}).join(""),n=$d(r.fontFamily).join(", "),a=Ut(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,i,o,l,c,g,d,u=this;return kA(this,function(p){return n=this.createFontStyle(t),a=n[0],i=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(i,o),c=l.baseline,g=l.middle,d=t.paintOrder,r.textBounds.forEach(function(m){d.forEach(function(Q){switch(Q){case 0:u.ctx.fillStyle=xA(t.color),u.renderTextWithLetterSpacing(m,t.letterSpacing,c);var x=t.textShadow;x.length&&m.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(m,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(m.bounds.left,Math.round(m.bounds.top+c),m.bounds.width,1);break;case 2:u.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top),m.bounds.width,1);break;case 3:u.ctx.fillRect(m.bounds.left,Math.ceil(m.bounds.top+g),m.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&m.text.trim().length&&(u.ctx.strokeStyle=xA(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(m.text,m.bounds.left,m.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=pr(r),i=wr(t);this.path(i),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,i,o,l,F,F,c,g,d,u,k,p,m,y,Q,x,U,F,L,k,y;return kA(this,function(w){switch(w.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,n=r.curves,a=t.styles,i=0,o=t.textNodes,w.label=1;case 1:return i<o.length?(l=o[i],[4,this.renderTextNode(l,a)]):[3,4];case 2:w.sent(),w.label=3;case 3:return i++,[3,1];case 4:if(!(t instanceof ci))return[3,8];w.label=5;case 5:return w.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return F=w.sent(),this.renderReplacedElement(t,n,F),[3,8];case 7:return w.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof gi&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof ui))return[3,12];w.label=9;case 9:return w.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return F=w.sent(),this.renderReplacedElement(t,n,F),[3,12];case 11:return w.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof hi&&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=w.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),w.label=14;case 14:if(t instanceof Pn&&(d=Math.min(t.bounds.width,t.bounds.height),t.type===ur?t.checked&&(this.ctx.save(),this.path([new j(t.bounds.left+d*.39363,t.bounds.top+d*.79),new j(t.bounds.left+d*.16,t.bounds.top+d*.5549),new j(t.bounds.left+d*.27347,t.bounds.top+d*.44071),new j(t.bounds.left+d*.39694,t.bounds.top+d*.5649),new j(t.bounds.left+d*.72983,t.bounds.top+d*.23),new j(t.bounds.left+d*.84,t.bounds.top+d*.34085),new j(t.bounds.left+d*.39363,t.bounds.top+d*.79)]),this.ctx.fillStyle=xA(Na),this.ctx.fill(),this.ctx.restore()):t.type===Br&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+d/2,t.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=xA(Na),this.ctx.fill(),this.ctx.restore())),Yd(t)&&t.value.length){switch(u=this.createFontStyle(a),k=u[0],p=u[1],m=this.fontMetrics.getMetrics(k,p).baseline,this.ctx.font=k,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=qd(t.styles.textAlign),y=pr(t),Q=0,t.styles.textAlign){case 1:Q+=y.width/2;break;case 2:Q+=y.width;break}x=y.add(Q,0,0,-y.height/2+1),this.ctx.save(),this.path([new j(y.left,y.top),new j(y.left+y.width,y.top),new j(y.left+y.width,y.top+y.height),new j(y.left,y.top+y.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ct(t.value,x),a.letterSpacing,m),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!yA(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];F=void 0,L=U.url,w.label=15;case 15:return w.trys.push([15,17,,18]),[4,this.context.cache.match(L)];case 16:return F=w.sent(),this.ctx.drawImage(F,t.bounds.left-(F.width+10),t.bounds.top),[3,18];case 17:return w.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&&(k=this.createFontStyle(a)[0],this.ctx.font=k,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",y=new ie(t.bounds.left,t.bounds.top+wA(t.styles.paddingTop,t.bounds.width),t.bounds.width,Ua(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ct(r.listValue,y),a.letterSpacing,Ua(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),w.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(r){return OA(this,void 0,void 0,function(){var t,n,U,a,i,U,o,l,U,c,g,U,d,u,U,p,m,U,Q,x,U;return kA(this,function(F){switch(F.label){case 0:if(yA(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:F.sent(),t=0,n=r.negativeZIndex,F.label=2;case 2:return t<n.length?(U=n[t],[4,this.renderStack(U)]):[3,5];case 3:F.sent(),F.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:F.sent(),a=0,i=r.nonInlineLevel,F.label=7;case 7:return a<i.length?(U=i[a],[4,this.renderNode(U)]):[3,10];case 8:F.sent(),F.label=9;case 9:return a++,[3,7];case 10:o=0,l=r.nonPositionedFloats,F.label=11;case 11:return o<l.length?(U=l[o],[4,this.renderStack(U)]):[3,14];case 12:F.sent(),F.label=13;case 13:return o++,[3,11];case 14:c=0,g=r.nonPositionedInlineLevel,F.label=15;case 15:return c<g.length?(U=g[c],[4,this.renderStack(U)]):[3,18];case 16:F.sent(),F.label=17;case 17:return c++,[3,15];case 18:d=0,u=r.inlineLevel,F.label=19;case 19:return d<u.length?(U=u[d],[4,this.renderNode(U)]):[3,22];case 20:F.sent(),F.label=21;case 21:return d++,[3,19];case 22:p=0,m=r.zeroOrAutoZIndexOrTransformedOrOpacity,F.label=23;case 23:return p<m.length?(U=m[p],[4,this.renderStack(U)]):[3,26];case 24:F.sent(),F.label=25;case 25:return p++,[3,23];case 26:Q=0,x=r.positiveZIndex,F.label=27;case 27:return Q<x.length?(U=x[Q],[4,this.renderStack(U)]):[3,30];case 28:F.sent(),F.label=29;case 29:return Q++,[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 i=PA(n)?n.start:n;a===0?t.ctx.moveTo(i.x,i.y):t.ctx.lineTo(i.x,i.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 i=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=i.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,i,o,l;return kA(this,function(c){switch(c.label){case 0:t=r.styles.backgroundImage.length-1,n=function(g){var d,u,p,O,eA,AA,D,W,K,m,O,eA,AA,D,W,Q,x,U,F,L,k,y,w,I,K,M,O,R,P,D,W,$,eA,AA,fA,sA,q,cA,iA,S,_,N;return kA(this,function(Y){switch(Y.label){case 0:if(g.type!==0)return[3,5];d=void 0,u=g.url,Y.label=1;case 1:return Y.trys.push([1,3,,4]),[4,a.context.cache.match(u)];case 2:return d=Y.sent(),[3,4];case 3:return Y.sent(),a.context.logger.error("Error loading background-image "+u),[3,4];case 4:return d&&(p=en(r,t,[d.width,d.height,d.width/d.height]),O=p[0],eA=p[1],AA=p[2],D=p[3],W=p[4],K=a.ctx.createPattern(a.resizeImage(d,D,W),"repeat"),a.renderRepeat(O,K,eA,AA)),[3,6];case 5:Mg(g)?(m=en(r,t,[null,null,null]),O=m[0],eA=m[1],AA=m[2],D=m[3],W=m[4],Q=Ig(g.angle,D,W),x=Q[0],U=Q[1],F=Q[2],L=Q[3],k=Q[4],y=document.createElement("canvas"),y.width=D,y.height=W,w=y.getContext("2d"),I=w.createLinearGradient(U,L,F,k),ma(g.stops,x).forEach(function(gA){return I.addColorStop(gA.stop,xA(gA.color))}),w.fillStyle=I,w.fillRect(0,0,D,W),D>0&&W>0&&(K=a.ctx.createPattern(y,"repeat"),a.renderRepeat(O,K,eA,AA))):Kg(g)&&(M=en(r,t,[null,null,null]),O=M[0],R=M[1],P=M[2],D=M[3],W=M[4],$=g.position.length===0?[_n]:g.position,eA=wA($[0],D),AA=wA($[$.length-1],W),fA=Hg(g,eA,AA,D,W),sA=fA[0],q=fA[1],sA>0&&q>0&&(cA=a.ctx.createRadialGradient(R+eA,P+AA,0,R+eA,P+AA,sA),ma(g.stops,sA*2).forEach(function(gA){return cA.addColorStop(gA.stop,xA(gA.color))}),a.path(O),a.ctx.fillStyle=cA,sA!==q?(iA=r.bounds.left+.5*r.bounds.width,S=r.bounds.top+.5*r.bounds.height,_=q/sA,N=1/_,a.ctx.save(),a.ctx.translate(iA,S),a.ctx.transform(1,0,0,_,0,0),a.ctx.translate(-iA,-S),a.ctx.fillRect(R,N*(P-S)+S,D,W*N),a.ctx.restore()):a.ctx.fill())),Y.label=6;case 6:return t--,[2]}})},a=this,i=0,o=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return i<o.length?(l=o[i],[5,n(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return i++,[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(za(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 i,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 i=Od(a,n),this.path(i),this.ctx.fillStyle=xA(r),this.ctx.fill(),o=Rd(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,i,o,l,c,g,d=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}],i=Zd(Te(t.backgroundClip,0),r.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(i),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){d.ctx.save();var m=hr(r.curves),Q=p.inset?0:Jd,x=Td(m,-Q+(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?(d.path(m),d.ctx.clip(),d.mask(x)):(d.mask(m),d.ctx.clip(),d.path(x)),d.ctx.shadowOffsetX=p.offsetX.number+Q,d.ctx.shadowOffsetY=p.offsetY.number,d.ctx.shadowColor=xA(p.color),d.ctx.shadowBlur=p.blur.number,d.ctx.fillStyle=p.inset?xA(p.color):"rgba(0,0,0,1)",d.ctx.fill(),d.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,i){return OA(this,void 0,void 0,function(){var o,l,c,g,d,u,p,m,Q,x,U,F,L,k,y,w,y,w;return kA(this,function(I){return this.ctx.save(),o=Nd(a,n),l=za(a,n),i===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])?(d=l[1].end.x,u=l[1].end.y):(d=l[1].x,u=l[1].y),n===0||n===2?p=Math.abs(c-d):p=Math.abs(g-u),this.ctx.beginPath(),i===3?this.formatPath(o):this.formatPath(l.slice(0,2)),m=t<3?t*3:t*2,Q=t<3?t*2:t,i===3&&(m=t,Q=t),x=!0,p<=m*2?x=!1:p<=m*2+Q?(U=p/(2*m+Q),m*=U,Q*=U):(F=Math.floor((p+Q)/(m+Q)),L=(p-F*m)/(F-1),k=(p-(F+1)*m)/F,Q=k<=0||Math.abs(Q-L)<Math.abs(Q-k)?L:k),x&&(i===3?this.ctx.setLineDash([0,m+Q]):this.ctx.setLineDash([m,Q])),i===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([]),i===2&&(PA(l[0])&&(y=l[3],w=l[0],this.ctx.beginPath(),this.formatPath([new j(y.end.x,y.end.y),new j(w.start.x,w.start.y)]),this.ctx.stroke()),PA(l[1])&&(y=l[1],w=l[2],this.ctx.beginPath(),this.formatPath([new j(y.end.x,y.end.y),new j(w.start.x,w.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=Dd(r),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A})(Li),Yd=function(e){return e instanceof fi||e instanceof di?!0:e instanceof Pn&&e.type!==Br&&e.type!==ur},Zd=function(e,A){switch(e){case 0:return hr(A);case 2:return Sd(A);default:return wr(A)}},qd=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},zd=["-apple-system","system-ui"],$d=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return zd.indexOf(A)===-1}):e},Af=(function(e){qA(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,ef(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})(Li),ef=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))})},tf=(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,yt([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,yt([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,yt([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,yt([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e})(),rf=(function(){function e(A,r){var t;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new tf({id:this.instanceName,enabled:A.logging}),this.cache=(t=A.cache)!==null&&t!==void 0?t:new Ud(this,A)}return e.instanceCount=1,e})(),nf=function(e,A){return A===void 0&&(A={}),af(e,A)};typeof window<"u"&&Ei.setContext(window);var af=function(e,A){return OA(void 0,void 0,void 0,function(){var r,t,n,a,i,o,l,c,g,d,u,p,m,Q,x,U,F,L,k,y,I,w,I,K,M,O,R,P,D,W,$,eA,AA,fA,sA,q,cA,iA,S,_;return kA(this,function(N){switch(N.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:(K=A.allowTaint)!==null&&K!==void 0?K:!1,imageTimeout:(M=A.imageTimeout)!==null&&M!==void 0?M:15e3,proxy:A.proxy,useCORS:(O=A.useCORS)!==null&&O!==void 0?O:!1},a=fn({logging:(R=A.logging)!==null&&R!==void 0?R:!0,cache:A.cache},n),i={windowWidth:(P=A.windowWidth)!==null&&P!==void 0?P:t.innerWidth,windowHeight:(D=A.windowHeight)!==null&&D!==void 0?D:t.innerHeight,scrollX:(W=A.scrollX)!==null&&W!==void 0?W:t.pageXOffset,scrollY:($=A.scrollY)!==null&&$!==void 0?$:t.pageYOffset},o=new ie(i.scrollX,i.scrollY,i.windowWidth,i.windowHeight),l=new rf(a,o),c=(eA=A.foreignObjectRendering)!==null&&eA!==void 0?eA:!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),d=new Ya(l,e,g),u=d.clonedReferenceElement,u?[4,d.toIFrame(r,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=N.sent(),m=Xn(u)||sd(u)?Tl(u.ownerDocument):mr(l,u),Q=m.width,x=m.height,U=m.left,F=m.top,L=sf(l,u,A.backgroundColor),k={canvas:A.canvas,backgroundColor:L,scale:(sA=(fA=A.scale)!==null&&fA!==void 0?fA:t.devicePixelRatio)!==null&&sA!==void 0?sA:1,x:((q=A.x)!==null&&q!==void 0?q:0)+U,y:((cA=A.y)!==null&&cA!==void 0?cA:0)+F,width:(iA=A.width)!==null&&iA!==void 0?iA:Math.ceil(Q),height:(S=A.height)!==null&&S!==void 0?S:Math.ceil(x)},c?(l.logger.debug("Document cloned, using foreign object rendering"),I=new Af(l,k),[4,I.render(u)]):[3,3];case 2:return y=N.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+U+","+F+" with size "+Q+"x"+x+" using computed rendering"),l.logger.debug("Starting DOM parsing"),w=pi(l,u),L===w.styles.backgroundColor&&(w.styles.backgroundColor=se.TRANSPARENT),l.logger.debug("Starting renderer for element at "+k.x+","+k.y+" with size "+k.width+"x"+k.height),I=new Wd(l,k),[4,I.render(w)];case 4:y=N.sent(),N.label=5;case 5:return(!((_=A.removeContainer)!==null&&_!==void 0)||_)&&(Ya.destroy(p)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,y]}})})},sf=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,i=typeof r=="string"?ot(e,r):r===null?se.TRANSPARENT:4294967295;return A===t.documentElement?we(n)?we(a)?i:a:n:i},tn={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)},of={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"}},lf=function(e,A){var r=IA({},of);if(e)for(var t in tn)Object.prototype.hasOwnProperty.call(tn,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),tn[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},As=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)},cf=function(e){var A=e.color,r=dA().defaultStyles,t=A??"";return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:16}},v.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"}),v.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"}),v.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"}))},gf=function(e){var A=e.onSelect,r=dA().defaultStyles,t=b.useState(null),n=t[0],a=t[1],i=b.useState(!1),o=i[0],l=i[1],c=b.useState(!1),g=c[0],d=c[1],u=function(){var Q=document.getElementById("root");l(!0),nf(Q).then(function(x){var U=document.createElement("canvas"),F=U.getContext("2d",{willReadFrequently:!0});Q&&F&&(U.width=Q.offsetWidth*2,U.height=Q.offsetHeight*2,F.drawImage(x,0,0)),a(F)})},p=function(Q){if(Q.stopPropagation(),n){var x=Q.pageX,U=Q.pageY,F=x*2,L=U*2,k=n.getImageData(F,L,1,1).data;A("rgba(".concat(k[0],", ").concat(k[1],", ").concat(k[2],", 1)"))}d(!1),l(!1)},m=function(){if(d(!0),!window.EyeDropper)u();else{var Q=new window.EyeDropper,x=new window.AbortController;Q.open({signal:x.signal}).then(function(U){var F=SA(U.sRGBHex),L=F.toRgb(),k=L.r,y=L.g,w=L.b;A("rgba(".concat(k,", ").concat(y,", ").concat(w,", 1)")),d(!1)}).catch(function(U){console.log(U),d(!1)})}};return v.createElement("div",null,v.createElement("div",{onClick:m,id:"rbgcp-eyedropper-btn",style:$A($A({},r.rbgcpEyedropperBtn),ut(o,r))},v.createElement(cf,{color:g?"rgb(86, 140, 245)":""})),o&&v.createElement(Kl,null,v.createElement("div",{onClick:function(Q){return p(Q)},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)},rn=function(e){var A=e.value,r=e.reffy,t=e.label,n=e.config,a=e.callback,i=e.squareWidth,o=e.openAdvanced,l=e.defaultStyles,c=e.pickerIdSuffix,g=n.barSize,d=b.useState(!1),u=d[0],p=d[1],m=b.useState(2),Q=m[0],x=m[1],U=A*(i-18);b.useEffect(function(){var w;x(((w=r?.current)===null||w===void 0?void 0:w.offsetTop)-2)},[o,r]);var F=function(){p(!1)},L=function(w){u&&a(Ge(w,g))},k=function(w){u||a(Ge(w,g))},y=function(){p(!0)};return b.useEffect(function(){var w=function(){F()};return window.addEventListener("mouseup",w),function(){window.removeEventListener("mouseup",w)}},[]),v.createElement("div",{style:{width:"100%",padding:"3px 0px 3px 0px"}},v.createElement("div",{onMouseMove:function(w){return L(w)},style:{cursor:"resize",position:"relative"},id:"rbgcp-advanced-bar-".concat(t,"-wrapper").concat(c)},v.createElement("div",{style:Dn({left:U,top:Q},l.rbgcpHandle),id:"rbgcp-advanced-bar-".concat(t,"-handle").concat(c),onMouseDown:y,role:"button",tabIndex:0}),v.createElement("div",{style:{textAlign:"center",color:"#fff",fontSize:12,fontWeight:500,lineHeight:1,position:"absolute",left:"50%",transform:"translate(-50%, 0%)",top:Q+2,zIndex:10,textShadow:"1px 1px 1px rgba(0,0,0,.6)"},id:"rbgcp-advanced-bar-".concat(t,"-label").concat(c),onMouseMove:function(w){return L(w)},onClick:function(w){return k(w)},tabIndex:0,role:"button",onKeyDown:function(){}},t),v.createElement("canvas",{ref:r,height:"14px",width:"".concat(i,"px"),onClick:function(w){return k(w)},style:{position:"relative",borderRadius:14},id:"rbgcp-advanced-bar-".concat(t,"-canvas").concat(c)})))},uf=function(e){var A=e.openAdvanced,r=dA(),t=r.config,n=r.tinyColor,a=r.handleChange,i=r.squareWidth,o=r.hc,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.toHsl(),d=g.s,u=g.l,p=b.useRef(null),m=b.useRef(null),Q=b.useRef(null);nl(p,o?.h,u*100,i),al(m,o?.h,d*100,i),sl(Q,o?.h,d*100,i);var x=function(L){var k=SA({h:o?.h,s:L/100,l:u}).toRgb(),y=k.r,w=k.g,I=k.b;a("rgba(".concat(y,",").concat(w,",").concat(I,",").concat(o?.a,")"))},U=function(L){var k=SA({h:o?.h,s:d,l:L/100}).toRgb(),y=k.r,w=k.g,I=k.b;a("rgba(".concat(y,",").concat(w,",").concat(I,",").concat(o?.a,")"))},F=function(L){var k=SA({h:o?.h,s:o?.s*100,v:L}).toRgb(),y=k.r,w=k.g,I=k.b;a("rgba(".concat(y,",").concat(w,",").concat(I,",").concat(o?.a,")"))};return v.createElement("div",{style:{width:"100%",height:A?98:0,transition:"all 120ms linear"},id:"rbgcp-advanced-controls-wrapper".concat(c)},v.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)},v.createElement(rn,{value:d,reffy:p,config:t,label:"Saturation",callback:x,squareWidth:i,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),v.createElement(rn,{value:u,config:t,reffy:m,label:"Lightness",callback:U,squareWidth:i,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),v.createElement(rn,{value:o?.v,config:t,reffy:Q,label:"Brightness",callback:F,squareWidth:i,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c})))},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)},Bf=function(e){var A=e.openComparibles,r=dA(),t=r.tinyColor,n=r.handleChange,a=r.defaultStyles,i=r.pickerIdSuffix,o=t.analogous(),l=t.monochromatic(),c=t.triad(),g=t.tetrad(),d=function(u){var p=u.toRgb(),m=p.r,Q=p.g,x=p.b,U=p.a;n("rgba(".concat(m,",").concat(Q,",").concat(x,",").concat(U,")"))};return v.createElement("div",{style:{width:"100%",transition:"all 120ms linear",height:A?216:0},id:"rbgcp-comparible-colors-wrapper".concat(i)},v.createElement("div",{style:{paddingTop:11,display:A?"":"none",position:"relative"},id:"rbgcp-comparible-colors-inner".concat(i)},v.createElement("div",{style:Fe({textAlign:"center",fontSize:13,fontWeight:600,position:"absolute",top:6.5,left:2},a.rbgcpComparibleLabel),id:"rbgcp-comparible-color-guide-label".concat(i)},"Color Guide"),v.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-analogous-colors-label".concat(i)},"Analogous"),v.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex"},id:"rbgcp-comparible-analogous-colors".concat(i)},o?.map(function(u,p){return v.createElement("div",{key:p,id:"rbgcp-comparible-analogous-color-".concat(p).concat(i),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return d(u)}})})),v.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-monochromatic-colors-label".concat(i)},"Monochromatic"),v.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-monochromatic-colors".concat(i)},l?.map(function(u,p){return v.createElement("div",{key:p,id:"rbgcp-comparible-monochromatic-color-".concat(p).concat(i),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return d(u)}})})),v.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-triad-colors-label".concat(i)},"Triad"),v.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-triad-colors".concat(i)},c?.map(function(u,p){return v.createElement("div",{key:p,id:"rbgcp-comparible-triad-color-".concat(p).concat(i),style:{width:"calc(100% / 3)",height:28,background:u.toHexString()},onClick:function(){return d(u)}})})),v.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-tetrad-colors-label".concat(i)},"Tetrad"),v.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-tetrad-colors".concat(i)},g?.map(function(u,p){return v.createElement("div",{key:p,id:"rbgcp-comparible-tetrad-color-".concat(p).concat(i),style:{width:"25%",height:28,background:u.toHexString()},onClick:function(){return d(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)},df=function(){var e=dA(),A=e.gradientType,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,i=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 v.createElement("div",{style:n.rbgcpControlBtnWrapper},v.createElement("div",{onClick:l,id:"rbgcp-linear-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),i&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},v.createElement(yl,{color:i?"#568CF5":""})),v.createElement("div",{onClick:c,id:"rbgcp-radial-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),o&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},v.createElement(xl,{color:o?"#568CF5":""})))},ff=function(){var e=dA(),A=e.currentLeft,r=e.currentColor,t=e.defaultStyles,n=e.handleGradient,a=e.pickerIdSuffix,i=function(o){n(r,_e(parseInt(o),0,100))};return v.createElement("div",{style:CA(CA(CA(CA({},t.rbgcpControlBtnWrapper),t.rbgcpControlInputWrap),t.rbgcpStopInputWrap),{paddingLeft:8}),id:"rbgcp-stop-input-wrapper".concat(a)},v.createElement(kl,null),v.createElement("input",{value:A,id:"rbgcp-stop-input".concat(a),onChange:function(o){return i(o.target.value)},style:CA(CA({},t.rbgcpControlInput),t.rbgcpStopInput)}))},hf=function(){var e=dA(),A=e.degrees,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,i=function(o){var l=_e(o.target.value,0,360),c=t.split(/,(.+)/)[1];r("linear-gradient(".concat(l??0,"deg, ").concat(c))};return v.createElement("div",{style:CA(CA(CA({},n.rbgcpControlBtnWrapper),n.rbgcpControlInputWrap),n.rbgcpDegreeInputWrap),id:"rbgcp-degree-input-wrapper".concat(a)},v.createElement(Ll,null),v.createElement("input",{value:A,onChange:function(o){return i(o)},id:"rbgcp-degree-input".concat(a),style:CA(CA({},n.rbgcpControlInput),n.rbgcpDegreeInput)}),v.createElement("div",{style:CA(CA({},n.rbgcpDegreeIcon),{position:"absolute",right:A>99?0:A<10?7:3,top:1,fontWeight:400,fontSize:13})},"°"))},wf=function(){var e=dA(),A=e.colors,r=e.selectedColor,t=e.createGradientStr,n=e.defaultStyles,a=e.pickerIdSuffix,i=function(){if(A?.length>2){var o=A?.map(function(c,g){return CA(CA({},c),{value:g===r-1?Qr(c):mt(c)})}),l=o?.filter(function(c,g){return g!==r});t(l)}};return v.createElement("div",{onClick:i,style:CA(CA({},ut(!1,n)),{width:28}),id:"rbgcp-point-delete-btn".concat(a),tabIndex:0,role:"button",onKeyDown:function(){}},v.createElement(El,null))},es=function(e){var A=e.hideGradientType,r=e.hideGradientAngle,t=e.hideGradientStop,n=dA(),a=n.gradientType,i=n.defaultStyles,o=n.pickerIdSuffix;return v.createElement("div",{style:CA(CA({},i.rbgcpControlBtnWrapper),{marginTop:12,marginBottom:-4,justifyContent:"space-between",paddingLeft:A?4:0}),id:"rbgcp-gradient-controls-wrap".concat(o)},!A&&v.createElement(df,null),v.createElement("div",{style:{width:53}},!r&&a==="linear-gradient"&&v.createElement(hf,null)),!t&&v.createElement(ff,null),v.createElement(wf,null))},pt=function(){return pt=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},pt.apply(this,arguments)},pf=function(e){var A,r,t=e.hideColorTypeBtns,n=e.setGradient,a=e.isGradient,i=e.setSolid,o=e.locales,l=dA(),c=l.defaultStyles,g=l.pickerIdSuffix;return t?v.createElement("div",{style:{width:1}}):v.createElement("div",{style:pt({display:"flex",alignItems:"center"},c.rbgcpControlBtnWrapper),id:"rbgcp-color-type-btns".concat(g)},v.createElement("div",{onClick:i,id:"rbgcp-solid-btn".concat(g),style:As(!a,c)},(A=o?.CONTROLS)===null||A===void 0?void 0:A.SOLID),v.createElement("div",{onClick:n,id:"rbgcp-gradient-btn".concat(g),style:As(a??!1,c)},(r=o?.CONTROLS)===null||r===void 0?void 0:r.GRADIENT))},Cf=function(e){var A=e.openInputType,r=e.setOpenInputType,t=dA(),n=t.inputType,a=t.setInputType,i=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",d=function(u,p){A&&(u.stopPropagation(),a(p),r(!1))};return v.createElement("div",{style:pt({visibility:A?"visible":"hidden",zIndex:A?"":-100,opacity:A?1:0,transition:"".concat(g,", ").concat(l,", ").concat(c)},i.rbgcpColorModelDropdown),id:"rbgcp-color-model-dropdown".concat(o)},v.createElement("div",{id:"rbgcp-color-model-rgb-btn".concat(o),onClick:function(u){return d(u,"rgb")},style:Zt(n==="rgb",i)},"RGB"),v.createElement("div",{id:"rbgcp-color-model-hsl-btn".concat(o),onClick:function(u){return d(u,"hsl")},style:Zt(n==="hsl",i)},"HSL"),v.createElement("div",{id:"rbgcp-color-model-hsv-btn".concat(o),onClick:function(u){return d(u,"hsv")},style:Zt(n==="hsv",i)},"HSV"),v.createElement("div",{id:"rbgcp-color-model-cmyk-btn".concat(o),onClick:function(u){return d(u,"cmyk")},style:Zt(n==="cmyk",i)},"CMYK"))},Qf=function(e){var A,r,t=e.locales,n=e.hideEyeDrop,a=n===void 0?!1:n,i=e.hideAdvancedSliders,o=i===void 0?!1:i,l=e.hideColorGuide,c=l===void 0?!1:l,g=e.hideInputType,d=g===void 0?!1:g,u=e.hideColorTypeBtns,p=u===void 0?!1:u,m=e.hideGradientControls,Q=m===void 0?!1:m,x=e.hideGradientType,U=x===void 0?!1:x,F=e.hideGradientAngle,L=F===void 0?!1:F,k=e.hideGradientStop,y=k===void 0?!1:k,w=dA(),I=w.config,K=w.onChange,M=w.isGradient,O=w.handleChange,R=w.previous,P=w.defaultStyles,D=w.pickerIdSuffix,W=I.defaultColor,$=I.defaultGradient,eA=b.useState(!1),AA=eA[0],fA=eA[1],sA=b.useState(!1),q=sA[0],cA=sA[1],iA=b.useState(!1),S=iA[0],_=iA[1],N=a&&o&&c&&d,Y=(A=R?.color)!==null&&A!==void 0?A:W,gA=(r=R?.gradient)!==null&&r!==void 0?r:$,Z=function(){K(Y)},z=function(){K(gA)},tA=a&&o&&c&&d,H=tA&&p;return H?M&&!Q?v.createElement(es,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:y}):null:v.createElement("div",{style:{paddingBottom:4}},v.createElement("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},id:"rbgcp-controls-wrapper".concat(D)},v.createElement(pf,{hideColorTypeBtns:p,setGradient:z,isGradient:M,setSolid:Z,locales:t}),!tA&&v.createElement("div",{style:pt({display:N?"none":""},P.rbgcpControlBtnWrapper),id:"rbgcp-control-rightside-wrapper".concat(D)},!a&&v.createElement(gf,{onSelect:O}),!o&&v.createElement("div",{id:"rbgcp-advanced-btn".concat(D),onClick:function(){return _(!S)},style:ut(S,P)},v.createElement(Il,{color:S?"#568CF5":""})),!c&&v.createElement("div",{style:ut(AA,P),onClick:function(){return fA(!AA)},id:"rbgcp-comparibles-btn".concat(D)},v.createElement(Sl,{color:AA?"#568CF5":""})),!d&&v.createElement("div",{id:"rbgcp-color-model-btn".concat(D),onClick:function(){return cA(!q)},style:ut(q,P)},v.createElement(Hl,{color:q?"#568CF5":""}),v.createElement(Cf,{openInputType:q,setOpenInputType:cA})))),!o&&v.createElement(uf,{openAdvanced:S}),!c&&v.createElement(Bf,{openComparibles:AA}),M&&!Q&&v.createElement(es,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:y}))},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)},ts=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))},mf=function(e){var A=e.left,r=e.i,t=e.setDragging,n=dA(),a=n.colors,i=n.squareWidth,o=n.selectedColor,l=n.defaultStyles,c=n.pickerIdSuffix,g=n.createGradientStr,d=o===r,u=(i-18)/100,p=function(Q){var x=a?.map(function(U,F){return Ae(Ae({},U),{value:F===Q?Qr(U):mt(U)})});g(x)},m=function(Q){Q.stopPropagation(),p(r),t(!0)};return v.createElement("div",{onMouseDown:function(Q){return m(Q)},id:"rbgcp-gradient-handle-".concat(r).concat(c),style:Ae(Ae({},l.rbgcpGradientHandleWrap),{left:(A??0)*u})},v.createElement("div",{style:Ae(Ae({},l.rbgcpGradientHandle),d?{boxShadow:"0px 0px 5px 1px rgba(86, 140, 245,.95)",border:"2px solid white"}:{}),id:"rbgcp-gradient-handle-".concat(r,"-dot").concat(c)},d&&v.createElement("div",{style:{width:5,height:5,borderRadius:"50%",background:"white"},id:"rbgcp-gradient-handle-".concat(r,"-selected-dot").concat(c)})))},vf=function(){var e=dA(),A=e.value,r=e.colors,t=e.config,n=e.squareWidth,a=e.currentColor,i=e.handleGradient,o=e.pickerIdSuffix,l=e.createGradientStr,c=t.barSize,g=b.useState(!1),d=g[0],u=g[1];function p(L){return L.replace(/(radial|linear)-gradient\([^,]+,/,"linear-gradient(90deg,")}var m=function(L){var k,y=Ge(L,c),w=(k=ts(ts([],r.map(function(I){return Ae(Ae({},I),{value:mt(I)})}),!0),[{value:a,left:y}],!1))===null||k===void 0?void 0:k.sort(function(I,K){return I.left-K.left});l(w)},Q=function(){u(!1)},x=function(L){d||(m(L),u(!0))},U=function(L){d&&i(a,Ge(L,c))},F=function(){Q()};return b.useEffect(function(){return window.addEventListener("mouseup",F),function(){window.removeEventListener("mouseup",F)}}),v.createElement("div",{style:{width:"100%",marginTop:17,marginBottom:4,position:"relative"},id:"rbgcp-gradient-bar".concat(o)},v.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,k){return v.createElement(mf,{i:k,left:L.left,key:"".concat(k,"-").concat(L),setDragging:u})}))},Uf=function(e){var A=e.locales,r=e.presets,t=e.hideHue,n=e.hideInputs,a=e.hidePresets,i=e.hideOpacity,o=e.hideEyeDrop,l=e.hideControls,c=e.hideInputType,g=e.hideColorGuide,d=e.hidePickerSquare,u=e.hideGradientType,p=e.hideGradientStop,m=e.hideGradientAngle,Q=e.hideColorTypeBtns,x=e.hideAdvancedSliders,U=e.hideGradientControls,F=dA(),L=F.isGradient,k=F.pickerIdSuffix;return v.createElement("div",{style:{userSelect:"none"},id:"rbgcp-color-picker".concat(k)},!d&&v.createElement(ml,null),!l&&v.createElement(Qf,{locales:A,hideEyeDrop:o,hideInputType:c,hideColorGuide:g,hideGradientType:u,hideGradientStop:p,hideColorTypeBtns:Q,hideGradientAngle:m,hideAdvancedSliders:x,hideGradientControls:U}),L&&v.createElement(vf,null),!t&&v.createElement(il,null),!i&&v.createElement(vl,null),!n&&v.createElement(hl,null),!a&&v.createElement(bl,{presets:r}))},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)};function Ff(e){var A=e.idSuffix,r=e.value,t=r===void 0?"rgba(175, 51, 242, 1)":r,n=e.onChange,a=e.hideControls,i=a===void 0?!1:a,o=e.hideInputs,l=o===void 0?!1:o,c=e.hideOpacity,g=c===void 0?!1:c,d=e.hidePresets,u=d===void 0?!1:d,p=e.hideHue,m=p===void 0?!1:p,Q=e.presets,x=Q===void 0?[]:Q,U=e.hideEyeDrop,F=U===void 0?!1:U,L=e.hideAdvancedSliders,k=L===void 0?!1:L,y=e.hideColorGuide,w=y===void 0?!1:y,I=e.hideInputType,K=I===void 0?!1:I,M=e.hideColorTypeBtns,O=M===void 0?!1:M,R=e.hideGradientType,P=R===void 0?!1:R,D=e.hideGradientAngle,W=D===void 0?!1:D,$=e.hideGradientStop,eA=$===void 0?!1:$,AA=e.hideGradientControls,fA=AA===void 0?!1:AA,sA=e.locales,q=sA===void 0?Ul:sA,cA=e.width,iA=cA===void 0?294:cA,S=e.height,_=S===void 0?294:S,N=e.style,Y=N===void 0?{}:N,gA=e.className,Z=e.disableDarkMode,z=Z===void 0?!1:Z,tA=e.disableLightMode,H=tA===void 0?!1:tA,X=e.hidePickerSquare,B=X===void 0?!1:X,C=e.showHexAlpha,h=C===void 0?!1:C,E=e.config,T=E===void 0?{}:E,G=qo(t),aA=typeof window>"u"||z?!1:!!(window.matchMedia("(prefers-color-scheme: dark)").matches||H),hA=lf(aA,Y),UA=aA?"-dark".concat(A?"-".concat(A):""):A?"-".concat(A):"";return v.createElement("div",{className:gA,style:Cr(Cr({},hA.body),{width:iA})},v.createElement(tl,{value:G,onChange:n,squareWidth:iA,passedConfig:T,squareHeight:_,isDarkMode:aA,hideOpacity:g,showHexAlpha:h,defaultStyles:hA,pickerIdSuffix:UA},v.createElement(Uf,{hideControls:i,hideInputs:l,hidePresets:u,hideOpacity:g,hideHue:m,presets:x,hideEyeDrop:F,hideAdvancedSliders:k,hideColorGuide:w,hideInputType:K,hideColorTypeBtns:O,hideGradientType:P,hideGradientAngle:W,hideGradientStop:eA,hideGradientControls:fA,hidePickerSquare:B,locales:q})))}const bf=()=>{const[e,A]=b.useState(localStorage.getItem("customBackgroundColour")||"rgba(0, 0, 0, 100)"),r=n=>{A(n),localStorage.setItem("customBackgroundColour",n),vA.emit("refresh","background")},t=()=>{A("rgba(0, 0, 0, 0)"),localStorage.setItem("customBackgroundColour","rgba(0, 0, 0, 100)"),RA(f.getMessage("toasts.reset")),vA.emit("refresh","background")};return s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.source.custom_colour")}),s.jsxs(lA,{children:[s.jsx(Ff,{value:e,onChange:r,hideEyeDrop:!0,hideColorGuide:!0,hidePresets:!0,hideAdvancedSliders:!1,hideColorTypeBtns:!1,hideInputType:!1,height:147}),s.jsx("div",{className:"colourReset",children:s.jsxs("span",{className:"link",onClick:()=>t(),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})})]})]})};var Ef=["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","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],qe=(e,A)=>{var r="";for(let t=1;t<=A;t++){let n=Math.floor(e)/Math.pow(83,A-t)%83;r+=Ef[Math.floor(n)]}return r},nn=e=>{let A=e/255;return A<=.04045?A/12.92:Math.pow((A+.055)/1.055,2.4)},an=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)},yf=e=>e<0?-1:1,sn=(e,A)=>yf(e)*Math.pow(Math.abs(e),A),rs=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},ns=4,xf=(e,A,r,t)=>{let n=0,a=0,i=0,o=A*ns;for(let c=0;c<A;c++){let g=ns*c;for(let d=0;d<r;d++){let u=g+d*o,p=t(c,d);n+=p*nn(e[u]),a+=p*nn(e[u+1]),i+=p*nn(e[u+2])}}let l=1/(A*r);return[n*l,a*l,i*l]},If=e=>{let A=an(e[0]),r=an(e[1]),t=an(e[2]);return(A<<16)+(r<<8)+t},Hf=(e,A)=>{let r=Math.floor(Math.max(0,Math.min(18,Math.floor(sn(e[0]/A,.5)*9+9.5)))),t=Math.floor(Math.max(0,Math.min(18,Math.floor(sn(e[1]/A,.5)*9+9.5)))),n=Math.floor(Math.max(0,Math.min(18,Math.floor(sn(e[2]/A,.5)*9+9.5))));return r*19*19+t*19+n},Sf=(e,A,r,t,n)=>{if(t<1||t>9||n<1||n>9)throw new rs("BlurHash must have between 1 and 9 components");if(A*r*4!==e.length)throw new rs("Width and height must match the pixels array");let a=[];for(let d=0;d<n;d++)for(let u=0;u<t;u++){let p=u==0&&d==0?1:2,m=xf(e,A,r,(Q,x)=>p*Math.cos(Math.PI*u*Q/A)*Math.cos(Math.PI*d*x/r));a.push(m)}let i=a[0],o=a.slice(1),l="",c=t-1+(n-1)*9;l+=qe(c,1);let g;if(o.length>0){let d=Math.max(...o.map(p=>Math.max(...p))),u=Math.floor(Math.max(0,Math.min(82,Math.floor(d*166-.5))));g=(u+1)/166,l+=qe(u,1)}else g=1,l+=qe(0,1);return l+=qe(If(i),4),o.forEach(d=>{l+=qe(Hf(d,g),2)}),l},Lf=Sf;async function on(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 ln(e,A=4,r=3){return new Promise((t,n)=>{const a=new Image;a.onload=()=>{try{const i=document.createElement("canvas"),o=i.getContext("2d"),l=64,c=Math.min(l/a.width,l/a.height);i.width=Math.floor(a.width*c),i.height=Math.floor(a.height*c),o.drawImage(a,0,0,i.width,i.height);const g=o.getImageData(0,0,i.width,i.height),d=Lf(g.data,g.width,g.height,A,r);typeof e!="string"&&URL.revokeObjectURL(a.src),t(d)}catch(i){n(i)}},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 as(e,A){return e&&e.name?e.name:`Image ${A+1}`}function kf(){const e={};return Object.keys(localStorage).forEach(A=>{e[A]=localStorage.getItem(A)}),new TextEncoder().encode(JSON.stringify(e)).length}function Qe(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]}function Mf({modalClose:e,urlError:A,modalCloseOnly:r}){const[t,n]=b.useState();return s.jsxs("div",{className:"smallModal",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.add_url")}),s.jsx(Bn,{title:f.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),children:s.jsx("div",{className:"close",onClick:r,children:s.jsx(er,{})})})]}),s.jsx("input",{type:"text",value:t,onChange:a=>n(a.target.value.replace(/(\r\n|\n|\r)/gm,""))}),s.jsx("span",{className:"dropdown-error",children:A}),s.jsxs("div",{className:"resetFooter",children:[s.jsx(pA,{type:"secondary",onClick:r,icon:s.jsx(er,{}),label:f.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),s.jsx(pA,{type:"settings",onClick:()=>e(t),icon:s.jsx(qi,{}),label:f.getMessage("modals.main.settings.sections.background.source.add_url")})]})]})}const Kf=b.memo(Mf),Tf=({files:e,onConfirm:A,onCancel:r})=>{const[t,n]=b.useState(""),a=()=>{A(t.trim())};return s.jsxs("div",{className:"smallModal",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.tag_images")}),s.jsx("button",{className:"closeModal",onClick:r,children:s.jsx(er,{})})]}),s.jsxs("div",{className:"taggingModalContent",children:[s.jsx("p",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.tag_description",{count:e.length})}),s.jsxs("div",{className:"taggingInput",children:[s.jsx("label",{children:f.getMessage("modals.main.settings.sections.background.source.folder_name")}),s.jsx("input",{type:"text",placeholder:f.getMessage("modals.main.settings.sections.background.source.folder_placeholder"),value:t,onChange:i=>n(i.target.value),onKeyPress:i=>{i.key==="Enter"&&a()},autoFocus:!0})]})]}),s.jsxs("div",{className:"resetFooter",children:[s.jsx(pA,{type:"settings",onClick:r,label:f.getMessage("modals.main.settings.buttons.cancel")}),s.jsx(pA,{type:"settings",onClick:a,label:f.getMessage("modals.main.settings.buttons.continue")})]})]})},ki=b.memo(()=>{const[e,A]=b.useState([]),[r,t]=b.useState(!1),[n,a]=b.useState(!1),[i,o]=b.useState([]),[l,c]=b.useState(""),[g,d]=b.useState(!0),[u,p]=b.useState(!1),[m,Q]=b.useState({current:0,total:0}),[x,U]=b.useState(!1),[F,L]=b.useState(new Set),[k,y]=b.useState(localStorage.getItem("customImageSort")||"date_desc"),[w,I]=b.useState(!1),[K,M]=b.useState({usage:0,quota:0}),O=b.useRef(null),R=b.useRef(0),P=5e7;b.useEffect(()=>{(async()=>{if(navigator.storage&&navigator.storage.estimate)try{const X=await navigator.storage.estimate();M({usage:X.usage||0,quota:X.quota||P})}catch(X){console.warn("Could not get storage estimate:",X),M({usage:0,quota:P})}else M({usage:0,quota:P})})()},[e]),b.useEffect(()=>{(async()=>{try{await ao();const X=await xe();A(X),X.forEach(async B=>{if(!B.dimensions&&B.url&&!bt(B.url))try{const C=await on(B.url),h=await ln(B.url);await so(B.id,{dimensions:C,blurHash:h});const E=await xe();A(E)}catch(C){console.warn("Could not extract metadata for existing image:",C)}})}catch(X){console.error("Error loading backgrounds:",X),RA(f.getMessage("toasts.error"))}finally{d(!1)}})()},[]);const D=b.useCallback(async(H,X,B,C=!1)=>{try{const h={url:X,name:B.name,uploadDate:Date.now(),dimensions:B.dimensions,fileSize:B.fileSize,folder:B.folder||"",blurHash:B.blurHash};await Lr(h);const E=await xe();A(E);try{localStorage.setItem("customBackground",JSON.stringify(E.map(T=>T.url)))}catch{console.warn("localStorage quota exceeded, storing count only"),localStorage.setItem("customBackgroundCount",E.length.toString())}C||vA.emit("refresh","background")}catch(h){console.error("Error saving background:",h),RA(f.getMessage("toasts.error"))}},[]),W=async(H,X="")=>{const B=e.reduce((h,E)=>E.url&&E.url.startsWith("data:")?h+cn(E.url):h,0),C=K.quota||P;if(B/C>.9&&navigator.storage&&navigator.storage.persist)try{await navigator.storage.persist()&&console.log("Storage persistence granted")}catch(h){console.warn("Could not request storage persistence:",h)}if(bt(H.type)){if(B+H.size>C)throw new Error("no_storage");const h=new FileReader;return new Promise((E,T)=>{h.onloadend=()=>{E({dataUrl:h.result,metadata:{name:as(H,e.length),dimensions:null,fileSize:H.size,folder:X,blurHash:null}})},h.onerror=T,h.readAsDataURL(H)})}else{const h=await qn.compressAccurately(H,{size:450,accuracy:.9}),E=K.quota||P;if(B+h.size>E)throw new Error("no_storage");const T=await qn.filetoDataURL(h),[G,aA]=await Promise.all([on(T),ln(T).catch(()=>null)]);return{dataUrl:T,metadata:{name:as(H,e.length),dimensions:G,fileSize:cn(T),folder:X,blurHash:aA}}}},$=async(H,X="")=>{p(!0),Q({current:0,total:H.length});const B=[];for(let C=0;C<H.length;C++)try{const h=await W(H[C],X);await D(H[C],h.dataUrl,h.metadata,!0),Q({current:C+1,total:H.length})}catch(h){if(h.message==="no_storage"){RA(f.getMessage("toasts.no_storage"));break}B.push(H[C].name)}B.length>0&&RA(f.getMessage("toasts.error")+`: ${B.join(", ")}`),vA.emit("refresh","background"),p(!1),Q({current:0,total:0})},eA=async H=>{a(!1),await $(i,H),o([])},AA=b.useCallback(async(H,X)=>{try{H==="add"?await Lr(""):await zi(X);const B=await xe();A(B);try{localStorage.setItem("customBackground",JSON.stringify(B.map(C=>C.url)))}catch{console.warn("localStorage quota exceeded, storing count only"),localStorage.setItem("customBackgroundCount",B.length.toString())}vA.emit("refresh","background")}catch(B){console.error("Error modifying background:",B),RA(f.getMessage("toasts.error"))}},[]),fA=async()=>{if(F.size!==0)try{const H=Array.from(F).sort((B,C)=>C-B);await io(H);const X=await xe();A(X),L(new Set);try{localStorage.setItem("customBackground",JSON.stringify(X.map(B=>B.url)))}catch{localStorage.setItem("customBackgroundCount",X.length.toString())}vA.emit("refresh","background"),RA(f.getMessage("toasts.deleted"))}catch(H){console.error("Error batch deleting:",H),RA(f.getMessage("toasts.error"))}},sA=H=>{const X=new Set(F);X.has(H)?X.delete(H):X.add(H),L(X)},q=H=>{y(H),localStorage.setItem("customImageSort",H)},cA=b.useCallback(()=>{document.getElementById("bg-input").click()},[]),iA=b.useCallback(async H=>{if(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(H)===!1)return c(f.getMessage("widgets.quicklinks.url_error"));t(!1);try{const B=H.split("/"),C=B[B.length-1].split("?")[0]||"Remote Image";let h=null,E=null;try{h=await on(H),E=await ln(H)}catch(aA){console.warn("Could not extract metadata from remote image:",aA)}const T={url:H,name:C,uploadDate:Date.now(),dimensions:h,fileSize:null,folder:"",blurHash:E};await Lr(T);const G=await xe();A(G)}catch(B){console.error("Error adding URL:",B),RA(f.getMessage("toasts.error"))}try{localStorage.setItem("customBackground",JSON.stringify(updatedBackgrounds.map(B=>B.url)))}catch{localStorage.setItem("customBackgroundCount",updatedBackgrounds.length.toString())}vA.emit("refresh","background")},[e.length]),S=async H=>{H.length>1?(o(H),a(!0)):await $(H,"")},_=[...e].sort((H,X)=>{switch(k){case"date_asc":return H.uploadDate-X.uploadDate;case"date_desc":return X.uploadDate-H.uploadDate;case"name_asc":return(H.name||"").localeCompare(X.name||"");case"name_desc":return(X.name||"").localeCompare(H.name||"");case"size_asc":return(H.fileSize||0)-(X.fileSize||0);case"size_desc":return(X.fileSize||0)-(H.fileSize||0);default:return 0}}),N=e.reduce((H,X)=>X.url&&X.url.startsWith("data:")?H+cn(X.url):H,0),Y=K.quota||P,gA=N/Y*100,Z=kf(),z=5242880;b.useEffect(()=>{const H=O.current;if(!H)return;const X=E=>{E.preventDefault(),E.stopPropagation()},B=E=>{E.preventDefault(),E.stopPropagation(),R.current++,E.dataTransfer.items&&E.dataTransfer.items.length>0&&U(!0)},C=E=>{E.preventDefault(),E.stopPropagation(),R.current--,R.current===0&&U(!1)},h=async E=>{E.preventDefault(),E.stopPropagation(),U(!1),R.current=0;const T=Array.from(E.dataTransfer.files);T.length!==0&&(T.length>1?(o(T),a(!0)):await $(T,""))};return H.ondragover=X,H.ondragenter=B,H.ondragleave=C,H.ondrop=h,()=>{H&&(H.ondragover=null,H.ondragenter=null,H.ondragleave=null,H.ondrop=null)}},[e.length,$]);const tA=_.filter(H=>H&&bt(H.url)).length>0;return g?s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"loaderHolder",children:[s.jsx("div",{id:"loader"}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.loading")})]})}):u?s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"loaderHolder",children:[s.jsx("div",{id:"loader"}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.uploading",{current:m.current,total:m.total})}),s.jsxs("span",{className:"subtitle",children:[Math.round(m.current/m.total*100),"%"]})]})}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:`dropzone ${x?"dragging":""}`,ref:O,style:x?{outline:"2px dashed #ff5c25",outlineOffset:"-2px",backgroundColor:"rgba(255, 92, 37, 0.1)",transition:"all 0.2s ease"}:{},children:[s.jsxs("div",{className:"imagesTopBar",children:[s.jsxs("div",{className:"imagesTopBarTitle",children:[s.jsx(Zn,{}),s.jsxs("div",{children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.custom_title")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.custom_description")})]})]}),s.jsx("div",{className:"topbarbuttons",children:s.jsx(pA,{type:"settings",onClick:cA,icon:s.jsx($i,{}),label:f.getMessage("modals.main.settings.sections.background.source.upload")})})]}),s.jsxs("div",{className:"imagesControlBar",children:[s.jsxs("div",{className:"controlBarLeft",children:[s.jsxs("span",{className:"image-count",children:[e.length," ",e.length===1?"image":"images",s.jsxs("span",{className:"storage-info",children:[" ","· ",Qe(N)," / ",Qe(Y),gA>80&&navigator.storage&&navigator.storage.persist&&s.jsx(Bn,{title:"Request persistent storage to prevent browser from automatically clearing your images",children:s.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(H){console.error("Storage request error:",H),RA("Could not request persistent storage")}},children:"Protect images"})})]})]}),s.jsx("span",{className:"selection-separator",children:"·"}),F.size>0?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"selected-count",children:[F.size," selected"]}),s.jsx("button",{className:"delete-link",onClick:fA,children:"Delete"}),F.size<e.length&&s.jsx("button",{className:"select-all-link",onClick:()=>{const H=new Set(e.map((X,B)=>B));L(H)},children:"Select all"}),F.size===e.length&&s.jsx("button",{className:"select-all-link",onClick:()=>L(new Set),children:"Deselect all"})]}):e.length>0&&s.jsx("button",{className:"select-all-link",onClick:()=>{const H=new Set(e.map((X,B)=>B));L(H)},children:"Select all"})]}),s.jsx("div",{className:"controlBarRight",children:s.jsx(KA,{name:"customImageSort",category:"customImageSort",onChange:q,items:[{value:"date_desc",text:f.getMessage("modals.main.settings.sections.background.source.sort.date_newest")},{value:"date_asc",text:f.getMessage("modals.main.settings.sections.background.source.sort.date_oldest")},{value:"name_asc",text:f.getMessage("modals.main.settings.sections.background.source.sort.name_asc")},{value:"name_desc",text:f.getMessage("modals.main.settings.sections.background.source.sort.name_desc")},{value:"size_asc",text:f.getMessage("modals.main.settings.sections.background.source.sort.size_small")},{value:"size_desc",text:f.getMessage("modals.main.settings.sections.background.source.sort.size_large")}]})})]}),s.jsx("div",{className:"dropzone-content",children:_.length>0?s.jsx("div",{className:`images-grid ${F.size>0?"selection-mode":""}`,children:_.map((H,X)=>{const B=e.findIndex(h=>h===H),C=H&&bt(H.url);return s.jsxs("div",{className:"image-card",onClick:h=>{h.target.closest(".image-nav-buttons")||sA(B)},children:[s.jsx("div",{className:"image-checkbox",children:s.jsx("input",{type:"checkbox",checked:F.has(B),onChange:()=>sA(B)})}),s.jsxs("div",{className:"image-preview",children:[H.blurHash&&!C&&(()=>{const h=Ao(H.blurHash,32,32);return h?s.jsx("div",{className:"blur-placeholder",style:{backgroundImage:`url(${h})`,filter:"blur(20px)",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0}}):null})(),C?s.jsx("div",{className:"video-icon-wrapper",children:s.jsx(eo,{className:"customvideoicon"})}):s.jsx("img",{alt:H.name||"Custom background",src:H.url,loading:"lazy",style:{position:"relative",zIndex:1}}),s.jsxs("div",{className:"image-nav-buttons",children:[s.jsx("button",{className:"nav-button nav-prev",onClick:()=>{if(X>0){const h=_[X-1];vA.emit("refresh","background",h.url)}},disabled:X===0,children:s.jsx(to,{})}),s.jsx("button",{className:"nav-button nav-next",onClick:()=>{if(X<_.length-1){const h=_[X+1];vA.emit("refresh","background",h.url)}},disabled:X===_.length-1,children:s.jsx(ro,{})})]})]}),s.jsxs("div",{className:"image-metadata",children:[s.jsx("span",{className:"image-name",title:H.name,children:H.name||"Unnamed"}),s.jsxs("div",{className:"image-details",children:[H.dimensions&&s.jsxs("span",{className:"detail",children:[H.dimensions.width," × ",H.dimensions.height]}),H.fileSize&&s.jsx("span",{className:"detail",children:Qe(H.fileSize)}),H.folder&&s.jsx("span",{className:"detail folder-tag",children:H.folder})]})]}),s.jsx(Bn,{title:f.getMessage("modals.main.settings.sections.background.source.remove"),children:s.jsx("button",{className:"delete-button",onClick:()=>AA("remove",B),children:s.jsx(Bt,{})})})]},B)})}):s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Zn,{}),s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.drop_to_upload")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.formats",{list:"jpeg, png, webp, webm, gif, mp4, webm, ogg"})}),s.jsx(pA,{type:"settings",onClick:cA,icon:s.jsx(no,{}),label:f.getMessage("modals.main.settings.sections.background.source.select")})]})})})]}),s.jsx(Es,{id:"bg-input",accept:"image/jpeg, image/png, image/webp, image/webm, image/gif, video/mp4, video/webm, video/ogg",multiple:!0,loadFunction:async H=>{await S(H)}}),tA&&s.jsxs(s.Fragment,{children:[s.jsx(mA,{name:"backgroundVideoLoop",text:f.getMessage("modals.main.settings.sections.background.source.loop_video")}),s.jsx(mA,{name:"backgroundVideoMute",text:f.getMessage("modals.main.settings.sections.background.source.mute_video")})]}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>t(!1),isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(Kf,{modalClose:iA,urlError:l,modalCloseOnly:()=>t(!1)})}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>{a(!1),o([])},isOpen:n,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(Tf,{files:i,onConfirm:eA,onCancel:()=>{a(!1),o([])}})}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>I(!1),isOpen:w,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsxs("div",{className:"smallModal",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.storage_info")}),s.jsx("button",{className:"closeModal",onClick:()=>I(!1),children:s.jsx(Bt,{})})]}),s.jsxs("div",{style:{padding:"20px"},children:[s.jsx("p",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.storage_description")}),s.jsxs("div",{style:{marginTop:"20px"},children:[s.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Custom Backgrounds"}),s.jsxs("p",{className:"subtitle",children:[Qe(N)," / ",Qe(Y)," (",Math.round(gA),"%)"]})]}),s.jsxs("div",{style:{marginTop:"15px"},children:[s.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Total localStorage Usage"}),s.jsxs("p",{className:"subtitle",children:[Qe(Z)," / ",Qe(z)," (",Math.round(Z/z*100),"%)"]}),s.jsx("p",{className:"subtitle",style:{marginTop:"8px",fontSize:"12px",opacity:.7},children:"Includes all Mue settings and custom images"})]})]}),s.jsx("div",{className:"resetFooter",children:s.jsx(pA,{type:"settings",onClick:()=>I(!1),label:f.getMessage("modals.main.settings.buttons.close")})})]})})]})});ki.displayName="CustomSettings";const Df=({usingImage:e})=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.display"),subtitle:f.getMessage("modals.main.settings.sections.background.display_subtitle")}),s.jsxs(lA,{children:[s.jsx(mA,{name:"bgtransition",text:f.getMessage("modals.main.settings.sections.background.transition"),element:".other",disabled:!e}),s.jsx(mA,{name:"photoInformation",text:f.getMessage("modals.main.settings.sections.background.photo_information"),element:".other"}),s.jsx(mA,{name:"photoMap",text:f.getMessage("modals.main.settings.sections.background.show_map"),element:".other",disabled:!e})]})]});f.getMessage("modals.main.settings.sections.background.source.quality.original"),f.getMessage("modals.main.settings.sections.background.source.quality.high"),f.getMessage("modals.main.settings.sections.background.source.quality.normal"),f.getMessage("modals.main.settings.sections.background.source.quality.datasaver");const Of=[{value:"none",text:f.getMessage("modals.main.settings.sections.appearance.navbar.refresh_options.none")},{value:"grayscale",text:f.getMessage("modals.main.settings.sections.background.effects.filters.grayscale")},{value:"sepia",text:f.getMessage("modals.main.settings.sections.background.effects.filters.sepia")},{value:"invert",text:f.getMessage("modals.main.settings.sections.background.effects.filters.invert")},{value:"saturate",text:f.getMessage("modals.main.settings.sections.background.effects.filters.saturate")},{value:"contrast",text:f.getMessage("modals.main.settings.sections.background.effects.filters.contrast")}];function Mi(){return[{value:"api",text:f.getMessage("wb.settings_bundled_photos")},{value:"custom",text:f.getMessage("modals.main.settings.sections.background.type.custom_image")},{value:"colour",text:f.getMessage("modals.main.settings.sections.background.type.custom_colour")},{value:"random_colour",text:f.getMessage("modals.main.settings.sections.background.type.random_colour")},{value:"random_gradient",text:f.getMessage("modals.main.settings.sections.background.type.random_gradient")}]}const Rf=({backgroundFilter:e,onFilterChange:A})=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:f.getMessage("modals.main.settings.sections.background.effects.subtitle")}),s.jsxs(lA,{children:[s.jsx(at,{title:f.getMessage("modals.main.settings.sections.background.effects.blur"),name:"blur",min:"0",max:"100",default:"0",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage"}),s.jsx(at,{title:f.getMessage("modals.main.settings.sections.background.effects.brightness"),name:"brightness",min:"0",max:"100",default:"100",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage"}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.background.effects.filters.title"),name:"backgroundFilter",onChange:A,category:"backgroundeffect",element:"#backgroundImage",items:Of}),e!=="none"&&s.jsx(at,{title:f.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"})]})]}),Nf=({backgroundType:e,onTypeChange:A})=>s.jsxs(rA,{final:e==="random_colour"||e==="random_gradient",children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.source.title"),subtitle:f.getMessage("modals.main.settings.sections.background.source.subtitle")}),s.jsx(lA,{children:s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:A,category:"background",items:Mi()})})]}),ss=({icon:e,title:A,subtitle:r,onClick:t,action:n})=>s.jsxs("div",{className:"moreSettings",onClick:t,children:[s.jsxs("div",{className:"left",children:[s.jsx(e,{}),s.jsxs("div",{className:"content",children:[s.jsx("span",{className:"title",children:A}),s.jsx("span",{className:"subtitle",children:r})]})]}),s.jsx("div",{className:"action",children:n||s.jsx(os,{})})]}),Ki=b.memo(({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(localStorage.getItem("backgroundType")||"api"),[a,i]=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 s.jsx(ki,{});case"colour":return s.jsx(bf,{});default:return null}},c=t!=="colour"&&t!=="random_colour"&&t!=="random_gradient",g=t==="api"||t==="custom",d=()=>e==="effects"?s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:f.getMessage("modals.main.settings.sections.background.effects.title"),goBack:()=>A(null,r)}):e==="source"?s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:f.getMessage("modals.main.settings.sections.background.source.title"),goBack:()=>A(null,r)}):s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.background.title"),setting:"background",category:"background",element:"#backgroundImage"});return s.jsxs(s.Fragment,{children:[d(),!e&&s.jsxs(s.Fragment,{children:[s.jsx(ss,{icon:oo,title:f.getMessage("modals.main.settings.sections.background.source.title"),subtitle:f.getMessage("modals.main.settings.sections.background.source.subtitle"),onClick:()=>A("source",r),action:s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:u=>{n(u),u==="custom"&&vA.emit("refresh","background")},category:"background",items:Mi()})}),g&&s.jsx(ss,{icon:lo,title:f.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:f.getMessage("modals.main.settings.sections.background.effects.subtitle"),onClick:()=>A("effects",r)})]}),!e&&g&&s.jsx(Df,{usingImage:c}),e==="source"&&s.jsxs(s.Fragment,{children:[s.jsx(Nf,{backgroundType:t,onTypeChange:n}),l()]}),g&&e==="effects"&&s.jsx(Rf,{backgroundFilter:a,onFilterChange:u=>i(u)})]})});Ki.displayName="BackgroundOptions";function _f(){const e=[{value:"ask",text:f.getMessage("wb.ask")},{value:"act",text:f.getMessage("wb.act")},...co()?[{value:"search",text:f.getMessage("wb.search")}]:[]];return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage("wb.settings_taskbox"),setting:"taskBox",category:"widgets"}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("wb.settings_default_mode"),subtitle:f.getMessage("wb.settings_taskbox_sub")}),s.jsx(lA,{children:s.jsx(KA,{name:"taskBoxMode",category:"widgets",items:e})})]}),s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("wb.settings_recent")}),s.jsx(lA,{children:s.jsx(us,{name:"recentChats",element:".other"})})]})]})}const Gf=["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 jf({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const[t,n]=b.useState(!1),a="modals.main.settings.sections.advanced",i=()=>localStorage.getItem("welcomePreview")!=="true"?s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.data"),subtitle:f.getMessage("modals.main.settings.sections.advanced.data_description")}),s.jsxs("div",{className:"resetDataButtonsLayout",children:[s.jsx(pA,{onClick:()=>n(!0),icon:s.jsx(Bo,{}),label:f.getMessage("modals.main.settings.buttons.reset")}),s.jsx(pA,{onClick:()=>mo(),icon:s.jsx(fo,{}),label:f.getMessage("modals.main.settings.buttons.export")}),s.jsx(pA,{onClick:()=>document.getElementById("file-input").click(),icon:s.jsx(ho,{}),label:f.getMessage("modals.main.settings.buttons.import")})]}),s.jsx(Es,{id:"file-input",accept:"application/json",type:"settings",loadFunction:c=>vo(c)})]}):s.jsx("div",{className:"emptyItems",children:s.jsx("div",{className:"emptyMessage",children:s.jsxs("div",{className:"loaderHolder",children:[s.jsx(wo,{}),s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.title")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.description")})]})})}),o=e==="data";let l;return o?l=s.jsx(TA,{title:f.getMessage(`${a}.title`),secondaryTitle:f.getMessage(`${a}.data`),goBack:()=>A(null,r),report:!1}):l=s.jsx(TA,{title:f.getMessage(`${a}.title`),report:!1}),s.jsxs(s.Fragment,{children:[l,o?s.jsxs(s.Fragment,{children:[s.jsx(i,{}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>n(!1),isOpen:t,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(go,{modalClose:()=>n(!1)})})]}):s.jsxs(s.Fragment,{children:[s.jsx(Rn,{title:f.getMessage(`${a}.data`),subtitle:f.getMessage(`${a}.data_subtitle`),onClick:()=>A("data",r),icon:s.jsx(uo,{})}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.timezone.title"),subtitle:f.getMessage("modals.main.settings.sections.advanced.timezone.subtitle")}),s.jsx(lA,{children:s.jsx(KA,{name:"timezone",category:"timezone",items:[{value:"auto",text:f.getMessage("modals.main.settings.sections.advanced.timezone.automatic")},...Gf.map(c=>({value:c,text:c}))]})})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.tab_name"),subtitle:f.getMessage("modals.main.settings.sections.advanced.tab_name_subtitle")}),s.jsx(lA,{children:s.jsx(rr,{name:"tabName",default:f.getMessage("tabname"),category:"other"})})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.custom_css"),subtitle:f.getMessage("modals.main.settings.sections.advanced.custom_css_subtitle")}),s.jsx(lA,{children:s.jsx(rr,{name:"customcss",textarea:!0,category:"other",customcss:!0})})]})]})]})}function Vf({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const t=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.theme.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.theme.description")}),s.jsx(lA,{children:s.jsx(un,{name:"theme",options:[{name:f.getMessage("modals.main.settings.sections.appearance.theme.auto"),value:"auto"},{name:f.getMessage("modals.main.settings.sections.appearance.theme.light"),value:"light"},{name:f.getMessage("modals.main.settings.sections.appearance.theme.dark"),value:"dark"}],category:"other"})})]}),n=()=>{const c="modals.main.settings.sections.appearance.font.weight";return s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.font.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.font.description")}),s.jsxs(lA,{children:[s.jsx(rr,{title:f.getMessage("modals.main.settings.sections.appearance.font.custom"),name:"font",upperCaseFirst:!0,category:"other"}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.appearance.font.weight.title"),name:"fontweight",category:"other",items:[{value:"100",text:f.getMessage(c+".thin")},{value:"200",text:f.getMessage(c+".extra_light")},{value:"300",text:f.getMessage(c+".light")},{value:"400",text:f.getMessage(c+".normal")},{value:"500",text:f.getMessage(c+".medium")},{value:"600",text:f.getMessage(c+".semi_bold")},{value:"700",text:f.getMessage(c+".bold")},{value:"800",text:f.getMessage(c+".extra_bold")}]}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.appearance.font.style.title"),name:"fontstyle",category:"other",items:[{value:"normal",text:f.getMessage("modals.main.settings.sections.appearance.font.style.normal")},{value:"italic",text:f.getMessage("modals.main.settings.sections.appearance.font.style.italic")},{value:"oblique",text:f.getMessage("modals.main.settings.sections.appearance.font.style.oblique")}]})]})]})},a=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.style.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.style.description")}),s.jsx(lA,{children:s.jsx(un,{name:"widgetStyle",element:".other",options:[{name:f.getMessage("modals.main.settings.sections.appearance.style.legacy"),value:"legacy"},{name:f.getMessage("modals.main.settings.sections.appearance.style.new"),value:"new"}],category:"widgets"})})]}),i=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.accessibility.description")}),s.jsxs(lA,{children:[s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.title"),name:"textBorder",category:"other",items:[{value:"new",text:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.new")},{value:"true",text:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.old")},{value:"none",text:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.none")}]}),s.jsx(mA,{text:f.getMessage("modals.main.settings.sections.appearance.accessibility.animations"),name:"animations",category:"other"}),s.jsx(at,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.toast_duration"),name:"toastDisplayTime",default:"2500",step:"100",min:"500",max:"5000",marks:st.toast,display:" "+f.getMessage("modals.main.settings.sections.appearance.accessibility.milliseconds")})]})]}),o=e==="accessibility";let l;return o?l=s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.appearance.title"),secondaryTitle:f.getMessage("modals.main.settings.sections.appearance.accessibility.title"),goBack:()=>A(null,r),report:!1}):l=s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.appearance.title"),report:!1}),s.jsxs(s.Fragment,{children:[l,o?s.jsx(i,{}):s.jsxs(s.Fragment,{children:[s.jsx(Rn,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.accessibility.description"),icon:s.jsx(po,{}),onClick:()=>A("accessibility",r)}),s.jsx(t,{}),s.jsx(n,{}),s.jsx(a,{})]})]})}const Pf=b.memo(Vf),Xf=`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 Jf(){const e=Object.keys(Co),{MUE_REPO_URL:A,MUE_VERSION:r,REPO_URL:t,WEBSITE_URL:n}=f.constants;return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage("wb.settings_credits")}),s.jsx(rA,{children:s.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."})}),s.jsx(rA,{children:s.jsx(nA,{title:`Based on Mue ${r}`,subtitle:s.jsxs(s.Fragment,{children:["Derived from ",s.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."]})})}),s.jsx(rA,{children:s.jsx(nA,{title:f.getMessage("wb.settings_bundled_photos"),subtitle:`${e.join(", ")}. Offline images shipped with Mue (Unsplash, Pexels and Pixabay).`})}),s.jsx(rA,{children:s.jsx(nA,{title:"Fonts and icons",subtitle:"Inter, Lexend Deca and Montserrat (SIL Open Font License); Material Design icons via react-icons."})}),s.jsx(rA,{final:!0,children:s.jsx(nA,{title:"Mue license",subtitle:s.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:"0.75rem"},children:Xf})})}),s.jsxs("p",{style:{opacity:.7,fontSize:"0.85rem"},children:[s.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:n.replace("https://","")})," · ",s.jsx("a",{href:t,target:"_blank",rel:"noreferrer",children:"GitHub"})]})]})}function Wf(){return s.jsx("span",{className:"greeting preview",children:"Good Morning"})}const Yf=b.memo(Wf),Zf=b.lazy(()=>Qo(()=>import("./index-BXa4CzFe.js"),__vite__mapDeps([0,1,2]),import.meta.url));function qf(){return localStorage.getItem("timeType")==="analogue"?s.jsx(b.Suspense,{fallback:s.jsx(s.Fragment,{}),children:s.jsx("div",{className:"clockBackground",children:s.jsx(Zf,{className:"analogclock clock-container",value:"2022-10-07T17:00:00+00:00",size:50})})}):localStorage.getItem("timeType")==="percentageComplete"?s.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"68%"}):localStorage.getItem("timeType")==="verticalClock"?s.jsxs("span",{className:"vertical-clock clock-container",style:{fontSize:"30px"},children:[s.jsx("div",{className:"hour",children:"10"}),s.jsx("div",{className:"minute",children:"23"})]}):s.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"10:24"})}const zf=b.memo(qf);function $f(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 Ah(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 eh(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 th(){return s.jsx("div",{className:"quickLinksSkeleton",children:s.jsxs("div",{className:"circles",children:[s.jsx("div",{children:s.jsx($f,{})}),s.jsx("div",{children:s.jsx(Ah,{})}),s.jsx("div",{children:s.jsx(eh,{})})]})})}const rh=b.memo(th);function nh(){return s.jsx("span",{className:"date",children:"Thursday January 1st"})}const ah=b.memo(nh);function sh(){return s.jsx("h2",{className:"message",children:s.jsxs("span",{children:["Message",s.jsx("br",{})]})})}const ih=b.memo(sh),oh={greeting:f.getMessage("modals.main.settings.sections.greeting.title"),time:f.getMessage("modals.main.settings.sections.time.title"),quicklinks:f.getMessage("modals.main.settings.sections.quicklinks.title"),date:f.getMessage("modals.main.settings.sections.date.title"),message:f.getMessage("modals.main.settings.sections.message.title")},lh=({id:e})=>{const{attributes:A,listeners:r,setNodeRef:t,transform:n,transition:a}=ds({id:e}),i={transform:fs.Transform.toString(n),transition:a};return s.jsxs("li",{ref:t,style:i,...A,...r,className:"sortableItem",children:[oh[e],s.jsx(Bs,{})]})},ch=()=>{const[e,A]=b.useState(()=>JSON.parse(localStorage.getItem("order"))||["greeting","time","quicklinks","date","message"]),r=hs(nr(Cs),nr(ps,{coordinateGetter:ws})),t=i=>{const{active:o,over:l}=i;o.id!==l.id&&A(c=>{const g=c.indexOf(o.id),d=c.indexOf(l.id);return Fs(c,g,d)})},n=i=>i==="quicklinks"?localStorage.getItem("quicklinksenabled")==="true":localStorage.getItem(i)==="true",a=i=>{switch(i){case"greeting":return s.jsx(Yf,{});case"time":return s.jsx(zf,{});case"quicklinks":return s.jsx(rh,{});case"date":return s.jsx(ah,{});case"message":return s.jsx(ih,{});default:return null}};return b.useEffect(()=>{localStorage.setItem("order",JSON.stringify(e)),f.stats.postEvent("setting","Widget order"),vA.emit("refresh","widgets")},[e]),s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"mainTitle",children:f.getMessage("modals.main.marketplace.product.overview")}),s.jsxs("div",{className:"overviewGrid",children:[s.jsxs("div",{children:[s.jsx("span",{className:"title",children:f.getMessage("modals.welcome.buttons.preview")}),s.jsx("div",{className:"tabPreview",children:s.jsx("div",{className:"previewItem",style:{maxWidth:"50%"},children:e.map((i,o)=>n(i)?s.jsx("div",{className:"previewItem",children:a(i)},`item-${i}`):null)})})]}),s.jsxs("div",{children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.order.title")}),s.jsx(Qs,{sensors:r,collisionDetection:ms,onDragEnd:t,children:s.jsx(vs,{items:e,strategy:Us,children:s.jsx("ul",{className:"sortableContainer",children:e.map(i=>n(i)?s.jsx(lh,{id:i},i):null)})})})]})]})]})},is=[{label:"modals.main.marketplace.product.overview",name:"order",component:ch},{label:"modals.main.settings.sections.appearance.navbar.title",name:"navbar",component:Mo},{label:"modals.main.settings.sections.greeting.title",name:"greeting",component:Ko},{label:"modals.main.settings.sections.time.title",name:"time",component:To},{label:"modals.main.settings.sections.quicklinks.title",name:"quicklinks",component:_o},{label:"modals.main.settings.sections.date.title",name:"date",component:Do},{label:"modals.main.settings.sections.message.title",name:"message",component:Go},{label:"modals.main.settings.sections.background.title",name:"background",component:Ki},{label:"wb.settings_taskbox",name:"taskbox",component:_f},{label:"modals.main.settings.sections.appearance.title",name:"appearance",component:Pf},{label:"modals.main.settings.sections.advanced.title",name:"advanced",component:jf},{label:"wb.settings_credits",name:"credits",component:Jf}];function gh(e){const A=Ct(),r=b.useMemo(()=>is.map(t=>({...t,translatedLabel:A(t.label)})),[A]);return s.jsx(Ho,{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:is,children:r.map(({label:t,name:n,component:a,translatedLabel:i})=>s.jsx("div",{label:i,name:n,children:s.jsx(a,{currentSubSection:e.currentSubSection,onSubSectionChange:e.onSubSectionChange,sectionName:n})},n))})}const Bh=b.memo(gh);export{Bh as default};diff --git a/src/firefox/newtab/assets/index-C08TLPUo.js b/src/chrome/newtab/assets/index-BXa4CzFe.jssimilarity index 99%rename from src/firefox/newtab/assets/index-C08TLPUo.jsrename to src/chrome/newtab/assets/index-BXa4CzFe.jsindex a96408c19..f64936e8e 100644--- a/src/firefox/newtab/assets/index-C08TLPUo.js+++ b/src/chrome/newtab/assets/index-BXa4CzFe.js@@ -1,2 +1,2 @@-import{j as m,r as K,az as de}from"./index-DDjvabsM.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=K.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=K.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,r as K,az as de}from"./index-epcgRnvP.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=K.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=K.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 R(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 J(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(J(h))}var p=navigator.language,b=p&&J(p);c=c.concat(l,b)}return r&&c.push(i),c.filter(Me).map(O).filter(Se)}var xe=R(Oe,{cacheKey:JSON.stringify});function Le(e){return xe(e)[0]||null}var Ie=R(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,A=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:A,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/assets/index-DDjvabsM.js b/src/chrome/newtab/assets/index-epcgRnvP.jssimilarity index 99%rename from src/firefox/newtab/assets/index-DDjvabsM.jsrename to src/chrome/newtab/assets/index-epcgRnvP.jsindex acbe94fa4..e503219a1 100644--- a/src/firefox/newtab/assets/index-DDjvabsM.js+++ b/src/chrome/newtab/assets/index-epcgRnvP.js@@ -1,4 +1,4 @@-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Clock-okasD9hI.css","./Settings-7szeChri.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-BiXm1rpf.js","./Settings-BkGHEXAt.css"])))=>i.map(i=>d[i]);var OT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cm(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function bS(o){if(Object.prototype.hasOwnProperty.call(o,"__esModule"))return o;var n=o.default;if(typeof n=="function"){var l=function u(){var d=!1;try{d=this instanceof u}catch{}return d?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};l.prototype=n.prototype}else l={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.keys(o).forEach(function(u){var d=Object.getOwnPropertyDescriptor(o,u);Object.defineProperty(l,u,d.get?d:{enumerable:!0,get:function(){return o[u]}})}),l}var Fc={exports:{}},Cs={};var m_;function yS(){if(m_)return Cs;m_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function l(u,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:u,key:f,ref:d!==void 0?d:null,props:c}}return Cs.Fragment=n,Cs.jsx=l,Cs.jsxs=l,Cs}var p_;function kS(){return p_||(p_=1,Fc.exports=yS()),Fc.exports}var w=kS();const wS="wbnt:";function Tv(o,n=wS){const l=()=>{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},u={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:()=>l().forEach(d=>o.removeItem(n+d)),key:d=>l()[d]??null};return new Proxy(Object.create(null),{get(d,c){if(c==="length")return l().length;if(Object.prototype.hasOwnProperty.call(u,c))return u[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(u,c)||c==="length"||typeof c=="string"&&o.getItem(n+c)!==null},ownKeys:()=>l(),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 SS(o=globalThis){const n=o.localStorage,l=Tv(n);return Object.defineProperty(o,"localStorage",{configurable:!0,get:()=>l}),{real:n,shim:l}}function MS(){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,l)=>{o.set(String(n),String(l))},removeItem:n=>{o.delete(String(n))},clear:()=>o.clear()}}let pm=null;try{pm=SS(window).real}catch{try{const o=MS(),n=Tv(o);Object.defineProperty(window,"localStorage",{configurable:!0,get:()=>n})}catch{}pm=null}var Vc={exports:{}},xs={},Gc={exports:{}},Kc={};var f_;function AS(){return f_||(f_=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 l(I){return I.length===0?null:I[0]}function u(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,be=ne>>>1;ie<be;){var Ce=2*(ie+1)-1,Ve=I[Ce],E=Ce+1,te=I[E];if(0>d(Ve,K))E<ne&&0>d(te,Ve)?(I[ie]=te,I[E]=K,ie=E):(I[ie]=Ve,I[Ce]=K,ie=Ce);else if(E<ne&&0>d(te,K))I[ie]=te,I[E]=K,ie=E;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=[],k=[],_=1,g=null,b=3,S=!1,C=!1,x=!1,A=!1,D=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function G(I){for(var T=l(k);T!==null;){if(T.callback===null)u(k);else if(T.startTime<=I)u(k),T.sortIndex=T.expirationTime,n(h,T);else break;T=l(k)}}function J(I){if(x=!1,G(I),!C)if(l(h)!==null)C=!0,H||(H=!0,ee());else{var T=l(k);T!==null&&Y(J,T.startTime-I)}}var H=!1,j=-1,q=5,V=-1;function $(){return A?!0:!(o.unstable_now()-V<q)}function Q(){if(A=!1,H){var I=o.unstable_now();V=I;var T=!0;try{e:{C=!1,x&&(x=!1,z(j),j=-1),S=!0;var K=b;try{t:{for(G(I),g=l(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===l(h)&&u(h),G(I)}else u(h);g=l(h)}if(g!==null)T=!0;else{var be=l(k);be!==null&&Y(J,be.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(Q)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,Z=ae.port2;ae.port1.onmessage=Q,ee=function(){Z.postMessage(null)}}else ee=function(){D(Q,0)};function Y(I,T){j=D(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(k,I),l(h)===null&&I===l(k)&&(x?(z(j),j=-1):x=!0,Y(J,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}}}})(Kc)),Kc}var g_;function CS(){return g_||(g_=1,Gc.exports=AS()),Gc.exports}var Yc={exports:{}},ve={};var h_;function xS(){if(h_)return ve;h_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=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"),k=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.for("react.view_transition"),S=Symbol.iterator;function C(E){return E===null||typeof E!="object"?null:(E=S&&E[S]||E["@@iterator"],typeof E=="function"?E:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,D={};function z(E,te,se){this.props=E,this.context=te,this.refs=D,this.updater=se||x}z.prototype.isReactComponent={},z.prototype.setState=function(E,te){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,te,"setState")},z.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function L(){}L.prototype=z.prototype;function G(E,te,se){this.props=E,this.context=te,this.refs=D,this.updater=se||x}var J=G.prototype=new L;J.constructor=G,A(J,z.prototype),J.isPureReactComponent=!0;var H=Array.isArray;function j(){}var q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function $(E,te,se){var ce=se.ref;return{$$typeof:o,type:E,key:te,ref:ce!==void 0?ce:null,props:se}}function Q(E,te){return $(E.type,te,E.props)}function ee(E){return typeof E=="object"&&E!==null&&E.$$typeof===o}function ae(E){var te={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(se){return te[se]})}var Z=/\/+/g;function Y(E,te){return typeof E=="object"&&E!==null&&E.key!=null?ae(""+E.key):te.toString(36)}function I(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(j,j):(E.status="pending",E.then(function(te){E.status==="pending"&&(E.status="fulfilled",E.value=te)},function(te){E.status==="pending"&&(E.status="rejected",E.reason=te)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function T(E,te,se,ce,ke){var we=typeof E;(we==="undefined"||we==="boolean")&&(E=null);var me=!1;if(E===null)me=!0;else switch(we){case"bigint":case"string":case"number":me=!0;break;case"object":switch(E.$$typeof){case o:case n:me=!0;break;case _:return me=E._init,T(me(E._payload),te,se,ce,ke)}}if(me)return ke=ke(E),me=ce===""?"."+Y(E,0):ce,H(ke)?(se="",me!=null&&(se=me.replace(Z,"$&/")+"/"),T(ke,te,se,"",function(At){return At})):ke!=null&&(ee(ke)&&(ke=Q(ke,se+(ke.key==null||E&&E.key===ke.key?"":(""+ke.key).replace(Z,"$&/")+"/")+me)),te.push(ke)),1;me=0;var ue=ce===""?".":ce+":";if(H(E))for(var fe=0;fe<E.length;fe++)ce=E[fe],we=ue+Y(ce,fe),me+=T(ce,te,se,we,ke);else if(fe=C(E),typeof fe=="function")for(E=fe.call(E),fe=0;!(ce=E.next()).done;)ce=ce.value,we=ue+Y(ce,fe++),me+=T(ce,te,se,we,ke);else if(we==="object"){if(typeof E.then=="function")return T(I(E),te,se,ce,ke);throw te=String(E),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return me}function K(E,te,se){if(E==null)return E;var ce=[],ke=0;return T(E,ce,"","",function(we){return te.call(se,we,ke++)}),ce}function ie(E){if(E._status===-1){var te=E._result,se=te();se.then(function(ce){(E._status===0||E._status===-1)&&(E._status=1,E._result=ce,se.status===void 0&&(se.status="fulfilled",se.value=ce))},function(ce){(E._status===0||E._status===-1)&&(E._status=2,E._result=ce,se.status===void 0&&(se.status="rejected",se.reason=ce))}),E._status===-1&&(E._status=0,E._result=se)}if(E._status===1)return E._result.default;throw E._result}var ne=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)};function be(E){var te=q.T,se={};se.types=te!==null?te.types:null,q.T=se;try{var ce=E(),ke=q.S;ke!==null&&ke(se,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(j,ne)}catch(we){ne(we)}finally{te!==null&&se.types!==null&&(te.types=se.types),q.T=te}}function Ce(E){var te=q.T;if(te!==null){var se=te.types;se===null?te.types=[E]:se.indexOf(E)===-1&&se.push(E)}else be(Ce.bind(null,E))}var Ve={map:K,forEach:function(E,te,se){K(E,function(){te.apply(this,arguments)},se)},count:function(E){var te=0;return K(E,function(){te++}),te},toArray:function(E){return K(E,function(te){return te})||[]},only:function(E){if(!ee(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ve.Activity=g,ve.Children=Ve,ve.Component=z,ve.Fragment=l,ve.Profiler=d,ve.PureComponent=G,ve.StrictMode=u,ve.Suspense=h,ve.ViewTransition=b,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,ve.__COMPILER_RUNTIME={__proto__:null,c:function(E){return q.H.useMemoCache(E)}},ve.addTransitionType=Ce,ve.cache=function(E){return function(){return E.apply(null,arguments)}},ve.cacheSignal=function(){return null},ve.cloneElement=function(E,te,se){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var ce=A({},E.props),ke=E.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 $(E.type,ke,ce)},ve.createContext=function(E){return E={$$typeof:f,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:c,_context:E},E},ve.createElement=function(E,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(E&&E.defaultProps)for(ce in me=E.defaultProps,me)ke[ce]===void 0&&(ke[ce]=me[ce]);return $(E,we,ke)},ve.createRef=function(){return{current:null}},ve.forwardRef=function(E){return{$$typeof:p,render:E}},ve.isValidElement=ee,ve.lazy=function(E){return{$$typeof:_,_payload:{_status:-1,_result:E},_init:ie}},ve.memo=function(E,te){return{$$typeof:k,type:E,compare:te===void 0?null:te}},ve.startTransition=be,ve.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},ve.use=function(E){return q.H.use(E)},ve.useActionState=function(E,te,se){return q.H.useActionState(E,te,se)},ve.useCallback=function(E,te){return q.H.useCallback(E,te)},ve.useContext=function(E){return q.H.useContext(E)},ve.useDebugValue=function(){},ve.useDeferredValue=function(E,te){return q.H.useDeferredValue(E,te)},ve.useEffect=function(E,te){return q.H.useEffect(E,te)},ve.useEffectEvent=function(E){return q.H.useEffectEvent(E)},ve.useId=function(){return q.H.useId()},ve.useImperativeHandle=function(E,te,se){return q.H.useImperativeHandle(E,te,se)},ve.useInsertionEffect=function(E,te){return q.H.useInsertionEffect(E,te)},ve.useLayoutEffect=function(E,te){return q.H.useLayoutEffect(E,te)},ve.useMemo=function(E,te){return q.H.useMemo(E,te)},ve.useOptimistic=function(E,te){return q.H.useOptimistic(E,te)},ve.useReducer=function(E,te,se){return q.H.useReducer(E,te,se)},ve.useRef=function(E){return q.H.useRef(E)},ve.useState=function(E){return q.H.useState(E)},ve.useSyncExternalStore=function(E,te,se){return q.H.useSyncExternalStore(E,te,se)},ve.useTransition=function(){return q.H.useTransition()},ve.version="19.3.1",ve}var __;function Gs(){return __||(__=1,Yc.exports=xS()),Yc.exports}var Qc={exports:{}},Mt={};var v_;function zS(){if(v_)return Mt;v_=1;var o=Gs();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 l(){}var u={d:{f:l,r:function(){throw Error(n(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},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 k(_,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=u,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=u.p;try{if(h.T=null,u.p=2,_)return _()}finally{h.T=g,u.p=b,u.d.f()}},Mt.preconnect=function(_,g){typeof _=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,u.d.C(_,g))},Mt.prefetchDNS=function(_){typeof _=="string"&&u.d.D(_)},Mt.preinit=function(_,g){if(typeof _=="string"&&g&&typeof g.as=="string"){var b=g.as,S=k(b,g.crossOrigin),C=typeof g.integrity=="string"?g.integrity:void 0,x=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?u.d.S(_,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:C,fetchPriority:x}):b==="script"&&u.d.X(_,{crossOrigin:S,integrity:C,fetchPriority:x,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=k(g.as,g.crossOrigin);u.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&&u.d.M(_)},Mt.preload=function(_,g){if(typeof _=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,S=k(b,g.crossOrigin);u.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=k(g.as,g.crossOrigin);u.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 u.d.m(_)},Mt.requestFormReset=function(_){u.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 b_;function xm(){if(b_)return Qc.exports;b_=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(),Qc.exports=zS(),Qc.exports}var y_;function TS(){if(y_)return xs;y_=1;var o=CS(),n=Gs(),l=xm();function u(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(u(188))}function k(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(u(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(u(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(u(189))}}if(a.alternate!==i)throw Error(u(190))}if(a.tag!==3)throw Error(u(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||x(t,e,a.child,{foundSelf:!1}),t}function x(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)&&x(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(u(559))}}var D=null,z=null;function L(e,t,a){return e===a?!0:e===t?(D=e,!0):!1}function G(e,t,a){return e===a?(z=e,!1):e===t?(z!==null&&(D=e),!0):!1}function J(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 j=Object.assign,q=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),Z=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"),be=Symbol.for("react.activity"),Ce=Symbol.for("react.legacy_hidden"),Ve=Symbol.for("react.memo_cache_sentinel"),E=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 Q:return"Fragment";case ae:return"Profiler";case ee:return"StrictMode";case T:return"Suspense";case K:return"SuspenseList";case be:return"Activity";case E:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case $:return"Portal";case Y:return e.displayName||"Context";case Z: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=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,At={pending:!1,data:null,method:null,action:null},Wt=[],Zt=-1;function _t(e){return{current:e}}function tt(e){0>Zt||(e.current=Wt[Zt],Wt[Zt]=null,Zt--)}function Le(e,t){Zt++,Wt[Zt]=e.current,e.current=t}var Rt=_t(null),Bt=_t(null),Xt=_t(null),Xa=_t(null);function Xo(e,t){switch(Le(Xt,t),Le(Bt,e),Le(Rt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?kh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=kh(t),e=wh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}tt(Rt),Le(Rt,e)}function Ja(){tt(Rt),tt(Bt),tt(Xt)}function jn(e){var t=e.memoizedState;t!==null&&(vn._currentValue=t.memoizedState,Le(Xa,e)),t=Rt.current;var a=wh(t,e.type);t!==a&&(Le(Bt,e),Le(Rt,a))}function zi(e){Bt.current===e&&(tt(Rt),tt(Bt)),Xa.current===e&&(tt(Xa),vn._currentValue=At)}var Da,$a;function Lt(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 Ti=!1;function la(e,t){if(!e||Ti)return"";Ti=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(oe){var O=oe}Reflect.construct(e,[],X)}else{try{X.call()}catch(oe){O=oe}X=!1;try{var P=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),X=!0,new e}finally{X&&(P!==void 0?Object.defineProperty(e.prototype,"props",P):delete e.prototype.props)}}}else{try{throw Error()}catch(oe){O=oe}(X=e())&&typeof X.catch=="function"&&X.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:"Не знайдено жодного посилання на додаток"}}},xM=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":"Електронна пошта"}}`),zM={quote:"Скопійовані квоти",notes:"Нотатки скопійовано",reset:"Скидання успішно виконано",installed:"Успішно встановлено",uninstalled:"Успішно видалено",updated:"Успішно оновлено",error:"Щось пішло не так",imported:"Успішно імпортовано",no_storage:"Недостатньо місця для зберігання",link_copied:"Посилання скопійовано",stats_reset:"Статистику скинуто"},pb={tabname:AM,widgets:CM,modals:xM,toasts:zM},TM="Tab mới",NM={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"}}},EM=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"}}`),jM={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"},fb={tabname:TM,widgets:NM,modals:EM,toasts:jM},DM="新标签页",OM={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:"未找到应用链接"}}},qM=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"}}`),RM={quote:"名言已复制",notes:"便签已复制",reset:"重置成功",installed:"安装成功",uninstalled:"卸载成功",updated:"Successfully updated",error:"发生错误",imported:"导入成功",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},gb={tabname:DM,widgets:OM,modals:qM,toasts:RM},BM="新分頁",LM={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:"找不到應用程式連結"}}},IM=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"}}`),UM={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"},hb={tabname:BM,widgets:LM,modals:IM,toasts:UM};function Nl(o){return new h0("en_GB",{ar:Lv,arz:Iv,az:Uv,azb:Pv,bn:Hv,de_DE:Fv,el:Vv,en_GB:Gv,en_US:Kv,es:Yv,es_419:Qv,et:Wv,fa:Zv,fr:Xv,hu:Jv,id_ID:$v,ja:eb,lt:tb,lv:ab,nl:ob,no:ib,peo:nb,pt:sb,pt_BR:rb,ru:lb,sl:ub,sv:db,ta:cb,tr_TR:mb,uk:pb,vi:fb,zh_CN:gb,zh_Hant:hb})}const PM={ar:Lv,arz:Iv,az:Uv,azb:Pv,bn:Hv,de_DE:Fv,el:Vv,en_GB:Gv,en_US:Kv,es:Yv,es_419:Qv,et:Wv,fa:Zv,fr:Xv,hu:Jv,id_ID:$v,ja:eb,lt:tb,lv:ab,nl:ob,no:ib,peo:nb,pt:sb,pt_BR:rb,ru:lb,sl:ub,sv:db,ta:cb,tr_TR:mb,uk:pb,vi:fb,zh_CN:gb,zh_Hant:hb},HM="https://webbrain.one",FM="https://webbrain.one/privacy",VM="https://github.com/esokullu/webbrain",GM="https://github.com/esokullu/webbrain/issues/new",KM="https://github.com/mue/mue",YM="7.6.0",QM="1.0.0",WM=Object.freeze(Object.defineProperty({__proto__:null,BUG_REPORT:GM,MUE_REPO_URL:KM,MUE_VERSION:YM,PRIVACY_URL:FM,REPO_URL:VM,VERSION:QM,WEBSITE_URL:HM},Symbol.toStringTag,{value:"Module"}));class ZM{static async postEvent(){}static async tabLoad(){}}const pe={language:{},languagecode:"",stats:ZM,constants:WM};class ye{static listeners={};static on(n,l){document.addEventListener(n,u=>{l(u.detail)}),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push(l)}static emit(n,l){document.dispatchEvent(new CustomEvent(n,{detail:l}))}static off(n,l){document.removeEventListener(n,l),this.listeners[n]&&(this.listeners[n]=this.listeners[n].filter(u=>u!==l))}static once(n,l){const u=d=>{l(d.detail),this.off(n,u)};document.addEventListener(n,u),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push({callback:l,listener:u})}static prepend(n,l){const u=d=>{l(d.detail)};document.addEventListener(n,u,!0),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].unshift({callback:l,listener:u})}static prependOnce(n,l){const u=d=>{l(d.detail),this.off(n,u)};document.addEventListener(n,u,!0),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].unshift({callback:l,listener:u})}static getListeners(n){return this.listeners[n]?this.listeners[n]:[]}static eventNames(){return Object.keys(this.listeners)}static removeAllListeners(){Object.keys(this.listeners).forEach(n=>{this.listeners[n].forEach(({listener:l})=>{document.removeEventListener(n,l)})}),this.listeners={}}}const XM={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 _b(){let o;try{o=String(pm?.getItem("wbLocale")||"").trim()}catch{o=""}return o||String(globalThis.navigator?.language||"en").slice(0,2).toLowerCase()}function JM(){return XM[_b()]||"en_GB"}const $M=["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"],eA={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"]},A_=Object.fromEntries(Object.entries(eA).map(([o,n])=>[o,Object.fromEntries($M.map((l,u)=>[`wb.${l}`,n[u]]))]));function Ea(o,n=_b()){return A_[n]?.[o]??A_.en[o]??o}const vb=o=>typeof o=="string"&&o.startsWith("wb."),bb=y.createContext();function tA({children:o,initialLanguage:n}){const[l,u]=y.useState(n),d=y.useRef(Nl());y.useEffect(()=>{l!==n&&(d.current=Nl()),pe.language=d.current,pe.languagecode=l,document.documentElement.lang=l.replace("_","-")},[l,n]);const c=y.useCallback(h=>{d.current=Nl(),pe.language=d.current,pe.languagecode=h,document.documentElement.lang=h.replace("_","-");const k=localStorage.getItem("tabName"),_=d.current?.getMessage(l,"tabname");if(k===_||!k){const g=PM[h.replace("-","_")]?.tabname||d.current?.getMessage(h,"tabname")||"Mue";localStorage.setItem("tabName",g),document.title=g}localStorage.setItem("language",h),localStorage.removeItem("currentWeather"),u(h)},[l]),f=y.useCallback((h,k={})=>vb(h)?Ea(h):d.current?d.current.getMessage(l,h,k):h,[l]);y.useEffect(()=>{const h=k=>{k?.language&&c(k.language)};return ye.on("languageChange",h),()=>{ye.off("languageChange",h)}},[c]),y.useEffect(()=>{pe.getMessage=(h,k={})=>f(h,k)},[f]);const p=y.useMemo(()=>({language:l,languagecode:l,changeLanguage:c,t:f}),[l,c,f]);return w.jsx(bb.Provider,{value:p,children:o})}function yb(){const o=y.useContext(bb);if(!o)throw new Error("useTranslation must be used within a TranslationProvider");return o}function Qo(){const{t:o}=yb();return o}function aA({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 oA=y.memo(aA);var kb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},C_=_e.createContext&&_e.createContext(kb),iA=["attr","size","title"];function nA(o,n){if(o==null)return{};var l,u,d=sA(o,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(u=0;u<c.length;u++)l=c[u],n.indexOf(l)===-1&&{}.propertyIsEnumerable.call(o,l)&&(d[l]=o[l])}return d}function sA(o,n){if(o==null)return{};var l={};for(var u in o)if({}.hasOwnProperty.call(o,u)){if(n.indexOf(u)!==-1)continue;l[u]=o[u]}return l}function Bl(){return Bl=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var u in l)({}).hasOwnProperty.call(l,u)&&(o[u]=l[u])}return o},Bl.apply(null,arguments)}function x_(o,n){var l=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);n&&(u=u.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),l.push.apply(l,u)}return l}function Ll(o){for(var n=1;n<arguments.length;n++){var l=arguments[n]!=null?arguments[n]:{};n%2?x_(Object(l),!0).forEach(function(u){rA(o,u,l[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(l)):x_(Object(l)).forEach(function(u){Object.defineProperty(o,u,Object.getOwnPropertyDescriptor(l,u))})}return o}function rA(o,n,l){return(n=lA(n))in o?Object.defineProperty(o,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[n]=l,o}function lA(o){var n=uA(o,"string");return typeof n=="symbol"?n:n+""}function uA(o,n){if(typeof o!="object"||!o)return o;var l=o[Symbol.toPrimitive];if(l!==void 0){var u=l.call(o,n);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function wb(o){return o&&o.map((n,l)=>_e.createElement(n.tag,Ll({key:l},n.attr),wb(n.child)))}function re(o){return n=>_e.createElement(dA,Bl({attr:Ll({},o.attr)},n),wb(o.child))}function dA(o){var n=l=>{var u=o.attr,d=o.size,c=o.title,f=nA(o,iA),p=d||l.size||"1em",h;return l.className&&(h=l.className),o.className&&(h=(h?h+" ":"")+o.className),_e.createElement("svg",Bl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},l.attr,u,f,{className:h,style:Ll(Ll({color:o.color||l.color},l.style),o.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),c&&_e.createElement("title",null,c),o.children)};return C_!==void 0?_e.createElement(C_.Consumer,null,l=>n(l)):n(kb)}function cA(o){return re({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 RT(o){return re({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 BT(o){return re({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 Rs(o){return re({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 mA(o){return re({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 Sb(o){return re({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 Bs(o){return re({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 pA(o){return re({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 LT(o){return re({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"},child:[]}]})(o)}function zm(o){return re({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 IT(o){return re({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 Mb(o){return re({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 fA(o){return re({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 gA(o){return re({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 UT(o){return re({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 hA(o){return re({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 _A(o){return re({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 PT(o){return re({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 HT(o){return re({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 FT(o){return re({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 vA(o){return re({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 bA(o){return re({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 Ab(o){return re({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 yA(o){return re({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 VT(o){return re({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 z_(o){return re({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 Cb(o){return re({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 GT(o){return re({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 kA(o){return re({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 KT(o){return re({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 wA(o){return re({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 T_(o){return re({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 SA(o){return re({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 YT(o){return re({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 MA(o){return re({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 AA(o){return re({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 QT(o){return re({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 CA(o){return re({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 WT(o){return re({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 ZT(o){return re({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 xb(o){return re({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 xA(o){return re({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 zA(o){return re({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 TA(o){return re({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 XT(o){return re({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 NA(o){return re({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 Tm(o){return re({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 EA(o){return re({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 jA(o){return re({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 DA(o){return re({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 OA(o){return re({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 qA(o){return re({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 RA(o){return re({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 N_(o){return re({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 JT(o){return re({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 E_(o){return re({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 BA(o){return re({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 $T(o){return re({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 eN(o){return re({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 tN(o){return re({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 LA(o){return re({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 aN(o){return re({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},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 IA(o){return re({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 UA(o){return re({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 oN(o){return re({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 iN(o){return re({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 PA(o){return re({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 HA(o){return re({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 FA(o){return re({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 VA(o){return re({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:gA,LIBRARY:RA,TASKBOX:Ab,DISCOVER:jA,NAVBAR:mA,GREETING:cA,TIME:CA,QUOTE:LA,QUICKLINKS:kA,DATE:OA,MESSAGE:IA,BACKGROUND:BA,SEARCH:Tm,WEATHER:bA,APPEARANCE:yA,LANGUAGE:TA,ADVANCED:PA,EXPERIMENTAL:qA,STATS:VA,CHANGELOG:UA,ABOUT:EA,ADDED:HA,CREATE:SA,OVERVIEW:zA,COLLECTIONS:_A},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"},nN=(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],GA=[{tab:Yo.SETTINGS,icon:Re.SETTINGS,messageKey:"modals.main.navbar.settings"}],sN=["modals.main.settings.sections.appearance.title","modals.main.settings.sections.advanced.title"],Il=(o=window.location.hash)=>{if(!o||o==="#")return null;const[n,l,u]=o.slice(1).split("/");return n!==Yo.SETTINGS?null:{tab:n,section:l||void 0,subSection:u||void 0}},Ul=(o,n=!0)=>{window.history.pushState?n?window.history.pushState(null,null,o):window.history.replaceState(null,null,o):window.location.hash=o},KA=()=>Il()!==null,YA="MueCustomBackgrounds",QA=1,Yt="backgrounds";function xn(){return new Promise((o,n)=>{const l=indexedDB.open(YA,QA);l.onerror=()=>n(l.error),l.onsuccess=()=>o(l.result),l.onupgradeneeded=u=>{const d=u.target.result;d.objectStoreNames.contains(Yt)||d.createObjectStore(Yt,{keyPath:"id",autoIncrement:!0}).createIndex("url","url",{unique:!1})}})}async function zb(){try{const u=(await xn()).transaction(Yt,"readonly").objectStore(Yt).getAll();return new Promise((d,c)=>{u.onsuccess=()=>{const f=u.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))},u.onerror=()=>c(u.error)})}catch(o){return console.error("Error getting backgrounds from IndexedDB:",o),[]}}async function WA(){return(await zb()).map(n=>n.url||n)}async function ZA(o){const u=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),d=typeof o=="string"?{url:o,name:"Image",uploadDate:Date.now(),folder:""}:{...o,uploadDate:o.uploadDate||Date.now()},c=u.add(d);return new Promise((f,p)=>{c.onsuccess=()=>f(c.result),c.onerror=()=>p(c.error)})}async function rN(o){const u=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),d=u.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result;if(p[o]){const h=u.delete(p[o].id);h.onsuccess=()=>c(),h.onerror=()=>f(h.error)}else c()},d.onerror=()=>f(d.error)})}async function lN(o){const u=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),d=u.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result,h=o.filter(g=>p[g]).map(g=>p[g].id);let k=0;const _=h.length;if(_===0){c();return}h.forEach(g=>{const b=u.delete(g);b.onsuccess=()=>{k++,k===_&&c()},b.onerror=()=>f(b.error)})},d.onerror=()=>f(d.error)})}async function XA(){const u=(await xn()).transaction(Yt,"readonly").objectStore(Yt).count();return new Promise((d,c)=>{u.onsuccess=()=>d(u.result),u.onerror=()=>c(u.error)})}async function uN(o,n){const d=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),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 k=d.put(h);k.onsuccess=()=>f(),k.onerror=()=>p(k.error)}else p(new Error("Background not found"))},c.onerror=()=>p(c.error)})}async function dN(){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(u=>u&&u.trim()!==""),n.length===0||await XA()>0)return!1;for(const u of n)await ZA(u);return console.log(`Migrated ${n.length} backgrounds from localStorage to IndexedDB`),localStorage.setItem("customBackgroundMigrated","true"),!0}catch(o){return console.error("Error migrating backgrounds:",o),!1}}function JA({photoInfo:o,currentAPI:n,url:l}){const u=localStorage.getItem("backgroundType")==="custom",[d,c]=y.useState([]),[f,p]=y.useState(!0);y.useEffect(()=>{(async()=>{if(u)try{const g=await WA();c(g||[])}catch(g){console.error("Failed to load custom backgrounds:",g),c([])}p(!1)})()},[u]);const h=u&&!f&&(!d||d.length===0),k=()=>{Ul("#settings/background/source"),ye.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:k,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(oA,{info:o,api:n,url:l})]})}const $A=y.memo(JA);function eC({url:o,filterStyle:n}){const l=y.useMemo(()=>localStorage.getItem("backgroundVideoMute")==="true",[]),u=y.useMemo(()=>localStorage.getItem("backgroundVideoLoop")==="true",[]);return w.jsx("video",{autoPlay:!0,muted:l,loop:u,style:n,id:"backgroundVideo",children:w.jsx("source",{src:o})})}const tC=y.memo(eC);function aC(){const[o,n]=y.useState({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!1,offline:!1,photographerURL:"",photoURL:""}}),l=y.useCallback(d=>{n(c=>({...c,...d,photoInfo:{...c.photoInfo,...d.photoInfo||{}}}))},[]),u=y.useCallback(()=>{n({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!0}})},[]);return{backgroundData:o,updateBackground:l,resetBackground:u}}const oC={photo:[5]},Zc={"Ryan Hutton":{photo:[1]},"Francesco De Tommaso":{photo:[2]},"Andy Vu":{photo:[3]},"Sergi Ferrete":{photo:[4]},Pixabay:oC};function Tb(o){const n=Object.keys(Zc),l=n[Math.floor(Math.random()*n.length)],d={url:`src/assets/offline-images/${Zc[l].photo[Math.floor(Math.random()*Zc[l].photo.length)]}.webp`,type:o,photoInfo:{offline:!0,credit:l}};return localStorage.setItem("currentBackground",JSON.stringify(d)),d}function iC(o){const n=()=>"#000000".replace(/0/g,()=>(~~(Math.random()*16)).toString(16));let l=`background:${n()};`;if(o==="random_gradient"){const u=["to right","to left","to bottom","to top","to bottom right","to bottom left","to top right","to top left"];l=`background:linear-gradient(${u[Math.floor(Math.random()*u.length)]}, ${n()}, ${n()});`}return{type:"colour",style:l}}function Nb(o){return o.startsWith("data:video/")||o.endsWith(".mp4")||o.endsWith(".webm")||o.endsWith(".ogg")}const Eb=(o,n=null)=>{const l=localStorage.getItem(o);if(l===null||l==="null")return n;try{const u=JSON.parse(l);return u!==null?u:n}catch{return n}};async function nC(){const o=localStorage.getItem("offlineMode")==="true"||localStorage.getItem("showWelcome")==="true",n=Eb("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 l=localStorage.getItem("backgroundType");switch(l){case"api":return rC();case"colour":return sC();case"random_colour":case"random_gradient":return iC(l);case"custom":return await lC(o);default:return null}}function sC(){return{type:"colour",style:`background: ${localStorage.getItem("customBackgroundColour")||"rgb(0,0,0)"}`}}function rC(){return{...Tb("api"),currentAPI:localStorage.getItem("backgroundAPI")||"mue"}}async function lC(o){let n=await zb();if(!n||n.length===0){const c=Eb("customBackground",[]);c&&c.length>0&&(n=c.map(f=>({url:f,photoInfo:{hidden:!0}})))}if(!n||n.length===0)return null;const l=n[Math.floor(Math.random()*n.length)];if(!l)return null;const u=l.url||l;if(o&&!u.startsWith("data:"))return Tb("custom");const d={url:u,type:"custom",video:Nb(u),photoInfo:{hidden:!0,blur_hash:l.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 uC(o,n){const l=y.useRef(!1),u=y.useCallback(async()=>{if(!l.current){l.current=!0;try{if(localStorage.getItem("welcomeTab")){const p=localStorage.getItem("welcomeImage");if(p){o(JSON.parse(p));return}}const f=await nC();f&&o(f)}catch(c){console.error("Failed to load background:",c)}finally{l.current=!1}}},[o]),d=y.useCallback(()=>{n(),u()},[u,n]);return y.useEffect(()=>{const c=localStorage.getItem("backgroundchange");(!localStorage.getItem("backgroundStartTime")||c==="refresh")&&localStorage.setItem("backgroundStartTime",Date.now()),u()},[u]),{loadBackground:u,refreshBackground:d}}async function dC(o){try{const n=await fetch(o,{mode:"cors",credentials:"omit"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const l=await n.blob();return URL.createObjectURL(l)}catch{return null}}const cC="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",El=(o,n,l)=>{let u=0;for(;n<l;)u=u*83+cC.indexOf(o[n++]);return u},jb=Math.pow,Ns=Math.PI,Db=3294.6,Ob=269.025,mC=o=>o>10.31475?jb(o/Ob+.052132,2.4):o/Db,pC=o=>~~(o>1227e-8?Ob*jb(o,.416666)-13.025:o*Db+1),Pl=4096,qb=new Uint8ClampedArray(Pl+1);for(let o=0;o<=Pl;o++)qb[o]=pC(o/Pl);const Xc=o=>o<=0?0:o>=1?255:qb[o*Pl+.5|0],Es=o=>(o<0?-1:1)*o*o,j_=o=>{for(o+=Ns/2;o>Ns;)o-=Ns*2;const n=1.27323954*o-.405284735*Es(o);return .225*(Es(n)-n)+n};function fC(o){const n=El(o,2,6);return[n>>16,n>>8&255,n&255]}function gC(o,n,l,u){const d=El(o,0,1),c=d%9+1,f=~~(d/9)+1,p=c*f;let h,k,_,g,b,S,C,x,A,D,z,L;const G=(El(o,1,2)+1)/13446*(u|1),J=new Float64Array(p*3),H=fC(o);for(h=0;h<3;h++)J[h]=mC(H[h]);for(h=1;h<p;h++)L=El(o,4+h*2,6+h*2),J[h*3]=Es(~~(L/361)-9)*G,J[h*3+1]=Es(~~(L/19)%19-9)*G,J[h*3+2]=Es(L%19-9)*G;const j=new Float64Array(f*l),q=new Float64Array(c*n);for(k=0;k<f;k++)for(g=0;g<l;g++)j[k*l+g]=j_(Ns*g*k/l);for(h=0;h<c;h++)for(_=0;_<n;_++)q[h*n+_]=j_(Ns*_*h/n);const V=n*4,$=new Uint8ClampedArray(V*l),Q=new Float64Array(c*3);for(g=0;g<l;g++){for(h=0;h<c;h++){for(b=S=C=0,k=0;k<f;k++)A=j[k*l+g],D=(h+k*c)*3,b+=J[D]*A,S+=J[D+1]*A,C+=J[D+2]*A;Q[h*3]=b,Q[h*3+1]=S,Q[h*3+2]=C}for(_=0;_<n;_++){for(b=S=C=0,h=0;h<c;h++)x=q[h*n+_],D=h*3,b+=Q[D]*x,S+=Q[D+1]*x,C+=Q[D+2]*x;z=4*_+g*V,$[z]=Xc(b),$[z+1]=Xc(S),$[z+2]=Xc(C),$[z+3]=255}}return $}function hC(o,n=32,l=32){try{const u=document.createElement("canvas");u.width=n,u.height=l;const d=u.getContext("2d"),c=d.createImageData(n,l);return c.data.set(gC(o,n,l)),d.putImageData(c,0,0),u.toDataURL()}catch(u){return console.error("Failed to generate blur hash:",u),null}}function Rb(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",l=localStorage.getItem("backgroundFilter"),u=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px) brightness(${n}%)`;return l&&l!=="none"&&(d+=` ${l}(${u}%)`),d}function Bb(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",l=localStorage.getItem("backgroundFilter"),u=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px)`;l&&l!=="none"&&(d+=` ${l}(${u}%)`);const f=(100-parseInt(n,10))/100;return{backdropFilter:d,WebkitBackdropFilter:d,backgroundColor:`rgba(0, 0, 0, ${f})`}}const D_=1200;function _C(o){const n=y.useRef(null),l=y.useRef(null);y.useEffect(()=>{if(o.video)return;const u=document.getElementById("backgroundImage");return u?(l.current&&l.current.abort(),l.current=new AbortController,(async()=>{if(o.url){const c=localStorage.getItem("bgtransition")!=="false",f=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!c||f){u.style.background=`url(${o.url})`,document.querySelector(".photoInformation")?.style.setProperty("display","flex");return}let p=document.getElementById("backgroundOverlay");if(p||(p=document.createElement("div"),p.id="backgroundOverlay",u.parentNode.insertBefore(p,u.nextSibling)),o.photoInfo?.colour&&(u.style.backgroundColor=o.photoInfo.colour),o.photoInfo?.blur_hash){const g=hC(o.photoInfo.blur_hash,64,64);g&&(u.style.backgroundImage=`url(${g})`)}const h=await dC(o.url),k=h||o.url;h&&(n.current&&URL.revokeObjectURL(n.current),n.current=h);const _=new Image;_.src=k,await new Promise(g=>{_.onload=g,_.onerror=g}),p.style.transition="none",p.style.opacity="0",p.style.backgroundImage="",p.offsetHeight,p.style.backgroundImage=`url(${k})`,p.offsetHeight,p.style.transition=`opacity ${D_/1e3}s ease-in-out`,p.offsetHeight,p.style.opacity="1",setTimeout(()=>{u.style.backgroundImage=`url(${k})`,p.style.opacity="0",p.style.backgroundImage=""},D_+100)}else o.style&&u.setAttribute("style",o.style)})(),()=>{n.current&&URL.revokeObjectURL(n.current),l.current&&l.current.abort();const c=document.getElementById("backgroundOverlay");c&&c.remove()}):void 0},[o.url,o.style,o.video,o.photoInfo])}function vC(){return y.useMemo(()=>({WebkitFilter:Rb()}),[])}function bC(){return y.useMemo(()=>Bb(),[])}function yC(o,n){y.useEffect(()=>{const l=c=>{c==="welcomeLanguage"?localStorage.setItem("welcomeImage",JSON.stringify(o)):c==="background"?u():["backgroundwelcome","backgroundrefresh"].includes(c)?n():c==="backgroundeffect"&&d()},u=()=>{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"||o.photoInfo?.pun&&JSON.parse(localStorage.getItem("backgroundExclude")||"[]").includes(o.photoInfo.pun))&&n()},d=()=>{if(o.video){const c=Rb(),f=document.getElementById("backgroundVideo");f&&(f.style.webkitFilter=c)}else{const c=document.getElementById("backgroundFilterOverlay");if(c){const f=Bb();c.style.backdropFilter=f.backdropFilter,c.style.webkitBackdropFilter=f.WebkitBackdropFilter,c.style.backgroundColor=f.backgroundColor}}};return ye.on("refresh",l),()=>ye.off("refresh",l)},[o,n])}function kC(){const{backgroundData:o,updateBackground:n,resetBackground:l}=aC(),{refreshBackground:u}=uC(n,l),d=vC(),c=bC();return _C(o),yC(o,u),w.jsxs(w.Fragment,{children:[o.video?w.jsx(tC,{url:o.url,filterStyle:d}):w.jsx($A,{photoInfo:o.photoInfo,currentAPI:o.currentAPI,url:o.url}),w.jsx("div",{id:"backgroundFilterOverlay",style:c})]})}const wC=(function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"})(),SC=function(o,n){return new URL(o,n).href},O_={},Nm=function(n,l,u){let d=Promise.resolve();if(l&&l.length>0){let k=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=k(l.map(_=>{if(_=SC(_,u),_ in O_)return;O_[_]=!0;const g=_.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(u)for(let C=f.length-1;C>=0;C--){const x=f[C];if(x.href===_&&(!g||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${b}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":wC,g||(S.as="script"),S.crossOrigin="",S.href=_,h&&S.setAttribute("nonce",h),document.head.appendChild(S),g)return new Promise((C,x)=>{S.addEventListener("load",C),S.addEventListener("error",()=>x(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 Lb(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 Em(o,n){return new Date((typeof o=="string"?new Date(o):o).toLocaleString("en-US",{timeZone:n}))}function Ib(){const o=localStorage.getItem("language")?.replace(/_/g,"-")||"en-GB",n={ar:"arab",fa:"arabext",bn:"beng",hi:"deva",mr:"deva",ne:"deva",ta:"tamldec"},l=o.split("-")[0];return n[l]?`${o}-u-nu-${n[l]}`:o}function MC(o){if(localStorage.getItem("localeFormatting")==="false")return Math.round(o*100)+"%";try{return new Intl.NumberFormat(Ib(),{style:"percent",maximumFractionDigits:0}).format(o)}catch{return Math.round(o*100)+"%"}}function Ts(o){if(localStorage.getItem("localeFormatting")==="false")return String(o);try{const l=typeof o=="string"?parseInt(o,10):o;return isNaN(l)?String(o):new Intl.NumberFormat(Ib(),{useGrouping:!1}).format(l)}catch{return String(o)}}const AC=y.lazy(()=>Nm(()=>import("./index-C08TLPUo.js"),[],import.meta.url));function CC({time:o}){const n=l=>localStorage.getItem(l)==="true";return w.jsx(y.Suspense,{fallback:w.jsx(w.Fragment,{}),children:w.jsx("div",{className:`clockBackground ${n("roundClock")?"round":""}`,children:w.jsx(AC,{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 xC({finalHour:o,finalMinute:n,finalSeconds:l}){const u=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:u},children:o}),w.jsx("div",{className:"minute",style:{color:d},children:n}),w.jsx("div",{className:"seconds",style:{color:c},children:l})]})}const Kt=o=>String(o).split("").map(l=>Ts(l)).join(""),zC=()=>{const[o]=y.useState(localStorage.getItem("timeType")),[n,l]=y.useState(""),[u,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(""),[k,_]=y.useState(""),[g,b]=y.useState("block"),[S,C]=y.useState("4em"),x=y.useRef(void 0),A=(D=localStorage.getItem("seconds")==="true"||localStorage.getItem("timeType")==="analogue"?1e3-Date.now()%1e3:6e4-Date.now()%6e4)=>{x.current=setTimeout(()=>{let z=new Date;const L=localStorage.getItem("timezone");switch(L&&L!=="auto"&&(z=Em(z,L)),localStorage.getItem("timeType")){case"percentageComplete":l(MC(z.getHours()/24)),_("");break;case"analogue":Nm(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),l(z);break;default:{let G,J="";const H=localStorage.getItem("zero");if(localStorage.getItem("seconds")==="true"){const j=("00"+z.getSeconds()).slice(-2);J=`:${Kt(j)}`,h(Kt(j))}if(localStorage.getItem("timeformat")==="twentyfourhour"){const j=("00"+z.getMinutes()).slice(-2);if(H==="true"){const q=("00"+z.getHours()).slice(-2);G=`${Kt(q)}:${Kt(j)}${J}`,d(Kt(q)),f(Kt(j))}else{const q=z.getHours();G=`${Ts(q)}:${Kt(j)}${J}`,d(Ts(q)),f(Kt(j))}l(G),_("")}else{let j=z.getHours();j>12?j-=12:j===0&&(j=12);const q=("00"+z.getMinutes()).slice(-2);if(H==="true"){const V=("00"+j).slice(-2);G=`${Kt(V)}:${Kt(q)}${J}`,d(Kt(V)),f(Kt(q))}else G=`${Ts(j)}:${Kt(q)}${J}`,d(Ts(j)),f(Kt(q));l(G),_(z.getHours()>11?"PM":"AM")}break}}A()},D)};return y.useEffect(()=>{const D=z=>{if(z==="clock"||z==="timezone"){if(localStorage.getItem("time")==="false"){b("none");return}x.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),ye.on("refresh",D),()=>{ye.off("refresh"),x.current&&clearTimeout(x.current)}},[]),localStorage.getItem("timeType")==="analogue"?w.jsx(CC,{time:n}):localStorage.getItem("timeType")==="verticalClock"?w.jsx(xC,{finalHour:u,finalMinute:c,finalSeconds:p}):w.jsxs("span",{className:"clock clock-container",style:{display:g,fontSize:S},children:[n,w.jsx("span",{className:"ampm",children:k})]})},TC=(o,n)=>{if(!(localStorage.getItem("events")!=="false"))return n;const u=o.getMonth(),d=o.getDate(),f=JSON.parse(localStorage.getItem("customEvents")||"[]").find(p=>p.month-1===u&&p.date===d);return f&&(n=f.name),n},q_=o=>{const n=Date.now()-o.getTime(),l=new Date(n);return Math.abs(l.getUTCFullYear()-1970)},NC=()=>{const o=Qo(),[n,l]=y.useState(""),[u,d]=y.useState("block"),[c,f]=y.useState("1.6em"),p=y.useRef(),h=y.useRef(null),k=(_=6e4-Date.now()%6e4)=>{h.current=setTimeout(()=>{let g=new Date;const b=localStorage.getItem("timezone");b&&b!=="auto"&&(g=Em(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 x=localStorage.getItem("defaultGreetingMessage");x==="false"?C="":C=TC(g,C);let A="";const D=localStorage.getItem("greetingName");typeof D=="string"&&D.replace(/\s/g,"").length>0&&(A=`, ${D.trim()}`);const z=localStorage.getItem("birthdayenabled");if(x==="false"&&z!=="true"&&(A=A.replace(",","")),z==="true"){const L=new Date(localStorage.getItem("birthday"));if(L.getDate()===g.getDate()&&L.getMonth()===g.getMonth())if(localStorage.getItem("birthdayage")==="true"&&q_(L)!==0){const G=o("widgets.greeting.birthday").split(" ");C=`${G[0]} ${Lb(q_(L))} ${G[1]}`}else C=o("widgets.greeting.birthday")}l(`${C}${A}`),k()},_)};return y.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),k(0))}},g=localStorage.getItem("zoomGreeting");return f(`${1.6*Number((g||100)/100)}em`),k(0),ye.on("refresh",_),()=>{ye.off("refresh"),h.current&&clearTimeout(h.current)}},[o]),w.jsx("span",{className:"greeting",ref:p,style:{display:u,fontSize:c},children:n})},jl="wbNewtabHandoff",EC=4e3,$l=()=>typeof browser<"u"&&typeof browser?.sidebarAction?.open=="function",eu=()=>$l()?browser:typeof chrome<"u"&&chrome?.runtime?.id?chrome:null;let Dl=null;async function jC(){try{Dl=await eu()?.tabs?.getCurrent?.()??null}catch{Dl=null}return Dl}function DC({text:o,mode:n,tabId:l,now:u=Date.now()}){return{id:`nt-${u}-${Math.random().toString(36).slice(2,8)}`,tabId:l,text:String(o).slice(0,EC),mode:n==="act"?"act":"ask",createdAt:u}}function OC({text:o,mode:n},l=eu(),u=Dl){if(!l||u?.id==null)return Promise.reject(new Error("Extension API unavailable"));const d=$l();if(!d&&!l.sidePanel?.open)return Promise.reject(new Error("Side panel API unavailable"));const c=DC({text:o,mode:n,tabId:u.id}),f=Promise.resolve(l.storage.local.set({[jl]:c}));let p;try{d?p=l.sidebarAction.open():(Promise.resolve(l.sidePanel.setOptions({tabId:u.id,path:"src/ui/sidepanel.html",enabled:!0})).catch(()=>{}),p=l.sidePanel.open({tabId:u.id}))}catch(h){p=Promise.reject(h)}return Promise.all([f,p]).then(()=>(Promise.resolve(l.runtime.sendMessage({type:"WB_NEWTAB_PANEL_OPENED",tabId:u.id})).catch(()=>{}),!0),async h=>{throw await f.catch(()=>{}),await qC(l,c.id),h})}async function qC(o,n){try{const l=(await o.storage.local.get(jl))?.[jl];(!l||l.id===n)&&await o.storage.local.remove(jl)}catch{}}function RC(o=eu()){return $l()?typeof o?.search?.search=="function":typeof o?.search?.query=="function"}const R_=new Set(["http:","https:"]);function BC(o){const n=String(o||"").trim();if(!n||/\s/.test(n))return null;try{const l=new URL(n);if(/^[a-z][a-z0-9+.-]*:\/\//i.test(n))return R_.has(l.protocol)?l.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 l=new URL(`https://${n}`);return R_.has(l.protocol)?l.href:null}catch{return null}return null}async function LC(o,n=eu(),l=u=>window.location.assign(u)){const u=BC(o);if(u)return l(u),!0;if($l()&&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 IC=[{id:"ask",icon:MA},{id:"act",icon:Ab},{id:"search",icon:Tm}],Ub=()=>IC.filter(o=>o.id!=="search"||RC()),UC=()=>{const o=localStorage.getItem("taskBoxMode");return Ub().some(n=>n.id===o)?o:"ask"};function PC(){const[o,n]=y.useState(UC),[l,u]=y.useState(""),[d,c]=y.useState(""),f=y.useRef(null);y.useEffect(()=>{jC(),localStorage.getItem("taskBoxFocus")!=="false"&&f.current?.focus()},[]);const p=h=>{h.preventDefault();const k=l.trim();if(!k)return;c(""),(o==="search"?LC(k):OC({text:k,mode:o})).then(()=>{o!=="search"&&u("")}).catch(()=>c(Ea("wb.panel_failed")))};return w.jsxs("div",{className:"taskBox",children:[w.jsxs("form",{className:"taskBoxForm",onSubmit:p,children:[w.jsx("input",{ref:f,className:"taskBoxInput",type:"text",value:l,maxLength:4e3,autoComplete:"off",spellCheck:!1,placeholder:Ea(`wb.placeholder_${o}`),"aria-label":Ea(`wb.placeholder_${o}`),onChange:h=>u(h.target.value)}),w.jsx("button",{className:"taskBoxGo",type:"submit","aria-label":Ea("wb.go"),disabled:!l.trim(),children:w.jsx(Mb,{})})]}),w.jsx("div",{className:"taskBoxModes",role:"radiogroup",children:Ub().map(({id:h,icon:k})=>w.jsxs("button",{type:"button",role:"radio","aria-checked":o===h,className:o===h?"taskBoxMode active":"taskBoxMode",onClick:()=>{n(h),f.current?.focus()},children:[w.jsx(k,{}),w.jsx("span",{children:Ea(`wb.${h}`)})]},h))}),o==="act"&&w.jsx("span",{className:"taskBoxHint",children:Ea("wb.act_hint")}),d&&w.jsx("span",{className:"taskBoxHint taskBoxError",role:"alert",children:d})]})}const B_="webbrain_chat_history",Jc="records";async function HC(o=4,n=globalThis.indexedDB){if(!n?.databases)return[];if(!(await n.databases()).some(d=>d.name===B_))return[];const u=await new Promise((d,c)=>{const f=n.open(B_);f.onupgradeneeded=()=>f.transaction.abort(),f.onsuccess=()=>d(f.result),f.onerror=()=>c(f.error),f.onblocked=()=>c(new Error("blocked"))});try{return u.objectStoreNames.contains(Jc)?await new Promise((d,c)=>{const f=[],p=u.transaction([Jc],"readonly").objectStore(Jc),k=(p.indexNames.contains("updatedAt")?p.index("updatedAt"):p).openCursor(null,"prev");k.onsuccess=()=>{const _=k.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()},k.onerror=()=>c(k.error)}):[]}finally{u.close()}}const $c="../src/ui/history.html";function FC(){const[o,n]=y.useState(null);return y.useEffect(()=>{let l=!1;return HC(4).then(u=>!l&&n(u)).catch(()=>!l&&n([])),()=>{l=!0}},[]),o===null?null:w.jsxs("div",{className:"recentChats",children:[w.jsxs("div",{className:"recentChatsHeader",children:[w.jsx("span",{children:Ea("wb.recent_title")}),w.jsx("a",{href:$c,children:Ea("wb.recent_all")})]}),o.length===0?w.jsx("span",{className:"recentChatsEmpty",children:Ea("wb.recent_empty")}):w.jsx("ul",{children:o.map(l=>w.jsx("li",{children:w.jsx("a",{href:l.url?`${$c}?url=${encodeURIComponent(l.url)}`:$c,children:l.title||l.url})},l.id))})]})}const vm=Math.min,Sn=Math.max,Hl=Math.round,ho=o=>({x:o,y:o}),VC={left:"right",right:"left",bottom:"top",top:"bottom"};function GC(o,n,l){return Sn(o,vm(n,l))}function tu(o,n){return typeof o=="function"?o(n):o}function Cn(o){return o.split("-")[0]}function au(o){return o.split("-")[1]}function Pb(o){return o==="x"?"y":"x"}function Hb(o){return o==="y"?"height":"width"}function Ko(o){const n=o[0];return n==="t"||n==="b"?"y":"x"}function Fb(o){return Pb(Ko(o))}function KC(o,n,l){l===void 0&&(l=!1);const u=au(o),d=Fb(o),c=Hb(d);let f=d==="x"?u===(l?"end":"start")?"right":"left":u==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=Fl(f)),[f,Fl(f)]}function YC(o){const n=Fl(o);return[bm(o),n,bm(n)]}function bm(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}const L_=["left","right"],I_=["right","left"],QC=["top","bottom"],WC=["bottom","top"];function ZC(o,n,l){switch(o){case"top":case"bottom":return l?n?I_:L_:n?L_:I_;case"left":case"right":return n?QC:WC;default:return[]}}function XC(o,n,l,u){const d=au(o);let c=ZC(Cn(o),l==="start",u);return d&&(c=c.map(f=>f+"-"+d),n&&(c=c.concat(c.map(bm)))),c}function Fl(o){const n=Cn(o);return VC[n]+o.slice(n.length)}function JC(o){var n,l,u,d;return{top:(n=o.top)!=null?n:0,right:(l=o.right)!=null?l:0,bottom:(u=o.bottom)!=null?u:0,left:(d=o.left)!=null?d:0}}function $C(o){return typeof o!="number"?JC(o):{top:o,right:o,bottom:o,left:o}}function Vl(o){const{x:n,y:l,width:u,height:d}=o;return{width:u,height:d,top:l,left:n,right:n+u,bottom:l+d,x:n,y:l}}function U_(o,n,l){let{reference:u,floating:d}=o;const c=Ko(n),f=Fb(n),p=Hb(f),h=Cn(n),k=c==="y",_=u.x+u.width/2-d.width/2,g=u.y+u.height/2-d.height/2,b=u[p]/2-d[p]/2;let S;switch(h){case"top":S={x:_,y:u.y-d.height};break;case"bottom":S={x:_,y:u.y+u.height};break;case"right":S={x:u.x+u.width,y:g};break;case"left":S={x:u.x-d.width,y:g};break;default:S={x:u.x,y:u.y}}const C=au(n);return C&&(S[f]+=b*(C==="end"?1:-1)*(l&&k?-1:1)),S}async function ex(o,n){var l;n===void 0&&(n={});const{x:u,y:d,platform:c,rects:f,elements:p,strategy:h}=o,{boundary:k="clippingAncestors",rootBoundary:_="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=tu(n,o),C=$C(S),A=p[b?g==="floating"?"reference":"floating":g],D=Vl(await c.getClippingRect({element:(l=await(c.isElement==null?void 0:c.isElement(A)))==null||l?A:A.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:k,rootBoundary:_,strategy:h})),z=g==="floating"?{x:u,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},J=Vl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:z,offsetParent:L,strategy:h}):z);return{top:(D.top-J.top+C.top)/G.y,bottom:(J.bottom-D.bottom+C.bottom)/G.y,left:(D.left-J.left+C.left)/G.x,right:(J.right-D.right+C.right)/G.x}}const tx=50,ax=async(o,n,l)=>{const{placement:u="bottom",strategy:d="absolute",middleware:c=[],platform:f}=l,p=f.detectOverflow?f:{...f,detectOverflow:ex},h=await(f.isRTL==null?void 0:f.isRTL(n));let k=await f.getElementRects({reference:o,floating:n,strategy:d}),{x:_,y:g}=U_(k,u,h),b=u,S=0;const C={};for(let x=0;x<c.length;x++){const A=c[x];if(!A)continue;const{name:D,fn:z}=A,{x:L,y:G,data:J,reset:H}=await z({x:_,y:g,initialPlacement:u,placement:b,strategy:d,middlewareData:C,rects:k,platform:p,elements:{reference:o,floating:n}});_=L??_,g=G??g,C[D]={...C[D],...J},H&&S<tx&&(S++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(k=H.rects===!0?await f.getElementRects({reference:o,floating:n,strategy:d}):H.rects),{x:_,y:g}=U_(k,b,h)),x=-1)}return{x:_,y:g,placement:b,strategy:d,middlewareData:C}},ox=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(n){var l,u;const{placement:d,middlewareData:c,rects:f,initialPlacement:p,platform:h,elements:k}=n,{mainAxis:_=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:x=!0,...A}=tu(o,n);if((l=c.arrow)!=null&&l.alignmentOffset)return{};const D=Cn(d),z=Ko(p),L=Cn(p)===p,G=await(h.isRTL==null?void 0:h.isRTL(k.floating)),J=b||(L||!x?[Fl(p)]:YC(p)),H=C!=="none";!b&&H&&J.push(...XC(p,x,C,G));const j=[p,...J],q=await h.detectOverflow(n,A),V=[];let $=((u=c.flip)==null?void 0:u.overflows)||[];if(_&&V.push(q[D]),g){const Z=KC(d,f,G);V.push(q[Z[0]],q[Z[1]])}if($=[...$,{placement:d,overflows:V}],!V.every(Z=>Z<=0)){var Q,ee;const Z=(((Q=c.flip)==null?void 0:Q.index)||0)+1,Y=j[Z];if(Y&&(!(g==="alignment"?z!==Ko(Y):!1)||$.every(K=>Ko(K.placement)===z?K.overflows[0]>0:!0)))return{data:{index:Z,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===z||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{}}}},ix=new Set(["left","top"]);async function nx(o,n){const{placement:l,platform:u,elements:d}=o,c=await(u.isRTL==null?void 0:u.isRTL(d.floating)),f=Cn(l),p=au(l),h=Ko(l)==="y",k=ix.has(f)?-1:1,_=c&&h?-1:1,g=tu(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*k}:{x:b*k,y:S*_}}const sx=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(n){var l,u;const{x:d,y:c,placement:f,middlewareData:p}=n,h=await nx(n,o);return f===((l=p.offset)==null?void 0:l.placement)&&(u=p.arrow)!=null&&u.alignmentOffset?{}:{x:d+h.x,y:c+h.y,data:{...h,placement:f}}}}},rx=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(n){const{x:l,y:u,placement:d,platform:c}=n,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:z=>{let{x:L,y:G}=z;return{x:L,y:G}}},...k}=tu(o,n),_={x:l,y:u},g=await c.detectOverflow(n,k),b=Ko(d),S=Pb(b);let C=_[S],x=_[b];const A=(z,L)=>GC(L+g[z==="y"?"top":"left"],L,L-g[z==="y"?"bottom":"right"]);f&&(C=A(S,C)),p&&(x=A(b,x));const D=h.fn({...n,[S]:C,[b]:x});return{...D,data:{x:D.x-l,y:D.y-u,enabled:{[S]:f,[b]:p}}}}}};function ou(){return typeof window<"u"}function zn(o){return Vb(o)?(o.nodeName||"").toLowerCase():"#document"}function ra(o){var n;return(o==null||(n=o.ownerDocument)==null?void 0:n.defaultView)||window}function Wo(o){var n;return(n=(Vb(o)?o.ownerDocument:o.document)||window.document)==null?void 0:n.documentElement}function Vb(o){return ou()?o instanceof Node||o instanceof ra(o).Node:!1}function Qa(o){return ou()?o instanceof Element||o instanceof ra(o).Element:!1}function Zo(o){return ou()?o instanceof HTMLElement||o instanceof ra(o).HTMLElement:!1}function P_(o){return!ou()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof ra(o).ShadowRoot}function iu(o){const{overflow:n,overflowX:l,overflowY:u,display:d}=Wa(o);return/auto|scroll|overlay|hidden|clip/.test(n+u+l)&&d!=="inline"&&d!=="contents"}function lx(o){return/^(table|td|th)$/.test(zn(o))}function nu(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}const ux=/transform|translate|scale|rotate|perspective|filter/,dx=/paint|layout|strict|content/,wi=o=>!!o&&o!=="none";let em;function jm(o){const n=Qa(o)?Wa(o):o;return wi(n.transform)||wi(n.translate)||wi(n.scale)||wi(n.rotate)||wi(n.perspective)||!Dm()&&(wi(n.backdropFilter)||wi(n.filter))||ux.test(n.willChange||"")||dx.test(n.contain||"")}function cx(o){let n=xi(o);for(;Zo(n)&&!Ls(n);){if(jm(n))return n;if(nu(n))return null;n=xi(n)}return null}function Dm(){return em==null&&(em=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),em}function Ls(o){return/^(html|body|#document)$/.test(zn(o))}function Wa(o){return ra(o).getComputedStyle(o)}function su(o){return Qa(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function xi(o){if(zn(o)==="html")return o;const n=o.assignedSlot||o.parentNode||P_(o)&&o.host||Wo(o);return P_(n)?n.host:n}function Gb(o){const n=xi(o);return Ls(n)?(o.ownerDocument||o).body:Zo(n)&&iu(n)?n:Gb(n)}function Kb(o,n,l){var u;n===void 0&&(n=[]);const d=Gb(o),c=d===((u=o.ownerDocument)==null?void 0:u.body),f=ra(d);return c?(ym(f),n.concat(f,f.visualViewport||[],iu(d)?d:[],[])):n.concat(d,Kb(d,[]))}function ym(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function Yb(o){const n=Wa(o);let l=parseFloat(n.width)||0,u=parseFloat(n.height)||0;const d=Zo(o),c=d?o.offsetWidth:l,f=d?o.offsetHeight:u,p=Hl(l)!==c||Hl(u)!==f;return p&&(l=c,u=f),{width:l,height:u,$:p}}function Qb(o){return Qa(o)?o:o.contextElement}function Mn(o){const n=Qb(o);if(!Zo(n))return ho(1);const l=n.getBoundingClientRect(),{width:u,height:d,$:c}=Yb(n);let f=(c?Hl(l.width):l.width)/u,p=(c?Hl(l.height):l.height)/d;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const mx=ho(0);function Wb(o){const n=ra(o);return!Dm()||!n.visualViewport?mx:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function px(o,n,l){return n===void 0&&(n=!1),!!l&&n&&l===ra(o)}function Is(o,n,l,u){n===void 0&&(n=!1),l===void 0&&(l=!1);const d=o.getBoundingClientRect(),c=Qb(o);let f=ho(1);n&&(u?Qa(u)&&(f=Mn(u)):f=Mn(o));const p=px(c,l,u)?Wb(c):ho(0);let h=(d.left+p.x)/f.x,k=(d.top+p.y)/f.y,_=d.width/f.x,g=d.height/f.y;if(c&&u){const b=ra(c),S=Qa(u)?ra(u):u;let C=b,x=ym(C);for(;x&&S!==C;){const A=Mn(x),D=x.getBoundingClientRect(),z=Wa(x),L=D.left+(x.clientLeft+parseFloat(z.paddingLeft))*A.x,G=D.top+(x.clientTop+parseFloat(z.paddingTop))*A.y;h*=A.x,k*=A.y,_*=A.x,g*=A.y,h+=L,k+=G,C=ra(x),x=ym(C)}}return Vl({width:_,height:g,x:h,y:k})}function ru(o,n){const l=su(o).scrollLeft;return n?n.left+l:Is(Wo(o)).left+l}function Zb(o,n){const l=o.getBoundingClientRect(),u=l.left+n.scrollLeft-ru(o,l),d=l.top+n.scrollTop;return{x:u,y:d}}function fx(o){let{elements:n,rect:l,offsetParent:u,strategy:d}=o;const c=d==="fixed",f=Wo(u),p=n?nu(n.floating):!1;if(u===f||p&&c)return l;let h={scrollLeft:0,scrollTop:0},k=ho(1);const _=ho(0),g=Zo(u);if((g||!c)&&((zn(u)!=="body"||iu(f))&&(h=su(u)),g)){const S=Is(u);k=Mn(u),_.x=S.x+u.clientLeft,_.y=S.y+u.clientTop}const b=f&&!g&&!c?Zb(f,h):ho(0);return{width:l.width*k.x,height:l.height*k.y,x:l.x*k.x-h.scrollLeft*k.x+_.x+b.x,y:l.y*k.y-h.scrollTop*k.y+_.y+b.y}}function gx(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function hx(o){const n=su(o),l=o.ownerDocument.body,u=Sn(o.scrollWidth,o.clientWidth,l.scrollWidth,l.clientWidth),d=Sn(o.scrollHeight,o.clientHeight,l.scrollHeight,l.clientHeight);let c=-n.scrollLeft+ru(o);const f=-n.scrollTop;return Wa(l).direction==="rtl"&&(c+=Sn(o.clientWidth,l.clientWidth)-u),{width:u,height:d,x:c,y:f}}const _x=25;function vx(o,n,l){l===void 0&&(l="viewport");const u=l==="layoutViewport",d=ra(o),c=Wo(o),f=d.visualViewport;let p=c.clientWidth,h=c.clientHeight,k=0,_=0;if(f){const b=!Dm()||n==="fixed";u?b||(k=-f.offsetLeft,_=-f.offsetTop):(p=f.width,h=f.height,b&&(k=f.offsetLeft,_=f.offsetTop))}if(ru(c)<=0){const b=c.ownerDocument,S=b.body,C=getComputedStyle(S),x=b.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,A=Math.abs(c.clientWidth-S.clientWidth-x),D=getComputedStyle(c).scrollbarGutter==="stable both-edges"?A/2:A;D<=_x&&(p-=D)}return{width:p,height:h,x:k,y:_}}function bx(o,n){const l=Is(o,!0,n==="fixed"),u=l.top+o.clientTop,d=l.left+o.clientLeft,c=Mn(o),f=o.clientWidth*c.x,p=o.clientHeight*c.y,h=d*c.x,k=u*c.y;return{width:f,height:p,x:h,y:k}}function H_(o,n,l){let u;if(n==="viewport"||n==="layoutViewport")u=vx(o,l,n);else if(n==="document")u=hx(Wo(o));else if(Qa(n))u=bx(n,l);else{const d=Wb(o);u={x:n.x-d.x,y:n.y-d.y,width:n.width,height:n.height}}return Vl(u)}function yx(o,n){const l=n.get(o);if(l)return l;let u=Kb(o,[]).filter(p=>Qa(p)&&zn(p)!=="body"),d=null;const c=Wa(o).position==="fixed";let f=c?xi(o):o;for(;Qa(f)&&!Ls(f);){const p=Wa(f),h=jm(f),k=d?d.position:c?"fixed":"";!h&&(k==="fixed"||k==="absolute"&&p.position==="static")?u=u.filter(g=>g!==f):d=p,f=xi(f)}return n.set(o,u),u}function kx(o){let{element:n,boundary:l,rootBoundary:u,strategy:d}=o;const f=[...l==="clippingAncestors"?nu(n)?[]:yx(n,this._c):[].concat(l),u],p=H_(n,f[0],d);let h=p.top,k=p.right,_=p.bottom,g=p.left;for(let b=1;b<f.length;b++){const S=H_(n,f[b],d);h=Sn(S.top,h),k=vm(S.right,k),_=vm(S.bottom,_),g=Sn(S.left,g)}return{width:k-g,height:_-h,x:g,y:h}}function wx(o){const{width:n,height:l}=Yb(o);return{width:n,height:l}}function Sx(o,n,l){const u=Zo(n),d=Wo(n),c=l==="fixed",f=Is(o,!0,c,n);let p={scrollLeft:0,scrollTop:0};const h=ho(0);if((u||!c)&&((zn(n)!=="body"||iu(d))&&(p=su(n)),u)){const b=Is(n,!0,c,n);h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}!u&&d&&(h.x=ru(d));const k=d&&!u&&!c?Zb(d,p):ho(0),_=f.left+p.scrollLeft-h.x-k.x,g=f.top+p.scrollTop-h.y-k.y;return{x:_,y:g,width:f.width,height:f.height}}function tm(o){return Wa(o).position==="static"}function F_(o,n){if(!Zo(o)||Wa(o).position==="fixed")return null;if(n)return n(o);let l=o.offsetParent;return Wo(o)===l&&(l=l.ownerDocument.body),l}function Xb(o,n){const l=ra(o);if(nu(o))return l;if(!Zo(o)){let d=xi(o);for(;d&&!Ls(d);){if(Qa(d)&&!tm(d))return d;d=xi(d)}return l}let u=F_(o,n);for(;u&&lx(u)&&tm(u);)u=F_(u,n);return u&&Ls(u)&&tm(u)&&!jm(u)?l:u||cx(o)||l}const Mx=async function(o){const n=this.getOffsetParent||Xb,l=this.getDimensions,u=await l(o.floating);return{reference:Sx(o.reference,await n(o.floating),o.strategy),floating:{x:0,y:0,width:u.width,height:u.height}}};function Ax(o){return Wa(o).direction==="rtl"}const Cx={convertOffsetParentRelativeRectToViewportRelativeRect:fx,getDocumentElement:Wo,getClippingRect:kx,getOffsetParent:Xb,getElementRects:Mx,getClientRects:gx,getDimensions:wx,getScale:Mn,isElement:Qa,isRTL:Ax},xx=sx,zx=rx,Tx=ox,Nx=(o,n,l)=>{const u=new Map,d=l??{},c={...Cx,...d.platform,_c:u};return ax(o,n,{...d,platform:c})};var wn=xm(),Ex=typeof document<"u",jx=function(){},Ol=Ex?y.useLayoutEffect:jx;function Gl(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 l,u,d;if(o&&n&&typeof o=="object"){if(Array.isArray(o)){if(l=o.length,l!==n.length)return!1;for(u=l;u--!==0;)if(!Gl(o[u],n[u]))return!1;return!0}if(d=Object.keys(o),l=d.length,l!==Object.keys(n).length)return!1;for(u=l;u--!==0;)if(!{}.hasOwnProperty.call(n,d[u]))return!1;for(u=l;u--!==0;){const c=d[u];if(!(c==="_owner"&&o.$$typeof)&&!Gl(o[c],n[c]))return!1}return!0}return o!==o&&n!==n}function Jb(o){return typeof window>"u"?1:(o.ownerDocument.defaultView||window).devicePixelRatio||1}function V_(o,n){const l=Jb(o);return Math.round(n*l)/l}function am(o){const n=y.useRef(o);return Ol(()=>{n.current=o}),n}function lu(o){o===void 0&&(o={});const{placement:n="bottom",strategy:l="absolute",middleware:u=[],platform:d,elements:{reference:c,floating:f}={},transform:p=!0,whileElementsMounted:h,open:k}=o,[_,g]=y.useState({x:0,y:0,strategy:l,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=y.useState(u);Gl(b,u)||S(u);const[C,x]=y.useState(null),[A,D]=y.useState(null),z=y.useCallback(K=>{K!==H.current&&(H.current=K,x(K))},[]),L=y.useCallback(K=>{K!==j.current&&(j.current=K,D(K))},[]),G=c||C,J=f||A,H=y.useRef(null),j=y.useRef(null),q=y.useRef(_),V=h!=null,$=am(h),Q=am(d),ee=am(k),ae=y.useCallback(()=>{if(!H.current||!j.current)return;const K={placement:n,strategy:l,middleware:b};Q.current&&(K.platform=Q.current),Nx(H.current,j.current,K).then(ie=>{const ne={...ie,isPositioned:ee.current!==!1};Z.current&&!Gl(q.current,ne)&&(q.current=ne,wn.flushSync(()=>{g(ne)}))})},[b,n,l,Q,ee]);Ol(()=>{k===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,g(K=>({...K,isPositioned:!1})))},[k]);const Z=y.useRef(!1);Ol(()=>(Z.current=!0,()=>{Z.current=!1}),[]),Ol(()=>{if(G&&(H.current=G),J&&(j.current=J),G&&J){if($.current)return $.current(G,J,ae);ae()}},[G,J,ae,$,V]);const Y=y.useMemo(()=>({reference:H,floating:j,setReference:z,setFloating:L}),[z,L]),I=y.useMemo(()=>({reference:G,floating:J}),[G,J]),T=y.useMemo(()=>{const K={position:l,left:0,top:0};if(!I.floating)return K;const ie=V_(I.floating,_.x),ne=V_(I.floating,_.y);return p?{...K,transform:"translate("+ie+"px, "+ne+"px)",...Jb(I.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:ie,top:ne}},[l,p,I.floating,_.x,_.y]);return y.useMemo(()=>({..._,update:ae,refs:Y,elements:I,floatingStyles:T}),[_,ae,Y,I,T])}const Dx=(o,n)=>{const l=xx(o);return{name:l.name,fn:l.fn,options:[o,n]}},uu=(o,n)=>{const l=zx(o);return{name:l.name,fn:l.fn,options:[o,n]}},Ox=(o,n)=>{const l=Tx(o);return{name:l.name,fn:l.fn,options:[o,n]}};function qx({children:o,title:n,style:l,placement:u,subtitle:d}){const[c,f]=y.useState(!1),[p,h]=y.useState(!1),[k,_]=y.useState(null),g=y.useRef(`tooltip-${Math.random()}`),b=y.useRef(null),{x:S,y:C,refs:x,strategy:A,placement:D}=lu({placement:u||"bottom",middleware:[Ox(),Dx(15),uu()],elements:{reference:k}}),z=()=>{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)},J=()=>{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:l,onMouseEnter:z,onMouseLeave:L,onFocus:G,onBlur:J,ref:_,"aria-describedby":g.current,children:o}),(c||p)&&w.jsxs("span",{ref:x.setFloating,style:{position:A,top:C??"",left:S??"",display:"flex",flexFlow:"column"},className:"tooltipTitle","data-status":H(),"data-placement":D,children:[n,w.jsx("span",{style:{fontSize:"8px"},children:d})]})]})}const ht=y.memo(qx),Us=y.forwardRef(({icon:o,label:n,type:l,iconPlacement:u,onClick:d,active:c,disabled:f,tooltipTitle:p,tooltipKey:h,href:k,style:_},g)=>{let b;switch(l){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"}u==="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:k,style:_,target:"_blank",rel:"noopener noreferrer",children:[o,n]}),x=w.jsx(ht,{title:p,children:w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:k,target:"_blank",rel:"noopener noreferrer",style:_,children:[o,n]})},h);switch(l){case"linkIconButton":return x;case"linkButton":return C;case"icon":return w.jsx(ht,{title:p,children:S},h);default:return S}});Us.displayName="Button";function Rx({urlError:o,iconError:n,addLink:l,closeModal:u,edit:d,editData:c,editLink:f}){const[p,h]=y.useState(d?c.name:""),[k,_]=y.useState(d?c.url:""),[g,b]=y.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:()=>u(),children:w.jsx(Bs,{})})})]}),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:k,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(Us,{type:"settings",onClick:()=>f(c,p,k,g),icon:w.jsx(T_,{}),label:pe.getMessage("modals.main.settings.sections.quicklinks.edit")}):w.jsx(Us,{type:"settings",onClick:()=>l(p,k,g),icon:w.jsx(T_,{}),label:pe.getMessage("widgets.quicklinks.add")})]})]})}const cN=y.memo(Rx),Bx=[{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}],Lx=[{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 $b(o){localStorage.clear(),Bx.forEach(u=>localStorage.setItem(u.name,u.value));const n=Lx.map(({value:u})=>u),l=navigator.languages&&navigator.languages.find(u=>u.replace("-","_")&&n.includes(u))||navigator.language.replace("-","_");n.includes(l)?localStorage.setItem("language",l):localStorage.setItem("language","en_GB"),localStorage.setItem("tabName",pe.getMessage("tabname")),o&&localStorage.setItem("showWelcome",!1),localStorage.setItem("firstRun",!0)}function Ix(o,n="file",l="text/json"){typeof o=="object"&&(o=JSON.stringify(o,void 0,4));const u=new Blob([o],{type:l}),d=document.createEvent("MouseEvents"),c=document.createElement("a");c.href=window.URL.createObjectURL(u),c.download=n,c.dataset.downloadurl=[l,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 G_(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 l=localStorage.getItem("customcss");l&&document.head.insertAdjacentHTML("beforeend",'<style id="customcss">'+l+"</style>");const u=localStorage.getItem("font");u&&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:"找不到應用程式連結"}}},IM=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"}}`),UM={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"},hb={tabname:BM,widgets:LM,modals:IM,toasts:UM};function Nl(o){return new h0("en_GB",{ar:Lv,arz:Iv,az:Uv,azb:Pv,bn:Hv,de_DE:Fv,el:Vv,en_GB:Gv,en_US:Kv,es:Yv,es_419:Qv,et:Wv,fa:Zv,fr:Xv,hu:Jv,id_ID:$v,ja:eb,lt:tb,lv:ab,nl:ob,no:ib,peo:nb,pt:sb,pt_BR:rb,ru:lb,sl:ub,sv:db,ta:cb,tr_TR:mb,uk:pb,vi:fb,zh_CN:gb,zh_Hant:hb})}const PM={ar:Lv,arz:Iv,az:Uv,azb:Pv,bn:Hv,de_DE:Fv,el:Vv,en_GB:Gv,en_US:Kv,es:Yv,es_419:Qv,et:Wv,fa:Zv,fr:Xv,hu:Jv,id_ID:$v,ja:eb,lt:tb,lv:ab,nl:ob,no:ib,peo:nb,pt:sb,pt_BR:rb,ru:lb,sl:ub,sv:db,ta:cb,tr_TR:mb,uk:pb,vi:fb,zh_CN:gb,zh_Hant:hb},HM="https://webbrain.one",FM="https://webbrain.one/privacy",VM="https://github.com/esokullu/webbrain",GM="https://github.com/esokullu/webbrain/issues/new",KM="https://github.com/mue/mue",YM="7.6.0",QM="1.0.0",WM=Object.freeze(Object.defineProperty({__proto__:null,BUG_REPORT:GM,MUE_REPO_URL:KM,MUE_VERSION:YM,PRIVACY_URL:FM,REPO_URL:VM,VERSION:QM,WEBSITE_URL:HM},Symbol.toStringTag,{value:"Module"}));class ZM{static async postEvent(){}static async tabLoad(){}}const pe={language:{},languagecode:"",stats:ZM,constants:WM};class ye{static listeners={};static on(n,l){document.addEventListener(n,u=>{l(u.detail)}),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push(l)}static emit(n,l){document.dispatchEvent(new CustomEvent(n,{detail:l}))}static off(n,l){document.removeEventListener(n,l),this.listeners[n]&&(this.listeners[n]=this.listeners[n].filter(u=>u!==l))}static once(n,l){const u=d=>{l(d.detail),this.off(n,u)};document.addEventListener(n,u),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push({callback:l,listener:u})}static prepend(n,l){const u=d=>{l(d.detail)};document.addEventListener(n,u,!0),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].unshift({callback:l,listener:u})}static prependOnce(n,l){const u=d=>{l(d.detail),this.off(n,u)};document.addEventListener(n,u,!0),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].unshift({callback:l,listener:u})}static getListeners(n){return this.listeners[n]?this.listeners[n]:[]}static eventNames(){return Object.keys(this.listeners)}static removeAllListeners(){Object.keys(this.listeners).forEach(n=>{this.listeners[n].forEach(({listener:l})=>{document.removeEventListener(n,l)})}),this.listeners={}}}const XM={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 _b(){let o;try{o=String(pm?.getItem("wbLocale")||"").trim()}catch{o=""}return o||String(globalThis.navigator?.language||"en").slice(0,2).toLowerCase()}function JM(){return XM[_b()]||"en_GB"}const $M=["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"],eA={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"]},A_=Object.fromEntries(Object.entries(eA).map(([o,n])=>[o,Object.fromEntries($M.map((l,u)=>[`wb.${l}`,n[u]]))]));function Ea(o,n=_b()){return A_[n]?.[o]??A_.en[o]??o}const vb=o=>typeof o=="string"&&o.startsWith("wb."),bb=y.createContext();function tA({children:o,initialLanguage:n}){const[l,u]=y.useState(n),d=y.useRef(Nl());y.useEffect(()=>{l!==n&&(d.current=Nl()),pe.language=d.current,pe.languagecode=l,document.documentElement.lang=l.replace("_","-")},[l,n]);const c=y.useCallback(h=>{d.current=Nl(),pe.language=d.current,pe.languagecode=h,document.documentElement.lang=h.replace("_","-");const k=localStorage.getItem("tabName"),_=d.current?.getMessage(l,"tabname");if(k===_||!k){const g=PM[h.replace("-","_")]?.tabname||d.current?.getMessage(h,"tabname")||"Mue";localStorage.setItem("tabName",g),document.title=g}localStorage.setItem("language",h),localStorage.removeItem("currentWeather"),u(h)},[l]),f=y.useCallback((h,k={})=>vb(h)?Ea(h):d.current?d.current.getMessage(l,h,k):h,[l]);y.useEffect(()=>{const h=k=>{k?.language&&c(k.language)};return ye.on("languageChange",h),()=>{ye.off("languageChange",h)}},[c]),y.useEffect(()=>{pe.getMessage=(h,k={})=>f(h,k)},[f]);const p=y.useMemo(()=>({language:l,languagecode:l,changeLanguage:c,t:f}),[l,c,f]);return w.jsx(bb.Provider,{value:p,children:o})}function yb(){const o=y.useContext(bb);if(!o)throw new Error("useTranslation must be used within a TranslationProvider");return o}function Qo(){const{t:o}=yb();return o}function aA({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 oA=y.memo(aA);var kb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},C_=_e.createContext&&_e.createContext(kb),iA=["attr","size","title"];function nA(o,n){if(o==null)return{};var l,u,d=sA(o,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(u=0;u<c.length;u++)l=c[u],n.indexOf(l)===-1&&{}.propertyIsEnumerable.call(o,l)&&(d[l]=o[l])}return d}function sA(o,n){if(o==null)return{};var l={};for(var u in o)if({}.hasOwnProperty.call(o,u)){if(n.indexOf(u)!==-1)continue;l[u]=o[u]}return l}function Bl(){return Bl=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var u in l)({}).hasOwnProperty.call(l,u)&&(o[u]=l[u])}return o},Bl.apply(null,arguments)}function x_(o,n){var l=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);n&&(u=u.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),l.push.apply(l,u)}return l}function Ll(o){for(var n=1;n<arguments.length;n++){var l=arguments[n]!=null?arguments[n]:{};n%2?x_(Object(l),!0).forEach(function(u){rA(o,u,l[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(l)):x_(Object(l)).forEach(function(u){Object.defineProperty(o,u,Object.getOwnPropertyDescriptor(l,u))})}return o}function rA(o,n,l){return(n=lA(n))in o?Object.defineProperty(o,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[n]=l,o}function lA(o){var n=uA(o,"string");return typeof n=="symbol"?n:n+""}function uA(o,n){if(typeof o!="object"||!o)return o;var l=o[Symbol.toPrimitive];if(l!==void 0){var u=l.call(o,n);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function wb(o){return o&&o.map((n,l)=>_e.createElement(n.tag,Ll({key:l},n.attr),wb(n.child)))}function re(o){return n=>_e.createElement(dA,Bl({attr:Ll({},o.attr)},n),wb(o.child))}function dA(o){var n=l=>{var u=o.attr,d=o.size,c=o.title,f=nA(o,iA),p=d||l.size||"1em",h;return l.className&&(h=l.className),o.className&&(h=(h?h+" ":"")+o.className),_e.createElement("svg",Bl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},l.attr,u,f,{className:h,style:Ll(Ll({color:o.color||l.color},l.style),o.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),c&&_e.createElement("title",null,c),o.children)};return C_!==void 0?_e.createElement(C_.Consumer,null,l=>n(l)):n(kb)}function cA(o){return re({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 RT(o){return re({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 BT(o){return re({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 Rs(o){return re({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 mA(o){return re({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 Sb(o){return re({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 Bs(o){return re({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 pA(o){return re({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 LT(o){return re({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"},child:[]}]})(o)}function zm(o){return re({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 IT(o){return re({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 Mb(o){return re({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 fA(o){return re({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 gA(o){return re({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 UT(o){return re({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 hA(o){return re({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 _A(o){return re({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 PT(o){return re({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 HT(o){return re({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 FT(o){return re({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 vA(o){return re({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 bA(o){return re({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 Ab(o){return re({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 yA(o){return re({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 VT(o){return re({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 z_(o){return re({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 Cb(o){return re({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 GT(o){return re({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 kA(o){return re({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 KT(o){return re({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 wA(o){return re({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 T_(o){return re({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 SA(o){return re({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 YT(o){return re({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 MA(o){return re({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 AA(o){return re({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 QT(o){return re({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 CA(o){return re({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 WT(o){return re({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 ZT(o){return re({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 xb(o){return re({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 xA(o){return re({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 zA(o){return re({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 TA(o){return re({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 XT(o){return re({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 NA(o){return re({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 Tm(o){return re({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 EA(o){return re({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 jA(o){return re({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 DA(o){return re({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 OA(o){return re({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 qA(o){return re({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 RA(o){return re({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 N_(o){return re({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 JT(o){return re({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 E_(o){return re({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 BA(o){return re({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 $T(o){return re({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 eN(o){return re({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 tN(o){return re({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 LA(o){return re({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 aN(o){return re({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},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 IA(o){return re({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 UA(o){return re({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 oN(o){return re({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 iN(o){return re({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 PA(o){return re({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 HA(o){return re({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 FA(o){return re({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 VA(o){return re({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:gA,LIBRARY:RA,TASKBOX:Ab,DISCOVER:jA,NAVBAR:mA,GREETING:cA,TIME:CA,QUOTE:LA,QUICKLINKS:kA,DATE:OA,MESSAGE:IA,BACKGROUND:BA,SEARCH:Tm,WEATHER:bA,APPEARANCE:yA,LANGUAGE:TA,ADVANCED:PA,EXPERIMENTAL:qA,STATS:VA,CHANGELOG:UA,ABOUT:EA,ADDED:HA,CREATE:SA,OVERVIEW:zA,COLLECTIONS:_A},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"},nN=(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],GA=[{tab:Yo.SETTINGS,icon:Re.SETTINGS,messageKey:"modals.main.navbar.settings"}],sN=["modals.main.settings.sections.appearance.title","modals.main.settings.sections.advanced.title"],Il=(o=window.location.hash)=>{if(!o||o==="#")return null;const[n,l,u]=o.slice(1).split("/");return n!==Yo.SETTINGS?null:{tab:n,section:l||void 0,subSection:u||void 0}},Ul=(o,n=!0)=>{window.history.pushState?n?window.history.pushState(null,null,o):window.history.replaceState(null,null,o):window.location.hash=o},KA=()=>Il()!==null,YA="MueCustomBackgrounds",QA=1,Yt="backgrounds";function xn(){return new Promise((o,n)=>{const l=indexedDB.open(YA,QA);l.onerror=()=>n(l.error),l.onsuccess=()=>o(l.result),l.onupgradeneeded=u=>{const d=u.target.result;d.objectStoreNames.contains(Yt)||d.createObjectStore(Yt,{keyPath:"id",autoIncrement:!0}).createIndex("url","url",{unique:!1})}})}async function zb(){try{const u=(await xn()).transaction(Yt,"readonly").objectStore(Yt).getAll();return new Promise((d,c)=>{u.onsuccess=()=>{const f=u.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))},u.onerror=()=>c(u.error)})}catch(o){return console.error("Error getting backgrounds from IndexedDB:",o),[]}}async function WA(){return(await zb()).map(n=>n.url||n)}async function ZA(o){const u=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),d=typeof o=="string"?{url:o,name:"Image",uploadDate:Date.now(),folder:""}:{...o,uploadDate:o.uploadDate||Date.now()},c=u.add(d);return new Promise((f,p)=>{c.onsuccess=()=>f(c.result),c.onerror=()=>p(c.error)})}async function rN(o){const u=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),d=u.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result;if(p[o]){const h=u.delete(p[o].id);h.onsuccess=()=>c(),h.onerror=()=>f(h.error)}else c()},d.onerror=()=>f(d.error)})}async function lN(o){const u=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),d=u.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result,h=o.filter(g=>p[g]).map(g=>p[g].id);let k=0;const _=h.length;if(_===0){c();return}h.forEach(g=>{const b=u.delete(g);b.onsuccess=()=>{k++,k===_&&c()},b.onerror=()=>f(b.error)})},d.onerror=()=>f(d.error)})}async function XA(){const u=(await xn()).transaction(Yt,"readonly").objectStore(Yt).count();return new Promise((d,c)=>{u.onsuccess=()=>d(u.result),u.onerror=()=>c(u.error)})}async function uN(o,n){const d=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),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 k=d.put(h);k.onsuccess=()=>f(),k.onerror=()=>p(k.error)}else p(new Error("Background not found"))},c.onerror=()=>p(c.error)})}async function dN(){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(u=>u&&u.trim()!==""),n.length===0||await XA()>0)return!1;for(const u of n)await ZA(u);return console.log(`Migrated ${n.length} backgrounds from localStorage to IndexedDB`),localStorage.setItem("customBackgroundMigrated","true"),!0}catch(o){return console.error("Error migrating backgrounds:",o),!1}}function JA({photoInfo:o,currentAPI:n,url:l}){const u=localStorage.getItem("backgroundType")==="custom",[d,c]=y.useState([]),[f,p]=y.useState(!0);y.useEffect(()=>{(async()=>{if(u)try{const g=await WA();c(g||[])}catch(g){console.error("Failed to load custom backgrounds:",g),c([])}p(!1)})()},[u]);const h=u&&!f&&(!d||d.length===0),k=()=>{Ul("#settings/background/source"),ye.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:k,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(oA,{info:o,api:n,url:l})]})}const $A=y.memo(JA);function eC({url:o,filterStyle:n}){const l=y.useMemo(()=>localStorage.getItem("backgroundVideoMute")==="true",[]),u=y.useMemo(()=>localStorage.getItem("backgroundVideoLoop")==="true",[]);return w.jsx("video",{autoPlay:!0,muted:l,loop:u,style:n,id:"backgroundVideo",children:w.jsx("source",{src:o})})}const tC=y.memo(eC);function aC(){const[o,n]=y.useState({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!1,offline:!1,photographerURL:"",photoURL:""}}),l=y.useCallback(d=>{n(c=>({...c,...d,photoInfo:{...c.photoInfo,...d.photoInfo||{}}}))},[]),u=y.useCallback(()=>{n({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!0}})},[]);return{backgroundData:o,updateBackground:l,resetBackground:u}}const oC={photo:[5]},Zc={"Ryan Hutton":{photo:[1]},"Francesco De Tommaso":{photo:[2]},"Andy Vu":{photo:[3]},"Sergi Ferrete":{photo:[4]},Pixabay:oC};function Tb(o){const n=Object.keys(Zc),l=n[Math.floor(Math.random()*n.length)],d={url:`src/assets/offline-images/${Zc[l].photo[Math.floor(Math.random()*Zc[l].photo.length)]}.webp`,type:o,photoInfo:{offline:!0,credit:l}};return localStorage.setItem("currentBackground",JSON.stringify(d)),d}function iC(o){const n=()=>"#000000".replace(/0/g,()=>(~~(Math.random()*16)).toString(16));let l=`background:${n()};`;if(o==="random_gradient"){const u=["to right","to left","to bottom","to top","to bottom right","to bottom left","to top right","to top left"];l=`background:linear-gradient(${u[Math.floor(Math.random()*u.length)]}, ${n()}, ${n()});`}return{type:"colour",style:l}}function Nb(o){return o.startsWith("data:video/")||o.endsWith(".mp4")||o.endsWith(".webm")||o.endsWith(".ogg")}const Eb=(o,n=null)=>{const l=localStorage.getItem(o);if(l===null||l==="null")return n;try{const u=JSON.parse(l);return u!==null?u:n}catch{return n}};async function nC(){const o=localStorage.getItem("offlineMode")==="true"||localStorage.getItem("showWelcome")==="true",n=Eb("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 l=localStorage.getItem("backgroundType");switch(l){case"api":return rC();case"colour":return sC();case"random_colour":case"random_gradient":return iC(l);case"custom":return await lC(o);default:return null}}function sC(){return{type:"colour",style:`background: ${localStorage.getItem("customBackgroundColour")||"rgb(0,0,0)"}`}}function rC(){return{...Tb("api"),currentAPI:localStorage.getItem("backgroundAPI")||"mue"}}async function lC(o){let n=await zb();if(!n||n.length===0){const c=Eb("customBackground",[]);c&&c.length>0&&(n=c.map(f=>({url:f,photoInfo:{hidden:!0}})))}if(!n||n.length===0)return null;const l=n[Math.floor(Math.random()*n.length)];if(!l)return null;const u=l.url||l;if(o&&!u.startsWith("data:"))return Tb("custom");const d={url:u,type:"custom",video:Nb(u),photoInfo:{hidden:!0,blur_hash:l.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 uC(o,n){const l=y.useRef(!1),u=y.useCallback(async()=>{if(!l.current){l.current=!0;try{if(localStorage.getItem("welcomeTab")){const p=localStorage.getItem("welcomeImage");if(p){o(JSON.parse(p));return}}const f=await nC();f&&o(f)}catch(c){console.error("Failed to load background:",c)}finally{l.current=!1}}},[o]),d=y.useCallback(()=>{n(),u()},[u,n]);return y.useEffect(()=>{const c=localStorage.getItem("backgroundchange");(!localStorage.getItem("backgroundStartTime")||c==="refresh")&&localStorage.setItem("backgroundStartTime",Date.now()),u()},[u]),{loadBackground:u,refreshBackground:d}}async function dC(o){try{const n=await fetch(o,{mode:"cors",credentials:"omit"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const l=await n.blob();return URL.createObjectURL(l)}catch{return null}}const cC="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",El=(o,n,l)=>{let u=0;for(;n<l;)u=u*83+cC.indexOf(o[n++]);return u},jb=Math.pow,Ns=Math.PI,Db=3294.6,Ob=269.025,mC=o=>o>10.31475?jb(o/Ob+.052132,2.4):o/Db,pC=o=>~~(o>1227e-8?Ob*jb(o,.416666)-13.025:o*Db+1),Pl=4096,qb=new Uint8ClampedArray(Pl+1);for(let o=0;o<=Pl;o++)qb[o]=pC(o/Pl);const Xc=o=>o<=0?0:o>=1?255:qb[o*Pl+.5|0],Es=o=>(o<0?-1:1)*o*o,j_=o=>{for(o+=Ns/2;o>Ns;)o-=Ns*2;const n=1.27323954*o-.405284735*Es(o);return .225*(Es(n)-n)+n};function fC(o){const n=El(o,2,6);return[n>>16,n>>8&255,n&255]}function gC(o,n,l,u){const d=El(o,0,1),c=d%9+1,f=~~(d/9)+1,p=c*f;let h,k,_,g,b,S,C,x,A,D,z,L;const G=(El(o,1,2)+1)/13446*(u|1),J=new Float64Array(p*3),H=fC(o);for(h=0;h<3;h++)J[h]=mC(H[h]);for(h=1;h<p;h++)L=El(o,4+h*2,6+h*2),J[h*3]=Es(~~(L/361)-9)*G,J[h*3+1]=Es(~~(L/19)%19-9)*G,J[h*3+2]=Es(L%19-9)*G;const j=new Float64Array(f*l),q=new Float64Array(c*n);for(k=0;k<f;k++)for(g=0;g<l;g++)j[k*l+g]=j_(Ns*g*k/l);for(h=0;h<c;h++)for(_=0;_<n;_++)q[h*n+_]=j_(Ns*_*h/n);const V=n*4,$=new Uint8ClampedArray(V*l),Q=new Float64Array(c*3);for(g=0;g<l;g++){for(h=0;h<c;h++){for(b=S=C=0,k=0;k<f;k++)A=j[k*l+g],D=(h+k*c)*3,b+=J[D]*A,S+=J[D+1]*A,C+=J[D+2]*A;Q[h*3]=b,Q[h*3+1]=S,Q[h*3+2]=C}for(_=0;_<n;_++){for(b=S=C=0,h=0;h<c;h++)x=q[h*n+_],D=h*3,b+=Q[D]*x,S+=Q[D+1]*x,C+=Q[D+2]*x;z=4*_+g*V,$[z]=Xc(b),$[z+1]=Xc(S),$[z+2]=Xc(C),$[z+3]=255}}return $}function hC(o,n=32,l=32){try{const u=document.createElement("canvas");u.width=n,u.height=l;const d=u.getContext("2d"),c=d.createImageData(n,l);return c.data.set(gC(o,n,l)),d.putImageData(c,0,0),u.toDataURL()}catch(u){return console.error("Failed to generate blur hash:",u),null}}function Rb(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",l=localStorage.getItem("backgroundFilter"),u=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px) brightness(${n}%)`;return l&&l!=="none"&&(d+=` ${l}(${u}%)`),d}function Bb(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",l=localStorage.getItem("backgroundFilter"),u=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px)`;l&&l!=="none"&&(d+=` ${l}(${u}%)`);const f=(100-parseInt(n,10))/100;return{backdropFilter:d,WebkitBackdropFilter:d,backgroundColor:`rgba(0, 0, 0, ${f})`}}const D_=1200;function _C(o){const n=y.useRef(null),l=y.useRef(null);y.useEffect(()=>{if(o.video)return;const u=document.getElementById("backgroundImage");return u?(l.current&&l.current.abort(),l.current=new AbortController,(async()=>{if(o.url){const c=localStorage.getItem("bgtransition")!=="false",f=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!c||f){u.style.background=`url(${o.url})`,document.querySelector(".photoInformation")?.style.setProperty("display","flex");return}let p=document.getElementById("backgroundOverlay");if(p||(p=document.createElement("div"),p.id="backgroundOverlay",u.parentNode.insertBefore(p,u.nextSibling)),o.photoInfo?.colour&&(u.style.backgroundColor=o.photoInfo.colour),o.photoInfo?.blur_hash){const g=hC(o.photoInfo.blur_hash,64,64);g&&(u.style.backgroundImage=`url(${g})`)}const h=await dC(o.url),k=h||o.url;h&&(n.current&&URL.revokeObjectURL(n.current),n.current=h);const _=new Image;_.src=k,await new Promise(g=>{_.onload=g,_.onerror=g}),p.style.transition="none",p.style.opacity="0",p.style.backgroundImage="",p.offsetHeight,p.style.backgroundImage=`url(${k})`,p.offsetHeight,p.style.transition=`opacity ${D_/1e3}s ease-in-out`,p.offsetHeight,p.style.opacity="1",setTimeout(()=>{u.style.backgroundImage=`url(${k})`,p.style.opacity="0",p.style.backgroundImage=""},D_+100)}else o.style&&u.setAttribute("style",o.style)})(),()=>{n.current&&URL.revokeObjectURL(n.current),l.current&&l.current.abort();const c=document.getElementById("backgroundOverlay");c&&c.remove()}):void 0},[o.url,o.style,o.video,o.photoInfo])}function vC(){return y.useMemo(()=>({WebkitFilter:Rb()}),[])}function bC(){return y.useMemo(()=>Bb(),[])}function yC(o,n){y.useEffect(()=>{const l=c=>{c==="welcomeLanguage"?localStorage.setItem("welcomeImage",JSON.stringify(o)):c==="background"?u():["backgroundwelcome","backgroundrefresh"].includes(c)?n():c==="backgroundeffect"&&d()},u=()=>{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"||o.photoInfo?.pun&&JSON.parse(localStorage.getItem("backgroundExclude")||"[]").includes(o.photoInfo.pun))&&n()},d=()=>{if(o.video){const c=Rb(),f=document.getElementById("backgroundVideo");f&&(f.style.webkitFilter=c)}else{const c=document.getElementById("backgroundFilterOverlay");if(c){const f=Bb();c.style.backdropFilter=f.backdropFilter,c.style.webkitBackdropFilter=f.WebkitBackdropFilter,c.style.backgroundColor=f.backgroundColor}}};return ye.on("refresh",l),()=>ye.off("refresh",l)},[o,n])}function kC(){const{backgroundData:o,updateBackground:n,resetBackground:l}=aC(),{refreshBackground:u}=uC(n,l),d=vC(),c=bC();return _C(o),yC(o,u),w.jsxs(w.Fragment,{children:[o.video?w.jsx(tC,{url:o.url,filterStyle:d}):w.jsx($A,{photoInfo:o.photoInfo,currentAPI:o.currentAPI,url:o.url}),w.jsx("div",{id:"backgroundFilterOverlay",style:c})]})}const wC=(function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"})(),SC=function(o,n){return new URL(o,n).href},O_={},Nm=function(n,l,u){let d=Promise.resolve();if(l&&l.length>0){let k=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=k(l.map(_=>{if(_=SC(_,u),_ in O_)return;O_[_]=!0;const g=_.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(u)for(let C=f.length-1;C>=0;C--){const x=f[C];if(x.href===_&&(!g||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${b}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":wC,g||(S.as="script"),S.crossOrigin="",S.href=_,h&&S.setAttribute("nonce",h),document.head.appendChild(S),g)return new Promise((C,x)=>{S.addEventListener("load",C),S.addEventListener("error",()=>x(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 Lb(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 Em(o,n){return new Date((typeof o=="string"?new Date(o):o).toLocaleString("en-US",{timeZone:n}))}function Ib(){const o=localStorage.getItem("language")?.replace(/_/g,"-")||"en-GB",n={ar:"arab",fa:"arabext",bn:"beng",hi:"deva",mr:"deva",ne:"deva",ta:"tamldec"},l=o.split("-")[0];return n[l]?`${o}-u-nu-${n[l]}`:o}function MC(o){if(localStorage.getItem("localeFormatting")==="false")return Math.round(o*100)+"%";try{return new Intl.NumberFormat(Ib(),{style:"percent",maximumFractionDigits:0}).format(o)}catch{return Math.round(o*100)+"%"}}function Ts(o){if(localStorage.getItem("localeFormatting")==="false")return String(o);try{const l=typeof o=="string"?parseInt(o,10):o;return isNaN(l)?String(o):new Intl.NumberFormat(Ib(),{useGrouping:!1}).format(l)}catch{return String(o)}}const AC=y.lazy(()=>Nm(()=>import("./index-BXa4CzFe.js"),[],import.meta.url));function CC({time:o}){const n=l=>localStorage.getItem(l)==="true";return w.jsx(y.Suspense,{fallback:w.jsx(w.Fragment,{}),children:w.jsx("div",{className:`clockBackground ${n("roundClock")?"round":""}`,children:w.jsx(AC,{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 xC({finalHour:o,finalMinute:n,finalSeconds:l}){const u=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:u},children:o}),w.jsx("div",{className:"minute",style:{color:d},children:n}),w.jsx("div",{className:"seconds",style:{color:c},children:l})]})}const Kt=o=>String(o).split("").map(l=>Ts(l)).join(""),zC=()=>{const[o]=y.useState(localStorage.getItem("timeType")),[n,l]=y.useState(""),[u,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(""),[k,_]=y.useState(""),[g,b]=y.useState("block"),[S,C]=y.useState("4em"),x=y.useRef(void 0),A=(D=localStorage.getItem("seconds")==="true"||localStorage.getItem("timeType")==="analogue"?1e3-Date.now()%1e3:6e4-Date.now()%6e4)=>{x.current=setTimeout(()=>{let z=new Date;const L=localStorage.getItem("timezone");switch(L&&L!=="auto"&&(z=Em(z,L)),localStorage.getItem("timeType")){case"percentageComplete":l(MC(z.getHours()/24)),_("");break;case"analogue":Nm(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),l(z);break;default:{let G,J="";const H=localStorage.getItem("zero");if(localStorage.getItem("seconds")==="true"){const j=("00"+z.getSeconds()).slice(-2);J=`:${Kt(j)}`,h(Kt(j))}if(localStorage.getItem("timeformat")==="twentyfourhour"){const j=("00"+z.getMinutes()).slice(-2);if(H==="true"){const q=("00"+z.getHours()).slice(-2);G=`${Kt(q)}:${Kt(j)}${J}`,d(Kt(q)),f(Kt(j))}else{const q=z.getHours();G=`${Ts(q)}:${Kt(j)}${J}`,d(Ts(q)),f(Kt(j))}l(G),_("")}else{let j=z.getHours();j>12?j-=12:j===0&&(j=12);const q=("00"+z.getMinutes()).slice(-2);if(H==="true"){const V=("00"+j).slice(-2);G=`${Kt(V)}:${Kt(q)}${J}`,d(Kt(V)),f(Kt(q))}else G=`${Ts(j)}:${Kt(q)}${J}`,d(Ts(j)),f(Kt(q));l(G),_(z.getHours()>11?"PM":"AM")}break}}A()},D)};return y.useEffect(()=>{const D=z=>{if(z==="clock"||z==="timezone"){if(localStorage.getItem("time")==="false"){b("none");return}x.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),ye.on("refresh",D),()=>{ye.off("refresh"),x.current&&clearTimeout(x.current)}},[]),localStorage.getItem("timeType")==="analogue"?w.jsx(CC,{time:n}):localStorage.getItem("timeType")==="verticalClock"?w.jsx(xC,{finalHour:u,finalMinute:c,finalSeconds:p}):w.jsxs("span",{className:"clock clock-container",style:{display:g,fontSize:S},children:[n,w.jsx("span",{className:"ampm",children:k})]})},TC=(o,n)=>{if(!(localStorage.getItem("events")!=="false"))return n;const u=o.getMonth(),d=o.getDate(),f=JSON.parse(localStorage.getItem("customEvents")||"[]").find(p=>p.month-1===u&&p.date===d);return f&&(n=f.name),n},q_=o=>{const n=Date.now()-o.getTime(),l=new Date(n);return Math.abs(l.getUTCFullYear()-1970)},NC=()=>{const o=Qo(),[n,l]=y.useState(""),[u,d]=y.useState("block"),[c,f]=y.useState("1.6em"),p=y.useRef(),h=y.useRef(null),k=(_=6e4-Date.now()%6e4)=>{h.current=setTimeout(()=>{let g=new Date;const b=localStorage.getItem("timezone");b&&b!=="auto"&&(g=Em(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 x=localStorage.getItem("defaultGreetingMessage");x==="false"?C="":C=TC(g,C);let A="";const D=localStorage.getItem("greetingName");typeof D=="string"&&D.replace(/\s/g,"").length>0&&(A=`, ${D.trim()}`);const z=localStorage.getItem("birthdayenabled");if(x==="false"&&z!=="true"&&(A=A.replace(",","")),z==="true"){const L=new Date(localStorage.getItem("birthday"));if(L.getDate()===g.getDate()&&L.getMonth()===g.getMonth())if(localStorage.getItem("birthdayage")==="true"&&q_(L)!==0){const G=o("widgets.greeting.birthday").split(" ");C=`${G[0]} ${Lb(q_(L))} ${G[1]}`}else C=o("widgets.greeting.birthday")}l(`${C}${A}`),k()},_)};return y.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),k(0))}},g=localStorage.getItem("zoomGreeting");return f(`${1.6*Number((g||100)/100)}em`),k(0),ye.on("refresh",_),()=>{ye.off("refresh"),h.current&&clearTimeout(h.current)}},[o]),w.jsx("span",{className:"greeting",ref:p,style:{display:u,fontSize:c},children:n})},jl="wbNewtabHandoff",EC=4e3,$l=()=>typeof browser<"u"&&typeof browser?.sidebarAction?.open=="function",eu=()=>$l()?browser:typeof chrome<"u"&&chrome?.runtime?.id?chrome:null;let Dl=null;async function jC(){try{Dl=await eu()?.tabs?.getCurrent?.()??null}catch{Dl=null}return Dl}function DC({text:o,mode:n,tabId:l,now:u=Date.now()}){return{id:`nt-${u}-${Math.random().toString(36).slice(2,8)}`,tabId:l,text:String(o).slice(0,EC),mode:n==="act"?"act":"ask",createdAt:u}}function OC({text:o,mode:n},l=eu(),u=Dl){if(!l||u?.id==null)return Promise.reject(new Error("Extension API unavailable"));const d=$l();if(!d&&!l.sidePanel?.open)return Promise.reject(new Error("Side panel API unavailable"));const c=DC({text:o,mode:n,tabId:u.id}),f=Promise.resolve(l.storage.local.set({[jl]:c}));let p;try{d?p=l.sidebarAction.open():(Promise.resolve(l.sidePanel.setOptions({tabId:u.id,path:"src/ui/sidepanel.html",enabled:!0})).catch(()=>{}),p=l.sidePanel.open({tabId:u.id}))}catch(h){p=Promise.reject(h)}return Promise.all([f,p]).then(()=>(Promise.resolve(l.runtime.sendMessage({type:"WB_NEWTAB_PANEL_OPENED",tabId:u.id})).catch(()=>{}),!0),async h=>{throw await f.catch(()=>{}),await qC(l,c.id),h})}async function qC(o,n){try{const l=(await o.storage.local.get(jl))?.[jl];(!l||l.id===n)&&await o.storage.local.remove(jl)}catch{}}function RC(o=eu()){return $l()?typeof o?.search?.search=="function":typeof o?.search?.query=="function"}const R_=new Set(["http:","https:"]);function BC(o){const n=String(o||"").trim();if(!n||/\s/.test(n))return null;try{const l=new URL(n);if(/^[a-z][a-z0-9+.-]*:\/\//i.test(n))return R_.has(l.protocol)?l.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 l=new URL(`https://${n}`);return R_.has(l.protocol)?l.href:null}catch{return null}return null}async function LC(o,n=eu(),l=u=>window.location.assign(u)){const u=BC(o);if(u)return l(u),!0;if($l()&&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 IC=[{id:"ask",icon:MA},{id:"act",icon:Ab},{id:"search",icon:Tm}],Ub=()=>IC.filter(o=>o.id!=="search"||RC()),UC=()=>{const o=localStorage.getItem("taskBoxMode");return Ub().some(n=>n.id===o)?o:"ask"};function PC(){const[o,n]=y.useState(UC),[l,u]=y.useState(""),[d,c]=y.useState(""),f=y.useRef(null);y.useEffect(()=>{jC(),localStorage.getItem("taskBoxFocus")!=="false"&&f.current?.focus()},[]);const p=h=>{h.preventDefault();const k=l.trim();if(!k)return;c(""),(o==="search"?LC(k):OC({text:k,mode:o})).then(()=>{o!=="search"&&u("")}).catch(()=>c(Ea("wb.panel_failed")))};return w.jsxs("div",{className:"taskBox",children:[w.jsxs("form",{className:"taskBoxForm",onSubmit:p,children:[w.jsx("input",{ref:f,className:"taskBoxInput",type:"text",value:l,maxLength:4e3,autoComplete:"off",spellCheck:!1,placeholder:Ea(`wb.placeholder_${o}`),"aria-label":Ea(`wb.placeholder_${o}`),onChange:h=>u(h.target.value)}),w.jsx("button",{className:"taskBoxGo",type:"submit","aria-label":Ea("wb.go"),disabled:!l.trim(),children:w.jsx(Mb,{})})]}),w.jsx("div",{className:"taskBoxModes",role:"radiogroup",children:Ub().map(({id:h,icon:k})=>w.jsxs("button",{type:"button",role:"radio","aria-checked":o===h,className:o===h?"taskBoxMode active":"taskBoxMode",onClick:()=>{n(h),f.current?.focus()},children:[w.jsx(k,{}),w.jsx("span",{children:Ea(`wb.${h}`)})]},h))}),o==="act"&&w.jsx("span",{className:"taskBoxHint",children:Ea("wb.act_hint")}),d&&w.jsx("span",{className:"taskBoxHint taskBoxError",role:"alert",children:d})]})}const B_="webbrain_chat_history",Jc="records";async function HC(o=4,n=globalThis.indexedDB){if(!n?.databases)return[];if(!(await n.databases()).some(d=>d.name===B_))return[];const u=await new Promise((d,c)=>{const f=n.open(B_);f.onupgradeneeded=()=>f.transaction.abort(),f.onsuccess=()=>d(f.result),f.onerror=()=>c(f.error),f.onblocked=()=>c(new Error("blocked"))});try{return u.objectStoreNames.contains(Jc)?await new Promise((d,c)=>{const f=[],p=u.transaction([Jc],"readonly").objectStore(Jc),k=(p.indexNames.contains("updatedAt")?p.index("updatedAt"):p).openCursor(null,"prev");k.onsuccess=()=>{const _=k.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()},k.onerror=()=>c(k.error)}):[]}finally{u.close()}}const $c="../src/ui/history.html";function FC(){const[o,n]=y.useState(null);return y.useEffect(()=>{let l=!1;return HC(4).then(u=>!l&&n(u)).catch(()=>!l&&n([])),()=>{l=!0}},[]),o===null?null:w.jsxs("div",{className:"recentChats",children:[w.jsxs("div",{className:"recentChatsHeader",children:[w.jsx("span",{children:Ea("wb.recent_title")}),w.jsx("a",{href:$c,children:Ea("wb.recent_all")})]}),o.length===0?w.jsx("span",{className:"recentChatsEmpty",children:Ea("wb.recent_empty")}):w.jsx("ul",{children:o.map(l=>w.jsx("li",{children:w.jsx("a",{href:l.url?`${$c}?url=${encodeURIComponent(l.url)}`:$c,children:l.title||l.url})},l.id))})]})}const vm=Math.min,Sn=Math.max,Hl=Math.round,ho=o=>({x:o,y:o}),VC={left:"right",right:"left",bottom:"top",top:"bottom"};function GC(o,n,l){return Sn(o,vm(n,l))}function tu(o,n){return typeof o=="function"?o(n):o}function Cn(o){return o.split("-")[0]}function au(o){return o.split("-")[1]}function Pb(o){return o==="x"?"y":"x"}function Hb(o){return o==="y"?"height":"width"}function Ko(o){const n=o[0];return n==="t"||n==="b"?"y":"x"}function Fb(o){return Pb(Ko(o))}function KC(o,n,l){l===void 0&&(l=!1);const u=au(o),d=Fb(o),c=Hb(d);let f=d==="x"?u===(l?"end":"start")?"right":"left":u==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=Fl(f)),[f,Fl(f)]}function YC(o){const n=Fl(o);return[bm(o),n,bm(n)]}function bm(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}const L_=["left","right"],I_=["right","left"],QC=["top","bottom"],WC=["bottom","top"];function ZC(o,n,l){switch(o){case"top":case"bottom":return l?n?I_:L_:n?L_:I_;case"left":case"right":return n?QC:WC;default:return[]}}function XC(o,n,l,u){const d=au(o);let c=ZC(Cn(o),l==="start",u);return d&&(c=c.map(f=>f+"-"+d),n&&(c=c.concat(c.map(bm)))),c}function Fl(o){const n=Cn(o);return VC[n]+o.slice(n.length)}function JC(o){var n,l,u,d;return{top:(n=o.top)!=null?n:0,right:(l=o.right)!=null?l:0,bottom:(u=o.bottom)!=null?u:0,left:(d=o.left)!=null?d:0}}function $C(o){return typeof o!="number"?JC(o):{top:o,right:o,bottom:o,left:o}}function Vl(o){const{x:n,y:l,width:u,height:d}=o;return{width:u,height:d,top:l,left:n,right:n+u,bottom:l+d,x:n,y:l}}function U_(o,n,l){let{reference:u,floating:d}=o;const c=Ko(n),f=Fb(n),p=Hb(f),h=Cn(n),k=c==="y",_=u.x+u.width/2-d.width/2,g=u.y+u.height/2-d.height/2,b=u[p]/2-d[p]/2;let S;switch(h){case"top":S={x:_,y:u.y-d.height};break;case"bottom":S={x:_,y:u.y+u.height};break;case"right":S={x:u.x+u.width,y:g};break;case"left":S={x:u.x-d.width,y:g};break;default:S={x:u.x,y:u.y}}const C=au(n);return C&&(S[f]+=b*(C==="end"?1:-1)*(l&&k?-1:1)),S}async function ex(o,n){var l;n===void 0&&(n={});const{x:u,y:d,platform:c,rects:f,elements:p,strategy:h}=o,{boundary:k="clippingAncestors",rootBoundary:_="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=tu(n,o),C=$C(S),A=p[b?g==="floating"?"reference":"floating":g],D=Vl(await c.getClippingRect({element:(l=await(c.isElement==null?void 0:c.isElement(A)))==null||l?A:A.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:k,rootBoundary:_,strategy:h})),z=g==="floating"?{x:u,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},J=Vl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:z,offsetParent:L,strategy:h}):z);return{top:(D.top-J.top+C.top)/G.y,bottom:(J.bottom-D.bottom+C.bottom)/G.y,left:(D.left-J.left+C.left)/G.x,right:(J.right-D.right+C.right)/G.x}}const tx=50,ax=async(o,n,l)=>{const{placement:u="bottom",strategy:d="absolute",middleware:c=[],platform:f}=l,p=f.detectOverflow?f:{...f,detectOverflow:ex},h=await(f.isRTL==null?void 0:f.isRTL(n));let k=await f.getElementRects({reference:o,floating:n,strategy:d}),{x:_,y:g}=U_(k,u,h),b=u,S=0;const C={};for(let x=0;x<c.length;x++){const A=c[x];if(!A)continue;const{name:D,fn:z}=A,{x:L,y:G,data:J,reset:H}=await z({x:_,y:g,initialPlacement:u,placement:b,strategy:d,middlewareData:C,rects:k,platform:p,elements:{reference:o,floating:n}});_=L??_,g=G??g,C[D]={...C[D],...J},H&&S<tx&&(S++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(k=H.rects===!0?await f.getElementRects({reference:o,floating:n,strategy:d}):H.rects),{x:_,y:g}=U_(k,b,h)),x=-1)}return{x:_,y:g,placement:b,strategy:d,middlewareData:C}},ox=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(n){var l,u;const{placement:d,middlewareData:c,rects:f,initialPlacement:p,platform:h,elements:k}=n,{mainAxis:_=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:x=!0,...A}=tu(o,n);if((l=c.arrow)!=null&&l.alignmentOffset)return{};const D=Cn(d),z=Ko(p),L=Cn(p)===p,G=await(h.isRTL==null?void 0:h.isRTL(k.floating)),J=b||(L||!x?[Fl(p)]:YC(p)),H=C!=="none";!b&&H&&J.push(...XC(p,x,C,G));const j=[p,...J],q=await h.detectOverflow(n,A),V=[];let $=((u=c.flip)==null?void 0:u.overflows)||[];if(_&&V.push(q[D]),g){const Z=KC(d,f,G);V.push(q[Z[0]],q[Z[1]])}if($=[...$,{placement:d,overflows:V}],!V.every(Z=>Z<=0)){var Q,ee;const Z=(((Q=c.flip)==null?void 0:Q.index)||0)+1,Y=j[Z];if(Y&&(!(g==="alignment"?z!==Ko(Y):!1)||$.every(K=>Ko(K.placement)===z?K.overflows[0]>0:!0)))return{data:{index:Z,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===z||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{}}}},ix=new Set(["left","top"]);async function nx(o,n){const{placement:l,platform:u,elements:d}=o,c=await(u.isRTL==null?void 0:u.isRTL(d.floating)),f=Cn(l),p=au(l),h=Ko(l)==="y",k=ix.has(f)?-1:1,_=c&&h?-1:1,g=tu(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*k}:{x:b*k,y:S*_}}const sx=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(n){var l,u;const{x:d,y:c,placement:f,middlewareData:p}=n,h=await nx(n,o);return f===((l=p.offset)==null?void 0:l.placement)&&(u=p.arrow)!=null&&u.alignmentOffset?{}:{x:d+h.x,y:c+h.y,data:{...h,placement:f}}}}},rx=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(n){const{x:l,y:u,placement:d,platform:c}=n,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:z=>{let{x:L,y:G}=z;return{x:L,y:G}}},...k}=tu(o,n),_={x:l,y:u},g=await c.detectOverflow(n,k),b=Ko(d),S=Pb(b);let C=_[S],x=_[b];const A=(z,L)=>GC(L+g[z==="y"?"top":"left"],L,L-g[z==="y"?"bottom":"right"]);f&&(C=A(S,C)),p&&(x=A(b,x));const D=h.fn({...n,[S]:C,[b]:x});return{...D,data:{x:D.x-l,y:D.y-u,enabled:{[S]:f,[b]:p}}}}}};function ou(){return typeof window<"u"}function zn(o){return Vb(o)?(o.nodeName||"").toLowerCase():"#document"}function ra(o){var n;return(o==null||(n=o.ownerDocument)==null?void 0:n.defaultView)||window}function Wo(o){var n;return(n=(Vb(o)?o.ownerDocument:o.document)||window.document)==null?void 0:n.documentElement}function Vb(o){return ou()?o instanceof Node||o instanceof ra(o).Node:!1}function Qa(o){return ou()?o instanceof Element||o instanceof ra(o).Element:!1}function Zo(o){return ou()?o instanceof HTMLElement||o instanceof ra(o).HTMLElement:!1}function P_(o){return!ou()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof ra(o).ShadowRoot}function iu(o){const{overflow:n,overflowX:l,overflowY:u,display:d}=Wa(o);return/auto|scroll|overlay|hidden|clip/.test(n+u+l)&&d!=="inline"&&d!=="contents"}function lx(o){return/^(table|td|th)$/.test(zn(o))}function nu(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}const ux=/transform|translate|scale|rotate|perspective|filter/,dx=/paint|layout|strict|content/,wi=o=>!!o&&o!=="none";let em;function jm(o){const n=Qa(o)?Wa(o):o;return wi(n.transform)||wi(n.translate)||wi(n.scale)||wi(n.rotate)||wi(n.perspective)||!Dm()&&(wi(n.backdropFilter)||wi(n.filter))||ux.test(n.willChange||"")||dx.test(n.contain||"")}function cx(o){let n=xi(o);for(;Zo(n)&&!Ls(n);){if(jm(n))return n;if(nu(n))return null;n=xi(n)}return null}function Dm(){return em==null&&(em=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),em}function Ls(o){return/^(html|body|#document)$/.test(zn(o))}function Wa(o){return ra(o).getComputedStyle(o)}function su(o){return Qa(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function xi(o){if(zn(o)==="html")return o;const n=o.assignedSlot||o.parentNode||P_(o)&&o.host||Wo(o);return P_(n)?n.host:n}function Gb(o){const n=xi(o);return Ls(n)?(o.ownerDocument||o).body:Zo(n)&&iu(n)?n:Gb(n)}function Kb(o,n,l){var u;n===void 0&&(n=[]);const d=Gb(o),c=d===((u=o.ownerDocument)==null?void 0:u.body),f=ra(d);return c?(ym(f),n.concat(f,f.visualViewport||[],iu(d)?d:[],[])):n.concat(d,Kb(d,[]))}function ym(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function Yb(o){const n=Wa(o);let l=parseFloat(n.width)||0,u=parseFloat(n.height)||0;const d=Zo(o),c=d?o.offsetWidth:l,f=d?o.offsetHeight:u,p=Hl(l)!==c||Hl(u)!==f;return p&&(l=c,u=f),{width:l,height:u,$:p}}function Qb(o){return Qa(o)?o:o.contextElement}function Mn(o){const n=Qb(o);if(!Zo(n))return ho(1);const l=n.getBoundingClientRect(),{width:u,height:d,$:c}=Yb(n);let f=(c?Hl(l.width):l.width)/u,p=(c?Hl(l.height):l.height)/d;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const mx=ho(0);function Wb(o){const n=ra(o);return!Dm()||!n.visualViewport?mx:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function px(o,n,l){return n===void 0&&(n=!1),!!l&&n&&l===ra(o)}function Is(o,n,l,u){n===void 0&&(n=!1),l===void 0&&(l=!1);const d=o.getBoundingClientRect(),c=Qb(o);let f=ho(1);n&&(u?Qa(u)&&(f=Mn(u)):f=Mn(o));const p=px(c,l,u)?Wb(c):ho(0);let h=(d.left+p.x)/f.x,k=(d.top+p.y)/f.y,_=d.width/f.x,g=d.height/f.y;if(c&&u){const b=ra(c),S=Qa(u)?ra(u):u;let C=b,x=ym(C);for(;x&&S!==C;){const A=Mn(x),D=x.getBoundingClientRect(),z=Wa(x),L=D.left+(x.clientLeft+parseFloat(z.paddingLeft))*A.x,G=D.top+(x.clientTop+parseFloat(z.paddingTop))*A.y;h*=A.x,k*=A.y,_*=A.x,g*=A.y,h+=L,k+=G,C=ra(x),x=ym(C)}}return Vl({width:_,height:g,x:h,y:k})}function ru(o,n){const l=su(o).scrollLeft;return n?n.left+l:Is(Wo(o)).left+l}function Zb(o,n){const l=o.getBoundingClientRect(),u=l.left+n.scrollLeft-ru(o,l),d=l.top+n.scrollTop;return{x:u,y:d}}function fx(o){let{elements:n,rect:l,offsetParent:u,strategy:d}=o;const c=d==="fixed",f=Wo(u),p=n?nu(n.floating):!1;if(u===f||p&&c)return l;let h={scrollLeft:0,scrollTop:0},k=ho(1);const _=ho(0),g=Zo(u);if((g||!c)&&((zn(u)!=="body"||iu(f))&&(h=su(u)),g)){const S=Is(u);k=Mn(u),_.x=S.x+u.clientLeft,_.y=S.y+u.clientTop}const b=f&&!g&&!c?Zb(f,h):ho(0);return{width:l.width*k.x,height:l.height*k.y,x:l.x*k.x-h.scrollLeft*k.x+_.x+b.x,y:l.y*k.y-h.scrollTop*k.y+_.y+b.y}}function gx(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function hx(o){const n=su(o),l=o.ownerDocument.body,u=Sn(o.scrollWidth,o.clientWidth,l.scrollWidth,l.clientWidth),d=Sn(o.scrollHeight,o.clientHeight,l.scrollHeight,l.clientHeight);let c=-n.scrollLeft+ru(o);const f=-n.scrollTop;return Wa(l).direction==="rtl"&&(c+=Sn(o.clientWidth,l.clientWidth)-u),{width:u,height:d,x:c,y:f}}const _x=25;function vx(o,n,l){l===void 0&&(l="viewport");const u=l==="layoutViewport",d=ra(o),c=Wo(o),f=d.visualViewport;let p=c.clientWidth,h=c.clientHeight,k=0,_=0;if(f){const b=!Dm()||n==="fixed";u?b||(k=-f.offsetLeft,_=-f.offsetTop):(p=f.width,h=f.height,b&&(k=f.offsetLeft,_=f.offsetTop))}if(ru(c)<=0){const b=c.ownerDocument,S=b.body,C=getComputedStyle(S),x=b.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,A=Math.abs(c.clientWidth-S.clientWidth-x),D=getComputedStyle(c).scrollbarGutter==="stable both-edges"?A/2:A;D<=_x&&(p-=D)}return{width:p,height:h,x:k,y:_}}function bx(o,n){const l=Is(o,!0,n==="fixed"),u=l.top+o.clientTop,d=l.left+o.clientLeft,c=Mn(o),f=o.clientWidth*c.x,p=o.clientHeight*c.y,h=d*c.x,k=u*c.y;return{width:f,height:p,x:h,y:k}}function H_(o,n,l){let u;if(n==="viewport"||n==="layoutViewport")u=vx(o,l,n);else if(n==="document")u=hx(Wo(o));else if(Qa(n))u=bx(n,l);else{const d=Wb(o);u={x:n.x-d.x,y:n.y-d.y,width:n.width,height:n.height}}return Vl(u)}function yx(o,n){const l=n.get(o);if(l)return l;let u=Kb(o,[]).filter(p=>Qa(p)&&zn(p)!=="body"),d=null;const c=Wa(o).position==="fixed";let f=c?xi(o):o;for(;Qa(f)&&!Ls(f);){const p=Wa(f),h=jm(f),k=d?d.position:c?"fixed":"";!h&&(k==="fixed"||k==="absolute"&&p.position==="static")?u=u.filter(g=>g!==f):d=p,f=xi(f)}return n.set(o,u),u}function kx(o){let{element:n,boundary:l,rootBoundary:u,strategy:d}=o;const f=[...l==="clippingAncestors"?nu(n)?[]:yx(n,this._c):[].concat(l),u],p=H_(n,f[0],d);let h=p.top,k=p.right,_=p.bottom,g=p.left;for(let b=1;b<f.length;b++){const S=H_(n,f[b],d);h=Sn(S.top,h),k=vm(S.right,k),_=vm(S.bottom,_),g=Sn(S.left,g)}return{width:k-g,height:_-h,x:g,y:h}}function wx(o){const{width:n,height:l}=Yb(o);return{width:n,height:l}}function Sx(o,n,l){const u=Zo(n),d=Wo(n),c=l==="fixed",f=Is(o,!0,c,n);let p={scrollLeft:0,scrollTop:0};const h=ho(0);if((u||!c)&&((zn(n)!=="body"||iu(d))&&(p=su(n)),u)){const b=Is(n,!0,c,n);h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}!u&&d&&(h.x=ru(d));const k=d&&!u&&!c?Zb(d,p):ho(0),_=f.left+p.scrollLeft-h.x-k.x,g=f.top+p.scrollTop-h.y-k.y;return{x:_,y:g,width:f.width,height:f.height}}function tm(o){return Wa(o).position==="static"}function F_(o,n){if(!Zo(o)||Wa(o).position==="fixed")return null;if(n)return n(o);let l=o.offsetParent;return Wo(o)===l&&(l=l.ownerDocument.body),l}function Xb(o,n){const l=ra(o);if(nu(o))return l;if(!Zo(o)){let d=xi(o);for(;d&&!Ls(d);){if(Qa(d)&&!tm(d))return d;d=xi(d)}return l}let u=F_(o,n);for(;u&&lx(u)&&tm(u);)u=F_(u,n);return u&&Ls(u)&&tm(u)&&!jm(u)?l:u||cx(o)||l}const Mx=async function(o){const n=this.getOffsetParent||Xb,l=this.getDimensions,u=await l(o.floating);return{reference:Sx(o.reference,await n(o.floating),o.strategy),floating:{x:0,y:0,width:u.width,height:u.height}}};function Ax(o){return Wa(o).direction==="rtl"}const Cx={convertOffsetParentRelativeRectToViewportRelativeRect:fx,getDocumentElement:Wo,getClippingRect:kx,getOffsetParent:Xb,getElementRects:Mx,getClientRects:gx,getDimensions:wx,getScale:Mn,isElement:Qa,isRTL:Ax},xx=sx,zx=rx,Tx=ox,Nx=(o,n,l)=>{const u=new Map,d=l??{},c={...Cx,...d.platform,_c:u};return ax(o,n,{...d,platform:c})};var wn=xm(),Ex=typeof document<"u",jx=function(){},Ol=Ex?y.useLayoutEffect:jx;function Gl(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 l,u,d;if(o&&n&&typeof o=="object"){if(Array.isArray(o)){if(l=o.length,l!==n.length)return!1;for(u=l;u--!==0;)if(!Gl(o[u],n[u]))return!1;return!0}if(d=Object.keys(o),l=d.length,l!==Object.keys(n).length)return!1;for(u=l;u--!==0;)if(!{}.hasOwnProperty.call(n,d[u]))return!1;for(u=l;u--!==0;){const c=d[u];if(!(c==="_owner"&&o.$$typeof)&&!Gl(o[c],n[c]))return!1}return!0}return o!==o&&n!==n}function Jb(o){return typeof window>"u"?1:(o.ownerDocument.defaultView||window).devicePixelRatio||1}function V_(o,n){const l=Jb(o);return Math.round(n*l)/l}function am(o){const n=y.useRef(o);return Ol(()=>{n.current=o}),n}function lu(o){o===void 0&&(o={});const{placement:n="bottom",strategy:l="absolute",middleware:u=[],platform:d,elements:{reference:c,floating:f}={},transform:p=!0,whileElementsMounted:h,open:k}=o,[_,g]=y.useState({x:0,y:0,strategy:l,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=y.useState(u);Gl(b,u)||S(u);const[C,x]=y.useState(null),[A,D]=y.useState(null),z=y.useCallback(K=>{K!==H.current&&(H.current=K,x(K))},[]),L=y.useCallback(K=>{K!==j.current&&(j.current=K,D(K))},[]),G=c||C,J=f||A,H=y.useRef(null),j=y.useRef(null),q=y.useRef(_),V=h!=null,$=am(h),Q=am(d),ee=am(k),ae=y.useCallback(()=>{if(!H.current||!j.current)return;const K={placement:n,strategy:l,middleware:b};Q.current&&(K.platform=Q.current),Nx(H.current,j.current,K).then(ie=>{const ne={...ie,isPositioned:ee.current!==!1};Z.current&&!Gl(q.current,ne)&&(q.current=ne,wn.flushSync(()=>{g(ne)}))})},[b,n,l,Q,ee]);Ol(()=>{k===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,g(K=>({...K,isPositioned:!1})))},[k]);const Z=y.useRef(!1);Ol(()=>(Z.current=!0,()=>{Z.current=!1}),[]),Ol(()=>{if(G&&(H.current=G),J&&(j.current=J),G&&J){if($.current)return $.current(G,J,ae);ae()}},[G,J,ae,$,V]);const Y=y.useMemo(()=>({reference:H,floating:j,setReference:z,setFloating:L}),[z,L]),I=y.useMemo(()=>({reference:G,floating:J}),[G,J]),T=y.useMemo(()=>{const K={position:l,left:0,top:0};if(!I.floating)return K;const ie=V_(I.floating,_.x),ne=V_(I.floating,_.y);return p?{...K,transform:"translate("+ie+"px, "+ne+"px)",...Jb(I.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:ie,top:ne}},[l,p,I.floating,_.x,_.y]);return y.useMemo(()=>({..._,update:ae,refs:Y,elements:I,floatingStyles:T}),[_,ae,Y,I,T])}const Dx=(o,n)=>{const l=xx(o);return{name:l.name,fn:l.fn,options:[o,n]}},uu=(o,n)=>{const l=zx(o);return{name:l.name,fn:l.fn,options:[o,n]}},Ox=(o,n)=>{const l=Tx(o);return{name:l.name,fn:l.fn,options:[o,n]}};function qx({children:o,title:n,style:l,placement:u,subtitle:d}){const[c,f]=y.useState(!1),[p,h]=y.useState(!1),[k,_]=y.useState(null),g=y.useRef(`tooltip-${Math.random()}`),b=y.useRef(null),{x:S,y:C,refs:x,strategy:A,placement:D}=lu({placement:u||"bottom",middleware:[Ox(),Dx(15),uu()],elements:{reference:k}}),z=()=>{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)},J=()=>{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:l,onMouseEnter:z,onMouseLeave:L,onFocus:G,onBlur:J,ref:_,"aria-describedby":g.current,children:o}),(c||p)&&w.jsxs("span",{ref:x.setFloating,style:{position:A,top:C??"",left:S??"",display:"flex",flexFlow:"column"},className:"tooltipTitle","data-status":H(),"data-placement":D,children:[n,w.jsx("span",{style:{fontSize:"8px"},children:d})]})]})}const ht=y.memo(qx),Us=y.forwardRef(({icon:o,label:n,type:l,iconPlacement:u,onClick:d,active:c,disabled:f,tooltipTitle:p,tooltipKey:h,href:k,style:_},g)=>{let b;switch(l){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"}u==="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:k,style:_,target:"_blank",rel:"noopener noreferrer",children:[o,n]}),x=w.jsx(ht,{title:p,children:w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:k,target:"_blank",rel:"noopener noreferrer",style:_,children:[o,n]})},h);switch(l){case"linkIconButton":return x;case"linkButton":return C;case"icon":return w.jsx(ht,{title:p,children:S},h);default:return S}});Us.displayName="Button";function Rx({urlError:o,iconError:n,addLink:l,closeModal:u,edit:d,editData:c,editLink:f}){const[p,h]=y.useState(d?c.name:""),[k,_]=y.useState(d?c.url:""),[g,b]=y.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:()=>u(),children:w.jsx(Bs,{})})})]}),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:k,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(Us,{type:"settings",onClick:()=>f(c,p,k,g),icon:w.jsx(T_,{}),label:pe.getMessage("modals.main.settings.sections.quicklinks.edit")}):w.jsx(Us,{type:"settings",onClick:()=>l(p,k,g),icon:w.jsx(T_,{}),label:pe.getMessage("widgets.quicklinks.add")})]})]})}const cN=y.memo(Rx),Bx=[{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}],Lx=[{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 $b(o){localStorage.clear(),Bx.forEach(u=>localStorage.setItem(u.name,u.value));const n=Lx.map(({value:u})=>u),l=navigator.languages&&navigator.languages.find(u=>u.replace("-","_")&&n.includes(u))||navigator.language.replace("-","_");n.includes(l)?localStorage.setItem("language",l):localStorage.setItem("language","en_GB"),localStorage.setItem("tabName",pe.getMessage("tabname")),o&&localStorage.setItem("showWelcome",!1),localStorage.setItem("firstRun",!0)}function Ix(o,n="file",l="text/json"){typeof o=="object"&&(o=JSON.stringify(o,void 0,4));const u=new Blob([o],{type:l}),d=document.createEvent("MouseEvents"),c=document.createElement("a");c.href=window.URL.createObjectURL(u),c.download=n,c.dataset.downloadurl=[l,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 G_(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 l=localStorage.getItem("customcss");l&&document.head.insertAdjacentHTML("beforeend",'<style id="customcss">'+l+"</style>");const u=localStorage.getItem("font");u&&document.head.insertAdjacentHTML("beforeend",`<style id='customfont'>* {font-family: '${u}', 'Lexend Deca', 'Inter', sans-serif !important;@@ -855,7 +855,7 @@ Note: if you don't like "{category}" images, you can deselect the category in thfont-style: ${localStorage.getItem("fontstyle")};}</style>- `),localStorage.getItem("applinks")===null&&localStorage.setItem("applinks",JSON.stringify([])),localStorage.getItem("appsEnabled")===null&&localStorage.setItem("showWelcome",!1)}function Ux(){const o=Object.keys(localStorage);if(o.length===0)return this.setDefaultSettings();const n={};o.forEach(l=>{n[l]=localStorage.getItem(l)}),localStorage.clear(),$b(),Object.keys(n).forEach(l=>{localStorage.setItem(l,n[l])})}function Px({modalClose:o}){const n=()=>{pe.stats.postEvent("setting","Reset"),$b("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(Bs,{})})})]}),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(Us,{type:"secondary",onClick:o,icon:w.jsx(Bs,{}),label:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),w.jsx(Us,{type:"settings",onClick:()=>n(),icon:w.jsx(AA,{}),label:pe.getMessage("modals.main.settings.buttons.reset")})]})]})}const mN=y.memo(Px),K_={[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:[]}},Hx=({currentTab:o=Yo.SETTINGS})=>{const n=K_[o]||K_[Yo.SETTINGS];return n.itemCount===0?null:w.jsx("div",{className:"sidebarSkeleton",children:Array.from({length:n.itemCount}).map((l,u)=>{const d=n.dividerPositions.includes(u),c=n.textWidths[u]||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"})]},u)})})},Fx=({currentTab:o})=>w.jsxs("div",{style:{display:"flex",width:"100%",minHeight:"100%"},children:[w.jsx("div",{className:"modalSidebar",children:w.jsx(Hx,{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")})]})})})})]}),Vx=""+new URL("webbrain-rEIJfo36.png",import.meta.url).href;function Gx({currentTab:o,currentSection:n,currentSectionName:l,currentSubSection:u,onSubSectionChange:d,onClose:c,onBack:f,onForward:p,canGoBack:h,canGoForward:k}){const _=Qo(),g=GA.find(({tab:x})=>x===o),b=g?_(g.messageKey):"",S=(x,A)=>{if(!x||!A)return x;const D=`modals.main.settings.sections.${A}.${x}.title`,z=_(D);return!z||z===D?x.charAt(0).toUpperCase()+x.slice(1):z},C=[];return b&&(C.push({label:b,onClick:null}),n&&(C.push({label:n,onClick:u?()=>d(null):null}),u&&C.push({label:S(u,l),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(fA,{})})},"backTooltip"),w.jsx(ht,{title:"Forward",children:w.jsx("button",{className:"navButton",onClick:p,disabled:!k,"aria-label":"Navigate forward",children:w.jsx(Mb,{})})},"forwardTooltip")]}),w.jsx("img",{src:Vx,alt:"WebBrain",className:"topBarLogo",draggable:!1}),C.length>0&&w.jsx("nav",{className:"breadcrumbs","aria-label":"Breadcrumb navigation",children:C.map((x,A)=>{const D=A===C.length-1,z=x.onClick!==null;return w.jsxs("span",{className:"breadcrumb-segment",children:[z?w.jsx("span",{className:"breadcrumb-item breadcrumb-clickable",onClick:x.onClick,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),x.onClick())},role:"button",tabIndex:0,"aria-label":`Navigate to ${x.label}`,children:x.label}):w.jsx("span",{className:`breadcrumb-item ${D?"breadcrumb-current":""}`,"aria-current":D?"page":void 0,children:x.label}),!D&&w.jsx(pA,{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(Bs,{})})},"closeTooltip")})]})}const Kx=y.lazy(()=>Nm(()=>import("./Settings-7szeChri.js"),__vite__mapDeps([1,2]),import.meta.url));function Yx({modalClose:o,deepLinkData:n}){const l=Yo.SETTINGS,[u,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(n?.subSection||null),[k,_]=y.useState(null);y.useEffect(()=>{n?.section&&(_({type:"settings-section",data:n.section,timestamp:Date.now()}),n.subSection&&h(n.subSection))},[n]),y.useEffect(()=>()=>{window.location.hash&&window.history.replaceState(null,null,window.location.pathname)},[]),y.useEffect(()=>{const S=()=>{const C=window.location.hash?Il(window.location.hash):null;C?.section&&(_({type:"settings-section",data:C.section,timestamp:Date.now()}),h(C.subSection||null))};return window.addEventListener("popstate",S),()=>window.removeEventListener("popstate",S)},[]);const g=(S,C)=>{d(S),f(C),h(null),C&&Ul(`#${l}/${C}`,!1)},b=(S,C)=>{h(S),C&&Ul(S?`#${l}/${C}/${S}`:`#${l}/${C}`)};return w.jsxs("div",{className:"frame",children:[w.jsx(Gx,{currentTab:l,currentSection:u,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(y.Suspense,{fallback:w.jsx(Fx,{currentTab:l}),children:w.jsx(Kx,{currentTab:l,changeTab:()=>{},deepLinkData:n,onSectionChange:g,onSubSectionChange:b,currentSubSection:p,navigationTrigger:k},l)})})]})}const Qx=y.memo(Yx),Y_=["#3b6ea8","#2f8f83","#a85a3b","#7a4fa3","#a38a2f","#b0425b","#4a7f3a","#456b8f"];function ey(o,n=""){let l;try{l=new URL(o).hostname.replace(/^www\./,"")}catch{l=String(o||"")}const u=(n||l||"?").trim(),d=(Array.from(u)[0]||"?").toUpperCase().replace(/[&<>"']/g,"?");let c=0;for(const h of l)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="${Y_[c%Y_.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 Q_=()=>{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),[]}},ty=y.memo(()=>{const[o,n]=y.useState(Q_()),[l,u]=y.useState(0),d=y.useRef(null),c=y.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`},[]);y.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(Q_()),u(Date.now())}};return ye.on("refresh",_),c(d.current),()=>{ye.off("refresh",_)}},[c]),y.useEffect(()=>{c(d.current)},[o,l,c]);let f,p=null;localStorage.getItem("quicklinksnewtab")==="true"&&(f="_blank",p="noopener noreferrer");const h=localStorage.getItem("quicklinkstooltip"),k=(_,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||ey(_.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)=>k(_,g))})});ty.displayName="QuickLinks";const Wx=()=>{const[o,n]=y.useState(""),[l,u]=y.useState(null),[d,c]=y.useState("block"),[f,p]=y.useState("1em"),h=y.useRef(),k=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),u(`${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=Em(g,b)),localStorage.getItem("weeknumber")==="true"?k(g):l!==null&&u(null),localStorage.getItem("dateType")==="short"){const S=g.getDate(),C=g.getMonth()+1,x=g.getFullYear(),A=localStorage.getItem("datezero")==="true";let D=A?("00"+S).slice(-2):S,z=A?("00"+C).slice(-2):C,L=x;switch(localStorage.getItem("dateFormat")){case"MDY":D=C,z=S;break;case"YMD":D=x,L=S;break}let G;switch(localStorage.getItem("shortFormat")){case"dots":G=`${D}.${z}.${L}`;break;case"dash":G=`${D}-${z}-${L}`;break;case"gaps":G=`${D} - ${z} - ${L}`;break;case"slashes":G=`${D}/${z}/${L}`;break}n(G)}else{const S=pe.languagecode.split("_")[0],C=localStorage.getItem("datenth")==="true"?Lb(g.getDate()):g.getDate(),x=localStorage.getItem("dayofweek")==="true"?g.toLocaleDateString(S,{weekday:"long"}):"",A=g.toLocaleDateString(S,{month:"long"}),D=g.getFullYear();let z;switch(localStorage.getItem("longFormat")){case"MDY":z=`${A} ${C}, ${D}${x?`, ${x}`:""}`;break;case"YMD":z=`${D} ${A} ${C}${x?`, ${x}`:""}`;break;default:z=`${C} ${A} ${D}${x?`, ${x}`:""}`;break}n(z)}};return y.useEffect(()=>{const g=b=>{if(b==="date"||b==="timezone"){if(localStorage.getItem("date")==="false"){c("none");return}c("block"),p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_()}};return p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_(),ye.on("refresh",g),()=>{ye.off("refresh")}},[]),w.jsxs("span",{className:"date",ref:h,style:{display:d,fontSize:f},children:[o,w.jsx("br",{}),l]})},Zx=()=>{const[o,n]=y.useState(""),[l,u]=y.useState("none"),[d,c]=y.useState("1em"),f=y.useRef();return y.useEffect(()=>{const p=k=>{if(k==="message"){const _=localStorage.getItem("message"),g=localStorage.getItem("zoomMessage");u(_==="false"?"none":"block"),c(`${1*Number((g||100)/100)}em`)}},h=JSON.parse(localStorage.getItem("messages"))||[];return h.length>0&&(n(h[Math.floor(Math.random()*h.length)]),u("block")),ye.on("refresh",p),()=>{ye.off("refresh")}},[]),w.jsx("h2",{className:"message",ref:f,style:{display:l,fontSize:d},children:o.split("\\n").map(p=>w.jsxs("span",{children:[p,w.jsx("br",{})]},p))})},Xx=y.memo(o=>{const[n,l]=y.useState(localStorage.getItem(o.name)||o.default),u=y.useRef(null),d=y.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),l(h),o.element&&!document.querySelector(o.element))return document.querySelector(".reminder-info").style.display="flex",localStorage.setItem("showReminder",!0);ye.emit("refresh",o.category)},[o]),c=y.useCallback(()=>{u.current&&cancelAnimationFrame(u.current);const p=Number(n),h=Number(o.default||0),k=300,_=performance.now(),g=b=>{const S=b-_,C=Math.min(S/k,1),x=1-Math.pow(1-C,3),A=p+(h-p)*x,D=Math.round(A/(Number(o.step)||1))*(Number(o.step)||1);localStorage.setItem(o.name,D),l(D),C<1?u.current=requestAnimationFrame(g):(localStorage.setItem(o.name,h),l(h),ye.emit("refresh",o.category))};u.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(Rs,{}),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))})]})]})});Xx.displayName="SliderComponent";const Jx=({children:o})=>w.jsx("div",{id:"widgets",children:o}),W_=()=>{try{const o=JSON.parse(localStorage.getItem("order"));return Array.isArray(o)?o:[]}catch{return[]}},Si=o=>localStorage.getItem(o)==="true",$x=()=>{const[o,n]=y.useState(W_),l=y.useMemo(()=>({time:Si("time")&&w.jsx(zC,{}),greeting:Si("greeting")&&w.jsx(NC,{}),date:Si("date")&&w.jsx(Wx,{}),quicklinks:Si("quicklinksenabled")?w.jsx(ty,{}):null,message:Si("message")&&w.jsx(Zx,{})}),[o]);return y.useEffect(()=>{const u=d=>{d==="widgets"&&n(W_())};return ye.on("refresh",u),()=>{ye.off("refresh")}},[]),w.jsxs(Jx,{children:[o.map((u,d)=>w.jsx(y.Fragment,{children:l[u]},d)),Si("taskBox")&&w.jsx(PC,{}),Si("recentChats")&&w.jsx(FC,{})]})};var Ml={exports:{}},Vo={},om={exports:{}},im,Z_;function e2(){if(Z_)return im;Z_=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return im=o,im}var nm,X_;function t2(){if(X_)return nm;X_=1;var o=e2();function n(){}function l(){}return l.resetWarningCache=n,nm=function(){function u(f,p,h,k,_,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}}u.isRequired=u;function d(){return u}var c={array:u,bigint:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:d,element:u,elementType:u,instanceOf:d,node:u,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:l,resetWarningCache:n};return c.PropTypes=c,c},nm}var J_;function ay(){return J_||(J_=1,om.exports=t2()()),om.exports}var Al={exports:{}},ba={},Cl={exports:{}},$_;function oy(){return $_||($_=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=_;var l="none",u="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!==u&&c(g,S):C===l}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 k(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(k)}o.exports=n.default})(Cl,Cl.exports)),Cl.exports}var ev;function a2(){if(ev)return ba;ev=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.resetState=f,ba.log=p,ba.handleBlur=h,ba.handleFocus=k,ba.markForFocusLater=_,ba.returnFocus=g,ba.popWithoutFocus=b,ba.setupScopedFocus=S,ba.teardownScopedFocus=C;var o=oy(),n=l(o);function l(x){return x&&x.__esModule?x:{default:x}}var u=[],d=null,c=!1;function f(){u=[]}function p(){}function h(){c=!0}function k(){if(c){if(c=!1,!d)return;setTimeout(function(){if(!d.contains(document.activeElement)){var x=(0,n.default)(d)[0]||d;x.focus()}},0)}}function _(){u.push(document.activeElement)}function g(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,A=null;try{u.length!==0&&(A=u.pop(),A.focus({preventScroll:x}));return}catch{console.warn(["You tried to return focus to",A,"but it is not in the DOM anymore"].join(" "))}}function b(){u.length>0&&u.pop()}function S(x){d=x,window.addEventListener?(window.addEventListener("blur",h,!1),document.addEventListener("focus",k,!0)):(window.attachEvent("onBlur",h),document.attachEvent("onFocus",k))}function C(){d=null,window.addEventListener?(window.removeEventListener("blur",h),document.removeEventListener("focus",k)):(window.detachEvent("onBlur",h),document.detachEvent("onFocus",k))}return ba}var xl={exports:{}},tv;function o2(){return tv||(tv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var l=oy(),u=d(l);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 k=(0,u.default)(p);if(!k.length){h.preventDefault();return}var _=void 0,g=h.shiftKey,b=k[0],S=k[k.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 x=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),A=x!=null&&x[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(A){var D=k.indexOf(C);if(D>-1&&(D+=g?-1:1),_=k[D],typeof _>"u"){h.preventDefault(),_=g?S:b,_.focus();return}h.preventDefault(),_.focus()}}o.exports=n.default})(xl,xl.exports)),xl.exports}var Na={},sm,av;function i2(){if(av)return sm;av=1;var o=function(){};return sm=o,sm}var Ya={},rm={exports:{}};var ov;function n2(){return ov||(ov=1,(function(o){(function(){var n=!!(typeof window<"u"&&window.document&&window.document.createElement),l={canUseDOM:n,canUseWorkers:typeof Worker<"u",canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen};o.exports?o.exports=l:window.ExecutionEnvironment=l})()})(rm)),rm.exports}var iv;function Om(){if(iv)return Ya;iv=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.canUseDOM=Ya.SafeNodeList=Ya.SafeHTMLCollection=void 0;var o=n2(),n=l(o);function l(c){return c&&c.__esModule?c:{default:c}}var u=n.default,d=u.canUseDOM?window.HTMLElement:{};return Ya.SafeHTMLCollection=u.canUseDOM?window.HTMLCollection:{},Ya.SafeNodeList=u.canUseDOM?window.NodeList:{},Ya.canUseDOM=u.canUseDOM,Ya.default=d,Ya}var nv;function iy(){if(nv)return Na;nv=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.resetState=c,Na.log=f,Na.assertNodeList=p,Na.setElement=h,Na.validateElement=k,Na.hide=_,Na.show=g,Na.documentNotReadyOrSSRTesting=b;var o=i2(),n=u(o),l=Om();function u(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"&&l.canUseDOM){var x=document.querySelectorAll(C);p(x,C),C=x}return d=C||d,d}function k(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,x=!1,A=void 0;try{for(var D=k(S)[Symbol.iterator](),z;!(C=(z=D.next()).done);C=!0){var L=z.value;L.setAttribute("aria-hidden","true")}}catch(G){x=!0,A=G}finally{try{!C&&D.return&&D.return()}finally{if(x)throw A}}}function g(S){var C=!0,x=!1,A=void 0;try{for(var D=k(S)[Symbol.iterator](),z;!(C=(z=D.next()).done);C=!0){var L=z.value;L.removeAttribute("aria-hidden")}}catch(G){x=!0,A=G}finally{try{!C&&D.return&&D.return()}finally{if(x)throw A}}}function b(){d=null}return Na}var Mi={},sv;function s2(){if(sv)return Mi;sv=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.resetState=u,Mi.log=d;var o={},n={};function l(k,_){k.classList.remove(_)}function u(){var k=document.getElementsByTagName("html")[0];for(var _ in o)l(k,o[_]);var g=document.body;for(var b in n)l(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 Mi.add=function(_,g){return p(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Mi.remove=function(_,g){return h(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Mi}var kn={},rv;function ny(){if(rv)return kn;rv=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.log=u,kn.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=[]},l=new n;function u(){console.log("portalOpenInstances ----------"),console.log(l.openInstances.length),l.openInstances.forEach(function(c){return console.log(c)}),console.log("end portalOpenInstances ----------")}function d(){l=new n}return kn.default=l,kn}var zs={},lv;function r2(){if(lv)return zs;lv=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.resetState=f,zs.log=p;var o=ny(),n=l(o);function l(_){return _&&_.__esModule?_:{default:_}}var u=void 0,d=void 0,c=[];function f(){for(var _=[u,d],g=0;g<_.length;g++){var b=_[g];b&&b.parentNode&&b.parentNode.removeChild(b)}u=d=null,c=[]}function p(){console.log("bodyTrap ----------"),console.log(c.length);for(var _=[u,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 k(_,g){!u&&!d&&(u=document.createElement("div"),u.setAttribute("data-react-modal-body-trap",""),u.style.position="absolute",u.style.opacity="0",u.setAttribute("tabindex","0"),u.addEventListener("focus",h),d=u.cloneNode(),d.addEventListener("focus",h)),c=g,c.length>0?(document.body.firstChild!==u&&document.body.insertBefore(u,document.body.firstChild),document.body.lastChild!==d&&document.body.appendChild(d)):(u.parentElement&&u.parentElement.removeChild(u),d.parentElement&&d.parentElement.removeChild(d))}return n.default.subscribe(k),zs}var uv;function l2(){return uv||(uv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var l=Object.assign||function(Z){for(var Y=1;Y<arguments.length;Y++){var I=arguments[Y];for(var T in I)Object.prototype.hasOwnProperty.call(I,T)&&(Z[T]=I[T])}return Z},u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},d=(function(){function Z(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&&Z(Y.prototype,I),T&&Z(Y,T),Y}})(),c=Gs(),f=ay(),p=J(f),h=a2(),k=G(h),_=o2(),g=J(_),b=iy(),S=G(b),C=s2(),x=G(C),A=Om(),D=J(A),z=ny(),L=J(z);r2();function G(Z){if(Z&&Z.__esModule)return Z;var Y={};if(Z!=null)for(var I in Z)Object.prototype.hasOwnProperty.call(Z,I)&&(Y[I]=Z[I]);return Y.default=Z,Y}function J(Z){return Z&&Z.__esModule?Z:{default:Z}}function H(Z,Y){if(!(Z instanceof Y))throw new TypeError("Cannot call a class as a function")}function j(Z,Y){if(!Z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:Z}function q(Z,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);Z.prototype=Object.create(Y&&Y.prototype,{constructor:{value:Z,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(Z,Y):Z.__proto__=Y)}var V={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},$=function(Y){return Y.code==="Tab"||Y.keyCode===9},Q=function(Y){return Y.code==="Escape"||Y.keyCode===27},ee=0,ae=(function(Z){q(Y,Z);function Y(I){H(this,Y);var T=j(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,be=K.htmlOpenClassName,Ce=K.bodyOpenClassName,Ve=K.parentSelector,E=Ve&&Ve().ownerDocument||document;Ce&&x.remove(E.body,Ce),be&&x.remove(E.getElementsByTagName("html")[0],be),ne&&ee>0&&(ee-=1,ee===0&&S.show(ie)),T.props.shouldFocusAfterRender&&(T.props.shouldReturnFocusAfterClose?(k.returnFocus(T.props.preventScroll),k.teardownScopedFocus()):k.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&&(k.setupScopedFocus(T.node),k.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&&Q(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":u(ie))==="object"?ie:{base:V[K],afterOpen:V[K]+"--after-open",beforeClose:V[K]+"--before-close"},be=ne.base;return T.state.afterOpen&&(be=be+" "+ne.afterOpen),T.state.beforeClose&&(be=be+" "+ne.beforeClose),typeof ie=="string"&&ie?be+" "+ie:be},T.attributesFromObject=function(K,ie){return Object.keys(ie).reduce(function(ne,be){return ne[K+"-"+be]=ie[be],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,be=T.bodyOpenClassName,Ce=T.parentSelector,Ve=Ce&&Ce().ownerDocument||document;be&&x.add(Ve.body,be),ne&&x.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,be=T.defaultStyles,Ce=T.children,Ve=ie?{}:be.content,E=ne?{}:be.overlay;if(this.shouldBeClosed())return null;var te={ref:this.setOverlayRef,className:this.buildClassName("overlay",ne),style:l({},E,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},se=l({id:K,ref:this.setContentRef,style:l({},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",l({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(D.default),p.default.instanceOf(A.SafeHTMLCollection),p.default.instanceOf(A.SafeNodeList),p.default.arrayOf(p.default.instanceOf(D.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})(Al,Al.exports)),Al.exports}function sy(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function ry(o){function n(l){var u=this.constructor.getDerivedStateFromProps(o,l);return u??null}this.setState(n.bind(this))}function ly(o,n){try{var l=this.props,u=this.state;this.props=o,this.state=n,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(l,u)}finally{this.props=l,this.state=u}}sy.__suppressDeprecationWarning=!0;ry.__suppressDeprecationWarning=!0;ly.__suppressDeprecationWarning=!0;function u2(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 l=null,u=null,d=null;if(typeof n.componentWillMount=="function"?l="componentWillMount":typeof n.UNSAFE_componentWillMount=="function"&&(l="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps=="function"?u="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps=="function"&&(u="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate=="function"?d="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate=="function"&&(d="UNSAFE_componentWillUpdate"),l!==null||u!==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 Ux(){const o=Object.keys(localStorage);if(o.length===0)return this.setDefaultSettings();const n={};o.forEach(l=>{n[l]=localStorage.getItem(l)}),localStorage.clear(),$b(),Object.keys(n).forEach(l=>{localStorage.setItem(l,n[l])})}function Px({modalClose:o}){const n=()=>{pe.stats.postEvent("setting","Reset"),$b("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(Bs,{})})})]}),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(Us,{type:"secondary",onClick:o,icon:w.jsx(Bs,{}),label:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),w.jsx(Us,{type:"settings",onClick:()=>n(),icon:w.jsx(AA,{}),label:pe.getMessage("modals.main.settings.buttons.reset")})]})]})}const mN=y.memo(Px),K_={[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:[]}},Hx=({currentTab:o=Yo.SETTINGS})=>{const n=K_[o]||K_[Yo.SETTINGS];return n.itemCount===0?null:w.jsx("div",{className:"sidebarSkeleton",children:Array.from({length:n.itemCount}).map((l,u)=>{const d=n.dividerPositions.includes(u),c=n.textWidths[u]||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"})]},u)})})},Fx=({currentTab:o})=>w.jsxs("div",{style:{display:"flex",width:"100%",minHeight:"100%"},children:[w.jsx("div",{className:"modalSidebar",children:w.jsx(Hx,{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")})]})})})})]}),Vx=""+new URL("webbrain-rEIJfo36.png",import.meta.url).href;function Gx({currentTab:o,currentSection:n,currentSectionName:l,currentSubSection:u,onSubSectionChange:d,onClose:c,onBack:f,onForward:p,canGoBack:h,canGoForward:k}){const _=Qo(),g=GA.find(({tab:x})=>x===o),b=g?_(g.messageKey):"",S=(x,A)=>{if(!x||!A)return x;const D=`modals.main.settings.sections.${A}.${x}.title`,z=_(D);return!z||z===D?x.charAt(0).toUpperCase()+x.slice(1):z},C=[];return b&&(C.push({label:b,onClick:null}),n&&(C.push({label:n,onClick:u?()=>d(null):null}),u&&C.push({label:S(u,l),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(fA,{})})},"backTooltip"),w.jsx(ht,{title:"Forward",children:w.jsx("button",{className:"navButton",onClick:p,disabled:!k,"aria-label":"Navigate forward",children:w.jsx(Mb,{})})},"forwardTooltip")]}),w.jsx("img",{src:Vx,alt:"WebBrain",className:"topBarLogo",draggable:!1}),C.length>0&&w.jsx("nav",{className:"breadcrumbs","aria-label":"Breadcrumb navigation",children:C.map((x,A)=>{const D=A===C.length-1,z=x.onClick!==null;return w.jsxs("span",{className:"breadcrumb-segment",children:[z?w.jsx("span",{className:"breadcrumb-item breadcrumb-clickable",onClick:x.onClick,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),x.onClick())},role:"button",tabIndex:0,"aria-label":`Navigate to ${x.label}`,children:x.label}):w.jsx("span",{className:`breadcrumb-item ${D?"breadcrumb-current":""}`,"aria-current":D?"page":void 0,children:x.label}),!D&&w.jsx(pA,{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(Bs,{})})},"closeTooltip")})]})}const Kx=y.lazy(()=>Nm(()=>import("./Settings-BiXm1rpf.js"),__vite__mapDeps([1,2]),import.meta.url));function Yx({modalClose:o,deepLinkData:n}){const l=Yo.SETTINGS,[u,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(n?.subSection||null),[k,_]=y.useState(null);y.useEffect(()=>{n?.section&&(_({type:"settings-section",data:n.section,timestamp:Date.now()}),n.subSection&&h(n.subSection))},[n]),y.useEffect(()=>()=>{window.location.hash&&window.history.replaceState(null,null,window.location.pathname)},[]),y.useEffect(()=>{const S=()=>{const C=window.location.hash?Il(window.location.hash):null;C?.section&&(_({type:"settings-section",data:C.section,timestamp:Date.now()}),h(C.subSection||null))};return window.addEventListener("popstate",S),()=>window.removeEventListener("popstate",S)},[]);const g=(S,C)=>{d(S),f(C),h(null),C&&Ul(`#${l}/${C}`,!1)},b=(S,C)=>{h(S),C&&Ul(S?`#${l}/${C}/${S}`:`#${l}/${C}`)};return w.jsxs("div",{className:"frame",children:[w.jsx(Gx,{currentTab:l,currentSection:u,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(y.Suspense,{fallback:w.jsx(Fx,{currentTab:l}),children:w.jsx(Kx,{currentTab:l,changeTab:()=>{},deepLinkData:n,onSectionChange:g,onSubSectionChange:b,currentSubSection:p,navigationTrigger:k},l)})})]})}const Qx=y.memo(Yx),Y_=["#3b6ea8","#2f8f83","#a85a3b","#7a4fa3","#a38a2f","#b0425b","#4a7f3a","#456b8f"];function ey(o,n=""){let l;try{l=new URL(o).hostname.replace(/^www\./,"")}catch{l=String(o||"")}const u=(n||l||"?").trim(),d=(Array.from(u)[0]||"?").toUpperCase().replace(/[&<>"']/g,"?");let c=0;for(const h of l)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="${Y_[c%Y_.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 Q_=()=>{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),[]}},ty=y.memo(()=>{const[o,n]=y.useState(Q_()),[l,u]=y.useState(0),d=y.useRef(null),c=y.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`},[]);y.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(Q_()),u(Date.now())}};return ye.on("refresh",_),c(d.current),()=>{ye.off("refresh",_)}},[c]),y.useEffect(()=>{c(d.current)},[o,l,c]);let f,p=null;localStorage.getItem("quicklinksnewtab")==="true"&&(f="_blank",p="noopener noreferrer");const h=localStorage.getItem("quicklinkstooltip"),k=(_,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||ey(_.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)=>k(_,g))})});ty.displayName="QuickLinks";const Wx=()=>{const[o,n]=y.useState(""),[l,u]=y.useState(null),[d,c]=y.useState("block"),[f,p]=y.useState("1em"),h=y.useRef(),k=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),u(`${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=Em(g,b)),localStorage.getItem("weeknumber")==="true"?k(g):l!==null&&u(null),localStorage.getItem("dateType")==="short"){const S=g.getDate(),C=g.getMonth()+1,x=g.getFullYear(),A=localStorage.getItem("datezero")==="true";let D=A?("00"+S).slice(-2):S,z=A?("00"+C).slice(-2):C,L=x;switch(localStorage.getItem("dateFormat")){case"MDY":D=C,z=S;break;case"YMD":D=x,L=S;break}let G;switch(localStorage.getItem("shortFormat")){case"dots":G=`${D}.${z}.${L}`;break;case"dash":G=`${D}-${z}-${L}`;break;case"gaps":G=`${D} - ${z} - ${L}`;break;case"slashes":G=`${D}/${z}/${L}`;break}n(G)}else{const S=pe.languagecode.split("_")[0],C=localStorage.getItem("datenth")==="true"?Lb(g.getDate()):g.getDate(),x=localStorage.getItem("dayofweek")==="true"?g.toLocaleDateString(S,{weekday:"long"}):"",A=g.toLocaleDateString(S,{month:"long"}),D=g.getFullYear();let z;switch(localStorage.getItem("longFormat")){case"MDY":z=`${A} ${C}, ${D}${x?`, ${x}`:""}`;break;case"YMD":z=`${D} ${A} ${C}${x?`, ${x}`:""}`;break;default:z=`${C} ${A} ${D}${x?`, ${x}`:""}`;break}n(z)}};return y.useEffect(()=>{const g=b=>{if(b==="date"||b==="timezone"){if(localStorage.getItem("date")==="false"){c("none");return}c("block"),p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_()}};return p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_(),ye.on("refresh",g),()=>{ye.off("refresh")}},[]),w.jsxs("span",{className:"date",ref:h,style:{display:d,fontSize:f},children:[o,w.jsx("br",{}),l]})},Zx=()=>{const[o,n]=y.useState(""),[l,u]=y.useState("none"),[d,c]=y.useState("1em"),f=y.useRef();return y.useEffect(()=>{const p=k=>{if(k==="message"){const _=localStorage.getItem("message"),g=localStorage.getItem("zoomMessage");u(_==="false"?"none":"block"),c(`${1*Number((g||100)/100)}em`)}},h=JSON.parse(localStorage.getItem("messages"))||[];return h.length>0&&(n(h[Math.floor(Math.random()*h.length)]),u("block")),ye.on("refresh",p),()=>{ye.off("refresh")}},[]),w.jsx("h2",{className:"message",ref:f,style:{display:l,fontSize:d},children:o.split("\\n").map(p=>w.jsxs("span",{children:[p,w.jsx("br",{})]},p))})},Xx=y.memo(o=>{const[n,l]=y.useState(localStorage.getItem(o.name)||o.default),u=y.useRef(null),d=y.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),l(h),o.element&&!document.querySelector(o.element))return document.querySelector(".reminder-info").style.display="flex",localStorage.setItem("showReminder",!0);ye.emit("refresh",o.category)},[o]),c=y.useCallback(()=>{u.current&&cancelAnimationFrame(u.current);const p=Number(n),h=Number(o.default||0),k=300,_=performance.now(),g=b=>{const S=b-_,C=Math.min(S/k,1),x=1-Math.pow(1-C,3),A=p+(h-p)*x,D=Math.round(A/(Number(o.step)||1))*(Number(o.step)||1);localStorage.setItem(o.name,D),l(D),C<1?u.current=requestAnimationFrame(g):(localStorage.setItem(o.name,h),l(h),ye.emit("refresh",o.category))};u.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(Rs,{}),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))})]})]})});Xx.displayName="SliderComponent";const Jx=({children:o})=>w.jsx("div",{id:"widgets",children:o}),W_=()=>{try{const o=JSON.parse(localStorage.getItem("order"));return Array.isArray(o)?o:[]}catch{return[]}},Si=o=>localStorage.getItem(o)==="true",$x=()=>{const[o,n]=y.useState(W_),l=y.useMemo(()=>({time:Si("time")&&w.jsx(zC,{}),greeting:Si("greeting")&&w.jsx(NC,{}),date:Si("date")&&w.jsx(Wx,{}),quicklinks:Si("quicklinksenabled")?w.jsx(ty,{}):null,message:Si("message")&&w.jsx(Zx,{})}),[o]);return y.useEffect(()=>{const u=d=>{d==="widgets"&&n(W_())};return ye.on("refresh",u),()=>{ye.off("refresh")}},[]),w.jsxs(Jx,{children:[o.map((u,d)=>w.jsx(y.Fragment,{children:l[u]},d)),Si("taskBox")&&w.jsx(PC,{}),Si("recentChats")&&w.jsx(FC,{})]})};var Ml={exports:{}},Vo={},om={exports:{}},im,Z_;function e2(){if(Z_)return im;Z_=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return im=o,im}var nm,X_;function t2(){if(X_)return nm;X_=1;var o=e2();function n(){}function l(){}return l.resetWarningCache=n,nm=function(){function u(f,p,h,k,_,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}}u.isRequired=u;function d(){return u}var c={array:u,bigint:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:d,element:u,elementType:u,instanceOf:d,node:u,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:l,resetWarningCache:n};return c.PropTypes=c,c},nm}var J_;function ay(){return J_||(J_=1,om.exports=t2()()),om.exports}var Al={exports:{}},ba={},Cl={exports:{}},$_;function oy(){return $_||($_=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=_;var l="none",u="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!==u&&c(g,S):C===l}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 k(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(k)}o.exports=n.default})(Cl,Cl.exports)),Cl.exports}var ev;function a2(){if(ev)return ba;ev=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.resetState=f,ba.log=p,ba.handleBlur=h,ba.handleFocus=k,ba.markForFocusLater=_,ba.returnFocus=g,ba.popWithoutFocus=b,ba.setupScopedFocus=S,ba.teardownScopedFocus=C;var o=oy(),n=l(o);function l(x){return x&&x.__esModule?x:{default:x}}var u=[],d=null,c=!1;function f(){u=[]}function p(){}function h(){c=!0}function k(){if(c){if(c=!1,!d)return;setTimeout(function(){if(!d.contains(document.activeElement)){var x=(0,n.default)(d)[0]||d;x.focus()}},0)}}function _(){u.push(document.activeElement)}function g(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,A=null;try{u.length!==0&&(A=u.pop(),A.focus({preventScroll:x}));return}catch{console.warn(["You tried to return focus to",A,"but it is not in the DOM anymore"].join(" "))}}function b(){u.length>0&&u.pop()}function S(x){d=x,window.addEventListener?(window.addEventListener("blur",h,!1),document.addEventListener("focus",k,!0)):(window.attachEvent("onBlur",h),document.attachEvent("onFocus",k))}function C(){d=null,window.addEventListener?(window.removeEventListener("blur",h),document.removeEventListener("focus",k)):(window.detachEvent("onBlur",h),document.detachEvent("onFocus",k))}return ba}var xl={exports:{}},tv;function o2(){return tv||(tv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var l=oy(),u=d(l);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 k=(0,u.default)(p);if(!k.length){h.preventDefault();return}var _=void 0,g=h.shiftKey,b=k[0],S=k[k.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 x=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),A=x!=null&&x[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(A){var D=k.indexOf(C);if(D>-1&&(D+=g?-1:1),_=k[D],typeof _>"u"){h.preventDefault(),_=g?S:b,_.focus();return}h.preventDefault(),_.focus()}}o.exports=n.default})(xl,xl.exports)),xl.exports}var Na={},sm,av;function i2(){if(av)return sm;av=1;var o=function(){};return sm=o,sm}var Ya={},rm={exports:{}};var ov;function n2(){return ov||(ov=1,(function(o){(function(){var n=!!(typeof window<"u"&&window.document&&window.document.createElement),l={canUseDOM:n,canUseWorkers:typeof Worker<"u",canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen};o.exports?o.exports=l:window.ExecutionEnvironment=l})()})(rm)),rm.exports}var iv;function Om(){if(iv)return Ya;iv=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.canUseDOM=Ya.SafeNodeList=Ya.SafeHTMLCollection=void 0;var o=n2(),n=l(o);function l(c){return c&&c.__esModule?c:{default:c}}var u=n.default,d=u.canUseDOM?window.HTMLElement:{};return Ya.SafeHTMLCollection=u.canUseDOM?window.HTMLCollection:{},Ya.SafeNodeList=u.canUseDOM?window.NodeList:{},Ya.canUseDOM=u.canUseDOM,Ya.default=d,Ya}var nv;function iy(){if(nv)return Na;nv=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.resetState=c,Na.log=f,Na.assertNodeList=p,Na.setElement=h,Na.validateElement=k,Na.hide=_,Na.show=g,Na.documentNotReadyOrSSRTesting=b;var o=i2(),n=u(o),l=Om();function u(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"&&l.canUseDOM){var x=document.querySelectorAll(C);p(x,C),C=x}return d=C||d,d}function k(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,x=!1,A=void 0;try{for(var D=k(S)[Symbol.iterator](),z;!(C=(z=D.next()).done);C=!0){var L=z.value;L.setAttribute("aria-hidden","true")}}catch(G){x=!0,A=G}finally{try{!C&&D.return&&D.return()}finally{if(x)throw A}}}function g(S){var C=!0,x=!1,A=void 0;try{for(var D=k(S)[Symbol.iterator](),z;!(C=(z=D.next()).done);C=!0){var L=z.value;L.removeAttribute("aria-hidden")}}catch(G){x=!0,A=G}finally{try{!C&&D.return&&D.return()}finally{if(x)throw A}}}function b(){d=null}return Na}var Mi={},sv;function s2(){if(sv)return Mi;sv=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.resetState=u,Mi.log=d;var o={},n={};function l(k,_){k.classList.remove(_)}function u(){var k=document.getElementsByTagName("html")[0];for(var _ in o)l(k,o[_]);var g=document.body;for(var b in n)l(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 Mi.add=function(_,g){return p(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Mi.remove=function(_,g){return h(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Mi}var kn={},rv;function ny(){if(rv)return kn;rv=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.log=u,kn.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=[]},l=new n;function u(){console.log("portalOpenInstances ----------"),console.log(l.openInstances.length),l.openInstances.forEach(function(c){return console.log(c)}),console.log("end portalOpenInstances ----------")}function d(){l=new n}return kn.default=l,kn}var zs={},lv;function r2(){if(lv)return zs;lv=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.resetState=f,zs.log=p;var o=ny(),n=l(o);function l(_){return _&&_.__esModule?_:{default:_}}var u=void 0,d=void 0,c=[];function f(){for(var _=[u,d],g=0;g<_.length;g++){var b=_[g];b&&b.parentNode&&b.parentNode.removeChild(b)}u=d=null,c=[]}function p(){console.log("bodyTrap ----------"),console.log(c.length);for(var _=[u,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 k(_,g){!u&&!d&&(u=document.createElement("div"),u.setAttribute("data-react-modal-body-trap",""),u.style.position="absolute",u.style.opacity="0",u.setAttribute("tabindex","0"),u.addEventListener("focus",h),d=u.cloneNode(),d.addEventListener("focus",h)),c=g,c.length>0?(document.body.firstChild!==u&&document.body.insertBefore(u,document.body.firstChild),document.body.lastChild!==d&&document.body.appendChild(d)):(u.parentElement&&u.parentElement.removeChild(u),d.parentElement&&d.parentElement.removeChild(d))}return n.default.subscribe(k),zs}var uv;function l2(){return uv||(uv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var l=Object.assign||function(Z){for(var Y=1;Y<arguments.length;Y++){var I=arguments[Y];for(var T in I)Object.prototype.hasOwnProperty.call(I,T)&&(Z[T]=I[T])}return Z},u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},d=(function(){function Z(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&&Z(Y.prototype,I),T&&Z(Y,T),Y}})(),c=Gs(),f=ay(),p=J(f),h=a2(),k=G(h),_=o2(),g=J(_),b=iy(),S=G(b),C=s2(),x=G(C),A=Om(),D=J(A),z=ny(),L=J(z);r2();function G(Z){if(Z&&Z.__esModule)return Z;var Y={};if(Z!=null)for(var I in Z)Object.prototype.hasOwnProperty.call(Z,I)&&(Y[I]=Z[I]);return Y.default=Z,Y}function J(Z){return Z&&Z.__esModule?Z:{default:Z}}function H(Z,Y){if(!(Z instanceof Y))throw new TypeError("Cannot call a class as a function")}function j(Z,Y){if(!Z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:Z}function q(Z,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);Z.prototype=Object.create(Y&&Y.prototype,{constructor:{value:Z,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(Z,Y):Z.__proto__=Y)}var V={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},$=function(Y){return Y.code==="Tab"||Y.keyCode===9},Q=function(Y){return Y.code==="Escape"||Y.keyCode===27},ee=0,ae=(function(Z){q(Y,Z);function Y(I){H(this,Y);var T=j(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,be=K.htmlOpenClassName,Ce=K.bodyOpenClassName,Ve=K.parentSelector,E=Ve&&Ve().ownerDocument||document;Ce&&x.remove(E.body,Ce),be&&x.remove(E.getElementsByTagName("html")[0],be),ne&&ee>0&&(ee-=1,ee===0&&S.show(ie)),T.props.shouldFocusAfterRender&&(T.props.shouldReturnFocusAfterClose?(k.returnFocus(T.props.preventScroll),k.teardownScopedFocus()):k.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&&(k.setupScopedFocus(T.node),k.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&&Q(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":u(ie))==="object"?ie:{base:V[K],afterOpen:V[K]+"--after-open",beforeClose:V[K]+"--before-close"},be=ne.base;return T.state.afterOpen&&(be=be+" "+ne.afterOpen),T.state.beforeClose&&(be=be+" "+ne.beforeClose),typeof ie=="string"&&ie?be+" "+ie:be},T.attributesFromObject=function(K,ie){return Object.keys(ie).reduce(function(ne,be){return ne[K+"-"+be]=ie[be],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,be=T.bodyOpenClassName,Ce=T.parentSelector,Ve=Ce&&Ce().ownerDocument||document;be&&x.add(Ve.body,be),ne&&x.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,be=T.defaultStyles,Ce=T.children,Ve=ie?{}:be.content,E=ne?{}:be.overlay;if(this.shouldBeClosed())return null;var te={ref:this.setOverlayRef,className:this.buildClassName("overlay",ne),style:l({},E,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},se=l({id:K,ref:this.setContentRef,style:l({},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",l({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(D.default),p.default.instanceOf(A.SafeHTMLCollection),p.default.instanceOf(A.SafeNodeList),p.default.arrayOf(p.default.instanceOf(D.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})(Al,Al.exports)),Al.exports}function sy(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function ry(o){function n(l){var u=this.constructor.getDerivedStateFromProps(o,l);return u??null}this.setState(n.bind(this))}function ly(o,n){try{var l=this.props,u=this.state;this.props=o,this.state=n,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(l,u)}finally{this.props=l,this.state=u}}sy.__suppressDeprecationWarning=!0;ry.__suppressDeprecationWarning=!0;ly.__suppressDeprecationWarning=!0;function u2(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 l=null,u=null,d=null;if(typeof n.componentWillMount=="function"?l="componentWillMount":typeof n.UNSAFE_componentWillMount=="function"&&(l="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps=="function"?u="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps=="function"&&(u="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate=="function"?d="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate=="function"&&(d="UNSAFE_componentWillUpdate"),l!==null||u!==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:"+(l!==null?``+l:"")+(u!==null?`diff --git a/src/chrome/newtab/index.html b/src/chrome/newtab/index.htmlindex c64bc0914..0764a1efa 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-DDjvabsM.js"></script>+ <script type="module" crossorigin src="./assets/index-epcgRnvP.js"></script><link rel="stylesheet" crossorigin href="./assets/index-ByIwaINw.css"></head><body>diff --git a/src/chrome/src/ui/newtab-handoff.js b/src/chrome/src/ui/newtab-handoff.jsindex d5ab654da..6fe08ffbc 100644--- a/src/chrome/src/ui/newtab-handoff.js+++ b/src/chrome/src/ui/newtab-handoff.js@@ -4,7 +4,8 @@* The new tab stores { id, tabId, text, mode, createdAt } under one storage* key and opens this panel from its own click handler. The panel claims the* record only if it is fresh and addressed to the tab it is showing:- * - Ask: the task is filled in and sent (Ask is read-only);+ * - Ask: the task is filled in and sent (Ask is read-only). If a run is already+ * active in that tab it is queued behind it, exactly like pressing Send then;* - Act: the task is filled in and the panel switches to Act, but nothing is* sent. Act always needs the user's own Enter in the panel.*@@ -37,7 +38,9 @@ export function createNewtabHandoff({onChanged,getCurrentTabId,getIsProcessing,+ getIsBlocked = () => false,getIsDocumentVisible = () => true,+ doc = globalThis.document,setMode,getInputEl,autoResizeInput,@@ -72,7 +75,9 @@ export function createNewtabHandoff({input.dispatchEvent(new Event('input', { bubbles: true }));autoResizeInput();input.focus?.();- if (handoff.mode === 'ask' && !getIsProcessing()) await sendMessage();+ if (handoff.mode === 'ask' && !getIsBlocked()) {+ await sendMessage(getIsProcessing() ? { __deliveryMode: 'queue' } : undefined);+ }return true;} catch {return false;@@ -86,6 +91,12 @@ export function createNewtabHandoff({if (area && area !== 'local') return;if (changes?.[NEWTAB_HANDOFF_KEY]?.newValue) consume();});+ // The record can arrive just before an already-loaded panel becomes visible+ // (the new tab writes it, then opens the panel). consume() skips hidden+ // panels, so try again the moment this one is shown.+ doc?.addEventListener?.('visibilitychange', () => {+ if (getIsDocumentVisible()) consume();+ });}return { consume, watch };diff --git a/src/chrome/src/ui/sidepanel.js b/src/chrome/src/ui/sidepanel.jsindex 0c802964b..7d02f37ab 100644--- a/src/chrome/src/ui/sidepanel.js+++ b/src/chrome/src/ui/sidepanel.js@@ -1594,7 +1594,8 @@ const newtabHandoff = createNewtabHandoff({storage: chrome.storage.local,onChanged: chrome.storage.onChanged,getCurrentTabId: () => currentTabId,- getIsProcessing: () => isProcessing || isConversationClearInProgress(),+ getIsProcessing: () => isProcessing,+ getIsBlocked: () => isConversationClearInProgress(),getIsDocumentVisible: () => document.visibilityState !== 'hidden',setMode,getInputEl: () => inputEl,diff --git a/src/firefox/newtab/assets/Settings-7szeChri.js b/src/firefox/newtab/assets/Settings-7szeChri.jsdeleted file mode 100644index 6b0b1a58d..000000000--- a/src/firefox/newtab/assets/Settings-7szeChri.js+++ /dev/null@@ -1,53 +0,0 @@-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-C08TLPUo.js","./index-DDjvabsM.js","./index-ByIwaINw.css"])))=>i.map(i=>d[i]);-import{s as Ki,v as f,y as RA,r as b,j as s,B as pA,M as Ti,a as Di,b as Oi,E as vA,S as at,R as m,c as is,u as pt,g as Ri,D as Ni,d as Ar,e as fe,f as Xn,T as Jn,q as os,h as _i,i as ls,k as Bt,l as cn,m as Re,n as cs,C as mA,o as KA,p as Gi,t as ji,w as Vi,x as Pi,z as Hr,A as gs,F as er,G as tr,H as gn,I as us,J as Bs,K as ds,L as Xi,N as fs,O as rr,P as hs,Q as ws,U as ps,V as Cs,W as Qs,X as ms,Y as vs,Z as Ji,_ as Us,$ as Wn,a0 as Wi,a1 as Fs,a2 as Ut,a3 as Yi,a4 as un,a5 as Zi,a6 as Sr,a7 as xe,a8 as zi,a9 as Ft,aa as Yn,ab as qi,ac as $i,ad as Ao,ae as eo,af as to,ag as ro,ah as bs,ai as no,aj as ao,ak as so,al as Zn,am as io,an as oo,ao as lo,ap as co,aq as go,ar as uo,as as Bo,at as fo,au as ho,av as wo,aw as po,ax as Co,ay as Dn}from"./index-DDjvabsM.js";function Qo(){const e={};Object.keys(localStorage).forEach(n=>{e[n]=localStorage.getItem(n)});const A=new Date,t=`mue_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`;Ki(e,t),f.stats.postEvent("tab","Settings exported")}function mo(e,A=!1){const r=JSON.parse(e);Object.keys(r).forEach(t=>{localStorage.setItem(t,r[t])}),RA(f.getMessage("toasts.imported")),A||f.stats.postEvent("tab","Settings imported")}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 i=localStorage.getItem(e.setting)==="true";if(localStorage.setItem(e.setting,!i),r(!i),f.stats.postEvent("setting",`${e.name} ${A===!0?"enabled":"disabled"}`),vA.emit("toggle",e.setting),e.element&&!document.querySelector(e.element))return document.querySelector(".reminder-info").style.display="flex",localStorage.setItem("showReminder",!0);vA.emit("refresh",e.category)},n=()=>s.jsx(pA,{type:"settings",onClick:t,icon:A?s.jsx(Ti,{}):s.jsx(Di,{}),label:A?"Hide":"Show"}),a=()=>s.jsx(pA,{type:"settings",onClick:()=>window.open(f.constants.BUG_REPORT+e.title.split(" ").join("+"),"_blank"),icon:s.jsx(Oi,{}),label:f.getMessage("modals.main.settings.sections.header.report_issue")});return s.jsxs("div",{className:"modalHeader",children:[s.jsx("span",{className:"mainTitle",children:e.secondaryTitle||e.title}),s.jsxs("div",{className:"headerActions",children:[e.visibilityToggle&&s.jsx(n,{}),e.report!==!1&&s.jsx(a,{}),e.children]})]})}function rA(e){const A=`${e.final?"settingsRow settingsNoBorder":"settingsRow"} ${e.inactive?"preferencesInactive":""}`;return s.jsx("div",{className:A,children:e.children})}function nA(e){return s.jsxs("div",{className:"content",children:[s.jsx("span",{className:"title",children:e.title}),s.jsx("span",{className:"subtitle",children:e.subtitle})]})}function lA(e){return s.jsx("div",{className:"action",children:e.children})}const vo=[{value:10,label:"0.1x"},{value:100,label:"1x"},{value:200,label:"2x"},{value:400,label:"4x"}],Uo=[{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"}],Fo=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"},{value:100,label:"100%"}],st={zoom:vo,toast:Uo,background:Fo},Ct=({children:e,...A})=>{const[r,t]=b.useState(localStorage.getItem(A.setting)==="true");return vA.on("toggle",n=>{n===A.setting&&t(!r)}),s.jsxs("div",{className:r?"preferences":"preferencesInactive",children:[A.zoomSetting&&s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.widget_zoom"),subtitle:f.getMessage("modals.main.settings.sections.header.size")}),s.jsx(lA,{children:s.jsx(at,{name:A.zoomSetting,min:"10",max:"400",default:"100",display:"%",marks:st.zoom,category:A.zoomCategory||A.category})})]}),e]})};function On({title:e,subtitle:A,icon:r,onClick:t,children:n}){return s.jsxs("div",{className:"moreSettings",onClick:t,children:[s.jsxs("div",{className:"left",children:[r,s.jsxs("div",{className:"content",children:[s.jsx("span",{className:"title",children:e}),s.jsx("span",{className:"subtitle",children:A})]})]}),s.jsx("div",{className:"action",children:m.Children.count(n)===0?s.jsx(is,{}):n})]})}function bo({label:e,currentTab:A,onClick:r,navbarTab:t}){const n=pt(),[a,i]=b.useState(!0);b.useEffect(()=>{i(localStorage.getItem("experimental")!=="false")},[]);const o=Ri(e,{getMessage:n}),l=Ni.some(p=>n(p)===e),d=`${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?s.jsx("hr",{}):s.jsxs(s.Fragment,{children:[s.jsxs("button",{className:d,onClick:()=>r(e),children:[o&&s.jsx(o,{})," ",s.jsx("span",{children:e})]}),l&&s.jsx("hr",{})]})}const Eo=b.memo(bo),yo=({isVisible:e,onHide:A})=>e?s.jsxs("div",{className:"reminder-info",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.reminder.title")}),s.jsx("span",{className:"closeModal",onClick:A,children:s.jsx(Ar,{})})]}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.reminder.message")}),s.jsxs("button",{onClick:()=>window.location.reload(),children:[s.jsx(fe,{}),f.getMessage("modals.main.error_boundary.refresh")]})]}):null;class xo 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(f.constants.BUG_REPORT,"_blank","noopener,noreferrer"),this.setState({showReport:!1})}render(){return this.state.error?s.jsx("div",{className:"emptyItems",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Xn,{}),s.jsx("span",{className:"title",children:f.getMessage("modals.main.error_boundary.title")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.error_boundary.message")}),s.jsxs("div",{className:"buttonsRow",children:[this.state.showReport?s.jsx(pA,{type:"settings",icon:s.jsx(Xn,{}),label:f.getMessage("modals.main.error_boundary.report_error"),onClick:()=>this.reportError()}):s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.error_boundary.sent")}),s.jsx(pA,{type:"settings",icon:s.jsx(fe,{}),label:f.getMessage("modals.main.error_boundary.refresh"),onClick:()=>window.location.reload()})]})]})}):this.props.children}}const Io=({children:e,navbar:A=!1,currentTab:r,onSectionChange:t,resetToFirst:n,deepLinkData:a,navigationTrigger:i,sections:o})=>{const l=pt(),g=(()=>{if(a?.section&&o){const y=o.find(w=>w.name===a.section);if(y)return{label:l(y.label),name:y.name}}return{label:e[0]?.props.label,name:e[0]?.props.name}})(),[d,u]=b.useState(g.label),[p,v]=b.useState(g.name),[Q,x]=b.useState(localStorage.getItem("showReminder")==="true"),U=b.useRef(null),F=(y,w)=>{w!==p&&f.stats.postEvent("tab",`Opened ${w}`),u(y),v(w),U.current&&(U.current.scrollTop=0),t&&t(y,w)};b.useEffect(()=>{t&&d&&t(d,p)},[]),b.useEffect(()=>{if(o&&p){const y=o.find(w=>w.name===p);if(y){const w=l(y.label);u(w)}}},[l,o,p]),b.useEffect(()=>{if(i?.type==="settings-section"&&o){const y=o.find(w=>w.name===i.data);if(y){const w=l(y.label);u(w),v(y.name),U.current&&(U.current.scrollTop=0)}}},[i,o,l]),b.useEffect(()=>{n&&(u(e[0]?.props.label),v(e[0]?.props.name),U.current&&(U.current.scrollTop=0),t&&t(e[0]?.props.label,e[0]?.props.name))},[n]);const L=()=>{localStorage.setItem("showReminder","false"),x(!1)},k=r===Jn.SETTINGS||r===Jn.DISCOVER;return s.jsxs("div",{style:{display:"flex",width:"100%",height:"100%",overflow:"hidden"},children:[k?s.jsxs("div",{className:"modalSidebar",children:[e.map((y,w)=>s.jsx(Eo,{currentTab:d,label:y.props.label,onClick:I=>F(I,y.props.name),navbarTab:A},w)),s.jsx(yo,{isVisible:Q,onHide:L})]}):null,s.jsx("div",{className:"modalTabContent",ref:U,children:e.map((y,w)=>y.props.label!==d?null:s.jsx(xo,{children:y.props.children},`error-boundary-${w}`))})]})};async function nr(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 ar(e){return/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(e)}const Ho=({item:e,deleteLink:A,startEditLink:r,draggable:t=!1,onDragStart:n,onDragOver:a,onDrop:i,onDragEnd:o,isDragOver:l=!1,isDragging:c=!1})=>{let g,d=null;if(localStorage.getItem("quicklinksnewtab")==="true"&&(g="_blank",d="noopener noreferrer"),localStorage.getItem("quicklinksText")==="true")return s.jsx("a",{className:"quicklinkstext",onContextMenu:Q=>A(e.key,Q),href:e.url,target:g,rel:d,draggable:!1,children:e.name});const p=e.icon||os(e.url,e.name),v=`messageMap ${c?"dragging":""} ${l?"drag-over":""}`;return s.jsxs("div",{className:v,draggable:t,onDragStart:Q=>n&&n(Q,e.key),onDragOver:Q=>a&&a(Q,e.key),onDrop:Q=>i&&i(Q,e.key),onDragEnd:Q=>o&&o(Q),children:[s.jsx("div",{className:"dragHandle","aria-hidden":!0,children:s.jsx(_i,{})}),s.jsx("div",{className:"icon",children:s.jsx("img",{src:p,alt:e.name,draggable:!1,style:{height:"30px",width:"30px"}})}),s.jsxs("div",{className:"messageText",children:[s.jsx("div",{className:"title",children:e.name}),s.jsx("div",{className:"subtitle",children:s.jsx("a",{className:"quicklinknostyle",target:"_blank",rel:"noopener noreferrer",href:e.url,children:e.url})})]}),s.jsx("div",{children:s.jsxs("div",{className:"messageAction",children:[s.jsx(pA,{type:"settings",onClick:()=>r(e),icon:s.jsx(ls,{}),label:f.getMessage("modals.main.settings.sections.quicklinks.edit")}),s.jsx(pA,{type:"settings",onClick:Q=>A(e.key,Q),icon:s.jsx(Bt,{}),label:f.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]})};function So({appsEnabled:e}){const A=pt(),[r,t]=b.useState({newLink:!1,edit:!1,items:JSON.parse(localStorage.getItem("applinks")),urlError:"",iconError:"",editData:null}),n=async(l,c,g)=>{const d=JSON.parse(localStorage.getItem("applinks"));if(!c.startsWith("http://")&&!c.startsWith("https://")&&(c="https://"+c),c.length<=0||ar(c)===!1)return t(u=>({...u,urlError:A("widgets.quicklinks.url_error")}));if(g.length>0&&ar(g)===!1)return t(u=>({...u,iconError:A("widgets.quicklinks.icon_error")}));d.push({name:l||await nr(c),url:c,icon:g||"",key:Math.random().toString(36).substring(7)+1}),localStorage.setItem("applinks",JSON.stringify(d)),t({newLink:!1,edit:!1,items:d,urlError:"",iconError:""}),vA.emit("refresh","navbar"),f.stats.postEvent("feature","App link add")},a=l=>{t(c=>({...c,edit:!0,editData:l}))},i=async(l,c,g,d)=>{const u=JSON.parse(localStorage.getItem("applinks")),p=u.find(v=>v.key===l.key);p.name=c||await nr(g),p.url=g,p.icon=d||"",localStorage.setItem("applinks",JSON.stringify(u)),t(v=>({...v,items:u,edit:!1,newLink:!1})),vA.emit("refresh","navbar")},o=(l,c)=>{c.preventDefault();const g=JSON.parse(localStorage.getItem("applinks")).filter(d=>d.key!==l);localStorage.setItem("applinks",JSON.stringify(g)),t(d=>({...d,items:g})),vA.emit("refresh","navbar"),f.stats.postEvent("feature","App link delete")};return s.jsxs(s.Fragment,{children:[s.jsxs(rA,{final:!0,inactive:!e,children:[s.jsx(nA,{title:A("widgets.navbar.apps.title"),subtitle:A("modals.main.settings.sections.appearance.navbar.apps_subtitle")}),s.jsx(lA,{children:s.jsx(pA,{type:"settings",onClick:()=>t(l=>({...l,newLink:!0})),icon:s.jsx(cn,{}),label:A("modals.main.settings.sections.quicklinks.add_link")})})]}),s.jsx("div",{className:"messagesContainer",children:r.items.map((l,c)=>s.jsx(Ho,{item:l,startEditLink:()=>a(l),deleteLink:(g,d)=>o(g,d)},c))}),s.jsx(Re,{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:s.jsx(cs,{urlError:r.urlError,addLink:(l,c,g)=>n(l,c,g),editLink:(l,c,g,d)=>i(l,c,g,d),edit:r.edit,editData:r.editData,closeModal:()=>t(l=>({...l,newLink:!1,edit:!1}))})})]})}function Lo(){const e=pt(),[A,r]=b.useState(localStorage.getItem("refresh")==="true"),[t,n]=b.useState(localStorage.getItem("appsEnabled")==="true"||!1),a="modals.main.settings.sections.appearance.navbar",i=()=>s.jsxs(rA,{final:!1,children:[s.jsx(nA,{title:e("modals.main.settings.additional_settings"),subtitle:e("modals.main.settings.sections.appearance.navbar.additional")}),s.jsx(lA,{children:s.jsx(mA,{name:"navbarHover",text:e(`${a}.hover`),category:"navbar"})})]}),o=()=>{const c=({icon:d,messageKey:u,settingName:p})=>{const[v,Q]=b.useState(localStorage.getItem(p)!=="true"),x=()=>{localStorage.setItem(p,v),p==="refresh"?r(!A):p==="appsEnabled"&&n(!t),Q(!v),f.stats.postEvent("setting",`${p} ${v?"disabled":"enabled"}`),vA.emit("refresh","navbar")};return s.jsxs("button",{onClick:x,className:`navbarButtonOption ${v===!0?"disabled":""}`,children:[d,s.jsx("span",{className:"subtitle",children:e(u)})]})},g=[{icon:s.jsx(Gi,{}),settingName:"view",messageKey:"modals.main.settings.sections.background.buttons.view"},{icon:s.jsx(ji,{}),settingName:"notesEnabled",messageKey:`${a}.notes`},{icon:s.jsx(Vi,{}),settingName:"todoEnabled",messageKey:"widgets.navbar.todo.title"},{icon:s.jsx(fe,{}),settingName:"refresh",messageKey:`${a}.refresh`},{icon:s.jsx(Pi,{}),settingName:"appsEnabled",messageKey:"widgets.navbar.apps.title"}];return s.jsxs(rA,{children:[s.jsx(nA,{title:e("modals.main.settings.sections.appearance.navbar.widgets")}),s.jsx(lA,{children:s.jsx("div",{className:"navbarButtonOptions",children:g.map((d,u)=>s.jsx(c,{...d},u))})})]})},l=()=>s.jsxs(rA,{final:!1,inactive:!A,children:[s.jsx(nA,{title:e(`${a}.refresh`),subtitle:e("modals.main.settings.sections.appearance.navbar.refresh_subtitle")}),s.jsx(lA,{children:s.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 s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:e(`${a}.title`),setting:"navbar",category:"widgets",zoomSetting:"zoomNavbar",zoomCategory:"navbar"}),s.jsx(i,{}),s.jsx(o,{}),s.jsx(l,{}),s.jsx(So,{appsEnabled:t})]})}const ko=b.memo(Lo),zn=[{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}],Mo=({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(JSON.parse(localStorage.getItem("customEvents"))||[]),[a,i]=b.useState(()=>{const w=localStorage.getItem("birthday");return w?new Date(w):new Date}),[o,l]=b.useState(localStorage.getItem("birthdayenabled")==="true"?"preferences":"preferencesInactive"),[c,g]=b.useState(localStorage.getItem("events")==="true"?"preferences":"preferencesInactive"),d=w=>{const I=w.target.value?new Date(w.target.value):new Date;localStorage.setItem("birthday",I),i(I)},u="modals.main.settings.sections.greeting",p=()=>{const w=JSON.parse(localStorage.getItem("customEvents"))||[],I={id:"widgets.greeting.halloween",name:"",month:1,date:1},K=[...w,I];w.push(I),localStorage.setItem("customEvents",JSON.stringify(w)),n(K)},v=w=>{const I=t.filter((K,M)=>M!==w);localStorage.setItem("customEvents",JSON.stringify(I)),n(I)},Q=()=>{localStorage.setItem("customEvents",JSON.stringify(zn)),n(zn),RA(f.getMessage("toasts.reset"))},x=(w,I)=>{n(M=>{const O=[...M];return O[w]=I,O});const K=JSON.parse(localStorage.getItem("customEvents")||"[]");K[w]=I,localStorage.setItem("customEvents",JSON.stringify(K))},U=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.additional_settings"),subtitle:f.getMessage(`${u}.additional`)}),s.jsxs(lA,{children:[s.jsx(mA,{name:"defaultGreetingMessage",text:f.getMessage(`${u}.default`),category:"greeting"}),s.jsx(tr,{title:f.getMessage(`${u}.name`),name:"greetingName",category:"greeting"})]})]}),F=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage(`${u}.birthday`),subtitle:f.getMessage("modals.main.settings.sections.greeting.birthday_subtitle")}),s.jsxs(lA,{children:[s.jsx(gs,{name:"birthdayenabled",text:f.getMessage("modals.main.settings.enabled"),category:"greeting",onChange:w=>{l(w?"preferences":"preferencesInactive")}}),s.jsxs("div",{className:o,children:[s.jsx(mA,{name:"birthdayage",text:f.getMessage(`${u}.birthday_age`),category:"greeting"}),s.jsx("p",{style:{marginRight:"auto"},children:f.getMessage(`${u}.birthday_date`)}),s.jsx("input",{type:"date",onChange:d,value:a.toISOString().substring(0,10),required:!0})]})]})]}),L=()=>s.jsxs("div",{className:c,children:[s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${u}.custom`)}),s.jsx(lA,{children:s.jsxs("div",{className:"headerActions",children:[s.jsx(pA,{type:"settings",onClick:Q,icon:s.jsx(fe,{}),label:f.getMessage("modals.main.settings.buttons.reset")}),s.jsx(pA,{type:"settings",onClick:p,icon:s.jsx(er,{}),label:f.getMessage("widgets.quicklinks.add")})]})})]}),s.jsx("div",{className:"messagesContainer",children:t.map((w,I)=>s.jsxs("div",{className:"messageMap",children:[s.jsxs("div",{className:"flexGrow",children:[s.jsx("div",{className:"icon",children:s.jsx(Hr,{})}),s.jsxs("div",{className:"messageText",children:[s.jsx("span",{className:"subtitle",children:f.getMessage(`${u}.event_name`)}),s.jsx("input",{type:"text",className:"text-field-input",value:w.name,placeholder:f.getMessage(`${u}.event_name`),onChange:K=>{const M={...w,name:K.target.value};x(I,M)}})]})]}),s.jsx("div",{children:s.jsxs("div",{className:"messageAction",children:[s.jsxs("div",{className:"eventDateSelection",children:[s.jsxs("label",{className:"subtitle",children:[f.getMessage(`${u}.day`),":"]}),s.jsx("input",{id:"day",type:"number",min:"1",max:"31",value:w.date,onChange:K=>{const M=parseInt(K.target.value,10);if(M>=1&&M<=31){const O={...w,date:M};x(I,O)}}}),s.jsx("hr",{}),s.jsxs("label",{className:"subtitle",children:[f.getMessage(`${u}.month`),":"]}),s.jsx("input",{id:"month",type:"number",min:"1",max:"12",value:w.month,onChange:K=>{const M=parseInt(K.target.value,10);if(M>=1&&M<=12){const O={...w,month:M};x(I,O)}}})]}),s.jsx(pA,{type:"settings",onClick:()=>v(I),icon:s.jsx(Bt,{}),label:f.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]},I))}),t.length===0&&s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Hr,{}),s.jsx("span",{className:"title",children:f.getMessage(`${u}.no_events`)}),s.jsx("span",{className:"subtitle",children:f.getMessage(`${u}.no_events_description`)}),s.jsx(pA,{type:"settings",onClick:p,icon:s.jsx(er,{}),label:f.getMessage(`${u}.add_event`)})]})})]}),k=e==="events";let y;return k?y=s.jsx(TA,{title:f.getMessage(`${u}.title`),secondaryTitle:f.getMessage(`${u}.events.title`),goBack:()=>A(null,r),report:!1}):y=s.jsx(TA,{title:f.getMessage(`${u}.title`),setting:"greeting",category:"greeting",element:".greeting",zoomSetting:"zoomGreeting",visibilityToggle:!0}),s.jsxs(s.Fragment,{children:[y,k?s.jsxs(s.Fragment,{children:[s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage(`${u}.events`),subtitle:f.getMessage(`${u}.enable_events`)}),s.jsx(lA,{children:s.jsx(mA,{name:"events",text:f.getMessage(`${u}.events`),category:"greeting",onChange:w=>{g(w?"preferences":"preferencesInactive")}})})]}),F(),L()]}):s.jsxs(Ct,{setting:"greeting",zoomSetting:"zoomGreeting",category:"greeting",visibilityToggle:!0,children:[s.jsx(U,{}),s.jsx(On,{title:f.getMessage(`${u}.events`),subtitle:f.getMessage(`${u}.events_description`),onClick:()=>A("events",r),icon:s.jsx(Hr,{})})]})]})},Ko=()=>{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"),[i,o]=b.useState(localStorage.getItem("secondColour")||"#ffffff"),l="modals.main.settings.sections.time",c=(Q,x)=>{const U=x.target.value;Q==="hourColour"?t(U):Q==="minuteColour"?a(U):Q==="secondColour"&&o(U),localStorage.setItem(Q,U)},g=()=>s.jsxs(rA,{final:e==="percentageComplete",children:[s.jsx(nA,{title:f.getMessage(`${l}.type`),subtitle:f.getMessage(`${l}.type_subtitle`)}),s.jsx(lA,{children:s.jsx(KA,{name:"timeType",onChange:Q=>A(Q),category:"clock",items:[{value:"digital",text:f.getMessage(`${l}.digital.title`)},{value:"analogue",text:f.getMessage(`${l}.analogue.title`)},{value:"percentageComplete",text:f.getMessage(`${l}.percentage_complete`)},{value:"verticalClock",text:f.getMessage(`${l}.vertical_clock.title`)}]})})]}),d=s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${l}.digital.title`),subtitle:f.getMessage(`${l}.digital.subtitle`)}),s.jsxs(lA,{children:[s.jsx(gn,{name:"timeformat",options:[{name:f.getMessage(`${l}.digital.twentyfourhour`),value:"twentyfourhour"},{name:f.getMessage(`${l}.digital.twelvehour`),value:"twelvehour"}],smallTitle:!0,category:"clock"}),s.jsx(mA,{name:"seconds",text:f.getMessage(`${l}.digital.seconds`),category:"clock"}),s.jsx(mA,{name:"zero",text:f.getMessage(`${l}.digital.zero`),category:"clock"})]})]}),u=s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${l}.analogue.title`),subtitle:f.getMessage(`${l}.analogue.subtitle`)}),s.jsxs(lA,{children:[s.jsx(mA,{name:"secondHand",text:f.getMessage(`${l}.analogue.second_hand`),category:"clock"}),s.jsx(mA,{name:"minuteHand",text:f.getMessage(`${l}.analogue.minute_hand`),category:"clock"}),s.jsx(mA,{name:"hourHand",text:f.getMessage(`${l}.analogue.hour_hand`),category:"clock"}),s.jsx(mA,{name:"hourMarks",text:f.getMessage(`${l}.analogue.hour_marks`),category:"clock"}),s.jsx(mA,{name:"minuteMarks",text:f.getMessage(`${l}.analogue.minute_marks`),category:"clock"}),s.jsx(mA,{name:"roundClock",text:f.getMessage(`${l}.analogue.round_clock`),category:"clock"})]})]}),p=s.jsxs(s.Fragment,{children:[s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.vertical_clock.change_hour_colour")}),s.jsxs(lA,{children:[s.jsxs("div",{className:"colourInput",children:[s.jsx("input",{type:"color",name:"hourColour",className:"minuteColour",onChange:Q=>c("hourColour",Q),value:r}),s.jsx("label",{htmlFor:"hourColour",className:"customBackgroundHex",children:r})]}),s.jsxs("span",{className:"link",onClick:()=>localStorage.setItem("hourColour","#ffffff"),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})]})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.vertical_clock.change_minute_colour")}),s.jsxs(lA,{children:[s.jsxs("div",{className:"colourInput",children:[s.jsx("input",{type:"color",name:"minuteColour",className:"minuteColour",onChange:Q=>c("minuteColour",Q),value:n}),s.jsx("label",{htmlFor:"minuteColour",className:"customBackgroundHex",children:n})]}),s.jsxs("span",{className:"link",onClick:()=>localStorage.setItem("minuteColour","#ffffff"),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})]})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.vertical_clock.change_second_colour")}),s.jsxs(lA,{children:[s.jsxs("div",{className:"colourInput",children:[s.jsx("input",{type:"color",name:"secondColour",className:"secondColour",onChange:Q=>c("secondColour",Q),value:i}),s.jsx("label",{htmlFor:"secondColour",className:"customBackgroundHex",children:i})]}),s.jsxs("span",{className:"link",onClick:()=>localStorage.setItem("secondColour","#ffffff"),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})]})]}),d]}),v=()=>{switch(e){case"digital":return d;case"analogue":return u;case"verticalClock":return p;default:return null}};return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage(`${l}.title`),setting:"time",category:"clock",element:".clock-container",zoomSetting:"zoomClock",visibilityToggle:!0}),s.jsxs(Ct,{setting:"time",zoomSetting:"zoomClock",category:"clock",visibilityToggle:!0,children:[s.jsx(g,{}),v()]})]})};function To(){const[e,A]=b.useState(localStorage.getItem("dateType")||"long"),r=["DMY","MDY","YMD"],t=s.jsxs(s.Fragment,{children:[s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.date.long_format"),name:"longFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),s.jsx(mA,{name:"dayofweek",text:f.getMessage("modals.main.settings.sections.date.day_of_week"),category:"date"}),s.jsx(mA,{name:"datenth",text:f.getMessage("modals.main.settings.sections.date.datenth"),category:"date"})]}),n=s.jsxs(s.Fragment,{children:[s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.date.short_format"),name:"dateFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.date.short_separator.title"),name:"shortFormat",category:"date",items:[{value:"dash",text:f.getMessage("modals.main.settings.sections.date.short_separator.dash")},{value:"dots",text:f.getMessage("modals.main.settings.sections.date.short_separator.dots")},{value:"gaps",text:f.getMessage("modals.main.settings.sections.date.short_separator.gaps")},{value:"slashes",text:f.getMessage("modals.main.settings.sections.date.short_separator.slashes")}]})]});return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.date.title"),setting:"date",category:"date",element:".date",zoomSetting:"zoomDate",visibilityToggle:!0}),s.jsxs(Ct,{setting:"date",visibilityToggle:!0,category:"date",zoomSetting:"zoomDate",children:[s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.type"),subtitle:f.getMessage("modals.main.settings.sections.date.type.subtitle")}),s.jsx(lA,{children:s.jsx(KA,{name:"dateType",onChange:a=>{A(a),localStorage.setItem("dateType",a)},category:"date",items:[{value:"long",text:f.getMessage("modals.main.settings.sections.date.type.long")},{value:"short",text:f.getMessage("modals.main.settings.sections.date.type.short")}]})})]}),s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:e==="long"?f.getMessage("modals.main.settings.sections.date.type.long"):f.getMessage("modals.main.settings.sections.date.type.short"),subtitle:f.getMessage("modals.main.settings.sections.date.type_settings")}),s.jsxs(lA,{children:[e==="long"?t:n,s.jsx(mA,{name:"weeknumber",text:f.getMessage("modals.main.settings.sections.date.week_number"),category:"date"}),s.jsx(mA,{name:"datezero",text:f.getMessage("modals.main.settings.sections.time.digital.zero"),category:"date"})]})]})]})]})}const Do=()=>s.jsx("div",{className:"quicklink-drag-handle","aria-hidden":"true",children:s.jsx(us,{})}),Oo=({value:e,enabled:A,startEditLink:r,deleteLink:t})=>{const{attributes:n,listeners:a,setNodeRef:i,transform:o,transition:l,isDragging:c}=Bs({id:e.key,disabled:!A}),g={transform:ds.Transform.toString(o),transition:l,opacity:c?.5:1},d=u=>u.icon||os(u.url,u.name);return s.jsxs("div",{ref:i,style:g,...n,...a,className:`quicklink-item ${A?"":"disabled"}`,role:"listitem",children:[s.jsx(Do,{}),s.jsx("div",{className:"quicklink-icon",children:s.jsx("img",{src:d(e),alt:e.name,draggable:!1})}),s.jsxs("div",{className:"quicklink-content",children:[s.jsx("div",{className:"quicklink-name",children:e.name}),s.jsx("div",{className:"quicklink-url",children:e.url})]}),s.jsxs("div",{className:"quicklink-actions",children:[s.jsxs("button",{className:"quicklink-action-btn",onClick:u=>{A&&(u.stopPropagation(),r(e))},title:"Edit",disabled:!A,"aria-disabled":!A,children:[s.jsx(ls,{}),s.jsx("span",{children:"Edit"})]}),s.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:[s.jsx(Xi,{}),s.jsx("span",{children:"Remove"})]})]})]})},Ro=({items:e,enabled:A,onDragEnd:r,startEditLink:t,deleteLink:n})=>{const a=fs(rr(ps,{activationConstraint:{distance:6}}),rr(ws,{coordinateGetter:hs}));return s.jsx(Cs,{sensors:a,collisionDetection:Qs,onDragEnd:r,children:s.jsx(ms,{items:e.map(i=>i.key),strategy:vs,children:s.jsx("div",{className:"quicklinks-list",role:"list",children:e.map(i=>s.jsx(Oo,{value:i,enabled:A,startEditLink:t,deleteLink:n},i.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),[]}},No=()=>{const[e,A]=b.useState(Xe()),[r,t]=b.useState(!1),[n,a]=b.useState(""),[i,o]=b.useState(""),[l,c]=b.useState(!1),[g,d]=b.useState(""),[u,p]=b.useState(localStorage.getItem("quicklinksenabled")!=="false"),v=b.useRef(),Q=b.useRef(!1),x=O=>{if(!v||!v.current)return;const T=v.current;T.classList.toggle("disabled",!O),O?T.removeAttribute("aria-hidden"):T.setAttribute("aria-hidden","true")},U=(O,T)=>{T.preventDefault();const R=Xe().filter(W=>W.key!==O);Q.current=!0,localStorage.setItem("quicklinks",JSON.stringify(R)),A(R),f.stats.postEvent("feature","Quicklink delete"),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0)},F=async(O,T,X)=>{const R=Xe();if(!T.startsWith("http://")&&!T.startsWith("https://")&&(T="https://"+T),T.length<=0||ar(T)===!1){a(f.getMessage("widgets.quicklinks.url_error"));return}if(X.length>0&&ar(X)===!1){o(f.getMessage("widgets.quicklinks.url_error"));return}const W={name:O||await nr(T),url:T,icon:X||"",key:Date.now().toString()+Math.random().toString(36).substring(2)};R.push(W),Q.current=!0,localStorage.setItem("quicklinks",JSON.stringify(R)),A(R),t(!1),a(""),o(""),f.stats.postEvent("feature","Quicklink add"),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0)},L=O=>{c(!0),d(O),t(!0)},k=async(O,T,X,R)=>{const W=Xe(),$=W.find(eA=>eA.key===O.key);$&&($.name=T||await nr(X),$.url=X,$.icon=R||"",Q.current=!0,localStorage.setItem("quicklinks",JSON.stringify(W)),A(W),t(!1),c(!1),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0))},y=O=>{const{active:T,over:X}=O;if(!X||!u||T.id===X.id)return;const R=e.findIndex(eA=>eA.key===T.id),W=e.findIndex(eA=>eA.key===X.id);if(R===-1||W===-1)return;const $=Us(e,R,W);Q.current=!0,A($),localStorage.setItem("quicklinks",JSON.stringify($)),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0)};b.useEffect(()=>{x(u)},[u]),b.useEffect(()=>{x(u);const O=T=>{if(T!=="quicklinks"||Q.current)return;const X=localStorage.getItem("quicklinksenabled")!=="false",R=Xe(),W=e||[],$=W.length===R.length&&W.every(eA=>R.some(AA=>AA.key===eA.key));(X!==u||!$)&&(x(X),A(R),p(X))};return vA.on("refresh",O),()=>{vA.off("refresh",O)}},[u,e]);const w="modals.main.settings.sections.quicklinks",I=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.additional_settings"),subtitle:f.getMessage(`${w}.additional`)}),s.jsxs(lA,{children:[s.jsx(mA,{name:"quicklinksnewtab",text:f.getMessage(`${w}.open_new`),category:"quicklinks"}),s.jsx(mA,{name:"quicklinkstooltip",text:f.getMessage(`${w}.tooltip`),category:"quicklinks"})]})]}),K=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage(`${w}.styling`),subtitle:f.getMessage("modals.main.settings.sections.quicklinks.styling_description")}),s.jsx(lA,{children:s.jsx(KA,{label:f.getMessage(`${w}.style`),name:"quickLinksStyle",category:"quicklinks",items:[{value:"icon",text:f.getMessage(`${w}.options.icon`)},{value:"text_only",text:f.getMessage(`${w}.options.text_only`)},{value:"metro",text:f.getMessage(`${w}.options.metro`)}]})})]}),M=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${w}.title`)}),s.jsx(lA,{children:s.jsx(pA,{type:"settings",onClick:()=>u&&t(!0),icon:s.jsx(cn,{}),label:f.getMessage(`${w}.add_link`),disabled:!u})})]});return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage(`${w}.title`),setting:"quicklinksenabled",category:"quicklinks",element:".quicklinks-container",zoomSetting:"zoomQuicklinks",visibilityToggle:!0}),s.jsxs(Ct,{setting:"quicklinksenabled",category:"quicklinks",visibilityToggle:!0,zoomSetting:"zoomQuicklinks",children:[s.jsx(I,{}),s.jsx(K,{}),s.jsx(M,{}),e.length===0&&s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Ji,{}),s.jsx("span",{className:"title",children:f.getMessage(`${w}.no_quicklinks`)}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.message.add_some")}),s.jsx(pA,{type:"settings",onClick:()=>t(!0),icon:s.jsx(cn,{}),label:f.getMessage(`${w}.add_link`)})]})})]}),s.jsx("div",{className:`quicklinks-container ${u?"":"disabled"}`,ref:v,"aria-hidden":!u,children:s.jsx("div",{className:`messagesContainer ${u?"":"disabled"}`,children:s.jsx(Ro,{items:e,enabled:u,onDragEnd:y,startEditLink:O=>L(O),deleteLink:(O,T)=>U(O,T)})})}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a(""),o("")},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(cs,{urlError:n,addLink:(O,T,X)=>F(O,T,X),editLink:(O,T,X,R)=>k(O,T,X,R),edit:l,editData:g,closeModal:()=>{t(!1),a(""),o(""),c(!1)}})})]})},_o=()=>{const[e,A]=b.useState(JSON.parse(localStorage.getItem("messages"))||[]),r=(a,i)=>{const o=[...e];a==="add"?o.push(""):o.splice(i,1),A(o),localStorage.setItem("messages",JSON.stringify(o))},t=(a,i,o)=>{const l=a.target.value,c=[...e];c[o]=l,A(c),localStorage.setItem("messages",JSON.stringify(c)),document.querySelector(".reminder-info").style.display="flex",localStorage.setItem("showReminder",!0)},n="modals.main.settings.sections.message";return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage(`${n}.title`),setting:"message",category:"message",element:".message",zoomSetting:"zoomMessage",visibilityToggle:!0}),s.jsxs(Ct,{setting:"message",visibilityToggle:!0,category:"message",zoomSetting:"zoomMessage",children:[s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${n}.messages`)}),s.jsx(lA,{children:s.jsx(pA,{type:"settings",onClick:()=>r("add"),icon:s.jsx(er,{}),label:f.getMessage(`${n}.add`)})})]}),s.jsx("div",{className:"messagesContainer",children:e.map((a,i)=>s.jsxs("div",{className:"messageMap",children:[s.jsxs("div",{className:"flexGrow",children:[s.jsx("div",{className:"icon",children:s.jsx(Wn,{})}),s.jsxs("div",{className:"messageText",children:[s.jsx("span",{className:"subtitle",children:f.getMessage(`${n}.title`)}),s.jsx(Wi,{value:e[i],placeholder:f.getMessage("modals.main.settings.sections.message.content"),onChange:o=>t(o,!0,i),minRows:2})]})]}),s.jsx("div",{children:s.jsx("div",{className:"messageAction",children:s.jsx(pA,{type:"settings",onClick:()=>r("remove",i),icon:s.jsx(Bt,{}),label:f.getMessage("modals.main.marketplace.product.buttons.remove")})})})]},i))}),e.length===0&&s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Wn,{}),s.jsx("span",{className:"title",children:f.getMessage(`${n}.no_messages`)}),s.jsx("span",{className:"subtitle",children:f.getMessage(`${n}.add_some`)}),s.jsx(pA,{type:"settings",onClick:()=>r("add"),icon:s.jsx(er,{}),label:f.getMessage(`${n}.add`)})]})})]})]})};var Lr={exports:{}},qn;function Go(){return qn||(qn=1,(function(e){(function(A){var r=/^\s+/,t=/\s+$/,n=0,a=A.round,i=A.min,o=A.max,l=A.random;function c(B,C){if(B=B||"",C=C||{},B instanceof c)return B;if(!(this instanceof c))return new c(B,C);var h=g(B);this._originalInput=B,this._r=h.r,this._g=h.g,this._b=h.b,this._a=h.a,this._roundA=a(100*this._a)/100,this._format=C.format||h.format,this._gradientType=C.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=h.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 B=this.toRgb();return(B.r*299+B.g*587+B.b*114)/1e3},getLuminance:function(){var B=this.toRgb(),C,h,E,D,G,aA;return C=B.r/255,h=B.g/255,E=B.b/255,C<=.03928?D=C/12.92:D=A.pow((C+.055)/1.055,2.4),h<=.03928?G=h/12.92:G=A.pow((h+.055)/1.055,2.4),E<=.03928?aA=E/12.92:aA=A.pow((E+.055)/1.055,2.4),.2126*D+.7152*G+.0722*aA},setAlpha:function(B){return this._a=sA(B),this._roundA=a(100*this._a)/100,this},toHsv:function(){var B=v(this._r,this._g,this._b);return{h:B.h*360,s:B.s,v:B.v,a:this._a}},toHsvString:function(){var B=v(this._r,this._g,this._b),C=a(B.h*360),h=a(B.s*100),E=a(B.v*100);return this._a==1?"hsv("+C+", "+h+"%, "+E+"%)":"hsva("+C+", "+h+"%, "+E+"%, "+this._roundA+")"},toHsl:function(){var B=u(this._r,this._g,this._b);return{h:B.h*360,s:B.s,l:B.l,a:this._a}},toHslString:function(){var B=u(this._r,this._g,this._b),C=a(B.h*360),h=a(B.s*100),E=a(B.l*100);return this._a==1?"hsl("+C+", "+h+"%, "+E+"%)":"hsla("+C+", "+h+"%, "+E+"%, "+this._roundA+")"},toHex:function(B){return x(this._r,this._g,this._b,B)},toHexString:function(B){return"#"+this.toHex(B)},toHex8:function(B){return U(this._r,this._g,this._b,this._a,B)},toHex8String:function(B){return"#"+this.toHex8(B)},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(z(this._r,255)*100)+"%",g:a(z(this._g,255)*100)+"%",b:a(z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(z(this._r,255)*100)+"%, "+a(z(this._g,255)*100)+"%, "+a(z(this._b,255)*100)+"%)":"rgba("+a(z(this._r,255)*100)+"%, "+a(z(this._g,255)*100)+"%, "+a(z(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(B){var C="#"+F(this._r,this._g,this._b,this._a),h=C,E=this._gradientType?"GradientType = 1, ":"";if(B){var D=c(B);h="#"+F(D._r,D._g,D._b,D._a)}return"progid:DXImageTransform.Microsoft.gradient("+E+"startColorstr="+C+",endColorstr="+h+")"},toString:function(B){var C=!!B;B=B||this._format;var h=!1,E=this._a<1&&this._a>=0,D=!C&&E&&(B==="hex"||B==="hex6"||B==="hex3"||B==="hex4"||B==="hex8"||B==="name");return D?B==="name"&&this._a===0?this.toName():this.toRgbString():(B==="rgb"&&(h=this.toRgbString()),B==="prgb"&&(h=this.toPercentageRgbString()),(B==="hex"||B==="hex6")&&(h=this.toHexString()),B==="hex3"&&(h=this.toHexString(!0)),B==="hex4"&&(h=this.toHex8String(!0)),B==="hex8"&&(h=this.toHex8String()),B==="name"&&(h=this.toName()),B==="hsl"&&(h=this.toHslString()),B==="hsv"&&(h=this.toHsvString()),h||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(B,C){var h=B.apply(null,[this].concat([].slice.call(C)));return this._r=h._r,this._g=h._g,this._b=h._b,this.setAlpha(h._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(I,arguments)},darken:function(){return this._applyModification(K,arguments)},desaturate:function(){return this._applyModification(L,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(B,C){return B.apply(null,[this].concat([].slice.call(C)))},analogous:function(){return this._applyCombination(W,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(X,arguments)}},c.fromRatio=function(B,C){if(typeof B=="object"){var h={};for(var E in B)B.hasOwnProperty(E)&&(E==="a"?h[E]=B[E]:h[E]=Y(B[E]));B=h}return c(B,C)};function g(B){var C={r:0,g:0,b:0},h=1,E=null,D=null,G=null,aA=!1,hA=!1;return typeof B=="string"&&(B=H(B)),typeof B=="object"&&(tA(B.r)&&tA(B.g)&&tA(B.b)?(C=d(B.r,B.g,B.b),aA=!0,hA=String(B.r).substr(-1)==="%"?"prgb":"rgb"):tA(B.h)&&tA(B.s)&&tA(B.v)?(E=Y(B.s),D=Y(B.v),C=Q(B.h,E,D),aA=!0,hA="hsv"):tA(B.h)&&tA(B.s)&&tA(B.l)&&(E=Y(B.s),G=Y(B.l),C=p(B.h,E,G),aA=!0,hA="hsl"),B.hasOwnProperty("a")&&(h=B.a)),h=sA(h),{ok:aA,format:B.format||hA,r:i(255,o(C.r,0)),g:i(255,o(C.g,0)),b:i(255,o(C.b,0)),a:h}}function d(B,C,h){return{r:z(B,255)*255,g:z(C,255)*255,b:z(h,255)*255}}function u(B,C,h){B=z(B,255),C=z(C,255),h=z(h,255);var E=o(B,C,h),D=i(B,C,h),G,aA,hA=(E+D)/2;if(E==D)G=aA=0;else{var UA=E-D;switch(aA=hA>.5?UA/(2-E-D):UA/(E+D),E){case B:G=(C-h)/UA+(C<h?6:0);break;case C:G=(h-B)/UA+2;break;case h:G=(B-C)/UA+4;break}G/=6}return{h:G,s:aA,l:hA}}function p(B,C,h){var E,D,G;B=z(B,360),C=z(C,100),h=z(h,100);function aA(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(C===0)E=D=G=h;else{var hA=h<.5?h*(1+C):h+C-h*C,UA=2*h-hA;E=aA(UA,hA,B+1/3),D=aA(UA,hA,B),G=aA(UA,hA,B-1/3)}return{r:E*255,g:D*255,b:G*255}}function v(B,C,h){B=z(B,255),C=z(C,255),h=z(h,255);var E=o(B,C,h),D=i(B,C,h),G,aA,hA=E,UA=E-D;if(aA=E===0?0:UA/E,E==D)G=0;else{switch(E){case B:G=(C-h)/UA+(C<h?6:0);break;case C:G=(h-B)/UA+2;break;case h:G=(B-C)/UA+4;break}G/=6}return{h:G,s:aA,v:hA}}function Q(B,C,h){B=z(B,360)*6,C=z(C,100),h=z(h,100);var E=A.floor(B),D=B-E,G=h*(1-C),aA=h*(1-D*C),hA=h*(1-(1-D)*C),UA=E%6,jA=[h,aA,G,G,hA,h][UA],Pe=[hA,h,h,aA,G,G][UA],YA=[G,G,hA,h,h,aA][UA];return{r:jA*255,g:Pe*255,b:YA*255}}function x(B,C,h,E){var D=[N(a(B).toString(16)),N(a(C).toString(16)),N(a(h).toString(16))];return E&&D[0].charAt(0)==D[0].charAt(1)&&D[1].charAt(0)==D[1].charAt(1)&&D[2].charAt(0)==D[2].charAt(1)?D[0].charAt(0)+D[1].charAt(0)+D[2].charAt(0):D.join("")}function U(B,C,h,E,D){var G=[N(a(B).toString(16)),N(a(C).toString(16)),N(a(h).toString(16)),N(gA(E))];return D&&G[0].charAt(0)==G[0].charAt(1)&&G[1].charAt(0)==G[1].charAt(1)&&G[2].charAt(0)==G[2].charAt(1)&&G[3].charAt(0)==G[3].charAt(1)?G[0].charAt(0)+G[1].charAt(0)+G[2].charAt(0)+G[3].charAt(0):G.join("")}function F(B,C,h,E){var D=[N(gA(E)),N(a(B).toString(16)),N(a(C).toString(16)),N(a(h).toString(16))];return D.join("")}c.equals=function(B,C){return!B||!C?!1:c(B).toRgbString()==c(C).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})};function L(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.s-=C/100,h.s=cA(h.s),c(h)}function k(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.s+=C/100,h.s=cA(h.s),c(h)}function y(B){return c(B).desaturate(100)}function w(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.l+=C/100,h.l=cA(h.l),c(h)}function I(B,C){C=C===0?0:C||10;var h=c(B).toRgb();return h.r=o(0,i(255,h.r-a(255*-(C/100)))),h.g=o(0,i(255,h.g-a(255*-(C/100)))),h.b=o(0,i(255,h.b-a(255*-(C/100)))),c(h)}function K(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.l-=C/100,h.l=cA(h.l),c(h)}function M(B,C){var h=c(B).toHsl(),E=(h.h+C)%360;return h.h=E<0?360+E:E,c(h)}function O(B){var C=c(B).toHsl();return C.h=(C.h+180)%360,c(C)}function T(B){var C=c(B).toHsl(),h=C.h;return[c(B),c({h:(h+120)%360,s:C.s,l:C.l}),c({h:(h+240)%360,s:C.s,l:C.l})]}function X(B){var C=c(B).toHsl(),h=C.h;return[c(B),c({h:(h+90)%360,s:C.s,l:C.l}),c({h:(h+180)%360,s:C.s,l:C.l}),c({h:(h+270)%360,s:C.s,l:C.l})]}function R(B){var C=c(B).toHsl(),h=C.h;return[c(B),c({h:(h+72)%360,s:C.s,l:C.l}),c({h:(h+216)%360,s:C.s,l:C.l})]}function W(B,C,h){C=C||6,h=h||30;var E=c(B).toHsl(),D=360/h,G=[c(B)];for(E.h=(E.h-(D*C>>1)+720)%360;--C;)E.h=(E.h+D)%360,G.push(c(E));return G}function $(B,C){C=C||6;for(var h=c(B).toHsv(),E=h.h,D=h.s,G=h.v,aA=[],hA=1/C;C--;)aA.push(c({h:E,s:D,v:G})),G=(G+hA)%1;return aA}c.mix=function(B,C,h){h=h===0?0:h||50;var E=c(B).toRgb(),D=c(C).toRgb(),G=h/100,aA={r:(D.r-E.r)*G+E.r,g:(D.g-E.g)*G+E.g,b:(D.b-E.b)*G+E.b,a:(D.a-E.a)*G+E.a};return c(aA)},c.readability=function(B,C){var h=c(B),E=c(C);return(A.max(h.getLuminance(),E.getLuminance())+.05)/(A.min(h.getLuminance(),E.getLuminance())+.05)},c.isReadable=function(B,C,h){var E=c.readability(B,C),D,G;switch(G=!1,D=P(h),D.level+D.size){case"AAsmall":case"AAAlarge":G=E>=4.5;break;case"AAlarge":G=E>=3;break;case"AAAsmall":G=E>=7;break}return G},c.mostReadable=function(B,C,h){var E=null,D=0,G,aA,hA,UA;h=h||{},aA=h.includeFallbackColors,hA=h.level,UA=h.size;for(var jA=0;jA<C.length;jA++)G=c.readability(B,C[jA]),G>D&&(D=G,E=c(C[jA]));return c.isReadable(B,E,{level:hA,size:UA})||!aA?E:(h.includeFallbackColors=!1,c.mostReadable(B,["#fff","#000"],h))};var eA=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=fA(eA);function fA(B){var C={};for(var h in B)B.hasOwnProperty(h)&&(C[B[h]]=h);return C}function sA(B){return B=parseFloat(B),(isNaN(B)||B<0||B>1)&&(B=1),B}function z(B,C){S(B)&&(B="100%");var h=_(B);return B=i(C,o(0,parseFloat(B))),h&&(B=parseInt(B*C,10)/100),A.abs(B-C)<1e-6?1:B%C/parseFloat(C)}function cA(B){return i(1,o(0,B))}function iA(B){return parseInt(B,16)}function S(B){return typeof B=="string"&&B.indexOf(".")!=-1&&parseFloat(B)===1}function _(B){return typeof B=="string"&&B.indexOf("%")!=-1}function N(B){return B.length==1?"0"+B:""+B}function Y(B){return B<=1&&(B=B*100+"%"),B}function gA(B){return A.round(parseFloat(B)*255).toString(16)}function Z(B){return iA(B)/255}var q=(function(){var B="[-\\+]?\\d+%?",C="[-\\+]?\\d*\\.\\d+%?",h="(?:"+C+")|(?:"+B+")",E="[\\s|\\(]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")\\s*\\)?",D="[\\s|\\(]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")\\s*\\)?";return{CSS_UNIT:new RegExp(h),rgb:new RegExp("rgb"+E),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+E),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+E),hsva:new RegExp("hsva"+D),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 tA(B){return!!q.CSS_UNIT.exec(B)}function H(B){B=B.replace(r,"").replace(t,"").toLowerCase();var C=!1;if(eA[B])B=eA[B],C=!0;else if(B=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var h;return(h=q.rgb.exec(B))?{r:h[1],g:h[2],b:h[3]}:(h=q.rgba.exec(B))?{r:h[1],g:h[2],b:h[3],a:h[4]}:(h=q.hsl.exec(B))?{h:h[1],s:h[2],l:h[3]}:(h=q.hsla.exec(B))?{h:h[1],s:h[2],l:h[3],a:h[4]}:(h=q.hsv.exec(B))?{h:h[1],s:h[2],v:h[3]}:(h=q.hsva.exec(B))?{h:h[1],s:h[2],v:h[3],a:h[4]}:(h=q.hex8.exec(B))?{r:iA(h[1]),g:iA(h[2]),b:iA(h[3]),a:Z(h[4]),format:C?"name":"hex8"}:(h=q.hex6.exec(B))?{r:iA(h[1]),g:iA(h[2]),b:iA(h[3]),format:C?"name":"hex"}:(h=q.hex4.exec(B))?{r:iA(h[1]+""+h[1]),g:iA(h[2]+""+h[2]),b:iA(h[3]+""+h[3]),a:Z(h[4]+""+h[4]),format:C?"name":"hex8"}:(h=q.hex3.exec(B))?{r:iA(h[1]+""+h[1]),g:iA(h[2]+""+h[2]),b:iA(h[3]+""+h[3]),format:C?"name":"hex"}:!1}function P(B){var C,h;return B=B||{level:"AA",size:"small"},C=(B.level||"AA").toUpperCase(),h=(B.size||"small").toLowerCase(),C!=="AA"&&C!=="AAA"&&(C="AA"),h!=="small"&&h!=="large"&&(h="small"),{level:C,size:h}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(Lr)),Lr.exports}var jo=Go();const SA=Fs(jo);var De=function(){return De=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},De.apply(this,arguments)},Vo=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))},Po=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(S){var _=new Error(e+": "+S);throw _}function t(S){e=e.substr(S)}function n(S){var _=/^[\n\r\t\s]+/.exec(e);_&&t(_[0].length);var N=S.exec(e);return N&&t(N[0].length),N}function a(S){var _=S(),N=[];if(_)for(N.push(_);n(A.comma);)_=S(),_?N.push(_):r("One extra comma");return N}function i(S,_,N){var Y=n(_);if(Y)return{type:S,value:Y[N]}}function o(){var S=i("hex",A.hexColor,1);if(S?.value){var _=SA(S?.value).toRgb(),N=_.r,Y=_.g,gA=_.b,Z=_.a;return{value:"rgba(".concat(N,", ").concat(Y,", ").concat(gA,", ").concat(Z,")")}}}var l=function(S){var _=me(S?.[0]);return{value:"".concat(_?"RGBA":"rgba","(").concat(a(AA),")")}};function c(S,_){var N=n(S);if(N){n(A.startCall)||r("Missing (");var Y=_(N);return n(A.endCall)||r("Missing )"),Y}}function g(){return c(A.hslColor,fA)}function d(){return c(A.rgbaColor,l)}function u(){return c(A.rgbColor,z)}function p(){var S=i("literal",A.literalColor,0);if(S?.value){var _=SA(S?.value).toRgb(),N=_.r,Y=_.g,gA=_.b,Z=_.a;return{value:"rgba(".concat(N,", ").concat(Y,", ").concat(gA,", ").concat(Z,")")}}}function v(){return c(A.hsvColor,sA)}function Q(){return o()||g()||d()||u()||p()||v()}function x(){var S,_=Q();return _||r("Expected color definition"),_.left=parseInt((S=cA())===null||S===void 0?void 0:S.value),_}function U(S,_,N){return c(_,function(){var Y=N();return Y&&(n(A.comma)||r("Missing comma before color stops")),{type:S,orientation:Y,colorStops:a(x)}})}function F(){return w()||I()}function L(){return U("linear-gradient",A.linearGradient,F)||U("repeating-linear-gradient",A.repeatingLinearGradient,F)||U("radial-gradient",A.radialGradient,K)||U("repeating-radial-gradient",A.repeatingRadialGradient,K)}function k(){return a(L)}function y(){var S,_=k();e.length>0&&r("Invalid input not EOF");var N=_[0],Y=(S=N?.colorStops)===null||S===void 0?void 0:S.filter(function(Z){return me(Z.value)}).length,gA=function(){if(Y>0)return N;var Z=function(q,tA){return tA===0?Cr(q):Qt(q)};return De(De({},N),{colorStops:N.colorStops.map(function(q,tA){return De(De({},q),{value:Z(q,tA)})})})};return gA()}function w(){return i("directional",A.sideOrCorner,1)}function I(){return i("angular",A.angleValue,1)}function K(){var S,_=M(),N;return _&&(S=[],S.push(_),N=e,n(A.comma)&&(_=M(),_?S.push(_):e=N)),S}function M(){var S=T()||X();if(S)S.at=W();else{var _=R();if(_){S=_;var N=W();N&&(S.at=N)}else{var Y=$();Y&&(S={type:"default-radial",at:Y})}}return S}function O(){return i("px",A.pixelValue,1)||i("em",A.emValue,1)}function T(){var S=i("shape",/^(circle)/i,0);return S&&(S.style=O()||R()),S}function X(){var S=i("shape",/^(ellipse)/i,0);return S&&(S.style=cA()||R()),S}function R(){return i("extent-keyword",A.extentKeywords,1)}function W(){if(i("position",/^at/,0)){var S=$();return S||r("Missing positioning value"),S}}function $(){var S=eA();if(S.x||S.y)return{type:"position",value:S}}function eA(){return{x:cA(),y:cA()}}function AA(){return n(A.number)[1]}var fA=function(S){var _=me(S?.[0]),N=a(AA),Y=SA({h:N[0],s:N[1],l:N[2],a:N[3]||1}).toRgb(),gA=Y.r,Z=Y.g,q=Y.b,tA=Y.a;return{value:"".concat(_?"RGBA":"rgba","(").concat(gA,", ").concat(Z,", ").concat(q,", ").concat(tA,")")}},sA=function(S){var _=me(S?.[0]),N=a(AA),Y=SA({h:N[0],s:N[1],v:N[2],a:N[3]||1}).toRgb(),gA=Y.r,Z=Y.g,q=Y.b,tA=Y.a;return{value:"".concat(_?"RGBA":"rgba","(").concat(gA,", ").concat(Z,", ").concat(q,", ").concat(tA,")")}},z=function(S){var _=me(S?.[0]),N=n(A.spacedRgbColor),Y=N||Vo([null],a(AA),!0),gA=Y[1],Z=Y[2],q=Y[3],tA=Y[4],H=tA===void 0?1:tA;return{value:"".concat(_?"RGBA":"rgba","(").concat(gA,", ").concat(Z,", ").concat(q,", ").concat(H,")")}};function cA(){return i("%",A.percentageValue,1)||iA()||O()}function iA(){return i("position-keyword",A.positionKeywords,1)}return y()},Qt=function(e){return e.value.toLowerCase()},Cr=function(e){return e.value.toUpperCase()},Xo=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 i=Po(a);return i?.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)},sr=function(){return sr=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},sr.apply(this,arguments)},Es=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=Es(e),t=r.offsetLeft,n=r.clientWidth,a=e.clientX-t-A/2,i=n-18,o=_e(a,0,i);return Math.round(o/(i/100))}function Jo(e,A,r,t,n){var a=e*r-n/2,i=(100-A)/100*t-n/2;return[a,i]}var Wo=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 Yo(e,A){var r=Es(e),t=r.offsetLeft,n=r.offsetTop,a=r.clientWidth,i=r.clientHeight,o=Wo(e),l=o.clientX,c=o.clientY,g=function(){var u=l-t-A/2;return _e(u,-9,a-10)},d=function(){var u=c-n-A/2;return _e(u,-9,i-10)};return[g(),d()]}var me=function(e){var A;return e?.[0]===((A=e?.[0])===null||A===void 0?void 0:A.toUpperCase())},ys=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)},Zo=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 i=(r=e?.colorStops)===null||r===void 0?void 0:r.sort(function(u,p){return u?.left-p?.left}),o=(t=i?.map(function(u){return"".concat(u?.value," ").concat(u?.left,"%")}))===null||t===void 0?void 0:t.join(", "),l=e?.type,c=ys((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 d=((a=e?.colorStops[0])===null||a===void 0?void 0:a.value)||"rgba(175, 51, 242, 1)";return d}},zo=function(e,A){var r=e?.map(function(a,i){return sr(sr({},a),{index:i})}),t=r?.find(function(a){return me(a.value)}),n=t||r[0];return{currentColor:n?.value||A,selectedColor:n?.index||0,currentLeft:n?.left||0}},qo=function(e){var A,r=e?.split(",")[0],t=(A=r?.split("(")[1])===null||A===void 0?void 0:A.replace("deg","");return ys(t)},$o=function(e){var A=e?.includes("gradient"),r=e?.split("(")[0],t=qo(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)},Al=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))},xs=b.createContext(null);function el(e){var A,r,t,n,a=e.value,i=e.children,o=e.onChange,l=e.isDarkMode,c=e.squareWidth,g=e.hideOpacity,d=e.showHexAlpha,u=e.squareHeight,p=e.passedConfig,v=e.defaultStyles,Q=e.pickerIdSuffix,x={barSize:(A=p.barSize)!==null&&A!==void 0?A:bt.barSize,crossSize:(r=p.crossSize)!==null&&r!==void 0?r:bt.crossSize,defaultColor:(t=p.defaultColor)!==null&&t!==void 0?t:bt.defaultColor,defaultGradient:(n=p.defaultGradient)!==null&&n!==void 0?n:bt.defaultGradient},U=Xo(a,x.defaultColor,x.defaultGradient),F=$o(a),L=F.degrees,k=F.degreeStr,y=F.isGradient,w=F.gradientType,I=zo(U,x.defaultGradient),K=I.currentColor,M=I.selectedColor,O=I.currentLeft,T=b.useState("rgb"),X=T[0],R=T[1],W=b.useState({}),$=W[0],eA=W[1],AA=SA(K),fA=AA.toRgb(),sA=AA.toHsv(),z=b.useState(DA(DA({},fA),sA)),cA=z[0],iA=z[1];b.useEffect(function(){sA?.s===0?iA(DA(DA(DA({},fA),sA),{h:cA?.h})):iA(DA(DA({},fA),sA))},[K]);var S=function(Z){var q=Z.sort(function(P,B){return P.left-B.left}),tA=q?.map(function(P){return"".concat(P?.value," ").concat(P.left,"%")}),H="".concat(w,"(").concat(k,", ").concat(tA.join(", "),")");eA(DA(DA({},$),{gradient:H})),o(H)},_=function(Z,q){var tA=U?.filter(function(P){return!me(P.value)}),H=Al([{value:Z.toUpperCase(),left:q??O}],tA,!0);S(H)},N=function(Z){y?_(Z):(eA(DA(DA({},$),{color:Z})),o(Z))},Y=function(){if(U?.length>2){var Z=U?.map(function(tA,H){return DA(DA({},tA),{value:H===M-1?Cr(tA):Qt(tA)})}),q=Z?.filter(function(tA,H){return H!==M});S(q)}},gA={hc:cA,setHc:iA,value:a,colors:U,config:x,degrees:L,onChange:o,previous:$,inputType:X,tinyColor:AA,isDarkMode:l,isGradient:y,squareWidth:c,hideOpacity:g,currentLeft:O,deletePoint:Y,showHexAlpha:d,squareHeight:u,setInputType:R,gradientType:w,handleChange:N,currentColor:K,selectedColor:M,defaultStyles:v,handleGradient:_,pickerIdSuffix:Q,createGradientStr:S};return m.createElement(xs.Provider,{value:gA},i)}function dA(){var e=b.useContext(xs);if(!e)throw new Error("usePicker has to be used within <PickerContext.Provider>");return e}var bt={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%)"},tl=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])},rl=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 i=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)i.addColorStop(o/100,"hsl(".concat(A,", ").concat(o,"%, ").concat(r,"%)"));a.fillStyle=i,a.fill()}},[e,A,r,t])},nl=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 i=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)i.addColorStop(o/100,"hsl(".concat(A,", ").concat(r,"%, ").concat(o,"%)"));a.fillStyle=i,a.fill()}},[e,A,r,t])},al=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 i=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10){var l=SA({h:A,s:r,v:o});i.addColorStop(o/100,l.toHslString())}a.fillStyle=i,a.fill()}},[e,A,r,t])},ir=function(){return ir=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},ir.apply(this,arguments)},sl=function(){var e=b.useRef(null),A=dA(),r=A.config,t=A.handleChange,n=A.squareWidth,a=A.hc,i=A.setHc,o=A.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],d=r.barSize;tl(e,n);var u=function(){g(!1)},p=function(){g(!0)},v=function(U){var F=Ge(U,d)*3.6,L=SA({h:F,s:a?.s,v:a?.v}),k=L.toRgb(),y=k.r,w=k.g,I=k.b;t("rgba(".concat(y,", ").concat(w,", ").concat(I,", ").concat(a.a,")")),i(ir(ir({},a),{h:F}))},Q=function(U){c&&v(U)},x=function(U){c||v(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 Q(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 il(e,A,r){var t=0,n=0,a=0,i=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 i=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),i=o,{c:t,m:n,y:a,k:i}}var ol=function(e){var A=e.c,r=e.m,t=e.y,n=e.k,a=255*(1-A)*(1-n),i=255*(1-r)*(1-n),o=255*(1-t)*(1-n);return{r:a,g:i,b:o}},ll=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,i=e.hideOpacity,o=e.defaultStyles,l=e.pickerIdSuffix,c=b.useState(r),g=c[0],d=c[1],u=i?"25%":"20%";b.useEffect(function(){d(r)},[r]);var p=function(v){var Q=_e(parseFloat(v.target.value),0,a);d(Q),t(Q)};return m.createElement("div",{style:{width:u,flexShrink:1},id:"rbgcp-".concat(A,"-input-wrapper").concat(l)},m.createElement("input",{value:g,onChange:function(v){return p(v)},style:WA({},o.rbgcpInput),id:"rbgcp-".concat(A,"-input").concat(l)}),m.createElement("div",{style:WA({},o.rbgcpInputLabel)},A))},cl=function(e){var A=e.opacity,r=e.tinyColor,t=e.showHexAlpha,n=e.handleChange,a=e.defaultStyles,i=e.pickerIdSuffix,o=b.useState(""),l=o[0],c=o[1],g=r.toHex(),d=b.useState(g),u=d[0],p=d[1];b.useEffect(function(){l!=="hex"&&p(g)},[r,l,g]);var v=function(){c("hex")},Q=function(){c("")},x=function(k){var y=SA(k.target.value);if(p(k.target.value),y.isValid()){var w=y.toRgb(),I=w.r,K=w.g,M=w.b,O="rgba(".concat(I,", ").concat(K,", ").concat(M,", ").concat(A,")");n(O)}},U=t?"".concat(u).concat(ll(A)):u,F=t?"HEXA":"HEX",L=t?88:76;return m.createElement("div",{style:{width:L,flexShrink:0},id:"rbgcp-hex-input-wrapper".concat(i)},m.createElement("input",{onBlur:Q,onFocus:v,onChange:function(k){return x(k)},value:U?.toUpperCase(),id:"rbgcp-hex-input".concat(i),style:WA(WA({},a.rbgcpInput),a.rbgcpHexInput)}),m.createElement("div",{style:WA({},a.rbgcpInputLabel)},F))},gl=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,i=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 i({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 i({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 i({r:A?.r,g:A?.g,b:o})}}))},ul=function(e){var A=e.hc,r=e.setHc,t=e.tinyColor,n=e.hideOpacity,a=e.handleChange,i=e.defaultStyles,o=e.pickerIdSuffix,l=t.toHsl(),c=l.s,g=l.l,d=function(p,v,Q){var x=SA({h:p,s:v,l:Q}).toRgb(),U=x.r,F=x.g,L=x.b;a("rgba(".concat(U,", ").concat(F,", ").concat(L,", ").concat(A?.a,")")),r(WA(WA({},A),{h:p}))},u=function(p){var v=SA(p).toRgb(),Q=v.r,x=v.g,U=v.b;a("rgba(".concat(Q,", ").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:i,pickerIdSuffix:o,callback:function(p){return d(p,c,g)}}),m.createElement(_A,{label:"S",value:ee(c*100),hideOpacity:n,defaultStyles:i,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:i,pickerIdSuffix:o,callback:function(p){return u({h:A?.h,s:c,l:p})}}))},Bl=function(e){var A=e.hc,r=e.setHc,t=e.hideOpacity,n=e.handleChange,a=e.defaultStyles,i=e.pickerIdSuffix,o=function(c,g,d){var u=SA({h:c,s:g,v:d}).toRgb(),p=u.r,v=u.g,Q=u.b;n("rgba(".concat(p,", ").concat(v,", ").concat(Q,", ").concat(A?.a,")")),r(WA(WA({},A),{h:c}))},l=function(c){var g=SA(c).toRgb(),d=g.r,u=g.g,p=g.b;n("rgba(".concat(d,", ").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:i,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:i,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:i,callback:function(c){return l({h:A?.h,s:A?.s,v:c})}}))},dl=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,i=il(A?.r,A?.g,A?.b),o=i.c,l=i.m,c=i.y,g=i.k,d=function(u){var p=ol(u),v=p.r,Q=p.g,x=p.b;t("rgba(".concat(v,", ").concat(Q,", ").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 d({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 d({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 d({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 d({c:o,m:l,y:c,k:u/100})}}))},fl=function(){var e=dA(),A=e.hc,r=e.setHc,t=e.inputType,n=e.tinyColor,a=e.hideOpacity,i=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(cl,{opacity:A?.a,tinyColor:n,showHexAlpha:i,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsl"&&m.createElement(ul,{hc:A,setHc:r,tinyColor:n,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="rgb"&&m.createElement(gl,{hc:A,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsv"&&m.createElement(Bl,{hc:A,setHc:r,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="cmyk"&&m.createElement(dl,{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,")"))}}))},hl=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 i=n.createLinearGradient(0,0,0,t);i.addColorStop(0,"rgba(0, 0, 0, 0)"),i.addColorStop(1,"rgba(0, 0, 0, 1)"),n.fillStyle=i,n.fillRect(0,0,r,t)}}},[e,A,r,t])},kr,$n;function wl(){if($n)return kr;$n=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,i=/^0o[0-7]+$/i,o=parseInt,l=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,c=typeof self=="object"&&self&&self.Object===Object&&self,g=l||c||Function("return this")(),d=Object.prototype,u=d.toString,p=Math.max,v=Math.min,Q=function(){return g.Date.now()};function x(w,I,K){var M,O,T,X,R,W,$=0,eA=!1,AA=!1,fA=!0;if(typeof w!="function")throw new TypeError(e);I=y(I)||0,F(K)&&(eA=!!K.leading,AA="maxWait"in K,T=AA?p(y(K.maxWait)||0,I):T,fA="trailing"in K?!!K.trailing:fA);function sA(Z){var q=M,tA=O;return M=O=void 0,$=Z,X=w.apply(tA,q),X}function z(Z){return $=Z,R=setTimeout(S,I),eA?sA(Z):X}function cA(Z){var q=Z-W,tA=Z-$,H=I-q;return AA?v(H,T-tA):H}function iA(Z){var q=Z-W,tA=Z-$;return W===void 0||q>=I||q<0||AA&&tA>=T}function S(){var Z=Q();if(iA(Z))return _(Z);R=setTimeout(S,cA(Z))}function _(Z){return R=void 0,fA&&M?sA(Z):(M=O=void 0,X)}function N(){R!==void 0&&clearTimeout(R),$=0,M=W=O=R=void 0}function Y(){return R===void 0?X:_(Q())}function gA(){var Z=Q(),q=iA(Z);if(M=arguments,O=this,W=Z,q){if(R===void 0)return z(W);if(AA)return R=setTimeout(S,I),sA(W)}return R===void 0&&(R=setTimeout(S,I)),X}return gA.cancel=N,gA.flush=Y,gA}function U(w,I,K){var M=!0,O=!0;if(typeof w!="function")throw new TypeError(e);return F(K)&&(M="leading"in K?!!K.leading:M,O="trailing"in K?!!K.trailing:O),x(w,I,{leading:M,maxWait:I,trailing:O})}function F(w){var I=typeof w;return!!w&&(I=="object"||I=="function")}function L(w){return!!w&&typeof w=="object"}function k(w){return typeof w=="symbol"||L(w)&&u.call(w)==r}function y(w){if(typeof w=="number")return w;if(k(w))return A;if(F(w)){var I=typeof w.valueOf=="function"?w.valueOf():w;w=F(I)?I+"":I}if(typeof w!="string")return w===0?w:+w;w=w.replace(t,"");var K=a.test(w);return K||i.test(w)?o(w.slice(2),K?2:8):n.test(w)?A:+w}return kr=U,kr}var pl=wl();const Cl=Fs(pl);var ve=function(){return ve=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},ve.apply(this,arguments)},Ql=function(){var e,A,r=dA(),t=r.hc,n=r.config,a=r.squareWidth,i=r.squareHeight,o=r.handleChange,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.crossSize,d=b.useState(!1),u=d[0],p=d[1],v=b.useRef(null),Q=Jo(t?.s,t?.v*100,a,i,g),x=Q[0],U=Q[1],F=b.useState({x,y:U}),L=F[0],k=F[1];hl(v,t?.h,a,i),b.useEffect(function(){u||k({x:t?.v===0?L.x:x,y:U})},[x,U]);var y=function(T){var X=Cl(function(){var R=Yo(T,g),W=R[0],$=R[1];if(W&&$){var eA=Math.min(W+g/2,a-1),AA=Math.min($+g/2,i-1),fA=eA/a*100,sA=100-AA/i*100;k({x:sA===0?L?.x:W,y:$});var z=SA("hsva(".concat(t?.h,", ").concat(fA,"%, ").concat(sA,"%, ").concat(t?.a,")"));o(z.toRgbString())}},250);X()},w=function(){p(!1)},I=function(T){u&&y(T)},K=function(T){u||y(T)},M=function(){p(!0)},O=function(T){p(!0),y(T)};return b.useEffect(function(){var T=function(){w()};return window.addEventListener("mouseup",T),function(){window.removeEventListener("mouseup",T)}},[]),m.createElement("div",{style:{position:"relative",marginBottom:12},id:"rbgcp-square-wrapper".concat(c)},m.createElement("div",{onMouseUp:w,onTouchEnd:w,onMouseDown:O,onTouchStart:O,onMouseMove:function(T){return I(T)},id:"rbgcp-square".concat(c),style:{position:"relative",cursor:"ew-cross"}},m.createElement("div",{style:ve(ve(ve({},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:M,id:"rbgcp-square-handle".concat(c)}),m.createElement("div",{style:ve(ve({},l.rbgcpCanvasWrapper),{height:i}),id:"rbgcp-square-canvas-wrapper".concat(c),onClick:function(T){return K(T)}},m.createElement("canvas",{ref:v,width:"".concat(a,"px"),height:"".concat(i,"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=dA(),A=e.config,r=e.hc,t=r===void 0?{}:r,n=e.squareWidth,a=e.handleChange,i=e.defaultStyles,o=e.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],d=t.r,u=t.g,p=t.b,v="linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(".concat(d,",").concat(u,",").concat(p,",.5) 100%)"),Q=A.barSize,x=function(){g(!1)},U=function(){g(!0)},F=function(w){var I=Ge(w,Q)/100,K="rgba(".concat(d,", ").concat(u,", ").concat(p,", ").concat(I,")");a(K)},L=function(w){c&&F(w)},k=function(w){c||F(w)},y=n-18;return b.useEffect(function(){var w=function(){x()};return window.addEventListener("mouseup",w),function(){window.removeEventListener("mouseup",w)}},[]),m.createElement("div",{onMouseDown:U,onMouseMove:function(w){return L(w)},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({},i.rbgcpCheckered),{width:"100%",height:14})}),m.createElement("div",{id:"rbgcp-opacity-handle".concat(o),style:ce(ce({},i.rbgcpHandle),{left:y*t?.a,top:-2})}),m.createElement("div",{style:ce(ce({},i.rbgcpOpacityOverlay),{background:v}),id:"rbgcp-opacity-overlay".concat(o),onClick:function(w){return k(w)}}))},vl={CONTROLS:{SOLID:"Solid",GRADIENT:"Gradient"}},Ul=["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)"],Fl=function(e){var A=e.presets,r=A===void 0?[]:A,t=dA(),n=t.value,a=t.onChange,i=t.isDarkMode,o=t.squareWidth,l=t.handleChange,c=t.pickerIdSuffix,g=function(){return r?.length>0?r?.slice(0,18):Ul},d=function(p){p?.includes("gradient")?a(p):l(p)},u=function(p){if(!p||i)return"";var v=p?.replace(" ","");return v==="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,v){return m.createElement("div",{key:"".concat(p,"-").concat(v),id:"rbgcp-preset-".concat(v,"-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 d(p)},id:"rbgcp-preset-".concat(v).concat(c)}))})))},J=function(){return J=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},J.apply(this,arguments)},bl=function(){var e=dA().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:J(J({},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"}))},El=function(e){var A=e.color,r=dA().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:J(J(J({},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"}))},yl=function(e){var A=e.color,r=dA().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:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"9"}),m.createElement("circle",{style:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"5"}))},xl=function(e){var A=e.color,r=dA().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:J(J(J({},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:J(J(J({},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:J(J(J({},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:J(J(J({},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:J(J(J({},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:J(J(J({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"16.26",y1:"17.26",x2:"16.26",y2:"15.21"}))},Il=function(e){var A=e.color,r=dA().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:J(J(J({},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:J(J(J({},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:J(J(J({},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"}))},Hl=function(e){var A=e.color,r=dA().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:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"9.36",cy:"5.07",r:"1.71"}),m.createElement("circle",{style:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"13.93",cy:"6.91",r:"1.71"}),m.createElement("circle",{style:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.8",cy:"7.55",r:"1.71"}),m.createElement("circle",{style:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.45",cy:"12.04",r:"1.71"}),m.createElement("path",{style:J(J(J(J({},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"}))},Sl=function(e){var A=e.color,r=dA().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:J(J(J({},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:J(J(J({},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"}))},Ll=function(){var e=dA().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:J({},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:J({},e.rbgcpControlIcon2),d:"M4.79,8.09V7H9.16V8.09H7.59V13H6.38V8.09Z"}),m.createElement("path",{style:J({},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:J({},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"}))},kl=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 i=n.current;return a&&(n.current.id=t,document.body.appendChild(n.current)),function(){a&&i.parentElement&&i.parentElement.removeChild(i)}},[t]),Yi.createPortal(r,n.current)};const Ml=b.memo(kl);var Bn=function(e,A){return Bn=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])},Bn(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");Bn(e,A);function r(){this.constructor=e}e.prototype=A===null?Object.create(A):(r.prototype=A.prototype,new r)}var dn=function(){return dn=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},dn.apply(this,arguments)};function OA(e,A,r,t){function n(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function o(g){try{c(t.next(g))}catch(d){i(d)}}function l(g){try{c(t.throw(g))}catch(d){i(d)}}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,i;return i={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;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 Et(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})(),Qr=function(e,A){return ie.fromClientRect(e,A.getBoundingClientRect())},Kl=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)},mr=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 i=e[n];i<=65535?t.push(i):(i-=65536,t.push((i>>10)+55296,i%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},Aa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Tl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var yt=0;yt<Aa.length;yt++)Tl[Aa.charCodeAt(yt)]=yt;var ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var xt=0;xt<ea.length;xt++)qe[ea.charCodeAt(xt)]=xt;var Dl=function(e){var A=e.length*.75,r=e.length,t,n=0,a,i,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)],i=qe[e.charCodeAt(t+1)],o=qe[e.charCodeAt(t+2)],l=qe[e.charCodeAt(t+3)],g[n++]=a<<2|i>>4,g[n++]=(i&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},Ol=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},Rl=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},Ee=5,Rn=11,Mr=2,Nl=Rn-Ee,Is=65536>>Ee,_l=1<<Ee,Kr=_l-1,Gl=1024>>Ee,jl=Is+Gl,Vl=jl,Pl=32,Xl=Vl+Pl,Jl=65536>>Rn,Wl=1<<Nl,Yl=Wl-1,ta=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},Zl=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},zl=function(e,A){var r=Dl(e),t=Array.isArray(r)?Rl(r):new Uint32Array(r),n=Array.isArray(r)?Ol(r):new Uint16Array(r),a=24,i=ta(n,a/2,t[4]/2),o=t[5]===2?ta(n,(a+t[4])/2):Zl(t,Math.ceil((a+t[4])/4));return new ql(t[0],t[1],t[2],t[3],i,o)},ql=(function(){function e(A,r,t,n,a,i){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=i}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>Ee],r=(r<<Mr)+(A&Kr),this.data[r];if(A<=65535)return r=this.index[Is+(A-55296>>Ee)],r=(r<<Mr)+(A&Kr),this.data[r];if(A<this.highStart)return r=Xl-Jl+(A>>Rn),r=this.index[r],r+=A>>Ee&Yl,r=this.index[r],r=(r<<Mr)+(A&Kr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$l=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var It=0;It<ra.length;It++)$l[ra.charCodeAt(It)]=It;var Ac="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCo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AcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc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wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1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0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABo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FAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4A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gAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFc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AFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACs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FYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB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eAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",na=50,ec=1,Hs=2,Ss=3,tc=4,rc=5,aa=7,Ls=8,sa=9,ue=10,fn=11,ia=12,hn=13,nc=14,$e=15,wn=16,Ht=17,Je=18,ac=19,oa=20,pn=21,We=22,Tr=23,Ie=24,GA=25,At=26,et=27,He=28,sc=29,Ue=30,ic=31,St=32,Lt=33,Cn=34,Qn=35,mn=36,dt=37,vn=38,Zt=39,zt=40,Dr=41,ks=42,oc=43,lc=[9001,65288],Ms="!",oA="×",kt="÷",Un=zl(Ac),ne=[Ue,mn],Fn=[ec,Hs,Ss,rc],Ks=[ue,Ls],la=[et,At],cc=Fn.concat(Ks),ca=[vn,Zt,zt,Cn,Qn],gc=[$e,hn],uc=function(e,A){A===void 0&&(A="strict");var r=[],t=[],n=[];return e.forEach(function(a,i){var o=Un.get(a);if(o>na?(n.push(!0),o-=na):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return t.push(i),r.push(wn);if(o===tc||o===fn){if(i===0)return t.push(i),r.push(Ue);var l=r[i-1];return cc.indexOf(l)===-1?(t.push(t[i-1]),r.push(l)):(t.push(i),r.push(Ue))}if(t.push(i),o===ic)return r.push(A==="strict"?pn:dt);if(o===ks||o===sc)return r.push(Ue);if(o===oc)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(dt):r.push(Ue);r.push(o)}),[t,r,n]},Or=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 i=t[a];if(i===A)return!0;if(i!==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 i=t[l];if(i===A)return!0;if(i!==ue)break}if(o!==ue)break}return!1},ga=function(e,A){for(var r=e;r>=0;){var t=A[r];if(t===ue)r--;else return t}return 0},Bc=function(e,A,r,t,n){if(r[t]===0)return oA;var a=t-1;if(Array.isArray(n)&&n[a]===!0)return oA;var i=a-1,o=a+1,l=A[a],c=i>=0?A[i]:0,g=A[o];if(l===Hs&&g===Ss)return oA;if(Fn.indexOf(l)!==-1)return Ms;if(Fn.indexOf(g)!==-1||Ks.indexOf(g)!==-1)return oA;if(ga(a,A)===Ls)return kt;if(Un.get(e[a])===fn||(l===St||l===Lt)&&Un.get(e[o])===fn||l===aa||g===aa||l===sa||[ue,hn,$e].indexOf(l)===-1&&g===sa||[Ht,Je,ac,Ie,He].indexOf(g)!==-1||ga(a,A)===We||Or(Tr,We,a,A)||Or([Ht,Je],pn,a,A)||Or(ia,ia,a,A))return oA;if(l===ue)return kt;if(l===Tr||g===Tr)return oA;if(g===wn||l===wn)return kt;if([hn,$e,pn].indexOf(g)!==-1||l===nc||c===mn&&gc.indexOf(l)!==-1||l===He&&g===mn||g===oa||ne.indexOf(g)!==-1&&l===GA||ne.indexOf(l)!==-1&&g===GA||l===et&&[dt,St,Lt].indexOf(g)!==-1||[dt,St,Lt].indexOf(l)!==-1&&g===At||ne.indexOf(l)!==-1&&la.indexOf(g)!==-1||la.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,He,Ie].indexOf(g)!==-1)return oA;if([GA,He,Ie,Ht,Je].indexOf(g)!==-1)for(var d=a;d>=0;){var u=A[d];if(u===GA)return oA;if([He,Ie].indexOf(u)!==-1)d--;else break}if([et,At].indexOf(g)!==-1)for(var d=[Ht,Je].indexOf(l)!==-1?i:a;d>=0;){var u=A[d];if(u===GA)return oA;if([He,Ie].indexOf(u)!==-1)d--;else break}if(vn===l&&[vn,Zt,Cn,Qn].indexOf(g)!==-1||[Zt,Cn].indexOf(l)!==-1&&[Zt,zt].indexOf(g)!==-1||[zt,Qn].indexOf(l)!==-1&&g===zt||ca.indexOf(l)!==-1&&[oa,At].indexOf(g)!==-1||ca.indexOf(g)!==-1&&l===et||ne.indexOf(l)!==-1&&ne.indexOf(g)!==-1||l===Ie&&ne.indexOf(g)!==-1||ne.concat(GA).indexOf(l)!==-1&&g===We&&lc.indexOf(e[o])===-1||ne.concat(GA).indexOf(g)!==-1&&l===Je)return oA;if(l===Dr&&g===Dr){for(var p=r[a],v=1;p>0&&(p--,A[p]===Dr);)v++;if(v%2!==0)return oA}return l===St&&g===Lt?oA:kt},dc=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var r=uc(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,Ue,ks].indexOf(o)!==-1?dt:o}));var i=A.wordBreak==="keep-all"?a.map(function(o,l){return o&&e[l]>=19968&&e[l]<=40959}):void 0;return[t,n,i]},fc=(function(){function e(A,r,t,n){this.codePoints=A,this.required=r===Ms,this.start=t,this.end=n}return e.prototype.slice=function(){return bA.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),hc=function(e,A){var r=mr(e),t=dc(r,A),n=t[0],a=t[1],i=t[2],o=r.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var g=oA;c<o&&(g=Bc(r,a,n,++c,i))===oA;);if(g!==oA||c===o){var d=new fc(r,g,l,c);return l=c,{value:d,done:!1}}return{done:!0,value:null}}}},wc=1,pc=2,mt=4,ua=8,or=10,Ba=47,it=92,Cc=9,Qc=32,Mt=34,Ye=61,mc=35,vc=36,Uc=37,Kt=39,Tt=40,Ze=41,Fc=95,NA=45,bc=33,Ec=60,yc=62,xc=64,Ic=91,Hc=93,Sc=61,Lc=123,Dt=63,kc=125,da=124,Mc=126,Kc=128,fa=65533,Rr=42,be=43,Tc=44,Dc=58,Oc=59,ft=46,Rc=0,Nc=8,_c=11,Gc=14,jc=31,Vc=127,qA=-1,Ts=48,Ds=97,Os=101,Pc=102,Xc=117,Jc=122,Rs=65,Ns=69,_s=70,Wc=85,Yc=90,MA=function(e){return e>=Ts&&e<=57},Zc=function(e){return e>=55296&&e<=57343},Se=function(e){return MA(e)||e>=Rs&&e<=_s||e>=Ds&&e<=Pc},zc=function(e){return e>=Ds&&e<=Jc},qc=function(e){return e>=Rs&&e<=Yc},$c=function(e){return zc(e)||qc(e)},Ag=function(e){return e>=Kc},Ot=function(e){return e===or||e===Cc||e===Qc},lr=function(e){return $c(e)||Ag(e)||e===Fc},ha=function(e){return lr(e)||MA(e)||e===NA},eg=function(e){return e>=Rc&&e<=Nc||e===_c||e>=Gc&&e<=jc||e===Vc},ge=function(e,A){return e!==it?!1:A!==or},Rt=function(e,A,r){return e===NA?lr(A)||ge(A,r):lr(e)?!0:!!(e===it&&ge(e,A))},Nr=function(e,A,r){return e===be||e===NA?MA(A)?!0:A===ft&&MA(r):MA(e===ft?A:e)},tg=function(e){var A=0,r=1;(e[A]===be||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]===ft&&A++;for(var a=[];MA(e[A]);)a.push(e[A++]);var i=a.length,o=i?parseInt(bA.apply(void 0,a),10):0;(e[A]===Ns||e[A]===Os)&&A++;var l=1;(e[A]===be||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,-i))*Math.pow(10,l*g)},rg={type:2},ng={type:3},ag={type:4},sg={type:13},ig={type:8},og={type:21},lg={type:9},cg={type:10},gg={type:11},ug={type:12},Bg={type:14},Nt={type:23},dg={type:1},fg={type:25},hg={type:24},wg={type:26},pg={type:27},Cg={type:28},Qg={type:29},mg={type:31},bn={type:32},Gs=(function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(mr(A))},e.prototype.read=function(){for(var A=[],r=this.consumeToken();r!==bn;)A.push(r),r=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Mt:return this.consumeStringToken(Mt);case mc:var r=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(ha(r)||ge(t,n)){var a=Rt(r,t,n)?pc:wc,i=this.consumeName();return{type:5,value:i,flags:a}}break;case vc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),sg;break;case Kt:return this.consumeStringToken(Kt);case Tt:return rg;case Ze:return ng;case Rr:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),Bg;break;case be:if(Nr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Tc:return ag;case NA:var o=A,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(Nr(o,l,c))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Rt(o,l,c))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(l===NA&&c===yc)return this.consumeCodePoint(),this.consumeCodePoint(),hg;break;case ft:if(Nr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Ba:if(this.peekCodePoint(0)===Rr)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===Rr&&(g=this.consumeCodePoint(),g===Ba))return this.consumeToken();if(g===qA)return this.consumeToken()}break;case Dc:return wg;case Oc:return pg;case Ec:if(this.peekCodePoint(0)===bc&&this.peekCodePoint(1)===NA&&this.peekCodePoint(2)===NA)return this.consumeCodePoint(),this.consumeCodePoint(),fg;break;case xc:var d=this.peekCodePoint(0),u=this.peekCodePoint(1),p=this.peekCodePoint(2);if(Rt(d,u,p)){var i=this.consumeName();return{type:7,value:i}}break;case Ic:return Cg;case it:if(ge(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case Hc:return Qg;case Sc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),ig;break;case Lc:return gg;case kc:return ug;case Xc:case Wc:var v=this.peekCodePoint(0),Q=this.peekCodePoint(1);return v===be&&(Se(Q)||Q===Dt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case da:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),lg;if(this.peekCodePoint(0)===da)return this.consumeCodePoint(),og;break;case Mc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),cg;break;case qA:return bn}return Ot(A)?(this.consumeWhiteSpace(),mg):MA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):lr(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();Se(r)&&A.length<6;)A.push(r),r=this.consumeCodePoint();for(var t=!1;r===Dt&&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===Dt?Ts:l})),16),a=parseInt(bA.apply(void 0,A.map(function(l){return l===Dt?_s:l})),16);return{type:30,start:n,end:a}}var i=parseInt(bA.apply(void 0,A),16);if(this.peekCodePoint(0)===NA&&Se(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var o=[];Se(r)&&o.length<6;)o.push(r),r=this.consumeCodePoint();var a=parseInt(bA.apply(void 0,o),16);return{type:30,start:i,end:a}}else return{type:30,start:i,end:i}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Tt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Tt?(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===Kt||r===Mt){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(),Nt)}for(;;){var n=this.consumeCodePoint();if(n===qA||n===Ze)return{type:22,value:bA.apply(void 0,A)};if(Ot(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===qA||this.peekCodePoint(0)===Ze?(this.consumeCodePoint(),{type:22,value:bA.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Nt);if(n===Mt||n===Kt||n===Tt||eg(n))return this.consumeBadUrlRemnants(),Nt;if(n===it)if(ge(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Nt;else A.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;Ot(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===or)return this._value.splice(0,t),dg;if(n===it){var a=this._value[t+1];a!==qA&&a!==void 0&&(a===or?(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=mt,t=this.peekCodePoint(0);for((t===be||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===ft&&MA(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=ua;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((t===Ns||t===Os)&&((n===be||n===NA)&&MA(a)||MA(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=ua;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[tg(A),r]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),r=A[0],t=A[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),i=this.peekCodePoint(2);if(Rt(n,a,i)){var o=this.consumeName();return{type:15,number:r,flags:t,unit:o}}return n===Uc?(this.consumeCodePoint(),{type:16,number:r,flags:t}):{type:17,number:r,flags:t}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Se(A)){for(var r=bA(A);Se(this.peekCodePoint(0))&&r.length<6;)r+=bA(this.consumeCodePoint());Ot(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(r,16);return t===0||Zc(t)||t>1114111?fa:t}return A===qA?fa:A},e.prototype.consumeName=function(){for(var A="";;){var r=this.consumeCodePoint();if(ha(r))A+=bA(r);else if(ge(r,this.peekCodePoint(0)))A+=bA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),A}},e})(),js=(function(){function e(A){this._tokens=A}return e.create=function(A){var r=new Gs;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||Ug(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"?bn:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e})(),vt=function(e){return e.type===15},Ve=function(e){return e.type===17},BA=function(e){return e.type===20},vg=function(e){return e.type===0},En=function(e,A){return BA(e)&&e.value===A},Vs=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},Ug=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},EA=function(e){return e.type===16||pe(e)},Ps=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},LA={type:17,number:0,flags:mt},Nn={type:16,number:50,flags:mt},Be={type:16,number:100,flags:mt},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(vt(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},Xs="deg",Js="grad",Ws="rad",Ys="turn",vr={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case Xs:return Math.PI*A.number/180;case Js:return Math.PI/200*A.number;case Ws:return A.number;case Ys:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Zs=function(e){return e.type===15&&(e.unit===Xs||e.unit===Js||e.unit===Ws||e.unit===Ys)},zs=function(e){var A=e.filter(BA).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=Fg[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),i=A.value.substring(3,4);return de(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,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),i=A.value.substring(6,8);return de(parseInt(t,16),parseInt(n,16),parseInt(a,16),parseInt(i,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},wa=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},pa=function(e,A){var r=A.filter(je);if(r.length===3){var t=r.map(wa),n=t[0],a=t[1],i=t[2];return de(n,a,i,1)}if(r.length===4){var o=r.map(wa),n=o[0],a=o[1],i=o[2],l=o[3];return de(n,a,i,l)}return 0};function _r(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 Ca=function(e,A){var r=A.filter(je),t=r[0],n=r[1],a=r[2],i=r[3],o=(t.type===17?XA(t.number):vr.parse(e,t))/(Math.PI*2),l=EA(n)?n.number/100:0,c=EA(a)?a.number/100:0,g=typeof i<"u"&&EA(i)?wA(i,1):1;if(l===0)return de(c*255,c*255,c*255,1);var d=c<=.5?c*(l+1):c+l-c*l,u=c*2-d,p=_r(u,d,o+1/3),v=_r(u,d,o),Q=_r(u,d,o-1/3);return de(p*255,v*255,Q*255,g)},Fg={hsl:Ca,hsla:Ca,rgb:pa,rgba:pa},ot=function(e,A){return he.parse(e,js.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},bg={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(BA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Eg={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ur=function(e,A){var r=he.parse(e,A[0]),t=A[1];return t&&EA(t)?{color:r,stop:t}:{color:r,stop:null}},Qa=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,i=0;i<e.length;i++){var o=e[i].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,i=0;i<n.length;i++){var g=n[i];if(g===null)c===null&&(c=i);else if(c!==null){for(var d=i-c,u=n[c-1],p=(g-u)/(d+1),v=1;v<=d;v++)n[c+v-1]=p*v;c=null}}return e.map(function(Q,x){var U=Q.color;return{color:U,stop:Math.max(Math.min(1,n[x]/A),0)}})},yg=function(e,A,r){var t=A/2,n=r/2,a=wA(e[0],A)-t,i=n-wA(e[1],r);return(Math.atan2(i,a)+Math.PI*2)%(Math.PI*2)},xg=function(e,A,r){var t=typeof e=="number"?e:yg(e,A,r),n=Math.abs(A*Math.sin(t))+Math.abs(r*Math.cos(t)),a=A/2,i=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,i-l,i+l]},ZA=function(e,A){return Math.sqrt(e*e+A*A)},ma=function(e,A,r,t,n){var a=[[0,0],[0,A],[e,0],[e,A]];return a.reduce(function(i,o){var l=o[0],c=o[1],g=ZA(r-l,t-c);return(n?g<i.optimumDistance:g>i.optimumDistance)?{optimumCorner:o,optimumDistance:g}:i},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Ig=function(e,A,r,t,n){var a=0,i=0;switch(e.size){case 0:e.shape===0?a=i=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)),i=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(e.shape===0)a=i=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=ma(t,n,A,r,!0),c=l[0],g=l[1];a=ZA(c-A,(g-r)/o),i=o*a}break;case 1:e.shape===0?a=i=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)),i=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(e.shape===0)a=i=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)),d=ma(t,n,A,r,!1),c=d[0],g=d[1];a=ZA(c-A,(g-r)/o),i=o*a}break}return Array.isArray(e.size)&&(a=wA(e.size[0],t),i=e.size.length===2?wA(e.size[1],n):a),[a,i]},Hg=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var i=n[0];if(i.type===20&&i.value==="to"){r=zs(n);return}else if(Zs(i)){r=vr.parse(e,i);return}}var o=Ur(e,n);t.push(o)}),{angle:r,stops:t,type:1}},_t=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var i=n[0];if(i.type===20&&["top","left","right","bottom"].indexOf(i.value)!==-1){r=zs(n);return}else if(Zs(i)){r=(vr.parse(e,i)+XA(270))%XA(360);return}}var o=Ur(e,n);t.push(o)}),{angle:r,stops:t,type:1}},Sg=function(e,A){var r=XA(180),t=[],n=1,a=0,i=3,o=[];return te(A).forEach(function(l,c){var g=l[0];if(c===0){if(BA(g)&&g.value==="linear"){n=1;return}else if(BA(g)&&g.value==="radial"){n=2;return}}if(g.type===18){if(g.name==="from"){var d=he.parse(e,g.values[0]);t.push({stop:LA,color:d})}else if(g.name==="to"){var d=he.parse(e,g.values[0]);t.push({stop:Be,color:d})}else if(g.name==="color-stop"){var u=g.values.filter(je);if(u.length===2){var d=he.parse(e,u[1]),p=u[0];Ve(p)&&t.push({stop:{type:16,number:p.number*100,flags:p.flags},color:d})}}}}),n===1?{angle:(r+XA(180))%XA(360),stops:t,type:n}:{size:i,shape:a,stops:t,position:o,type:n}},qs="closest-side",$s="farthest-side",Ai="closest-corner",ei="farthest-corner",ti="circle",ri="ellipse",ni="cover",ai="contain",Lg=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(i,o){var l=!0;if(o===0){var c=!1;l=i.reduce(function(d,u){if(c)if(BA(u))switch(u.value){case"center":return a.push(Nn),d;case"top":case"left":return a.push(LA),d;case"right":case"bottom":return a.push(Be),d}else(EA(u)||pe(u))&&a.push(u);else if(BA(u))switch(u.value){case ti:return r=0,!1;case ri:return r=1,!1;case"at":return c=!0,!1;case qs:return t=0,!1;case ni:case $s:return t=1,!1;case ai:case Ai:return t=2,!1;case ei:return t=3,!1}else if(pe(u)||EA(u))return Array.isArray(t)||(t=[]),t.push(u),!1;return d},l)}if(l){var g=Ur(e,i);n.push(g)}}),{size:t,shape:r,stops:n,position:a,type:2}},Gt=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(i,o){var l=!0;if(o===0?l=i.reduce(function(g,d){if(BA(d))switch(d.value){case"center":return a.push(Nn),!1;case"top":case"left":return a.push(LA),!1;case"right":case"bottom":return a.push(Be),!1}else if(EA(d)||pe(d))return a.push(d),!1;return g},l):o===1&&(l=i.reduce(function(g,d){if(BA(d))switch(d.value){case ti:return r=0,!1;case ri:return r=1,!1;case ai:case qs:return t=0,!1;case $s:return t=1,!1;case Ai:return t=2,!1;case ni:case ei:return t=3,!1}else if(pe(d)||EA(d))return Array.isArray(t)||(t=[]),t.push(d),!1;return g},l)),l){var c=Ur(e,i);n.push(c)}}),{size:t,shape:r,stops:n,position:a,type:2}},kg=function(e){return e.type===1},Mg=function(e){return e.type===2},_n={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=si[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 Kg(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!si[e.name])}var si={"linear-gradient":Hg,"-moz-linear-gradient":_t,"-ms-linear-gradient":_t,"-o-linear-gradient":_t,"-webkit-linear-gradient":_t,"radial-gradient":Lg,"-moz-radial-gradient":Gt,"-ms-radial-gradient":Gt,"-o-radial-gradient":Gt,"-webkit-radial-gradient":Gt,"-webkit-gradient":Sg},Tg={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)&&Kg(t)}).map(function(t){return _n.parse(e,t)})}},Dg={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(BA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Og={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return te(A).map(function(r){return r.filter(EA)}).map(Ps)}},Rg={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(BA).map(function(t){return t.value}).join(" ")}).map(Ng)}},Ng=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 _g={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(Gg)})}},Gg=function(e){return BA(e)||EA(e)},Fr=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},jg=Fr("top"),Vg=Fr("right"),Pg=Fr("bottom"),Xg=Fr("left"),br=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,r){return Ps(r.filter(EA))}}},Jg=br("top-left"),Wg=br("top-right"),Yg=br("bottom-right"),Zg=br("bottom-left"),Er=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}}},zg=Er("top"),qg=Er("right"),$g=Er("bottom"),Au=Er("left"),yr=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,r){return vt(r)?r.number:0}}},eu=yr("top"),tu=yr("right"),ru=yr("bottom"),nu=yr("left"),au={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},su={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){return A==="rtl"?1:0}},iu={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(BA).reduce(function(r,t){return r|ou(t.value)},0)}},ou=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},lu={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}},cu={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}},cr;(function(e){e.NORMAL="normal",e.STRICT="strict"})(cr||(cr={}));var gu={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="strict"?cr.STRICT:cr.NORMAL}},uu={name:"line-height",initialValue:"normal",prefix:!1,type:4},va=function(e,A){return BA(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:EA(e)?wA(e,A):A},Bu={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:_n.parse(e,A)}},du={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){return A==="inside"?0:1}},yn={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}}},xr=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},fu=xr("top"),hu=xr("right"),wu=xr("bottom"),pu=xr("left"),Cu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(BA).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}})}},Qu={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="break-word"?"break-word":"normal"}},Ir=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},mu=Ir("top"),vu=Ir("right"),Uu=Ir("bottom"),Fu=Ir("left"),bu={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}}},Eu={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}},yu={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 i=r[a];pe(i)?(n===0?t.offsetX=i:n===1?t.offsetY=i:t.blur=i,n++):t.color=he.parse(e,i)}return t})}},xu={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}},Iu={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=Lu[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return r(A.values)}return null}},Hu=function(e){var A=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return A.length===6?A:null},Su=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 i=A[12],o=A[13];return A[14],A[15],A.length===16?[r,t,n,a,i,o]:null},Lu={matrix:Hu,matrix3d:Su},Ua={type:16,number:50,flags:mt},ku=[Ua,Ua],Mu={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var r=A.filter(EA);return r.length!==2?ku:[r[0],r[1]]}},Ku={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 Tu={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}}},Du={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")}},ii={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")}},Ou={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:1}},Ru={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Nu={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(BA).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})}},_u={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+"'"})}},Gu={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ju={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:BA(A)&&A.value==="bold"?700:400}},Vu={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(BA).map(function(r){return r.value})}},Pu={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"}}},yA=function(e,A){return(e&A)!==0},Xu={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}},Ju={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(Vs),a=0;a<n.length;a++){var i=n[a],o=n[a+1];if(i.type===20){var l=o&&Ve(o)?o.number:1;t.push({counter:i.value,increment:l})}}return t}},Wu={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var r=[],t=A.filter(Vs),n=0;n<t.length;n++){var a=t[n],i=t[n+1];if(BA(a)&&a.value!=="none"){var o=i&&Ve(i)?i.number:0;r.push({counter:a.value,reset:o})}}return r}},Yu={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(vt).map(function(r){return ii.parse(e,r)})}},Zu={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(vg);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var i=n[a].value,o=n[a+1].value;t.push({open:i,close:o})}return t}},Fa=function(e,A,r){if(!e)return"";var t=e[Math.min(A,e.length-1)];return t?r?t.open:t.close:""},zu={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 i=r[a];En(i,"inset")?t.inset=!0:pe(i)?(n===0?t.offsetX=i:n===1?t.offsetY=i:n===2?t.blur=i:t.spread=i,n++):t.color=he.parse(e,i)}return t})}},qu={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var r=[0,1,2],t=[];return A.filter(BA).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}},$u={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},AB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return vt(A)?A.number:0}},eB=(function(){function e(A,r){var t,n;this.animationDuration=V(A,Yu,r.animationDuration),this.backgroundClip=V(A,bg,r.backgroundClip),this.backgroundColor=V(A,Eg,r.backgroundColor),this.backgroundImage=V(A,Tg,r.backgroundImage),this.backgroundOrigin=V(A,Dg,r.backgroundOrigin),this.backgroundPosition=V(A,Og,r.backgroundPosition),this.backgroundRepeat=V(A,Rg,r.backgroundRepeat),this.backgroundSize=V(A,_g,r.backgroundSize),this.borderTopColor=V(A,jg,r.borderTopColor),this.borderRightColor=V(A,Vg,r.borderRightColor),this.borderBottomColor=V(A,Pg,r.borderBottomColor),this.borderLeftColor=V(A,Xg,r.borderLeftColor),this.borderTopLeftRadius=V(A,Jg,r.borderTopLeftRadius),this.borderTopRightRadius=V(A,Wg,r.borderTopRightRadius),this.borderBottomRightRadius=V(A,Yg,r.borderBottomRightRadius),this.borderBottomLeftRadius=V(A,Zg,r.borderBottomLeftRadius),this.borderTopStyle=V(A,zg,r.borderTopStyle),this.borderRightStyle=V(A,qg,r.borderRightStyle),this.borderBottomStyle=V(A,$g,r.borderBottomStyle),this.borderLeftStyle=V(A,Au,r.borderLeftStyle),this.borderTopWidth=V(A,eu,r.borderTopWidth),this.borderRightWidth=V(A,tu,r.borderRightWidth),this.borderBottomWidth=V(A,ru,r.borderBottomWidth),this.borderLeftWidth=V(A,nu,r.borderLeftWidth),this.boxShadow=V(A,zu,r.boxShadow),this.color=V(A,au,r.color),this.direction=V(A,su,r.direction),this.display=V(A,iu,r.display),this.float=V(A,lu,r.cssFloat),this.fontFamily=V(A,_u,r.fontFamily),this.fontSize=V(A,Gu,r.fontSize),this.fontStyle=V(A,Pu,r.fontStyle),this.fontVariant=V(A,Vu,r.fontVariant),this.fontWeight=V(A,ju,r.fontWeight),this.letterSpacing=V(A,cu,r.letterSpacing),this.lineBreak=V(A,gu,r.lineBreak),this.lineHeight=V(A,uu,r.lineHeight),this.listStyleImage=V(A,Bu,r.listStyleImage),this.listStylePosition=V(A,du,r.listStylePosition),this.listStyleType=V(A,yn,r.listStyleType),this.marginTop=V(A,fu,r.marginTop),this.marginRight=V(A,hu,r.marginRight),this.marginBottom=V(A,wu,r.marginBottom),this.marginLeft=V(A,pu,r.marginLeft),this.opacity=V(A,Ou,r.opacity);var a=V(A,Cu,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=V(A,Qu,r.overflowWrap),this.paddingTop=V(A,mu,r.paddingTop),this.paddingRight=V(A,vu,r.paddingRight),this.paddingBottom=V(A,Uu,r.paddingBottom),this.paddingLeft=V(A,Fu,r.paddingLeft),this.paintOrder=V(A,qu,r.paintOrder),this.position=V(A,Eu,r.position),this.textAlign=V(A,bu,r.textAlign),this.textDecorationColor=V(A,Ru,(t=r.textDecorationColor)!==null&&t!==void 0?t:r.color),this.textDecorationLine=V(A,Nu,(n=r.textDecorationLine)!==null&&n!==void 0?n:r.textDecoration),this.textShadow=V(A,yu,r.textShadow),this.textTransform=V(A,xu,r.textTransform),this.transform=V(A,Iu,r.transform),this.transformOrigin=V(A,Mu,r.transformOrigin),this.visibility=V(A,Ku,r.visibility),this.webkitTextStrokeColor=V(A,$u,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=V(A,AB,r.webkitTextStrokeWidth),this.wordBreak=V(A,Tu,r.wordBreak),this.zIndex=V(A,Du,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 yA(this.display,4)||yA(this.display,33554432)||yA(this.display,268435456)||yA(this.display,536870912)||yA(this.display,67108864)||yA(this.display,134217728)},e})(),tB=(function(){function e(A,r){this.content=V(A,Xu,r.content),this.quotes=V(A,Zu,r.quotes)}return e})(),ba=(function(){function e(A,r){this.counterIncrement=V(A,Ju,r.counterIncrement),this.counterReset=V(A,Wu,r.counterReset)}return e})(),V=function(e,A,r){var t=new Gs,n=r!==null&&typeof r<"u"?r.toString():A.initialValue;t.write(n);var a=new js(t.read());switch(A.type){case 2:var i=a.parseComponentValue();return A.parse(e,BA(i)?i.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 vr.parse(e,a.parseComponentValue());case"color":return he.parse(e,a.parseComponentValue());case"image":return _n.parse(e,a.parseComponentValue());case"length":var o=a.parseComponentValue();return pe(o)?o:LA;case"length-percentage":var l=a.parseComponentValue();return EA(l)?l:LA;case"time":return ii.parse(e,a.parseComponentValue())}break}},rB="data-html2canvas-debug",nB=function(e){var A=e.getAttribute(rB);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},xn=function(e,A){var r=nB(e);return r===1||A===r},re=(function(){function e(A,r){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,xn(r,3))debugger;this.styles=new eB(A,window.getComputedStyle(r,null)),Sn(r)&&(this.styles.animationDuration.some(function(t){return t>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=Qr(this.context,r),xn(r,4)&&(this.flags|=16)}return e})(),aB="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAg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U5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgAC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AwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFig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4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var jt=0;jt<Ea.length;jt++)rt[Ea.charCodeAt(jt)]=jt;var sB=function(e){var A=e.length*.75,r=e.length,t,n=0,a,i,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)],i=rt[e.charCodeAt(t+1)],o=rt[e.charCodeAt(t+2)],l=rt[e.charCodeAt(t+3)],g[n++]=a<<2|i>>4,g[n++]=(i&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},iB=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},oB=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},ye=5,Gn=11,Gr=2,lB=Gn-ye,oi=65536>>ye,cB=1<<ye,jr=cB-1,gB=1024>>ye,uB=oi+gB,BB=uB,dB=32,fB=BB+dB,hB=65536>>Gn,wB=1<<lB,pB=wB-1,ya=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},CB=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},QB=function(e,A){var r=sB(e),t=Array.isArray(r)?oB(r):new Uint32Array(r),n=Array.isArray(r)?iB(r):new Uint16Array(r),a=24,i=ya(n,a/2,t[4]/2),o=t[5]===2?ya(n,(a+t[4])/2):CB(t,Math.ceil((a+t[4])/4));return new mB(t[0],t[1],t[2],t[3],i,o)},mB=(function(){function e(A,r,t,n,a,i){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=i}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>ye],r=(r<<Gr)+(A&jr),this.data[r];if(A<=65535)return r=this.index[oi+(A-55296>>ye)],r=(r<<Gr)+(A&jr),this.data[r];if(A<this.highStart)return r=fB-hB+(A>>Gn),r=this.index[r],r+=A>>ye&pB,r=this.index[r],r=(r<<Gr)+(A&jr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Vt=0;Vt<xa.length;Vt++)vB[xa.charCodeAt(Vt)]=Vt;var UB=1,Vr=2,Pr=3,Ia=4,Ha=5,FB=7,Sa=8,Xr=9,Jr=10,La=11,ka=12,Ma=13,Ka=14,Wr=15,bB=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},EB=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 i=e[n];i<=65535?t.push(i):(i-=65536,t.push((i>>10)+55296,i%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},yB=QB(aB),VA="×",Yr="÷",xB=function(e){return yB.get(e)},IB=function(e,A,r){var t=r-2,n=A[t],a=A[r-1],i=A[r];if(a===Vr&&i===Pr)return VA;if(a===Vr||a===Pr||a===Ia||i===Vr||i===Pr||i===Ia)return Yr;if(a===Sa&&[Sa,Xr,La,ka].indexOf(i)!==-1||(a===La||a===Xr)&&(i===Xr||i===Jr)||(a===ka||a===Jr)&&i===Jr||i===Ma||i===Ha||i===FB||a===UB)return VA;if(a===Ma&&i===Ka){for(;n===Ha;)n=A[--t];if(n===Ka)return VA}if(a===Wr&&i===Wr){for(var o=0;n===Wr;)o++,n=A[--t];if(o%2===0)return VA}return Yr},HB=function(e){var A=bB(e),r=A.length,t=0,n=0,a=A.map(xB);return{next:function(){if(t>=r)return{done:!0,value:null};for(var i=VA;t<r&&(i=IB(A,a,++t))===VA;);if(i!==VA||t===r){var o=EB.apply(null,A.slice(n,t));return n=t,{value:o,done:!1}}return{done:!0,value:null}}}},SB=function(e){for(var A=HB(e),r=[],t;!(t=A.next()).done;)t.value&&r.push(t.value.slice());return r},LB=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},kB=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"?"👨".repeat(10):"";var t=A.firstChild,n=mr(t.data).map(function(l){return bA(l)}),a=0,i={},o=n.every(function(l,c){r.setStart(t,a),r.setEnd(t,a+l.length);var g=r.getBoundingClientRect();a+=l.length;var d=g.x>i.x||g.y>i.y;return i=g,c===0?!0:d});return e.body.removeChild(A),o},MB=function(){return typeof new Image().crossOrigin<"u"},KB=function(){return typeof new XMLHttpRequest().responseType=="string"},TB=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},Ta=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},DB=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 i=In(r,r,0,0,n);return t.fillStyle="red",t.fillRect(0,0,r,r),Da(i).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",Ta(l)?Da(In(r,r,0,0,c)):Promise.reject(!1)}).then(function(o){return t.drawImage(o,0,0),Ta(t.getImageData(0,0,r,r).data)}).catch(function(){return!1})},In=function(e,A,r,t,n){var a="http://www.w3.org/2000/svg",i=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return i.setAttributeNS(null,"width",e.toString()),i.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"),i.appendChild(o),o.appendChild(n),i},Da=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=LB(document);return Object.defineProperty(HA,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=HA.SUPPORT_RANGE_BOUNDS&&kB(document);return Object.defineProperty(HA,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=TB(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"?DB(document):Promise.resolve(!1);return Object.defineProperty(HA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=MB();return Object.defineProperty(HA,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=KB();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})(),OB=function(e,A,r,t){var n=_B(A,r),a=[],i=0;return n.forEach(function(o){if(r.textDecorationLine.length||o.trim().length>0)if(HA.SUPPORT_RANGE_BOUNDS){var l=Oa(t,i,o.length).getClientRects();if(l.length>1){var c=jn(o),g=0;c.forEach(function(u){a.push(new ct(u,ie.fromDOMRectList(e,Oa(t,g+i,u.length).getClientRects()))),g+=u.length})}else a.push(new ct(o,ie.fromDOMRectList(e,l)))}else{var d=t.splitText(o.length);a.push(new ct(o,RB(e,t))),t=d}else HA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(o.length));i+=o.length}),a},RB=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=Qr(e,t);return t.firstChild&&n.replaceChild(t.firstChild,t),a}}return ie.EMPTY},Oa=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},jn=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 SB(e)},NB=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 jB(e,A)},_B=function(e,A){return A.letterSpacing!==0?jn(e):NB(e,A)},GB=[32,160,4961,65792,65793,4153,4241],jB=function(e,A){for(var r=hc(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),t=[],n,a=function(){if(n.value){var i=n.value.slice(),o=mr(i),l="";o.forEach(function(c){GB.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},VB=(function(){function e(A,r,t){this.text=PB(r.data,t.textTransform),this.textBounds=OB(A,this.text,t,r)}return e})(),PB=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(XB,JB);case 2:return e.toUpperCase();default:return e}},XB=/(^|\s|:|-|\(|\))([a-z])/g,JB=function(e,A,r){return e.length>0?A+r.toUpperCase():e},li=(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),ci=(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),gi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this,a=new XMLSerializer,i=Qr(r,t);return t.setAttribute("width",i.width+"px"),t.setAttribute("height",i.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),ui=(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),Hn=(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),WB=[{type:15,flags:0,unit:"px",number:3}],YB=[{type:16,flags:0,number:50}],ZB=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},zB=function(e){var A=e.type===qB?new Array(e.value.length+1).join("•"):e.value;return A.length===0?e.placeholder||"":A},gr="checkbox",ur="radio",qB="password",Ra=707406591,Vn=(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=zB(t),(n.type===gr||n.type===ur)&&(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=ZB(n.bounds)),n.type){case gr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=WB;break;case ur:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=YB;break}return n}return A})(re),Bi=(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),di=(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),fi=(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=wi(r,t.contentWindow.document.documentElement);var a=t.contentWindow.document.documentElement?ot(r,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):se.TRANSPARENT,i=t.contentWindow.document.body?ot(r,getComputedStyle(t.contentWindow.document.body).backgroundColor):se.TRANSPARENT;n.backgroundColor=we(a)?we(i)?n.styles.backgroundColor:i:a}}catch{}return n}return A})(re),$B=["OL","UL","MENU"],qt=function(e,A,r,t){for(var n=A.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,pi(n)&&n.data.trim().length>0)r.textNodes.push(new VB(e,n,r.styles));else if(Oe(n))if(vi(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return qt(e,o,r,t)});else{var i=hi(e,n);i.styles.isVisible()&&(Ad(n,i,t)?i.flags|=4:ed(i.styles)&&(i.flags|=2),$B.indexOf(n.tagName)!==-1&&(i.flags|=8),r.elements.push(i),n.slot,n.shadowRoot?qt(e,n.shadowRoot,i,t):!Br(n)&&!Ci(n)&&!dr(n)&&qt(e,n,i,t))}},hi=function(e,A){return Ln(A)?new li(e,A):Qi(A)?new ci(e,A):Ci(A)?new gi(e,A):td(A)?new ui(e,A):rd(A)?new Hn(e,A):nd(A)?new Vn(e,A):dr(A)?new Bi(e,A):Br(A)?new di(e,A):mi(A)?new fi(e,A):new re(e,A)},wi=function(e,A){var r=hi(e,A);return r.flags|=4,qt(e,A,r,r),r},Ad=function(e,A,r){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Pn(e)&&r.styles.isTransparent()},ed=function(e){return e.isPositioned()||e.isFloating()},pi=function(e){return e.nodeType===Node.TEXT_NODE},Oe=function(e){return e.nodeType===Node.ELEMENT_NODE},Sn=function(e){return Oe(e)&&typeof e.style<"u"&&!$t(e)},$t=function(e){return typeof e.className=="object"},td=function(e){return e.tagName==="LI"},rd=function(e){return e.tagName==="OL"},nd=function(e){return e.tagName==="INPUT"},ad=function(e){return e.tagName==="HTML"},Ci=function(e){return e.tagName==="svg"},Pn=function(e){return e.tagName==="BODY"},Qi=function(e){return e.tagName==="CANVAS"},Na=function(e){return e.tagName==="VIDEO"},Ln=function(e){return e.tagName==="IMG"},mi=function(e){return e.tagName==="IFRAME"},_a=function(e){return e.tagName==="STYLE"},sd=function(e){return e.tagName==="SCRIPT"},Br=function(e){return e.tagName==="TEXTAREA"},dr=function(e){return e.tagName==="SELECT"},vi=function(e){return e.tagName==="SLOT"},Ga=function(e){return e.tagName.indexOf("-")>0},id=(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 i=[];return a&&n.forEach(function(o){var l=r.counters[o.counter];i.push(o.counter),l||(l=r.counters[o.counter]=[]),l.push(o.reset)}),i},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"]},Va={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},od={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ld={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Le=function(e,A,r,t,n,a){return e<A||e>r?ht(e,n,a.length>0):t.integers.reduce(function(i,o,l){for(;e>=o;)e-=o,i+=t.values[l];return i},"")+a},Ui=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?"-":"")+(Ui(Math.abs(e),a,t,function(i){return bA(Math.floor(i%a)+A)})+n)},Ce=function(e,A,r){r===void 0&&(r=". ");var t=A.length;return Ui(Math.abs(e),t,!1,function(n){return A[Math.floor(n%t)]})+r},Ke=1,oe=2,le=4,nt=8,ae=function(e,A,r,t,n,a){if(e<-9999||e>9999)return ht(e,4,n.length>0);var i=Math.abs(e),o=n;if(i===0)return A[0]+o;for(var l=0;i>0&&l<=4;l++){var c=i%10;c===0&&yA(a,Ke)&&o!==""?o=A[c]+o:c>1||c===1&&l===0||c===1&&l===1&&yA(a,oe)||c===1&&l===1&&yA(a,le)&&e>100||c===1&&l>1&&yA(a,nt)?o=A[c]+(l>0?r[l-1]:"")+o:c===1&&l>0&&(o=r[l-1]+o),i=Math.floor(i/10)}return(e<0?t:"")+o},Pa="十百千萬",Xa="拾佰仟萬",Ja="マイナス",Zr="마이너스",ht=function(e,A,r){var t=r?". ":"",n=r?"、":"",a=r?", ":"",i=r?" ":"";switch(A){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var o=FA(e,48,57,!0,t);return o.length<4?"0"+o:o;case 4:return Ce(e,"〇一二三四五六七八九",n);case 6:return Le(e,1,3999,ja,3,t).toLowerCase();case 7:return Le(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 Le(e,1,9999,Va,3,t);case 35:return Le(e,1,9999,Va,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 Ce(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Ce(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ae(e,"零一二三四五六七八九",Pa,"負",n,oe|le|nt);case 47:return ae(e,"零壹貳參肆伍陸柒捌玖",Xa,"負",n,Ke|oe|le|nt);case 42:return ae(e,"零一二三四五六七八九",Pa,"负",n,oe|le|nt);case 41:return ae(e,"零壹贰叁肆伍陆柒捌玖",Xa,"负",n,Ke|oe|le|nt);case 26:return ae(e,"〇一二三四五六七八九","十百千万",Ja,n,0);case 25:return ae(e,"零壱弐参四伍六七八九","拾百千万",Ja,n,Ke|oe|le);case 31:return ae(e,"영일이삼사오육칠팔구","십백천만",Zr,a,Ke|oe|le);case 33:return ae(e,"零一二三四五六七八九","十百千萬",Zr,a,0);case 32:return ae(e,"零壹貳參四五六七八九","拾百千",Zr,a,Ke|oe|le);case 18:return FA(e,2406,2415,!0,t);case 20:return Le(e,1,19999,ld,3,t);case 21:return FA(e,2790,2799,!0,t);case 22:return FA(e,2662,2671,!0,t);case 22:return Le(e,1,10999,od,3,t);case 23:return Ce(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ce(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return FA(e,3302,3311,!0,t);case 28:return Ce(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Ce(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)}},Fi="data-html2canvas-ignore",Wa=(function(){function e(A,r,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=r,this.counters=new id,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=cd(A,r);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=A.defaultView.pageXOffset,i=A.defaultView.pageYOffset,o=n.contentWindow,l=o.document,c=Bd(n).then(function(){return OA(t,void 0,void 0,function(){var g,d;return kA(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(wd),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,d=this.clonedReferenceElement,typeof d>"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,ud(l)]:[3,4];case 3:u.sent(),u.label=4;case 4:return typeof g=="function"?[2,Promise.resolve().then(function(){return g(l,d)}).then(function(){return n})]:[2,n]}})})});return l.open(),l.write(fd(document.doctype)+"<html></html>"),hd(this.referenceElement.ownerDocument,a,i),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(A){if(xn(A,2))debugger;if(Qi(A))return this.createCanvasClone(A);if(Na(A))return this.createVideoClone(A);if(_a(A))return this.createStyleClone(A);var r=A.cloneNode(!1);return Ln(r)&&(Ln(A)&&A.currentSrc&&A.currentSrc!==A.src&&(r.src=A.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),Ga(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(A){var r=document.createElement("html2canvascustomelement");return zr(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,i){return i&&typeof i.cssText=="string"?a+i.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"),i=n.getContext("2d");if(i)if(!this.options.allowTaint&&a)i.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)}i.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){(!Oe(r)||!sd(r)&&!r.hasAttribute(Fi)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Oe(r)||!_a(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(Oe(a)&&vi(a)&&typeof a.assignedNodes=="function"){var i=a.assignedNodes();i.length&&i.forEach(function(o){return n.appendChildNode(r,o,t)})}else this.appendChildNode(r,a,t)},e.prototype.cloneNode=function(A,r){if(pi(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Oe(A)&&(Sn(A)||$t(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var a=t.getComputedStyle(A),i=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&Sn(n)&&(this.clonedReferenceElement=n),Pn(n)&&Qd(n);var l=this.counters.parse(new ba(this.context,a)),c=this.resolvePseudoContent(A,n,i,gt.BEFORE);Ga(A)&&(r=!0),Na(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||$t(A))&&!mi(A)||r)&&zr(a,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(Br(A)||dr(A))&&(Br(n)||dr(n))&&(n.value=A.value),n}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,r,t,n){var a=this;if(t){var i=t.content,o=r.ownerDocument;if(!(!o||!i||i==="none"||i==="-moz-alt-content"||t.display==="none")){this.counters.parse(new ba(this.context,t));var l=new tB(this.context,t),c=o.createElement("html2canvaspseudoelement");zr(t,c),l.content.forEach(function(d){if(d.type===0)c.appendChild(o.createTextNode(d.value));else if(d.type===22){var u=o.createElement("img");u.src=d.value,u.style.opacity="1",c.appendChild(u)}else if(d.type===18){if(d.name==="attr"){var p=d.values.filter(BA);p.length&&c.appendChild(o.createTextNode(A.getAttribute(p[0].value)||""))}else if(d.name==="counter"){var v=d.values.filter(je),Q=v[0],x=v[1];if(Q&&BA(Q)){var U=a.counters.getCounterValue(Q.value),F=x&&BA(x)?yn.parse(a.context,x.value):3;c.appendChild(o.createTextNode(ht(U,F,!1)))}}else if(d.name==="counters"){var L=d.values.filter(je),Q=L[0],k=L[1],x=L[2];if(Q&&BA(Q)){var y=a.counters.getCounterValues(Q.value),w=x&&BA(x)?yn.parse(a.context,x.value):3,I=k&&k.type===0?k.value:"",K=y.map(function(T){return ht(T,w,!1)}).join(I);c.appendChild(o.createTextNode(K))}}}else if(d.type===20)switch(d.value){case"open-quote":c.appendChild(o.createTextNode(Fa(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(Fa(l.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(d.value))}}),c.className=kn+" "+Mn;var g=n===gt.BEFORE?" "+kn:" "+Mn;return $t(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 cd=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(Fi,"true"),e.body.appendChild(r),r},gd=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},ud=function(e){return Promise.all([].slice.call(e.images,0).map(gd))},Bd=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)}})},dd=["all","d","content"],zr=function(e,A){for(var r=e.length-1;r>=0;r--){var t=e.item(r);dd.indexOf(t)===-1&&A.style.setProperty(t,e.getPropertyValue(t))}return A},fd=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},hd=function(e,A,r){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,r)},wd=function(e){var A=e[0],r=e[1],t=e[2];A.scrollLeft=r,A.scrollTop=t},pd=":before",Cd=":after",kn="___html2canvas___pseudoelement_before",Mn="___html2canvas___pseudoelement_after",Ya=`{- content: "" !important;- display: none !important;-}`,Qd=function(e){md(e,"."+kn+pd+Ya+`- .`+Mn+Cd+Ya)},md=function(e,A){var r=e.ownerDocument;if(r){var t=r.createElement("style");t.textContent=A,e.appendChild(t)}},bi=(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})(),vd=(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)||($r(A)||Ed(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,i=this;return kA(this,function(o){switch(o.label){case 0:return r=bi.isSameOrigin(A),t=!qr(A)&&this._options.useCORS===!0&&HA.SUPPORT_CORS_IMAGES&&!r,n=!qr(A)&&!r&&!$r(A)&&typeof this._options.proxy=="string"&&HA.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!qr(A)&&!$r(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,(yd(a)||t)&&(g.crossOrigin="anonymous"),g.src=a,g.complete===!0&&setTimeout(function(){return l(g)},500),i._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._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,i){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 d=new FileReader;d.addEventListener("load",function(){return a(d.result)},!1),d.addEventListener("error",function(u){return i(u)},!1),d.readAsDataURL(l.response)}else i("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=i;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 i("Timed out ("+g+"ms) proxying "+n)}}l.send()})},e})(),Ud=/^data:image\/svg\+xml/i,Fd=/^data:image\/.*;base64,/i,bd=/^data:image\/.*/i,Ed=function(e){return HA.SUPPORT_SVG_DRAWING||!xd(e)},qr=function(e){return bd.test(e)},yd=function(e){return Fd.test(e)},$r=function(e){return e.substr(0,4)==="blob"},xd=function(e){return e.substr(-3).toLowerCase()==="svg"||Ud.test(e)},j=(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})(),ke=function(e,A,r){return new j(e.x+(A.x-e.x)*r,e.y+(A.y-e.y)*r)},Pt=(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=ke(this.start,this.startControl,A),n=ke(this.startControl,this.endControl,A),a=ke(this.endControl,this.end,A),i=ke(t,n,A),o=ke(n,a,A),l=ke(i,o,A);return r?new e(this.start,t,i,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},Id=(function(){function e(A){var r=A.styles,t=A.bounds,n=tt(r.borderTopLeftRadius,t.width,t.height),a=n[0],i=n[1],o=tt(r.borderTopRightRadius,t.width,t.height),l=o[0],c=o[1],g=tt(r.borderBottomRightRadius,t.width,t.height),d=g[0],u=g[1],p=tt(r.borderBottomLeftRadius,t.width,t.height),v=p[0],Q=p[1],x=[];x.push((a+l)/t.width),x.push((v+d)/t.width),x.push((i+Q)/t.height),x.push((c+u)/t.height);var U=Math.max.apply(Math,x);U>1&&(a/=U,i/=U,l/=U,c/=U,d/=U,u/=U,v/=U,Q/=U);var F=t.width-l,L=t.height-u,k=t.width-d,y=t.height-Q,w=r.borderTopWidth,I=r.borderRightWidth,K=r.borderBottomWidth,M=r.borderLeftWidth,O=wA(r.paddingTop,A.bounds.width),T=wA(r.paddingRight,A.bounds.width),X=wA(r.paddingBottom,A.bounds.width),R=wA(r.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||i>0?QA(t.left+M/3,t.top+w/3,a-M/3,i-w/3,uA.TOP_LEFT):new j(t.left+M/3,t.top+w/3),this.topRightBorderDoubleOuterBox=a>0||i>0?QA(t.left+F,t.top+w/3,l-I/3,c-w/3,uA.TOP_RIGHT):new j(t.left+t.width-I/3,t.top+w/3),this.bottomRightBorderDoubleOuterBox=d>0||u>0?QA(t.left+k,t.top+L,d-I/3,u-K/3,uA.BOTTOM_RIGHT):new j(t.left+t.width-I/3,t.top+t.height-K/3),this.bottomLeftBorderDoubleOuterBox=v>0||Q>0?QA(t.left+M/3,t.top+y,v-M/3,Q-K/3,uA.BOTTOM_LEFT):new j(t.left+M/3,t.top+t.height-K/3),this.topLeftBorderDoubleInnerBox=a>0||i>0?QA(t.left+M*2/3,t.top+w*2/3,a-M*2/3,i-w*2/3,uA.TOP_LEFT):new j(t.left+M*2/3,t.top+w*2/3),this.topRightBorderDoubleInnerBox=a>0||i>0?QA(t.left+F,t.top+w*2/3,l-I*2/3,c-w*2/3,uA.TOP_RIGHT):new j(t.left+t.width-I*2/3,t.top+w*2/3),this.bottomRightBorderDoubleInnerBox=d>0||u>0?QA(t.left+k,t.top+L,d-I*2/3,u-K*2/3,uA.BOTTOM_RIGHT):new j(t.left+t.width-I*2/3,t.top+t.height-K*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||Q>0?QA(t.left+M*2/3,t.top+y,v-M*2/3,Q-K*2/3,uA.BOTTOM_LEFT):new j(t.left+M*2/3,t.top+t.height-K*2/3),this.topLeftBorderStroke=a>0||i>0?QA(t.left+M/2,t.top+w/2,a-M/2,i-w/2,uA.TOP_LEFT):new j(t.left+M/2,t.top+w/2),this.topRightBorderStroke=a>0||i>0?QA(t.left+F,t.top+w/2,l-I/2,c-w/2,uA.TOP_RIGHT):new j(t.left+t.width-I/2,t.top+w/2),this.bottomRightBorderStroke=d>0||u>0?QA(t.left+k,t.top+L,d-I/2,u-K/2,uA.BOTTOM_RIGHT):new j(t.left+t.width-I/2,t.top+t.height-K/2),this.bottomLeftBorderStroke=v>0||Q>0?QA(t.left+M/2,t.top+y,v-M/2,Q-K/2,uA.BOTTOM_LEFT):new j(t.left+M/2,t.top+t.height-K/2),this.topLeftBorderBox=a>0||i>0?QA(t.left,t.top,a,i,uA.TOP_LEFT):new j(t.left,t.top),this.topRightBorderBox=l>0||c>0?QA(t.left+F,t.top,l,c,uA.TOP_RIGHT):new j(t.left+t.width,t.top),this.bottomRightBorderBox=d>0||u>0?QA(t.left+k,t.top+L,d,u,uA.BOTTOM_RIGHT):new j(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=v>0||Q>0?QA(t.left,t.top+y,v,Q,uA.BOTTOM_LEFT):new j(t.left,t.top+t.height),this.topLeftPaddingBox=a>0||i>0?QA(t.left+M,t.top+w,Math.max(0,a-M),Math.max(0,i-w),uA.TOP_LEFT):new j(t.left+M,t.top+w),this.topRightPaddingBox=l>0||c>0?QA(t.left+Math.min(F,t.width-I),t.top+w,F>t.width+I?0:Math.max(0,l-I),Math.max(0,c-w),uA.TOP_RIGHT):new j(t.left+t.width-I,t.top+w),this.bottomRightPaddingBox=d>0||u>0?QA(t.left+Math.min(k,t.width-M),t.top+Math.min(L,t.height-K),Math.max(0,d-I),Math.max(0,u-K),uA.BOTTOM_RIGHT):new j(t.left+t.width-I,t.top+t.height-K),this.bottomLeftPaddingBox=v>0||Q>0?QA(t.left+M,t.top+Math.min(y,t.height-K),Math.max(0,v-M),Math.max(0,Q-K),uA.BOTTOM_LEFT):new j(t.left+M,t.top+t.height-K),this.topLeftContentBox=a>0||i>0?QA(t.left+M+R,t.top+w+O,Math.max(0,a-(M+R)),Math.max(0,i-(w+O)),uA.TOP_LEFT):new j(t.left+M+R,t.top+w+O),this.topRightContentBox=l>0||c>0?QA(t.left+Math.min(F,t.width+M+R),t.top+w+O,F>t.width+M+R?0:l-M+R,c-(w+O),uA.TOP_RIGHT):new j(t.left+t.width-(I+T),t.top+w+O),this.bottomRightContentBox=d>0||u>0?QA(t.left+Math.min(k,t.width-(M+R)),t.top+Math.min(L,t.height+w+O),Math.max(0,d-(I+T)),u-(K+X),uA.BOTTOM_RIGHT):new j(t.left+t.width-(I+T),t.top+t.height-(K+X)),this.bottomLeftContentBox=v>0||Q>0?QA(t.left+M+R,t.top+y,Math.max(0,v-(M+R)),Q-(K+X),uA.BOTTOM_LEFT):new j(t.left+M+R,t.top+t.height-(K+X))}return e})(),uA;(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"})(uA||(uA={}));var QA=function(e,A,r,t,n){var a=4*((Math.sqrt(2)-1)/3),i=r*a,o=t*a,l=e+r,c=A+t;switch(n){case uA.TOP_LEFT:return new Pt(new j(e,c),new j(e,c-o),new j(l-i,A),new j(l,A));case uA.TOP_RIGHT:return new Pt(new j(e,A),new j(e+i,A),new j(l,c-o),new j(l,c));case uA.BOTTOM_RIGHT:return new Pt(new j(l,A),new j(l,A+o),new j(e+i,c),new j(e,c));case uA.BOTTOM_LEFT:default:return new Pt(new j(l,c),new j(l-i,c),new j(e,A+o),new j(e,A))}},fr=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Hd=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},hr=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Sd=(function(){function e(A,r,t){this.offsetX=A,this.offsetY=r,this.matrix=t,this.type=0,this.target=6}return e})(),Xt=(function(){function e(A,r){this.path=A,this.target=r,this.type=1}return e})(),Ld=(function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e})(),kd=function(e){return e.type===0},Ei=function(e){return e.type===1},Md=function(e){return e.type===2},Za=function(e,A){return e.length===A.length?e.some(function(r,t){return r===A[t]}):!1},Kd=function(e,A,r,t,n){return e.map(function(a,i){switch(i){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})},yi=(function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),xi=(function(){function e(A,r){if(this.container=A,this.parent=r,this.effects=[],this.curves=new Id(this.container),this.container.styles.opacity<1&&this.effects.push(new Ld(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 Sd(t,n,a))}if(this.container.styles.overflowX!==0){var i=fr(this.curves),o=hr(this.curves);Za(i,o)?this.effects.push(new Xt(i,6)):(this.effects.push(new Xt(i,2)),this.effects.push(new Xt(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!Ei(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 i=fr(t.curves),o=hr(t.curves);Za(i,o)||n.unshift(new Xt(o,6))}}else n.unshift.apply(n,a);t=t.parent}return n.filter(function(l){return yA(l.target,A)})},e})(),Kn=function(e,A,r,t){e.container.elements.forEach(function(n){var a=yA(n.flags,4),i=yA(n.flags,2),o=new xi(n,e);yA(n.styles.display,2048)&&t.push(o);var l=yA(n.flags,8)?[]:t;if(a||i){var c=a||n.styles.isPositioned()?r:A,g=new yi(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var u=0;c.negativeZIndex.some(function(v,Q){return d>v.element.container.styles.zIndex.order?(u=Q,!1):u>0}),c.negativeZIndex.splice(u,0,g)}else if(d>0){var p=0;c.positiveZIndex.some(function(v,Q){return d>=v.element.container.styles.zIndex.order?(p=Q+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);Kn(o,g,a?g:r,l)}else n.styles.isInlineLevel()?A.inlineLevel.push(o):A.nonInlineLevel.push(o),Kn(o,A,r,l);yA(n.flags,8)&&Ii(n,l)})},Ii=function(e,A){for(var r=e instanceof Hn?e.start:1,t=e instanceof Hn?e.reversed:!1,n=0;n<A.length;n++){var a=A[n];a.container instanceof ui&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=ht(r,a.container.styles.listStyleType,!0),r+=t?-1:1}},Td=function(e){var A=new xi(e,null),r=new yi(A),t=[];return Kn(A,r,r,t),Ii(A.container,t),r},za=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)}},Dd=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)}},Od=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)}},Rd=function(e,A){switch(A){case 0:return Jt(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Jt(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Jt(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Jt(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Jt=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},Hi=function(e){var A=e.bounds,r=e.styles;return A.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},wr=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),i=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+i))},Nd=function(e,A){return e===0?A.bounds:e===2?wr(A):Hi(A)},_d=function(e,A){return e===0?A.bounds:e===2?wr(A):Hi(A)},An=function(e,A,r){var t=Nd(Te(e.styles.backgroundOrigin,A),e),n=_d(Te(e.styles.backgroundClip,A),e),a=Gd(Te(e.styles.backgroundSize,A),r,t),i=a[0],o=a[1],l=tt(Te(e.styles.backgroundPosition,A),t.width-i,t.height-o),c=jd(Te(e.styles.backgroundRepeat,A),l,a,t,n),g=Math.round(t.left+l[0]),d=Math.round(t.top+l[1]);return[c,g,d,i,o]},Me=function(e){return BA(e)&&e.value===Ne.AUTO},Wt=function(e){return typeof e=="number"},Gd=function(e,A,r){var t=A[0],n=A[1],a=A[2],i=e[0],o=e[1];if(!i)return[0,0];if(EA(i)&&o&&EA(o))return[wA(i,r.width),wA(o,r.height)];var l=Wt(a);if(BA(i)&&(i.value===Ne.CONTAIN||i.value===Ne.COVER)){if(Wt(a)){var c=r.width/r.height;return c<a!=(i.value===Ne.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var g=Wt(t),d=Wt(n),u=g||d;if(Me(i)&&(!o||Me(o))){if(g&&d)return[t,n];if(!l&&!u)return[r.width,r.height];if(u&&l){var p=g?t:n*a,v=d?n:t/a;return[p,v]}var Q=g?t:r.width,x=d?n:r.height;return[Q,x]}if(l){var U=0,F=0;return EA(i)?U=wA(i,r.width):EA(o)&&(F=wA(o,r.height)),Me(i)?U=F*a:(!o||Me(o))&&(F=U/a),[U,F]}var L=null,k=null;if(EA(i)?L=wA(i,r.width):o&&EA(o)&&(k=wA(o,r.height)),L!==null&&(!o||Me(o))&&(k=g&&d?L/t*n:r.height),k!==null&&Me(i)&&(L=g&&d?k/n*t:r.width),L!==null&&k!==null)return[L,k];throw new Error("Unable to calculate background-size for element")},Te=function(e,A){var r=e[A];return typeof r>"u"?e[0]:r},jd=function(e,A,r,t,n){var a=A[0],i=A[1],o=r[0],l=r[1];switch(e){case 2:return[new j(Math.round(t.left),Math.round(t.top+i)),new j(Math.round(t.left+t.width),Math.round(t.top+i)),new j(Math.round(t.left+t.width),Math.round(l+t.top+i)),new j(Math.round(t.left),Math.round(l+t.top+i))];case 3:return[new j(Math.round(t.left+a),Math.round(t.top)),new j(Math.round(t.left+a+o),Math.round(t.top)),new j(Math.round(t.left+a+o),Math.round(t.height+t.top)),new j(Math.round(t.left+a),Math.round(t.height+t.top))];case 1:return[new j(Math.round(t.left+a),Math.round(t.top+i)),new j(Math.round(t.left+a+o),Math.round(t.top+i)),new j(Math.round(t.left+a+o),Math.round(t.top+i+l)),new j(Math.round(t.left+a),Math.round(t.top+i+l))];default:return[new j(Math.round(n.left),Math.round(n.top)),new j(Math.round(n.left+n.width),Math.round(n.top)),new j(Math.round(n.left+n.width),Math.round(n.height+n.top)),new j(Math.round(n.left),Math.round(n.height+n.top))]}},Vd="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",qa="Hidden Text",Pd=(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"),i=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",i.appendChild(t),n.src=Vd,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(qa)),t.appendChild(a),t.appendChild(n);var o=n.offsetTop-a.offsetTop+2;t.removeChild(a),t.appendChild(this._document.createTextNode(qa)),t.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-t.offsetTop+2;return i.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})(),Si=(function(){function e(A,r){this.context=A,this.options=r}return e})(),Xd=1e4,Jd=(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 Pd(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(),Md(r)&&(this.ctx.globalAlpha=r.opacity),kd(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)),Ei(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(yA(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 i=jn(r.text);i.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(i){return i==="normal"||i==="small-caps"}).join(""),n=qd(r.fontFamily).join(", "),a=vt(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,i,o,l,c,g,d,u=this;return kA(this,function(p){return n=this.createFontStyle(t),a=n[0],i=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(i,o),c=l.baseline,g=l.middle,d=t.paintOrder,r.textBounds.forEach(function(v){d.forEach(function(Q){switch(Q){case 0:u.ctx.fillStyle=xA(t.color),u.renderTextWithLetterSpacing(v,t.letterSpacing,c);var x=t.textShadow;x.length&&v.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(v,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(v.bounds.left,Math.round(v.bounds.top+c),v.bounds.width,1);break;case 2:u.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:u.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+g),v.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&v.text.trim().length&&(u.ctx.strokeStyle=xA(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(v.text,v.bounds.left,v.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=wr(r),i=hr(t);this.path(i),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,i,o,l,F,F,c,g,d,u,k,p,v,y,Q,x,U,F,L,k,y;return kA(this,function(w){switch(w.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,n=r.curves,a=t.styles,i=0,o=t.textNodes,w.label=1;case 1:return i<o.length?(l=o[i],[4,this.renderTextNode(l,a)]):[3,4];case 2:w.sent(),w.label=3;case 3:return i++,[3,1];case 4:if(!(t instanceof li))return[3,8];w.label=5;case 5:return w.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return F=w.sent(),this.renderReplacedElement(t,n,F),[3,8];case 7:return w.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof ci&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof gi))return[3,12];w.label=9;case 9:return w.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return F=w.sent(),this.renderReplacedElement(t,n,F),[3,12];case 11:return w.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof fi&&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=w.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),w.label=14;case 14:if(t instanceof Vn&&(d=Math.min(t.bounds.width,t.bounds.height),t.type===gr?t.checked&&(this.ctx.save(),this.path([new j(t.bounds.left+d*.39363,t.bounds.top+d*.79),new j(t.bounds.left+d*.16,t.bounds.top+d*.5549),new j(t.bounds.left+d*.27347,t.bounds.top+d*.44071),new j(t.bounds.left+d*.39694,t.bounds.top+d*.5649),new j(t.bounds.left+d*.72983,t.bounds.top+d*.23),new j(t.bounds.left+d*.84,t.bounds.top+d*.34085),new j(t.bounds.left+d*.39363,t.bounds.top+d*.79)]),this.ctx.fillStyle=xA(Ra),this.ctx.fill(),this.ctx.restore()):t.type===ur&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+d/2,t.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=xA(Ra),this.ctx.fill(),this.ctx.restore())),Wd(t)&&t.value.length){switch(u=this.createFontStyle(a),k=u[0],p=u[1],v=this.fontMetrics.getMetrics(k,p).baseline,this.ctx.font=k,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Zd(t.styles.textAlign),y=wr(t),Q=0,t.styles.textAlign){case 1:Q+=y.width/2;break;case 2:Q+=y.width;break}x=y.add(Q,0,0,-y.height/2+1),this.ctx.save(),this.path([new j(y.left,y.top),new j(y.left+y.width,y.top),new j(y.left+y.width,y.top+y.height),new j(y.left,y.top+y.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ct(t.value,x),a.letterSpacing,v),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!yA(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];F=void 0,L=U.url,w.label=15;case 15:return w.trys.push([15,17,,18]),[4,this.context.cache.match(L)];case 16:return F=w.sent(),this.ctx.drawImage(F,t.bounds.left-(F.width+10),t.bounds.top),[3,18];case 17:return w.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&&(k=this.createFontStyle(a)[0],this.ctx.font=k,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",y=new ie(t.bounds.left,t.bounds.top+wA(t.styles.paddingTop,t.bounds.width),t.bounds.width,va(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ct(r.listValue,y),a.letterSpacing,va(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),w.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(r){return OA(this,void 0,void 0,function(){var t,n,U,a,i,U,o,l,U,c,g,U,d,u,U,p,v,U,Q,x,U;return kA(this,function(F){switch(F.label){case 0:if(yA(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:F.sent(),t=0,n=r.negativeZIndex,F.label=2;case 2:return t<n.length?(U=n[t],[4,this.renderStack(U)]):[3,5];case 3:F.sent(),F.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:F.sent(),a=0,i=r.nonInlineLevel,F.label=7;case 7:return a<i.length?(U=i[a],[4,this.renderNode(U)]):[3,10];case 8:F.sent(),F.label=9;case 9:return a++,[3,7];case 10:o=0,l=r.nonPositionedFloats,F.label=11;case 11:return o<l.length?(U=l[o],[4,this.renderStack(U)]):[3,14];case 12:F.sent(),F.label=13;case 13:return o++,[3,11];case 14:c=0,g=r.nonPositionedInlineLevel,F.label=15;case 15:return c<g.length?(U=g[c],[4,this.renderStack(U)]):[3,18];case 16:F.sent(),F.label=17;case 17:return c++,[3,15];case 18:d=0,u=r.inlineLevel,F.label=19;case 19:return d<u.length?(U=u[d],[4,this.renderNode(U)]):[3,22];case 20:F.sent(),F.label=21;case 21:return d++,[3,19];case 22:p=0,v=r.zeroOrAutoZIndexOrTransformedOrOpacity,F.label=23;case 23:return p<v.length?(U=v[p],[4,this.renderStack(U)]):[3,26];case 24:F.sent(),F.label=25;case 25:return p++,[3,23];case 26:Q=0,x=r.positiveZIndex,F.label=27;case 27:return Q<x.length?(U=x[Q],[4,this.renderStack(U)]):[3,30];case 28:F.sent(),F.label=29;case 29:return Q++,[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 i=PA(n)?n.start:n;a===0?t.ctx.moveTo(i.x,i.y):t.ctx.lineTo(i.x,i.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 i=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=i.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,i,o,l;return kA(this,function(c){switch(c.label){case 0:t=r.styles.backgroundImage.length-1,n=function(g){var d,u,p,O,eA,AA,R,W,K,v,O,eA,AA,R,W,Q,x,U,F,L,k,y,w,I,K,M,O,T,X,R,W,$,eA,AA,fA,sA,z,cA,iA,S,_,N;return kA(this,function(Y){switch(Y.label){case 0:if(g.type!==0)return[3,5];d=void 0,u=g.url,Y.label=1;case 1:return Y.trys.push([1,3,,4]),[4,a.context.cache.match(u)];case 2:return d=Y.sent(),[3,4];case 3:return Y.sent(),a.context.logger.error("Error loading background-image "+u),[3,4];case 4:return d&&(p=An(r,t,[d.width,d.height,d.width/d.height]),O=p[0],eA=p[1],AA=p[2],R=p[3],W=p[4],K=a.ctx.createPattern(a.resizeImage(d,R,W),"repeat"),a.renderRepeat(O,K,eA,AA)),[3,6];case 5:kg(g)?(v=An(r,t,[null,null,null]),O=v[0],eA=v[1],AA=v[2],R=v[3],W=v[4],Q=xg(g.angle,R,W),x=Q[0],U=Q[1],F=Q[2],L=Q[3],k=Q[4],y=document.createElement("canvas"),y.width=R,y.height=W,w=y.getContext("2d"),I=w.createLinearGradient(U,L,F,k),Qa(g.stops,x).forEach(function(gA){return I.addColorStop(gA.stop,xA(gA.color))}),w.fillStyle=I,w.fillRect(0,0,R,W),R>0&&W>0&&(K=a.ctx.createPattern(y,"repeat"),a.renderRepeat(O,K,eA,AA))):Mg(g)&&(M=An(r,t,[null,null,null]),O=M[0],T=M[1],X=M[2],R=M[3],W=M[4],$=g.position.length===0?[Nn]:g.position,eA=wA($[0],R),AA=wA($[$.length-1],W),fA=Ig(g,eA,AA,R,W),sA=fA[0],z=fA[1],sA>0&&z>0&&(cA=a.ctx.createRadialGradient(T+eA,X+AA,0,T+eA,X+AA,sA),Qa(g.stops,sA*2).forEach(function(gA){return cA.addColorStop(gA.stop,xA(gA.color))}),a.path(O),a.ctx.fillStyle=cA,sA!==z?(iA=r.bounds.left+.5*r.bounds.width,S=r.bounds.top+.5*r.bounds.height,_=z/sA,N=1/_,a.ctx.save(),a.ctx.translate(iA,S),a.ctx.transform(1,0,0,_,0,0),a.ctx.translate(-iA,-S),a.ctx.fillRect(T,N*(X-S)+S,R,W*N),a.ctx.restore()):a.ctx.fill())),Y.label=6;case 6:return t--,[2]}})},a=this,i=0,o=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return i<o.length?(l=o[i],[5,n(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return i++,[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(za(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 i,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 i=Dd(a,n),this.path(i),this.ctx.fillStyle=xA(r),this.ctx.fill(),o=Od(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,i,o,l,c,g,d=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}],i=Yd(Te(t.backgroundClip,0),r.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(i),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){d.ctx.save();var v=fr(r.curves),Q=p.inset?0:Xd,x=Kd(v,-Q+(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?(d.path(v),d.ctx.clip(),d.mask(x)):(d.mask(v),d.ctx.clip(),d.path(x)),d.ctx.shadowOffsetX=p.offsetX.number+Q,d.ctx.shadowOffsetY=p.offsetY.number,d.ctx.shadowColor=xA(p.color),d.ctx.shadowBlur=p.blur.number,d.ctx.fillStyle=p.inset?xA(p.color):"rgba(0,0,0,1)",d.ctx.fill(),d.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,i){return OA(this,void 0,void 0,function(){var o,l,c,g,d,u,p,v,Q,x,U,F,L,k,y,w,y,w;return kA(this,function(I){return this.ctx.save(),o=Rd(a,n),l=za(a,n),i===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])?(d=l[1].end.x,u=l[1].end.y):(d=l[1].x,u=l[1].y),n===0||n===2?p=Math.abs(c-d):p=Math.abs(g-u),this.ctx.beginPath(),i===3?this.formatPath(o):this.formatPath(l.slice(0,2)),v=t<3?t*3:t*2,Q=t<3?t*2:t,i===3&&(v=t,Q=t),x=!0,p<=v*2?x=!1:p<=v*2+Q?(U=p/(2*v+Q),v*=U,Q*=U):(F=Math.floor((p+Q)/(v+Q)),L=(p-F*v)/(F-1),k=(p-(F+1)*v)/F,Q=k<=0||Math.abs(Q-L)<Math.abs(Q-k)?L:k),x&&(i===3?this.ctx.setLineDash([0,v+Q]):this.ctx.setLineDash([v,Q])),i===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([]),i===2&&(PA(l[0])&&(y=l[3],w=l[0],this.ctx.beginPath(),this.formatPath([new j(y.end.x,y.end.y),new j(w.start.x,w.start.y)]),this.ctx.stroke()),PA(l[1])&&(y=l[1],w=l[2],this.ctx.beginPath(),this.formatPath([new j(y.end.x,y.end.y),new j(w.start.x,w.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=Td(r),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A})(Si),Wd=function(e){return e instanceof di||e instanceof Bi?!0:e instanceof Vn&&e.type!==ur&&e.type!==gr},Yd=function(e,A){switch(e){case 0:return fr(A);case 2:return Hd(A);default:return hr(A)}},Zd=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},zd=["-apple-system","system-ui"],qd=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return zd.indexOf(A)===-1}):e},$d=(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=In(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,Af(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})(Si),Af=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))})},ef=(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,Et([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,Et([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,Et([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,Et([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e})(),tf=(function(){function e(A,r){var t;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new ef({id:this.instanceName,enabled:A.logging}),this.cache=(t=A.cache)!==null&&t!==void 0?t:new vd(this,A)}return e.instanceCount=1,e})(),rf=function(e,A){return A===void 0&&(A={}),nf(e,A)};typeof window<"u"&&bi.setContext(window);var nf=function(e,A){return OA(void 0,void 0,void 0,function(){var r,t,n,a,i,o,l,c,g,d,u,p,v,Q,x,U,F,L,k,y,I,w,I,K,M,O,T,X,R,W,$,eA,AA,fA,sA,z,cA,iA,S,_;return kA(this,function(N){switch(N.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:(K=A.allowTaint)!==null&&K!==void 0?K:!1,imageTimeout:(M=A.imageTimeout)!==null&&M!==void 0?M:15e3,proxy:A.proxy,useCORS:(O=A.useCORS)!==null&&O!==void 0?O:!1},a=dn({logging:(T=A.logging)!==null&&T!==void 0?T:!0,cache:A.cache},n),i={windowWidth:(X=A.windowWidth)!==null&&X!==void 0?X:t.innerWidth,windowHeight:(R=A.windowHeight)!==null&&R!==void 0?R:t.innerHeight,scrollX:(W=A.scrollX)!==null&&W!==void 0?W:t.pageXOffset,scrollY:($=A.scrollY)!==null&&$!==void 0?$:t.pageYOffset},o=new ie(i.scrollX,i.scrollY,i.windowWidth,i.windowHeight),l=new tf(a,o),c=(eA=A.foreignObjectRendering)!==null&&eA!==void 0?eA:!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),d=new Wa(l,e,g),u=d.clonedReferenceElement,u?[4,d.toIFrame(r,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=N.sent(),v=Pn(u)||ad(u)?Kl(u.ownerDocument):Qr(l,u),Q=v.width,x=v.height,U=v.left,F=v.top,L=af(l,u,A.backgroundColor),k={canvas:A.canvas,backgroundColor:L,scale:(sA=(fA=A.scale)!==null&&fA!==void 0?fA:t.devicePixelRatio)!==null&&sA!==void 0?sA:1,x:((z=A.x)!==null&&z!==void 0?z:0)+U,y:((cA=A.y)!==null&&cA!==void 0?cA:0)+F,width:(iA=A.width)!==null&&iA!==void 0?iA:Math.ceil(Q),height:(S=A.height)!==null&&S!==void 0?S:Math.ceil(x)},c?(l.logger.debug("Document cloned, using foreign object rendering"),I=new $d(l,k),[4,I.render(u)]):[3,3];case 2:return y=N.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+U+","+F+" with size "+Q+"x"+x+" using computed rendering"),l.logger.debug("Starting DOM parsing"),w=wi(l,u),L===w.styles.backgroundColor&&(w.styles.backgroundColor=se.TRANSPARENT),l.logger.debug("Starting renderer for element at "+k.x+","+k.y+" with size "+k.width+"x"+k.height),I=new Jd(l,k),[4,I.render(w)];case 4:y=N.sent(),N.label=5;case 5:return(!((_=A.removeContainer)!==null&&_!==void 0)||_)&&(Wa.destroy(p)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,y]}})})},af=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,i=typeof r=="string"?ot(e,r):r===null?se.TRANSPARENT:4294967295;return A===t.documentElement?we(n)?we(a)?i:a:n:i},en={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)},sf={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"}},of=function(e,A){var r=IA({},sf);if(e)for(var t in en)Object.prototype.hasOwnProperty.call(en,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),en[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},$a=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)},Yt=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)},lf=function(e){var A=e.color,r=dA().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"}))},cf=function(e){var A=e.onSelect,r=dA().defaultStyles,t=b.useState(null),n=t[0],a=t[1],i=b.useState(!1),o=i[0],l=i[1],c=b.useState(!1),g=c[0],d=c[1],u=function(){var Q=document.getElementById("root");l(!0),rf(Q).then(function(x){var U=document.createElement("canvas"),F=U.getContext("2d",{willReadFrequently:!0});Q&&F&&(U.width=Q.offsetWidth*2,U.height=Q.offsetHeight*2,F.drawImage(x,0,0)),a(F)})},p=function(Q){if(Q.stopPropagation(),n){var x=Q.pageX,U=Q.pageY,F=x*2,L=U*2,k=n.getImageData(F,L,1,1).data;A("rgba(".concat(k[0],", ").concat(k[1],", ").concat(k[2],", 1)"))}d(!1),l(!1)},v=function(){if(d(!0),!window.EyeDropper)u();else{var Q=new window.EyeDropper,x=new window.AbortController;Q.open({signal:x.signal}).then(function(U){var F=SA(U.sRGBHex),L=F.toRgb(),k=L.r,y=L.g,w=L.b;A("rgba(".concat(k,", ").concat(y,", ").concat(w,", 1)")),d(!1)}).catch(function(U){console.log(U),d(!1)})}};return m.createElement("div",null,m.createElement("div",{onClick:v,id:"rbgcp-eyedropper-btn",style:$A($A({},r.rbgcpEyedropperBtn),ut(o,r))},m.createElement(lf,{color:g?"rgb(86, 140, 245)":""})),o&&m.createElement(Ml,null,m.createElement("div",{onClick:function(Q){return p(Q)},style:r.rbgcpEyedropperCover})))},Tn=function(){return Tn=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},Tn.apply(this,arguments)},tn=function(e){var A=e.value,r=e.reffy,t=e.label,n=e.config,a=e.callback,i=e.squareWidth,o=e.openAdvanced,l=e.defaultStyles,c=e.pickerIdSuffix,g=n.barSize,d=b.useState(!1),u=d[0],p=d[1],v=b.useState(2),Q=v[0],x=v[1],U=A*(i-18);b.useEffect(function(){var w;x(((w=r?.current)===null||w===void 0?void 0:w.offsetTop)-2)},[o,r]);var F=function(){p(!1)},L=function(w){u&&a(Ge(w,g))},k=function(w){u||a(Ge(w,g))},y=function(){p(!0)};return b.useEffect(function(){var w=function(){F()};return window.addEventListener("mouseup",w),function(){window.removeEventListener("mouseup",w)}},[]),m.createElement("div",{style:{width:"100%",padding:"3px 0px 3px 0px"}},m.createElement("div",{onMouseMove:function(w){return L(w)},style:{cursor:"resize",position:"relative"},id:"rbgcp-advanced-bar-".concat(t,"-wrapper").concat(c)},m.createElement("div",{style:Tn({left:U,top:Q},l.rbgcpHandle),id:"rbgcp-advanced-bar-".concat(t,"-handle").concat(c),onMouseDown:y,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:Q+2,zIndex:10,textShadow:"1px 1px 1px rgba(0,0,0,.6)"},id:"rbgcp-advanced-bar-".concat(t,"-label").concat(c),onMouseMove:function(w){return L(w)},onClick:function(w){return k(w)},tabIndex:0,role:"button",onKeyDown:function(){}},t),m.createElement("canvas",{ref:r,height:"14px",width:"".concat(i,"px"),onClick:function(w){return k(w)},style:{position:"relative",borderRadius:14},id:"rbgcp-advanced-bar-".concat(t,"-canvas").concat(c)})))},gf=function(e){var A=e.openAdvanced,r=dA(),t=r.config,n=r.tinyColor,a=r.handleChange,i=r.squareWidth,o=r.hc,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.toHsl(),d=g.s,u=g.l,p=b.useRef(null),v=b.useRef(null),Q=b.useRef(null);rl(p,o?.h,u*100,i),nl(v,o?.h,d*100,i),al(Q,o?.h,d*100,i);var x=function(L){var k=SA({h:o?.h,s:L/100,l:u}).toRgb(),y=k.r,w=k.g,I=k.b;a("rgba(".concat(y,",").concat(w,",").concat(I,",").concat(o?.a,")"))},U=function(L){var k=SA({h:o?.h,s:d,l:L/100}).toRgb(),y=k.r,w=k.g,I=k.b;a("rgba(".concat(y,",").concat(w,",").concat(I,",").concat(o?.a,")"))},F=function(L){var k=SA({h:o?.h,s:o?.s*100,v:L}).toRgb(),y=k.r,w=k.g,I=k.b;a("rgba(".concat(y,",").concat(w,",").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(tn,{value:d,reffy:p,config:t,label:"Saturation",callback:x,squareWidth:i,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),m.createElement(tn,{value:u,config:t,reffy:v,label:"Lightness",callback:U,squareWidth:i,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),m.createElement(tn,{value:o?.v,config:t,reffy:Q,label:"Brightness",callback:F,squareWidth:i,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c})))},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)},uf=function(e){var A=e.openComparibles,r=dA(),t=r.tinyColor,n=r.handleChange,a=r.defaultStyles,i=r.pickerIdSuffix,o=t.analogous(),l=t.monochromatic(),c=t.triad(),g=t.tetrad(),d=function(u){var p=u.toRgb(),v=p.r,Q=p.g,x=p.b,U=p.a;n("rgba(".concat(v,",").concat(Q,",").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(i)},m.createElement("div",{style:{paddingTop:11,display:A?"":"none",position:"relative"},id:"rbgcp-comparible-colors-inner".concat(i)},m.createElement("div",{style:Fe({textAlign:"center",fontSize:13,fontWeight:600,position:"absolute",top:6.5,left:2},a.rbgcpComparibleLabel),id:"rbgcp-comparible-color-guide-label".concat(i)},"Color Guide"),m.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-analogous-colors-label".concat(i)},"Analogous"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex"},id:"rbgcp-comparible-analogous-colors".concat(i)},o?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-analogous-color-".concat(p).concat(i),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return d(u)}})})),m.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-monochromatic-colors-label".concat(i)},"Monochromatic"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-monochromatic-colors".concat(i)},l?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-monochromatic-color-".concat(p).concat(i),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return d(u)}})})),m.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-triad-colors-label".concat(i)},"Triad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-triad-colors".concat(i)},c?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-triad-color-".concat(p).concat(i),style:{width:"calc(100% / 3)",height:28,background:u.toHexString()},onClick:function(){return d(u)}})})),m.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-tetrad-colors-label".concat(i)},"Tetrad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-tetrad-colors".concat(i)},g?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-tetrad-color-".concat(p).concat(i),style:{width:"25%",height:28,background:u.toHexString()},onClick:function(){return d(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)},Bf=function(){var e=dA(),A=e.gradientType,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,i=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),i&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(El,{color:i?"#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(yl,{color:o?"#568CF5":""})))},df=function(){var e=dA(),A=e.currentLeft,r=e.currentColor,t=e.defaultStyles,n=e.handleGradient,a=e.pickerIdSuffix,i=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(Ll,null),m.createElement("input",{value:A,id:"rbgcp-stop-input".concat(a),onChange:function(o){return i(o.target.value)},style:CA(CA({},t.rbgcpControlInput),t.rbgcpStopInput)}))},ff=function(){var e=dA(),A=e.degrees,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,i=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(Sl,null),m.createElement("input",{value:A,onChange:function(o){return i(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})},"°"))},hf=function(){var e=dA(),A=e.colors,r=e.selectedColor,t=e.createGradientStr,n=e.defaultStyles,a=e.pickerIdSuffix,i=function(){if(A?.length>2){var o=A?.map(function(c,g){return CA(CA({},c),{value:g===r-1?Cr(c):Qt(c)})}),l=o?.filter(function(c,g){return g!==r});t(l)}};return m.createElement("div",{onClick:i,style:CA(CA({},ut(!1,n)),{width:28}),id:"rbgcp-point-delete-btn".concat(a),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(bl,null))},As=function(e){var A=e.hideGradientType,r=e.hideGradientAngle,t=e.hideGradientStop,n=dA(),a=n.gradientType,i=n.defaultStyles,o=n.pickerIdSuffix;return m.createElement("div",{style:CA(CA({},i.rbgcpControlBtnWrapper),{marginTop:12,marginBottom:-4,justifyContent:"space-between",paddingLeft:A?4:0}),id:"rbgcp-gradient-controls-wrap".concat(o)},!A&&m.createElement(Bf,null),m.createElement("div",{style:{width:53}},!r&&a==="linear-gradient"&&m.createElement(ff,null)),!t&&m.createElement(df,null),m.createElement(hf,null))},wt=function(){return wt=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},wt.apply(this,arguments)},wf=function(e){var A,r,t=e.hideColorTypeBtns,n=e.setGradient,a=e.isGradient,i=e.setSolid,o=e.locales,l=dA(),c=l.defaultStyles,g=l.pickerIdSuffix;return t?m.createElement("div",{style:{width:1}}):m.createElement("div",{style:wt({display:"flex",alignItems:"center"},c.rbgcpControlBtnWrapper),id:"rbgcp-color-type-btns".concat(g)},m.createElement("div",{onClick:i,id:"rbgcp-solid-btn".concat(g),style:$a(!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:$a(a??!1,c)},(r=o?.CONTROLS)===null||r===void 0?void 0:r.GRADIENT))},pf=function(e){var A=e.openInputType,r=e.setOpenInputType,t=dA(),n=t.inputType,a=t.setInputType,i=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",d=function(u,p){A&&(u.stopPropagation(),a(p),r(!1))};return m.createElement("div",{style:wt({visibility:A?"visible":"hidden",zIndex:A?"":-100,opacity:A?1:0,transition:"".concat(g,", ").concat(l,", ").concat(c)},i.rbgcpColorModelDropdown),id:"rbgcp-color-model-dropdown".concat(o)},m.createElement("div",{id:"rbgcp-color-model-rgb-btn".concat(o),onClick:function(u){return d(u,"rgb")},style:Yt(n==="rgb",i)},"RGB"),m.createElement("div",{id:"rbgcp-color-model-hsl-btn".concat(o),onClick:function(u){return d(u,"hsl")},style:Yt(n==="hsl",i)},"HSL"),m.createElement("div",{id:"rbgcp-color-model-hsv-btn".concat(o),onClick:function(u){return d(u,"hsv")},style:Yt(n==="hsv",i)},"HSV"),m.createElement("div",{id:"rbgcp-color-model-cmyk-btn".concat(o),onClick:function(u){return d(u,"cmyk")},style:Yt(n==="cmyk",i)},"CMYK"))},Cf=function(e){var A,r,t=e.locales,n=e.hideEyeDrop,a=n===void 0?!1:n,i=e.hideAdvancedSliders,o=i===void 0?!1:i,l=e.hideColorGuide,c=l===void 0?!1:l,g=e.hideInputType,d=g===void 0?!1:g,u=e.hideColorTypeBtns,p=u===void 0?!1:u,v=e.hideGradientControls,Q=v===void 0?!1:v,x=e.hideGradientType,U=x===void 0?!1:x,F=e.hideGradientAngle,L=F===void 0?!1:F,k=e.hideGradientStop,y=k===void 0?!1:k,w=dA(),I=w.config,K=w.onChange,M=w.isGradient,O=w.handleChange,T=w.previous,X=w.defaultStyles,R=w.pickerIdSuffix,W=I.defaultColor,$=I.defaultGradient,eA=b.useState(!1),AA=eA[0],fA=eA[1],sA=b.useState(!1),z=sA[0],cA=sA[1],iA=b.useState(!1),S=iA[0],_=iA[1],N=a&&o&&c&&d,Y=(A=T?.color)!==null&&A!==void 0?A:W,gA=(r=T?.gradient)!==null&&r!==void 0?r:$,Z=function(){K(Y)},q=function(){K(gA)},tA=a&&o&&c&&d,H=tA&&p;return H?M&&!Q?m.createElement(As,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:y}):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(R)},m.createElement(wf,{hideColorTypeBtns:p,setGradient:q,isGradient:M,setSolid:Z,locales:t}),!tA&&m.createElement("div",{style:wt({display:N?"none":""},X.rbgcpControlBtnWrapper),id:"rbgcp-control-rightside-wrapper".concat(R)},!a&&m.createElement(cf,{onSelect:O}),!o&&m.createElement("div",{id:"rbgcp-advanced-btn".concat(R),onClick:function(){return _(!S)},style:ut(S,X)},m.createElement(xl,{color:S?"#568CF5":""})),!c&&m.createElement("div",{style:ut(AA,X),onClick:function(){return fA(!AA)},id:"rbgcp-comparibles-btn".concat(R)},m.createElement(Hl,{color:AA?"#568CF5":""})),!d&&m.createElement("div",{id:"rbgcp-color-model-btn".concat(R),onClick:function(){return cA(!z)},style:ut(z,X)},m.createElement(Il,{color:z?"#568CF5":""}),m.createElement(pf,{openInputType:z,setOpenInputType:cA})))),!o&&m.createElement(gf,{openAdvanced:S}),!c&&m.createElement(uf,{openComparibles:AA}),M&&!Q&&m.createElement(As,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:y}))},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)},es=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))},Qf=function(e){var A=e.left,r=e.i,t=e.setDragging,n=dA(),a=n.colors,i=n.squareWidth,o=n.selectedColor,l=n.defaultStyles,c=n.pickerIdSuffix,g=n.createGradientStr,d=o===r,u=(i-18)/100,p=function(Q){var x=a?.map(function(U,F){return Ae(Ae({},U),{value:F===Q?Cr(U):Qt(U)})});g(x)},v=function(Q){Q.stopPropagation(),p(r),t(!0)};return m.createElement("div",{onMouseDown:function(Q){return v(Q)},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),d?{boxShadow:"0px 0px 5px 1px rgba(86, 140, 245,.95)",border:"2px solid white"}:{}),id:"rbgcp-gradient-handle-".concat(r,"-dot").concat(c)},d&&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=dA(),A=e.value,r=e.colors,t=e.config,n=e.squareWidth,a=e.currentColor,i=e.handleGradient,o=e.pickerIdSuffix,l=e.createGradientStr,c=t.barSize,g=b.useState(!1),d=g[0],u=g[1];function p(L){return L.replace(/(radial|linear)-gradient\([^,]+,/,"linear-gradient(90deg,")}var v=function(L){var k,y=Ge(L,c),w=(k=es(es([],r.map(function(I){return Ae(Ae({},I),{value:Qt(I)})}),!0),[{value:a,left:y}],!1))===null||k===void 0?void 0:k.sort(function(I,K){return I.left-K.left});l(w)},Q=function(){u(!1)},x=function(L){d||(v(L),u(!0))},U=function(L){d&&i(a,Ge(L,c))},F=function(){Q()};return b.useEffect(function(){return window.addEventListener("mouseup",F),function(){window.removeEventListener("mouseup",F)}}),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,k){return m.createElement(Qf,{i:k,left:L.left,key:"".concat(k,"-").concat(L),setDragging:u})}))},vf=function(e){var A=e.locales,r=e.presets,t=e.hideHue,n=e.hideInputs,a=e.hidePresets,i=e.hideOpacity,o=e.hideEyeDrop,l=e.hideControls,c=e.hideInputType,g=e.hideColorGuide,d=e.hidePickerSquare,u=e.hideGradientType,p=e.hideGradientStop,v=e.hideGradientAngle,Q=e.hideColorTypeBtns,x=e.hideAdvancedSliders,U=e.hideGradientControls,F=dA(),L=F.isGradient,k=F.pickerIdSuffix;return m.createElement("div",{style:{userSelect:"none"},id:"rbgcp-color-picker".concat(k)},!d&&m.createElement(Ql,null),!l&&m.createElement(Cf,{locales:A,hideEyeDrop:o,hideInputType:c,hideColorGuide:g,hideGradientType:u,hideGradientStop:p,hideColorTypeBtns:Q,hideGradientAngle:v,hideAdvancedSliders:x,hideGradientControls:U}),L&&m.createElement(mf,null),!t&&m.createElement(sl,null),!i&&m.createElement(ml,null),!n&&m.createElement(fl,null),!a&&m.createElement(Fl,{presets:r}))},pr=function(){return pr=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},pr.apply(this,arguments)};function Uf(e){var A=e.idSuffix,r=e.value,t=r===void 0?"rgba(175, 51, 242, 1)":r,n=e.onChange,a=e.hideControls,i=a===void 0?!1:a,o=e.hideInputs,l=o===void 0?!1:o,c=e.hideOpacity,g=c===void 0?!1:c,d=e.hidePresets,u=d===void 0?!1:d,p=e.hideHue,v=p===void 0?!1:p,Q=e.presets,x=Q===void 0?[]:Q,U=e.hideEyeDrop,F=U===void 0?!1:U,L=e.hideAdvancedSliders,k=L===void 0?!1:L,y=e.hideColorGuide,w=y===void 0?!1:y,I=e.hideInputType,K=I===void 0?!1:I,M=e.hideColorTypeBtns,O=M===void 0?!1:M,T=e.hideGradientType,X=T===void 0?!1:T,R=e.hideGradientAngle,W=R===void 0?!1:R,$=e.hideGradientStop,eA=$===void 0?!1:$,AA=e.hideGradientControls,fA=AA===void 0?!1:AA,sA=e.locales,z=sA===void 0?vl:sA,cA=e.width,iA=cA===void 0?294:cA,S=e.height,_=S===void 0?294:S,N=e.style,Y=N===void 0?{}:N,gA=e.className,Z=e.disableDarkMode,q=Z===void 0?!1:Z,tA=e.disableLightMode,H=tA===void 0?!1:tA,P=e.hidePickerSquare,B=P===void 0?!1:P,C=e.showHexAlpha,h=C===void 0?!1:C,E=e.config,D=E===void 0?{}:E,G=Zo(t),aA=typeof window>"u"||q?!1:!!(window.matchMedia("(prefers-color-scheme: dark)").matches||H),hA=of(aA,Y),UA=aA?"-dark".concat(A?"-".concat(A):""):A?"-".concat(A):"";return m.createElement("div",{className:gA,style:pr(pr({},hA.body),{width:iA})},m.createElement(el,{value:G,onChange:n,squareWidth:iA,passedConfig:D,squareHeight:_,isDarkMode:aA,hideOpacity:g,showHexAlpha:h,defaultStyles:hA,pickerIdSuffix:UA},m.createElement(vf,{hideControls:i,hideInputs:l,hidePresets:u,hideOpacity:g,hideHue:v,presets:x,hideEyeDrop:F,hideAdvancedSliders:k,hideColorGuide:w,hideInputType:K,hideColorTypeBtns:O,hideGradientType:X,hideGradientAngle:W,hideGradientStop:eA,hideGradientControls:fA,hidePickerSquare:B,locales:z})))}const Ff=()=>{const[e,A]=b.useState(localStorage.getItem("customBackgroundColour")||"rgba(0, 0, 0, 100)"),r=n=>{A(n),localStorage.setItem("customBackgroundColour",n),vA.emit("refresh","background")},t=()=>{A("rgba(0, 0, 0, 0)"),localStorage.setItem("customBackgroundColour","rgba(0, 0, 0, 100)"),RA(f.getMessage("toasts.reset")),vA.emit("refresh","background")};return s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.source.custom_colour")}),s.jsxs(lA,{children:[s.jsx(Uf,{value:e,onChange:r,hideEyeDrop:!0,hideColorGuide:!0,hidePresets:!0,hideAdvancedSliders:!1,hideColorTypeBtns:!1,hideInputType:!1,height:147}),s.jsx("div",{className:"colourReset",children:s.jsxs("span",{className:"link",onClick:()=>t(),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})})]})]})};var bf=["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+=bf[Math.floor(n)]}return r},rn=e=>{let A=e/255;return A<=.04045?A/12.92:Math.pow((A+.055)/1.055,2.4)},nn=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)},Ef=e=>e<0?-1:1,an=(e,A)=>Ef(e)*Math.pow(Math.abs(e),A),ts=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},rs=4,yf=(e,A,r,t)=>{let n=0,a=0,i=0,o=A*rs;for(let c=0;c<A;c++){let g=rs*c;for(let d=0;d<r;d++){let u=g+d*o,p=t(c,d);n+=p*rn(e[u]),a+=p*rn(e[u+1]),i+=p*rn(e[u+2])}}let l=1/(A*r);return[n*l,a*l,i*l]},xf=e=>{let A=nn(e[0]),r=nn(e[1]),t=nn(e[2]);return(A<<16)+(r<<8)+t},If=(e,A)=>{let r=Math.floor(Math.max(0,Math.min(18,Math.floor(an(e[0]/A,.5)*9+9.5)))),t=Math.floor(Math.max(0,Math.min(18,Math.floor(an(e[1]/A,.5)*9+9.5)))),n=Math.floor(Math.max(0,Math.min(18,Math.floor(an(e[2]/A,.5)*9+9.5))));return r*19*19+t*19+n},Hf=(e,A,r,t,n)=>{if(t<1||t>9||n<1||n>9)throw new ts("BlurHash must have between 1 and 9 components");if(A*r*4!==e.length)throw new ts("Width and height must match the pixels array");let a=[];for(let d=0;d<n;d++)for(let u=0;u<t;u++){let p=u==0&&d==0?1:2,v=yf(e,A,r,(Q,x)=>p*Math.cos(Math.PI*u*Q/A)*Math.cos(Math.PI*d*x/r));a.push(v)}let i=a[0],o=a.slice(1),l="",c=t-1+(n-1)*9;l+=ze(c,1);let g;if(o.length>0){let d=Math.max(...o.map(p=>Math.max(...p))),u=Math.floor(Math.max(0,Math.min(82,Math.floor(d*166-.5))));g=(u+1)/166,l+=ze(u,1)}else g=1,l+=ze(0,1);return l+=ze(xf(i),4),o.forEach(d=>{l+=ze(If(d,g),2)}),l},Sf=Hf;async function sn(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 on(e,A=4,r=3){return new Promise((t,n)=>{const a=new Image;a.onload=()=>{try{const i=document.createElement("canvas"),o=i.getContext("2d"),l=64,c=Math.min(l/a.width,l/a.height);i.width=Math.floor(a.width*c),i.height=Math.floor(a.height*c),o.drawImage(a,0,0,i.width,i.height);const g=o.getImageData(0,0,i.width,i.height),d=Sf(g.data,g.width,g.height,A,r);typeof e!="string"&&URL.revokeObjectURL(a.src),t(d)}catch(i){n(i)}},a.onerror=()=>n(new Error("Failed to load image for blur hash")),typeof e=="string"?a.src=e:a.src=URL.createObjectURL(e)})}function ln(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 ns(e,A){return e&&e.name?e.name:`Image ${A+1}`}function Lf(){const e={};return Object.keys(localStorage).forEach(A=>{e[A]=localStorage.getItem(A)}),new TextEncoder().encode(JSON.stringify(e)).length}function Qe(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]}function kf({modalClose:e,urlError:A,modalCloseOnly:r}){const[t,n]=b.useState();return s.jsxs("div",{className:"smallModal",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.add_url")}),s.jsx(un,{title:f.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),children:s.jsx("div",{className:"close",onClick:r,children:s.jsx(Ar,{})})})]}),s.jsx("input",{type:"text",value:t,onChange:a=>n(a.target.value.replace(/(\r\n|\n|\r)/gm,""))}),s.jsx("span",{className:"dropdown-error",children:A}),s.jsxs("div",{className:"resetFooter",children:[s.jsx(pA,{type:"secondary",onClick:r,icon:s.jsx(Ar,{}),label:f.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),s.jsx(pA,{type:"settings",onClick:()=>e(t),icon:s.jsx(Zi,{}),label:f.getMessage("modals.main.settings.sections.background.source.add_url")})]})]})}const Mf=b.memo(kf),Kf=({files:e,onConfirm:A,onCancel:r})=>{const[t,n]=b.useState(""),a=()=>{A(t.trim())};return s.jsxs("div",{className:"smallModal",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.tag_images")}),s.jsx("button",{className:"closeModal",onClick:r,children:s.jsx(Ar,{})})]}),s.jsxs("div",{className:"taggingModalContent",children:[s.jsx("p",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.tag_description",{count:e.length})}),s.jsxs("div",{className:"taggingInput",children:[s.jsx("label",{children:f.getMessage("modals.main.settings.sections.background.source.folder_name")}),s.jsx("input",{type:"text",placeholder:f.getMessage("modals.main.settings.sections.background.source.folder_placeholder"),value:t,onChange:i=>n(i.target.value),onKeyPress:i=>{i.key==="Enter"&&a()},autoFocus:!0})]})]}),s.jsxs("div",{className:"resetFooter",children:[s.jsx(pA,{type:"settings",onClick:r,label:f.getMessage("modals.main.settings.buttons.cancel")}),s.jsx(pA,{type:"settings",onClick:a,label:f.getMessage("modals.main.settings.buttons.continue")})]})]})},Li=b.memo(()=>{const[e,A]=b.useState([]),[r,t]=b.useState(!1),[n,a]=b.useState(!1),[i,o]=b.useState([]),[l,c]=b.useState(""),[g,d]=b.useState(!0),[u,p]=b.useState(!1),[v,Q]=b.useState({current:0,total:0}),[x,U]=b.useState(!1),[F,L]=b.useState(new Set),[k,y]=b.useState(localStorage.getItem("customImageSort")||"date_desc"),[w,I]=b.useState(!1),[K,M]=b.useState({usage:0,quota:0}),O=b.useRef(null),T=b.useRef(0),X=5e7;b.useEffect(()=>{(async()=>{if(navigator.storage&&navigator.storage.estimate)try{const P=await navigator.storage.estimate();M({usage:P.usage||0,quota:P.quota||X})}catch(P){console.warn("Could not get storage estimate:",P),M({usage:0,quota:X})}else M({usage:0,quota:X})})()},[e]),b.useEffect(()=>{(async()=>{try{await no();const P=await xe();A(P),P.forEach(async B=>{if(!B.dimensions&&B.url&&!Ft(B.url))try{const C=await sn(B.url),h=await on(B.url);await ao(B.id,{dimensions:C,blurHash:h});const E=await xe();A(E)}catch(C){console.warn("Could not extract metadata for existing image:",C)}})}catch(P){console.error("Error loading backgrounds:",P),RA(f.getMessage("toasts.error"))}finally{d(!1)}})()},[]);const R=b.useCallback(async(H,P,B,C=!1)=>{try{const h={url:P,name:B.name,uploadDate:Date.now(),dimensions:B.dimensions,fileSize:B.fileSize,folder:B.folder||"",blurHash:B.blurHash};await Sr(h);const E=await xe();A(E);try{localStorage.setItem("customBackground",JSON.stringify(E.map(D=>D.url)))}catch{console.warn("localStorage quota exceeded, storing count only"),localStorage.setItem("customBackgroundCount",E.length.toString())}C||vA.emit("refresh","background")}catch(h){console.error("Error saving background:",h),RA(f.getMessage("toasts.error"))}},[]),W=async(H,P="")=>{const B=e.reduce((h,E)=>E.url&&E.url.startsWith("data:")?h+ln(E.url):h,0),C=K.quota||X;if(B/C>.9&&navigator.storage&&navigator.storage.persist)try{await navigator.storage.persist()&&console.log("Storage persistence granted")}catch(h){console.warn("Could not request storage persistence:",h)}if(Ft(H.type)){if(B+H.size>C)throw new Error("no_storage");const h=new FileReader;return new Promise((E,D)=>{h.onloadend=()=>{E({dataUrl:h.result,metadata:{name:ns(H,e.length),dimensions:null,fileSize:H.size,folder:P,blurHash:null}})},h.onerror=D,h.readAsDataURL(H)})}else{const h=await Zn.compressAccurately(H,{size:450,accuracy:.9}),E=K.quota||X;if(B+h.size>E)throw new Error("no_storage");const D=await Zn.filetoDataURL(h),[G,aA]=await Promise.all([sn(D),on(D).catch(()=>null)]);return{dataUrl:D,metadata:{name:ns(H,e.length),dimensions:G,fileSize:ln(D),folder:P,blurHash:aA}}}},$=async(H,P="")=>{p(!0),Q({current:0,total:H.length});const B=[];for(let C=0;C<H.length;C++)try{const h=await W(H[C],P);await R(H[C],h.dataUrl,h.metadata,!0),Q({current:C+1,total:H.length})}catch(h){if(h.message==="no_storage"){RA(f.getMessage("toasts.no_storage"));break}B.push(H[C].name)}B.length>0&&RA(f.getMessage("toasts.error")+`: ${B.join(", ")}`),vA.emit("refresh","background"),p(!1),Q({current:0,total:0})},eA=async H=>{a(!1),await $(i,H),o([])},AA=b.useCallback(async(H,P)=>{try{H==="add"?await Sr(""):await zi(P);const B=await xe();A(B);try{localStorage.setItem("customBackground",JSON.stringify(B.map(C=>C.url)))}catch{console.warn("localStorage quota exceeded, storing count only"),localStorage.setItem("customBackgroundCount",B.length.toString())}vA.emit("refresh","background")}catch(B){console.error("Error modifying background:",B),RA(f.getMessage("toasts.error"))}},[]),fA=async()=>{if(F.size!==0)try{const H=Array.from(F).sort((B,C)=>C-B);await so(H);const P=await xe();A(P),L(new Set);try{localStorage.setItem("customBackground",JSON.stringify(P.map(B=>B.url)))}catch{localStorage.setItem("customBackgroundCount",P.length.toString())}vA.emit("refresh","background"),RA(f.getMessage("toasts.deleted"))}catch(H){console.error("Error batch deleting:",H),RA(f.getMessage("toasts.error"))}},sA=H=>{const P=new Set(F);P.has(H)?P.delete(H):P.add(H),L(P)},z=H=>{y(H),localStorage.setItem("customImageSort",H)},cA=b.useCallback(()=>{document.getElementById("bg-input").click()},[]),iA=b.useCallback(async H=>{if(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(H)===!1)return c(f.getMessage("widgets.quicklinks.url_error"));t(!1);try{const B=H.split("/"),C=B[B.length-1].split("?")[0]||"Remote Image";let h=null,E=null;try{h=await sn(H),E=await on(H)}catch(aA){console.warn("Could not extract metadata from remote image:",aA)}const D={url:H,name:C,uploadDate:Date.now(),dimensions:h,fileSize:null,folder:"",blurHash:E};await Sr(D);const G=await xe();A(G)}catch(B){console.error("Error adding URL:",B),RA(f.getMessage("toasts.error"))}try{localStorage.setItem("customBackground",JSON.stringify(updatedBackgrounds.map(B=>B.url)))}catch{localStorage.setItem("customBackgroundCount",updatedBackgrounds.length.toString())}vA.emit("refresh","background")},[e.length]),S=async H=>{H.length>1?(o(H),a(!0)):await $(H,"")},_=[...e].sort((H,P)=>{switch(k){case"date_asc":return H.uploadDate-P.uploadDate;case"date_desc":return P.uploadDate-H.uploadDate;case"name_asc":return(H.name||"").localeCompare(P.name||"");case"name_desc":return(P.name||"").localeCompare(H.name||"");case"size_asc":return(H.fileSize||0)-(P.fileSize||0);case"size_desc":return(P.fileSize||0)-(H.fileSize||0);default:return 0}}),N=e.reduce((H,P)=>P.url&&P.url.startsWith("data:")?H+ln(P.url):H,0),Y=K.quota||X,gA=N/Y*100,Z=Lf(),q=5242880;b.useEffect(()=>{const H=O.current;if(!H)return;const P=E=>{E.preventDefault(),E.stopPropagation()},B=E=>{E.preventDefault(),E.stopPropagation(),T.current++,E.dataTransfer.items&&E.dataTransfer.items.length>0&&U(!0)},C=E=>{E.preventDefault(),E.stopPropagation(),T.current--,T.current===0&&U(!1)},h=async E=>{E.preventDefault(),E.stopPropagation(),U(!1),T.current=0;const D=Array.from(E.dataTransfer.files);D.length!==0&&(D.length>1?(o(D),a(!0)):await $(D,""))};return H.ondragover=P,H.ondragenter=B,H.ondragleave=C,H.ondrop=h,()=>{H&&(H.ondragover=null,H.ondragenter=null,H.ondragleave=null,H.ondrop=null)}},[e.length,$]);const tA=_.filter(H=>H&&Ft(H.url)).length>0;return g?s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"loaderHolder",children:[s.jsx("div",{id:"loader"}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.loading")})]})}):u?s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"loaderHolder",children:[s.jsx("div",{id:"loader"}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.uploading",{current:v.current,total:v.total})}),s.jsxs("span",{className:"subtitle",children:[Math.round(v.current/v.total*100),"%"]})]})}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:`dropzone ${x?"dragging":""}`,ref:O,style:x?{outline:"2px dashed #ff5c25",outlineOffset:"-2px",backgroundColor:"rgba(255, 92, 37, 0.1)",transition:"all 0.2s ease"}:{},children:[s.jsxs("div",{className:"imagesTopBar",children:[s.jsxs("div",{className:"imagesTopBarTitle",children:[s.jsx(Yn,{}),s.jsxs("div",{children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.custom_title")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.custom_description")})]})]}),s.jsx("div",{className:"topbarbuttons",children:s.jsx(pA,{type:"settings",onClick:cA,icon:s.jsx(qi,{}),label:f.getMessage("modals.main.settings.sections.background.source.upload")})})]}),s.jsxs("div",{className:"imagesControlBar",children:[s.jsxs("div",{className:"controlBarLeft",children:[s.jsxs("span",{className:"image-count",children:[e.length," ",e.length===1?"image":"images",s.jsxs("span",{className:"storage-info",children:[" ","· ",Qe(N)," / ",Qe(Y),gA>80&&navigator.storage&&navigator.storage.persist&&s.jsx(un,{title:"Request persistent storage to prevent browser from automatically clearing your images",children:s.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(H){console.error("Storage request error:",H),RA("Could not request persistent storage")}},children:"Protect images"})})]})]}),s.jsx("span",{className:"selection-separator",children:"·"}),F.size>0?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"selected-count",children:[F.size," selected"]}),s.jsx("button",{className:"delete-link",onClick:fA,children:"Delete"}),F.size<e.length&&s.jsx("button",{className:"select-all-link",onClick:()=>{const H=new Set(e.map((P,B)=>B));L(H)},children:"Select all"}),F.size===e.length&&s.jsx("button",{className:"select-all-link",onClick:()=>L(new Set),children:"Deselect all"})]}):e.length>0&&s.jsx("button",{className:"select-all-link",onClick:()=>{const H=new Set(e.map((P,B)=>B));L(H)},children:"Select all"})]}),s.jsx("div",{className:"controlBarRight",children:s.jsx(KA,{name:"customImageSort",category:"customImageSort",onChange:z,items:[{value:"date_desc",text:f.getMessage("modals.main.settings.sections.background.source.sort.date_newest")},{value:"date_asc",text:f.getMessage("modals.main.settings.sections.background.source.sort.date_oldest")},{value:"name_asc",text:f.getMessage("modals.main.settings.sections.background.source.sort.name_asc")},{value:"name_desc",text:f.getMessage("modals.main.settings.sections.background.source.sort.name_desc")},{value:"size_asc",text:f.getMessage("modals.main.settings.sections.background.source.sort.size_small")},{value:"size_desc",text:f.getMessage("modals.main.settings.sections.background.source.sort.size_large")}]})})]}),s.jsx("div",{className:"dropzone-content",children:_.length>0?s.jsx("div",{className:`images-grid ${F.size>0?"selection-mode":""}`,children:_.map((H,P)=>{const B=e.findIndex(h=>h===H),C=H&&Ft(H.url);return s.jsxs("div",{className:"image-card",onClick:h=>{h.target.closest(".image-nav-buttons")||sA(B)},children:[s.jsx("div",{className:"image-checkbox",children:s.jsx("input",{type:"checkbox",checked:F.has(B),onChange:()=>sA(B)})}),s.jsxs("div",{className:"image-preview",children:[H.blurHash&&!C&&(()=>{const h=$i(H.blurHash,32,32);return h?s.jsx("div",{className:"blur-placeholder",style:{backgroundImage:`url(${h})`,filter:"blur(20px)",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0}}):null})(),C?s.jsx("div",{className:"video-icon-wrapper",children:s.jsx(Ao,{className:"customvideoicon"})}):s.jsx("img",{alt:H.name||"Custom background",src:H.url,loading:"lazy",style:{position:"relative",zIndex:1}}),s.jsxs("div",{className:"image-nav-buttons",children:[s.jsx("button",{className:"nav-button nav-prev",onClick:()=>{if(P>0){const h=_[P-1];vA.emit("refresh","background",h.url)}},disabled:P===0,children:s.jsx(eo,{})}),s.jsx("button",{className:"nav-button nav-next",onClick:()=>{if(P<_.length-1){const h=_[P+1];vA.emit("refresh","background",h.url)}},disabled:P===_.length-1,children:s.jsx(to,{})})]})]}),s.jsxs("div",{className:"image-metadata",children:[s.jsx("span",{className:"image-name",title:H.name,children:H.name||"Unnamed"}),s.jsxs("div",{className:"image-details",children:[H.dimensions&&s.jsxs("span",{className:"detail",children:[H.dimensions.width," × ",H.dimensions.height]}),H.fileSize&&s.jsx("span",{className:"detail",children:Qe(H.fileSize)}),H.folder&&s.jsx("span",{className:"detail folder-tag",children:H.folder})]})]}),s.jsx(un,{title:f.getMessage("modals.main.settings.sections.background.source.remove"),children:s.jsx("button",{className:"delete-button",onClick:()=>AA("remove",B),children:s.jsx(Bt,{})})})]},B)})}):s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Yn,{}),s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.drop_to_upload")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.formats",{list:"jpeg, png, webp, webm, gif, mp4, webm, ogg"})}),s.jsx(pA,{type:"settings",onClick:cA,icon:s.jsx(ro,{}),label:f.getMessage("modals.main.settings.sections.background.source.select")})]})})})]}),s.jsx(bs,{id:"bg-input",accept:"image/jpeg, image/png, image/webp, image/webm, image/gif, video/mp4, video/webm, video/ogg",multiple:!0,loadFunction:async H=>{await S(H)}}),tA&&s.jsxs(s.Fragment,{children:[s.jsx(mA,{name:"backgroundVideoLoop",text:f.getMessage("modals.main.settings.sections.background.source.loop_video")}),s.jsx(mA,{name:"backgroundVideoMute",text:f.getMessage("modals.main.settings.sections.background.source.mute_video")})]}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>t(!1),isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(Mf,{modalClose:iA,urlError:l,modalCloseOnly:()=>t(!1)})}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>{a(!1),o([])},isOpen:n,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(Kf,{files:i,onConfirm:eA,onCancel:()=>{a(!1),o([])}})}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>I(!1),isOpen:w,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsxs("div",{className:"smallModal",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.storage_info")}),s.jsx("button",{className:"closeModal",onClick:()=>I(!1),children:s.jsx(Bt,{})})]}),s.jsxs("div",{style:{padding:"20px"},children:[s.jsx("p",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.storage_description")}),s.jsxs("div",{style:{marginTop:"20px"},children:[s.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Custom Backgrounds"}),s.jsxs("p",{className:"subtitle",children:[Qe(N)," / ",Qe(Y)," (",Math.round(gA),"%)"]})]}),s.jsxs("div",{style:{marginTop:"15px"},children:[s.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Total localStorage Usage"}),s.jsxs("p",{className:"subtitle",children:[Qe(Z)," / ",Qe(q)," (",Math.round(Z/q*100),"%)"]}),s.jsx("p",{className:"subtitle",style:{marginTop:"8px",fontSize:"12px",opacity:.7},children:"Includes all Mue settings and custom images"})]})]}),s.jsx("div",{className:"resetFooter",children:s.jsx(pA,{type:"settings",onClick:()=>I(!1),label:f.getMessage("modals.main.settings.buttons.close")})})]})})]})});Li.displayName="CustomSettings";const Tf=({usingImage:e})=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.display"),subtitle:f.getMessage("modals.main.settings.sections.background.display_subtitle")}),s.jsxs(lA,{children:[s.jsx(mA,{name:"bgtransition",text:f.getMessage("modals.main.settings.sections.background.transition"),element:".other",disabled:!e}),s.jsx(mA,{name:"photoInformation",text:f.getMessage("modals.main.settings.sections.background.photo_information"),element:".other"}),s.jsx(mA,{name:"photoMap",text:f.getMessage("modals.main.settings.sections.background.show_map"),element:".other",disabled:!e})]})]});f.getMessage("modals.main.settings.sections.background.source.quality.original"),f.getMessage("modals.main.settings.sections.background.source.quality.high"),f.getMessage("modals.main.settings.sections.background.source.quality.normal"),f.getMessage("modals.main.settings.sections.background.source.quality.datasaver");const Df=[{value:"none",text:f.getMessage("modals.main.settings.sections.appearance.navbar.refresh_options.none")},{value:"grayscale",text:f.getMessage("modals.main.settings.sections.background.effects.filters.grayscale")},{value:"sepia",text:f.getMessage("modals.main.settings.sections.background.effects.filters.sepia")},{value:"invert",text:f.getMessage("modals.main.settings.sections.background.effects.filters.invert")},{value:"saturate",text:f.getMessage("modals.main.settings.sections.background.effects.filters.saturate")},{value:"contrast",text:f.getMessage("modals.main.settings.sections.background.effects.filters.contrast")}];function ki(){return[{value:"api",text:f.getMessage("wb.settings_bundled_photos")},{value:"custom",text:f.getMessage("modals.main.settings.sections.background.type.custom_image")},{value:"colour",text:f.getMessage("modals.main.settings.sections.background.type.custom_colour")},{value:"random_colour",text:f.getMessage("modals.main.settings.sections.background.type.random_colour")},{value:"random_gradient",text:f.getMessage("modals.main.settings.sections.background.type.random_gradient")}]}const Of=({backgroundFilter:e,onFilterChange:A})=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:f.getMessage("modals.main.settings.sections.background.effects.subtitle")}),s.jsxs(lA,{children:[s.jsx(at,{title:f.getMessage("modals.main.settings.sections.background.effects.blur"),name:"blur",min:"0",max:"100",default:"0",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage"}),s.jsx(at,{title:f.getMessage("modals.main.settings.sections.background.effects.brightness"),name:"brightness",min:"0",max:"100",default:"100",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage"}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.background.effects.filters.title"),name:"backgroundFilter",onChange:A,category:"backgroundeffect",element:"#backgroundImage",items:Df}),e!=="none"&&s.jsx(at,{title:f.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"})]})]}),Rf=({backgroundType:e,onTypeChange:A})=>s.jsxs(rA,{final:e==="random_colour"||e==="random_gradient",children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.source.title"),subtitle:f.getMessage("modals.main.settings.sections.background.source.subtitle")}),s.jsx(lA,{children:s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:A,category:"background",items:ki()})})]}),as=({icon:e,title:A,subtitle:r,onClick:t,action:n})=>s.jsxs("div",{className:"moreSettings",onClick:t,children:[s.jsxs("div",{className:"left",children:[s.jsx(e,{}),s.jsxs("div",{className:"content",children:[s.jsx("span",{className:"title",children:A}),s.jsx("span",{className:"subtitle",children:r})]})]}),s.jsx("div",{className:"action",children:n||s.jsx(is,{})})]}),Mi=b.memo(({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(localStorage.getItem("backgroundType")||"api"),[a,i]=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 s.jsx(Li,{});case"colour":return s.jsx(Ff,{});default:return null}},c=t!=="colour"&&t!=="random_colour"&&t!=="random_gradient",g=t==="api"||t==="custom",d=()=>e==="effects"?s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:f.getMessage("modals.main.settings.sections.background.effects.title"),goBack:()=>A(null,r)}):e==="source"?s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:f.getMessage("modals.main.settings.sections.background.source.title"),goBack:()=>A(null,r)}):s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.background.title"),setting:"background",category:"background",element:"#backgroundImage"});return s.jsxs(s.Fragment,{children:[d(),!e&&s.jsxs(s.Fragment,{children:[s.jsx(as,{icon:io,title:f.getMessage("modals.main.settings.sections.background.source.title"),subtitle:f.getMessage("modals.main.settings.sections.background.source.subtitle"),onClick:()=>A("source",r),action:s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:u=>{n(u),u==="custom"&&vA.emit("refresh","background")},category:"background",items:ki()})}),g&&s.jsx(as,{icon:oo,title:f.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:f.getMessage("modals.main.settings.sections.background.effects.subtitle"),onClick:()=>A("effects",r)})]}),!e&&g&&s.jsx(Tf,{usingImage:c}),e==="source"&&s.jsxs(s.Fragment,{children:[s.jsx(Rf,{backgroundType:t,onTypeChange:n}),l()]}),g&&e==="effects"&&s.jsx(Of,{backgroundFilter:a,onFilterChange:u=>i(u)})]})});Mi.displayName="BackgroundOptions";function Nf(){const e=[{value:"ask",text:f.getMessage("wb.ask")},{value:"act",text:f.getMessage("wb.act")},...lo()?[{value:"search",text:f.getMessage("wb.search")}]:[]];return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage("wb.settings_taskbox"),setting:"taskBox",category:"widgets"}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("wb.settings_default_mode"),subtitle:f.getMessage("wb.settings_taskbox_sub")}),s.jsx(lA,{children:s.jsx(KA,{name:"taskBoxMode",category:"widgets",items:e})})]}),s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("wb.settings_recent")}),s.jsx(lA,{children:s.jsx(gs,{name:"recentChats",element:".other"})})]})]})}const _f=["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 Gf({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const[t,n]=b.useState(!1),a="modals.main.settings.sections.advanced",i=()=>localStorage.getItem("welcomePreview")!=="true"?s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.data"),subtitle:f.getMessage("modals.main.settings.sections.advanced.data_description")}),s.jsxs("div",{className:"resetDataButtonsLayout",children:[s.jsx(pA,{onClick:()=>n(!0),icon:s.jsx(uo,{}),label:f.getMessage("modals.main.settings.buttons.reset")}),s.jsx(pA,{onClick:()=>Qo(),icon:s.jsx(Bo,{}),label:f.getMessage("modals.main.settings.buttons.export")}),s.jsx(pA,{onClick:()=>document.getElementById("file-input").click(),icon:s.jsx(fo,{}),label:f.getMessage("modals.main.settings.buttons.import")})]}),s.jsx(bs,{id:"file-input",accept:"application/json",type:"settings",loadFunction:c=>mo(c)})]}):s.jsx("div",{className:"emptyItems",children:s.jsx("div",{className:"emptyMessage",children:s.jsxs("div",{className:"loaderHolder",children:[s.jsx(ho,{}),s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.title")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.description")})]})})}),o=e==="data";let l;return o?l=s.jsx(TA,{title:f.getMessage(`${a}.title`),secondaryTitle:f.getMessage(`${a}.data`),goBack:()=>A(null,r),report:!1}):l=s.jsx(TA,{title:f.getMessage(`${a}.title`),report:!1}),s.jsxs(s.Fragment,{children:[l,o?s.jsxs(s.Fragment,{children:[s.jsx(i,{}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>n(!1),isOpen:t,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(co,{modalClose:()=>n(!1)})})]}):s.jsxs(s.Fragment,{children:[s.jsx(On,{title:f.getMessage(`${a}.data`),subtitle:f.getMessage(`${a}.data_subtitle`),onClick:()=>A("data",r),icon:s.jsx(go,{})}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.timezone.title"),subtitle:f.getMessage("modals.main.settings.sections.advanced.timezone.subtitle")}),s.jsx(lA,{children:s.jsx(KA,{name:"timezone",category:"timezone",items:[{value:"auto",text:f.getMessage("modals.main.settings.sections.advanced.timezone.automatic")},..._f.map(c=>({value:c,text:c}))]})})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.tab_name"),subtitle:f.getMessage("modals.main.settings.sections.advanced.tab_name_subtitle")}),s.jsx(lA,{children:s.jsx(tr,{name:"tabName",default:f.getMessage("tabname"),category:"other"})})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.custom_css"),subtitle:f.getMessage("modals.main.settings.sections.advanced.custom_css_subtitle")}),s.jsx(lA,{children:s.jsx(tr,{name:"customcss",textarea:!0,category:"other",customcss:!0})})]})]})]})}function jf({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const t=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.theme.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.theme.description")}),s.jsx(lA,{children:s.jsx(gn,{name:"theme",options:[{name:f.getMessage("modals.main.settings.sections.appearance.theme.auto"),value:"auto"},{name:f.getMessage("modals.main.settings.sections.appearance.theme.light"),value:"light"},{name:f.getMessage("modals.main.settings.sections.appearance.theme.dark"),value:"dark"}],category:"other"})})]}),n=()=>{const c="modals.main.settings.sections.appearance.font.weight";return s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.font.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.font.description")}),s.jsxs(lA,{children:[s.jsx(tr,{title:f.getMessage("modals.main.settings.sections.appearance.font.custom"),name:"font",upperCaseFirst:!0,category:"other"}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.appearance.font.weight.title"),name:"fontweight",category:"other",items:[{value:"100",text:f.getMessage(c+".thin")},{value:"200",text:f.getMessage(c+".extra_light")},{value:"300",text:f.getMessage(c+".light")},{value:"400",text:f.getMessage(c+".normal")},{value:"500",text:f.getMessage(c+".medium")},{value:"600",text:f.getMessage(c+".semi_bold")},{value:"700",text:f.getMessage(c+".bold")},{value:"800",text:f.getMessage(c+".extra_bold")}]}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.appearance.font.style.title"),name:"fontstyle",category:"other",items:[{value:"normal",text:f.getMessage("modals.main.settings.sections.appearance.font.style.normal")},{value:"italic",text:f.getMessage("modals.main.settings.sections.appearance.font.style.italic")},{value:"oblique",text:f.getMessage("modals.main.settings.sections.appearance.font.style.oblique")}]})]})]})},a=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.style.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.style.description")}),s.jsx(lA,{children:s.jsx(gn,{name:"widgetStyle",element:".other",options:[{name:f.getMessage("modals.main.settings.sections.appearance.style.legacy"),value:"legacy"},{name:f.getMessage("modals.main.settings.sections.appearance.style.new"),value:"new"}],category:"widgets"})})]}),i=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.accessibility.description")}),s.jsxs(lA,{children:[s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.title"),name:"textBorder",category:"other",items:[{value:"new",text:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.new")},{value:"true",text:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.old")},{value:"none",text:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.none")}]}),s.jsx(mA,{text:f.getMessage("modals.main.settings.sections.appearance.accessibility.animations"),name:"animations",category:"other"}),s.jsx(at,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.toast_duration"),name:"toastDisplayTime",default:"2500",step:"100",min:"500",max:"5000",marks:st.toast,display:" "+f.getMessage("modals.main.settings.sections.appearance.accessibility.milliseconds")})]})]}),o=e==="accessibility";let l;return o?l=s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.appearance.title"),secondaryTitle:f.getMessage("modals.main.settings.sections.appearance.accessibility.title"),goBack:()=>A(null,r),report:!1}):l=s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.appearance.title"),report:!1}),s.jsxs(s.Fragment,{children:[l,o?s.jsx(i,{}):s.jsxs(s.Fragment,{children:[s.jsx(On,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.accessibility.description"),icon:s.jsx(wo,{}),onClick:()=>A("accessibility",r)}),s.jsx(t,{}),s.jsx(n,{}),s.jsx(a,{})]})]})}const Vf=b.memo(jf),Pf=`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 Xf(){const e=Object.keys(po),{MUE_REPO_URL:A,MUE_VERSION:r,REPO_URL:t,WEBSITE_URL:n}=f.constants;return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage("wb.settings_credits")}),s.jsx(rA,{children:s.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."})}),s.jsx(rA,{children:s.jsx(nA,{title:`Based on Mue ${r}`,subtitle:s.jsxs(s.Fragment,{children:["Derived from ",s.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."]})})}),s.jsx(rA,{children:s.jsx(nA,{title:f.getMessage("wb.settings_bundled_photos"),subtitle:`${e.join(", ")}. Offline images shipped with Mue (Unsplash, Pexels and Pixabay).`})}),s.jsx(rA,{children:s.jsx(nA,{title:"Fonts and icons",subtitle:"Inter, Lexend Deca and Montserrat (SIL Open Font License); Material Design icons via react-icons."})}),s.jsx(rA,{final:!0,children:s.jsx(nA,{title:"Mue license",subtitle:s.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:"0.75rem"},children:Pf})})}),s.jsxs("p",{style:{opacity:.7,fontSize:"0.85rem"},children:[s.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:n.replace("https://","")})," · ",s.jsx("a",{href:t,target:"_blank",rel:"noreferrer",children:"GitHub"})]})]})}function Jf(){return s.jsx("span",{className:"greeting preview",children:"Good Morning"})}const Wf=b.memo(Jf),Yf=b.lazy(()=>Co(()=>import("./index-C08TLPUo.js"),__vite__mapDeps([0,1,2]),import.meta.url));function Zf(){return localStorage.getItem("timeType")==="analogue"?s.jsx(b.Suspense,{fallback:s.jsx(s.Fragment,{}),children:s.jsx("div",{className:"clockBackground",children:s.jsx(Yf,{className:"analogclock clock-container",value:"2022-10-07T17:00:00+00:00",size:50})})}):localStorage.getItem("timeType")==="percentageComplete"?s.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"68%"}):localStorage.getItem("timeType")==="verticalClock"?s.jsxs("span",{className:"vertical-clock clock-container",style:{fontSize:"30px"},children:[s.jsx("div",{className:"hour",children:"10"}),s.jsx("div",{className:"minute",children:"23"})]}):s.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"10:24"})}const zf=b.memo(Zf);function qf(e){return Dn({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 $f(e){return Dn({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 Ah(e){return Dn({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 eh(){return s.jsx("div",{className:"quickLinksSkeleton",children:s.jsxs("div",{className:"circles",children:[s.jsx("div",{children:s.jsx(qf,{})}),s.jsx("div",{children:s.jsx($f,{})}),s.jsx("div",{children:s.jsx(Ah,{})})]})})}const th=b.memo(eh);function rh(){return s.jsx("span",{className:"date",children:"Thursday January 1st"})}const nh=b.memo(rh);function ah(){return s.jsx("h2",{className:"message",children:s.jsxs("span",{children:["Message",s.jsx("br",{})]})})}const sh=b.memo(ah),ih={greeting:f.getMessage("modals.main.settings.sections.greeting.title"),time:f.getMessage("modals.main.settings.sections.time.title"),quicklinks:f.getMessage("modals.main.settings.sections.quicklinks.title"),date:f.getMessage("modals.main.settings.sections.date.title"),message:f.getMessage("modals.main.settings.sections.message.title")},oh=({id:e})=>{const{attributes:A,listeners:r,setNodeRef:t,transform:n,transition:a}=Bs({id:e}),i={transform:ds.Transform.toString(n),transition:a};return s.jsxs("li",{ref:t,style:i,...A,...r,className:"sortableItem",children:[ih[e],s.jsx(us,{})]})},lh=()=>{const[e,A]=b.useState(()=>JSON.parse(localStorage.getItem("order"))||["greeting","time","quicklinks","date","message"]),r=fs(rr(ps),rr(ws,{coordinateGetter:hs})),t=i=>{const{active:o,over:l}=i;o.id!==l.id&&A(c=>{const g=c.indexOf(o.id),d=c.indexOf(l.id);return Us(c,g,d)})},n=i=>i==="quicklinks"?localStorage.getItem("quicklinksenabled")==="true":localStorage.getItem(i)==="true",a=i=>{switch(i){case"greeting":return s.jsx(Wf,{});case"time":return s.jsx(zf,{});case"quicklinks":return s.jsx(th,{});case"date":return s.jsx(nh,{});case"message":return s.jsx(sh,{});default:return null}};return b.useEffect(()=>{localStorage.setItem("order",JSON.stringify(e)),f.stats.postEvent("setting","Widget order"),vA.emit("refresh","widgets")},[e]),s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"mainTitle",children:f.getMessage("modals.main.marketplace.product.overview")}),s.jsxs("div",{className:"overviewGrid",children:[s.jsxs("div",{children:[s.jsx("span",{className:"title",children:f.getMessage("modals.welcome.buttons.preview")}),s.jsx("div",{className:"tabPreview",children:s.jsx("div",{className:"previewItem",style:{maxWidth:"50%"},children:e.map((i,o)=>n(i)?s.jsx("div",{className:"previewItem",children:a(i)},`item-${i}`):null)})})]}),s.jsxs("div",{children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.order.title")}),s.jsx(Cs,{sensors:r,collisionDetection:Qs,onDragEnd:t,children:s.jsx(ms,{items:e,strategy:vs,children:s.jsx("ul",{className:"sortableContainer",children:e.map(i=>n(i)?s.jsx(oh,{id:i},i):null)})})})]})]})]})},ss=[{label:"modals.main.marketplace.product.overview",name:"order",component:lh},{label:"modals.main.settings.sections.appearance.navbar.title",name:"navbar",component:ko},{label:"modals.main.settings.sections.greeting.title",name:"greeting",component:Mo},{label:"modals.main.settings.sections.time.title",name:"time",component:Ko},{label:"modals.main.settings.sections.quicklinks.title",name:"quicklinks",component:No},{label:"modals.main.settings.sections.date.title",name:"date",component:To},{label:"modals.main.settings.sections.message.title",name:"message",component:_o},{label:"modals.main.settings.sections.background.title",name:"background",component:Mi},{label:"wb.settings_taskbox",name:"taskbox",component:Nf},{label:"modals.main.settings.sections.appearance.title",name:"appearance",component:Vf},{label:"modals.main.settings.sections.advanced.title",name:"advanced",component:Gf},{label:"wb.settings_credits",name:"credits",component:Xf}];function ch(e){const A=pt(),r=b.useMemo(()=>ss.map(t=>({...t,translatedLabel:A(t.label)})),[A]);return s.jsx(Io,{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:ss,children:r.map(({label:t,name:n,component:a,translatedLabel:i})=>s.jsx("div",{label:i,name:n,children:s.jsx(a,{currentSubSection:e.currentSubSection,onSubSectionChange:e.onSubSectionChange,sectionName:n})},n))})}const uh=b.memo(ch);export{uh as default};diff --git a/src/firefox/newtab/assets/Settings-BiXm1rpf.js b/src/firefox/newtab/assets/Settings-BiXm1rpf.jsnew file mode 100644index 000000000..e54afd867--- /dev/null+++ b/src/firefox/newtab/assets/Settings-BiXm1rpf.js@@ -0,0 +1,53 @@+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BXa4CzFe.js","./index-epcgRnvP.js","./index-ByIwaINw.css"])))=>i.map(i=>d[i]);+import{s as Ti,v as f,y as RA,r as b,j as s,B as pA,M as Di,a as Oi,b as Ri,E as vA,S as at,R as v,c as os,u as Ct,g as Ni,D as _i,d as er,e as fe,f as Jn,T as Wn,q as ls,h as Gi,i as cs,k as Bt,l as gn,m as Re,n as gs,C as mA,o as KA,p as ji,t as Vi,w as Pi,x as Xi,z as Sr,A as us,F as tr,G as rr,H as un,I as Bs,J as ds,K as fs,L as Ji,N as hs,O as nr,P as ws,Q as ps,U as Cs,V as Qs,W as ms,X as vs,Y as Us,Z as Wi,_ as Fs,$ as Yn,a0 as Yi,a1 as bs,a2 as Ft,a3 as Zi,a4 as Bn,a5 as qi,a6 as Lr,a7 as xe,a8 as zi,a9 as bt,aa as Zn,ab as $i,ac as Ao,ad as eo,ae as to,af as ro,ag as no,ah as Es,ai as ao,aj as so,ak as io,al as qn,am as oo,an as lo,ao as co,ap as go,aq as uo,ar as Bo,as as fo,at as ho,au as wo,av as po,aw as Co,ax as Qo,ay as On}from"./index-epcgRnvP.js";function mo(){const e={};Object.keys(localStorage).forEach(n=>{e[n]=localStorage.getItem(n)});const A=new Date,t=`mue_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`;Ti(e,t),f.stats.postEvent("tab","Settings exported")}function vo(e,A=!1){const r=JSON.parse(e);Object.keys(r).forEach(t=>{localStorage.setItem(t,r[t])}),RA(f.getMessage("toasts.imported")),A||f.stats.postEvent("tab","Settings imported")}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 i=localStorage.getItem(e.setting)==="true";if(localStorage.setItem(e.setting,!i),r(!i),f.stats.postEvent("setting",`${e.name} ${A===!0?"enabled":"disabled"}`),vA.emit("toggle",e.setting),e.element&&!document.querySelector(e.element))return document.querySelector(".reminder-info").style.display="flex",localStorage.setItem("showReminder",!0);vA.emit("refresh",e.category)},n=()=>s.jsx(pA,{type:"settings",onClick:t,icon:A?s.jsx(Di,{}):s.jsx(Oi,{}),label:A?"Hide":"Show"}),a=()=>s.jsx(pA,{type:"settings",onClick:()=>window.open(f.constants.BUG_REPORT+e.title.split(" ").join("+"),"_blank"),icon:s.jsx(Ri,{}),label:f.getMessage("modals.main.settings.sections.header.report_issue")});return s.jsxs("div",{className:"modalHeader",children:[s.jsx("span",{className:"mainTitle",children:e.secondaryTitle||e.title}),s.jsxs("div",{className:"headerActions",children:[e.visibilityToggle&&s.jsx(n,{}),e.report!==!1&&s.jsx(a,{}),e.children]})]})}function rA(e){const A=`${e.final?"settingsRow settingsNoBorder":"settingsRow"} ${e.inactive?"preferencesInactive":""}`;return s.jsx("div",{className:A,children:e.children})}function nA(e){return s.jsxs("div",{className:"content",children:[s.jsx("span",{className:"title",children:e.title}),s.jsx("span",{className:"subtitle",children:e.subtitle})]})}function lA(e){return s.jsx("div",{className:"action",children:e.children})}const Uo=[{value:10,label:"0.1x"},{value:100,label:"1x"},{value:200,label:"2x"},{value:400,label:"4x"}],Fo=[{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"}],bo=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"},{value:100,label:"100%"}],st={zoom:Uo,toast:Fo,background:bo},Qt=({children:e,...A})=>{const[r,t]=b.useState(localStorage.getItem(A.setting)==="true");return vA.on("toggle",n=>{n===A.setting&&t(!r)}),s.jsxs("div",{className:r?"preferences":"preferencesInactive",children:[A.zoomSetting&&s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.widget_zoom"),subtitle:f.getMessage("modals.main.settings.sections.header.size")}),s.jsx(lA,{children:s.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 s.jsxs("div",{className:"moreSettings",onClick:t,children:[s.jsxs("div",{className:"left",children:[r,s.jsxs("div",{className:"content",children:[s.jsx("span",{className:"title",children:e}),s.jsx("span",{className:"subtitle",children:A})]})]}),s.jsx("div",{className:"action",children:v.Children.count(n)===0?s.jsx(os,{}):n})]})}function Eo({label:e,currentTab:A,onClick:r,navbarTab:t}){const n=Ct(),[a,i]=b.useState(!0);b.useEffect(()=>{i(localStorage.getItem("experimental")!=="false")},[]);const o=Ni(e,{getMessage:n}),l=_i.some(p=>n(p)===e),d=`${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?s.jsx("hr",{}):s.jsxs(s.Fragment,{children:[s.jsxs("button",{className:d,onClick:()=>r(e),children:[o&&s.jsx(o,{})," ",s.jsx("span",{children:e})]}),l&&s.jsx("hr",{})]})}const yo=b.memo(Eo),xo=({isVisible:e,onHide:A})=>e?s.jsxs("div",{className:"reminder-info",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.reminder.title")}),s.jsx("span",{className:"closeModal",onClick:A,children:s.jsx(er,{})})]}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.reminder.message")}),s.jsxs("button",{onClick:()=>window.location.reload(),children:[s.jsx(fe,{}),f.getMessage("modals.main.error_boundary.refresh")]})]}):null;class Io 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(f.constants.BUG_REPORT,"_blank","noopener,noreferrer"),this.setState({showReport:!1})}render(){return this.state.error?s.jsx("div",{className:"emptyItems",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Jn,{}),s.jsx("span",{className:"title",children:f.getMessage("modals.main.error_boundary.title")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.error_boundary.message")}),s.jsxs("div",{className:"buttonsRow",children:[this.state.showReport?s.jsx(pA,{type:"settings",icon:s.jsx(Jn,{}),label:f.getMessage("modals.main.error_boundary.report_error"),onClick:()=>this.reportError()}):s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.error_boundary.sent")}),s.jsx(pA,{type:"settings",icon:s.jsx(fe,{}),label:f.getMessage("modals.main.error_boundary.refresh"),onClick:()=>window.location.reload()})]})]})}):this.props.children}}const Ho=({children:e,navbar:A=!1,currentTab:r,onSectionChange:t,resetToFirst:n,deepLinkData:a,navigationTrigger:i,sections:o})=>{const l=Ct(),g=(()=>{if(a?.section&&o){const y=o.find(w=>w.name===a.section);if(y)return{label:l(y.label),name:y.name}}return{label:e[0]?.props.label,name:e[0]?.props.name}})(),[d,u]=b.useState(g.label),[p,m]=b.useState(g.name),[Q,x]=b.useState(localStorage.getItem("showReminder")==="true"),U=b.useRef(null),F=(y,w)=>{w!==p&&f.stats.postEvent("tab",`Opened ${w}`),u(y),m(w),U.current&&(U.current.scrollTop=0),t&&t(y,w)};b.useEffect(()=>{t&&d&&t(d,p)},[]),b.useEffect(()=>{if(o&&p){const y=o.find(w=>w.name===p);if(y){const w=l(y.label);u(w)}}},[l,o,p]),b.useEffect(()=>{if(i?.type==="settings-section"&&o){const y=o.find(w=>w.name===i.data);if(y){const w=l(y.label);u(w),m(y.name),U.current&&(U.current.scrollTop=0)}}},[i,o,l]),b.useEffect(()=>{n&&(u(e[0]?.props.label),m(e[0]?.props.name),U.current&&(U.current.scrollTop=0),t&&t(e[0]?.props.label,e[0]?.props.name))},[n]);const L=()=>{localStorage.setItem("showReminder","false"),x(!1)},k=r===Wn.SETTINGS||r===Wn.DISCOVER;return s.jsxs("div",{style:{display:"flex",width:"100%",height:"100%",overflow:"hidden"},children:[k?s.jsxs("div",{className:"modalSidebar",children:[e.map((y,w)=>s.jsx(yo,{currentTab:d,label:y.props.label,onClick:I=>F(I,y.props.name),navbarTab:A},w)),s.jsx(xo,{isVisible:Q,onHide:L})]}):null,s.jsx("div",{className:"modalTabContent",ref:U,children:e.map((y,w)=>y.props.label!==d?null:s.jsx(Io,{children:y.props.children},`error-boundary-${w}`))})]})};async function ar(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 dt(e){return/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(e)}function sr(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 dt(A)?A:null}const So=({item:e,deleteLink:A,startEditLink:r,draggable:t=!1,onDragStart:n,onDragOver:a,onDrop:i,onDragEnd:o,isDragOver:l=!1,isDragging:c=!1})=>{let g,d=null;if(localStorage.getItem("quicklinksnewtab")==="true"&&(g="_blank",d="noopener noreferrer"),localStorage.getItem("quicklinksText")==="true")return s.jsx("a",{className:"quicklinkstext",onContextMenu:Q=>A(e.key,Q),href:e.url,target:g,rel:d,draggable:!1,children:e.name});const p=e.icon||ls(e.url,e.name),m=`messageMap ${c?"dragging":""} ${l?"drag-over":""}`;return s.jsxs("div",{className:m,draggable:t,onDragStart:Q=>n&&n(Q,e.key),onDragOver:Q=>a&&a(Q,e.key),onDrop:Q=>i&&i(Q,e.key),onDragEnd:Q=>o&&o(Q),children:[s.jsx("div",{className:"dragHandle","aria-hidden":!0,children:s.jsx(Gi,{})}),s.jsx("div",{className:"icon",children:s.jsx("img",{src:p,alt:e.name,draggable:!1,style:{height:"30px",width:"30px"}})}),s.jsxs("div",{className:"messageText",children:[s.jsx("div",{className:"title",children:e.name}),s.jsx("div",{className:"subtitle",children:s.jsx("a",{className:"quicklinknostyle",target:"_blank",rel:"noopener noreferrer",href:e.url,children:e.url})})]}),s.jsx("div",{children:s.jsxs("div",{className:"messageAction",children:[s.jsx(pA,{type:"settings",onClick:()=>r(e),icon:s.jsx(cs,{}),label:f.getMessage("modals.main.settings.sections.quicklinks.edit")}),s.jsx(pA,{type:"settings",onClick:Q=>A(e.key,Q),icon:s.jsx(Bt,{}),label:f.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]})};function Lo({appsEnabled:e}){const A=Ct(),[r,t]=b.useState({newLink:!1,edit:!1,items:JSON.parse(localStorage.getItem("applinks")),urlError:"",iconError:"",editData:null}),n=async(l,c,g)=>{const d=JSON.parse(localStorage.getItem("applinks"));if(c=sr(c),!c)return t(u=>({...u,urlError:A("widgets.quicklinks.url_error")}));if(g.length>0&&dt(g)===!1)return t(u=>({...u,iconError:A("widgets.quicklinks.icon_error")}));d.push({name:l||await ar(c),url:c,icon:g||"",key:Math.random().toString(36).substring(7)+1}),localStorage.setItem("applinks",JSON.stringify(d)),t({newLink:!1,edit:!1,items:d,urlError:"",iconError:""}),vA.emit("refresh","navbar"),f.stats.postEvent("feature","App link add")},a=l=>{t(c=>({...c,edit:!0,editData:l}))},i=async(l,c,g,d)=>{const u=JSON.parse(localStorage.getItem("applinks")),p=u.find(m=>m.key===l.key);if(p){if(g=sr(g),!g)return t(m=>({...m,urlError:A("widgets.quicklinks.url_error")}));if(d.length>0&&dt(d)===!1)return t(m=>({...m,iconError:A("widgets.quicklinks.icon_error")}));p.name=c||await ar(g),p.url=g,p.icon=d||"",localStorage.setItem("applinks",JSON.stringify(u)),t(m=>({...m,items:u,edit:!1,newLink:!1})),vA.emit("refresh","navbar")}},o=(l,c)=>{c.preventDefault();const g=JSON.parse(localStorage.getItem("applinks")).filter(d=>d.key!==l);localStorage.setItem("applinks",JSON.stringify(g)),t(d=>({...d,items:g})),vA.emit("refresh","navbar"),f.stats.postEvent("feature","App link delete")};return s.jsxs(s.Fragment,{children:[s.jsxs(rA,{final:!0,inactive:!e,children:[s.jsx(nA,{title:A("widgets.navbar.apps.title"),subtitle:A("modals.main.settings.sections.appearance.navbar.apps_subtitle")}),s.jsx(lA,{children:s.jsx(pA,{type:"settings",onClick:()=>t(l=>({...l,newLink:!0})),icon:s.jsx(gn,{}),label:A("modals.main.settings.sections.quicklinks.add_link")})})]}),s.jsx("div",{className:"messagesContainer",children:r.items.map((l,c)=>s.jsx(So,{item:l,startEditLink:()=>a(l),deleteLink:(g,d)=>o(g,d)},c))}),s.jsx(Re,{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:s.jsx(gs,{urlError:r.urlError,addLink:(l,c,g)=>n(l,c,g),editLink:(l,c,g,d)=>i(l,c,g,d),edit:r.edit,editData:r.editData,closeModal:()=>t(l=>({...l,newLink:!1,edit:!1}))})})]})}function ko(){const e=Ct(),[A,r]=b.useState(localStorage.getItem("refresh")==="true"),[t,n]=b.useState(localStorage.getItem("appsEnabled")==="true"||!1),a="modals.main.settings.sections.appearance.navbar",i=()=>s.jsxs(rA,{final:!1,children:[s.jsx(nA,{title:e("modals.main.settings.additional_settings"),subtitle:e("modals.main.settings.sections.appearance.navbar.additional")}),s.jsx(lA,{children:s.jsx(mA,{name:"navbarHover",text:e(`${a}.hover`),category:"navbar"})})]}),o=()=>{const c=({icon:d,messageKey:u,settingName:p})=>{const[m,Q]=b.useState(localStorage.getItem(p)!=="true"),x=()=>{localStorage.setItem(p,m),p==="refresh"?r(!A):p==="appsEnabled"&&n(!t),Q(!m),f.stats.postEvent("setting",`${p} ${m?"disabled":"enabled"}`),vA.emit("refresh","navbar")};return s.jsxs("button",{onClick:x,className:`navbarButtonOption ${m===!0?"disabled":""}`,children:[d,s.jsx("span",{className:"subtitle",children:e(u)})]})},g=[{icon:s.jsx(ji,{}),settingName:"view",messageKey:"modals.main.settings.sections.background.buttons.view"},{icon:s.jsx(Vi,{}),settingName:"notesEnabled",messageKey:`${a}.notes`},{icon:s.jsx(Pi,{}),settingName:"todoEnabled",messageKey:"widgets.navbar.todo.title"},{icon:s.jsx(fe,{}),settingName:"refresh",messageKey:`${a}.refresh`},{icon:s.jsx(Xi,{}),settingName:"appsEnabled",messageKey:"widgets.navbar.apps.title"}];return s.jsxs(rA,{children:[s.jsx(nA,{title:e("modals.main.settings.sections.appearance.navbar.widgets")}),s.jsx(lA,{children:s.jsx("div",{className:"navbarButtonOptions",children:g.map((d,u)=>s.jsx(c,{...d},u))})})]})},l=()=>s.jsxs(rA,{final:!1,inactive:!A,children:[s.jsx(nA,{title:e(`${a}.refresh`),subtitle:e("modals.main.settings.sections.appearance.navbar.refresh_subtitle")}),s.jsx(lA,{children:s.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 s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:e(`${a}.title`),setting:"navbar",category:"widgets",zoomSetting:"zoomNavbar",zoomCategory:"navbar"}),s.jsx(i,{}),s.jsx(o,{}),s.jsx(l,{}),s.jsx(Lo,{appsEnabled:t})]})}const Mo=b.memo(ko),zn=[{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}],Ko=({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(JSON.parse(localStorage.getItem("customEvents"))||[]),[a,i]=b.useState(()=>{const w=localStorage.getItem("birthday");return w?new Date(w):new Date}),[o,l]=b.useState(localStorage.getItem("birthdayenabled")==="true"?"preferences":"preferencesInactive"),[c,g]=b.useState(localStorage.getItem("events")==="true"?"preferences":"preferencesInactive"),d=w=>{const I=w.target.value?new Date(w.target.value):new Date;localStorage.setItem("birthday",I),i(I)},u="modals.main.settings.sections.greeting",p=()=>{const w=JSON.parse(localStorage.getItem("customEvents"))||[],I={id:"widgets.greeting.halloween",name:"",month:1,date:1},K=[...w,I];w.push(I),localStorage.setItem("customEvents",JSON.stringify(w)),n(K)},m=w=>{const I=t.filter((K,M)=>M!==w);localStorage.setItem("customEvents",JSON.stringify(I)),n(I)},Q=()=>{localStorage.setItem("customEvents",JSON.stringify(zn)),n(zn),RA(f.getMessage("toasts.reset"))},x=(w,I)=>{n(M=>{const O=[...M];return O[w]=I,O});const K=JSON.parse(localStorage.getItem("customEvents")||"[]");K[w]=I,localStorage.setItem("customEvents",JSON.stringify(K))},U=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.additional_settings"),subtitle:f.getMessage(`${u}.additional`)}),s.jsxs(lA,{children:[s.jsx(mA,{name:"defaultGreetingMessage",text:f.getMessage(`${u}.default`),category:"greeting"}),s.jsx(rr,{title:f.getMessage(`${u}.name`),name:"greetingName",category:"greeting"})]})]}),F=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage(`${u}.birthday`),subtitle:f.getMessage("modals.main.settings.sections.greeting.birthday_subtitle")}),s.jsxs(lA,{children:[s.jsx(us,{name:"birthdayenabled",text:f.getMessage("modals.main.settings.enabled"),category:"greeting",onChange:w=>{l(w?"preferences":"preferencesInactive")}}),s.jsxs("div",{className:o,children:[s.jsx(mA,{name:"birthdayage",text:f.getMessage(`${u}.birthday_age`),category:"greeting"}),s.jsx("p",{style:{marginRight:"auto"},children:f.getMessage(`${u}.birthday_date`)}),s.jsx("input",{type:"date",onChange:d,value:a.toISOString().substring(0,10),required:!0})]})]})]}),L=()=>s.jsxs("div",{className:c,children:[s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${u}.custom`)}),s.jsx(lA,{children:s.jsxs("div",{className:"headerActions",children:[s.jsx(pA,{type:"settings",onClick:Q,icon:s.jsx(fe,{}),label:f.getMessage("modals.main.settings.buttons.reset")}),s.jsx(pA,{type:"settings",onClick:p,icon:s.jsx(tr,{}),label:f.getMessage("widgets.quicklinks.add")})]})})]}),s.jsx("div",{className:"messagesContainer",children:t.map((w,I)=>s.jsxs("div",{className:"messageMap",children:[s.jsxs("div",{className:"flexGrow",children:[s.jsx("div",{className:"icon",children:s.jsx(Sr,{})}),s.jsxs("div",{className:"messageText",children:[s.jsx("span",{className:"subtitle",children:f.getMessage(`${u}.event_name`)}),s.jsx("input",{type:"text",className:"text-field-input",value:w.name,placeholder:f.getMessage(`${u}.event_name`),onChange:K=>{const M={...w,name:K.target.value};x(I,M)}})]})]}),s.jsx("div",{children:s.jsxs("div",{className:"messageAction",children:[s.jsxs("div",{className:"eventDateSelection",children:[s.jsxs("label",{className:"subtitle",children:[f.getMessage(`${u}.day`),":"]}),s.jsx("input",{id:"day",type:"number",min:"1",max:"31",value:w.date,onChange:K=>{const M=parseInt(K.target.value,10);if(M>=1&&M<=31){const O={...w,date:M};x(I,O)}}}),s.jsx("hr",{}),s.jsxs("label",{className:"subtitle",children:[f.getMessage(`${u}.month`),":"]}),s.jsx("input",{id:"month",type:"number",min:"1",max:"12",value:w.month,onChange:K=>{const M=parseInt(K.target.value,10);if(M>=1&&M<=12){const O={...w,month:M};x(I,O)}}})]}),s.jsx(pA,{type:"settings",onClick:()=>m(I),icon:s.jsx(Bt,{}),label:f.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]},I))}),t.length===0&&s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Sr,{}),s.jsx("span",{className:"title",children:f.getMessage(`${u}.no_events`)}),s.jsx("span",{className:"subtitle",children:f.getMessage(`${u}.no_events_description`)}),s.jsx(pA,{type:"settings",onClick:p,icon:s.jsx(tr,{}),label:f.getMessage(`${u}.add_event`)})]})})]}),k=e==="events";let y;return k?y=s.jsx(TA,{title:f.getMessage(`${u}.title`),secondaryTitle:f.getMessage(`${u}.events.title`),goBack:()=>A(null,r),report:!1}):y=s.jsx(TA,{title:f.getMessage(`${u}.title`),setting:"greeting",category:"greeting",element:".greeting",zoomSetting:"zoomGreeting",visibilityToggle:!0}),s.jsxs(s.Fragment,{children:[y,k?s.jsxs(s.Fragment,{children:[s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage(`${u}.events`),subtitle:f.getMessage(`${u}.enable_events`)}),s.jsx(lA,{children:s.jsx(mA,{name:"events",text:f.getMessage(`${u}.events`),category:"greeting",onChange:w=>{g(w?"preferences":"preferencesInactive")}})})]}),F(),L()]}):s.jsxs(Qt,{setting:"greeting",zoomSetting:"zoomGreeting",category:"greeting",visibilityToggle:!0,children:[s.jsx(U,{}),s.jsx(Rn,{title:f.getMessage(`${u}.events`),subtitle:f.getMessage(`${u}.events_description`),onClick:()=>A("events",r),icon:s.jsx(Sr,{})})]})]})},To=()=>{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"),[i,o]=b.useState(localStorage.getItem("secondColour")||"#ffffff"),l="modals.main.settings.sections.time",c=(Q,x)=>{const U=x.target.value;Q==="hourColour"?t(U):Q==="minuteColour"?a(U):Q==="secondColour"&&o(U),localStorage.setItem(Q,U)},g=()=>s.jsxs(rA,{final:e==="percentageComplete",children:[s.jsx(nA,{title:f.getMessage(`${l}.type`),subtitle:f.getMessage(`${l}.type_subtitle`)}),s.jsx(lA,{children:s.jsx(KA,{name:"timeType",onChange:Q=>A(Q),category:"clock",items:[{value:"digital",text:f.getMessage(`${l}.digital.title`)},{value:"analogue",text:f.getMessage(`${l}.analogue.title`)},{value:"percentageComplete",text:f.getMessage(`${l}.percentage_complete`)},{value:"verticalClock",text:f.getMessage(`${l}.vertical_clock.title`)}]})})]}),d=s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${l}.digital.title`),subtitle:f.getMessage(`${l}.digital.subtitle`)}),s.jsxs(lA,{children:[s.jsx(un,{name:"timeformat",options:[{name:f.getMessage(`${l}.digital.twentyfourhour`),value:"twentyfourhour"},{name:f.getMessage(`${l}.digital.twelvehour`),value:"twelvehour"}],smallTitle:!0,category:"clock"}),s.jsx(mA,{name:"seconds",text:f.getMessage(`${l}.digital.seconds`),category:"clock"}),s.jsx(mA,{name:"zero",text:f.getMessage(`${l}.digital.zero`),category:"clock"})]})]}),u=s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${l}.analogue.title`),subtitle:f.getMessage(`${l}.analogue.subtitle`)}),s.jsxs(lA,{children:[s.jsx(mA,{name:"secondHand",text:f.getMessage(`${l}.analogue.second_hand`),category:"clock"}),s.jsx(mA,{name:"minuteHand",text:f.getMessage(`${l}.analogue.minute_hand`),category:"clock"}),s.jsx(mA,{name:"hourHand",text:f.getMessage(`${l}.analogue.hour_hand`),category:"clock"}),s.jsx(mA,{name:"hourMarks",text:f.getMessage(`${l}.analogue.hour_marks`),category:"clock"}),s.jsx(mA,{name:"minuteMarks",text:f.getMessage(`${l}.analogue.minute_marks`),category:"clock"}),s.jsx(mA,{name:"roundClock",text:f.getMessage(`${l}.analogue.round_clock`),category:"clock"})]})]}),p=s.jsxs(s.Fragment,{children:[s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.vertical_clock.change_hour_colour")}),s.jsxs(lA,{children:[s.jsxs("div",{className:"colourInput",children:[s.jsx("input",{type:"color",name:"hourColour",className:"minuteColour",onChange:Q=>c("hourColour",Q),value:r}),s.jsx("label",{htmlFor:"hourColour",className:"customBackgroundHex",children:r})]}),s.jsxs("span",{className:"link",onClick:()=>localStorage.setItem("hourColour","#ffffff"),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})]})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.vertical_clock.change_minute_colour")}),s.jsxs(lA,{children:[s.jsxs("div",{className:"colourInput",children:[s.jsx("input",{type:"color",name:"minuteColour",className:"minuteColour",onChange:Q=>c("minuteColour",Q),value:n}),s.jsx("label",{htmlFor:"minuteColour",className:"customBackgroundHex",children:n})]}),s.jsxs("span",{className:"link",onClick:()=>localStorage.setItem("minuteColour","#ffffff"),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})]})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.vertical_clock.change_second_colour")}),s.jsxs(lA,{children:[s.jsxs("div",{className:"colourInput",children:[s.jsx("input",{type:"color",name:"secondColour",className:"secondColour",onChange:Q=>c("secondColour",Q),value:i}),s.jsx("label",{htmlFor:"secondColour",className:"customBackgroundHex",children:i})]}),s.jsxs("span",{className:"link",onClick:()=>localStorage.setItem("secondColour","#ffffff"),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})]})]}),d]}),m=()=>{switch(e){case"digital":return d;case"analogue":return u;case"verticalClock":return p;default:return null}};return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage(`${l}.title`),setting:"time",category:"clock",element:".clock-container",zoomSetting:"zoomClock",visibilityToggle:!0}),s.jsxs(Qt,{setting:"time",zoomSetting:"zoomClock",category:"clock",visibilityToggle:!0,children:[s.jsx(g,{}),m()]})]})};function Do(){const[e,A]=b.useState(localStorage.getItem("dateType")||"long"),r=["DMY","MDY","YMD"],t=s.jsxs(s.Fragment,{children:[s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.date.long_format"),name:"longFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),s.jsx(mA,{name:"dayofweek",text:f.getMessage("modals.main.settings.sections.date.day_of_week"),category:"date"}),s.jsx(mA,{name:"datenth",text:f.getMessage("modals.main.settings.sections.date.datenth"),category:"date"})]}),n=s.jsxs(s.Fragment,{children:[s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.date.short_format"),name:"dateFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.date.short_separator.title"),name:"shortFormat",category:"date",items:[{value:"dash",text:f.getMessage("modals.main.settings.sections.date.short_separator.dash")},{value:"dots",text:f.getMessage("modals.main.settings.sections.date.short_separator.dots")},{value:"gaps",text:f.getMessage("modals.main.settings.sections.date.short_separator.gaps")},{value:"slashes",text:f.getMessage("modals.main.settings.sections.date.short_separator.slashes")}]})]});return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.date.title"),setting:"date",category:"date",element:".date",zoomSetting:"zoomDate",visibilityToggle:!0}),s.jsxs(Qt,{setting:"date",visibilityToggle:!0,category:"date",zoomSetting:"zoomDate",children:[s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.time.type"),subtitle:f.getMessage("modals.main.settings.sections.date.type.subtitle")}),s.jsx(lA,{children:s.jsx(KA,{name:"dateType",onChange:a=>{A(a),localStorage.setItem("dateType",a)},category:"date",items:[{value:"long",text:f.getMessage("modals.main.settings.sections.date.type.long")},{value:"short",text:f.getMessage("modals.main.settings.sections.date.type.short")}]})})]}),s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:e==="long"?f.getMessage("modals.main.settings.sections.date.type.long"):f.getMessage("modals.main.settings.sections.date.type.short"),subtitle:f.getMessage("modals.main.settings.sections.date.type_settings")}),s.jsxs(lA,{children:[e==="long"?t:n,s.jsx(mA,{name:"weeknumber",text:f.getMessage("modals.main.settings.sections.date.week_number"),category:"date"}),s.jsx(mA,{name:"datezero",text:f.getMessage("modals.main.settings.sections.time.digital.zero"),category:"date"})]})]})]})]})}const Oo=()=>s.jsx("div",{className:"quicklink-drag-handle","aria-hidden":"true",children:s.jsx(Bs,{})}),Ro=({value:e,enabled:A,startEditLink:r,deleteLink:t})=>{const{attributes:n,listeners:a,setNodeRef:i,transform:o,transition:l,isDragging:c}=ds({id:e.key,disabled:!A}),g={transform:fs.Transform.toString(o),transition:l,opacity:c?.5:1},d=u=>u.icon||ls(u.url,u.name);return s.jsxs("div",{ref:i,style:g,...n,...a,className:`quicklink-item ${A?"":"disabled"}`,role:"listitem",children:[s.jsx(Oo,{}),s.jsx("div",{className:"quicklink-icon",children:s.jsx("img",{src:d(e),alt:e.name,draggable:!1})}),s.jsxs("div",{className:"quicklink-content",children:[s.jsx("div",{className:"quicklink-name",children:e.name}),s.jsx("div",{className:"quicklink-url",children:e.url})]}),s.jsxs("div",{className:"quicklink-actions",children:[s.jsxs("button",{className:"quicklink-action-btn",onClick:u=>{A&&(u.stopPropagation(),r(e))},title:"Edit",disabled:!A,"aria-disabled":!A,children:[s.jsx(cs,{}),s.jsx("span",{children:"Edit"})]}),s.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:[s.jsx(Ji,{}),s.jsx("span",{children:"Remove"})]})]})]})},No=({items:e,enabled:A,onDragEnd:r,startEditLink:t,deleteLink:n})=>{const a=hs(nr(Cs,{activationConstraint:{distance:6}}),nr(ps,{coordinateGetter:ws}));return s.jsx(Qs,{sensors:a,collisionDetection:ms,onDragEnd:r,children:s.jsx(vs,{items:e.map(i=>i.key),strategy:Us,children:s.jsx("div",{className:"quicklinks-list",role:"list",children:e.map(i=>s.jsx(Ro,{value:i,enabled:A,startEditLink:t,deleteLink:n},i.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(""),[i,o]=b.useState(""),[l,c]=b.useState(!1),[g,d]=b.useState(""),[u,p]=b.useState(localStorage.getItem("quicklinksenabled")!=="false"),m=b.useRef(),Q=b.useRef(!1),x=O=>{if(!m||!m.current)return;const R=m.current;R.classList.toggle("disabled",!O),O?R.removeAttribute("aria-hidden"):R.setAttribute("aria-hidden","true")},U=(O,R)=>{R.preventDefault();const D=Xe().filter(W=>W.key!==O);Q.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),A(D),f.stats.postEvent("feature","Quicklink delete"),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0)},F=async(O,R,P)=>{const D=Xe();if(R=sr(R),!R){a(f.getMessage("widgets.quicklinks.url_error"));return}if(P.length>0&&dt(P)===!1){o(f.getMessage("widgets.quicklinks.url_error"));return}const W={name:O||await ar(R),url:R,icon:P||"",key:Date.now().toString()+Math.random().toString(36).substring(2)};D.push(W),Q.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),A(D),t(!1),a(""),o(""),f.stats.postEvent("feature","Quicklink add"),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0)},L=O=>{c(!0),d(O),t(!0)},k=async(O,R,P,D)=>{const W=Xe(),$=W.find(eA=>eA.key===O.key);if($){if(P=sr(P),!P){a(f.getMessage("widgets.quicklinks.url_error"));return}if(D.length>0&&dt(D)===!1){o(f.getMessage("widgets.quicklinks.url_error"));return}$.name=R||await ar(P),$.url=P,$.icon=D||"",Q.current=!0,localStorage.setItem("quicklinks",JSON.stringify(W)),A(W),t(!1),c(!1),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0)}},y=O=>{const{active:R,over:P}=O;if(!P||!u||R.id===P.id)return;const D=e.findIndex(eA=>eA.key===R.id),W=e.findIndex(eA=>eA.key===P.id);if(D===-1||W===-1)return;const $=Fs(e,D,W);Q.current=!0,A($),localStorage.setItem("quicklinks",JSON.stringify($)),vA.emit("refresh","quicklinks"),setTimeout(()=>{Q.current=!1},0)};b.useEffect(()=>{x(u)},[u]),b.useEffect(()=>{x(u);const O=R=>{if(R!=="quicklinks"||Q.current)return;const P=localStorage.getItem("quicklinksenabled")!=="false",D=Xe(),W=e||[],$=W.length===D.length&&W.every(eA=>D.some(AA=>AA.key===eA.key));(P!==u||!$)&&(x(P),A(D),p(P))};return vA.on("refresh",O),()=>{vA.off("refresh",O)}},[u,e]);const w="modals.main.settings.sections.quicklinks",I=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.additional_settings"),subtitle:f.getMessage(`${w}.additional`)}),s.jsxs(lA,{children:[s.jsx(mA,{name:"quicklinksnewtab",text:f.getMessage(`${w}.open_new`),category:"quicklinks"}),s.jsx(mA,{name:"quicklinkstooltip",text:f.getMessage(`${w}.tooltip`),category:"quicklinks"})]})]}),K=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage(`${w}.styling`),subtitle:f.getMessage("modals.main.settings.sections.quicklinks.styling_description")}),s.jsx(lA,{children:s.jsx(KA,{label:f.getMessage(`${w}.style`),name:"quickLinksStyle",category:"quicklinks",items:[{value:"icon",text:f.getMessage(`${w}.options.icon`)},{value:"text_only",text:f.getMessage(`${w}.options.text_only`)},{value:"metro",text:f.getMessage(`${w}.options.metro`)}]})})]}),M=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${w}.title`)}),s.jsx(lA,{children:s.jsx(pA,{type:"settings",onClick:()=>u&&t(!0),icon:s.jsx(gn,{}),label:f.getMessage(`${w}.add_link`),disabled:!u})})]});return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage(`${w}.title`),setting:"quicklinksenabled",category:"quicklinks",element:".quicklinks-container",zoomSetting:"zoomQuicklinks",visibilityToggle:!0}),s.jsxs(Qt,{setting:"quicklinksenabled",category:"quicklinks",visibilityToggle:!0,zoomSetting:"zoomQuicklinks",children:[s.jsx(I,{}),s.jsx(K,{}),s.jsx(M,{}),e.length===0&&s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Wi,{}),s.jsx("span",{className:"title",children:f.getMessage(`${w}.no_quicklinks`)}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.message.add_some")}),s.jsx(pA,{type:"settings",onClick:()=>t(!0),icon:s.jsx(gn,{}),label:f.getMessage(`${w}.add_link`)})]})})]}),s.jsx("div",{className:`quicklinks-container ${u?"":"disabled"}`,ref:m,"aria-hidden":!u,children:s.jsx("div",{className:`messagesContainer ${u?"":"disabled"}`,children:s.jsx(No,{items:e,enabled:u,onDragEnd:y,startEditLink:O=>L(O),deleteLink:(O,R)=>U(O,R)})})}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a(""),o("")},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(gs,{urlError:n,addLink:(O,R,P)=>F(O,R,P),editLink:(O,R,P,D)=>k(O,R,P,D),edit:l,editData:g,closeModal:()=>{t(!1),a(""),o(""),c(!1)}})})]})},Go=()=>{const[e,A]=b.useState(JSON.parse(localStorage.getItem("messages"))||[]),r=(a,i)=>{const o=[...e];a==="add"?o.push(""):o.splice(i,1),A(o),localStorage.setItem("messages",JSON.stringify(o))},t=(a,i,o)=>{const l=a.target.value,c=[...e];c[o]=l,A(c),localStorage.setItem("messages",JSON.stringify(c)),document.querySelector(".reminder-info").style.display="flex",localStorage.setItem("showReminder",!0)},n="modals.main.settings.sections.message";return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage(`${n}.title`),setting:"message",category:"message",element:".message",zoomSetting:"zoomMessage",visibilityToggle:!0}),s.jsxs(Qt,{setting:"message",visibilityToggle:!0,category:"message",zoomSetting:"zoomMessage",children:[s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage(`${n}.messages`)}),s.jsx(lA,{children:s.jsx(pA,{type:"settings",onClick:()=>r("add"),icon:s.jsx(tr,{}),label:f.getMessage(`${n}.add`)})})]}),s.jsx("div",{className:"messagesContainer",children:e.map((a,i)=>s.jsxs("div",{className:"messageMap",children:[s.jsxs("div",{className:"flexGrow",children:[s.jsx("div",{className:"icon",children:s.jsx(Yn,{})}),s.jsxs("div",{className:"messageText",children:[s.jsx("span",{className:"subtitle",children:f.getMessage(`${n}.title`)}),s.jsx(Yi,{value:e[i],placeholder:f.getMessage("modals.main.settings.sections.message.content"),onChange:o=>t(o,!0,i),minRows:2})]})]}),s.jsx("div",{children:s.jsx("div",{className:"messageAction",children:s.jsx(pA,{type:"settings",onClick:()=>r("remove",i),icon:s.jsx(Bt,{}),label:f.getMessage("modals.main.marketplace.product.buttons.remove")})})})]},i))}),e.length===0&&s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Yn,{}),s.jsx("span",{className:"title",children:f.getMessage(`${n}.no_messages`)}),s.jsx("span",{className:"subtitle",children:f.getMessage(`${n}.add_some`)}),s.jsx(pA,{type:"settings",onClick:()=>r("add"),icon:s.jsx(tr,{}),label:f.getMessage(`${n}.add`)})]})})]})]})};var kr={exports:{}},$n;function jo(){return $n||($n=1,(function(e){(function(A){var r=/^\s+/,t=/\s+$/,n=0,a=A.round,i=A.min,o=A.max,l=A.random;function c(B,C){if(B=B||"",C=C||{},B instanceof c)return B;if(!(this instanceof c))return new c(B,C);var h=g(B);this._originalInput=B,this._r=h.r,this._g=h.g,this._b=h.b,this._a=h.a,this._roundA=a(100*this._a)/100,this._format=C.format||h.format,this._gradientType=C.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=h.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 B=this.toRgb();return(B.r*299+B.g*587+B.b*114)/1e3},getLuminance:function(){var B=this.toRgb(),C,h,E,T,G,aA;return C=B.r/255,h=B.g/255,E=B.b/255,C<=.03928?T=C/12.92:T=A.pow((C+.055)/1.055,2.4),h<=.03928?G=h/12.92:G=A.pow((h+.055)/1.055,2.4),E<=.03928?aA=E/12.92:aA=A.pow((E+.055)/1.055,2.4),.2126*T+.7152*G+.0722*aA},setAlpha:function(B){return this._a=sA(B),this._roundA=a(100*this._a)/100,this},toHsv:function(){var B=m(this._r,this._g,this._b);return{h:B.h*360,s:B.s,v:B.v,a:this._a}},toHsvString:function(){var B=m(this._r,this._g,this._b),C=a(B.h*360),h=a(B.s*100),E=a(B.v*100);return this._a==1?"hsv("+C+", "+h+"%, "+E+"%)":"hsva("+C+", "+h+"%, "+E+"%, "+this._roundA+")"},toHsl:function(){var B=u(this._r,this._g,this._b);return{h:B.h*360,s:B.s,l:B.l,a:this._a}},toHslString:function(){var B=u(this._r,this._g,this._b),C=a(B.h*360),h=a(B.s*100),E=a(B.l*100);return this._a==1?"hsl("+C+", "+h+"%, "+E+"%)":"hsla("+C+", "+h+"%, "+E+"%, "+this._roundA+")"},toHex:function(B){return x(this._r,this._g,this._b,B)},toHexString:function(B){return"#"+this.toHex(B)},toHex8:function(B){return U(this._r,this._g,this._b,this._a,B)},toHex8String:function(B){return"#"+this.toHex8(B)},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(B){var C="#"+F(this._r,this._g,this._b,this._a),h=C,E=this._gradientType?"GradientType = 1, ":"";if(B){var T=c(B);h="#"+F(T._r,T._g,T._b,T._a)}return"progid:DXImageTransform.Microsoft.gradient("+E+"startColorstr="+C+",endColorstr="+h+")"},toString:function(B){var C=!!B;B=B||this._format;var h=!1,E=this._a<1&&this._a>=0,T=!C&&E&&(B==="hex"||B==="hex6"||B==="hex3"||B==="hex4"||B==="hex8"||B==="name");return T?B==="name"&&this._a===0?this.toName():this.toRgbString():(B==="rgb"&&(h=this.toRgbString()),B==="prgb"&&(h=this.toPercentageRgbString()),(B==="hex"||B==="hex6")&&(h=this.toHexString()),B==="hex3"&&(h=this.toHexString(!0)),B==="hex4"&&(h=this.toHex8String(!0)),B==="hex8"&&(h=this.toHex8String()),B==="name"&&(h=this.toName()),B==="hsl"&&(h=this.toHslString()),B==="hsv"&&(h=this.toHsvString()),h||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(B,C){var h=B.apply(null,[this].concat([].slice.call(C)));return this._r=h._r,this._g=h._g,this._b=h._b,this.setAlpha(h._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(I,arguments)},darken:function(){return this._applyModification(K,arguments)},desaturate:function(){return this._applyModification(L,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(B,C){return B.apply(null,[this].concat([].slice.call(C)))},analogous:function(){return this._applyCombination(W,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(R,arguments)},tetrad:function(){return this._applyCombination(P,arguments)}},c.fromRatio=function(B,C){if(typeof B=="object"){var h={};for(var E in B)B.hasOwnProperty(E)&&(E==="a"?h[E]=B[E]:h[E]=Y(B[E]));B=h}return c(B,C)};function g(B){var C={r:0,g:0,b:0},h=1,E=null,T=null,G=null,aA=!1,hA=!1;return typeof B=="string"&&(B=H(B)),typeof B=="object"&&(tA(B.r)&&tA(B.g)&&tA(B.b)?(C=d(B.r,B.g,B.b),aA=!0,hA=String(B.r).substr(-1)==="%"?"prgb":"rgb"):tA(B.h)&&tA(B.s)&&tA(B.v)?(E=Y(B.s),T=Y(B.v),C=Q(B.h,E,T),aA=!0,hA="hsv"):tA(B.h)&&tA(B.s)&&tA(B.l)&&(E=Y(B.s),G=Y(B.l),C=p(B.h,E,G),aA=!0,hA="hsl"),B.hasOwnProperty("a")&&(h=B.a)),h=sA(h),{ok:aA,format:B.format||hA,r:i(255,o(C.r,0)),g:i(255,o(C.g,0)),b:i(255,o(C.b,0)),a:h}}function d(B,C,h){return{r:q(B,255)*255,g:q(C,255)*255,b:q(h,255)*255}}function u(B,C,h){B=q(B,255),C=q(C,255),h=q(h,255);var E=o(B,C,h),T=i(B,C,h),G,aA,hA=(E+T)/2;if(E==T)G=aA=0;else{var UA=E-T;switch(aA=hA>.5?UA/(2-E-T):UA/(E+T),E){case B:G=(C-h)/UA+(C<h?6:0);break;case C:G=(h-B)/UA+2;break;case h:G=(B-C)/UA+4;break}G/=6}return{h:G,s:aA,l:hA}}function p(B,C,h){var E,T,G;B=q(B,360),C=q(C,100),h=q(h,100);function aA(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(C===0)E=T=G=h;else{var hA=h<.5?h*(1+C):h+C-h*C,UA=2*h-hA;E=aA(UA,hA,B+1/3),T=aA(UA,hA,B),G=aA(UA,hA,B-1/3)}return{r:E*255,g:T*255,b:G*255}}function m(B,C,h){B=q(B,255),C=q(C,255),h=q(h,255);var E=o(B,C,h),T=i(B,C,h),G,aA,hA=E,UA=E-T;if(aA=E===0?0:UA/E,E==T)G=0;else{switch(E){case B:G=(C-h)/UA+(C<h?6:0);break;case C:G=(h-B)/UA+2;break;case h:G=(B-C)/UA+4;break}G/=6}return{h:G,s:aA,v:hA}}function Q(B,C,h){B=q(B,360)*6,C=q(C,100),h=q(h,100);var E=A.floor(B),T=B-E,G=h*(1-C),aA=h*(1-T*C),hA=h*(1-(1-T)*C),UA=E%6,jA=[h,aA,G,G,hA,h][UA],Pe=[hA,h,h,aA,G,G][UA],YA=[G,G,hA,h,h,aA][UA];return{r:jA*255,g:Pe*255,b:YA*255}}function x(B,C,h,E){var T=[N(a(B).toString(16)),N(a(C).toString(16)),N(a(h).toString(16))];return E&&T[0].charAt(0)==T[0].charAt(1)&&T[1].charAt(0)==T[1].charAt(1)&&T[2].charAt(0)==T[2].charAt(1)?T[0].charAt(0)+T[1].charAt(0)+T[2].charAt(0):T.join("")}function U(B,C,h,E,T){var G=[N(a(B).toString(16)),N(a(C).toString(16)),N(a(h).toString(16)),N(gA(E))];return T&&G[0].charAt(0)==G[0].charAt(1)&&G[1].charAt(0)==G[1].charAt(1)&&G[2].charAt(0)==G[2].charAt(1)&&G[3].charAt(0)==G[3].charAt(1)?G[0].charAt(0)+G[1].charAt(0)+G[2].charAt(0)+G[3].charAt(0):G.join("")}function F(B,C,h,E){var T=[N(gA(E)),N(a(B).toString(16)),N(a(C).toString(16)),N(a(h).toString(16))];return T.join("")}c.equals=function(B,C){return!B||!C?!1:c(B).toRgbString()==c(C).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})};function L(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.s-=C/100,h.s=cA(h.s),c(h)}function k(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.s+=C/100,h.s=cA(h.s),c(h)}function y(B){return c(B).desaturate(100)}function w(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.l+=C/100,h.l=cA(h.l),c(h)}function I(B,C){C=C===0?0:C||10;var h=c(B).toRgb();return h.r=o(0,i(255,h.r-a(255*-(C/100)))),h.g=o(0,i(255,h.g-a(255*-(C/100)))),h.b=o(0,i(255,h.b-a(255*-(C/100)))),c(h)}function K(B,C){C=C===0?0:C||10;var h=c(B).toHsl();return h.l-=C/100,h.l=cA(h.l),c(h)}function M(B,C){var h=c(B).toHsl(),E=(h.h+C)%360;return h.h=E<0?360+E:E,c(h)}function O(B){var C=c(B).toHsl();return C.h=(C.h+180)%360,c(C)}function R(B){var C=c(B).toHsl(),h=C.h;return[c(B),c({h:(h+120)%360,s:C.s,l:C.l}),c({h:(h+240)%360,s:C.s,l:C.l})]}function P(B){var C=c(B).toHsl(),h=C.h;return[c(B),c({h:(h+90)%360,s:C.s,l:C.l}),c({h:(h+180)%360,s:C.s,l:C.l}),c({h:(h+270)%360,s:C.s,l:C.l})]}function D(B){var C=c(B).toHsl(),h=C.h;return[c(B),c({h:(h+72)%360,s:C.s,l:C.l}),c({h:(h+216)%360,s:C.s,l:C.l})]}function W(B,C,h){C=C||6,h=h||30;var E=c(B).toHsl(),T=360/h,G=[c(B)];for(E.h=(E.h-(T*C>>1)+720)%360;--C;)E.h=(E.h+T)%360,G.push(c(E));return G}function $(B,C){C=C||6;for(var h=c(B).toHsv(),E=h.h,T=h.s,G=h.v,aA=[],hA=1/C;C--;)aA.push(c({h:E,s:T,v:G})),G=(G+hA)%1;return aA}c.mix=function(B,C,h){h=h===0?0:h||50;var E=c(B).toRgb(),T=c(C).toRgb(),G=h/100,aA={r:(T.r-E.r)*G+E.r,g:(T.g-E.g)*G+E.g,b:(T.b-E.b)*G+E.b,a:(T.a-E.a)*G+E.a};return c(aA)},c.readability=function(B,C){var h=c(B),E=c(C);return(A.max(h.getLuminance(),E.getLuminance())+.05)/(A.min(h.getLuminance(),E.getLuminance())+.05)},c.isReadable=function(B,C,h){var E=c.readability(B,C),T,G;switch(G=!1,T=X(h),T.level+T.size){case"AAsmall":case"AAAlarge":G=E>=4.5;break;case"AAlarge":G=E>=3;break;case"AAAsmall":G=E>=7;break}return G},c.mostReadable=function(B,C,h){var E=null,T=0,G,aA,hA,UA;h=h||{},aA=h.includeFallbackColors,hA=h.level,UA=h.size;for(var jA=0;jA<C.length;jA++)G=c.readability(B,C[jA]),G>T&&(T=G,E=c(C[jA]));return c.isReadable(B,E,{level:hA,size:UA})||!aA?E:(h.includeFallbackColors=!1,c.mostReadable(B,["#fff","#000"],h))};var eA=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=fA(eA);function fA(B){var C={};for(var h in B)B.hasOwnProperty(h)&&(C[B[h]]=h);return C}function sA(B){return B=parseFloat(B),(isNaN(B)||B<0||B>1)&&(B=1),B}function q(B,C){S(B)&&(B="100%");var h=_(B);return B=i(C,o(0,parseFloat(B))),h&&(B=parseInt(B*C,10)/100),A.abs(B-C)<1e-6?1:B%C/parseFloat(C)}function cA(B){return i(1,o(0,B))}function iA(B){return parseInt(B,16)}function S(B){return typeof B=="string"&&B.indexOf(".")!=-1&&parseFloat(B)===1}function _(B){return typeof B=="string"&&B.indexOf("%")!=-1}function N(B){return B.length==1?"0"+B:""+B}function Y(B){return B<=1&&(B=B*100+"%"),B}function gA(B){return A.round(parseFloat(B)*255).toString(16)}function Z(B){return iA(B)/255}var z=(function(){var B="[-\\+]?\\d+%?",C="[-\\+]?\\d*\\.\\d+%?",h="(?:"+C+")|(?:"+B+")",E="[\\s|\\(]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")\\s*\\)?",T="[\\s|\\(]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")[,|\\s]+("+h+")\\s*\\)?";return{CSS_UNIT:new RegExp(h),rgb:new RegExp("rgb"+E),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+E),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+E),hsva:new RegExp("hsva"+T),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 tA(B){return!!z.CSS_UNIT.exec(B)}function H(B){B=B.replace(r,"").replace(t,"").toLowerCase();var C=!1;if(eA[B])B=eA[B],C=!0;else if(B=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var h;return(h=z.rgb.exec(B))?{r:h[1],g:h[2],b:h[3]}:(h=z.rgba.exec(B))?{r:h[1],g:h[2],b:h[3],a:h[4]}:(h=z.hsl.exec(B))?{h:h[1],s:h[2],l:h[3]}:(h=z.hsla.exec(B))?{h:h[1],s:h[2],l:h[3],a:h[4]}:(h=z.hsv.exec(B))?{h:h[1],s:h[2],v:h[3]}:(h=z.hsva.exec(B))?{h:h[1],s:h[2],v:h[3],a:h[4]}:(h=z.hex8.exec(B))?{r:iA(h[1]),g:iA(h[2]),b:iA(h[3]),a:Z(h[4]),format:C?"name":"hex8"}:(h=z.hex6.exec(B))?{r:iA(h[1]),g:iA(h[2]),b:iA(h[3]),format:C?"name":"hex"}:(h=z.hex4.exec(B))?{r:iA(h[1]+""+h[1]),g:iA(h[2]+""+h[2]),b:iA(h[3]+""+h[3]),a:Z(h[4]+""+h[4]),format:C?"name":"hex8"}:(h=z.hex3.exec(B))?{r:iA(h[1]+""+h[1]),g:iA(h[2]+""+h[2]),b:iA(h[3]+""+h[3]),format:C?"name":"hex"}:!1}function X(B){var C,h;return B=B||{level:"AA",size:"small"},C=(B.level||"AA").toUpperCase(),h=(B.size||"small").toLowerCase(),C!=="AA"&&C!=="AAA"&&(C="AA"),h!=="small"&&h!=="large"&&(h="small"),{level:C,size:h}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(kr)),kr.exports}var Vo=jo();const SA=bs(Vo);var De=function(){return De=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},De.apply(this,arguments)},Po=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))},Xo=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(S){var _=new Error(e+": "+S);throw _}function t(S){e=e.substr(S)}function n(S){var _=/^[\n\r\t\s]+/.exec(e);_&&t(_[0].length);var N=S.exec(e);return N&&t(N[0].length),N}function a(S){var _=S(),N=[];if(_)for(N.push(_);n(A.comma);)_=S(),_?N.push(_):r("One extra comma");return N}function i(S,_,N){var Y=n(_);if(Y)return{type:S,value:Y[N]}}function o(){var S=i("hex",A.hexColor,1);if(S?.value){var _=SA(S?.value).toRgb(),N=_.r,Y=_.g,gA=_.b,Z=_.a;return{value:"rgba(".concat(N,", ").concat(Y,", ").concat(gA,", ").concat(Z,")")}}}var l=function(S){var _=me(S?.[0]);return{value:"".concat(_?"RGBA":"rgba","(").concat(a(AA),")")}};function c(S,_){var N=n(S);if(N){n(A.startCall)||r("Missing (");var Y=_(N);return n(A.endCall)||r("Missing )"),Y}}function g(){return c(A.hslColor,fA)}function d(){return c(A.rgbaColor,l)}function u(){return c(A.rgbColor,q)}function p(){var S=i("literal",A.literalColor,0);if(S?.value){var _=SA(S?.value).toRgb(),N=_.r,Y=_.g,gA=_.b,Z=_.a;return{value:"rgba(".concat(N,", ").concat(Y,", ").concat(gA,", ").concat(Z,")")}}}function m(){return c(A.hsvColor,sA)}function Q(){return o()||g()||d()||u()||p()||m()}function x(){var S,_=Q();return _||r("Expected color definition"),_.left=parseInt((S=cA())===null||S===void 0?void 0:S.value),_}function U(S,_,N){return c(_,function(){var Y=N();return Y&&(n(A.comma)||r("Missing comma before color stops")),{type:S,orientation:Y,colorStops:a(x)}})}function F(){return w()||I()}function L(){return U("linear-gradient",A.linearGradient,F)||U("repeating-linear-gradient",A.repeatingLinearGradient,F)||U("radial-gradient",A.radialGradient,K)||U("repeating-radial-gradient",A.repeatingRadialGradient,K)}function k(){return a(L)}function y(){var S,_=k();e.length>0&&r("Invalid input not EOF");var N=_[0],Y=(S=N?.colorStops)===null||S===void 0?void 0:S.filter(function(Z){return me(Z.value)}).length,gA=function(){if(Y>0)return N;var Z=function(z,tA){return tA===0?Qr(z):mt(z)};return De(De({},N),{colorStops:N.colorStops.map(function(z,tA){return De(De({},z),{value:Z(z,tA)})})})};return gA()}function w(){return i("directional",A.sideOrCorner,1)}function I(){return i("angular",A.angleValue,1)}function K(){var S,_=M(),N;return _&&(S=[],S.push(_),N=e,n(A.comma)&&(_=M(),_?S.push(_):e=N)),S}function M(){var S=R()||P();if(S)S.at=W();else{var _=D();if(_){S=_;var N=W();N&&(S.at=N)}else{var Y=$();Y&&(S={type:"default-radial",at:Y})}}return S}function O(){return i("px",A.pixelValue,1)||i("em",A.emValue,1)}function R(){var S=i("shape",/^(circle)/i,0);return S&&(S.style=O()||D()),S}function P(){var S=i("shape",/^(ellipse)/i,0);return S&&(S.style=cA()||D()),S}function D(){return i("extent-keyword",A.extentKeywords,1)}function W(){if(i("position",/^at/,0)){var S=$();return S||r("Missing positioning value"),S}}function $(){var S=eA();if(S.x||S.y)return{type:"position",value:S}}function eA(){return{x:cA(),y:cA()}}function AA(){return n(A.number)[1]}var fA=function(S){var _=me(S?.[0]),N=a(AA),Y=SA({h:N[0],s:N[1],l:N[2],a:N[3]||1}).toRgb(),gA=Y.r,Z=Y.g,z=Y.b,tA=Y.a;return{value:"".concat(_?"RGBA":"rgba","(").concat(gA,", ").concat(Z,", ").concat(z,", ").concat(tA,")")}},sA=function(S){var _=me(S?.[0]),N=a(AA),Y=SA({h:N[0],s:N[1],v:N[2],a:N[3]||1}).toRgb(),gA=Y.r,Z=Y.g,z=Y.b,tA=Y.a;return{value:"".concat(_?"RGBA":"rgba","(").concat(gA,", ").concat(Z,", ").concat(z,", ").concat(tA,")")}},q=function(S){var _=me(S?.[0]),N=n(A.spacedRgbColor),Y=N||Po([null],a(AA),!0),gA=Y[1],Z=Y[2],z=Y[3],tA=Y[4],H=tA===void 0?1:tA;return{value:"".concat(_?"RGBA":"rgba","(").concat(gA,", ").concat(Z,", ").concat(z,", ").concat(H,")")}};function cA(){return i("%",A.percentageValue,1)||iA()||O()}function iA(){return i("position-keyword",A.positionKeywords,1)}return y()},mt=function(e){return e.value.toLowerCase()},Qr=function(e){return e.value.toUpperCase()},Jo=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 i=Xo(a);return i?.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)},ir=function(){return ir=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},ir.apply(this,arguments)},ys=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=ys(e),t=r.offsetLeft,n=r.clientWidth,a=e.clientX-t-A/2,i=n-18,o=_e(a,0,i);return Math.round(o/(i/100))}function Wo(e,A,r,t,n){var a=e*r-n/2,i=(100-A)/100*t-n/2;return[a,i]}var Yo=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 Zo(e,A){var r=ys(e),t=r.offsetLeft,n=r.offsetTop,a=r.clientWidth,i=r.clientHeight,o=Yo(e),l=o.clientX,c=o.clientY,g=function(){var u=l-t-A/2;return _e(u,-9,a-10)},d=function(){var u=c-n-A/2;return _e(u,-9,i-10)};return[g(),d()]}var me=function(e){var A;return e?.[0]===((A=e?.[0])===null||A===void 0?void 0:A.toUpperCase())},xs=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)},qo=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 i=(r=e?.colorStops)===null||r===void 0?void 0:r.sort(function(u,p){return u?.left-p?.left}),o=(t=i?.map(function(u){return"".concat(u?.value," ").concat(u?.left,"%")}))===null||t===void 0?void 0:t.join(", "),l=e?.type,c=xs((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 d=((a=e?.colorStops[0])===null||a===void 0?void 0:a.value)||"rgba(175, 51, 242, 1)";return d}},zo=function(e,A){var r=e?.map(function(a,i){return ir(ir({},a),{index:i})}),t=r?.find(function(a){return me(a.value)}),n=t||r[0];return{currentColor:n?.value||A,selectedColor:n?.index||0,currentLeft:n?.left||0}},$o=function(e){var A,r=e?.split(",")[0],t=(A=r?.split("(")[1])===null||A===void 0?void 0:A.replace("deg","");return xs(t)},Al=function(e){var A=e?.includes("gradient"),r=e?.split("(")[0],t=$o(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)},el=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))},Is=b.createContext(null);function tl(e){var A,r,t,n,a=e.value,i=e.children,o=e.onChange,l=e.isDarkMode,c=e.squareWidth,g=e.hideOpacity,d=e.showHexAlpha,u=e.squareHeight,p=e.passedConfig,m=e.defaultStyles,Q=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=Jo(a,x.defaultColor,x.defaultGradient),F=Al(a),L=F.degrees,k=F.degreeStr,y=F.isGradient,w=F.gradientType,I=zo(U,x.defaultGradient),K=I.currentColor,M=I.selectedColor,O=I.currentLeft,R=b.useState("rgb"),P=R[0],D=R[1],W=b.useState({}),$=W[0],eA=W[1],AA=SA(K),fA=AA.toRgb(),sA=AA.toHsv(),q=b.useState(DA(DA({},fA),sA)),cA=q[0],iA=q[1];b.useEffect(function(){sA?.s===0?iA(DA(DA(DA({},fA),sA),{h:cA?.h})):iA(DA(DA({},fA),sA))},[K]);var S=function(Z){var z=Z.sort(function(X,B){return X.left-B.left}),tA=z?.map(function(X){return"".concat(X?.value," ").concat(X.left,"%")}),H="".concat(w,"(").concat(k,", ").concat(tA.join(", "),")");eA(DA(DA({},$),{gradient:H})),o(H)},_=function(Z,z){var tA=U?.filter(function(X){return!me(X.value)}),H=el([{value:Z.toUpperCase(),left:z??O}],tA,!0);S(H)},N=function(Z){y?_(Z):(eA(DA(DA({},$),{color:Z})),o(Z))},Y=function(){if(U?.length>2){var Z=U?.map(function(tA,H){return DA(DA({},tA),{value:H===M-1?Qr(tA):mt(tA)})}),z=Z?.filter(function(tA,H){return H!==M});S(z)}},gA={hc:cA,setHc:iA,value:a,colors:U,config:x,degrees:L,onChange:o,previous:$,inputType:P,tinyColor:AA,isDarkMode:l,isGradient:y,squareWidth:c,hideOpacity:g,currentLeft:O,deletePoint:Y,showHexAlpha:d,squareHeight:u,setInputType:D,gradientType:w,handleChange:N,currentColor:K,selectedColor:M,defaultStyles:m,handleGradient:_,pickerIdSuffix:Q,createGradientStr:S};return v.createElement(Is.Provider,{value:gA},i)}function dA(){var e=b.useContext(Is);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%)"},rl=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])},nl=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 i=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)i.addColorStop(o/100,"hsl(".concat(A,", ").concat(o,"%, ").concat(r,"%)"));a.fillStyle=i,a.fill()}},[e,A,r,t])},al=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 i=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)i.addColorStop(o/100,"hsl(".concat(A,", ").concat(r,"%, ").concat(o,"%)"));a.fillStyle=i,a.fill()}},[e,A,r,t])},sl=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 i=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10){var l=SA({h:A,s:r,v:o});i.addColorStop(o/100,l.toHslString())}a.fillStyle=i,a.fill()}},[e,A,r,t])},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)},il=function(){var e=b.useRef(null),A=dA(),r=A.config,t=A.handleChange,n=A.squareWidth,a=A.hc,i=A.setHc,o=A.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],d=r.barSize;rl(e,n);var u=function(){g(!1)},p=function(){g(!0)},m=function(U){var F=Ge(U,d)*3.6,L=SA({h:F,s:a?.s,v:a?.v}),k=L.toRgb(),y=k.r,w=k.g,I=k.b;t("rgba(".concat(y,", ").concat(w,", ").concat(I,", ").concat(a.a,")")),i(or(or({},a),{h:F}))},Q=function(U){c&&m(U)},x=function(U){c||m(U)};return b.useEffect(function(){var U=function(){u()};return window.addEventListener("mouseup",U),function(){window.removeEventListener("mouseup",U)}},[]),v.createElement("div",{style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},onMouseMove:function(U){return Q(U)},id:"rbgcp-hue-wrap".concat(o)},v.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)}),v.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 ol(e,A,r){var t=0,n=0,a=0,i=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 i=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),i=o,{c:t,m:n,y:a,k:i}}var ll=function(e){var A=e.c,r=e.m,t=e.y,n=e.k,a=255*(1-A)*(1-n),i=255*(1-r)*(1-n),o=255*(1-t)*(1-n);return{r:a,g:i,b:o}},cl=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,i=e.hideOpacity,o=e.defaultStyles,l=e.pickerIdSuffix,c=b.useState(r),g=c[0],d=c[1],u=i?"25%":"20%";b.useEffect(function(){d(r)},[r]);var p=function(m){var Q=_e(parseFloat(m.target.value),0,a);d(Q),t(Q)};return v.createElement("div",{style:{width:u,flexShrink:1},id:"rbgcp-".concat(A,"-input-wrapper").concat(l)},v.createElement("input",{value:g,onChange:function(m){return p(m)},style:WA({},o.rbgcpInput),id:"rbgcp-".concat(A,"-input").concat(l)}),v.createElement("div",{style:WA({},o.rbgcpInputLabel)},A))},gl=function(e){var A=e.opacity,r=e.tinyColor,t=e.showHexAlpha,n=e.handleChange,a=e.defaultStyles,i=e.pickerIdSuffix,o=b.useState(""),l=o[0],c=o[1],g=r.toHex(),d=b.useState(g),u=d[0],p=d[1];b.useEffect(function(){l!=="hex"&&p(g)},[r,l,g]);var m=function(){c("hex")},Q=function(){c("")},x=function(k){var y=SA(k.target.value);if(p(k.target.value),y.isValid()){var w=y.toRgb(),I=w.r,K=w.g,M=w.b,O="rgba(".concat(I,", ").concat(K,", ").concat(M,", ").concat(A,")");n(O)}},U=t?"".concat(u).concat(cl(A)):u,F=t?"HEXA":"HEX",L=t?88:76;return v.createElement("div",{style:{width:L,flexShrink:0},id:"rbgcp-hex-input-wrapper".concat(i)},v.createElement("input",{onBlur:Q,onFocus:m,onChange:function(k){return x(k)},value:U?.toUpperCase(),id:"rbgcp-hex-input".concat(i),style:WA(WA({},a.rbgcpInput),a.rbgcpHexInput)}),v.createElement("div",{style:WA({},a.rbgcpInputLabel)},F))},ul=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,i=function(o){var l=o.r,c=o.g,g=o.b;t("rgba(".concat(l,", ").concat(c,", ").concat(g,", ").concat(A?.a,")"))};return v.createElement(v.Fragment,null,v.createElement(_A,{label:"R",max:255,value:A?.r,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return i({r:o,g:A?.g,b:A?.b})}}),v.createElement(_A,{label:"G",max:255,value:A?.g,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return i({r:A?.r,g:o,b:A?.b})}}),v.createElement(_A,{label:"B",max:255,value:A?.b,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return i({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,i=e.defaultStyles,o=e.pickerIdSuffix,l=t.toHsl(),c=l.s,g=l.l,d=function(p,m,Q){var x=SA({h:p,s:m,l:Q}).toRgb(),U=x.r,F=x.g,L=x.b;a("rgba(".concat(U,", ").concat(F,", ").concat(L,", ").concat(A?.a,")")),r(WA(WA({},A),{h:p}))},u=function(p){var m=SA(p).toRgb(),Q=m.r,x=m.g,U=m.b;a("rgba(".concat(Q,", ").concat(x,", ").concat(U,", ").concat(A?.a,")"))};return v.createElement(v.Fragment,null,v.createElement(_A,{label:"H",max:360,value:ee(A?.h),hideOpacity:n,defaultStyles:i,pickerIdSuffix:o,callback:function(p){return d(p,c,g)}}),v.createElement(_A,{label:"S",value:ee(c*100),hideOpacity:n,defaultStyles:i,pickerIdSuffix:o,callback:function(p){return u({h:A?.h,s:p,l:g})}}),v.createElement(_A,{label:"L",value:ee(g*100),hideOpacity:n,defaultStyles:i,pickerIdSuffix:o,callback:function(p){return u({h:A?.h,s:c,l:p})}}))},dl=function(e){var A=e.hc,r=e.setHc,t=e.hideOpacity,n=e.handleChange,a=e.defaultStyles,i=e.pickerIdSuffix,o=function(c,g,d){var u=SA({h:c,s:g,v:d}).toRgb(),p=u.r,m=u.g,Q=u.b;n("rgba(".concat(p,", ").concat(m,", ").concat(Q,", ").concat(A?.a,")")),r(WA(WA({},A),{h:c}))},l=function(c){var g=SA(c).toRgb(),d=g.r,u=g.g,p=g.b;n("rgba(".concat(d,", ").concat(u,", ").concat(p,", ").concat(A?.a,")"))};return v.createElement(v.Fragment,null,v.createElement(_A,{label:"H",max:360,value:ee(A?.h),hideOpacity:t,defaultStyles:a,pickerIdSuffix:i,callback:function(c){return o(c,A?.s,A?.v)}}),v.createElement(_A,{label:"S",hideOpacity:t,value:ee(A?.s*100),defaultStyles:a,pickerIdSuffix:i,callback:function(c){return l({h:A?.h,s:c,v:A?.v})}}),v.createElement(_A,{label:"V",hideOpacity:t,value:ee(A?.v*100),defaultStyles:a,pickerIdSuffix:i,callback:function(c){return l({h:A?.h,s:A?.s,v:c})}}))},fl=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,i=ol(A?.r,A?.g,A?.b),o=i.c,l=i.m,c=i.y,g=i.k,d=function(u){var p=ll(u),m=p.r,Q=p.g,x=p.b;t("rgba(".concat(m,", ").concat(Q,", ").concat(x,", ").concat(A?.a,")"))};return v.createElement(v.Fragment,null,v.createElement(_A,{label:"C",value:ee(o*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return d({c:u/100,m:l,y:c,k:g})}}),v.createElement(_A,{label:"M",value:ee(l*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return d({c:o,m:u/100,y:c,k:g})}}),v.createElement(_A,{label:"Y",value:ee(c*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return d({c:o,m:l,y:u/100,k:g})}}),v.createElement(_A,{label:"K",value:ee(g*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return d({c:o,m:l,y:c,k:u/100})}}))},hl=function(){var e=dA(),A=e.hc,r=e.setHc,t=e.inputType,n=e.tinyColor,a=e.hideOpacity,i=e.showHexAlpha,o=e.handleChange,l=e.defaultStyles,c=e.pickerIdSuffix;return v.createElement("div",{style:WA({columnGap:6,paddingTop:14,display:"flex",justifyContent:"space-between"},l.rbgcpInputsWrap),id:"rbgcp-inputs-wrap".concat(c)},t!=="cmyk"&&v.createElement(gl,{opacity:A?.a,tinyColor:n,showHexAlpha:i,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsl"&&v.createElement(Bl,{hc:A,setHc:r,tinyColor:n,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="rgb"&&v.createElement(ul,{hc:A,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsv"&&v.createElement(dl,{hc:A,setHc:r,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="cmyk"&&v.createElement(fl,{hc:A,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),!a&&v.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,")"))}}))},wl=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 i=n.createLinearGradient(0,0,0,t);i.addColorStop(0,"rgba(0, 0, 0, 0)"),i.addColorStop(1,"rgba(0, 0, 0, 1)"),n.fillStyle=i,n.fillRect(0,0,r,t)}}},[e,A,r,t])},Mr,Aa;function pl(){if(Aa)return Mr;Aa=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,i=/^0o[0-7]+$/i,o=parseInt,l=typeof Ft=="object"&&Ft&&Ft.Object===Object&&Ft,c=typeof self=="object"&&self&&self.Object===Object&&self,g=l||c||Function("return this")(),d=Object.prototype,u=d.toString,p=Math.max,m=Math.min,Q=function(){return g.Date.now()};function x(w,I,K){var M,O,R,P,D,W,$=0,eA=!1,AA=!1,fA=!0;if(typeof w!="function")throw new TypeError(e);I=y(I)||0,F(K)&&(eA=!!K.leading,AA="maxWait"in K,R=AA?p(y(K.maxWait)||0,I):R,fA="trailing"in K?!!K.trailing:fA);function sA(Z){var z=M,tA=O;return M=O=void 0,$=Z,P=w.apply(tA,z),P}function q(Z){return $=Z,D=setTimeout(S,I),eA?sA(Z):P}function cA(Z){var z=Z-W,tA=Z-$,H=I-z;return AA?m(H,R-tA):H}function iA(Z){var z=Z-W,tA=Z-$;return W===void 0||z>=I||z<0||AA&&tA>=R}function S(){var Z=Q();if(iA(Z))return _(Z);D=setTimeout(S,cA(Z))}function _(Z){return D=void 0,fA&&M?sA(Z):(M=O=void 0,P)}function N(){D!==void 0&&clearTimeout(D),$=0,M=W=O=D=void 0}function Y(){return D===void 0?P:_(Q())}function gA(){var Z=Q(),z=iA(Z);if(M=arguments,O=this,W=Z,z){if(D===void 0)return q(W);if(AA)return D=setTimeout(S,I),sA(W)}return D===void 0&&(D=setTimeout(S,I)),P}return gA.cancel=N,gA.flush=Y,gA}function U(w,I,K){var M=!0,O=!0;if(typeof w!="function")throw new TypeError(e);return F(K)&&(M="leading"in K?!!K.leading:M,O="trailing"in K?!!K.trailing:O),x(w,I,{leading:M,maxWait:I,trailing:O})}function F(w){var I=typeof w;return!!w&&(I=="object"||I=="function")}function L(w){return!!w&&typeof w=="object"}function k(w){return typeof w=="symbol"||L(w)&&u.call(w)==r}function y(w){if(typeof w=="number")return w;if(k(w))return A;if(F(w)){var I=typeof w.valueOf=="function"?w.valueOf():w;w=F(I)?I+"":I}if(typeof w!="string")return w===0?w:+w;w=w.replace(t,"");var K=a.test(w);return K||i.test(w)?o(w.slice(2),K?2:8):n.test(w)?A:+w}return Mr=U,Mr}var Cl=pl();const Ql=bs(Cl);var ve=function(){return ve=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},ve.apply(this,arguments)},ml=function(){var e,A,r=dA(),t=r.hc,n=r.config,a=r.squareWidth,i=r.squareHeight,o=r.handleChange,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.crossSize,d=b.useState(!1),u=d[0],p=d[1],m=b.useRef(null),Q=Wo(t?.s,t?.v*100,a,i,g),x=Q[0],U=Q[1],F=b.useState({x,y:U}),L=F[0],k=F[1];wl(m,t?.h,a,i),b.useEffect(function(){u||k({x:t?.v===0?L.x:x,y:U})},[x,U]);var y=function(R){var P=Ql(function(){var D=Zo(R,g),W=D[0],$=D[1];if(W&&$){var eA=Math.min(W+g/2,a-1),AA=Math.min($+g/2,i-1),fA=eA/a*100,sA=100-AA/i*100;k({x:sA===0?L?.x:W,y:$});var q=SA("hsva(".concat(t?.h,", ").concat(fA,"%, ").concat(sA,"%, ").concat(t?.a,")"));o(q.toRgbString())}},250);P()},w=function(){p(!1)},I=function(R){u&&y(R)},K=function(R){u||y(R)},M=function(){p(!0)},O=function(R){p(!0),y(R)};return b.useEffect(function(){var R=function(){w()};return window.addEventListener("mouseup",R),function(){window.removeEventListener("mouseup",R)}},[]),v.createElement("div",{style:{position:"relative",marginBottom:12},id:"rbgcp-square-wrapper".concat(c)},v.createElement("div",{onMouseUp:w,onTouchEnd:w,onMouseDown:O,onTouchStart:O,onMouseMove:function(R){return I(R)},id:"rbgcp-square".concat(c),style:{position:"relative",cursor:"ew-cross"}},v.createElement("div",{style:ve(ve(ve({},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:M,id:"rbgcp-square-handle".concat(c)}),v.createElement("div",{style:ve(ve({},l.rbgcpCanvasWrapper),{height:i}),id:"rbgcp-square-canvas-wrapper".concat(c),onClick:function(R){return K(R)}},v.createElement("canvas",{ref:m,width:"".concat(a,"px"),height:"".concat(i,"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)},vl=function(){var e=dA(),A=e.config,r=e.hc,t=r===void 0?{}:r,n=e.squareWidth,a=e.handleChange,i=e.defaultStyles,o=e.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],d=t.r,u=t.g,p=t.b,m="linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(".concat(d,",").concat(u,",").concat(p,",.5) 100%)"),Q=A.barSize,x=function(){g(!1)},U=function(){g(!0)},F=function(w){var I=Ge(w,Q)/100,K="rgba(".concat(d,", ").concat(u,", ").concat(p,", ").concat(I,")");a(K)},L=function(w){c&&F(w)},k=function(w){c||F(w)},y=n-18;return b.useEffect(function(){var w=function(){x()};return window.addEventListener("mouseup",w),function(){window.removeEventListener("mouseup",w)}},[]),v.createElement("div",{onMouseDown:U,onMouseMove:function(w){return L(w)},style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},id:"rbgcp-opacity-wrapper".concat(o)},v.createElement("div",{id:"rbgcp-opacity-checkered-bg".concat(o),style:ce(ce({},i.rbgcpCheckered),{width:"100%",height:14})}),v.createElement("div",{id:"rbgcp-opacity-handle".concat(o),style:ce(ce({},i.rbgcpHandle),{left:y*t?.a,top:-2})}),v.createElement("div",{style:ce(ce({},i.rbgcpOpacityOverlay),{background:m}),id:"rbgcp-opacity-overlay".concat(o),onClick:function(w){return k(w)}}))},Ul={CONTROLS:{SOLID:"Solid",GRADIENT:"Gradient"}},Fl=["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)"],bl=function(e){var A=e.presets,r=A===void 0?[]:A,t=dA(),n=t.value,a=t.onChange,i=t.isDarkMode,o=t.squareWidth,l=t.handleChange,c=t.pickerIdSuffix,g=function(){return r?.length>0?r?.slice(0,18):Fl},d=function(p){p?.includes("gradient")?a(p):l(p)},u=function(p){if(!p||i)return"";var m=p?.replace(" ","");return m==="rgba(255,255,255,1)"?"1px solid #96959c":""};return v.createElement("div",{style:{marginTop:14,display:"flex",justifyContent:"space-between"},id:"rbgcp-footer-wrapper".concat(c)},v.createElement("div",{style:{width:50,height:50,flexShrink:0,borderRadius:6,background:n,border:u(n)},id:"rbgcp-preview".concat(c)}),v.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,m){return v.createElement("div",{key:"".concat(p,"-").concat(m),id:"rbgcp-preset-".concat(m,"-wrapper").concat(c),style:{width:"calc(100% / 9)",paddingLeft:3}},v.createElement("div",{style:{height:23.5,width:"100%",background:p,borderRadius:4,border:u(p)},onClick:function(){return d(p)},id:"rbgcp-preset-".concat(m).concat(c)}))})))},J=function(){return J=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},J.apply(this,arguments)},El=function(){var e=dA().defaultStyles,A={fill:"none",strokeWidth:"1.8px"};return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},v.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J({},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"}))},yl=function(e){var A=e.color,r=dA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"};return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:14}},v.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},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"}))},xl=function(e){var A=e.color,r=dA().defaultStyles,t=A??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},v.createElement("circle",{style:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"9"}),v.createElement("circle",{style:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"5"}))},Il=function(e){var A=e.color,r=dA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"},a={strokeWidth:"1.8px"};return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},v.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"3.74 2.75 3.74 12.69 0.9 12.71 6.59 12.71"}),v.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"3.74",y1:"17.26",x2:"3.74",y2:"15.21"}),v.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.1 17.25 10.1 7.31 12.95 7.29 7.26 7.29"}),v.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"10.1",y1:"2.74",x2:"10.1",y2:"4.79"}),v.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"16.26 2.75 16.26 12.69 13.41 12.71 19.1 12.71"}),v.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"16.26",y1:"17.26",x2:"16.26",y2:"15.21"}))},Hl=function(e){var A=e.color,r=dA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"};return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},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"}),v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},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"}),v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:J(J(J({},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"}))},Sl=function(e){var A=e.color,r=dA().defaultStyles,t=A??"",n={strokeMiterlimit:10,strokeWidth:"0.5px"};return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},v.createElement("circle",{style:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"9.36",cy:"5.07",r:"1.71"}),v.createElement("circle",{style:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"13.93",cy:"6.91",r:"1.71"}),v.createElement("circle",{style:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.8",cy:"7.55",r:"1.71"}),v.createElement("circle",{style:J(J({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.45",cy:"12.04",r:"1.71"}),v.createElement("path",{style:J(J(J(J({},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"}))},Ll=function(e){var A=e.color,r=dA().defaultStyles,t=A??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},v.createElement("polyline",{strokeLinecap:"round",style:J(J(J({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"13.86 2.01 1.7 16.99 18.77 16.99"}),v.createElement("polyline",{strokeLinecap:"round",style:J(J(J({},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"}))},kl=function(){var e=dA().defaultStyles;return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:20,marginRight:1}},v.createElement("path",{style:J({},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"}),v.createElement("path",{style:J({},e.rbgcpControlIcon2),d:"M4.79,8.09V7H9.16V8.09H7.59V13H6.38V8.09Z"}),v.createElement("path",{style:J({},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"}),v.createElement("path",{style:J({},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"}))},Ml=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 i=n.current;return a&&(n.current.id=t,document.body.appendChild(n.current)),function(){a&&i.parentElement&&i.parentElement.removeChild(i)}},[t]),Zi.createPortal(r,n.current)};const Kl=b.memo(Ml);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 qA(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(i){i(a)})}return new(r||(r=Promise))(function(a,i){function o(g){try{c(t.next(g))}catch(d){i(d)}}function l(g){try{c(t.throw(g))}catch(d){i(d)}}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,i;return i={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;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 yt(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})(),mr=function(e,A){return ie.fromClientRect(e,A.getBoundingClientRect())},Tl=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)},vr=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 i=e[n];i<=65535?t.push(i):(i-=65536,t.push((i>>10)+55296,i%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Dl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var xt=0;xt<ea.length;xt++)Dl[ea.charCodeAt(xt)]=xt;var ta="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ze=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var It=0;It<ta.length;It++)ze[ta.charCodeAt(It)]=It;var Ol=function(e){var A=e.length*.75,r=e.length,t,n=0,a,i,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=ze[e.charCodeAt(t)],i=ze[e.charCodeAt(t+1)],o=ze[e.charCodeAt(t+2)],l=ze[e.charCodeAt(t+3)],g[n++]=a<<2|i>>4,g[n++]=(i&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},Rl=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},Nl=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},Ee=5,Nn=11,Kr=2,_l=Nn-Ee,Hs=65536>>Ee,Gl=1<<Ee,Tr=Gl-1,jl=1024>>Ee,Vl=Hs+jl,Pl=Vl,Xl=32,Jl=Pl+Xl,Wl=65536>>Nn,Yl=1<<_l,Zl=Yl-1,ra=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},ql=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},zl=function(e,A){var r=Ol(e),t=Array.isArray(r)?Nl(r):new Uint32Array(r),n=Array.isArray(r)?Rl(r):new Uint16Array(r),a=24,i=ra(n,a/2,t[4]/2),o=t[5]===2?ra(n,(a+t[4])/2):ql(t,Math.ceil((a+t[4])/4));return new $l(t[0],t[1],t[2],t[3],i,o)},$l=(function(){function e(A,r,t,n,a,i){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=i}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>Ee],r=(r<<Kr)+(A&Tr),this.data[r];if(A<=65535)return r=this.index[Hs+(A-55296>>Ee)],r=(r<<Kr)+(A&Tr),this.data[r];if(A<this.highStart)return r=Jl-Wl+(A>>Nn),r=this.index[r],r+=A>>Ee&Zl,r=this.index[r],r=(r<<Kr)+(A&Tr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ac=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ht=0;Ht<na.length;Ht++)Ac[na.charCodeAt(Ht)]=Ht;var ec="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc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UAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAc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AAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4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AeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQ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AFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcA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ArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAE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FAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACs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gAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAI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XAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",aa=50,tc=1,Ss=2,Ls=3,rc=4,nc=5,sa=7,ks=8,ia=9,ue=10,hn=11,oa=12,wn=13,ac=14,$e=15,pn=16,St=17,Je=18,sc=19,la=20,Cn=21,We=22,Dr=23,Ie=24,GA=25,At=26,et=27,He=28,ic=29,Ue=30,oc=31,Lt=32,kt=33,Qn=34,mn=35,vn=36,ft=37,Un=38,qt=39,zt=40,Or=41,Ms=42,lc=43,cc=[9001,65288],Ks="!",oA="×",Mt="÷",Fn=zl(ec),ne=[Ue,vn],bn=[tc,Ss,Ls,nc],Ts=[ue,ks],ca=[et,At],gc=bn.concat(Ts),ga=[Un,qt,zt,Qn,mn],uc=[$e,wn],Bc=function(e,A){A===void 0&&(A="strict");var r=[],t=[],n=[];return e.forEach(function(a,i){var o=Fn.get(a);if(o>aa?(n.push(!0),o-=aa):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return t.push(i),r.push(pn);if(o===rc||o===hn){if(i===0)return t.push(i),r.push(Ue);var l=r[i-1];return gc.indexOf(l)===-1?(t.push(t[i-1]),r.push(l)):(t.push(i),r.push(Ue))}if(t.push(i),o===oc)return r.push(A==="strict"?Cn:ft);if(o===Ms||o===ic)return r.push(Ue);if(o===lc)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(ft):r.push(Ue);r.push(o)}),[t,r,n]},Rr=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 i=t[a];if(i===A)return!0;if(i!==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 i=t[l];if(i===A)return!0;if(i!==ue)break}if(o!==ue)break}return!1},ua=function(e,A){for(var r=e;r>=0;){var t=A[r];if(t===ue)r--;else return t}return 0},dc=function(e,A,r,t,n){if(r[t]===0)return oA;var a=t-1;if(Array.isArray(n)&&n[a]===!0)return oA;var i=a-1,o=a+1,l=A[a],c=i>=0?A[i]:0,g=A[o];if(l===Ss&&g===Ls)return oA;if(bn.indexOf(l)!==-1)return Ks;if(bn.indexOf(g)!==-1||Ts.indexOf(g)!==-1)return oA;if(ua(a,A)===ks)return Mt;if(Fn.get(e[a])===hn||(l===Lt||l===kt)&&Fn.get(e[o])===hn||l===sa||g===sa||l===ia||[ue,wn,$e].indexOf(l)===-1&&g===ia||[St,Je,sc,Ie,He].indexOf(g)!==-1||ua(a,A)===We||Rr(Dr,We,a,A)||Rr([St,Je],Cn,a,A)||Rr(oa,oa,a,A))return oA;if(l===ue)return Mt;if(l===Dr||g===Dr)return oA;if(g===pn||l===pn)return Mt;if([wn,$e,Cn].indexOf(g)!==-1||l===ac||c===vn&&uc.indexOf(l)!==-1||l===He&&g===vn||g===la||ne.indexOf(g)!==-1&&l===GA||ne.indexOf(l)!==-1&&g===GA||l===et&&[ft,Lt,kt].indexOf(g)!==-1||[ft,Lt,kt].indexOf(l)!==-1&&g===At||ne.indexOf(l)!==-1&&ca.indexOf(g)!==-1||ca.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,He,Ie].indexOf(g)!==-1)return oA;if([GA,He,Ie,St,Je].indexOf(g)!==-1)for(var d=a;d>=0;){var u=A[d];if(u===GA)return oA;if([He,Ie].indexOf(u)!==-1)d--;else break}if([et,At].indexOf(g)!==-1)for(var d=[St,Je].indexOf(l)!==-1?i:a;d>=0;){var u=A[d];if(u===GA)return oA;if([He,Ie].indexOf(u)!==-1)d--;else break}if(Un===l&&[Un,qt,Qn,mn].indexOf(g)!==-1||[qt,Qn].indexOf(l)!==-1&&[qt,zt].indexOf(g)!==-1||[zt,mn].indexOf(l)!==-1&&g===zt||ga.indexOf(l)!==-1&&[la,At].indexOf(g)!==-1||ga.indexOf(g)!==-1&&l===et||ne.indexOf(l)!==-1&&ne.indexOf(g)!==-1||l===Ie&&ne.indexOf(g)!==-1||ne.concat(GA).indexOf(l)!==-1&&g===We&&cc.indexOf(e[o])===-1||ne.concat(GA).indexOf(g)!==-1&&l===Je)return oA;if(l===Or&&g===Or){for(var p=r[a],m=1;p>0&&(p--,A[p]===Or);)m++;if(m%2!==0)return oA}return l===Lt&&g===kt?oA:Mt},fc=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,Ue,Ms].indexOf(o)!==-1?ft:o}));var i=A.wordBreak==="keep-all"?a.map(function(o,l){return o&&e[l]>=19968&&e[l]<=40959}):void 0;return[t,n,i]},hc=(function(){function e(A,r,t,n){this.codePoints=A,this.required=r===Ks,this.start=t,this.end=n}return e.prototype.slice=function(){return bA.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),wc=function(e,A){var r=vr(e),t=fc(r,A),n=t[0],a=t[1],i=t[2],o=r.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var g=oA;c<o&&(g=dc(r,a,n,++c,i))===oA;);if(g!==oA||c===o){var d=new hc(r,g,l,c);return l=c,{value:d,done:!1}}return{done:!0,value:null}}}},pc=1,Cc=2,vt=4,Ba=8,lr=10,da=47,it=92,Qc=9,mc=32,Kt=34,Ye=61,vc=35,Uc=36,Fc=37,Tt=39,Dt=40,Ze=41,bc=95,NA=45,Ec=33,yc=60,xc=62,Ic=64,Hc=91,Sc=93,Lc=61,kc=123,Ot=63,Mc=125,fa=124,Kc=126,Tc=128,ha=65533,Nr=42,be=43,Dc=44,Oc=58,Rc=59,ht=46,Nc=0,_c=8,Gc=11,jc=14,Vc=31,Pc=127,zA=-1,Ds=48,Os=97,Rs=101,Xc=102,Jc=117,Wc=122,Ns=65,_s=69,Gs=70,Yc=85,Zc=90,MA=function(e){return e>=Ds&&e<=57},qc=function(e){return e>=55296&&e<=57343},Se=function(e){return MA(e)||e>=Ns&&e<=Gs||e>=Os&&e<=Xc},zc=function(e){return e>=Os&&e<=Wc},$c=function(e){return e>=Ns&&e<=Zc},Ag=function(e){return zc(e)||$c(e)},eg=function(e){return e>=Tc},Rt=function(e){return e===lr||e===Qc||e===mc},cr=function(e){return Ag(e)||eg(e)||e===bc},wa=function(e){return cr(e)||MA(e)||e===NA},tg=function(e){return e>=Nc&&e<=_c||e===Gc||e>=jc&&e<=Vc||e===Pc},ge=function(e,A){return e!==it?!1:A!==lr},Nt=function(e,A,r){return e===NA?cr(A)||ge(A,r):cr(e)?!0:!!(e===it&&ge(e,A))},_r=function(e,A,r){return e===be||e===NA?MA(A)?!0:A===ht&&MA(r):MA(e===ht?A:e)},rg=function(e){var A=0,r=1;(e[A]===be||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]===ht&&A++;for(var a=[];MA(e[A]);)a.push(e[A++]);var i=a.length,o=i?parseInt(bA.apply(void 0,a),10):0;(e[A]===_s||e[A]===Rs)&&A++;var l=1;(e[A]===be||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,-i))*Math.pow(10,l*g)},ng={type:2},ag={type:3},sg={type:4},ig={type:13},og={type:8},lg={type:21},cg={type:9},gg={type:10},ug={type:11},Bg={type:12},dg={type:14},_t={type:23},fg={type:1},hg={type:25},wg={type:24},pg={type:26},Cg={type:27},Qg={type:28},mg={type:29},vg={type:31},En={type:32},js=(function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(vr(A))},e.prototype.read=function(){for(var A=[],r=this.consumeToken();r!==En;)A.push(r),r=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Kt:return this.consumeStringToken(Kt);case vc:var r=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(wa(r)||ge(t,n)){var a=Nt(r,t,n)?Cc:pc,i=this.consumeName();return{type:5,value:i,flags:a}}break;case Uc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),ig;break;case Tt:return this.consumeStringToken(Tt);case Dt:return ng;case Ze:return ag;case Nr:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),dg;break;case be:if(_r(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Dc:return sg;case NA:var o=A,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(_r(o,l,c))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Nt(o,l,c))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(l===NA&&c===xc)return this.consumeCodePoint(),this.consumeCodePoint(),wg;break;case ht:if(_r(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case da:if(this.peekCodePoint(0)===Nr)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===Nr&&(g=this.consumeCodePoint(),g===da))return this.consumeToken();if(g===zA)return this.consumeToken()}break;case Oc:return pg;case Rc:return Cg;case yc:if(this.peekCodePoint(0)===Ec&&this.peekCodePoint(1)===NA&&this.peekCodePoint(2)===NA)return this.consumeCodePoint(),this.consumeCodePoint(),hg;break;case Ic:var d=this.peekCodePoint(0),u=this.peekCodePoint(1),p=this.peekCodePoint(2);if(Nt(d,u,p)){var i=this.consumeName();return{type:7,value:i}}break;case Hc:return Qg;case it:if(ge(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case Sc:return mg;case Lc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),og;break;case kc:return ug;case Mc:return Bg;case Jc:case Yc:var m=this.peekCodePoint(0),Q=this.peekCodePoint(1);return m===be&&(Se(Q)||Q===Ot)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case fa:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),cg;if(this.peekCodePoint(0)===fa)return this.consumeCodePoint(),lg;break;case Kc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),gg;break;case zA:return En}return Rt(A)?(this.consumeWhiteSpace(),vg):MA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):cr(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();Se(r)&&A.length<6;)A.push(r),r=this.consumeCodePoint();for(var t=!1;r===Ot&&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===Ot?Ds:l})),16),a=parseInt(bA.apply(void 0,A.map(function(l){return l===Ot?Gs:l})),16);return{type:30,start:n,end:a}}var i=parseInt(bA.apply(void 0,A),16);if(this.peekCodePoint(0)===NA&&Se(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var o=[];Se(r)&&o.length<6;)o.push(r),r=this.consumeCodePoint();var a=parseInt(bA.apply(void 0,o),16);return{type:30,start:i,end:a}}else return{type:30,start:i,end:i}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Dt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Dt?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===zA)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Tt||r===Kt){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===zA||this.peekCodePoint(0)===Ze)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),_t)}for(;;){var n=this.consumeCodePoint();if(n===zA||n===Ze)return{type:22,value:bA.apply(void 0,A)};if(Rt(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===zA||this.peekCodePoint(0)===Ze?(this.consumeCodePoint(),{type:22,value:bA.apply(void 0,A)}):(this.consumeBadUrlRemnants(),_t);if(n===Kt||n===Tt||n===Dt||tg(n))return this.consumeBadUrlRemnants(),_t;if(n===it)if(ge(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),_t;else A.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;Rt(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===Ze||A===zA)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===zA||n===void 0||n===A)return r+=this.consumeStringSlice(t),{type:0,value:r};if(n===lr)return this._value.splice(0,t),fg;if(n===it){var a=this._value[t+1];a!==zA&&a!==void 0&&(a===lr?(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=vt,t=this.peekCodePoint(0);for((t===be||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===ht&&MA(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Ba;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((t===_s||t===Rs)&&((n===be||n===NA)&&MA(a)||MA(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Ba;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[rg(A),r]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),r=A[0],t=A[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),i=this.peekCodePoint(2);if(Nt(n,a,i)){var o=this.consumeName();return{type:15,number:r,flags:t,unit:o}}return n===Fc?(this.consumeCodePoint(),{type:16,number:r,flags:t}):{type:17,number:r,flags:t}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Se(A)){for(var r=bA(A);Se(this.peekCodePoint(0))&&r.length<6;)r+=bA(this.consumeCodePoint());Rt(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(r,16);return t===0||qc(t)||t>1114111?ha:t}return A===zA?ha:A},e.prototype.consumeName=function(){for(var A="";;){var r=this.consumeCodePoint();if(wa(r))A+=bA(r);else if(ge(r,this.peekCodePoint(0)))A+=bA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),A}},e})(),Vs=(function(){function e(A){this._tokens=A}return e.create=function(A){var r=new js;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||Fg(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"?En:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e})(),Ut=function(e){return e.type===15},Ve=function(e){return e.type===17},BA=function(e){return e.type===20},Ug=function(e){return e.type===0},yn=function(e,A){return BA(e)&&e.value===A},Ps=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},Fg=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},EA=function(e){return e.type===16||pe(e)},Xs=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},LA={type:17,number:0,flags:vt},_n={type:16,number:50,flags:vt},Be={type:16,number:100,flags:vt},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(Ut(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},Js="deg",Ws="grad",Ys="rad",Zs="turn",Ur={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case Js:return Math.PI*A.number/180;case Ws:return Math.PI/200*A.number;case Ys:return A.number;case Zs:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},qs=function(e){return e.type===15&&(e.unit===Js||e.unit===Ws||e.unit===Ys||e.unit===Zs)},zs=function(e){var A=e.filter(BA).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=bg[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),i=A.value.substring(3,4);return de(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,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),i=A.value.substring(6,8);return de(parseInt(t,16),parseInt(n,16),parseInt(a,16),parseInt(i,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},pa=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},Ca=function(e,A){var r=A.filter(je);if(r.length===3){var t=r.map(pa),n=t[0],a=t[1],i=t[2];return de(n,a,i,1)}if(r.length===4){var o=r.map(pa),n=o[0],a=o[1],i=o[2],l=o[3];return de(n,a,i,l)}return 0};function Gr(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 Qa=function(e,A){var r=A.filter(je),t=r[0],n=r[1],a=r[2],i=r[3],o=(t.type===17?XA(t.number):Ur.parse(e,t))/(Math.PI*2),l=EA(n)?n.number/100:0,c=EA(a)?a.number/100:0,g=typeof i<"u"&&EA(i)?wA(i,1):1;if(l===0)return de(c*255,c*255,c*255,1);var d=c<=.5?c*(l+1):c+l-c*l,u=c*2-d,p=Gr(u,d,o+1/3),m=Gr(u,d,o),Q=Gr(u,d,o-1/3);return de(p*255,m*255,Q*255,g)},bg={hsl:Qa,hsla:Qa,rgb:Ca,rgba:Ca},ot=function(e,A){return he.parse(e,Vs.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},Eg={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(BA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},yg={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Fr=function(e,A){var r=he.parse(e,A[0]),t=A[1];return t&&EA(t)?{color:r,stop:t}:{color:r,stop:null}},ma=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,i=0;i<e.length;i++){var o=e[i].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,i=0;i<n.length;i++){var g=n[i];if(g===null)c===null&&(c=i);else if(c!==null){for(var d=i-c,u=n[c-1],p=(g-u)/(d+1),m=1;m<=d;m++)n[c+m-1]=p*m;c=null}}return e.map(function(Q,x){var U=Q.color;return{color:U,stop:Math.max(Math.min(1,n[x]/A),0)}})},xg=function(e,A,r){var t=A/2,n=r/2,a=wA(e[0],A)-t,i=n-wA(e[1],r);return(Math.atan2(i,a)+Math.PI*2)%(Math.PI*2)},Ig=function(e,A,r){var t=typeof e=="number"?e:xg(e,A,r),n=Math.abs(A*Math.sin(t))+Math.abs(r*Math.cos(t)),a=A/2,i=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,i-l,i+l]},ZA=function(e,A){return Math.sqrt(e*e+A*A)},va=function(e,A,r,t,n){var a=[[0,0],[0,A],[e,0],[e,A]];return a.reduce(function(i,o){var l=o[0],c=o[1],g=ZA(r-l,t-c);return(n?g<i.optimumDistance:g>i.optimumDistance)?{optimumCorner:o,optimumDistance:g}:i},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Hg=function(e,A,r,t,n){var a=0,i=0;switch(e.size){case 0:e.shape===0?a=i=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)),i=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(e.shape===0)a=i=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=va(t,n,A,r,!0),c=l[0],g=l[1];a=ZA(c-A,(g-r)/o),i=o*a}break;case 1:e.shape===0?a=i=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)),i=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(e.shape===0)a=i=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)),d=va(t,n,A,r,!1),c=d[0],g=d[1];a=ZA(c-A,(g-r)/o),i=o*a}break}return Array.isArray(e.size)&&(a=wA(e.size[0],t),i=e.size.length===2?wA(e.size[1],n):a),[a,i]},Sg=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var i=n[0];if(i.type===20&&i.value==="to"){r=zs(n);return}else if(qs(i)){r=Ur.parse(e,i);return}}var o=Fr(e,n);t.push(o)}),{angle:r,stops:t,type:1}},Gt=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var i=n[0];if(i.type===20&&["top","left","right","bottom"].indexOf(i.value)!==-1){r=zs(n);return}else if(qs(i)){r=(Ur.parse(e,i)+XA(270))%XA(360);return}}var o=Fr(e,n);t.push(o)}),{angle:r,stops:t,type:1}},Lg=function(e,A){var r=XA(180),t=[],n=1,a=0,i=3,o=[];return te(A).forEach(function(l,c){var g=l[0];if(c===0){if(BA(g)&&g.value==="linear"){n=1;return}else if(BA(g)&&g.value==="radial"){n=2;return}}if(g.type===18){if(g.name==="from"){var d=he.parse(e,g.values[0]);t.push({stop:LA,color:d})}else if(g.name==="to"){var d=he.parse(e,g.values[0]);t.push({stop:Be,color:d})}else if(g.name==="color-stop"){var u=g.values.filter(je);if(u.length===2){var d=he.parse(e,u[1]),p=u[0];Ve(p)&&t.push({stop:{type:16,number:p.number*100,flags:p.flags},color:d})}}}}),n===1?{angle:(r+XA(180))%XA(360),stops:t,type:n}:{size:i,shape:a,stops:t,position:o,type:n}},$s="closest-side",Ai="farthest-side",ei="closest-corner",ti="farthest-corner",ri="circle",ni="ellipse",ai="cover",si="contain",kg=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(i,o){var l=!0;if(o===0){var c=!1;l=i.reduce(function(d,u){if(c)if(BA(u))switch(u.value){case"center":return a.push(_n),d;case"top":case"left":return a.push(LA),d;case"right":case"bottom":return a.push(Be),d}else(EA(u)||pe(u))&&a.push(u);else if(BA(u))switch(u.value){case ri:return r=0,!1;case ni:return r=1,!1;case"at":return c=!0,!1;case $s:return t=0,!1;case ai:case Ai:return t=1,!1;case si:case ei:return t=2,!1;case ti:return t=3,!1}else if(pe(u)||EA(u))return Array.isArray(t)||(t=[]),t.push(u),!1;return d},l)}if(l){var g=Fr(e,i);n.push(g)}}),{size:t,shape:r,stops:n,position:a,type:2}},jt=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(i,o){var l=!0;if(o===0?l=i.reduce(function(g,d){if(BA(d))switch(d.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(EA(d)||pe(d))return a.push(d),!1;return g},l):o===1&&(l=i.reduce(function(g,d){if(BA(d))switch(d.value){case ri:return r=0,!1;case ni:return r=1,!1;case si:case $s:return t=0,!1;case Ai:return t=1,!1;case ei:return t=2,!1;case ai:case ti:return t=3,!1}else if(pe(d)||EA(d))return Array.isArray(t)||(t=[]),t.push(d),!1;return g},l)),l){var c=Fr(e,i);n.push(c)}}),{size:t,shape:r,stops:n,position:a,type:2}},Mg=function(e){return e.type===1},Kg=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=ii[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 Tg(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!ii[e.name])}var ii={"linear-gradient":Sg,"-moz-linear-gradient":Gt,"-ms-linear-gradient":Gt,"-o-linear-gradient":Gt,"-webkit-linear-gradient":Gt,"radial-gradient":kg,"-moz-radial-gradient":jt,"-ms-radial-gradient":jt,"-o-radial-gradient":jt,"-webkit-radial-gradient":jt,"-webkit-gradient":Lg},Dg={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)&&Tg(t)}).map(function(t){return Gn.parse(e,t)})}},Og={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(BA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Rg={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return te(A).map(function(r){return r.filter(EA)}).map(Xs)}},Ng={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(BA).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 Gg={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(jg)})}},jg=function(e){return BA(e)||EA(e)},br=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Vg=br("top"),Pg=br("right"),Xg=br("bottom"),Jg=br("left"),Er=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,r){return Xs(r.filter(EA))}}},Wg=Er("top-left"),Yg=Er("top-right"),Zg=Er("bottom-right"),qg=Er("bottom-left"),yr=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}}},zg=yr("top"),$g=yr("right"),Au=yr("bottom"),eu=yr("left"),xr=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,r){return Ut(r)?r.number:0}}},tu=xr("top"),ru=xr("right"),nu=xr("bottom"),au=xr("left"),su={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},iu={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){return A==="rtl"?1:0}},ou={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(BA).reduce(function(r,t){return r|lu(t.value)},0)}},lu=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},cu={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}},gu={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}},gr;(function(e){e.NORMAL="normal",e.STRICT="strict"})(gr||(gr={}));var uu={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="strict"?gr.STRICT:gr.NORMAL}},Bu={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ua=function(e,A){return BA(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:EA(e)?wA(e,A):A},du={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)}},fu={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}}},Ir=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},hu=Ir("top"),wu=Ir("right"),pu=Ir("bottom"),Cu=Ir("left"),Qu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(BA).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}})}},mu={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="break-word"?"break-word":"normal"}},Hr=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},vu=Hr("top"),Uu=Hr("right"),Fu=Hr("bottom"),bu=Hr("left"),Eu={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}}},yu={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}},xu={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&yn(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 i=r[a];pe(i)?(n===0?t.offsetX=i:n===1?t.offsetY=i:t.blur=i,n++):t.color=he.parse(e,i)}return t})}},Iu={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}},Hu={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=ku[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return r(A.values)}return null}},Su=function(e){var A=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return A.length===6?A:null},Lu=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 i=A[12],o=A[13];return A[14],A[15],A.length===16?[r,t,n,a,i,o]:null},ku={matrix:Su,matrix3d:Lu},Fa={type:16,number:50,flags:vt},Mu=[Fa,Fa],Ku={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var r=A.filter(EA);return r.length!==2?Mu:[r[0],r[1]]}},Tu={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 Du={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}}},Ou={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")}},oi={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")}},Ru={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:1}},Nu={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(BA).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})}},Gu={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+"'"})}},ju={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Vu={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:BA(A)&&A.value==="bold"?700:400}},Pu={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(BA).map(function(r){return r.value})}},Xu={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"}}},yA=function(e,A){return(e&A)!==0},Ju={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}},Wu={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(Ps),a=0;a<n.length;a++){var i=n[a],o=n[a+1];if(i.type===20){var l=o&&Ve(o)?o.number:1;t.push({counter:i.value,increment:l})}}return t}},Yu={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var r=[],t=A.filter(Ps),n=0;n<t.length;n++){var a=t[n],i=t[n+1];if(BA(a)&&a.value!=="none"){var o=i&&Ve(i)?i.number:0;r.push({counter:a.value,reset:o})}}return r}},Zu={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(Ut).map(function(r){return oi.parse(e,r)})}},qu={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(Ug);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var i=n[a].value,o=n[a+1].value;t.push({open:i,close:o})}return t}},ba=function(e,A,r){if(!e)return"";var t=e[Math.min(A,e.length-1)];return t?r?t.open:t.close:""},zu={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&yn(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 i=r[a];yn(i,"inset")?t.inset=!0:pe(i)?(n===0?t.offsetX=i:n===1?t.offsetY=i:n===2?t.blur=i:t.spread=i,n++):t.color=he.parse(e,i)}return t})}},$u={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var r=[0,1,2],t=[];return A.filter(BA).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}},AB={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},eB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Ut(A)?A.number:0}},tB=(function(){function e(A,r){var t,n;this.animationDuration=V(A,Zu,r.animationDuration),this.backgroundClip=V(A,Eg,r.backgroundClip),this.backgroundColor=V(A,yg,r.backgroundColor),this.backgroundImage=V(A,Dg,r.backgroundImage),this.backgroundOrigin=V(A,Og,r.backgroundOrigin),this.backgroundPosition=V(A,Rg,r.backgroundPosition),this.backgroundRepeat=V(A,Ng,r.backgroundRepeat),this.backgroundSize=V(A,Gg,r.backgroundSize),this.borderTopColor=V(A,Vg,r.borderTopColor),this.borderRightColor=V(A,Pg,r.borderRightColor),this.borderBottomColor=V(A,Xg,r.borderBottomColor),this.borderLeftColor=V(A,Jg,r.borderLeftColor),this.borderTopLeftRadius=V(A,Wg,r.borderTopLeftRadius),this.borderTopRightRadius=V(A,Yg,r.borderTopRightRadius),this.borderBottomRightRadius=V(A,Zg,r.borderBottomRightRadius),this.borderBottomLeftRadius=V(A,qg,r.borderBottomLeftRadius),this.borderTopStyle=V(A,zg,r.borderTopStyle),this.borderRightStyle=V(A,$g,r.borderRightStyle),this.borderBottomStyle=V(A,Au,r.borderBottomStyle),this.borderLeftStyle=V(A,eu,r.borderLeftStyle),this.borderTopWidth=V(A,tu,r.borderTopWidth),this.borderRightWidth=V(A,ru,r.borderRightWidth),this.borderBottomWidth=V(A,nu,r.borderBottomWidth),this.borderLeftWidth=V(A,au,r.borderLeftWidth),this.boxShadow=V(A,zu,r.boxShadow),this.color=V(A,su,r.color),this.direction=V(A,iu,r.direction),this.display=V(A,ou,r.display),this.float=V(A,cu,r.cssFloat),this.fontFamily=V(A,Gu,r.fontFamily),this.fontSize=V(A,ju,r.fontSize),this.fontStyle=V(A,Xu,r.fontStyle),this.fontVariant=V(A,Pu,r.fontVariant),this.fontWeight=V(A,Vu,r.fontWeight),this.letterSpacing=V(A,gu,r.letterSpacing),this.lineBreak=V(A,uu,r.lineBreak),this.lineHeight=V(A,Bu,r.lineHeight),this.listStyleImage=V(A,du,r.listStyleImage),this.listStylePosition=V(A,fu,r.listStylePosition),this.listStyleType=V(A,xn,r.listStyleType),this.marginTop=V(A,hu,r.marginTop),this.marginRight=V(A,wu,r.marginRight),this.marginBottom=V(A,pu,r.marginBottom),this.marginLeft=V(A,Cu,r.marginLeft),this.opacity=V(A,Ru,r.opacity);var a=V(A,Qu,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=V(A,mu,r.overflowWrap),this.paddingTop=V(A,vu,r.paddingTop),this.paddingRight=V(A,Uu,r.paddingRight),this.paddingBottom=V(A,Fu,r.paddingBottom),this.paddingLeft=V(A,bu,r.paddingLeft),this.paintOrder=V(A,$u,r.paintOrder),this.position=V(A,yu,r.position),this.textAlign=V(A,Eu,r.textAlign),this.textDecorationColor=V(A,Nu,(t=r.textDecorationColor)!==null&&t!==void 0?t:r.color),this.textDecorationLine=V(A,_u,(n=r.textDecorationLine)!==null&&n!==void 0?n:r.textDecoration),this.textShadow=V(A,xu,r.textShadow),this.textTransform=V(A,Iu,r.textTransform),this.transform=V(A,Hu,r.transform),this.transformOrigin=V(A,Ku,r.transformOrigin),this.visibility=V(A,Tu,r.visibility),this.webkitTextStrokeColor=V(A,AB,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=V(A,eB,r.webkitTextStrokeWidth),this.wordBreak=V(A,Du,r.wordBreak),this.zIndex=V(A,Ou,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 yA(this.display,4)||yA(this.display,33554432)||yA(this.display,268435456)||yA(this.display,536870912)||yA(this.display,67108864)||yA(this.display,134217728)},e})(),rB=(function(){function e(A,r){this.content=V(A,Ju,r.content),this.quotes=V(A,qu,r.quotes)}return e})(),Ea=(function(){function e(A,r){this.counterIncrement=V(A,Wu,r.counterIncrement),this.counterReset=V(A,Yu,r.counterReset)}return e})(),V=function(e,A,r){var t=new js,n=r!==null&&typeof r<"u"?r.toString():A.initialValue;t.write(n);var a=new Vs(t.read());switch(A.type){case 2:var i=a.parseComponentValue();return A.parse(e,BA(i)?i.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 Ur.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 EA(l)?l:LA;case"time":return oi.parse(e,a.parseComponentValue())}break}},nB="data-html2canvas-debug",aB=function(e){var A=e.getAttribute(nB);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=aB(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 tB(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=mr(this.context,r),In(r,4)&&(this.flags|=16)}return e})(),sB="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAg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TUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6w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GVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQAB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AA4AAAAAAAAAAAA=",ya="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Vt=0;Vt<ya.length;Vt++)rt[ya.charCodeAt(Vt)]=Vt;var iB=function(e){var A=e.length*.75,r=e.length,t,n=0,a,i,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)],i=rt[e.charCodeAt(t+1)],o=rt[e.charCodeAt(t+2)],l=rt[e.charCodeAt(t+3)],g[n++]=a<<2|i>>4,g[n++]=(i&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},oB=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},lB=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},ye=5,jn=11,jr=2,cB=jn-ye,li=65536>>ye,gB=1<<ye,Vr=gB-1,uB=1024>>ye,BB=li+uB,dB=BB,fB=32,hB=dB+fB,wB=65536>>jn,pB=1<<cB,CB=pB-1,xa=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},QB=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},mB=function(e,A){var r=iB(e),t=Array.isArray(r)?lB(r):new Uint32Array(r),n=Array.isArray(r)?oB(r):new Uint16Array(r),a=24,i=xa(n,a/2,t[4]/2),o=t[5]===2?xa(n,(a+t[4])/2):QB(t,Math.ceil((a+t[4])/4));return new vB(t[0],t[1],t[2],t[3],i,o)},vB=(function(){function e(A,r,t,n,a,i){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=i}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>ye],r=(r<<jr)+(A&Vr),this.data[r];if(A<=65535)return r=this.index[li+(A-55296>>ye)],r=(r<<jr)+(A&Vr),this.data[r];if(A<this.highStart)return r=hB-wB+(A>>jn),r=this.index[r],r+=A>>ye&CB,r=this.index[r],r=(r<<jr)+(A&Vr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),Ia="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",UB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Pt=0;Pt<Ia.length;Pt++)UB[Ia.charCodeAt(Pt)]=Pt;var FB=1,Pr=2,Xr=3,Ha=4,Sa=5,bB=7,La=8,Jr=9,Wr=10,ka=11,Ma=12,Ka=13,Ta=14,Yr=15,EB=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},yB=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 i=e[n];i<=65535?t.push(i):(i-=65536,t.push((i>>10)+55296,i%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},xB=mB(sB),VA="×",Zr="÷",IB=function(e){return xB.get(e)},HB=function(e,A,r){var t=r-2,n=A[t],a=A[r-1],i=A[r];if(a===Pr&&i===Xr)return VA;if(a===Pr||a===Xr||a===Ha||i===Pr||i===Xr||i===Ha)return Zr;if(a===La&&[La,Jr,ka,Ma].indexOf(i)!==-1||(a===ka||a===Jr)&&(i===Jr||i===Wr)||(a===Ma||a===Wr)&&i===Wr||i===Ka||i===Sa||i===bB||a===FB)return VA;if(a===Ka&&i===Ta){for(;n===Sa;)n=A[--t];if(n===Ta)return VA}if(a===Yr&&i===Yr){for(var o=0;n===Yr;)o++,n=A[--t];if(o%2===0)return VA}return Zr},SB=function(e){var A=EB(e),r=A.length,t=0,n=0,a=A.map(IB);return{next:function(){if(t>=r)return{done:!0,value:null};for(var i=VA;t<r&&(i=HB(A,a,++t))===VA;);if(i!==VA||t===r){var o=yB.apply(null,A.slice(n,t));return n=t,{value:o,done:!1}}return{done:!0,value:null}}}},LB=function(e){for(var A=SB(e),r=[],t;!(t=A.next()).done;)t.value&&r.push(t.value.slice());return r},kB=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},MB=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"?"👨".repeat(10):"";var t=A.firstChild,n=vr(t.data).map(function(l){return bA(l)}),a=0,i={},o=n.every(function(l,c){r.setStart(t,a),r.setEnd(t,a+l.length);var g=r.getBoundingClientRect();a+=l.length;var d=g.x>i.x||g.y>i.y;return i=g,c===0?!0:d});return e.body.removeChild(A),o},KB=function(){return typeof new Image().crossOrigin<"u"},TB=function(){return typeof new XMLHttpRequest().responseType=="string"},DB=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},Da=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},OB=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 i=Hn(r,r,0,0,n);return t.fillStyle="red",t.fillRect(0,0,r,r),Oa(i).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",Da(l)?Oa(Hn(r,r,0,0,c)):Promise.reject(!1)}).then(function(o){return t.drawImage(o,0,0),Da(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",i=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return i.setAttributeNS(null,"width",e.toString()),i.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"),i.appendChild(o),o.appendChild(n),i},Oa=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=kB(document);return Object.defineProperty(HA,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=HA.SUPPORT_RANGE_BOUNDS&&MB(document);return Object.defineProperty(HA,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=DB(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"?OB(document):Promise.resolve(!1);return Object.defineProperty(HA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=KB();return Object.defineProperty(HA,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=TB();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})(),RB=function(e,A,r,t){var n=GB(A,r),a=[],i=0;return n.forEach(function(o){if(r.textDecorationLine.length||o.trim().length>0)if(HA.SUPPORT_RANGE_BOUNDS){var l=Ra(t,i,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,Ra(t,g+i,u.length).getClientRects()))),g+=u.length})}else a.push(new ct(o,ie.fromDOMRectList(e,l)))}else{var d=t.splitText(o.length);a.push(new ct(o,NB(e,t))),t=d}else HA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(o.length));i+=o.length}),a},NB=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=mr(e,t);return t.firstChild&&n.replaceChild(t.firstChild,t),a}}return ie.EMPTY},Ra=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 LB(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 VB(e,A)},GB=function(e,A){return A.letterSpacing!==0?Vn(e):_B(e,A)},jB=[32,160,4961,65792,65793,4153,4241],VB=function(e,A){for(var r=wc(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),t=[],n,a=function(){if(n.value){var i=n.value.slice(),o=vr(i),l="";o.forEach(function(c){jB.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},PB=(function(){function e(A,r,t){this.text=XB(r.data,t.textTransform),this.textBounds=RB(A,this.text,t,r)}return e})(),XB=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(JB,WB);case 2:return e.toUpperCase();default:return e}},JB=/(^|\s|:|-|\(|\))([a-z])/g,WB=function(e,A,r){return e.length>0?A+r.toUpperCase():e},ci=(function(e){qA(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),gi=(function(e){qA(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),ui=(function(e){qA(A,e);function A(r,t){var n=e.call(this,r,t)||this,a=new XMLSerializer,i=mr(r,t);return t.setAttribute("width",i.width+"px"),t.setAttribute("height",i.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),Bi=(function(e){qA(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){qA(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),YB=[{type:15,flags:0,unit:"px",number:3}],ZB=[{type:16,flags:0,number:50}],qB=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},zB=function(e){var A=e.type===$B?new Array(e.value.length+1).join("•"):e.value;return A.length===0?e.placeholder||"":A},ur="checkbox",Br="radio",$B="password",Na=707406591,Pn=(function(e){qA(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=zB(t),(n.type===ur||n.type===Br)&&(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=qB(n.bounds)),n.type){case ur:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=YB;break;case Br:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=ZB;break}return n}return A})(re),di=(function(e){qA(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){qA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.value=t.value,n}return A})(re),hi=(function(e){qA(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=pi(r,t.contentWindow.document.documentElement);var a=t.contentWindow.document.documentElement?ot(r,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):se.TRANSPARENT,i=t.contentWindow.document.body?ot(r,getComputedStyle(t.contentWindow.document.body).backgroundColor):se.TRANSPARENT;n.backgroundColor=we(a)?we(i)?n.styles.backgroundColor:i:a}}catch{}return n}return A})(re),Ad=["OL","UL","MENU"],$t=function(e,A,r,t){for(var n=A.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,Ci(n)&&n.data.trim().length>0)r.textNodes.push(new PB(e,n,r.styles));else if(Oe(n))if(Ui(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return $t(e,o,r,t)});else{var i=wi(e,n);i.styles.isVisible()&&(ed(n,i,t)?i.flags|=4:td(i.styles)&&(i.flags|=2),Ad.indexOf(n.tagName)!==-1&&(i.flags|=8),r.elements.push(i),n.slot,n.shadowRoot?$t(e,n.shadowRoot,i,t):!dr(n)&&!Qi(n)&&!fr(n)&&$t(e,n,i,t))}},wi=function(e,A){return kn(A)?new ci(e,A):mi(A)?new gi(e,A):Qi(A)?new ui(e,A):rd(A)?new Bi(e,A):nd(A)?new Sn(e,A):ad(A)?new Pn(e,A):fr(A)?new di(e,A):dr(A)?new fi(e,A):vi(A)?new hi(e,A):new re(e,A)},pi=function(e,A){var r=wi(e,A);return r.flags|=4,$t(e,A,r,r),r},ed=function(e,A,r){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Xn(e)&&r.styles.isTransparent()},td=function(e){return e.isPositioned()||e.isFloating()},Ci=function(e){return e.nodeType===Node.TEXT_NODE},Oe=function(e){return e.nodeType===Node.ELEMENT_NODE},Ln=function(e){return Oe(e)&&typeof e.style<"u"&&!Ar(e)},Ar=function(e){return typeof e.className=="object"},rd=function(e){return e.tagName==="LI"},nd=function(e){return e.tagName==="OL"},ad=function(e){return e.tagName==="INPUT"},sd=function(e){return e.tagName==="HTML"},Qi=function(e){return e.tagName==="svg"},Xn=function(e){return e.tagName==="BODY"},mi=function(e){return e.tagName==="CANVAS"},_a=function(e){return e.tagName==="VIDEO"},kn=function(e){return e.tagName==="IMG"},vi=function(e){return e.tagName==="IFRAME"},Ga=function(e){return e.tagName==="STYLE"},id=function(e){return e.tagName==="SCRIPT"},dr=function(e){return e.tagName==="TEXTAREA"},fr=function(e){return e.tagName==="SELECT"},Ui=function(e){return e.tagName==="SLOT"},ja=function(e){return e.tagName.indexOf("-")>0},od=(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 i=[];return a&&n.forEach(function(o){var l=r.counters[o.counter];i.push(o.counter),l||(l=r.counters[o.counter]=[]),l.push(o.reset)}),i},e})(),Va={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"]},Pa={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},ld={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},cd={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Le=function(e,A,r,t,n,a){return e<A||e>r?wt(e,n,a.length>0):t.integers.reduce(function(i,o,l){for(;e>=o;)e-=o,i+=t.values[l];return i},"")+a},Fi=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?"-":"")+(Fi(Math.abs(e),a,t,function(i){return bA(Math.floor(i%a)+A)})+n)},Ce=function(e,A,r){r===void 0&&(r=". ");var t=A.length;return Fi(Math.abs(e),t,!1,function(n){return A[Math.floor(n%t)]})+r},Ke=1,oe=2,le=4,nt=8,ae=function(e,A,r,t,n,a){if(e<-9999||e>9999)return wt(e,4,n.length>0);var i=Math.abs(e),o=n;if(i===0)return A[0]+o;for(var l=0;i>0&&l<=4;l++){var c=i%10;c===0&&yA(a,Ke)&&o!==""?o=A[c]+o:c>1||c===1&&l===0||c===1&&l===1&&yA(a,oe)||c===1&&l===1&&yA(a,le)&&e>100||c===1&&l>1&&yA(a,nt)?o=A[c]+(l>0?r[l-1]:"")+o:c===1&&l>0&&(o=r[l-1]+o),i=Math.floor(i/10)}return(e<0?t:"")+o},Xa="十百千萬",Ja="拾佰仟萬",Wa="マイナス",qr="마이너스",wt=function(e,A,r){var t=r?". ":"",n=r?"、":"",a=r?", ":"",i=r?" ":"";switch(A){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var o=FA(e,48,57,!0,t);return o.length<4?"0"+o:o;case 4:return Ce(e,"〇一二三四五六七八九",n);case 6:return Le(e,1,3999,Va,3,t).toLowerCase();case 7:return Le(e,1,3999,Va,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 Le(e,1,9999,Pa,3,t);case 35:return Le(e,1,9999,Pa,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 Ce(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Ce(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ae(e,"零一二三四五六七八九",Xa,"負",n,oe|le|nt);case 47:return ae(e,"零壹貳參肆伍陸柒捌玖",Ja,"負",n,Ke|oe|le|nt);case 42:return ae(e,"零一二三四五六七八九",Xa,"负",n,oe|le|nt);case 41:return ae(e,"零壹贰叁肆伍陆柒捌玖",Ja,"负",n,Ke|oe|le|nt);case 26:return ae(e,"〇一二三四五六七八九","十百千万",Wa,n,0);case 25:return ae(e,"零壱弐参四伍六七八九","拾百千万",Wa,n,Ke|oe|le);case 31:return ae(e,"영일이삼사오육칠팔구","십백천만",qr,a,Ke|oe|le);case 33:return ae(e,"零一二三四五六七八九","十百千萬",qr,a,0);case 32:return ae(e,"零壹貳參四五六七八九","拾百千",qr,a,Ke|oe|le);case 18:return FA(e,2406,2415,!0,t);case 20:return Le(e,1,19999,cd,3,t);case 21:return FA(e,2790,2799,!0,t);case 22:return FA(e,2662,2671,!0,t);case 22:return Le(e,1,10999,ld,3,t);case 23:return Ce(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ce(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return FA(e,3302,3311,!0,t);case 28:return Ce(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Ce(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)}},bi="data-html2canvas-ignore",Ya=(function(){function e(A,r,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=r,this.counters=new od,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=gd(A,r);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=A.defaultView.pageXOffset,i=A.defaultView.pageYOffset,o=n.contentWindow,l=o.document,c=dd(n).then(function(){return OA(t,void 0,void 0,function(){var g,d;return kA(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(pd),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,d=this.clonedReferenceElement,typeof d>"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,d)}).then(function(){return n})]:[2,n]}})})});return l.open(),l.write(hd(document.doctype)+"<html></html>"),wd(this.referenceElement.ownerDocument,a,i),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(A){if(In(A,2))debugger;if(mi(A))return this.createCanvasClone(A);if(_a(A))return this.createVideoClone(A);if(Ga(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")),ja(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(A){var r=document.createElement("html2canvascustomelement");return zr(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,i){return i&&typeof i.cssText=="string"?a+i.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"),i=n.getContext("2d");if(i)if(!this.options.allowTaint&&a)i.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)}i.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){(!Oe(r)||!id(r)&&!r.hasAttribute(bi)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Oe(r)||!Ga(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(Oe(a)&&Ui(a)&&typeof a.assignedNodes=="function"){var i=a.assignedNodes();i.length&&i.forEach(function(o){return n.appendChildNode(r,o,t)})}else this.appendChildNode(r,a,t)},e.prototype.cloneNode=function(A,r){if(Ci(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Oe(A)&&(Ln(A)||Ar(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var a=t.getComputedStyle(A),i=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&Ln(n)&&(this.clonedReferenceElement=n),Xn(n)&&md(n);var l=this.counters.parse(new Ea(this.context,a)),c=this.resolvePseudoContent(A,n,i,gt.BEFORE);ja(A)&&(r=!0),_a(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||Ar(A))&&!vi(A)||r)&&zr(a,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(dr(A)||fr(A))&&(dr(n)||fr(n))&&(n.value=A.value),n}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,r,t,n){var a=this;if(t){var i=t.content,o=r.ownerDocument;if(!(!o||!i||i==="none"||i==="-moz-alt-content"||t.display==="none")){this.counters.parse(new Ea(this.context,t));var l=new rB(this.context,t),c=o.createElement("html2canvaspseudoelement");zr(t,c),l.content.forEach(function(d){if(d.type===0)c.appendChild(o.createTextNode(d.value));else if(d.type===22){var u=o.createElement("img");u.src=d.value,u.style.opacity="1",c.appendChild(u)}else if(d.type===18){if(d.name==="attr"){var p=d.values.filter(BA);p.length&&c.appendChild(o.createTextNode(A.getAttribute(p[0].value)||""))}else if(d.name==="counter"){var m=d.values.filter(je),Q=m[0],x=m[1];if(Q&&BA(Q)){var U=a.counters.getCounterValue(Q.value),F=x&&BA(x)?xn.parse(a.context,x.value):3;c.appendChild(o.createTextNode(wt(U,F,!1)))}}else if(d.name==="counters"){var L=d.values.filter(je),Q=L[0],k=L[1],x=L[2];if(Q&&BA(Q)){var y=a.counters.getCounterValues(Q.value),w=x&&BA(x)?xn.parse(a.context,x.value):3,I=k&&k.type===0?k.value:"",K=y.map(function(R){return wt(R,w,!1)}).join(I);c.appendChild(o.createTextNode(K))}}}else if(d.type===20)switch(d.value){case"open-quote":c.appendChild(o.createTextNode(ba(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(ba(l.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(d.value))}}),c.className=Mn+" "+Kn;var g=n===gt.BEFORE?" "+Mn:" "+Kn;return Ar(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 gd=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(bi,"true"),e.body.appendChild(r),r},ud=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(ud))},dd=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)}})},fd=["all","d","content"],zr=function(e,A){for(var r=e.length-1;r>=0;r--){var t=e.item(r);fd.indexOf(t)===-1&&A.style.setProperty(t,e.getPropertyValue(t))}return A},hd=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},wd=function(e,A,r){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,r)},pd=function(e){var A=e[0],r=e[1],t=e[2];A.scrollLeft=r,A.scrollTop=t},Cd=":before",Qd=":after",Mn="___html2canvas___pseudoelement_before",Kn="___html2canvas___pseudoelement_after",Za=`{+ content: "" !important;+ display: none !important;+}`,md=function(e){vd(e,"."+Mn+Cd+Za+`+ .`+Kn+Qd+Za)},vd=function(e,A){var r=e.ownerDocument;if(r){var t=r.createElement("style");t.textContent=A,e.appendChild(t)}},Ei=(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})(),Ud=(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)||(An(A)||yd(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,i=this;return kA(this,function(o){switch(o.label){case 0:return r=Ei.isSameOrigin(A),t=!$r(A)&&this._options.useCORS===!0&&HA.SUPPORT_CORS_IMAGES&&!r,n=!$r(A)&&!r&&!An(A)&&typeof this._options.proxy=="string"&&HA.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!$r(A)&&!An(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,(xd(a)||t)&&(g.crossOrigin="anonymous"),g.src=a,g.complete===!0&&setTimeout(function(){return l(g)},500),i._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._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,i){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 d=new FileReader;d.addEventListener("load",function(){return a(d.result)},!1),d.addEventListener("error",function(u){return i(u)},!1),d.readAsDataURL(l.response)}else i("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=i;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 i("Timed out ("+g+"ms) proxying "+n)}}l.send()})},e})(),Fd=/^data:image\/svg\+xml/i,bd=/^data:image\/.*;base64,/i,Ed=/^data:image\/.*/i,yd=function(e){return HA.SUPPORT_SVG_DRAWING||!Id(e)},$r=function(e){return Ed.test(e)},xd=function(e){return bd.test(e)},An=function(e){return e.substr(0,4)==="blob"},Id=function(e){return e.substr(-3).toLowerCase()==="svg"||Fd.test(e)},j=(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})(),ke=function(e,A,r){return new j(e.x+(A.x-e.x)*r,e.y+(A.y-e.y)*r)},Xt=(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=ke(this.start,this.startControl,A),n=ke(this.startControl,this.endControl,A),a=ke(this.endControl,this.end,A),i=ke(t,n,A),o=ke(n,a,A),l=ke(i,o,A);return r?new e(this.start,t,i,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},Hd=(function(){function e(A){var r=A.styles,t=A.bounds,n=tt(r.borderTopLeftRadius,t.width,t.height),a=n[0],i=n[1],o=tt(r.borderTopRightRadius,t.width,t.height),l=o[0],c=o[1],g=tt(r.borderBottomRightRadius,t.width,t.height),d=g[0],u=g[1],p=tt(r.borderBottomLeftRadius,t.width,t.height),m=p[0],Q=p[1],x=[];x.push((a+l)/t.width),x.push((m+d)/t.width),x.push((i+Q)/t.height),x.push((c+u)/t.height);var U=Math.max.apply(Math,x);U>1&&(a/=U,i/=U,l/=U,c/=U,d/=U,u/=U,m/=U,Q/=U);var F=t.width-l,L=t.height-u,k=t.width-d,y=t.height-Q,w=r.borderTopWidth,I=r.borderRightWidth,K=r.borderBottomWidth,M=r.borderLeftWidth,O=wA(r.paddingTop,A.bounds.width),R=wA(r.paddingRight,A.bounds.width),P=wA(r.paddingBottom,A.bounds.width),D=wA(r.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||i>0?QA(t.left+M/3,t.top+w/3,a-M/3,i-w/3,uA.TOP_LEFT):new j(t.left+M/3,t.top+w/3),this.topRightBorderDoubleOuterBox=a>0||i>0?QA(t.left+F,t.top+w/3,l-I/3,c-w/3,uA.TOP_RIGHT):new j(t.left+t.width-I/3,t.top+w/3),this.bottomRightBorderDoubleOuterBox=d>0||u>0?QA(t.left+k,t.top+L,d-I/3,u-K/3,uA.BOTTOM_RIGHT):new j(t.left+t.width-I/3,t.top+t.height-K/3),this.bottomLeftBorderDoubleOuterBox=m>0||Q>0?QA(t.left+M/3,t.top+y,m-M/3,Q-K/3,uA.BOTTOM_LEFT):new j(t.left+M/3,t.top+t.height-K/3),this.topLeftBorderDoubleInnerBox=a>0||i>0?QA(t.left+M*2/3,t.top+w*2/3,a-M*2/3,i-w*2/3,uA.TOP_LEFT):new j(t.left+M*2/3,t.top+w*2/3),this.topRightBorderDoubleInnerBox=a>0||i>0?QA(t.left+F,t.top+w*2/3,l-I*2/3,c-w*2/3,uA.TOP_RIGHT):new j(t.left+t.width-I*2/3,t.top+w*2/3),this.bottomRightBorderDoubleInnerBox=d>0||u>0?QA(t.left+k,t.top+L,d-I*2/3,u-K*2/3,uA.BOTTOM_RIGHT):new j(t.left+t.width-I*2/3,t.top+t.height-K*2/3),this.bottomLeftBorderDoubleInnerBox=m>0||Q>0?QA(t.left+M*2/3,t.top+y,m-M*2/3,Q-K*2/3,uA.BOTTOM_LEFT):new j(t.left+M*2/3,t.top+t.height-K*2/3),this.topLeftBorderStroke=a>0||i>0?QA(t.left+M/2,t.top+w/2,a-M/2,i-w/2,uA.TOP_LEFT):new j(t.left+M/2,t.top+w/2),this.topRightBorderStroke=a>0||i>0?QA(t.left+F,t.top+w/2,l-I/2,c-w/2,uA.TOP_RIGHT):new j(t.left+t.width-I/2,t.top+w/2),this.bottomRightBorderStroke=d>0||u>0?QA(t.left+k,t.top+L,d-I/2,u-K/2,uA.BOTTOM_RIGHT):new j(t.left+t.width-I/2,t.top+t.height-K/2),this.bottomLeftBorderStroke=m>0||Q>0?QA(t.left+M/2,t.top+y,m-M/2,Q-K/2,uA.BOTTOM_LEFT):new j(t.left+M/2,t.top+t.height-K/2),this.topLeftBorderBox=a>0||i>0?QA(t.left,t.top,a,i,uA.TOP_LEFT):new j(t.left,t.top),this.topRightBorderBox=l>0||c>0?QA(t.left+F,t.top,l,c,uA.TOP_RIGHT):new j(t.left+t.width,t.top),this.bottomRightBorderBox=d>0||u>0?QA(t.left+k,t.top+L,d,u,uA.BOTTOM_RIGHT):new j(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=m>0||Q>0?QA(t.left,t.top+y,m,Q,uA.BOTTOM_LEFT):new j(t.left,t.top+t.height),this.topLeftPaddingBox=a>0||i>0?QA(t.left+M,t.top+w,Math.max(0,a-M),Math.max(0,i-w),uA.TOP_LEFT):new j(t.left+M,t.top+w),this.topRightPaddingBox=l>0||c>0?QA(t.left+Math.min(F,t.width-I),t.top+w,F>t.width+I?0:Math.max(0,l-I),Math.max(0,c-w),uA.TOP_RIGHT):new j(t.left+t.width-I,t.top+w),this.bottomRightPaddingBox=d>0||u>0?QA(t.left+Math.min(k,t.width-M),t.top+Math.min(L,t.height-K),Math.max(0,d-I),Math.max(0,u-K),uA.BOTTOM_RIGHT):new j(t.left+t.width-I,t.top+t.height-K),this.bottomLeftPaddingBox=m>0||Q>0?QA(t.left+M,t.top+Math.min(y,t.height-K),Math.max(0,m-M),Math.max(0,Q-K),uA.BOTTOM_LEFT):new j(t.left+M,t.top+t.height-K),this.topLeftContentBox=a>0||i>0?QA(t.left+M+D,t.top+w+O,Math.max(0,a-(M+D)),Math.max(0,i-(w+O)),uA.TOP_LEFT):new j(t.left+M+D,t.top+w+O),this.topRightContentBox=l>0||c>0?QA(t.left+Math.min(F,t.width+M+D),t.top+w+O,F>t.width+M+D?0:l-M+D,c-(w+O),uA.TOP_RIGHT):new j(t.left+t.width-(I+R),t.top+w+O),this.bottomRightContentBox=d>0||u>0?QA(t.left+Math.min(k,t.width-(M+D)),t.top+Math.min(L,t.height+w+O),Math.max(0,d-(I+R)),u-(K+P),uA.BOTTOM_RIGHT):new j(t.left+t.width-(I+R),t.top+t.height-(K+P)),this.bottomLeftContentBox=m>0||Q>0?QA(t.left+M+D,t.top+y,Math.max(0,m-(M+D)),Q-(K+P),uA.BOTTOM_LEFT):new j(t.left+M+D,t.top+t.height-(K+P))}return e})(),uA;(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"})(uA||(uA={}));var QA=function(e,A,r,t,n){var a=4*((Math.sqrt(2)-1)/3),i=r*a,o=t*a,l=e+r,c=A+t;switch(n){case uA.TOP_LEFT:return new Xt(new j(e,c),new j(e,c-o),new j(l-i,A),new j(l,A));case uA.TOP_RIGHT:return new Xt(new j(e,A),new j(e+i,A),new j(l,c-o),new j(l,c));case uA.BOTTOM_RIGHT:return new Xt(new j(l,A),new j(l,A+o),new j(e+i,c),new j(e,c));case uA.BOTTOM_LEFT:default:return new Xt(new j(l,c),new j(l-i,c),new j(e,A+o),new j(e,A))}},hr=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Sd=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},wr=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Ld=(function(){function e(A,r,t){this.offsetX=A,this.offsetY=r,this.matrix=t,this.type=0,this.target=6}return e})(),Jt=(function(){function e(A,r){this.path=A,this.target=r,this.type=1}return e})(),kd=(function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e})(),Md=function(e){return e.type===0},yi=function(e){return e.type===1},Kd=function(e){return e.type===2},qa=function(e,A){return e.length===A.length?e.some(function(r,t){return r===A[t]}):!1},Td=function(e,A,r,t,n){return e.map(function(a,i){switch(i){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})},xi=(function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),Ii=(function(){function e(A,r){if(this.container=A,this.parent=r,this.effects=[],this.curves=new Hd(this.container),this.container.styles.opacity<1&&this.effects.push(new kd(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 Ld(t,n,a))}if(this.container.styles.overflowX!==0){var i=hr(this.curves),o=wr(this.curves);qa(i,o)?this.effects.push(new Jt(i,6)):(this.effects.push(new Jt(i,2)),this.effects.push(new Jt(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!yi(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 i=hr(t.curves),o=wr(t.curves);qa(i,o)||n.unshift(new Jt(o,6))}}else n.unshift.apply(n,a);t=t.parent}return n.filter(function(l){return yA(l.target,A)})},e})(),Tn=function(e,A,r,t){e.container.elements.forEach(function(n){var a=yA(n.flags,4),i=yA(n.flags,2),o=new Ii(n,e);yA(n.styles.display,2048)&&t.push(o);var l=yA(n.flags,8)?[]:t;if(a||i){var c=a||n.styles.isPositioned()?r:A,g=new xi(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var u=0;c.negativeZIndex.some(function(m,Q){return d>m.element.container.styles.zIndex.order?(u=Q,!1):u>0}),c.negativeZIndex.splice(u,0,g)}else if(d>0){var p=0;c.positiveZIndex.some(function(m,Q){return d>=m.element.container.styles.zIndex.order?(p=Q+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);yA(n.flags,8)&&Hi(n,l)})},Hi=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 Bi&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=wt(r,a.container.styles.listStyleType,!0),r+=t?-1:1}},Dd=function(e){var A=new Ii(e,null),r=new xi(A),t=[];return Tn(A,r,r,t),Hi(A.container,t),r},za=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)}},Od=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)}},Rd=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)}},Nd=function(e,A){switch(A){case 0:return Wt(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Wt(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Wt(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Wt(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Wt=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},Si=function(e){var A=e.bounds,r=e.styles;return A.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},pr=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),i=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+i))},_d=function(e,A){return e===0?A.bounds:e===2?pr(A):Si(A)},Gd=function(e,A){return e===0?A.bounds:e===2?pr(A):Si(A)},en=function(e,A,r){var t=_d(Te(e.styles.backgroundOrigin,A),e),n=Gd(Te(e.styles.backgroundClip,A),e),a=jd(Te(e.styles.backgroundSize,A),r,t),i=a[0],o=a[1],l=tt(Te(e.styles.backgroundPosition,A),t.width-i,t.height-o),c=Vd(Te(e.styles.backgroundRepeat,A),l,a,t,n),g=Math.round(t.left+l[0]),d=Math.round(t.top+l[1]);return[c,g,d,i,o]},Me=function(e){return BA(e)&&e.value===Ne.AUTO},Yt=function(e){return typeof e=="number"},jd=function(e,A,r){var t=A[0],n=A[1],a=A[2],i=e[0],o=e[1];if(!i)return[0,0];if(EA(i)&&o&&EA(o))return[wA(i,r.width),wA(o,r.height)];var l=Yt(a);if(BA(i)&&(i.value===Ne.CONTAIN||i.value===Ne.COVER)){if(Yt(a)){var c=r.width/r.height;return c<a!=(i.value===Ne.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var g=Yt(t),d=Yt(n),u=g||d;if(Me(i)&&(!o||Me(o))){if(g&&d)return[t,n];if(!l&&!u)return[r.width,r.height];if(u&&l){var p=g?t:n*a,m=d?n:t/a;return[p,m]}var Q=g?t:r.width,x=d?n:r.height;return[Q,x]}if(l){var U=0,F=0;return EA(i)?U=wA(i,r.width):EA(o)&&(F=wA(o,r.height)),Me(i)?U=F*a:(!o||Me(o))&&(F=U/a),[U,F]}var L=null,k=null;if(EA(i)?L=wA(i,r.width):o&&EA(o)&&(k=wA(o,r.height)),L!==null&&(!o||Me(o))&&(k=g&&d?L/t*n:r.height),k!==null&&Me(i)&&(L=g&&d?k/n*t:r.width),L!==null&&k!==null)return[L,k];throw new Error("Unable to calculate background-size for element")},Te=function(e,A){var r=e[A];return typeof r>"u"?e[0]:r},Vd=function(e,A,r,t,n){var a=A[0],i=A[1],o=r[0],l=r[1];switch(e){case 2:return[new j(Math.round(t.left),Math.round(t.top+i)),new j(Math.round(t.left+t.width),Math.round(t.top+i)),new j(Math.round(t.left+t.width),Math.round(l+t.top+i)),new j(Math.round(t.left),Math.round(l+t.top+i))];case 3:return[new j(Math.round(t.left+a),Math.round(t.top)),new j(Math.round(t.left+a+o),Math.round(t.top)),new j(Math.round(t.left+a+o),Math.round(t.height+t.top)),new j(Math.round(t.left+a),Math.round(t.height+t.top))];case 1:return[new j(Math.round(t.left+a),Math.round(t.top+i)),new j(Math.round(t.left+a+o),Math.round(t.top+i)),new j(Math.round(t.left+a+o),Math.round(t.top+i+l)),new j(Math.round(t.left+a),Math.round(t.top+i+l))];default:return[new j(Math.round(n.left),Math.round(n.top)),new j(Math.round(n.left+n.width),Math.round(n.top)),new j(Math.round(n.left+n.width),Math.round(n.height+n.top)),new j(Math.round(n.left),Math.round(n.height+n.top))]}},Pd="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",$a="Hidden Text",Xd=(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"),i=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",i.appendChild(t),n.src=Pd,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($a)),t.appendChild(a),t.appendChild(n);var o=n.offsetTop-a.offsetTop+2;t.removeChild(a),t.appendChild(this._document.createTextNode($a)),t.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-t.offsetTop+2;return i.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})(),Li=(function(){function e(A,r){this.context=A,this.options=r}return e})(),Jd=1e4,Wd=(function(e){qA(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 Xd(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(),Kd(r)&&(this.ctx.globalAlpha=r.opacity),Md(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)),yi(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(yA(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 i=Vn(r.text);i.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(i){return i==="normal"||i==="small-caps"}).join(""),n=$d(r.fontFamily).join(", "),a=Ut(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,i,o,l,c,g,d,u=this;return kA(this,function(p){return n=this.createFontStyle(t),a=n[0],i=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(i,o),c=l.baseline,g=l.middle,d=t.paintOrder,r.textBounds.forEach(function(m){d.forEach(function(Q){switch(Q){case 0:u.ctx.fillStyle=xA(t.color),u.renderTextWithLetterSpacing(m,t.letterSpacing,c);var x=t.textShadow;x.length&&m.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(m,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(m.bounds.left,Math.round(m.bounds.top+c),m.bounds.width,1);break;case 2:u.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top),m.bounds.width,1);break;case 3:u.ctx.fillRect(m.bounds.left,Math.ceil(m.bounds.top+g),m.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&m.text.trim().length&&(u.ctx.strokeStyle=xA(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(m.text,m.bounds.left,m.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=pr(r),i=wr(t);this.path(i),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,i,o,l,F,F,c,g,d,u,k,p,m,y,Q,x,U,F,L,k,y;return kA(this,function(w){switch(w.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,n=r.curves,a=t.styles,i=0,o=t.textNodes,w.label=1;case 1:return i<o.length?(l=o[i],[4,this.renderTextNode(l,a)]):[3,4];case 2:w.sent(),w.label=3;case 3:return i++,[3,1];case 4:if(!(t instanceof ci))return[3,8];w.label=5;case 5:return w.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return F=w.sent(),this.renderReplacedElement(t,n,F),[3,8];case 7:return w.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof gi&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof ui))return[3,12];w.label=9;case 9:return w.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return F=w.sent(),this.renderReplacedElement(t,n,F),[3,12];case 11:return w.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof hi&&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=w.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),w.label=14;case 14:if(t instanceof Pn&&(d=Math.min(t.bounds.width,t.bounds.height),t.type===ur?t.checked&&(this.ctx.save(),this.path([new j(t.bounds.left+d*.39363,t.bounds.top+d*.79),new j(t.bounds.left+d*.16,t.bounds.top+d*.5549),new j(t.bounds.left+d*.27347,t.bounds.top+d*.44071),new j(t.bounds.left+d*.39694,t.bounds.top+d*.5649),new j(t.bounds.left+d*.72983,t.bounds.top+d*.23),new j(t.bounds.left+d*.84,t.bounds.top+d*.34085),new j(t.bounds.left+d*.39363,t.bounds.top+d*.79)]),this.ctx.fillStyle=xA(Na),this.ctx.fill(),this.ctx.restore()):t.type===Br&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+d/2,t.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=xA(Na),this.ctx.fill(),this.ctx.restore())),Yd(t)&&t.value.length){switch(u=this.createFontStyle(a),k=u[0],p=u[1],m=this.fontMetrics.getMetrics(k,p).baseline,this.ctx.font=k,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=qd(t.styles.textAlign),y=pr(t),Q=0,t.styles.textAlign){case 1:Q+=y.width/2;break;case 2:Q+=y.width;break}x=y.add(Q,0,0,-y.height/2+1),this.ctx.save(),this.path([new j(y.left,y.top),new j(y.left+y.width,y.top),new j(y.left+y.width,y.top+y.height),new j(y.left,y.top+y.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ct(t.value,x),a.letterSpacing,m),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!yA(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];F=void 0,L=U.url,w.label=15;case 15:return w.trys.push([15,17,,18]),[4,this.context.cache.match(L)];case 16:return F=w.sent(),this.ctx.drawImage(F,t.bounds.left-(F.width+10),t.bounds.top),[3,18];case 17:return w.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&&(k=this.createFontStyle(a)[0],this.ctx.font=k,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",y=new ie(t.bounds.left,t.bounds.top+wA(t.styles.paddingTop,t.bounds.width),t.bounds.width,Ua(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ct(r.listValue,y),a.letterSpacing,Ua(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),w.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(r){return OA(this,void 0,void 0,function(){var t,n,U,a,i,U,o,l,U,c,g,U,d,u,U,p,m,U,Q,x,U;return kA(this,function(F){switch(F.label){case 0:if(yA(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:F.sent(),t=0,n=r.negativeZIndex,F.label=2;case 2:return t<n.length?(U=n[t],[4,this.renderStack(U)]):[3,5];case 3:F.sent(),F.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:F.sent(),a=0,i=r.nonInlineLevel,F.label=7;case 7:return a<i.length?(U=i[a],[4,this.renderNode(U)]):[3,10];case 8:F.sent(),F.label=9;case 9:return a++,[3,7];case 10:o=0,l=r.nonPositionedFloats,F.label=11;case 11:return o<l.length?(U=l[o],[4,this.renderStack(U)]):[3,14];case 12:F.sent(),F.label=13;case 13:return o++,[3,11];case 14:c=0,g=r.nonPositionedInlineLevel,F.label=15;case 15:return c<g.length?(U=g[c],[4,this.renderStack(U)]):[3,18];case 16:F.sent(),F.label=17;case 17:return c++,[3,15];case 18:d=0,u=r.inlineLevel,F.label=19;case 19:return d<u.length?(U=u[d],[4,this.renderNode(U)]):[3,22];case 20:F.sent(),F.label=21;case 21:return d++,[3,19];case 22:p=0,m=r.zeroOrAutoZIndexOrTransformedOrOpacity,F.label=23;case 23:return p<m.length?(U=m[p],[4,this.renderStack(U)]):[3,26];case 24:F.sent(),F.label=25;case 25:return p++,[3,23];case 26:Q=0,x=r.positiveZIndex,F.label=27;case 27:return Q<x.length?(U=x[Q],[4,this.renderStack(U)]):[3,30];case 28:F.sent(),F.label=29;case 29:return Q++,[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 i=PA(n)?n.start:n;a===0?t.ctx.moveTo(i.x,i.y):t.ctx.lineTo(i.x,i.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 i=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=i.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,i,o,l;return kA(this,function(c){switch(c.label){case 0:t=r.styles.backgroundImage.length-1,n=function(g){var d,u,p,O,eA,AA,D,W,K,m,O,eA,AA,D,W,Q,x,U,F,L,k,y,w,I,K,M,O,R,P,D,W,$,eA,AA,fA,sA,q,cA,iA,S,_,N;return kA(this,function(Y){switch(Y.label){case 0:if(g.type!==0)return[3,5];d=void 0,u=g.url,Y.label=1;case 1:return Y.trys.push([1,3,,4]),[4,a.context.cache.match(u)];case 2:return d=Y.sent(),[3,4];case 3:return Y.sent(),a.context.logger.error("Error loading background-image "+u),[3,4];case 4:return d&&(p=en(r,t,[d.width,d.height,d.width/d.height]),O=p[0],eA=p[1],AA=p[2],D=p[3],W=p[4],K=a.ctx.createPattern(a.resizeImage(d,D,W),"repeat"),a.renderRepeat(O,K,eA,AA)),[3,6];case 5:Mg(g)?(m=en(r,t,[null,null,null]),O=m[0],eA=m[1],AA=m[2],D=m[3],W=m[4],Q=Ig(g.angle,D,W),x=Q[0],U=Q[1],F=Q[2],L=Q[3],k=Q[4],y=document.createElement("canvas"),y.width=D,y.height=W,w=y.getContext("2d"),I=w.createLinearGradient(U,L,F,k),ma(g.stops,x).forEach(function(gA){return I.addColorStop(gA.stop,xA(gA.color))}),w.fillStyle=I,w.fillRect(0,0,D,W),D>0&&W>0&&(K=a.ctx.createPattern(y,"repeat"),a.renderRepeat(O,K,eA,AA))):Kg(g)&&(M=en(r,t,[null,null,null]),O=M[0],R=M[1],P=M[2],D=M[3],W=M[4],$=g.position.length===0?[_n]:g.position,eA=wA($[0],D),AA=wA($[$.length-1],W),fA=Hg(g,eA,AA,D,W),sA=fA[0],q=fA[1],sA>0&&q>0&&(cA=a.ctx.createRadialGradient(R+eA,P+AA,0,R+eA,P+AA,sA),ma(g.stops,sA*2).forEach(function(gA){return cA.addColorStop(gA.stop,xA(gA.color))}),a.path(O),a.ctx.fillStyle=cA,sA!==q?(iA=r.bounds.left+.5*r.bounds.width,S=r.bounds.top+.5*r.bounds.height,_=q/sA,N=1/_,a.ctx.save(),a.ctx.translate(iA,S),a.ctx.transform(1,0,0,_,0,0),a.ctx.translate(-iA,-S),a.ctx.fillRect(R,N*(P-S)+S,D,W*N),a.ctx.restore()):a.ctx.fill())),Y.label=6;case 6:return t--,[2]}})},a=this,i=0,o=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return i<o.length?(l=o[i],[5,n(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return i++,[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(za(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 i,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 i=Od(a,n),this.path(i),this.ctx.fillStyle=xA(r),this.ctx.fill(),o=Rd(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,i,o,l,c,g,d=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}],i=Zd(Te(t.backgroundClip,0),r.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(i),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){d.ctx.save();var m=hr(r.curves),Q=p.inset?0:Jd,x=Td(m,-Q+(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?(d.path(m),d.ctx.clip(),d.mask(x)):(d.mask(m),d.ctx.clip(),d.path(x)),d.ctx.shadowOffsetX=p.offsetX.number+Q,d.ctx.shadowOffsetY=p.offsetY.number,d.ctx.shadowColor=xA(p.color),d.ctx.shadowBlur=p.blur.number,d.ctx.fillStyle=p.inset?xA(p.color):"rgba(0,0,0,1)",d.ctx.fill(),d.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,i){return OA(this,void 0,void 0,function(){var o,l,c,g,d,u,p,m,Q,x,U,F,L,k,y,w,y,w;return kA(this,function(I){return this.ctx.save(),o=Nd(a,n),l=za(a,n),i===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])?(d=l[1].end.x,u=l[1].end.y):(d=l[1].x,u=l[1].y),n===0||n===2?p=Math.abs(c-d):p=Math.abs(g-u),this.ctx.beginPath(),i===3?this.formatPath(o):this.formatPath(l.slice(0,2)),m=t<3?t*3:t*2,Q=t<3?t*2:t,i===3&&(m=t,Q=t),x=!0,p<=m*2?x=!1:p<=m*2+Q?(U=p/(2*m+Q),m*=U,Q*=U):(F=Math.floor((p+Q)/(m+Q)),L=(p-F*m)/(F-1),k=(p-(F+1)*m)/F,Q=k<=0||Math.abs(Q-L)<Math.abs(Q-k)?L:k),x&&(i===3?this.ctx.setLineDash([0,m+Q]):this.ctx.setLineDash([m,Q])),i===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([]),i===2&&(PA(l[0])&&(y=l[3],w=l[0],this.ctx.beginPath(),this.formatPath([new j(y.end.x,y.end.y),new j(w.start.x,w.start.y)]),this.ctx.stroke()),PA(l[1])&&(y=l[1],w=l[2],this.ctx.beginPath(),this.formatPath([new j(y.end.x,y.end.y),new j(w.start.x,w.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=Dd(r),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A})(Li),Yd=function(e){return e instanceof fi||e instanceof di?!0:e instanceof Pn&&e.type!==Br&&e.type!==ur},Zd=function(e,A){switch(e){case 0:return hr(A);case 2:return Sd(A);default:return wr(A)}},qd=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},zd=["-apple-system","system-ui"],$d=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return zd.indexOf(A)===-1}):e},Af=(function(e){qA(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,ef(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})(Li),ef=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))})},tf=(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,yt([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,yt([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,yt([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,yt([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e})(),rf=(function(){function e(A,r){var t;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new tf({id:this.instanceName,enabled:A.logging}),this.cache=(t=A.cache)!==null&&t!==void 0?t:new Ud(this,A)}return e.instanceCount=1,e})(),nf=function(e,A){return A===void 0&&(A={}),af(e,A)};typeof window<"u"&&Ei.setContext(window);var af=function(e,A){return OA(void 0,void 0,void 0,function(){var r,t,n,a,i,o,l,c,g,d,u,p,m,Q,x,U,F,L,k,y,I,w,I,K,M,O,R,P,D,W,$,eA,AA,fA,sA,q,cA,iA,S,_;return kA(this,function(N){switch(N.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:(K=A.allowTaint)!==null&&K!==void 0?K:!1,imageTimeout:(M=A.imageTimeout)!==null&&M!==void 0?M:15e3,proxy:A.proxy,useCORS:(O=A.useCORS)!==null&&O!==void 0?O:!1},a=fn({logging:(R=A.logging)!==null&&R!==void 0?R:!0,cache:A.cache},n),i={windowWidth:(P=A.windowWidth)!==null&&P!==void 0?P:t.innerWidth,windowHeight:(D=A.windowHeight)!==null&&D!==void 0?D:t.innerHeight,scrollX:(W=A.scrollX)!==null&&W!==void 0?W:t.pageXOffset,scrollY:($=A.scrollY)!==null&&$!==void 0?$:t.pageYOffset},o=new ie(i.scrollX,i.scrollY,i.windowWidth,i.windowHeight),l=new rf(a,o),c=(eA=A.foreignObjectRendering)!==null&&eA!==void 0?eA:!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),d=new Ya(l,e,g),u=d.clonedReferenceElement,u?[4,d.toIFrame(r,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=N.sent(),m=Xn(u)||sd(u)?Tl(u.ownerDocument):mr(l,u),Q=m.width,x=m.height,U=m.left,F=m.top,L=sf(l,u,A.backgroundColor),k={canvas:A.canvas,backgroundColor:L,scale:(sA=(fA=A.scale)!==null&&fA!==void 0?fA:t.devicePixelRatio)!==null&&sA!==void 0?sA:1,x:((q=A.x)!==null&&q!==void 0?q:0)+U,y:((cA=A.y)!==null&&cA!==void 0?cA:0)+F,width:(iA=A.width)!==null&&iA!==void 0?iA:Math.ceil(Q),height:(S=A.height)!==null&&S!==void 0?S:Math.ceil(x)},c?(l.logger.debug("Document cloned, using foreign object rendering"),I=new Af(l,k),[4,I.render(u)]):[3,3];case 2:return y=N.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+U+","+F+" with size "+Q+"x"+x+" using computed rendering"),l.logger.debug("Starting DOM parsing"),w=pi(l,u),L===w.styles.backgroundColor&&(w.styles.backgroundColor=se.TRANSPARENT),l.logger.debug("Starting renderer for element at "+k.x+","+k.y+" with size "+k.width+"x"+k.height),I=new Wd(l,k),[4,I.render(w)];case 4:y=N.sent(),N.label=5;case 5:return(!((_=A.removeContainer)!==null&&_!==void 0)||_)&&(Ya.destroy(p)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,y]}})})},sf=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,i=typeof r=="string"?ot(e,r):r===null?se.TRANSPARENT:4294967295;return A===t.documentElement?we(n)?we(a)?i:a:n:i},tn={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)},of={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"}},lf=function(e,A){var r=IA({},of);if(e)for(var t in tn)Object.prototype.hasOwnProperty.call(tn,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),tn[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},As=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)},cf=function(e){var A=e.color,r=dA().defaultStyles,t=A??"";return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:16}},v.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"}),v.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"}),v.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"}))},gf=function(e){var A=e.onSelect,r=dA().defaultStyles,t=b.useState(null),n=t[0],a=t[1],i=b.useState(!1),o=i[0],l=i[1],c=b.useState(!1),g=c[0],d=c[1],u=function(){var Q=document.getElementById("root");l(!0),nf(Q).then(function(x){var U=document.createElement("canvas"),F=U.getContext("2d",{willReadFrequently:!0});Q&&F&&(U.width=Q.offsetWidth*2,U.height=Q.offsetHeight*2,F.drawImage(x,0,0)),a(F)})},p=function(Q){if(Q.stopPropagation(),n){var x=Q.pageX,U=Q.pageY,F=x*2,L=U*2,k=n.getImageData(F,L,1,1).data;A("rgba(".concat(k[0],", ").concat(k[1],", ").concat(k[2],", 1)"))}d(!1),l(!1)},m=function(){if(d(!0),!window.EyeDropper)u();else{var Q=new window.EyeDropper,x=new window.AbortController;Q.open({signal:x.signal}).then(function(U){var F=SA(U.sRGBHex),L=F.toRgb(),k=L.r,y=L.g,w=L.b;A("rgba(".concat(k,", ").concat(y,", ").concat(w,", 1)")),d(!1)}).catch(function(U){console.log(U),d(!1)})}};return v.createElement("div",null,v.createElement("div",{onClick:m,id:"rbgcp-eyedropper-btn",style:$A($A({},r.rbgcpEyedropperBtn),ut(o,r))},v.createElement(cf,{color:g?"rgb(86, 140, 245)":""})),o&&v.createElement(Kl,null,v.createElement("div",{onClick:function(Q){return p(Q)},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)},rn=function(e){var A=e.value,r=e.reffy,t=e.label,n=e.config,a=e.callback,i=e.squareWidth,o=e.openAdvanced,l=e.defaultStyles,c=e.pickerIdSuffix,g=n.barSize,d=b.useState(!1),u=d[0],p=d[1],m=b.useState(2),Q=m[0],x=m[1],U=A*(i-18);b.useEffect(function(){var w;x(((w=r?.current)===null||w===void 0?void 0:w.offsetTop)-2)},[o,r]);var F=function(){p(!1)},L=function(w){u&&a(Ge(w,g))},k=function(w){u||a(Ge(w,g))},y=function(){p(!0)};return b.useEffect(function(){var w=function(){F()};return window.addEventListener("mouseup",w),function(){window.removeEventListener("mouseup",w)}},[]),v.createElement("div",{style:{width:"100%",padding:"3px 0px 3px 0px"}},v.createElement("div",{onMouseMove:function(w){return L(w)},style:{cursor:"resize",position:"relative"},id:"rbgcp-advanced-bar-".concat(t,"-wrapper").concat(c)},v.createElement("div",{style:Dn({left:U,top:Q},l.rbgcpHandle),id:"rbgcp-advanced-bar-".concat(t,"-handle").concat(c),onMouseDown:y,role:"button",tabIndex:0}),v.createElement("div",{style:{textAlign:"center",color:"#fff",fontSize:12,fontWeight:500,lineHeight:1,position:"absolute",left:"50%",transform:"translate(-50%, 0%)",top:Q+2,zIndex:10,textShadow:"1px 1px 1px rgba(0,0,0,.6)"},id:"rbgcp-advanced-bar-".concat(t,"-label").concat(c),onMouseMove:function(w){return L(w)},onClick:function(w){return k(w)},tabIndex:0,role:"button",onKeyDown:function(){}},t),v.createElement("canvas",{ref:r,height:"14px",width:"".concat(i,"px"),onClick:function(w){return k(w)},style:{position:"relative",borderRadius:14},id:"rbgcp-advanced-bar-".concat(t,"-canvas").concat(c)})))},uf=function(e){var A=e.openAdvanced,r=dA(),t=r.config,n=r.tinyColor,a=r.handleChange,i=r.squareWidth,o=r.hc,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.toHsl(),d=g.s,u=g.l,p=b.useRef(null),m=b.useRef(null),Q=b.useRef(null);nl(p,o?.h,u*100,i),al(m,o?.h,d*100,i),sl(Q,o?.h,d*100,i);var x=function(L){var k=SA({h:o?.h,s:L/100,l:u}).toRgb(),y=k.r,w=k.g,I=k.b;a("rgba(".concat(y,",").concat(w,",").concat(I,",").concat(o?.a,")"))},U=function(L){var k=SA({h:o?.h,s:d,l:L/100}).toRgb(),y=k.r,w=k.g,I=k.b;a("rgba(".concat(y,",").concat(w,",").concat(I,",").concat(o?.a,")"))},F=function(L){var k=SA({h:o?.h,s:o?.s*100,v:L}).toRgb(),y=k.r,w=k.g,I=k.b;a("rgba(".concat(y,",").concat(w,",").concat(I,",").concat(o?.a,")"))};return v.createElement("div",{style:{width:"100%",height:A?98:0,transition:"all 120ms linear"},id:"rbgcp-advanced-controls-wrapper".concat(c)},v.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)},v.createElement(rn,{value:d,reffy:p,config:t,label:"Saturation",callback:x,squareWidth:i,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),v.createElement(rn,{value:u,config:t,reffy:m,label:"Lightness",callback:U,squareWidth:i,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),v.createElement(rn,{value:o?.v,config:t,reffy:Q,label:"Brightness",callback:F,squareWidth:i,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c})))},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)},Bf=function(e){var A=e.openComparibles,r=dA(),t=r.tinyColor,n=r.handleChange,a=r.defaultStyles,i=r.pickerIdSuffix,o=t.analogous(),l=t.monochromatic(),c=t.triad(),g=t.tetrad(),d=function(u){var p=u.toRgb(),m=p.r,Q=p.g,x=p.b,U=p.a;n("rgba(".concat(m,",").concat(Q,",").concat(x,",").concat(U,")"))};return v.createElement("div",{style:{width:"100%",transition:"all 120ms linear",height:A?216:0},id:"rbgcp-comparible-colors-wrapper".concat(i)},v.createElement("div",{style:{paddingTop:11,display:A?"":"none",position:"relative"},id:"rbgcp-comparible-colors-inner".concat(i)},v.createElement("div",{style:Fe({textAlign:"center",fontSize:13,fontWeight:600,position:"absolute",top:6.5,left:2},a.rbgcpComparibleLabel),id:"rbgcp-comparible-color-guide-label".concat(i)},"Color Guide"),v.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-analogous-colors-label".concat(i)},"Analogous"),v.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex"},id:"rbgcp-comparible-analogous-colors".concat(i)},o?.map(function(u,p){return v.createElement("div",{key:p,id:"rbgcp-comparible-analogous-color-".concat(p).concat(i),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return d(u)}})})),v.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-monochromatic-colors-label".concat(i)},"Monochromatic"),v.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-monochromatic-colors".concat(i)},l?.map(function(u,p){return v.createElement("div",{key:p,id:"rbgcp-comparible-monochromatic-color-".concat(p).concat(i),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return d(u)}})})),v.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-triad-colors-label".concat(i)},"Triad"),v.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-triad-colors".concat(i)},c?.map(function(u,p){return v.createElement("div",{key:p,id:"rbgcp-comparible-triad-color-".concat(p).concat(i),style:{width:"calc(100% / 3)",height:28,background:u.toHexString()},onClick:function(){return d(u)}})})),v.createElement("div",{style:Fe({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-tetrad-colors-label".concat(i)},"Tetrad"),v.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-tetrad-colors".concat(i)},g?.map(function(u,p){return v.createElement("div",{key:p,id:"rbgcp-comparible-tetrad-color-".concat(p).concat(i),style:{width:"25%",height:28,background:u.toHexString()},onClick:function(){return d(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)},df=function(){var e=dA(),A=e.gradientType,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,i=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 v.createElement("div",{style:n.rbgcpControlBtnWrapper},v.createElement("div",{onClick:l,id:"rbgcp-linear-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),i&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},v.createElement(yl,{color:i?"#568CF5":""})),v.createElement("div",{onClick:c,id:"rbgcp-radial-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),o&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},v.createElement(xl,{color:o?"#568CF5":""})))},ff=function(){var e=dA(),A=e.currentLeft,r=e.currentColor,t=e.defaultStyles,n=e.handleGradient,a=e.pickerIdSuffix,i=function(o){n(r,_e(parseInt(o),0,100))};return v.createElement("div",{style:CA(CA(CA(CA({},t.rbgcpControlBtnWrapper),t.rbgcpControlInputWrap),t.rbgcpStopInputWrap),{paddingLeft:8}),id:"rbgcp-stop-input-wrapper".concat(a)},v.createElement(kl,null),v.createElement("input",{value:A,id:"rbgcp-stop-input".concat(a),onChange:function(o){return i(o.target.value)},style:CA(CA({},t.rbgcpControlInput),t.rbgcpStopInput)}))},hf=function(){var e=dA(),A=e.degrees,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,i=function(o){var l=_e(o.target.value,0,360),c=t.split(/,(.+)/)[1];r("linear-gradient(".concat(l??0,"deg, ").concat(c))};return v.createElement("div",{style:CA(CA(CA({},n.rbgcpControlBtnWrapper),n.rbgcpControlInputWrap),n.rbgcpDegreeInputWrap),id:"rbgcp-degree-input-wrapper".concat(a)},v.createElement(Ll,null),v.createElement("input",{value:A,onChange:function(o){return i(o)},id:"rbgcp-degree-input".concat(a),style:CA(CA({},n.rbgcpControlInput),n.rbgcpDegreeInput)}),v.createElement("div",{style:CA(CA({},n.rbgcpDegreeIcon),{position:"absolute",right:A>99?0:A<10?7:3,top:1,fontWeight:400,fontSize:13})},"°"))},wf=function(){var e=dA(),A=e.colors,r=e.selectedColor,t=e.createGradientStr,n=e.defaultStyles,a=e.pickerIdSuffix,i=function(){if(A?.length>2){var o=A?.map(function(c,g){return CA(CA({},c),{value:g===r-1?Qr(c):mt(c)})}),l=o?.filter(function(c,g){return g!==r});t(l)}};return v.createElement("div",{onClick:i,style:CA(CA({},ut(!1,n)),{width:28}),id:"rbgcp-point-delete-btn".concat(a),tabIndex:0,role:"button",onKeyDown:function(){}},v.createElement(El,null))},es=function(e){var A=e.hideGradientType,r=e.hideGradientAngle,t=e.hideGradientStop,n=dA(),a=n.gradientType,i=n.defaultStyles,o=n.pickerIdSuffix;return v.createElement("div",{style:CA(CA({},i.rbgcpControlBtnWrapper),{marginTop:12,marginBottom:-4,justifyContent:"space-between",paddingLeft:A?4:0}),id:"rbgcp-gradient-controls-wrap".concat(o)},!A&&v.createElement(df,null),v.createElement("div",{style:{width:53}},!r&&a==="linear-gradient"&&v.createElement(hf,null)),!t&&v.createElement(ff,null),v.createElement(wf,null))},pt=function(){return pt=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},pt.apply(this,arguments)},pf=function(e){var A,r,t=e.hideColorTypeBtns,n=e.setGradient,a=e.isGradient,i=e.setSolid,o=e.locales,l=dA(),c=l.defaultStyles,g=l.pickerIdSuffix;return t?v.createElement("div",{style:{width:1}}):v.createElement("div",{style:pt({display:"flex",alignItems:"center"},c.rbgcpControlBtnWrapper),id:"rbgcp-color-type-btns".concat(g)},v.createElement("div",{onClick:i,id:"rbgcp-solid-btn".concat(g),style:As(!a,c)},(A=o?.CONTROLS)===null||A===void 0?void 0:A.SOLID),v.createElement("div",{onClick:n,id:"rbgcp-gradient-btn".concat(g),style:As(a??!1,c)},(r=o?.CONTROLS)===null||r===void 0?void 0:r.GRADIENT))},Cf=function(e){var A=e.openInputType,r=e.setOpenInputType,t=dA(),n=t.inputType,a=t.setInputType,i=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",d=function(u,p){A&&(u.stopPropagation(),a(p),r(!1))};return v.createElement("div",{style:pt({visibility:A?"visible":"hidden",zIndex:A?"":-100,opacity:A?1:0,transition:"".concat(g,", ").concat(l,", ").concat(c)},i.rbgcpColorModelDropdown),id:"rbgcp-color-model-dropdown".concat(o)},v.createElement("div",{id:"rbgcp-color-model-rgb-btn".concat(o),onClick:function(u){return d(u,"rgb")},style:Zt(n==="rgb",i)},"RGB"),v.createElement("div",{id:"rbgcp-color-model-hsl-btn".concat(o),onClick:function(u){return d(u,"hsl")},style:Zt(n==="hsl",i)},"HSL"),v.createElement("div",{id:"rbgcp-color-model-hsv-btn".concat(o),onClick:function(u){return d(u,"hsv")},style:Zt(n==="hsv",i)},"HSV"),v.createElement("div",{id:"rbgcp-color-model-cmyk-btn".concat(o),onClick:function(u){return d(u,"cmyk")},style:Zt(n==="cmyk",i)},"CMYK"))},Qf=function(e){var A,r,t=e.locales,n=e.hideEyeDrop,a=n===void 0?!1:n,i=e.hideAdvancedSliders,o=i===void 0?!1:i,l=e.hideColorGuide,c=l===void 0?!1:l,g=e.hideInputType,d=g===void 0?!1:g,u=e.hideColorTypeBtns,p=u===void 0?!1:u,m=e.hideGradientControls,Q=m===void 0?!1:m,x=e.hideGradientType,U=x===void 0?!1:x,F=e.hideGradientAngle,L=F===void 0?!1:F,k=e.hideGradientStop,y=k===void 0?!1:k,w=dA(),I=w.config,K=w.onChange,M=w.isGradient,O=w.handleChange,R=w.previous,P=w.defaultStyles,D=w.pickerIdSuffix,W=I.defaultColor,$=I.defaultGradient,eA=b.useState(!1),AA=eA[0],fA=eA[1],sA=b.useState(!1),q=sA[0],cA=sA[1],iA=b.useState(!1),S=iA[0],_=iA[1],N=a&&o&&c&&d,Y=(A=R?.color)!==null&&A!==void 0?A:W,gA=(r=R?.gradient)!==null&&r!==void 0?r:$,Z=function(){K(Y)},z=function(){K(gA)},tA=a&&o&&c&&d,H=tA&&p;return H?M&&!Q?v.createElement(es,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:y}):null:v.createElement("div",{style:{paddingBottom:4}},v.createElement("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},id:"rbgcp-controls-wrapper".concat(D)},v.createElement(pf,{hideColorTypeBtns:p,setGradient:z,isGradient:M,setSolid:Z,locales:t}),!tA&&v.createElement("div",{style:pt({display:N?"none":""},P.rbgcpControlBtnWrapper),id:"rbgcp-control-rightside-wrapper".concat(D)},!a&&v.createElement(gf,{onSelect:O}),!o&&v.createElement("div",{id:"rbgcp-advanced-btn".concat(D),onClick:function(){return _(!S)},style:ut(S,P)},v.createElement(Il,{color:S?"#568CF5":""})),!c&&v.createElement("div",{style:ut(AA,P),onClick:function(){return fA(!AA)},id:"rbgcp-comparibles-btn".concat(D)},v.createElement(Sl,{color:AA?"#568CF5":""})),!d&&v.createElement("div",{id:"rbgcp-color-model-btn".concat(D),onClick:function(){return cA(!q)},style:ut(q,P)},v.createElement(Hl,{color:q?"#568CF5":""}),v.createElement(Cf,{openInputType:q,setOpenInputType:cA})))),!o&&v.createElement(uf,{openAdvanced:S}),!c&&v.createElement(Bf,{openComparibles:AA}),M&&!Q&&v.createElement(es,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:y}))},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)},ts=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))},mf=function(e){var A=e.left,r=e.i,t=e.setDragging,n=dA(),a=n.colors,i=n.squareWidth,o=n.selectedColor,l=n.defaultStyles,c=n.pickerIdSuffix,g=n.createGradientStr,d=o===r,u=(i-18)/100,p=function(Q){var x=a?.map(function(U,F){return Ae(Ae({},U),{value:F===Q?Qr(U):mt(U)})});g(x)},m=function(Q){Q.stopPropagation(),p(r),t(!0)};return v.createElement("div",{onMouseDown:function(Q){return m(Q)},id:"rbgcp-gradient-handle-".concat(r).concat(c),style:Ae(Ae({},l.rbgcpGradientHandleWrap),{left:(A??0)*u})},v.createElement("div",{style:Ae(Ae({},l.rbgcpGradientHandle),d?{boxShadow:"0px 0px 5px 1px rgba(86, 140, 245,.95)",border:"2px solid white"}:{}),id:"rbgcp-gradient-handle-".concat(r,"-dot").concat(c)},d&&v.createElement("div",{style:{width:5,height:5,borderRadius:"50%",background:"white"},id:"rbgcp-gradient-handle-".concat(r,"-selected-dot").concat(c)})))},vf=function(){var e=dA(),A=e.value,r=e.colors,t=e.config,n=e.squareWidth,a=e.currentColor,i=e.handleGradient,o=e.pickerIdSuffix,l=e.createGradientStr,c=t.barSize,g=b.useState(!1),d=g[0],u=g[1];function p(L){return L.replace(/(radial|linear)-gradient\([^,]+,/,"linear-gradient(90deg,")}var m=function(L){var k,y=Ge(L,c),w=(k=ts(ts([],r.map(function(I){return Ae(Ae({},I),{value:mt(I)})}),!0),[{value:a,left:y}],!1))===null||k===void 0?void 0:k.sort(function(I,K){return I.left-K.left});l(w)},Q=function(){u(!1)},x=function(L){d||(m(L),u(!0))},U=function(L){d&&i(a,Ge(L,c))},F=function(){Q()};return b.useEffect(function(){return window.addEventListener("mouseup",F),function(){window.removeEventListener("mouseup",F)}}),v.createElement("div",{style:{width:"100%",marginTop:17,marginBottom:4,position:"relative"},id:"rbgcp-gradient-bar".concat(o)},v.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,k){return v.createElement(mf,{i:k,left:L.left,key:"".concat(k,"-").concat(L),setDragging:u})}))},Uf=function(e){var A=e.locales,r=e.presets,t=e.hideHue,n=e.hideInputs,a=e.hidePresets,i=e.hideOpacity,o=e.hideEyeDrop,l=e.hideControls,c=e.hideInputType,g=e.hideColorGuide,d=e.hidePickerSquare,u=e.hideGradientType,p=e.hideGradientStop,m=e.hideGradientAngle,Q=e.hideColorTypeBtns,x=e.hideAdvancedSliders,U=e.hideGradientControls,F=dA(),L=F.isGradient,k=F.pickerIdSuffix;return v.createElement("div",{style:{userSelect:"none"},id:"rbgcp-color-picker".concat(k)},!d&&v.createElement(ml,null),!l&&v.createElement(Qf,{locales:A,hideEyeDrop:o,hideInputType:c,hideColorGuide:g,hideGradientType:u,hideGradientStop:p,hideColorTypeBtns:Q,hideGradientAngle:m,hideAdvancedSliders:x,hideGradientControls:U}),L&&v.createElement(vf,null),!t&&v.createElement(il,null),!i&&v.createElement(vl,null),!n&&v.createElement(hl,null),!a&&v.createElement(bl,{presets:r}))},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)};function Ff(e){var A=e.idSuffix,r=e.value,t=r===void 0?"rgba(175, 51, 242, 1)":r,n=e.onChange,a=e.hideControls,i=a===void 0?!1:a,o=e.hideInputs,l=o===void 0?!1:o,c=e.hideOpacity,g=c===void 0?!1:c,d=e.hidePresets,u=d===void 0?!1:d,p=e.hideHue,m=p===void 0?!1:p,Q=e.presets,x=Q===void 0?[]:Q,U=e.hideEyeDrop,F=U===void 0?!1:U,L=e.hideAdvancedSliders,k=L===void 0?!1:L,y=e.hideColorGuide,w=y===void 0?!1:y,I=e.hideInputType,K=I===void 0?!1:I,M=e.hideColorTypeBtns,O=M===void 0?!1:M,R=e.hideGradientType,P=R===void 0?!1:R,D=e.hideGradientAngle,W=D===void 0?!1:D,$=e.hideGradientStop,eA=$===void 0?!1:$,AA=e.hideGradientControls,fA=AA===void 0?!1:AA,sA=e.locales,q=sA===void 0?Ul:sA,cA=e.width,iA=cA===void 0?294:cA,S=e.height,_=S===void 0?294:S,N=e.style,Y=N===void 0?{}:N,gA=e.className,Z=e.disableDarkMode,z=Z===void 0?!1:Z,tA=e.disableLightMode,H=tA===void 0?!1:tA,X=e.hidePickerSquare,B=X===void 0?!1:X,C=e.showHexAlpha,h=C===void 0?!1:C,E=e.config,T=E===void 0?{}:E,G=qo(t),aA=typeof window>"u"||z?!1:!!(window.matchMedia("(prefers-color-scheme: dark)").matches||H),hA=lf(aA,Y),UA=aA?"-dark".concat(A?"-".concat(A):""):A?"-".concat(A):"";return v.createElement("div",{className:gA,style:Cr(Cr({},hA.body),{width:iA})},v.createElement(tl,{value:G,onChange:n,squareWidth:iA,passedConfig:T,squareHeight:_,isDarkMode:aA,hideOpacity:g,showHexAlpha:h,defaultStyles:hA,pickerIdSuffix:UA},v.createElement(Uf,{hideControls:i,hideInputs:l,hidePresets:u,hideOpacity:g,hideHue:m,presets:x,hideEyeDrop:F,hideAdvancedSliders:k,hideColorGuide:w,hideInputType:K,hideColorTypeBtns:O,hideGradientType:P,hideGradientAngle:W,hideGradientStop:eA,hideGradientControls:fA,hidePickerSquare:B,locales:q})))}const bf=()=>{const[e,A]=b.useState(localStorage.getItem("customBackgroundColour")||"rgba(0, 0, 0, 100)"),r=n=>{A(n),localStorage.setItem("customBackgroundColour",n),vA.emit("refresh","background")},t=()=>{A("rgba(0, 0, 0, 0)"),localStorage.setItem("customBackgroundColour","rgba(0, 0, 0, 100)"),RA(f.getMessage("toasts.reset")),vA.emit("refresh","background")};return s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.source.custom_colour")}),s.jsxs(lA,{children:[s.jsx(Ff,{value:e,onChange:r,hideEyeDrop:!0,hideColorGuide:!0,hidePresets:!0,hideAdvancedSliders:!1,hideColorTypeBtns:!1,hideInputType:!1,height:147}),s.jsx("div",{className:"colourReset",children:s.jsxs("span",{className:"link",onClick:()=>t(),children:[s.jsx(fe,{}),f.getMessage("modals.main.settings.buttons.reset")]})})]})]})};var Ef=["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","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],qe=(e,A)=>{var r="";for(let t=1;t<=A;t++){let n=Math.floor(e)/Math.pow(83,A-t)%83;r+=Ef[Math.floor(n)]}return r},nn=e=>{let A=e/255;return A<=.04045?A/12.92:Math.pow((A+.055)/1.055,2.4)},an=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)},yf=e=>e<0?-1:1,sn=(e,A)=>yf(e)*Math.pow(Math.abs(e),A),rs=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},ns=4,xf=(e,A,r,t)=>{let n=0,a=0,i=0,o=A*ns;for(let c=0;c<A;c++){let g=ns*c;for(let d=0;d<r;d++){let u=g+d*o,p=t(c,d);n+=p*nn(e[u]),a+=p*nn(e[u+1]),i+=p*nn(e[u+2])}}let l=1/(A*r);return[n*l,a*l,i*l]},If=e=>{let A=an(e[0]),r=an(e[1]),t=an(e[2]);return(A<<16)+(r<<8)+t},Hf=(e,A)=>{let r=Math.floor(Math.max(0,Math.min(18,Math.floor(sn(e[0]/A,.5)*9+9.5)))),t=Math.floor(Math.max(0,Math.min(18,Math.floor(sn(e[1]/A,.5)*9+9.5)))),n=Math.floor(Math.max(0,Math.min(18,Math.floor(sn(e[2]/A,.5)*9+9.5))));return r*19*19+t*19+n},Sf=(e,A,r,t,n)=>{if(t<1||t>9||n<1||n>9)throw new rs("BlurHash must have between 1 and 9 components");if(A*r*4!==e.length)throw new rs("Width and height must match the pixels array");let a=[];for(let d=0;d<n;d++)for(let u=0;u<t;u++){let p=u==0&&d==0?1:2,m=xf(e,A,r,(Q,x)=>p*Math.cos(Math.PI*u*Q/A)*Math.cos(Math.PI*d*x/r));a.push(m)}let i=a[0],o=a.slice(1),l="",c=t-1+(n-1)*9;l+=qe(c,1);let g;if(o.length>0){let d=Math.max(...o.map(p=>Math.max(...p))),u=Math.floor(Math.max(0,Math.min(82,Math.floor(d*166-.5))));g=(u+1)/166,l+=qe(u,1)}else g=1,l+=qe(0,1);return l+=qe(If(i),4),o.forEach(d=>{l+=qe(Hf(d,g),2)}),l},Lf=Sf;async function on(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 ln(e,A=4,r=3){return new Promise((t,n)=>{const a=new Image;a.onload=()=>{try{const i=document.createElement("canvas"),o=i.getContext("2d"),l=64,c=Math.min(l/a.width,l/a.height);i.width=Math.floor(a.width*c),i.height=Math.floor(a.height*c),o.drawImage(a,0,0,i.width,i.height);const g=o.getImageData(0,0,i.width,i.height),d=Lf(g.data,g.width,g.height,A,r);typeof e!="string"&&URL.revokeObjectURL(a.src),t(d)}catch(i){n(i)}},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 as(e,A){return e&&e.name?e.name:`Image ${A+1}`}function kf(){const e={};return Object.keys(localStorage).forEach(A=>{e[A]=localStorage.getItem(A)}),new TextEncoder().encode(JSON.stringify(e)).length}function Qe(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]}function Mf({modalClose:e,urlError:A,modalCloseOnly:r}){const[t,n]=b.useState();return s.jsxs("div",{className:"smallModal",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.add_url")}),s.jsx(Bn,{title:f.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),children:s.jsx("div",{className:"close",onClick:r,children:s.jsx(er,{})})})]}),s.jsx("input",{type:"text",value:t,onChange:a=>n(a.target.value.replace(/(\r\n|\n|\r)/gm,""))}),s.jsx("span",{className:"dropdown-error",children:A}),s.jsxs("div",{className:"resetFooter",children:[s.jsx(pA,{type:"secondary",onClick:r,icon:s.jsx(er,{}),label:f.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),s.jsx(pA,{type:"settings",onClick:()=>e(t),icon:s.jsx(qi,{}),label:f.getMessage("modals.main.settings.sections.background.source.add_url")})]})]})}const Kf=b.memo(Mf),Tf=({files:e,onConfirm:A,onCancel:r})=>{const[t,n]=b.useState(""),a=()=>{A(t.trim())};return s.jsxs("div",{className:"smallModal",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.tag_images")}),s.jsx("button",{className:"closeModal",onClick:r,children:s.jsx(er,{})})]}),s.jsxs("div",{className:"taggingModalContent",children:[s.jsx("p",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.tag_description",{count:e.length})}),s.jsxs("div",{className:"taggingInput",children:[s.jsx("label",{children:f.getMessage("modals.main.settings.sections.background.source.folder_name")}),s.jsx("input",{type:"text",placeholder:f.getMessage("modals.main.settings.sections.background.source.folder_placeholder"),value:t,onChange:i=>n(i.target.value),onKeyPress:i=>{i.key==="Enter"&&a()},autoFocus:!0})]})]}),s.jsxs("div",{className:"resetFooter",children:[s.jsx(pA,{type:"settings",onClick:r,label:f.getMessage("modals.main.settings.buttons.cancel")}),s.jsx(pA,{type:"settings",onClick:a,label:f.getMessage("modals.main.settings.buttons.continue")})]})]})},ki=b.memo(()=>{const[e,A]=b.useState([]),[r,t]=b.useState(!1),[n,a]=b.useState(!1),[i,o]=b.useState([]),[l,c]=b.useState(""),[g,d]=b.useState(!0),[u,p]=b.useState(!1),[m,Q]=b.useState({current:0,total:0}),[x,U]=b.useState(!1),[F,L]=b.useState(new Set),[k,y]=b.useState(localStorage.getItem("customImageSort")||"date_desc"),[w,I]=b.useState(!1),[K,M]=b.useState({usage:0,quota:0}),O=b.useRef(null),R=b.useRef(0),P=5e7;b.useEffect(()=>{(async()=>{if(navigator.storage&&navigator.storage.estimate)try{const X=await navigator.storage.estimate();M({usage:X.usage||0,quota:X.quota||P})}catch(X){console.warn("Could not get storage estimate:",X),M({usage:0,quota:P})}else M({usage:0,quota:P})})()},[e]),b.useEffect(()=>{(async()=>{try{await ao();const X=await xe();A(X),X.forEach(async B=>{if(!B.dimensions&&B.url&&!bt(B.url))try{const C=await on(B.url),h=await ln(B.url);await so(B.id,{dimensions:C,blurHash:h});const E=await xe();A(E)}catch(C){console.warn("Could not extract metadata for existing image:",C)}})}catch(X){console.error("Error loading backgrounds:",X),RA(f.getMessage("toasts.error"))}finally{d(!1)}})()},[]);const D=b.useCallback(async(H,X,B,C=!1)=>{try{const h={url:X,name:B.name,uploadDate:Date.now(),dimensions:B.dimensions,fileSize:B.fileSize,folder:B.folder||"",blurHash:B.blurHash};await Lr(h);const E=await xe();A(E);try{localStorage.setItem("customBackground",JSON.stringify(E.map(T=>T.url)))}catch{console.warn("localStorage quota exceeded, storing count only"),localStorage.setItem("customBackgroundCount",E.length.toString())}C||vA.emit("refresh","background")}catch(h){console.error("Error saving background:",h),RA(f.getMessage("toasts.error"))}},[]),W=async(H,X="")=>{const B=e.reduce((h,E)=>E.url&&E.url.startsWith("data:")?h+cn(E.url):h,0),C=K.quota||P;if(B/C>.9&&navigator.storage&&navigator.storage.persist)try{await navigator.storage.persist()&&console.log("Storage persistence granted")}catch(h){console.warn("Could not request storage persistence:",h)}if(bt(H.type)){if(B+H.size>C)throw new Error("no_storage");const h=new FileReader;return new Promise((E,T)=>{h.onloadend=()=>{E({dataUrl:h.result,metadata:{name:as(H,e.length),dimensions:null,fileSize:H.size,folder:X,blurHash:null}})},h.onerror=T,h.readAsDataURL(H)})}else{const h=await qn.compressAccurately(H,{size:450,accuracy:.9}),E=K.quota||P;if(B+h.size>E)throw new Error("no_storage");const T=await qn.filetoDataURL(h),[G,aA]=await Promise.all([on(T),ln(T).catch(()=>null)]);return{dataUrl:T,metadata:{name:as(H,e.length),dimensions:G,fileSize:cn(T),folder:X,blurHash:aA}}}},$=async(H,X="")=>{p(!0),Q({current:0,total:H.length});const B=[];for(let C=0;C<H.length;C++)try{const h=await W(H[C],X);await D(H[C],h.dataUrl,h.metadata,!0),Q({current:C+1,total:H.length})}catch(h){if(h.message==="no_storage"){RA(f.getMessage("toasts.no_storage"));break}B.push(H[C].name)}B.length>0&&RA(f.getMessage("toasts.error")+`: ${B.join(", ")}`),vA.emit("refresh","background"),p(!1),Q({current:0,total:0})},eA=async H=>{a(!1),await $(i,H),o([])},AA=b.useCallback(async(H,X)=>{try{H==="add"?await Lr(""):await zi(X);const B=await xe();A(B);try{localStorage.setItem("customBackground",JSON.stringify(B.map(C=>C.url)))}catch{console.warn("localStorage quota exceeded, storing count only"),localStorage.setItem("customBackgroundCount",B.length.toString())}vA.emit("refresh","background")}catch(B){console.error("Error modifying background:",B),RA(f.getMessage("toasts.error"))}},[]),fA=async()=>{if(F.size!==0)try{const H=Array.from(F).sort((B,C)=>C-B);await io(H);const X=await xe();A(X),L(new Set);try{localStorage.setItem("customBackground",JSON.stringify(X.map(B=>B.url)))}catch{localStorage.setItem("customBackgroundCount",X.length.toString())}vA.emit("refresh","background"),RA(f.getMessage("toasts.deleted"))}catch(H){console.error("Error batch deleting:",H),RA(f.getMessage("toasts.error"))}},sA=H=>{const X=new Set(F);X.has(H)?X.delete(H):X.add(H),L(X)},q=H=>{y(H),localStorage.setItem("customImageSort",H)},cA=b.useCallback(()=>{document.getElementById("bg-input").click()},[]),iA=b.useCallback(async H=>{if(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(H)===!1)return c(f.getMessage("widgets.quicklinks.url_error"));t(!1);try{const B=H.split("/"),C=B[B.length-1].split("?")[0]||"Remote Image";let h=null,E=null;try{h=await on(H),E=await ln(H)}catch(aA){console.warn("Could not extract metadata from remote image:",aA)}const T={url:H,name:C,uploadDate:Date.now(),dimensions:h,fileSize:null,folder:"",blurHash:E};await Lr(T);const G=await xe();A(G)}catch(B){console.error("Error adding URL:",B),RA(f.getMessage("toasts.error"))}try{localStorage.setItem("customBackground",JSON.stringify(updatedBackgrounds.map(B=>B.url)))}catch{localStorage.setItem("customBackgroundCount",updatedBackgrounds.length.toString())}vA.emit("refresh","background")},[e.length]),S=async H=>{H.length>1?(o(H),a(!0)):await $(H,"")},_=[...e].sort((H,X)=>{switch(k){case"date_asc":return H.uploadDate-X.uploadDate;case"date_desc":return X.uploadDate-H.uploadDate;case"name_asc":return(H.name||"").localeCompare(X.name||"");case"name_desc":return(X.name||"").localeCompare(H.name||"");case"size_asc":return(H.fileSize||0)-(X.fileSize||0);case"size_desc":return(X.fileSize||0)-(H.fileSize||0);default:return 0}}),N=e.reduce((H,X)=>X.url&&X.url.startsWith("data:")?H+cn(X.url):H,0),Y=K.quota||P,gA=N/Y*100,Z=kf(),z=5242880;b.useEffect(()=>{const H=O.current;if(!H)return;const X=E=>{E.preventDefault(),E.stopPropagation()},B=E=>{E.preventDefault(),E.stopPropagation(),R.current++,E.dataTransfer.items&&E.dataTransfer.items.length>0&&U(!0)},C=E=>{E.preventDefault(),E.stopPropagation(),R.current--,R.current===0&&U(!1)},h=async E=>{E.preventDefault(),E.stopPropagation(),U(!1),R.current=0;const T=Array.from(E.dataTransfer.files);T.length!==0&&(T.length>1?(o(T),a(!0)):await $(T,""))};return H.ondragover=X,H.ondragenter=B,H.ondragleave=C,H.ondrop=h,()=>{H&&(H.ondragover=null,H.ondragenter=null,H.ondragleave=null,H.ondrop=null)}},[e.length,$]);const tA=_.filter(H=>H&&bt(H.url)).length>0;return g?s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"loaderHolder",children:[s.jsx("div",{id:"loader"}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.loading")})]})}):u?s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"loaderHolder",children:[s.jsx("div",{id:"loader"}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.uploading",{current:m.current,total:m.total})}),s.jsxs("span",{className:"subtitle",children:[Math.round(m.current/m.total*100),"%"]})]})}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:`dropzone ${x?"dragging":""}`,ref:O,style:x?{outline:"2px dashed #ff5c25",outlineOffset:"-2px",backgroundColor:"rgba(255, 92, 37, 0.1)",transition:"all 0.2s ease"}:{},children:[s.jsxs("div",{className:"imagesTopBar",children:[s.jsxs("div",{className:"imagesTopBarTitle",children:[s.jsx(Zn,{}),s.jsxs("div",{children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.custom_title")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.custom_description")})]})]}),s.jsx("div",{className:"topbarbuttons",children:s.jsx(pA,{type:"settings",onClick:cA,icon:s.jsx($i,{}),label:f.getMessage("modals.main.settings.sections.background.source.upload")})})]}),s.jsxs("div",{className:"imagesControlBar",children:[s.jsxs("div",{className:"controlBarLeft",children:[s.jsxs("span",{className:"image-count",children:[e.length," ",e.length===1?"image":"images",s.jsxs("span",{className:"storage-info",children:[" ","· ",Qe(N)," / ",Qe(Y),gA>80&&navigator.storage&&navigator.storage.persist&&s.jsx(Bn,{title:"Request persistent storage to prevent browser from automatically clearing your images",children:s.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(H){console.error("Storage request error:",H),RA("Could not request persistent storage")}},children:"Protect images"})})]})]}),s.jsx("span",{className:"selection-separator",children:"·"}),F.size>0?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"selected-count",children:[F.size," selected"]}),s.jsx("button",{className:"delete-link",onClick:fA,children:"Delete"}),F.size<e.length&&s.jsx("button",{className:"select-all-link",onClick:()=>{const H=new Set(e.map((X,B)=>B));L(H)},children:"Select all"}),F.size===e.length&&s.jsx("button",{className:"select-all-link",onClick:()=>L(new Set),children:"Deselect all"})]}):e.length>0&&s.jsx("button",{className:"select-all-link",onClick:()=>{const H=new Set(e.map((X,B)=>B));L(H)},children:"Select all"})]}),s.jsx("div",{className:"controlBarRight",children:s.jsx(KA,{name:"customImageSort",category:"customImageSort",onChange:q,items:[{value:"date_desc",text:f.getMessage("modals.main.settings.sections.background.source.sort.date_newest")},{value:"date_asc",text:f.getMessage("modals.main.settings.sections.background.source.sort.date_oldest")},{value:"name_asc",text:f.getMessage("modals.main.settings.sections.background.source.sort.name_asc")},{value:"name_desc",text:f.getMessage("modals.main.settings.sections.background.source.sort.name_desc")},{value:"size_asc",text:f.getMessage("modals.main.settings.sections.background.source.sort.size_small")},{value:"size_desc",text:f.getMessage("modals.main.settings.sections.background.source.sort.size_large")}]})})]}),s.jsx("div",{className:"dropzone-content",children:_.length>0?s.jsx("div",{className:`images-grid ${F.size>0?"selection-mode":""}`,children:_.map((H,X)=>{const B=e.findIndex(h=>h===H),C=H&&bt(H.url);return s.jsxs("div",{className:"image-card",onClick:h=>{h.target.closest(".image-nav-buttons")||sA(B)},children:[s.jsx("div",{className:"image-checkbox",children:s.jsx("input",{type:"checkbox",checked:F.has(B),onChange:()=>sA(B)})}),s.jsxs("div",{className:"image-preview",children:[H.blurHash&&!C&&(()=>{const h=Ao(H.blurHash,32,32);return h?s.jsx("div",{className:"blur-placeholder",style:{backgroundImage:`url(${h})`,filter:"blur(20px)",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0}}):null})(),C?s.jsx("div",{className:"video-icon-wrapper",children:s.jsx(eo,{className:"customvideoicon"})}):s.jsx("img",{alt:H.name||"Custom background",src:H.url,loading:"lazy",style:{position:"relative",zIndex:1}}),s.jsxs("div",{className:"image-nav-buttons",children:[s.jsx("button",{className:"nav-button nav-prev",onClick:()=>{if(X>0){const h=_[X-1];vA.emit("refresh","background",h.url)}},disabled:X===0,children:s.jsx(to,{})}),s.jsx("button",{className:"nav-button nav-next",onClick:()=>{if(X<_.length-1){const h=_[X+1];vA.emit("refresh","background",h.url)}},disabled:X===_.length-1,children:s.jsx(ro,{})})]})]}),s.jsxs("div",{className:"image-metadata",children:[s.jsx("span",{className:"image-name",title:H.name,children:H.name||"Unnamed"}),s.jsxs("div",{className:"image-details",children:[H.dimensions&&s.jsxs("span",{className:"detail",children:[H.dimensions.width," × ",H.dimensions.height]}),H.fileSize&&s.jsx("span",{className:"detail",children:Qe(H.fileSize)}),H.folder&&s.jsx("span",{className:"detail folder-tag",children:H.folder})]})]}),s.jsx(Bn,{title:f.getMessage("modals.main.settings.sections.background.source.remove"),children:s.jsx("button",{className:"delete-button",onClick:()=>AA("remove",B),children:s.jsx(Bt,{})})})]},B)})}):s.jsx("div",{className:"photosEmpty",children:s.jsxs("div",{className:"emptyNewMessage",children:[s.jsx(Zn,{}),s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.drop_to_upload")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.formats",{list:"jpeg, png, webp, webm, gif, mp4, webm, ogg"})}),s.jsx(pA,{type:"settings",onClick:cA,icon:s.jsx(no,{}),label:f.getMessage("modals.main.settings.sections.background.source.select")})]})})})]}),s.jsx(Es,{id:"bg-input",accept:"image/jpeg, image/png, image/webp, image/webm, image/gif, video/mp4, video/webm, video/ogg",multiple:!0,loadFunction:async H=>{await S(H)}}),tA&&s.jsxs(s.Fragment,{children:[s.jsx(mA,{name:"backgroundVideoLoop",text:f.getMessage("modals.main.settings.sections.background.source.loop_video")}),s.jsx(mA,{name:"backgroundVideoMute",text:f.getMessage("modals.main.settings.sections.background.source.mute_video")})]}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>t(!1),isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(Kf,{modalClose:iA,urlError:l,modalCloseOnly:()=>t(!1)})}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>{a(!1),o([])},isOpen:n,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(Tf,{files:i,onConfirm:eA,onCancel:()=>{a(!1),o([])}})}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>I(!1),isOpen:w,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsxs("div",{className:"smallModal",children:[s.jsxs("div",{className:"shareHeader",children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.background.source.storage_info")}),s.jsx("button",{className:"closeModal",onClick:()=>I(!1),children:s.jsx(Bt,{})})]}),s.jsxs("div",{style:{padding:"20px"},children:[s.jsx("p",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.background.source.storage_description")}),s.jsxs("div",{style:{marginTop:"20px"},children:[s.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Custom Backgrounds"}),s.jsxs("p",{className:"subtitle",children:[Qe(N)," / ",Qe(Y)," (",Math.round(gA),"%)"]})]}),s.jsxs("div",{style:{marginTop:"15px"},children:[s.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Total localStorage Usage"}),s.jsxs("p",{className:"subtitle",children:[Qe(Z)," / ",Qe(z)," (",Math.round(Z/z*100),"%)"]}),s.jsx("p",{className:"subtitle",style:{marginTop:"8px",fontSize:"12px",opacity:.7},children:"Includes all Mue settings and custom images"})]})]}),s.jsx("div",{className:"resetFooter",children:s.jsx(pA,{type:"settings",onClick:()=>I(!1),label:f.getMessage("modals.main.settings.buttons.close")})})]})})]})});ki.displayName="CustomSettings";const Df=({usingImage:e})=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.display"),subtitle:f.getMessage("modals.main.settings.sections.background.display_subtitle")}),s.jsxs(lA,{children:[s.jsx(mA,{name:"bgtransition",text:f.getMessage("modals.main.settings.sections.background.transition"),element:".other",disabled:!e}),s.jsx(mA,{name:"photoInformation",text:f.getMessage("modals.main.settings.sections.background.photo_information"),element:".other"}),s.jsx(mA,{name:"photoMap",text:f.getMessage("modals.main.settings.sections.background.show_map"),element:".other",disabled:!e})]})]});f.getMessage("modals.main.settings.sections.background.source.quality.original"),f.getMessage("modals.main.settings.sections.background.source.quality.high"),f.getMessage("modals.main.settings.sections.background.source.quality.normal"),f.getMessage("modals.main.settings.sections.background.source.quality.datasaver");const Of=[{value:"none",text:f.getMessage("modals.main.settings.sections.appearance.navbar.refresh_options.none")},{value:"grayscale",text:f.getMessage("modals.main.settings.sections.background.effects.filters.grayscale")},{value:"sepia",text:f.getMessage("modals.main.settings.sections.background.effects.filters.sepia")},{value:"invert",text:f.getMessage("modals.main.settings.sections.background.effects.filters.invert")},{value:"saturate",text:f.getMessage("modals.main.settings.sections.background.effects.filters.saturate")},{value:"contrast",text:f.getMessage("modals.main.settings.sections.background.effects.filters.contrast")}];function Mi(){return[{value:"api",text:f.getMessage("wb.settings_bundled_photos")},{value:"custom",text:f.getMessage("modals.main.settings.sections.background.type.custom_image")},{value:"colour",text:f.getMessage("modals.main.settings.sections.background.type.custom_colour")},{value:"random_colour",text:f.getMessage("modals.main.settings.sections.background.type.random_colour")},{value:"random_gradient",text:f.getMessage("modals.main.settings.sections.background.type.random_gradient")}]}const Rf=({backgroundFilter:e,onFilterChange:A})=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:f.getMessage("modals.main.settings.sections.background.effects.subtitle")}),s.jsxs(lA,{children:[s.jsx(at,{title:f.getMessage("modals.main.settings.sections.background.effects.blur"),name:"blur",min:"0",max:"100",default:"0",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage"}),s.jsx(at,{title:f.getMessage("modals.main.settings.sections.background.effects.brightness"),name:"brightness",min:"0",max:"100",default:"100",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage"}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.background.effects.filters.title"),name:"backgroundFilter",onChange:A,category:"backgroundeffect",element:"#backgroundImage",items:Of}),e!=="none"&&s.jsx(at,{title:f.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"})]})]}),Nf=({backgroundType:e,onTypeChange:A})=>s.jsxs(rA,{final:e==="random_colour"||e==="random_gradient",children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.background.source.title"),subtitle:f.getMessage("modals.main.settings.sections.background.source.subtitle")}),s.jsx(lA,{children:s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:A,category:"background",items:Mi()})})]}),ss=({icon:e,title:A,subtitle:r,onClick:t,action:n})=>s.jsxs("div",{className:"moreSettings",onClick:t,children:[s.jsxs("div",{className:"left",children:[s.jsx(e,{}),s.jsxs("div",{className:"content",children:[s.jsx("span",{className:"title",children:A}),s.jsx("span",{className:"subtitle",children:r})]})]}),s.jsx("div",{className:"action",children:n||s.jsx(os,{})})]}),Ki=b.memo(({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(localStorage.getItem("backgroundType")||"api"),[a,i]=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 s.jsx(ki,{});case"colour":return s.jsx(bf,{});default:return null}},c=t!=="colour"&&t!=="random_colour"&&t!=="random_gradient",g=t==="api"||t==="custom",d=()=>e==="effects"?s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:f.getMessage("modals.main.settings.sections.background.effects.title"),goBack:()=>A(null,r)}):e==="source"?s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:f.getMessage("modals.main.settings.sections.background.source.title"),goBack:()=>A(null,r)}):s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.background.title"),setting:"background",category:"background",element:"#backgroundImage"});return s.jsxs(s.Fragment,{children:[d(),!e&&s.jsxs(s.Fragment,{children:[s.jsx(ss,{icon:oo,title:f.getMessage("modals.main.settings.sections.background.source.title"),subtitle:f.getMessage("modals.main.settings.sections.background.source.subtitle"),onClick:()=>A("source",r),action:s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:u=>{n(u),u==="custom"&&vA.emit("refresh","background")},category:"background",items:Mi()})}),g&&s.jsx(ss,{icon:lo,title:f.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:f.getMessage("modals.main.settings.sections.background.effects.subtitle"),onClick:()=>A("effects",r)})]}),!e&&g&&s.jsx(Df,{usingImage:c}),e==="source"&&s.jsxs(s.Fragment,{children:[s.jsx(Nf,{backgroundType:t,onTypeChange:n}),l()]}),g&&e==="effects"&&s.jsx(Rf,{backgroundFilter:a,onFilterChange:u=>i(u)})]})});Ki.displayName="BackgroundOptions";function _f(){const e=[{value:"ask",text:f.getMessage("wb.ask")},{value:"act",text:f.getMessage("wb.act")},...co()?[{value:"search",text:f.getMessage("wb.search")}]:[]];return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage("wb.settings_taskbox"),setting:"taskBox",category:"widgets"}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("wb.settings_default_mode"),subtitle:f.getMessage("wb.settings_taskbox_sub")}),s.jsx(lA,{children:s.jsx(KA,{name:"taskBoxMode",category:"widgets",items:e})})]}),s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("wb.settings_recent")}),s.jsx(lA,{children:s.jsx(us,{name:"recentChats",element:".other"})})]})]})}const Gf=["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 jf({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const[t,n]=b.useState(!1),a="modals.main.settings.sections.advanced",i=()=>localStorage.getItem("welcomePreview")!=="true"?s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.data"),subtitle:f.getMessage("modals.main.settings.sections.advanced.data_description")}),s.jsxs("div",{className:"resetDataButtonsLayout",children:[s.jsx(pA,{onClick:()=>n(!0),icon:s.jsx(Bo,{}),label:f.getMessage("modals.main.settings.buttons.reset")}),s.jsx(pA,{onClick:()=>mo(),icon:s.jsx(fo,{}),label:f.getMessage("modals.main.settings.buttons.export")}),s.jsx(pA,{onClick:()=>document.getElementById("file-input").click(),icon:s.jsx(ho,{}),label:f.getMessage("modals.main.settings.buttons.import")})]}),s.jsx(Es,{id:"file-input",accept:"application/json",type:"settings",loadFunction:c=>vo(c)})]}):s.jsx("div",{className:"emptyItems",children:s.jsx("div",{className:"emptyMessage",children:s.jsxs("div",{className:"loaderHolder",children:[s.jsx(wo,{}),s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.title")}),s.jsx("span",{className:"subtitle",children:f.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.description")})]})})}),o=e==="data";let l;return o?l=s.jsx(TA,{title:f.getMessage(`${a}.title`),secondaryTitle:f.getMessage(`${a}.data`),goBack:()=>A(null,r),report:!1}):l=s.jsx(TA,{title:f.getMessage(`${a}.title`),report:!1}),s.jsxs(s.Fragment,{children:[l,o?s.jsxs(s.Fragment,{children:[s.jsx(i,{}),s.jsx(Re,{closeTimeoutMS:100,onRequestClose:()=>n(!1),isOpen:t,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:s.jsx(go,{modalClose:()=>n(!1)})})]}):s.jsxs(s.Fragment,{children:[s.jsx(Rn,{title:f.getMessage(`${a}.data`),subtitle:f.getMessage(`${a}.data_subtitle`),onClick:()=>A("data",r),icon:s.jsx(uo,{})}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.timezone.title"),subtitle:f.getMessage("modals.main.settings.sections.advanced.timezone.subtitle")}),s.jsx(lA,{children:s.jsx(KA,{name:"timezone",category:"timezone",items:[{value:"auto",text:f.getMessage("modals.main.settings.sections.advanced.timezone.automatic")},...Gf.map(c=>({value:c,text:c}))]})})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.tab_name"),subtitle:f.getMessage("modals.main.settings.sections.advanced.tab_name_subtitle")}),s.jsx(lA,{children:s.jsx(rr,{name:"tabName",default:f.getMessage("tabname"),category:"other"})})]}),s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.advanced.custom_css"),subtitle:f.getMessage("modals.main.settings.sections.advanced.custom_css_subtitle")}),s.jsx(lA,{children:s.jsx(rr,{name:"customcss",textarea:!0,category:"other",customcss:!0})})]})]})]})}function Vf({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const t=()=>s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.theme.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.theme.description")}),s.jsx(lA,{children:s.jsx(un,{name:"theme",options:[{name:f.getMessage("modals.main.settings.sections.appearance.theme.auto"),value:"auto"},{name:f.getMessage("modals.main.settings.sections.appearance.theme.light"),value:"light"},{name:f.getMessage("modals.main.settings.sections.appearance.theme.dark"),value:"dark"}],category:"other"})})]}),n=()=>{const c="modals.main.settings.sections.appearance.font.weight";return s.jsxs(rA,{children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.font.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.font.description")}),s.jsxs(lA,{children:[s.jsx(rr,{title:f.getMessage("modals.main.settings.sections.appearance.font.custom"),name:"font",upperCaseFirst:!0,category:"other"}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.appearance.font.weight.title"),name:"fontweight",category:"other",items:[{value:"100",text:f.getMessage(c+".thin")},{value:"200",text:f.getMessage(c+".extra_light")},{value:"300",text:f.getMessage(c+".light")},{value:"400",text:f.getMessage(c+".normal")},{value:"500",text:f.getMessage(c+".medium")},{value:"600",text:f.getMessage(c+".semi_bold")},{value:"700",text:f.getMessage(c+".bold")},{value:"800",text:f.getMessage(c+".extra_bold")}]}),s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.appearance.font.style.title"),name:"fontstyle",category:"other",items:[{value:"normal",text:f.getMessage("modals.main.settings.sections.appearance.font.style.normal")},{value:"italic",text:f.getMessage("modals.main.settings.sections.appearance.font.style.italic")},{value:"oblique",text:f.getMessage("modals.main.settings.sections.appearance.font.style.oblique")}]})]})]})},a=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.style.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.style.description")}),s.jsx(lA,{children:s.jsx(un,{name:"widgetStyle",element:".other",options:[{name:f.getMessage("modals.main.settings.sections.appearance.style.legacy"),value:"legacy"},{name:f.getMessage("modals.main.settings.sections.appearance.style.new"),value:"new"}],category:"widgets"})})]}),i=()=>s.jsxs(rA,{final:!0,children:[s.jsx(nA,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.accessibility.description")}),s.jsxs(lA,{children:[s.jsx(KA,{label:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.title"),name:"textBorder",category:"other",items:[{value:"new",text:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.new")},{value:"true",text:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.old")},{value:"none",text:f.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.none")}]}),s.jsx(mA,{text:f.getMessage("modals.main.settings.sections.appearance.accessibility.animations"),name:"animations",category:"other"}),s.jsx(at,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.toast_duration"),name:"toastDisplayTime",default:"2500",step:"100",min:"500",max:"5000",marks:st.toast,display:" "+f.getMessage("modals.main.settings.sections.appearance.accessibility.milliseconds")})]})]}),o=e==="accessibility";let l;return o?l=s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.appearance.title"),secondaryTitle:f.getMessage("modals.main.settings.sections.appearance.accessibility.title"),goBack:()=>A(null,r),report:!1}):l=s.jsx(TA,{title:f.getMessage("modals.main.settings.sections.appearance.title"),report:!1}),s.jsxs(s.Fragment,{children:[l,o?s.jsx(i,{}):s.jsxs(s.Fragment,{children:[s.jsx(Rn,{title:f.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:f.getMessage("modals.main.settings.sections.appearance.accessibility.description"),icon:s.jsx(po,{}),onClick:()=>A("accessibility",r)}),s.jsx(t,{}),s.jsx(n,{}),s.jsx(a,{})]})]})}const Pf=b.memo(Vf),Xf=`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 Jf(){const e=Object.keys(Co),{MUE_REPO_URL:A,MUE_VERSION:r,REPO_URL:t,WEBSITE_URL:n}=f.constants;return s.jsxs(s.Fragment,{children:[s.jsx(TA,{title:f.getMessage("wb.settings_credits")}),s.jsx(rA,{children:s.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."})}),s.jsx(rA,{children:s.jsx(nA,{title:`Based on Mue ${r}`,subtitle:s.jsxs(s.Fragment,{children:["Derived from ",s.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."]})})}),s.jsx(rA,{children:s.jsx(nA,{title:f.getMessage("wb.settings_bundled_photos"),subtitle:`${e.join(", ")}. Offline images shipped with Mue (Unsplash, Pexels and Pixabay).`})}),s.jsx(rA,{children:s.jsx(nA,{title:"Fonts and icons",subtitle:"Inter, Lexend Deca and Montserrat (SIL Open Font License); Material Design icons via react-icons."})}),s.jsx(rA,{final:!0,children:s.jsx(nA,{title:"Mue license",subtitle:s.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:"0.75rem"},children:Xf})})}),s.jsxs("p",{style:{opacity:.7,fontSize:"0.85rem"},children:[s.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:n.replace("https://","")})," · ",s.jsx("a",{href:t,target:"_blank",rel:"noreferrer",children:"GitHub"})]})]})}function Wf(){return s.jsx("span",{className:"greeting preview",children:"Good Morning"})}const Yf=b.memo(Wf),Zf=b.lazy(()=>Qo(()=>import("./index-BXa4CzFe.js"),__vite__mapDeps([0,1,2]),import.meta.url));function qf(){return localStorage.getItem("timeType")==="analogue"?s.jsx(b.Suspense,{fallback:s.jsx(s.Fragment,{}),children:s.jsx("div",{className:"clockBackground",children:s.jsx(Zf,{className:"analogclock clock-container",value:"2022-10-07T17:00:00+00:00",size:50})})}):localStorage.getItem("timeType")==="percentageComplete"?s.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"68%"}):localStorage.getItem("timeType")==="verticalClock"?s.jsxs("span",{className:"vertical-clock clock-container",style:{fontSize:"30px"},children:[s.jsx("div",{className:"hour",children:"10"}),s.jsx("div",{className:"minute",children:"23"})]}):s.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"10:24"})}const zf=b.memo(qf);function $f(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 Ah(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 eh(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 th(){return s.jsx("div",{className:"quickLinksSkeleton",children:s.jsxs("div",{className:"circles",children:[s.jsx("div",{children:s.jsx($f,{})}),s.jsx("div",{children:s.jsx(Ah,{})}),s.jsx("div",{children:s.jsx(eh,{})})]})})}const rh=b.memo(th);function nh(){return s.jsx("span",{className:"date",children:"Thursday January 1st"})}const ah=b.memo(nh);function sh(){return s.jsx("h2",{className:"message",children:s.jsxs("span",{children:["Message",s.jsx("br",{})]})})}const ih=b.memo(sh),oh={greeting:f.getMessage("modals.main.settings.sections.greeting.title"),time:f.getMessage("modals.main.settings.sections.time.title"),quicklinks:f.getMessage("modals.main.settings.sections.quicklinks.title"),date:f.getMessage("modals.main.settings.sections.date.title"),message:f.getMessage("modals.main.settings.sections.message.title")},lh=({id:e})=>{const{attributes:A,listeners:r,setNodeRef:t,transform:n,transition:a}=ds({id:e}),i={transform:fs.Transform.toString(n),transition:a};return s.jsxs("li",{ref:t,style:i,...A,...r,className:"sortableItem",children:[oh[e],s.jsx(Bs,{})]})},ch=()=>{const[e,A]=b.useState(()=>JSON.parse(localStorage.getItem("order"))||["greeting","time","quicklinks","date","message"]),r=hs(nr(Cs),nr(ps,{coordinateGetter:ws})),t=i=>{const{active:o,over:l}=i;o.id!==l.id&&A(c=>{const g=c.indexOf(o.id),d=c.indexOf(l.id);return Fs(c,g,d)})},n=i=>i==="quicklinks"?localStorage.getItem("quicklinksenabled")==="true":localStorage.getItem(i)==="true",a=i=>{switch(i){case"greeting":return s.jsx(Yf,{});case"time":return s.jsx(zf,{});case"quicklinks":return s.jsx(rh,{});case"date":return s.jsx(ah,{});case"message":return s.jsx(ih,{});default:return null}};return b.useEffect(()=>{localStorage.setItem("order",JSON.stringify(e)),f.stats.postEvent("setting","Widget order"),vA.emit("refresh","widgets")},[e]),s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"mainTitle",children:f.getMessage("modals.main.marketplace.product.overview")}),s.jsxs("div",{className:"overviewGrid",children:[s.jsxs("div",{children:[s.jsx("span",{className:"title",children:f.getMessage("modals.welcome.buttons.preview")}),s.jsx("div",{className:"tabPreview",children:s.jsx("div",{className:"previewItem",style:{maxWidth:"50%"},children:e.map((i,o)=>n(i)?s.jsx("div",{className:"previewItem",children:a(i)},`item-${i}`):null)})})]}),s.jsxs("div",{children:[s.jsx("span",{className:"title",children:f.getMessage("modals.main.settings.sections.order.title")}),s.jsx(Qs,{sensors:r,collisionDetection:ms,onDragEnd:t,children:s.jsx(vs,{items:e,strategy:Us,children:s.jsx("ul",{className:"sortableContainer",children:e.map(i=>n(i)?s.jsx(lh,{id:i},i):null)})})})]})]})]})},is=[{label:"modals.main.marketplace.product.overview",name:"order",component:ch},{label:"modals.main.settings.sections.appearance.navbar.title",name:"navbar",component:Mo},{label:"modals.main.settings.sections.greeting.title",name:"greeting",component:Ko},{label:"modals.main.settings.sections.time.title",name:"time",component:To},{label:"modals.main.settings.sections.quicklinks.title",name:"quicklinks",component:_o},{label:"modals.main.settings.sections.date.title",name:"date",component:Do},{label:"modals.main.settings.sections.message.title",name:"message",component:Go},{label:"modals.main.settings.sections.background.title",name:"background",component:Ki},{label:"wb.settings_taskbox",name:"taskbox",component:_f},{label:"modals.main.settings.sections.appearance.title",name:"appearance",component:Pf},{label:"modals.main.settings.sections.advanced.title",name:"advanced",component:jf},{label:"wb.settings_credits",name:"credits",component:Jf}];function gh(e){const A=Ct(),r=b.useMemo(()=>is.map(t=>({...t,translatedLabel:A(t.label)})),[A]);return s.jsx(Ho,{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:is,children:r.map(({label:t,name:n,component:a,translatedLabel:i})=>s.jsx("div",{label:i,name:n,children:s.jsx(a,{currentSubSection:e.currentSubSection,onSubSectionChange:e.onSubSectionChange,sectionName:n})},n))})}const Bh=b.memo(gh);export{Bh as default};diff --git a/src/chrome/newtab/assets/index-C08TLPUo.js b/src/firefox/newtab/assets/index-BXa4CzFe.jssimilarity index 99%rename from src/chrome/newtab/assets/index-C08TLPUo.jsrename to src/firefox/newtab/assets/index-BXa4CzFe.jsindex a96408c19..f64936e8e 100644--- a/src/chrome/newtab/assets/index-C08TLPUo.js+++ b/src/firefox/newtab/assets/index-BXa4CzFe.js@@ -1,2 +1,2 @@-import{j as m,r as K,az as de}from"./index-DDjvabsM.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=K.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=K.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,r as K,az as de}from"./index-epcgRnvP.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=K.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=K.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 R(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 J(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(J(h))}var p=navigator.language,b=p&&J(p);c=c.concat(l,b)}return r&&c.push(i),c.filter(Me).map(O).filter(Se)}var xe=R(Oe,{cacheKey:JSON.stringify});function Le(e){return xe(e)[0]||null}var Ie=R(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,A=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:A,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/assets/index-DDjvabsM.js b/src/firefox/newtab/assets/index-epcgRnvP.jssimilarity index 99%rename from src/chrome/newtab/assets/index-DDjvabsM.jsrename to src/firefox/newtab/assets/index-epcgRnvP.jsindex acbe94fa4..e503219a1 100644--- a/src/chrome/newtab/assets/index-DDjvabsM.js+++ b/src/firefox/newtab/assets/index-epcgRnvP.js@@ -1,4 +1,4 @@-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Clock-okasD9hI.css","./Settings-7szeChri.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-BiXm1rpf.js","./Settings-BkGHEXAt.css"])))=>i.map(i=>d[i]);var OT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cm(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function bS(o){if(Object.prototype.hasOwnProperty.call(o,"__esModule"))return o;var n=o.default;if(typeof n=="function"){var l=function u(){var d=!1;try{d=this instanceof u}catch{}return d?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};l.prototype=n.prototype}else l={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.keys(o).forEach(function(u){var d=Object.getOwnPropertyDescriptor(o,u);Object.defineProperty(l,u,d.get?d:{enumerable:!0,get:function(){return o[u]}})}),l}var Fc={exports:{}},Cs={};var m_;function yS(){if(m_)return Cs;m_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function l(u,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:u,key:f,ref:d!==void 0?d:null,props:c}}return Cs.Fragment=n,Cs.jsx=l,Cs.jsxs=l,Cs}var p_;function kS(){return p_||(p_=1,Fc.exports=yS()),Fc.exports}var w=kS();const wS="wbnt:";function Tv(o,n=wS){const l=()=>{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},u={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:()=>l().forEach(d=>o.removeItem(n+d)),key:d=>l()[d]??null};return new Proxy(Object.create(null),{get(d,c){if(c==="length")return l().length;if(Object.prototype.hasOwnProperty.call(u,c))return u[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(u,c)||c==="length"||typeof c=="string"&&o.getItem(n+c)!==null},ownKeys:()=>l(),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 SS(o=globalThis){const n=o.localStorage,l=Tv(n);return Object.defineProperty(o,"localStorage",{configurable:!0,get:()=>l}),{real:n,shim:l}}function MS(){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,l)=>{o.set(String(n),String(l))},removeItem:n=>{o.delete(String(n))},clear:()=>o.clear()}}let pm=null;try{pm=SS(window).real}catch{try{const o=MS(),n=Tv(o);Object.defineProperty(window,"localStorage",{configurable:!0,get:()=>n})}catch{}pm=null}var Vc={exports:{}},xs={},Gc={exports:{}},Kc={};var f_;function AS(){return f_||(f_=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 l(I){return I.length===0?null:I[0]}function u(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,be=ne>>>1;ie<be;){var Ce=2*(ie+1)-1,Ve=I[Ce],E=Ce+1,te=I[E];if(0>d(Ve,K))E<ne&&0>d(te,Ve)?(I[ie]=te,I[E]=K,ie=E):(I[ie]=Ve,I[Ce]=K,ie=Ce);else if(E<ne&&0>d(te,K))I[ie]=te,I[E]=K,ie=E;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=[],k=[],_=1,g=null,b=3,S=!1,C=!1,x=!1,A=!1,D=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function G(I){for(var T=l(k);T!==null;){if(T.callback===null)u(k);else if(T.startTime<=I)u(k),T.sortIndex=T.expirationTime,n(h,T);else break;T=l(k)}}function J(I){if(x=!1,G(I),!C)if(l(h)!==null)C=!0,H||(H=!0,ee());else{var T=l(k);T!==null&&Y(J,T.startTime-I)}}var H=!1,j=-1,q=5,V=-1;function $(){return A?!0:!(o.unstable_now()-V<q)}function Q(){if(A=!1,H){var I=o.unstable_now();V=I;var T=!0;try{e:{C=!1,x&&(x=!1,z(j),j=-1),S=!0;var K=b;try{t:{for(G(I),g=l(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===l(h)&&u(h),G(I)}else u(h);g=l(h)}if(g!==null)T=!0;else{var be=l(k);be!==null&&Y(J,be.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(Q)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,Z=ae.port2;ae.port1.onmessage=Q,ee=function(){Z.postMessage(null)}}else ee=function(){D(Q,0)};function Y(I,T){j=D(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(k,I),l(h)===null&&I===l(k)&&(x?(z(j),j=-1):x=!0,Y(J,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}}}})(Kc)),Kc}var g_;function CS(){return g_||(g_=1,Gc.exports=AS()),Gc.exports}var Yc={exports:{}},ve={};var h_;function xS(){if(h_)return ve;h_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=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"),k=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.for("react.view_transition"),S=Symbol.iterator;function C(E){return E===null||typeof E!="object"?null:(E=S&&E[S]||E["@@iterator"],typeof E=="function"?E:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,D={};function z(E,te,se){this.props=E,this.context=te,this.refs=D,this.updater=se||x}z.prototype.isReactComponent={},z.prototype.setState=function(E,te){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,te,"setState")},z.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function L(){}L.prototype=z.prototype;function G(E,te,se){this.props=E,this.context=te,this.refs=D,this.updater=se||x}var J=G.prototype=new L;J.constructor=G,A(J,z.prototype),J.isPureReactComponent=!0;var H=Array.isArray;function j(){}var q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function $(E,te,se){var ce=se.ref;return{$$typeof:o,type:E,key:te,ref:ce!==void 0?ce:null,props:se}}function Q(E,te){return $(E.type,te,E.props)}function ee(E){return typeof E=="object"&&E!==null&&E.$$typeof===o}function ae(E){var te={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(se){return te[se]})}var Z=/\/+/g;function Y(E,te){return typeof E=="object"&&E!==null&&E.key!=null?ae(""+E.key):te.toString(36)}function I(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(j,j):(E.status="pending",E.then(function(te){E.status==="pending"&&(E.status="fulfilled",E.value=te)},function(te){E.status==="pending"&&(E.status="rejected",E.reason=te)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function T(E,te,se,ce,ke){var we=typeof E;(we==="undefined"||we==="boolean")&&(E=null);var me=!1;if(E===null)me=!0;else switch(we){case"bigint":case"string":case"number":me=!0;break;case"object":switch(E.$$typeof){case o:case n:me=!0;break;case _:return me=E._init,T(me(E._payload),te,se,ce,ke)}}if(me)return ke=ke(E),me=ce===""?"."+Y(E,0):ce,H(ke)?(se="",me!=null&&(se=me.replace(Z,"$&/")+"/"),T(ke,te,se,"",function(At){return At})):ke!=null&&(ee(ke)&&(ke=Q(ke,se+(ke.key==null||E&&E.key===ke.key?"":(""+ke.key).replace(Z,"$&/")+"/")+me)),te.push(ke)),1;me=0;var ue=ce===""?".":ce+":";if(H(E))for(var fe=0;fe<E.length;fe++)ce=E[fe],we=ue+Y(ce,fe),me+=T(ce,te,se,we,ke);else if(fe=C(E),typeof fe=="function")for(E=fe.call(E),fe=0;!(ce=E.next()).done;)ce=ce.value,we=ue+Y(ce,fe++),me+=T(ce,te,se,we,ke);else if(we==="object"){if(typeof E.then=="function")return T(I(E),te,se,ce,ke);throw te=String(E),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return me}function K(E,te,se){if(E==null)return E;var ce=[],ke=0;return T(E,ce,"","",function(we){return te.call(se,we,ke++)}),ce}function ie(E){if(E._status===-1){var te=E._result,se=te();se.then(function(ce){(E._status===0||E._status===-1)&&(E._status=1,E._result=ce,se.status===void 0&&(se.status="fulfilled",se.value=ce))},function(ce){(E._status===0||E._status===-1)&&(E._status=2,E._result=ce,se.status===void 0&&(se.status="rejected",se.reason=ce))}),E._status===-1&&(E._status=0,E._result=se)}if(E._status===1)return E._result.default;throw E._result}var ne=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)};function be(E){var te=q.T,se={};se.types=te!==null?te.types:null,q.T=se;try{var ce=E(),ke=q.S;ke!==null&&ke(se,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(j,ne)}catch(we){ne(we)}finally{te!==null&&se.types!==null&&(te.types=se.types),q.T=te}}function Ce(E){var te=q.T;if(te!==null){var se=te.types;se===null?te.types=[E]:se.indexOf(E)===-1&&se.push(E)}else be(Ce.bind(null,E))}var Ve={map:K,forEach:function(E,te,se){K(E,function(){te.apply(this,arguments)},se)},count:function(E){var te=0;return K(E,function(){te++}),te},toArray:function(E){return K(E,function(te){return te})||[]},only:function(E){if(!ee(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ve.Activity=g,ve.Children=Ve,ve.Component=z,ve.Fragment=l,ve.Profiler=d,ve.PureComponent=G,ve.StrictMode=u,ve.Suspense=h,ve.ViewTransition=b,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,ve.__COMPILER_RUNTIME={__proto__:null,c:function(E){return q.H.useMemoCache(E)}},ve.addTransitionType=Ce,ve.cache=function(E){return function(){return E.apply(null,arguments)}},ve.cacheSignal=function(){return null},ve.cloneElement=function(E,te,se){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var ce=A({},E.props),ke=E.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 $(E.type,ke,ce)},ve.createContext=function(E){return E={$$typeof:f,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:c,_context:E},E},ve.createElement=function(E,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(E&&E.defaultProps)for(ce in me=E.defaultProps,me)ke[ce]===void 0&&(ke[ce]=me[ce]);return $(E,we,ke)},ve.createRef=function(){return{current:null}},ve.forwardRef=function(E){return{$$typeof:p,render:E}},ve.isValidElement=ee,ve.lazy=function(E){return{$$typeof:_,_payload:{_status:-1,_result:E},_init:ie}},ve.memo=function(E,te){return{$$typeof:k,type:E,compare:te===void 0?null:te}},ve.startTransition=be,ve.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},ve.use=function(E){return q.H.use(E)},ve.useActionState=function(E,te,se){return q.H.useActionState(E,te,se)},ve.useCallback=function(E,te){return q.H.useCallback(E,te)},ve.useContext=function(E){return q.H.useContext(E)},ve.useDebugValue=function(){},ve.useDeferredValue=function(E,te){return q.H.useDeferredValue(E,te)},ve.useEffect=function(E,te){return q.H.useEffect(E,te)},ve.useEffectEvent=function(E){return q.H.useEffectEvent(E)},ve.useId=function(){return q.H.useId()},ve.useImperativeHandle=function(E,te,se){return q.H.useImperativeHandle(E,te,se)},ve.useInsertionEffect=function(E,te){return q.H.useInsertionEffect(E,te)},ve.useLayoutEffect=function(E,te){return q.H.useLayoutEffect(E,te)},ve.useMemo=function(E,te){return q.H.useMemo(E,te)},ve.useOptimistic=function(E,te){return q.H.useOptimistic(E,te)},ve.useReducer=function(E,te,se){return q.H.useReducer(E,te,se)},ve.useRef=function(E){return q.H.useRef(E)},ve.useState=function(E){return q.H.useState(E)},ve.useSyncExternalStore=function(E,te,se){return q.H.useSyncExternalStore(E,te,se)},ve.useTransition=function(){return q.H.useTransition()},ve.version="19.3.1",ve}var __;function Gs(){return __||(__=1,Yc.exports=xS()),Yc.exports}var Qc={exports:{}},Mt={};var v_;function zS(){if(v_)return Mt;v_=1;var o=Gs();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 l(){}var u={d:{f:l,r:function(){throw Error(n(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},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 k(_,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=u,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=u.p;try{if(h.T=null,u.p=2,_)return _()}finally{h.T=g,u.p=b,u.d.f()}},Mt.preconnect=function(_,g){typeof _=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,u.d.C(_,g))},Mt.prefetchDNS=function(_){typeof _=="string"&&u.d.D(_)},Mt.preinit=function(_,g){if(typeof _=="string"&&g&&typeof g.as=="string"){var b=g.as,S=k(b,g.crossOrigin),C=typeof g.integrity=="string"?g.integrity:void 0,x=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?u.d.S(_,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:C,fetchPriority:x}):b==="script"&&u.d.X(_,{crossOrigin:S,integrity:C,fetchPriority:x,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=k(g.as,g.crossOrigin);u.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&&u.d.M(_)},Mt.preload=function(_,g){if(typeof _=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,S=k(b,g.crossOrigin);u.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=k(g.as,g.crossOrigin);u.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 u.d.m(_)},Mt.requestFormReset=function(_){u.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 b_;function xm(){if(b_)return Qc.exports;b_=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(),Qc.exports=zS(),Qc.exports}var y_;function TS(){if(y_)return xs;y_=1;var o=CS(),n=Gs(),l=xm();function u(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(u(188))}function k(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(u(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(u(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(u(189))}}if(a.alternate!==i)throw Error(u(190))}if(a.tag!==3)throw Error(u(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||x(t,e,a.child,{foundSelf:!1}),t}function x(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)&&x(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(u(559))}}var D=null,z=null;function L(e,t,a){return e===a?!0:e===t?(D=e,!0):!1}function G(e,t,a){return e===a?(z=e,!1):e===t?(z!==null&&(D=e),!0):!1}function J(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 j=Object.assign,q=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),Z=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"),be=Symbol.for("react.activity"),Ce=Symbol.for("react.legacy_hidden"),Ve=Symbol.for("react.memo_cache_sentinel"),E=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 Q:return"Fragment";case ae:return"Profiler";case ee:return"StrictMode";case T:return"Suspense";case K:return"SuspenseList";case be:return"Activity";case E:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case $:return"Portal";case Y:return e.displayName||"Context";case Z: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=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,At={pending:!1,data:null,method:null,action:null},Wt=[],Zt=-1;function _t(e){return{current:e}}function tt(e){0>Zt||(e.current=Wt[Zt],Wt[Zt]=null,Zt--)}function Le(e,t){Zt++,Wt[Zt]=e.current,e.current=t}var Rt=_t(null),Bt=_t(null),Xt=_t(null),Xa=_t(null);function Xo(e,t){switch(Le(Xt,t),Le(Bt,e),Le(Rt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?kh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=kh(t),e=wh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}tt(Rt),Le(Rt,e)}function Ja(){tt(Rt),tt(Bt),tt(Xt)}function jn(e){var t=e.memoizedState;t!==null&&(vn._currentValue=t.memoizedState,Le(Xa,e)),t=Rt.current;var a=wh(t,e.type);t!==a&&(Le(Bt,e),Le(Rt,a))}function zi(e){Bt.current===e&&(tt(Rt),tt(Bt)),Xa.current===e&&(tt(Xa),vn._currentValue=At)}var Da,$a;function Lt(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 Ti=!1;function la(e,t){if(!e||Ti)return"";Ti=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(oe){var O=oe}Reflect.construct(e,[],X)}else{try{X.call()}catch(oe){O=oe}X=!1;try{var P=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),X=!0,new e}finally{X&&(P!==void 0?Object.defineProperty(e.prototype,"props",P):delete e.prototype.props)}}}else{try{throw Error()}catch(oe){O=oe}(X=e())&&typeof X.catch=="function"&&X.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:"Не знайдено жодного посилання на додаток"}}},xM=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":"Електронна пошта"}}`),zM={quote:"Скопійовані квоти",notes:"Нотатки скопійовано",reset:"Скидання успішно виконано",installed:"Успішно встановлено",uninstalled:"Успішно видалено",updated:"Успішно оновлено",error:"Щось пішло не так",imported:"Успішно імпортовано",no_storage:"Недостатньо місця для зберігання",link_copied:"Посилання скопійовано",stats_reset:"Статистику скинуто"},pb={tabname:AM,widgets:CM,modals:xM,toasts:zM},TM="Tab mới",NM={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"}}},EM=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"}}`),jM={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"},fb={tabname:TM,widgets:NM,modals:EM,toasts:jM},DM="新标签页",OM={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:"未找到应用链接"}}},qM=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"}}`),RM={quote:"名言已复制",notes:"便签已复制",reset:"重置成功",installed:"安装成功",uninstalled:"卸载成功",updated:"Successfully updated",error:"发生错误",imported:"导入成功",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},gb={tabname:DM,widgets:OM,modals:qM,toasts:RM},BM="新分頁",LM={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:"找不到應用程式連結"}}},IM=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"}}`),UM={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"},hb={tabname:BM,widgets:LM,modals:IM,toasts:UM};function Nl(o){return new h0("en_GB",{ar:Lv,arz:Iv,az:Uv,azb:Pv,bn:Hv,de_DE:Fv,el:Vv,en_GB:Gv,en_US:Kv,es:Yv,es_419:Qv,et:Wv,fa:Zv,fr:Xv,hu:Jv,id_ID:$v,ja:eb,lt:tb,lv:ab,nl:ob,no:ib,peo:nb,pt:sb,pt_BR:rb,ru:lb,sl:ub,sv:db,ta:cb,tr_TR:mb,uk:pb,vi:fb,zh_CN:gb,zh_Hant:hb})}const PM={ar:Lv,arz:Iv,az:Uv,azb:Pv,bn:Hv,de_DE:Fv,el:Vv,en_GB:Gv,en_US:Kv,es:Yv,es_419:Qv,et:Wv,fa:Zv,fr:Xv,hu:Jv,id_ID:$v,ja:eb,lt:tb,lv:ab,nl:ob,no:ib,peo:nb,pt:sb,pt_BR:rb,ru:lb,sl:ub,sv:db,ta:cb,tr_TR:mb,uk:pb,vi:fb,zh_CN:gb,zh_Hant:hb},HM="https://webbrain.one",FM="https://webbrain.one/privacy",VM="https://github.com/esokullu/webbrain",GM="https://github.com/esokullu/webbrain/issues/new",KM="https://github.com/mue/mue",YM="7.6.0",QM="1.0.0",WM=Object.freeze(Object.defineProperty({__proto__:null,BUG_REPORT:GM,MUE_REPO_URL:KM,MUE_VERSION:YM,PRIVACY_URL:FM,REPO_URL:VM,VERSION:QM,WEBSITE_URL:HM},Symbol.toStringTag,{value:"Module"}));class ZM{static async postEvent(){}static async tabLoad(){}}const pe={language:{},languagecode:"",stats:ZM,constants:WM};class ye{static listeners={};static on(n,l){document.addEventListener(n,u=>{l(u.detail)}),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push(l)}static emit(n,l){document.dispatchEvent(new CustomEvent(n,{detail:l}))}static off(n,l){document.removeEventListener(n,l),this.listeners[n]&&(this.listeners[n]=this.listeners[n].filter(u=>u!==l))}static once(n,l){const u=d=>{l(d.detail),this.off(n,u)};document.addEventListener(n,u),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push({callback:l,listener:u})}static prepend(n,l){const u=d=>{l(d.detail)};document.addEventListener(n,u,!0),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].unshift({callback:l,listener:u})}static prependOnce(n,l){const u=d=>{l(d.detail),this.off(n,u)};document.addEventListener(n,u,!0),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].unshift({callback:l,listener:u})}static getListeners(n){return this.listeners[n]?this.listeners[n]:[]}static eventNames(){return Object.keys(this.listeners)}static removeAllListeners(){Object.keys(this.listeners).forEach(n=>{this.listeners[n].forEach(({listener:l})=>{document.removeEventListener(n,l)})}),this.listeners={}}}const XM={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 _b(){let o;try{o=String(pm?.getItem("wbLocale")||"").trim()}catch{o=""}return o||String(globalThis.navigator?.language||"en").slice(0,2).toLowerCase()}function JM(){return XM[_b()]||"en_GB"}const $M=["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"],eA={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"]},A_=Object.fromEntries(Object.entries(eA).map(([o,n])=>[o,Object.fromEntries($M.map((l,u)=>[`wb.${l}`,n[u]]))]));function Ea(o,n=_b()){return A_[n]?.[o]??A_.en[o]??o}const vb=o=>typeof o=="string"&&o.startsWith("wb."),bb=y.createContext();function tA({children:o,initialLanguage:n}){const[l,u]=y.useState(n),d=y.useRef(Nl());y.useEffect(()=>{l!==n&&(d.current=Nl()),pe.language=d.current,pe.languagecode=l,document.documentElement.lang=l.replace("_","-")},[l,n]);const c=y.useCallback(h=>{d.current=Nl(),pe.language=d.current,pe.languagecode=h,document.documentElement.lang=h.replace("_","-");const k=localStorage.getItem("tabName"),_=d.current?.getMessage(l,"tabname");if(k===_||!k){const g=PM[h.replace("-","_")]?.tabname||d.current?.getMessage(h,"tabname")||"Mue";localStorage.setItem("tabName",g),document.title=g}localStorage.setItem("language",h),localStorage.removeItem("currentWeather"),u(h)},[l]),f=y.useCallback((h,k={})=>vb(h)?Ea(h):d.current?d.current.getMessage(l,h,k):h,[l]);y.useEffect(()=>{const h=k=>{k?.language&&c(k.language)};return ye.on("languageChange",h),()=>{ye.off("languageChange",h)}},[c]),y.useEffect(()=>{pe.getMessage=(h,k={})=>f(h,k)},[f]);const p=y.useMemo(()=>({language:l,languagecode:l,changeLanguage:c,t:f}),[l,c,f]);return w.jsx(bb.Provider,{value:p,children:o})}function yb(){const o=y.useContext(bb);if(!o)throw new Error("useTranslation must be used within a TranslationProvider");return o}function Qo(){const{t:o}=yb();return o}function aA({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 oA=y.memo(aA);var kb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},C_=_e.createContext&&_e.createContext(kb),iA=["attr","size","title"];function nA(o,n){if(o==null)return{};var l,u,d=sA(o,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(u=0;u<c.length;u++)l=c[u],n.indexOf(l)===-1&&{}.propertyIsEnumerable.call(o,l)&&(d[l]=o[l])}return d}function sA(o,n){if(o==null)return{};var l={};for(var u in o)if({}.hasOwnProperty.call(o,u)){if(n.indexOf(u)!==-1)continue;l[u]=o[u]}return l}function Bl(){return Bl=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var u in l)({}).hasOwnProperty.call(l,u)&&(o[u]=l[u])}return o},Bl.apply(null,arguments)}function x_(o,n){var l=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);n&&(u=u.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),l.push.apply(l,u)}return l}function Ll(o){for(var n=1;n<arguments.length;n++){var l=arguments[n]!=null?arguments[n]:{};n%2?x_(Object(l),!0).forEach(function(u){rA(o,u,l[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(l)):x_(Object(l)).forEach(function(u){Object.defineProperty(o,u,Object.getOwnPropertyDescriptor(l,u))})}return o}function rA(o,n,l){return(n=lA(n))in o?Object.defineProperty(o,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[n]=l,o}function lA(o){var n=uA(o,"string");return typeof n=="symbol"?n:n+""}function uA(o,n){if(typeof o!="object"||!o)return o;var l=o[Symbol.toPrimitive];if(l!==void 0){var u=l.call(o,n);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function wb(o){return o&&o.map((n,l)=>_e.createElement(n.tag,Ll({key:l},n.attr),wb(n.child)))}function re(o){return n=>_e.createElement(dA,Bl({attr:Ll({},o.attr)},n),wb(o.child))}function dA(o){var n=l=>{var u=o.attr,d=o.size,c=o.title,f=nA(o,iA),p=d||l.size||"1em",h;return l.className&&(h=l.className),o.className&&(h=(h?h+" ":"")+o.className),_e.createElement("svg",Bl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},l.attr,u,f,{className:h,style:Ll(Ll({color:o.color||l.color},l.style),o.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),c&&_e.createElement("title",null,c),o.children)};return C_!==void 0?_e.createElement(C_.Consumer,null,l=>n(l)):n(kb)}function cA(o){return re({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 RT(o){return re({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 BT(o){return re({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 Rs(o){return re({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 mA(o){return re({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 Sb(o){return re({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 Bs(o){return re({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 pA(o){return re({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 LT(o){return re({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"},child:[]}]})(o)}function zm(o){return re({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 IT(o){return re({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 Mb(o){return re({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 fA(o){return re({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 gA(o){return re({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 UT(o){return re({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 hA(o){return re({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 _A(o){return re({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 PT(o){return re({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 HT(o){return re({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 FT(o){return re({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 vA(o){return re({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 bA(o){return re({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 Ab(o){return re({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 yA(o){return re({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 VT(o){return re({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 z_(o){return re({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 Cb(o){return re({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 GT(o){return re({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 kA(o){return re({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 KT(o){return re({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 wA(o){return re({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 T_(o){return re({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 SA(o){return re({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 YT(o){return re({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 MA(o){return re({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 AA(o){return re({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 QT(o){return re({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 CA(o){return re({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 WT(o){return re({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 ZT(o){return re({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 xb(o){return re({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 xA(o){return re({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 zA(o){return re({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 TA(o){return re({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 XT(o){return re({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 NA(o){return re({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 Tm(o){return re({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 EA(o){return re({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 jA(o){return re({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 DA(o){return re({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 OA(o){return re({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 qA(o){return re({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 RA(o){return re({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 N_(o){return re({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 JT(o){return re({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 E_(o){return re({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 BA(o){return re({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 $T(o){return re({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 eN(o){return re({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 tN(o){return re({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 LA(o){return re({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 aN(o){return re({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},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 IA(o){return re({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 UA(o){return re({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 oN(o){return re({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 iN(o){return re({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 PA(o){return re({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 HA(o){return re({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 FA(o){return re({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 VA(o){return re({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:gA,LIBRARY:RA,TASKBOX:Ab,DISCOVER:jA,NAVBAR:mA,GREETING:cA,TIME:CA,QUOTE:LA,QUICKLINKS:kA,DATE:OA,MESSAGE:IA,BACKGROUND:BA,SEARCH:Tm,WEATHER:bA,APPEARANCE:yA,LANGUAGE:TA,ADVANCED:PA,EXPERIMENTAL:qA,STATS:VA,CHANGELOG:UA,ABOUT:EA,ADDED:HA,CREATE:SA,OVERVIEW:zA,COLLECTIONS:_A},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"},nN=(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],GA=[{tab:Yo.SETTINGS,icon:Re.SETTINGS,messageKey:"modals.main.navbar.settings"}],sN=["modals.main.settings.sections.appearance.title","modals.main.settings.sections.advanced.title"],Il=(o=window.location.hash)=>{if(!o||o==="#")return null;const[n,l,u]=o.slice(1).split("/");return n!==Yo.SETTINGS?null:{tab:n,section:l||void 0,subSection:u||void 0}},Ul=(o,n=!0)=>{window.history.pushState?n?window.history.pushState(null,null,o):window.history.replaceState(null,null,o):window.location.hash=o},KA=()=>Il()!==null,YA="MueCustomBackgrounds",QA=1,Yt="backgrounds";function xn(){return new Promise((o,n)=>{const l=indexedDB.open(YA,QA);l.onerror=()=>n(l.error),l.onsuccess=()=>o(l.result),l.onupgradeneeded=u=>{const d=u.target.result;d.objectStoreNames.contains(Yt)||d.createObjectStore(Yt,{keyPath:"id",autoIncrement:!0}).createIndex("url","url",{unique:!1})}})}async function zb(){try{const u=(await xn()).transaction(Yt,"readonly").objectStore(Yt).getAll();return new Promise((d,c)=>{u.onsuccess=()=>{const f=u.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))},u.onerror=()=>c(u.error)})}catch(o){return console.error("Error getting backgrounds from IndexedDB:",o),[]}}async function WA(){return(await zb()).map(n=>n.url||n)}async function ZA(o){const u=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),d=typeof o=="string"?{url:o,name:"Image",uploadDate:Date.now(),folder:""}:{...o,uploadDate:o.uploadDate||Date.now()},c=u.add(d);return new Promise((f,p)=>{c.onsuccess=()=>f(c.result),c.onerror=()=>p(c.error)})}async function rN(o){const u=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),d=u.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result;if(p[o]){const h=u.delete(p[o].id);h.onsuccess=()=>c(),h.onerror=()=>f(h.error)}else c()},d.onerror=()=>f(d.error)})}async function lN(o){const u=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),d=u.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result,h=o.filter(g=>p[g]).map(g=>p[g].id);let k=0;const _=h.length;if(_===0){c();return}h.forEach(g=>{const b=u.delete(g);b.onsuccess=()=>{k++,k===_&&c()},b.onerror=()=>f(b.error)})},d.onerror=()=>f(d.error)})}async function XA(){const u=(await xn()).transaction(Yt,"readonly").objectStore(Yt).count();return new Promise((d,c)=>{u.onsuccess=()=>d(u.result),u.onerror=()=>c(u.error)})}async function uN(o,n){const d=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),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 k=d.put(h);k.onsuccess=()=>f(),k.onerror=()=>p(k.error)}else p(new Error("Background not found"))},c.onerror=()=>p(c.error)})}async function dN(){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(u=>u&&u.trim()!==""),n.length===0||await XA()>0)return!1;for(const u of n)await ZA(u);return console.log(`Migrated ${n.length} backgrounds from localStorage to IndexedDB`),localStorage.setItem("customBackgroundMigrated","true"),!0}catch(o){return console.error("Error migrating backgrounds:",o),!1}}function JA({photoInfo:o,currentAPI:n,url:l}){const u=localStorage.getItem("backgroundType")==="custom",[d,c]=y.useState([]),[f,p]=y.useState(!0);y.useEffect(()=>{(async()=>{if(u)try{const g=await WA();c(g||[])}catch(g){console.error("Failed to load custom backgrounds:",g),c([])}p(!1)})()},[u]);const h=u&&!f&&(!d||d.length===0),k=()=>{Ul("#settings/background/source"),ye.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:k,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(oA,{info:o,api:n,url:l})]})}const $A=y.memo(JA);function eC({url:o,filterStyle:n}){const l=y.useMemo(()=>localStorage.getItem("backgroundVideoMute")==="true",[]),u=y.useMemo(()=>localStorage.getItem("backgroundVideoLoop")==="true",[]);return w.jsx("video",{autoPlay:!0,muted:l,loop:u,style:n,id:"backgroundVideo",children:w.jsx("source",{src:o})})}const tC=y.memo(eC);function aC(){const[o,n]=y.useState({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!1,offline:!1,photographerURL:"",photoURL:""}}),l=y.useCallback(d=>{n(c=>({...c,...d,photoInfo:{...c.photoInfo,...d.photoInfo||{}}}))},[]),u=y.useCallback(()=>{n({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!0}})},[]);return{backgroundData:o,updateBackground:l,resetBackground:u}}const oC={photo:[5]},Zc={"Ryan Hutton":{photo:[1]},"Francesco De Tommaso":{photo:[2]},"Andy Vu":{photo:[3]},"Sergi Ferrete":{photo:[4]},Pixabay:oC};function Tb(o){const n=Object.keys(Zc),l=n[Math.floor(Math.random()*n.length)],d={url:`src/assets/offline-images/${Zc[l].photo[Math.floor(Math.random()*Zc[l].photo.length)]}.webp`,type:o,photoInfo:{offline:!0,credit:l}};return localStorage.setItem("currentBackground",JSON.stringify(d)),d}function iC(o){const n=()=>"#000000".replace(/0/g,()=>(~~(Math.random()*16)).toString(16));let l=`background:${n()};`;if(o==="random_gradient"){const u=["to right","to left","to bottom","to top","to bottom right","to bottom left","to top right","to top left"];l=`background:linear-gradient(${u[Math.floor(Math.random()*u.length)]}, ${n()}, ${n()});`}return{type:"colour",style:l}}function Nb(o){return o.startsWith("data:video/")||o.endsWith(".mp4")||o.endsWith(".webm")||o.endsWith(".ogg")}const Eb=(o,n=null)=>{const l=localStorage.getItem(o);if(l===null||l==="null")return n;try{const u=JSON.parse(l);return u!==null?u:n}catch{return n}};async function nC(){const o=localStorage.getItem("offlineMode")==="true"||localStorage.getItem("showWelcome")==="true",n=Eb("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 l=localStorage.getItem("backgroundType");switch(l){case"api":return rC();case"colour":return sC();case"random_colour":case"random_gradient":return iC(l);case"custom":return await lC(o);default:return null}}function sC(){return{type:"colour",style:`background: ${localStorage.getItem("customBackgroundColour")||"rgb(0,0,0)"}`}}function rC(){return{...Tb("api"),currentAPI:localStorage.getItem("backgroundAPI")||"mue"}}async function lC(o){let n=await zb();if(!n||n.length===0){const c=Eb("customBackground",[]);c&&c.length>0&&(n=c.map(f=>({url:f,photoInfo:{hidden:!0}})))}if(!n||n.length===0)return null;const l=n[Math.floor(Math.random()*n.length)];if(!l)return null;const u=l.url||l;if(o&&!u.startsWith("data:"))return Tb("custom");const d={url:u,type:"custom",video:Nb(u),photoInfo:{hidden:!0,blur_hash:l.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 uC(o,n){const l=y.useRef(!1),u=y.useCallback(async()=>{if(!l.current){l.current=!0;try{if(localStorage.getItem("welcomeTab")){const p=localStorage.getItem("welcomeImage");if(p){o(JSON.parse(p));return}}const f=await nC();f&&o(f)}catch(c){console.error("Failed to load background:",c)}finally{l.current=!1}}},[o]),d=y.useCallback(()=>{n(),u()},[u,n]);return y.useEffect(()=>{const c=localStorage.getItem("backgroundchange");(!localStorage.getItem("backgroundStartTime")||c==="refresh")&&localStorage.setItem("backgroundStartTime",Date.now()),u()},[u]),{loadBackground:u,refreshBackground:d}}async function dC(o){try{const n=await fetch(o,{mode:"cors",credentials:"omit"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const l=await n.blob();return URL.createObjectURL(l)}catch{return null}}const cC="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",El=(o,n,l)=>{let u=0;for(;n<l;)u=u*83+cC.indexOf(o[n++]);return u},jb=Math.pow,Ns=Math.PI,Db=3294.6,Ob=269.025,mC=o=>o>10.31475?jb(o/Ob+.052132,2.4):o/Db,pC=o=>~~(o>1227e-8?Ob*jb(o,.416666)-13.025:o*Db+1),Pl=4096,qb=new Uint8ClampedArray(Pl+1);for(let o=0;o<=Pl;o++)qb[o]=pC(o/Pl);const Xc=o=>o<=0?0:o>=1?255:qb[o*Pl+.5|0],Es=o=>(o<0?-1:1)*o*o,j_=o=>{for(o+=Ns/2;o>Ns;)o-=Ns*2;const n=1.27323954*o-.405284735*Es(o);return .225*(Es(n)-n)+n};function fC(o){const n=El(o,2,6);return[n>>16,n>>8&255,n&255]}function gC(o,n,l,u){const d=El(o,0,1),c=d%9+1,f=~~(d/9)+1,p=c*f;let h,k,_,g,b,S,C,x,A,D,z,L;const G=(El(o,1,2)+1)/13446*(u|1),J=new Float64Array(p*3),H=fC(o);for(h=0;h<3;h++)J[h]=mC(H[h]);for(h=1;h<p;h++)L=El(o,4+h*2,6+h*2),J[h*3]=Es(~~(L/361)-9)*G,J[h*3+1]=Es(~~(L/19)%19-9)*G,J[h*3+2]=Es(L%19-9)*G;const j=new Float64Array(f*l),q=new Float64Array(c*n);for(k=0;k<f;k++)for(g=0;g<l;g++)j[k*l+g]=j_(Ns*g*k/l);for(h=0;h<c;h++)for(_=0;_<n;_++)q[h*n+_]=j_(Ns*_*h/n);const V=n*4,$=new Uint8ClampedArray(V*l),Q=new Float64Array(c*3);for(g=0;g<l;g++){for(h=0;h<c;h++){for(b=S=C=0,k=0;k<f;k++)A=j[k*l+g],D=(h+k*c)*3,b+=J[D]*A,S+=J[D+1]*A,C+=J[D+2]*A;Q[h*3]=b,Q[h*3+1]=S,Q[h*3+2]=C}for(_=0;_<n;_++){for(b=S=C=0,h=0;h<c;h++)x=q[h*n+_],D=h*3,b+=Q[D]*x,S+=Q[D+1]*x,C+=Q[D+2]*x;z=4*_+g*V,$[z]=Xc(b),$[z+1]=Xc(S),$[z+2]=Xc(C),$[z+3]=255}}return $}function hC(o,n=32,l=32){try{const u=document.createElement("canvas");u.width=n,u.height=l;const d=u.getContext("2d"),c=d.createImageData(n,l);return c.data.set(gC(o,n,l)),d.putImageData(c,0,0),u.toDataURL()}catch(u){return console.error("Failed to generate blur hash:",u),null}}function Rb(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",l=localStorage.getItem("backgroundFilter"),u=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px) brightness(${n}%)`;return l&&l!=="none"&&(d+=` ${l}(${u}%)`),d}function Bb(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",l=localStorage.getItem("backgroundFilter"),u=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px)`;l&&l!=="none"&&(d+=` ${l}(${u}%)`);const f=(100-parseInt(n,10))/100;return{backdropFilter:d,WebkitBackdropFilter:d,backgroundColor:`rgba(0, 0, 0, ${f})`}}const D_=1200;function _C(o){const n=y.useRef(null),l=y.useRef(null);y.useEffect(()=>{if(o.video)return;const u=document.getElementById("backgroundImage");return u?(l.current&&l.current.abort(),l.current=new AbortController,(async()=>{if(o.url){const c=localStorage.getItem("bgtransition")!=="false",f=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!c||f){u.style.background=`url(${o.url})`,document.querySelector(".photoInformation")?.style.setProperty("display","flex");return}let p=document.getElementById("backgroundOverlay");if(p||(p=document.createElement("div"),p.id="backgroundOverlay",u.parentNode.insertBefore(p,u.nextSibling)),o.photoInfo?.colour&&(u.style.backgroundColor=o.photoInfo.colour),o.photoInfo?.blur_hash){const g=hC(o.photoInfo.blur_hash,64,64);g&&(u.style.backgroundImage=`url(${g})`)}const h=await dC(o.url),k=h||o.url;h&&(n.current&&URL.revokeObjectURL(n.current),n.current=h);const _=new Image;_.src=k,await new Promise(g=>{_.onload=g,_.onerror=g}),p.style.transition="none",p.style.opacity="0",p.style.backgroundImage="",p.offsetHeight,p.style.backgroundImage=`url(${k})`,p.offsetHeight,p.style.transition=`opacity ${D_/1e3}s ease-in-out`,p.offsetHeight,p.style.opacity="1",setTimeout(()=>{u.style.backgroundImage=`url(${k})`,p.style.opacity="0",p.style.backgroundImage=""},D_+100)}else o.style&&u.setAttribute("style",o.style)})(),()=>{n.current&&URL.revokeObjectURL(n.current),l.current&&l.current.abort();const c=document.getElementById("backgroundOverlay");c&&c.remove()}):void 0},[o.url,o.style,o.video,o.photoInfo])}function vC(){return y.useMemo(()=>({WebkitFilter:Rb()}),[])}function bC(){return y.useMemo(()=>Bb(),[])}function yC(o,n){y.useEffect(()=>{const l=c=>{c==="welcomeLanguage"?localStorage.setItem("welcomeImage",JSON.stringify(o)):c==="background"?u():["backgroundwelcome","backgroundrefresh"].includes(c)?n():c==="backgroundeffect"&&d()},u=()=>{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"||o.photoInfo?.pun&&JSON.parse(localStorage.getItem("backgroundExclude")||"[]").includes(o.photoInfo.pun))&&n()},d=()=>{if(o.video){const c=Rb(),f=document.getElementById("backgroundVideo");f&&(f.style.webkitFilter=c)}else{const c=document.getElementById("backgroundFilterOverlay");if(c){const f=Bb();c.style.backdropFilter=f.backdropFilter,c.style.webkitBackdropFilter=f.WebkitBackdropFilter,c.style.backgroundColor=f.backgroundColor}}};return ye.on("refresh",l),()=>ye.off("refresh",l)},[o,n])}function kC(){const{backgroundData:o,updateBackground:n,resetBackground:l}=aC(),{refreshBackground:u}=uC(n,l),d=vC(),c=bC();return _C(o),yC(o,u),w.jsxs(w.Fragment,{children:[o.video?w.jsx(tC,{url:o.url,filterStyle:d}):w.jsx($A,{photoInfo:o.photoInfo,currentAPI:o.currentAPI,url:o.url}),w.jsx("div",{id:"backgroundFilterOverlay",style:c})]})}const wC=(function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"})(),SC=function(o,n){return new URL(o,n).href},O_={},Nm=function(n,l,u){let d=Promise.resolve();if(l&&l.length>0){let k=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=k(l.map(_=>{if(_=SC(_,u),_ in O_)return;O_[_]=!0;const g=_.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(u)for(let C=f.length-1;C>=0;C--){const x=f[C];if(x.href===_&&(!g||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${b}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":wC,g||(S.as="script"),S.crossOrigin="",S.href=_,h&&S.setAttribute("nonce",h),document.head.appendChild(S),g)return new Promise((C,x)=>{S.addEventListener("load",C),S.addEventListener("error",()=>x(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 Lb(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 Em(o,n){return new Date((typeof o=="string"?new Date(o):o).toLocaleString("en-US",{timeZone:n}))}function Ib(){const o=localStorage.getItem("language")?.replace(/_/g,"-")||"en-GB",n={ar:"arab",fa:"arabext",bn:"beng",hi:"deva",mr:"deva",ne:"deva",ta:"tamldec"},l=o.split("-")[0];return n[l]?`${o}-u-nu-${n[l]}`:o}function MC(o){if(localStorage.getItem("localeFormatting")==="false")return Math.round(o*100)+"%";try{return new Intl.NumberFormat(Ib(),{style:"percent",maximumFractionDigits:0}).format(o)}catch{return Math.round(o*100)+"%"}}function Ts(o){if(localStorage.getItem("localeFormatting")==="false")return String(o);try{const l=typeof o=="string"?parseInt(o,10):o;return isNaN(l)?String(o):new Intl.NumberFormat(Ib(),{useGrouping:!1}).format(l)}catch{return String(o)}}const AC=y.lazy(()=>Nm(()=>import("./index-C08TLPUo.js"),[],import.meta.url));function CC({time:o}){const n=l=>localStorage.getItem(l)==="true";return w.jsx(y.Suspense,{fallback:w.jsx(w.Fragment,{}),children:w.jsx("div",{className:`clockBackground ${n("roundClock")?"round":""}`,children:w.jsx(AC,{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 xC({finalHour:o,finalMinute:n,finalSeconds:l}){const u=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:u},children:o}),w.jsx("div",{className:"minute",style:{color:d},children:n}),w.jsx("div",{className:"seconds",style:{color:c},children:l})]})}const Kt=o=>String(o).split("").map(l=>Ts(l)).join(""),zC=()=>{const[o]=y.useState(localStorage.getItem("timeType")),[n,l]=y.useState(""),[u,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(""),[k,_]=y.useState(""),[g,b]=y.useState("block"),[S,C]=y.useState("4em"),x=y.useRef(void 0),A=(D=localStorage.getItem("seconds")==="true"||localStorage.getItem("timeType")==="analogue"?1e3-Date.now()%1e3:6e4-Date.now()%6e4)=>{x.current=setTimeout(()=>{let z=new Date;const L=localStorage.getItem("timezone");switch(L&&L!=="auto"&&(z=Em(z,L)),localStorage.getItem("timeType")){case"percentageComplete":l(MC(z.getHours()/24)),_("");break;case"analogue":Nm(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),l(z);break;default:{let G,J="";const H=localStorage.getItem("zero");if(localStorage.getItem("seconds")==="true"){const j=("00"+z.getSeconds()).slice(-2);J=`:${Kt(j)}`,h(Kt(j))}if(localStorage.getItem("timeformat")==="twentyfourhour"){const j=("00"+z.getMinutes()).slice(-2);if(H==="true"){const q=("00"+z.getHours()).slice(-2);G=`${Kt(q)}:${Kt(j)}${J}`,d(Kt(q)),f(Kt(j))}else{const q=z.getHours();G=`${Ts(q)}:${Kt(j)}${J}`,d(Ts(q)),f(Kt(j))}l(G),_("")}else{let j=z.getHours();j>12?j-=12:j===0&&(j=12);const q=("00"+z.getMinutes()).slice(-2);if(H==="true"){const V=("00"+j).slice(-2);G=`${Kt(V)}:${Kt(q)}${J}`,d(Kt(V)),f(Kt(q))}else G=`${Ts(j)}:${Kt(q)}${J}`,d(Ts(j)),f(Kt(q));l(G),_(z.getHours()>11?"PM":"AM")}break}}A()},D)};return y.useEffect(()=>{const D=z=>{if(z==="clock"||z==="timezone"){if(localStorage.getItem("time")==="false"){b("none");return}x.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),ye.on("refresh",D),()=>{ye.off("refresh"),x.current&&clearTimeout(x.current)}},[]),localStorage.getItem("timeType")==="analogue"?w.jsx(CC,{time:n}):localStorage.getItem("timeType")==="verticalClock"?w.jsx(xC,{finalHour:u,finalMinute:c,finalSeconds:p}):w.jsxs("span",{className:"clock clock-container",style:{display:g,fontSize:S},children:[n,w.jsx("span",{className:"ampm",children:k})]})},TC=(o,n)=>{if(!(localStorage.getItem("events")!=="false"))return n;const u=o.getMonth(),d=o.getDate(),f=JSON.parse(localStorage.getItem("customEvents")||"[]").find(p=>p.month-1===u&&p.date===d);return f&&(n=f.name),n},q_=o=>{const n=Date.now()-o.getTime(),l=new Date(n);return Math.abs(l.getUTCFullYear()-1970)},NC=()=>{const o=Qo(),[n,l]=y.useState(""),[u,d]=y.useState("block"),[c,f]=y.useState("1.6em"),p=y.useRef(),h=y.useRef(null),k=(_=6e4-Date.now()%6e4)=>{h.current=setTimeout(()=>{let g=new Date;const b=localStorage.getItem("timezone");b&&b!=="auto"&&(g=Em(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 x=localStorage.getItem("defaultGreetingMessage");x==="false"?C="":C=TC(g,C);let A="";const D=localStorage.getItem("greetingName");typeof D=="string"&&D.replace(/\s/g,"").length>0&&(A=`, ${D.trim()}`);const z=localStorage.getItem("birthdayenabled");if(x==="false"&&z!=="true"&&(A=A.replace(",","")),z==="true"){const L=new Date(localStorage.getItem("birthday"));if(L.getDate()===g.getDate()&&L.getMonth()===g.getMonth())if(localStorage.getItem("birthdayage")==="true"&&q_(L)!==0){const G=o("widgets.greeting.birthday").split(" ");C=`${G[0]} ${Lb(q_(L))} ${G[1]}`}else C=o("widgets.greeting.birthday")}l(`${C}${A}`),k()},_)};return y.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),k(0))}},g=localStorage.getItem("zoomGreeting");return f(`${1.6*Number((g||100)/100)}em`),k(0),ye.on("refresh",_),()=>{ye.off("refresh"),h.current&&clearTimeout(h.current)}},[o]),w.jsx("span",{className:"greeting",ref:p,style:{display:u,fontSize:c},children:n})},jl="wbNewtabHandoff",EC=4e3,$l=()=>typeof browser<"u"&&typeof browser?.sidebarAction?.open=="function",eu=()=>$l()?browser:typeof chrome<"u"&&chrome?.runtime?.id?chrome:null;let Dl=null;async function jC(){try{Dl=await eu()?.tabs?.getCurrent?.()??null}catch{Dl=null}return Dl}function DC({text:o,mode:n,tabId:l,now:u=Date.now()}){return{id:`nt-${u}-${Math.random().toString(36).slice(2,8)}`,tabId:l,text:String(o).slice(0,EC),mode:n==="act"?"act":"ask",createdAt:u}}function OC({text:o,mode:n},l=eu(),u=Dl){if(!l||u?.id==null)return Promise.reject(new Error("Extension API unavailable"));const d=$l();if(!d&&!l.sidePanel?.open)return Promise.reject(new Error("Side panel API unavailable"));const c=DC({text:o,mode:n,tabId:u.id}),f=Promise.resolve(l.storage.local.set({[jl]:c}));let p;try{d?p=l.sidebarAction.open():(Promise.resolve(l.sidePanel.setOptions({tabId:u.id,path:"src/ui/sidepanel.html",enabled:!0})).catch(()=>{}),p=l.sidePanel.open({tabId:u.id}))}catch(h){p=Promise.reject(h)}return Promise.all([f,p]).then(()=>(Promise.resolve(l.runtime.sendMessage({type:"WB_NEWTAB_PANEL_OPENED",tabId:u.id})).catch(()=>{}),!0),async h=>{throw await f.catch(()=>{}),await qC(l,c.id),h})}async function qC(o,n){try{const l=(await o.storage.local.get(jl))?.[jl];(!l||l.id===n)&&await o.storage.local.remove(jl)}catch{}}function RC(o=eu()){return $l()?typeof o?.search?.search=="function":typeof o?.search?.query=="function"}const R_=new Set(["http:","https:"]);function BC(o){const n=String(o||"").trim();if(!n||/\s/.test(n))return null;try{const l=new URL(n);if(/^[a-z][a-z0-9+.-]*:\/\//i.test(n))return R_.has(l.protocol)?l.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 l=new URL(`https://${n}`);return R_.has(l.protocol)?l.href:null}catch{return null}return null}async function LC(o,n=eu(),l=u=>window.location.assign(u)){const u=BC(o);if(u)return l(u),!0;if($l()&&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 IC=[{id:"ask",icon:MA},{id:"act",icon:Ab},{id:"search",icon:Tm}],Ub=()=>IC.filter(o=>o.id!=="search"||RC()),UC=()=>{const o=localStorage.getItem("taskBoxMode");return Ub().some(n=>n.id===o)?o:"ask"};function PC(){const[o,n]=y.useState(UC),[l,u]=y.useState(""),[d,c]=y.useState(""),f=y.useRef(null);y.useEffect(()=>{jC(),localStorage.getItem("taskBoxFocus")!=="false"&&f.current?.focus()},[]);const p=h=>{h.preventDefault();const k=l.trim();if(!k)return;c(""),(o==="search"?LC(k):OC({text:k,mode:o})).then(()=>{o!=="search"&&u("")}).catch(()=>c(Ea("wb.panel_failed")))};return w.jsxs("div",{className:"taskBox",children:[w.jsxs("form",{className:"taskBoxForm",onSubmit:p,children:[w.jsx("input",{ref:f,className:"taskBoxInput",type:"text",value:l,maxLength:4e3,autoComplete:"off",spellCheck:!1,placeholder:Ea(`wb.placeholder_${o}`),"aria-label":Ea(`wb.placeholder_${o}`),onChange:h=>u(h.target.value)}),w.jsx("button",{className:"taskBoxGo",type:"submit","aria-label":Ea("wb.go"),disabled:!l.trim(),children:w.jsx(Mb,{})})]}),w.jsx("div",{className:"taskBoxModes",role:"radiogroup",children:Ub().map(({id:h,icon:k})=>w.jsxs("button",{type:"button",role:"radio","aria-checked":o===h,className:o===h?"taskBoxMode active":"taskBoxMode",onClick:()=>{n(h),f.current?.focus()},children:[w.jsx(k,{}),w.jsx("span",{children:Ea(`wb.${h}`)})]},h))}),o==="act"&&w.jsx("span",{className:"taskBoxHint",children:Ea("wb.act_hint")}),d&&w.jsx("span",{className:"taskBoxHint taskBoxError",role:"alert",children:d})]})}const B_="webbrain_chat_history",Jc="records";async function HC(o=4,n=globalThis.indexedDB){if(!n?.databases)return[];if(!(await n.databases()).some(d=>d.name===B_))return[];const u=await new Promise((d,c)=>{const f=n.open(B_);f.onupgradeneeded=()=>f.transaction.abort(),f.onsuccess=()=>d(f.result),f.onerror=()=>c(f.error),f.onblocked=()=>c(new Error("blocked"))});try{return u.objectStoreNames.contains(Jc)?await new Promise((d,c)=>{const f=[],p=u.transaction([Jc],"readonly").objectStore(Jc),k=(p.indexNames.contains("updatedAt")?p.index("updatedAt"):p).openCursor(null,"prev");k.onsuccess=()=>{const _=k.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()},k.onerror=()=>c(k.error)}):[]}finally{u.close()}}const $c="../src/ui/history.html";function FC(){const[o,n]=y.useState(null);return y.useEffect(()=>{let l=!1;return HC(4).then(u=>!l&&n(u)).catch(()=>!l&&n([])),()=>{l=!0}},[]),o===null?null:w.jsxs("div",{className:"recentChats",children:[w.jsxs("div",{className:"recentChatsHeader",children:[w.jsx("span",{children:Ea("wb.recent_title")}),w.jsx("a",{href:$c,children:Ea("wb.recent_all")})]}),o.length===0?w.jsx("span",{className:"recentChatsEmpty",children:Ea("wb.recent_empty")}):w.jsx("ul",{children:o.map(l=>w.jsx("li",{children:w.jsx("a",{href:l.url?`${$c}?url=${encodeURIComponent(l.url)}`:$c,children:l.title||l.url})},l.id))})]})}const vm=Math.min,Sn=Math.max,Hl=Math.round,ho=o=>({x:o,y:o}),VC={left:"right",right:"left",bottom:"top",top:"bottom"};function GC(o,n,l){return Sn(o,vm(n,l))}function tu(o,n){return typeof o=="function"?o(n):o}function Cn(o){return o.split("-")[0]}function au(o){return o.split("-")[1]}function Pb(o){return o==="x"?"y":"x"}function Hb(o){return o==="y"?"height":"width"}function Ko(o){const n=o[0];return n==="t"||n==="b"?"y":"x"}function Fb(o){return Pb(Ko(o))}function KC(o,n,l){l===void 0&&(l=!1);const u=au(o),d=Fb(o),c=Hb(d);let f=d==="x"?u===(l?"end":"start")?"right":"left":u==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=Fl(f)),[f,Fl(f)]}function YC(o){const n=Fl(o);return[bm(o),n,bm(n)]}function bm(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}const L_=["left","right"],I_=["right","left"],QC=["top","bottom"],WC=["bottom","top"];function ZC(o,n,l){switch(o){case"top":case"bottom":return l?n?I_:L_:n?L_:I_;case"left":case"right":return n?QC:WC;default:return[]}}function XC(o,n,l,u){const d=au(o);let c=ZC(Cn(o),l==="start",u);return d&&(c=c.map(f=>f+"-"+d),n&&(c=c.concat(c.map(bm)))),c}function Fl(o){const n=Cn(o);return VC[n]+o.slice(n.length)}function JC(o){var n,l,u,d;return{top:(n=o.top)!=null?n:0,right:(l=o.right)!=null?l:0,bottom:(u=o.bottom)!=null?u:0,left:(d=o.left)!=null?d:0}}function $C(o){return typeof o!="number"?JC(o):{top:o,right:o,bottom:o,left:o}}function Vl(o){const{x:n,y:l,width:u,height:d}=o;return{width:u,height:d,top:l,left:n,right:n+u,bottom:l+d,x:n,y:l}}function U_(o,n,l){let{reference:u,floating:d}=o;const c=Ko(n),f=Fb(n),p=Hb(f),h=Cn(n),k=c==="y",_=u.x+u.width/2-d.width/2,g=u.y+u.height/2-d.height/2,b=u[p]/2-d[p]/2;let S;switch(h){case"top":S={x:_,y:u.y-d.height};break;case"bottom":S={x:_,y:u.y+u.height};break;case"right":S={x:u.x+u.width,y:g};break;case"left":S={x:u.x-d.width,y:g};break;default:S={x:u.x,y:u.y}}const C=au(n);return C&&(S[f]+=b*(C==="end"?1:-1)*(l&&k?-1:1)),S}async function ex(o,n){var l;n===void 0&&(n={});const{x:u,y:d,platform:c,rects:f,elements:p,strategy:h}=o,{boundary:k="clippingAncestors",rootBoundary:_="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=tu(n,o),C=$C(S),A=p[b?g==="floating"?"reference":"floating":g],D=Vl(await c.getClippingRect({element:(l=await(c.isElement==null?void 0:c.isElement(A)))==null||l?A:A.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:k,rootBoundary:_,strategy:h})),z=g==="floating"?{x:u,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},J=Vl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:z,offsetParent:L,strategy:h}):z);return{top:(D.top-J.top+C.top)/G.y,bottom:(J.bottom-D.bottom+C.bottom)/G.y,left:(D.left-J.left+C.left)/G.x,right:(J.right-D.right+C.right)/G.x}}const tx=50,ax=async(o,n,l)=>{const{placement:u="bottom",strategy:d="absolute",middleware:c=[],platform:f}=l,p=f.detectOverflow?f:{...f,detectOverflow:ex},h=await(f.isRTL==null?void 0:f.isRTL(n));let k=await f.getElementRects({reference:o,floating:n,strategy:d}),{x:_,y:g}=U_(k,u,h),b=u,S=0;const C={};for(let x=0;x<c.length;x++){const A=c[x];if(!A)continue;const{name:D,fn:z}=A,{x:L,y:G,data:J,reset:H}=await z({x:_,y:g,initialPlacement:u,placement:b,strategy:d,middlewareData:C,rects:k,platform:p,elements:{reference:o,floating:n}});_=L??_,g=G??g,C[D]={...C[D],...J},H&&S<tx&&(S++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(k=H.rects===!0?await f.getElementRects({reference:o,floating:n,strategy:d}):H.rects),{x:_,y:g}=U_(k,b,h)),x=-1)}return{x:_,y:g,placement:b,strategy:d,middlewareData:C}},ox=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(n){var l,u;const{placement:d,middlewareData:c,rects:f,initialPlacement:p,platform:h,elements:k}=n,{mainAxis:_=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:x=!0,...A}=tu(o,n);if((l=c.arrow)!=null&&l.alignmentOffset)return{};const D=Cn(d),z=Ko(p),L=Cn(p)===p,G=await(h.isRTL==null?void 0:h.isRTL(k.floating)),J=b||(L||!x?[Fl(p)]:YC(p)),H=C!=="none";!b&&H&&J.push(...XC(p,x,C,G));const j=[p,...J],q=await h.detectOverflow(n,A),V=[];let $=((u=c.flip)==null?void 0:u.overflows)||[];if(_&&V.push(q[D]),g){const Z=KC(d,f,G);V.push(q[Z[0]],q[Z[1]])}if($=[...$,{placement:d,overflows:V}],!V.every(Z=>Z<=0)){var Q,ee;const Z=(((Q=c.flip)==null?void 0:Q.index)||0)+1,Y=j[Z];if(Y&&(!(g==="alignment"?z!==Ko(Y):!1)||$.every(K=>Ko(K.placement)===z?K.overflows[0]>0:!0)))return{data:{index:Z,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===z||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{}}}},ix=new Set(["left","top"]);async function nx(o,n){const{placement:l,platform:u,elements:d}=o,c=await(u.isRTL==null?void 0:u.isRTL(d.floating)),f=Cn(l),p=au(l),h=Ko(l)==="y",k=ix.has(f)?-1:1,_=c&&h?-1:1,g=tu(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*k}:{x:b*k,y:S*_}}const sx=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(n){var l,u;const{x:d,y:c,placement:f,middlewareData:p}=n,h=await nx(n,o);return f===((l=p.offset)==null?void 0:l.placement)&&(u=p.arrow)!=null&&u.alignmentOffset?{}:{x:d+h.x,y:c+h.y,data:{...h,placement:f}}}}},rx=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(n){const{x:l,y:u,placement:d,platform:c}=n,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:z=>{let{x:L,y:G}=z;return{x:L,y:G}}},...k}=tu(o,n),_={x:l,y:u},g=await c.detectOverflow(n,k),b=Ko(d),S=Pb(b);let C=_[S],x=_[b];const A=(z,L)=>GC(L+g[z==="y"?"top":"left"],L,L-g[z==="y"?"bottom":"right"]);f&&(C=A(S,C)),p&&(x=A(b,x));const D=h.fn({...n,[S]:C,[b]:x});return{...D,data:{x:D.x-l,y:D.y-u,enabled:{[S]:f,[b]:p}}}}}};function ou(){return typeof window<"u"}function zn(o){return Vb(o)?(o.nodeName||"").toLowerCase():"#document"}function ra(o){var n;return(o==null||(n=o.ownerDocument)==null?void 0:n.defaultView)||window}function Wo(o){var n;return(n=(Vb(o)?o.ownerDocument:o.document)||window.document)==null?void 0:n.documentElement}function Vb(o){return ou()?o instanceof Node||o instanceof ra(o).Node:!1}function Qa(o){return ou()?o instanceof Element||o instanceof ra(o).Element:!1}function Zo(o){return ou()?o instanceof HTMLElement||o instanceof ra(o).HTMLElement:!1}function P_(o){return!ou()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof ra(o).ShadowRoot}function iu(o){const{overflow:n,overflowX:l,overflowY:u,display:d}=Wa(o);return/auto|scroll|overlay|hidden|clip/.test(n+u+l)&&d!=="inline"&&d!=="contents"}function lx(o){return/^(table|td|th)$/.test(zn(o))}function nu(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}const ux=/transform|translate|scale|rotate|perspective|filter/,dx=/paint|layout|strict|content/,wi=o=>!!o&&o!=="none";let em;function jm(o){const n=Qa(o)?Wa(o):o;return wi(n.transform)||wi(n.translate)||wi(n.scale)||wi(n.rotate)||wi(n.perspective)||!Dm()&&(wi(n.backdropFilter)||wi(n.filter))||ux.test(n.willChange||"")||dx.test(n.contain||"")}function cx(o){let n=xi(o);for(;Zo(n)&&!Ls(n);){if(jm(n))return n;if(nu(n))return null;n=xi(n)}return null}function Dm(){return em==null&&(em=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),em}function Ls(o){return/^(html|body|#document)$/.test(zn(o))}function Wa(o){return ra(o).getComputedStyle(o)}function su(o){return Qa(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function xi(o){if(zn(o)==="html")return o;const n=o.assignedSlot||o.parentNode||P_(o)&&o.host||Wo(o);return P_(n)?n.host:n}function Gb(o){const n=xi(o);return Ls(n)?(o.ownerDocument||o).body:Zo(n)&&iu(n)?n:Gb(n)}function Kb(o,n,l){var u;n===void 0&&(n=[]);const d=Gb(o),c=d===((u=o.ownerDocument)==null?void 0:u.body),f=ra(d);return c?(ym(f),n.concat(f,f.visualViewport||[],iu(d)?d:[],[])):n.concat(d,Kb(d,[]))}function ym(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function Yb(o){const n=Wa(o);let l=parseFloat(n.width)||0,u=parseFloat(n.height)||0;const d=Zo(o),c=d?o.offsetWidth:l,f=d?o.offsetHeight:u,p=Hl(l)!==c||Hl(u)!==f;return p&&(l=c,u=f),{width:l,height:u,$:p}}function Qb(o){return Qa(o)?o:o.contextElement}function Mn(o){const n=Qb(o);if(!Zo(n))return ho(1);const l=n.getBoundingClientRect(),{width:u,height:d,$:c}=Yb(n);let f=(c?Hl(l.width):l.width)/u,p=(c?Hl(l.height):l.height)/d;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const mx=ho(0);function Wb(o){const n=ra(o);return!Dm()||!n.visualViewport?mx:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function px(o,n,l){return n===void 0&&(n=!1),!!l&&n&&l===ra(o)}function Is(o,n,l,u){n===void 0&&(n=!1),l===void 0&&(l=!1);const d=o.getBoundingClientRect(),c=Qb(o);let f=ho(1);n&&(u?Qa(u)&&(f=Mn(u)):f=Mn(o));const p=px(c,l,u)?Wb(c):ho(0);let h=(d.left+p.x)/f.x,k=(d.top+p.y)/f.y,_=d.width/f.x,g=d.height/f.y;if(c&&u){const b=ra(c),S=Qa(u)?ra(u):u;let C=b,x=ym(C);for(;x&&S!==C;){const A=Mn(x),D=x.getBoundingClientRect(),z=Wa(x),L=D.left+(x.clientLeft+parseFloat(z.paddingLeft))*A.x,G=D.top+(x.clientTop+parseFloat(z.paddingTop))*A.y;h*=A.x,k*=A.y,_*=A.x,g*=A.y,h+=L,k+=G,C=ra(x),x=ym(C)}}return Vl({width:_,height:g,x:h,y:k})}function ru(o,n){const l=su(o).scrollLeft;return n?n.left+l:Is(Wo(o)).left+l}function Zb(o,n){const l=o.getBoundingClientRect(),u=l.left+n.scrollLeft-ru(o,l),d=l.top+n.scrollTop;return{x:u,y:d}}function fx(o){let{elements:n,rect:l,offsetParent:u,strategy:d}=o;const c=d==="fixed",f=Wo(u),p=n?nu(n.floating):!1;if(u===f||p&&c)return l;let h={scrollLeft:0,scrollTop:0},k=ho(1);const _=ho(0),g=Zo(u);if((g||!c)&&((zn(u)!=="body"||iu(f))&&(h=su(u)),g)){const S=Is(u);k=Mn(u),_.x=S.x+u.clientLeft,_.y=S.y+u.clientTop}const b=f&&!g&&!c?Zb(f,h):ho(0);return{width:l.width*k.x,height:l.height*k.y,x:l.x*k.x-h.scrollLeft*k.x+_.x+b.x,y:l.y*k.y-h.scrollTop*k.y+_.y+b.y}}function gx(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function hx(o){const n=su(o),l=o.ownerDocument.body,u=Sn(o.scrollWidth,o.clientWidth,l.scrollWidth,l.clientWidth),d=Sn(o.scrollHeight,o.clientHeight,l.scrollHeight,l.clientHeight);let c=-n.scrollLeft+ru(o);const f=-n.scrollTop;return Wa(l).direction==="rtl"&&(c+=Sn(o.clientWidth,l.clientWidth)-u),{width:u,height:d,x:c,y:f}}const _x=25;function vx(o,n,l){l===void 0&&(l="viewport");const u=l==="layoutViewport",d=ra(o),c=Wo(o),f=d.visualViewport;let p=c.clientWidth,h=c.clientHeight,k=0,_=0;if(f){const b=!Dm()||n==="fixed";u?b||(k=-f.offsetLeft,_=-f.offsetTop):(p=f.width,h=f.height,b&&(k=f.offsetLeft,_=f.offsetTop))}if(ru(c)<=0){const b=c.ownerDocument,S=b.body,C=getComputedStyle(S),x=b.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,A=Math.abs(c.clientWidth-S.clientWidth-x),D=getComputedStyle(c).scrollbarGutter==="stable both-edges"?A/2:A;D<=_x&&(p-=D)}return{width:p,height:h,x:k,y:_}}function bx(o,n){const l=Is(o,!0,n==="fixed"),u=l.top+o.clientTop,d=l.left+o.clientLeft,c=Mn(o),f=o.clientWidth*c.x,p=o.clientHeight*c.y,h=d*c.x,k=u*c.y;return{width:f,height:p,x:h,y:k}}function H_(o,n,l){let u;if(n==="viewport"||n==="layoutViewport")u=vx(o,l,n);else if(n==="document")u=hx(Wo(o));else if(Qa(n))u=bx(n,l);else{const d=Wb(o);u={x:n.x-d.x,y:n.y-d.y,width:n.width,height:n.height}}return Vl(u)}function yx(o,n){const l=n.get(o);if(l)return l;let u=Kb(o,[]).filter(p=>Qa(p)&&zn(p)!=="body"),d=null;const c=Wa(o).position==="fixed";let f=c?xi(o):o;for(;Qa(f)&&!Ls(f);){const p=Wa(f),h=jm(f),k=d?d.position:c?"fixed":"";!h&&(k==="fixed"||k==="absolute"&&p.position==="static")?u=u.filter(g=>g!==f):d=p,f=xi(f)}return n.set(o,u),u}function kx(o){let{element:n,boundary:l,rootBoundary:u,strategy:d}=o;const f=[...l==="clippingAncestors"?nu(n)?[]:yx(n,this._c):[].concat(l),u],p=H_(n,f[0],d);let h=p.top,k=p.right,_=p.bottom,g=p.left;for(let b=1;b<f.length;b++){const S=H_(n,f[b],d);h=Sn(S.top,h),k=vm(S.right,k),_=vm(S.bottom,_),g=Sn(S.left,g)}return{width:k-g,height:_-h,x:g,y:h}}function wx(o){const{width:n,height:l}=Yb(o);return{width:n,height:l}}function Sx(o,n,l){const u=Zo(n),d=Wo(n),c=l==="fixed",f=Is(o,!0,c,n);let p={scrollLeft:0,scrollTop:0};const h=ho(0);if((u||!c)&&((zn(n)!=="body"||iu(d))&&(p=su(n)),u)){const b=Is(n,!0,c,n);h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}!u&&d&&(h.x=ru(d));const k=d&&!u&&!c?Zb(d,p):ho(0),_=f.left+p.scrollLeft-h.x-k.x,g=f.top+p.scrollTop-h.y-k.y;return{x:_,y:g,width:f.width,height:f.height}}function tm(o){return Wa(o).position==="static"}function F_(o,n){if(!Zo(o)||Wa(o).position==="fixed")return null;if(n)return n(o);let l=o.offsetParent;return Wo(o)===l&&(l=l.ownerDocument.body),l}function Xb(o,n){const l=ra(o);if(nu(o))return l;if(!Zo(o)){let d=xi(o);for(;d&&!Ls(d);){if(Qa(d)&&!tm(d))return d;d=xi(d)}return l}let u=F_(o,n);for(;u&&lx(u)&&tm(u);)u=F_(u,n);return u&&Ls(u)&&tm(u)&&!jm(u)?l:u||cx(o)||l}const Mx=async function(o){const n=this.getOffsetParent||Xb,l=this.getDimensions,u=await l(o.floating);return{reference:Sx(o.reference,await n(o.floating),o.strategy),floating:{x:0,y:0,width:u.width,height:u.height}}};function Ax(o){return Wa(o).direction==="rtl"}const Cx={convertOffsetParentRelativeRectToViewportRelativeRect:fx,getDocumentElement:Wo,getClippingRect:kx,getOffsetParent:Xb,getElementRects:Mx,getClientRects:gx,getDimensions:wx,getScale:Mn,isElement:Qa,isRTL:Ax},xx=sx,zx=rx,Tx=ox,Nx=(o,n,l)=>{const u=new Map,d=l??{},c={...Cx,...d.platform,_c:u};return ax(o,n,{...d,platform:c})};var wn=xm(),Ex=typeof document<"u",jx=function(){},Ol=Ex?y.useLayoutEffect:jx;function Gl(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 l,u,d;if(o&&n&&typeof o=="object"){if(Array.isArray(o)){if(l=o.length,l!==n.length)return!1;for(u=l;u--!==0;)if(!Gl(o[u],n[u]))return!1;return!0}if(d=Object.keys(o),l=d.length,l!==Object.keys(n).length)return!1;for(u=l;u--!==0;)if(!{}.hasOwnProperty.call(n,d[u]))return!1;for(u=l;u--!==0;){const c=d[u];if(!(c==="_owner"&&o.$$typeof)&&!Gl(o[c],n[c]))return!1}return!0}return o!==o&&n!==n}function Jb(o){return typeof window>"u"?1:(o.ownerDocument.defaultView||window).devicePixelRatio||1}function V_(o,n){const l=Jb(o);return Math.round(n*l)/l}function am(o){const n=y.useRef(o);return Ol(()=>{n.current=o}),n}function lu(o){o===void 0&&(o={});const{placement:n="bottom",strategy:l="absolute",middleware:u=[],platform:d,elements:{reference:c,floating:f}={},transform:p=!0,whileElementsMounted:h,open:k}=o,[_,g]=y.useState({x:0,y:0,strategy:l,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=y.useState(u);Gl(b,u)||S(u);const[C,x]=y.useState(null),[A,D]=y.useState(null),z=y.useCallback(K=>{K!==H.current&&(H.current=K,x(K))},[]),L=y.useCallback(K=>{K!==j.current&&(j.current=K,D(K))},[]),G=c||C,J=f||A,H=y.useRef(null),j=y.useRef(null),q=y.useRef(_),V=h!=null,$=am(h),Q=am(d),ee=am(k),ae=y.useCallback(()=>{if(!H.current||!j.current)return;const K={placement:n,strategy:l,middleware:b};Q.current&&(K.platform=Q.current),Nx(H.current,j.current,K).then(ie=>{const ne={...ie,isPositioned:ee.current!==!1};Z.current&&!Gl(q.current,ne)&&(q.current=ne,wn.flushSync(()=>{g(ne)}))})},[b,n,l,Q,ee]);Ol(()=>{k===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,g(K=>({...K,isPositioned:!1})))},[k]);const Z=y.useRef(!1);Ol(()=>(Z.current=!0,()=>{Z.current=!1}),[]),Ol(()=>{if(G&&(H.current=G),J&&(j.current=J),G&&J){if($.current)return $.current(G,J,ae);ae()}},[G,J,ae,$,V]);const Y=y.useMemo(()=>({reference:H,floating:j,setReference:z,setFloating:L}),[z,L]),I=y.useMemo(()=>({reference:G,floating:J}),[G,J]),T=y.useMemo(()=>{const K={position:l,left:0,top:0};if(!I.floating)return K;const ie=V_(I.floating,_.x),ne=V_(I.floating,_.y);return p?{...K,transform:"translate("+ie+"px, "+ne+"px)",...Jb(I.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:ie,top:ne}},[l,p,I.floating,_.x,_.y]);return y.useMemo(()=>({..._,update:ae,refs:Y,elements:I,floatingStyles:T}),[_,ae,Y,I,T])}const Dx=(o,n)=>{const l=xx(o);return{name:l.name,fn:l.fn,options:[o,n]}},uu=(o,n)=>{const l=zx(o);return{name:l.name,fn:l.fn,options:[o,n]}},Ox=(o,n)=>{const l=Tx(o);return{name:l.name,fn:l.fn,options:[o,n]}};function qx({children:o,title:n,style:l,placement:u,subtitle:d}){const[c,f]=y.useState(!1),[p,h]=y.useState(!1),[k,_]=y.useState(null),g=y.useRef(`tooltip-${Math.random()}`),b=y.useRef(null),{x:S,y:C,refs:x,strategy:A,placement:D}=lu({placement:u||"bottom",middleware:[Ox(),Dx(15),uu()],elements:{reference:k}}),z=()=>{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)},J=()=>{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:l,onMouseEnter:z,onMouseLeave:L,onFocus:G,onBlur:J,ref:_,"aria-describedby":g.current,children:o}),(c||p)&&w.jsxs("span",{ref:x.setFloating,style:{position:A,top:C??"",left:S??"",display:"flex",flexFlow:"column"},className:"tooltipTitle","data-status":H(),"data-placement":D,children:[n,w.jsx("span",{style:{fontSize:"8px"},children:d})]})]})}const ht=y.memo(qx),Us=y.forwardRef(({icon:o,label:n,type:l,iconPlacement:u,onClick:d,active:c,disabled:f,tooltipTitle:p,tooltipKey:h,href:k,style:_},g)=>{let b;switch(l){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"}u==="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:k,style:_,target:"_blank",rel:"noopener noreferrer",children:[o,n]}),x=w.jsx(ht,{title:p,children:w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:k,target:"_blank",rel:"noopener noreferrer",style:_,children:[o,n]})},h);switch(l){case"linkIconButton":return x;case"linkButton":return C;case"icon":return w.jsx(ht,{title:p,children:S},h);default:return S}});Us.displayName="Button";function Rx({urlError:o,iconError:n,addLink:l,closeModal:u,edit:d,editData:c,editLink:f}){const[p,h]=y.useState(d?c.name:""),[k,_]=y.useState(d?c.url:""),[g,b]=y.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:()=>u(),children:w.jsx(Bs,{})})})]}),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:k,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(Us,{type:"settings",onClick:()=>f(c,p,k,g),icon:w.jsx(T_,{}),label:pe.getMessage("modals.main.settings.sections.quicklinks.edit")}):w.jsx(Us,{type:"settings",onClick:()=>l(p,k,g),icon:w.jsx(T_,{}),label:pe.getMessage("widgets.quicklinks.add")})]})]})}const cN=y.memo(Rx),Bx=[{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}],Lx=[{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 $b(o){localStorage.clear(),Bx.forEach(u=>localStorage.setItem(u.name,u.value));const n=Lx.map(({value:u})=>u),l=navigator.languages&&navigator.languages.find(u=>u.replace("-","_")&&n.includes(u))||navigator.language.replace("-","_");n.includes(l)?localStorage.setItem("language",l):localStorage.setItem("language","en_GB"),localStorage.setItem("tabName",pe.getMessage("tabname")),o&&localStorage.setItem("showWelcome",!1),localStorage.setItem("firstRun",!0)}function Ix(o,n="file",l="text/json"){typeof o=="object"&&(o=JSON.stringify(o,void 0,4));const u=new Blob([o],{type:l}),d=document.createEvent("MouseEvents"),c=document.createElement("a");c.href=window.URL.createObjectURL(u),c.download=n,c.dataset.downloadurl=[l,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 G_(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 l=localStorage.getItem("customcss");l&&document.head.insertAdjacentHTML("beforeend",'<style id="customcss">'+l+"</style>");const u=localStorage.getItem("font");u&&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:"找不到應用程式連結"}}},IM=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"}}`),UM={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"},hb={tabname:BM,widgets:LM,modals:IM,toasts:UM};function Nl(o){return new h0("en_GB",{ar:Lv,arz:Iv,az:Uv,azb:Pv,bn:Hv,de_DE:Fv,el:Vv,en_GB:Gv,en_US:Kv,es:Yv,es_419:Qv,et:Wv,fa:Zv,fr:Xv,hu:Jv,id_ID:$v,ja:eb,lt:tb,lv:ab,nl:ob,no:ib,peo:nb,pt:sb,pt_BR:rb,ru:lb,sl:ub,sv:db,ta:cb,tr_TR:mb,uk:pb,vi:fb,zh_CN:gb,zh_Hant:hb})}const PM={ar:Lv,arz:Iv,az:Uv,azb:Pv,bn:Hv,de_DE:Fv,el:Vv,en_GB:Gv,en_US:Kv,es:Yv,es_419:Qv,et:Wv,fa:Zv,fr:Xv,hu:Jv,id_ID:$v,ja:eb,lt:tb,lv:ab,nl:ob,no:ib,peo:nb,pt:sb,pt_BR:rb,ru:lb,sl:ub,sv:db,ta:cb,tr_TR:mb,uk:pb,vi:fb,zh_CN:gb,zh_Hant:hb},HM="https://webbrain.one",FM="https://webbrain.one/privacy",VM="https://github.com/esokullu/webbrain",GM="https://github.com/esokullu/webbrain/issues/new",KM="https://github.com/mue/mue",YM="7.6.0",QM="1.0.0",WM=Object.freeze(Object.defineProperty({__proto__:null,BUG_REPORT:GM,MUE_REPO_URL:KM,MUE_VERSION:YM,PRIVACY_URL:FM,REPO_URL:VM,VERSION:QM,WEBSITE_URL:HM},Symbol.toStringTag,{value:"Module"}));class ZM{static async postEvent(){}static async tabLoad(){}}const pe={language:{},languagecode:"",stats:ZM,constants:WM};class ye{static listeners={};static on(n,l){document.addEventListener(n,u=>{l(u.detail)}),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push(l)}static emit(n,l){document.dispatchEvent(new CustomEvent(n,{detail:l}))}static off(n,l){document.removeEventListener(n,l),this.listeners[n]&&(this.listeners[n]=this.listeners[n].filter(u=>u!==l))}static once(n,l){const u=d=>{l(d.detail),this.off(n,u)};document.addEventListener(n,u),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push({callback:l,listener:u})}static prepend(n,l){const u=d=>{l(d.detail)};document.addEventListener(n,u,!0),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].unshift({callback:l,listener:u})}static prependOnce(n,l){const u=d=>{l(d.detail),this.off(n,u)};document.addEventListener(n,u,!0),this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].unshift({callback:l,listener:u})}static getListeners(n){return this.listeners[n]?this.listeners[n]:[]}static eventNames(){return Object.keys(this.listeners)}static removeAllListeners(){Object.keys(this.listeners).forEach(n=>{this.listeners[n].forEach(({listener:l})=>{document.removeEventListener(n,l)})}),this.listeners={}}}const XM={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 _b(){let o;try{o=String(pm?.getItem("wbLocale")||"").trim()}catch{o=""}return o||String(globalThis.navigator?.language||"en").slice(0,2).toLowerCase()}function JM(){return XM[_b()]||"en_GB"}const $M=["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"],eA={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"]},A_=Object.fromEntries(Object.entries(eA).map(([o,n])=>[o,Object.fromEntries($M.map((l,u)=>[`wb.${l}`,n[u]]))]));function Ea(o,n=_b()){return A_[n]?.[o]??A_.en[o]??o}const vb=o=>typeof o=="string"&&o.startsWith("wb."),bb=y.createContext();function tA({children:o,initialLanguage:n}){const[l,u]=y.useState(n),d=y.useRef(Nl());y.useEffect(()=>{l!==n&&(d.current=Nl()),pe.language=d.current,pe.languagecode=l,document.documentElement.lang=l.replace("_","-")},[l,n]);const c=y.useCallback(h=>{d.current=Nl(),pe.language=d.current,pe.languagecode=h,document.documentElement.lang=h.replace("_","-");const k=localStorage.getItem("tabName"),_=d.current?.getMessage(l,"tabname");if(k===_||!k){const g=PM[h.replace("-","_")]?.tabname||d.current?.getMessage(h,"tabname")||"Mue";localStorage.setItem("tabName",g),document.title=g}localStorage.setItem("language",h),localStorage.removeItem("currentWeather"),u(h)},[l]),f=y.useCallback((h,k={})=>vb(h)?Ea(h):d.current?d.current.getMessage(l,h,k):h,[l]);y.useEffect(()=>{const h=k=>{k?.language&&c(k.language)};return ye.on("languageChange",h),()=>{ye.off("languageChange",h)}},[c]),y.useEffect(()=>{pe.getMessage=(h,k={})=>f(h,k)},[f]);const p=y.useMemo(()=>({language:l,languagecode:l,changeLanguage:c,t:f}),[l,c,f]);return w.jsx(bb.Provider,{value:p,children:o})}function yb(){const o=y.useContext(bb);if(!o)throw new Error("useTranslation must be used within a TranslationProvider");return o}function Qo(){const{t:o}=yb();return o}function aA({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 oA=y.memo(aA);var kb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},C_=_e.createContext&&_e.createContext(kb),iA=["attr","size","title"];function nA(o,n){if(o==null)return{};var l,u,d=sA(o,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(u=0;u<c.length;u++)l=c[u],n.indexOf(l)===-1&&{}.propertyIsEnumerable.call(o,l)&&(d[l]=o[l])}return d}function sA(o,n){if(o==null)return{};var l={};for(var u in o)if({}.hasOwnProperty.call(o,u)){if(n.indexOf(u)!==-1)continue;l[u]=o[u]}return l}function Bl(){return Bl=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var u in l)({}).hasOwnProperty.call(l,u)&&(o[u]=l[u])}return o},Bl.apply(null,arguments)}function x_(o,n){var l=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);n&&(u=u.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),l.push.apply(l,u)}return l}function Ll(o){for(var n=1;n<arguments.length;n++){var l=arguments[n]!=null?arguments[n]:{};n%2?x_(Object(l),!0).forEach(function(u){rA(o,u,l[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(l)):x_(Object(l)).forEach(function(u){Object.defineProperty(o,u,Object.getOwnPropertyDescriptor(l,u))})}return o}function rA(o,n,l){return(n=lA(n))in o?Object.defineProperty(o,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[n]=l,o}function lA(o){var n=uA(o,"string");return typeof n=="symbol"?n:n+""}function uA(o,n){if(typeof o!="object"||!o)return o;var l=o[Symbol.toPrimitive];if(l!==void 0){var u=l.call(o,n);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function wb(o){return o&&o.map((n,l)=>_e.createElement(n.tag,Ll({key:l},n.attr),wb(n.child)))}function re(o){return n=>_e.createElement(dA,Bl({attr:Ll({},o.attr)},n),wb(o.child))}function dA(o){var n=l=>{var u=o.attr,d=o.size,c=o.title,f=nA(o,iA),p=d||l.size||"1em",h;return l.className&&(h=l.className),o.className&&(h=(h?h+" ":"")+o.className),_e.createElement("svg",Bl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},l.attr,u,f,{className:h,style:Ll(Ll({color:o.color||l.color},l.style),o.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),c&&_e.createElement("title",null,c),o.children)};return C_!==void 0?_e.createElement(C_.Consumer,null,l=>n(l)):n(kb)}function cA(o){return re({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 RT(o){return re({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 BT(o){return re({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 Rs(o){return re({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 mA(o){return re({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 Sb(o){return re({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 Bs(o){return re({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 pA(o){return re({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 LT(o){return re({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"},child:[]}]})(o)}function zm(o){return re({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 IT(o){return re({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 Mb(o){return re({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 fA(o){return re({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 gA(o){return re({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 UT(o){return re({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 hA(o){return re({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 _A(o){return re({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 PT(o){return re({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 HT(o){return re({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 FT(o){return re({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 vA(o){return re({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 bA(o){return re({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 Ab(o){return re({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 yA(o){return re({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 VT(o){return re({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 z_(o){return re({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 Cb(o){return re({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 GT(o){return re({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 kA(o){return re({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 KT(o){return re({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 wA(o){return re({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 T_(o){return re({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 SA(o){return re({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 YT(o){return re({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 MA(o){return re({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 AA(o){return re({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 QT(o){return re({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 CA(o){return re({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 WT(o){return re({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 ZT(o){return re({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 xb(o){return re({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 xA(o){return re({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 zA(o){return re({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 TA(o){return re({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 XT(o){return re({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 NA(o){return re({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 Tm(o){return re({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 EA(o){return re({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 jA(o){return re({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 DA(o){return re({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 OA(o){return re({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 qA(o){return re({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 RA(o){return re({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 N_(o){return re({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 JT(o){return re({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 E_(o){return re({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 BA(o){return re({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 $T(o){return re({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 eN(o){return re({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 tN(o){return re({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 LA(o){return re({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 aN(o){return re({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},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 IA(o){return re({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 UA(o){return re({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 oN(o){return re({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 iN(o){return re({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 PA(o){return re({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 HA(o){return re({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 FA(o){return re({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 VA(o){return re({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:gA,LIBRARY:RA,TASKBOX:Ab,DISCOVER:jA,NAVBAR:mA,GREETING:cA,TIME:CA,QUOTE:LA,QUICKLINKS:kA,DATE:OA,MESSAGE:IA,BACKGROUND:BA,SEARCH:Tm,WEATHER:bA,APPEARANCE:yA,LANGUAGE:TA,ADVANCED:PA,EXPERIMENTAL:qA,STATS:VA,CHANGELOG:UA,ABOUT:EA,ADDED:HA,CREATE:SA,OVERVIEW:zA,COLLECTIONS:_A},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"},nN=(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],GA=[{tab:Yo.SETTINGS,icon:Re.SETTINGS,messageKey:"modals.main.navbar.settings"}],sN=["modals.main.settings.sections.appearance.title","modals.main.settings.sections.advanced.title"],Il=(o=window.location.hash)=>{if(!o||o==="#")return null;const[n,l,u]=o.slice(1).split("/");return n!==Yo.SETTINGS?null:{tab:n,section:l||void 0,subSection:u||void 0}},Ul=(o,n=!0)=>{window.history.pushState?n?window.history.pushState(null,null,o):window.history.replaceState(null,null,o):window.location.hash=o},KA=()=>Il()!==null,YA="MueCustomBackgrounds",QA=1,Yt="backgrounds";function xn(){return new Promise((o,n)=>{const l=indexedDB.open(YA,QA);l.onerror=()=>n(l.error),l.onsuccess=()=>o(l.result),l.onupgradeneeded=u=>{const d=u.target.result;d.objectStoreNames.contains(Yt)||d.createObjectStore(Yt,{keyPath:"id",autoIncrement:!0}).createIndex("url","url",{unique:!1})}})}async function zb(){try{const u=(await xn()).transaction(Yt,"readonly").objectStore(Yt).getAll();return new Promise((d,c)=>{u.onsuccess=()=>{const f=u.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))},u.onerror=()=>c(u.error)})}catch(o){return console.error("Error getting backgrounds from IndexedDB:",o),[]}}async function WA(){return(await zb()).map(n=>n.url||n)}async function ZA(o){const u=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),d=typeof o=="string"?{url:o,name:"Image",uploadDate:Date.now(),folder:""}:{...o,uploadDate:o.uploadDate||Date.now()},c=u.add(d);return new Promise((f,p)=>{c.onsuccess=()=>f(c.result),c.onerror=()=>p(c.error)})}async function rN(o){const u=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),d=u.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result;if(p[o]){const h=u.delete(p[o].id);h.onsuccess=()=>c(),h.onerror=()=>f(h.error)}else c()},d.onerror=()=>f(d.error)})}async function lN(o){const u=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),d=u.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result,h=o.filter(g=>p[g]).map(g=>p[g].id);let k=0;const _=h.length;if(_===0){c();return}h.forEach(g=>{const b=u.delete(g);b.onsuccess=()=>{k++,k===_&&c()},b.onerror=()=>f(b.error)})},d.onerror=()=>f(d.error)})}async function XA(){const u=(await xn()).transaction(Yt,"readonly").objectStore(Yt).count();return new Promise((d,c)=>{u.onsuccess=()=>d(u.result),u.onerror=()=>c(u.error)})}async function uN(o,n){const d=(await xn()).transaction(Yt,"readwrite").objectStore(Yt),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 k=d.put(h);k.onsuccess=()=>f(),k.onerror=()=>p(k.error)}else p(new Error("Background not found"))},c.onerror=()=>p(c.error)})}async function dN(){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(u=>u&&u.trim()!==""),n.length===0||await XA()>0)return!1;for(const u of n)await ZA(u);return console.log(`Migrated ${n.length} backgrounds from localStorage to IndexedDB`),localStorage.setItem("customBackgroundMigrated","true"),!0}catch(o){return console.error("Error migrating backgrounds:",o),!1}}function JA({photoInfo:o,currentAPI:n,url:l}){const u=localStorage.getItem("backgroundType")==="custom",[d,c]=y.useState([]),[f,p]=y.useState(!0);y.useEffect(()=>{(async()=>{if(u)try{const g=await WA();c(g||[])}catch(g){console.error("Failed to load custom backgrounds:",g),c([])}p(!1)})()},[u]);const h=u&&!f&&(!d||d.length===0),k=()=>{Ul("#settings/background/source"),ye.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:k,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(oA,{info:o,api:n,url:l})]})}const $A=y.memo(JA);function eC({url:o,filterStyle:n}){const l=y.useMemo(()=>localStorage.getItem("backgroundVideoMute")==="true",[]),u=y.useMemo(()=>localStorage.getItem("backgroundVideoLoop")==="true",[]);return w.jsx("video",{autoPlay:!0,muted:l,loop:u,style:n,id:"backgroundVideo",children:w.jsx("source",{src:o})})}const tC=y.memo(eC);function aC(){const[o,n]=y.useState({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!1,offline:!1,photographerURL:"",photoURL:""}}),l=y.useCallback(d=>{n(c=>({...c,...d,photoInfo:{...c.photoInfo,...d.photoInfo||{}}}))},[]),u=y.useCallback(()=>{n({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!0}})},[]);return{backgroundData:o,updateBackground:l,resetBackground:u}}const oC={photo:[5]},Zc={"Ryan Hutton":{photo:[1]},"Francesco De Tommaso":{photo:[2]},"Andy Vu":{photo:[3]},"Sergi Ferrete":{photo:[4]},Pixabay:oC};function Tb(o){const n=Object.keys(Zc),l=n[Math.floor(Math.random()*n.length)],d={url:`src/assets/offline-images/${Zc[l].photo[Math.floor(Math.random()*Zc[l].photo.length)]}.webp`,type:o,photoInfo:{offline:!0,credit:l}};return localStorage.setItem("currentBackground",JSON.stringify(d)),d}function iC(o){const n=()=>"#000000".replace(/0/g,()=>(~~(Math.random()*16)).toString(16));let l=`background:${n()};`;if(o==="random_gradient"){const u=["to right","to left","to bottom","to top","to bottom right","to bottom left","to top right","to top left"];l=`background:linear-gradient(${u[Math.floor(Math.random()*u.length)]}, ${n()}, ${n()});`}return{type:"colour",style:l}}function Nb(o){return o.startsWith("data:video/")||o.endsWith(".mp4")||o.endsWith(".webm")||o.endsWith(".ogg")}const Eb=(o,n=null)=>{const l=localStorage.getItem(o);if(l===null||l==="null")return n;try{const u=JSON.parse(l);return u!==null?u:n}catch{return n}};async function nC(){const o=localStorage.getItem("offlineMode")==="true"||localStorage.getItem("showWelcome")==="true",n=Eb("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 l=localStorage.getItem("backgroundType");switch(l){case"api":return rC();case"colour":return sC();case"random_colour":case"random_gradient":return iC(l);case"custom":return await lC(o);default:return null}}function sC(){return{type:"colour",style:`background: ${localStorage.getItem("customBackgroundColour")||"rgb(0,0,0)"}`}}function rC(){return{...Tb("api"),currentAPI:localStorage.getItem("backgroundAPI")||"mue"}}async function lC(o){let n=await zb();if(!n||n.length===0){const c=Eb("customBackground",[]);c&&c.length>0&&(n=c.map(f=>({url:f,photoInfo:{hidden:!0}})))}if(!n||n.length===0)return null;const l=n[Math.floor(Math.random()*n.length)];if(!l)return null;const u=l.url||l;if(o&&!u.startsWith("data:"))return Tb("custom");const d={url:u,type:"custom",video:Nb(u),photoInfo:{hidden:!0,blur_hash:l.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 uC(o,n){const l=y.useRef(!1),u=y.useCallback(async()=>{if(!l.current){l.current=!0;try{if(localStorage.getItem("welcomeTab")){const p=localStorage.getItem("welcomeImage");if(p){o(JSON.parse(p));return}}const f=await nC();f&&o(f)}catch(c){console.error("Failed to load background:",c)}finally{l.current=!1}}},[o]),d=y.useCallback(()=>{n(),u()},[u,n]);return y.useEffect(()=>{const c=localStorage.getItem("backgroundchange");(!localStorage.getItem("backgroundStartTime")||c==="refresh")&&localStorage.setItem("backgroundStartTime",Date.now()),u()},[u]),{loadBackground:u,refreshBackground:d}}async function dC(o){try{const n=await fetch(o,{mode:"cors",credentials:"omit"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const l=await n.blob();return URL.createObjectURL(l)}catch{return null}}const cC="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",El=(o,n,l)=>{let u=0;for(;n<l;)u=u*83+cC.indexOf(o[n++]);return u},jb=Math.pow,Ns=Math.PI,Db=3294.6,Ob=269.025,mC=o=>o>10.31475?jb(o/Ob+.052132,2.4):o/Db,pC=o=>~~(o>1227e-8?Ob*jb(o,.416666)-13.025:o*Db+1),Pl=4096,qb=new Uint8ClampedArray(Pl+1);for(let o=0;o<=Pl;o++)qb[o]=pC(o/Pl);const Xc=o=>o<=0?0:o>=1?255:qb[o*Pl+.5|0],Es=o=>(o<0?-1:1)*o*o,j_=o=>{for(o+=Ns/2;o>Ns;)o-=Ns*2;const n=1.27323954*o-.405284735*Es(o);return .225*(Es(n)-n)+n};function fC(o){const n=El(o,2,6);return[n>>16,n>>8&255,n&255]}function gC(o,n,l,u){const d=El(o,0,1),c=d%9+1,f=~~(d/9)+1,p=c*f;let h,k,_,g,b,S,C,x,A,D,z,L;const G=(El(o,1,2)+1)/13446*(u|1),J=new Float64Array(p*3),H=fC(o);for(h=0;h<3;h++)J[h]=mC(H[h]);for(h=1;h<p;h++)L=El(o,4+h*2,6+h*2),J[h*3]=Es(~~(L/361)-9)*G,J[h*3+1]=Es(~~(L/19)%19-9)*G,J[h*3+2]=Es(L%19-9)*G;const j=new Float64Array(f*l),q=new Float64Array(c*n);for(k=0;k<f;k++)for(g=0;g<l;g++)j[k*l+g]=j_(Ns*g*k/l);for(h=0;h<c;h++)for(_=0;_<n;_++)q[h*n+_]=j_(Ns*_*h/n);const V=n*4,$=new Uint8ClampedArray(V*l),Q=new Float64Array(c*3);for(g=0;g<l;g++){for(h=0;h<c;h++){for(b=S=C=0,k=0;k<f;k++)A=j[k*l+g],D=(h+k*c)*3,b+=J[D]*A,S+=J[D+1]*A,C+=J[D+2]*A;Q[h*3]=b,Q[h*3+1]=S,Q[h*3+2]=C}for(_=0;_<n;_++){for(b=S=C=0,h=0;h<c;h++)x=q[h*n+_],D=h*3,b+=Q[D]*x,S+=Q[D+1]*x,C+=Q[D+2]*x;z=4*_+g*V,$[z]=Xc(b),$[z+1]=Xc(S),$[z+2]=Xc(C),$[z+3]=255}}return $}function hC(o,n=32,l=32){try{const u=document.createElement("canvas");u.width=n,u.height=l;const d=u.getContext("2d"),c=d.createImageData(n,l);return c.data.set(gC(o,n,l)),d.putImageData(c,0,0),u.toDataURL()}catch(u){return console.error("Failed to generate blur hash:",u),null}}function Rb(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",l=localStorage.getItem("backgroundFilter"),u=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px) brightness(${n}%)`;return l&&l!=="none"&&(d+=` ${l}(${u}%)`),d}function Bb(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",l=localStorage.getItem("backgroundFilter"),u=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px)`;l&&l!=="none"&&(d+=` ${l}(${u}%)`);const f=(100-parseInt(n,10))/100;return{backdropFilter:d,WebkitBackdropFilter:d,backgroundColor:`rgba(0, 0, 0, ${f})`}}const D_=1200;function _C(o){const n=y.useRef(null),l=y.useRef(null);y.useEffect(()=>{if(o.video)return;const u=document.getElementById("backgroundImage");return u?(l.current&&l.current.abort(),l.current=new AbortController,(async()=>{if(o.url){const c=localStorage.getItem("bgtransition")!=="false",f=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!c||f){u.style.background=`url(${o.url})`,document.querySelector(".photoInformation")?.style.setProperty("display","flex");return}let p=document.getElementById("backgroundOverlay");if(p||(p=document.createElement("div"),p.id="backgroundOverlay",u.parentNode.insertBefore(p,u.nextSibling)),o.photoInfo?.colour&&(u.style.backgroundColor=o.photoInfo.colour),o.photoInfo?.blur_hash){const g=hC(o.photoInfo.blur_hash,64,64);g&&(u.style.backgroundImage=`url(${g})`)}const h=await dC(o.url),k=h||o.url;h&&(n.current&&URL.revokeObjectURL(n.current),n.current=h);const _=new Image;_.src=k,await new Promise(g=>{_.onload=g,_.onerror=g}),p.style.transition="none",p.style.opacity="0",p.style.backgroundImage="",p.offsetHeight,p.style.backgroundImage=`url(${k})`,p.offsetHeight,p.style.transition=`opacity ${D_/1e3}s ease-in-out`,p.offsetHeight,p.style.opacity="1",setTimeout(()=>{u.style.backgroundImage=`url(${k})`,p.style.opacity="0",p.style.backgroundImage=""},D_+100)}else o.style&&u.setAttribute("style",o.style)})(),()=>{n.current&&URL.revokeObjectURL(n.current),l.current&&l.current.abort();const c=document.getElementById("backgroundOverlay");c&&c.remove()}):void 0},[o.url,o.style,o.video,o.photoInfo])}function vC(){return y.useMemo(()=>({WebkitFilter:Rb()}),[])}function bC(){return y.useMemo(()=>Bb(),[])}function yC(o,n){y.useEffect(()=>{const l=c=>{c==="welcomeLanguage"?localStorage.setItem("welcomeImage",JSON.stringify(o)):c==="background"?u():["backgroundwelcome","backgroundrefresh"].includes(c)?n():c==="backgroundeffect"&&d()},u=()=>{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"||o.photoInfo?.pun&&JSON.parse(localStorage.getItem("backgroundExclude")||"[]").includes(o.photoInfo.pun))&&n()},d=()=>{if(o.video){const c=Rb(),f=document.getElementById("backgroundVideo");f&&(f.style.webkitFilter=c)}else{const c=document.getElementById("backgroundFilterOverlay");if(c){const f=Bb();c.style.backdropFilter=f.backdropFilter,c.style.webkitBackdropFilter=f.WebkitBackdropFilter,c.style.backgroundColor=f.backgroundColor}}};return ye.on("refresh",l),()=>ye.off("refresh",l)},[o,n])}function kC(){const{backgroundData:o,updateBackground:n,resetBackground:l}=aC(),{refreshBackground:u}=uC(n,l),d=vC(),c=bC();return _C(o),yC(o,u),w.jsxs(w.Fragment,{children:[o.video?w.jsx(tC,{url:o.url,filterStyle:d}):w.jsx($A,{photoInfo:o.photoInfo,currentAPI:o.currentAPI,url:o.url}),w.jsx("div",{id:"backgroundFilterOverlay",style:c})]})}const wC=(function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"})(),SC=function(o,n){return new URL(o,n).href},O_={},Nm=function(n,l,u){let d=Promise.resolve();if(l&&l.length>0){let k=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=k(l.map(_=>{if(_=SC(_,u),_ in O_)return;O_[_]=!0;const g=_.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(u)for(let C=f.length-1;C>=0;C--){const x=f[C];if(x.href===_&&(!g||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${b}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":wC,g||(S.as="script"),S.crossOrigin="",S.href=_,h&&S.setAttribute("nonce",h),document.head.appendChild(S),g)return new Promise((C,x)=>{S.addEventListener("load",C),S.addEventListener("error",()=>x(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 Lb(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 Em(o,n){return new Date((typeof o=="string"?new Date(o):o).toLocaleString("en-US",{timeZone:n}))}function Ib(){const o=localStorage.getItem("language")?.replace(/_/g,"-")||"en-GB",n={ar:"arab",fa:"arabext",bn:"beng",hi:"deva",mr:"deva",ne:"deva",ta:"tamldec"},l=o.split("-")[0];return n[l]?`${o}-u-nu-${n[l]}`:o}function MC(o){if(localStorage.getItem("localeFormatting")==="false")return Math.round(o*100)+"%";try{return new Intl.NumberFormat(Ib(),{style:"percent",maximumFractionDigits:0}).format(o)}catch{return Math.round(o*100)+"%"}}function Ts(o){if(localStorage.getItem("localeFormatting")==="false")return String(o);try{const l=typeof o=="string"?parseInt(o,10):o;return isNaN(l)?String(o):new Intl.NumberFormat(Ib(),{useGrouping:!1}).format(l)}catch{return String(o)}}const AC=y.lazy(()=>Nm(()=>import("./index-BXa4CzFe.js"),[],import.meta.url));function CC({time:o}){const n=l=>localStorage.getItem(l)==="true";return w.jsx(y.Suspense,{fallback:w.jsx(w.Fragment,{}),children:w.jsx("div",{className:`clockBackground ${n("roundClock")?"round":""}`,children:w.jsx(AC,{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 xC({finalHour:o,finalMinute:n,finalSeconds:l}){const u=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:u},children:o}),w.jsx("div",{className:"minute",style:{color:d},children:n}),w.jsx("div",{className:"seconds",style:{color:c},children:l})]})}const Kt=o=>String(o).split("").map(l=>Ts(l)).join(""),zC=()=>{const[o]=y.useState(localStorage.getItem("timeType")),[n,l]=y.useState(""),[u,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(""),[k,_]=y.useState(""),[g,b]=y.useState("block"),[S,C]=y.useState("4em"),x=y.useRef(void 0),A=(D=localStorage.getItem("seconds")==="true"||localStorage.getItem("timeType")==="analogue"?1e3-Date.now()%1e3:6e4-Date.now()%6e4)=>{x.current=setTimeout(()=>{let z=new Date;const L=localStorage.getItem("timezone");switch(L&&L!=="auto"&&(z=Em(z,L)),localStorage.getItem("timeType")){case"percentageComplete":l(MC(z.getHours()/24)),_("");break;case"analogue":Nm(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),l(z);break;default:{let G,J="";const H=localStorage.getItem("zero");if(localStorage.getItem("seconds")==="true"){const j=("00"+z.getSeconds()).slice(-2);J=`:${Kt(j)}`,h(Kt(j))}if(localStorage.getItem("timeformat")==="twentyfourhour"){const j=("00"+z.getMinutes()).slice(-2);if(H==="true"){const q=("00"+z.getHours()).slice(-2);G=`${Kt(q)}:${Kt(j)}${J}`,d(Kt(q)),f(Kt(j))}else{const q=z.getHours();G=`${Ts(q)}:${Kt(j)}${J}`,d(Ts(q)),f(Kt(j))}l(G),_("")}else{let j=z.getHours();j>12?j-=12:j===0&&(j=12);const q=("00"+z.getMinutes()).slice(-2);if(H==="true"){const V=("00"+j).slice(-2);G=`${Kt(V)}:${Kt(q)}${J}`,d(Kt(V)),f(Kt(q))}else G=`${Ts(j)}:${Kt(q)}${J}`,d(Ts(j)),f(Kt(q));l(G),_(z.getHours()>11?"PM":"AM")}break}}A()},D)};return y.useEffect(()=>{const D=z=>{if(z==="clock"||z==="timezone"){if(localStorage.getItem("time")==="false"){b("none");return}x.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),ye.on("refresh",D),()=>{ye.off("refresh"),x.current&&clearTimeout(x.current)}},[]),localStorage.getItem("timeType")==="analogue"?w.jsx(CC,{time:n}):localStorage.getItem("timeType")==="verticalClock"?w.jsx(xC,{finalHour:u,finalMinute:c,finalSeconds:p}):w.jsxs("span",{className:"clock clock-container",style:{display:g,fontSize:S},children:[n,w.jsx("span",{className:"ampm",children:k})]})},TC=(o,n)=>{if(!(localStorage.getItem("events")!=="false"))return n;const u=o.getMonth(),d=o.getDate(),f=JSON.parse(localStorage.getItem("customEvents")||"[]").find(p=>p.month-1===u&&p.date===d);return f&&(n=f.name),n},q_=o=>{const n=Date.now()-o.getTime(),l=new Date(n);return Math.abs(l.getUTCFullYear()-1970)},NC=()=>{const o=Qo(),[n,l]=y.useState(""),[u,d]=y.useState("block"),[c,f]=y.useState("1.6em"),p=y.useRef(),h=y.useRef(null),k=(_=6e4-Date.now()%6e4)=>{h.current=setTimeout(()=>{let g=new Date;const b=localStorage.getItem("timezone");b&&b!=="auto"&&(g=Em(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 x=localStorage.getItem("defaultGreetingMessage");x==="false"?C="":C=TC(g,C);let A="";const D=localStorage.getItem("greetingName");typeof D=="string"&&D.replace(/\s/g,"").length>0&&(A=`, ${D.trim()}`);const z=localStorage.getItem("birthdayenabled");if(x==="false"&&z!=="true"&&(A=A.replace(",","")),z==="true"){const L=new Date(localStorage.getItem("birthday"));if(L.getDate()===g.getDate()&&L.getMonth()===g.getMonth())if(localStorage.getItem("birthdayage")==="true"&&q_(L)!==0){const G=o("widgets.greeting.birthday").split(" ");C=`${G[0]} ${Lb(q_(L))} ${G[1]}`}else C=o("widgets.greeting.birthday")}l(`${C}${A}`),k()},_)};return y.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),k(0))}},g=localStorage.getItem("zoomGreeting");return f(`${1.6*Number((g||100)/100)}em`),k(0),ye.on("refresh",_),()=>{ye.off("refresh"),h.current&&clearTimeout(h.current)}},[o]),w.jsx("span",{className:"greeting",ref:p,style:{display:u,fontSize:c},children:n})},jl="wbNewtabHandoff",EC=4e3,$l=()=>typeof browser<"u"&&typeof browser?.sidebarAction?.open=="function",eu=()=>$l()?browser:typeof chrome<"u"&&chrome?.runtime?.id?chrome:null;let Dl=null;async function jC(){try{Dl=await eu()?.tabs?.getCurrent?.()??null}catch{Dl=null}return Dl}function DC({text:o,mode:n,tabId:l,now:u=Date.now()}){return{id:`nt-${u}-${Math.random().toString(36).slice(2,8)}`,tabId:l,text:String(o).slice(0,EC),mode:n==="act"?"act":"ask",createdAt:u}}function OC({text:o,mode:n},l=eu(),u=Dl){if(!l||u?.id==null)return Promise.reject(new Error("Extension API unavailable"));const d=$l();if(!d&&!l.sidePanel?.open)return Promise.reject(new Error("Side panel API unavailable"));const c=DC({text:o,mode:n,tabId:u.id}),f=Promise.resolve(l.storage.local.set({[jl]:c}));let p;try{d?p=l.sidebarAction.open():(Promise.resolve(l.sidePanel.setOptions({tabId:u.id,path:"src/ui/sidepanel.html",enabled:!0})).catch(()=>{}),p=l.sidePanel.open({tabId:u.id}))}catch(h){p=Promise.reject(h)}return Promise.all([f,p]).then(()=>(Promise.resolve(l.runtime.sendMessage({type:"WB_NEWTAB_PANEL_OPENED",tabId:u.id})).catch(()=>{}),!0),async h=>{throw await f.catch(()=>{}),await qC(l,c.id),h})}async function qC(o,n){try{const l=(await o.storage.local.get(jl))?.[jl];(!l||l.id===n)&&await o.storage.local.remove(jl)}catch{}}function RC(o=eu()){return $l()?typeof o?.search?.search=="function":typeof o?.search?.query=="function"}const R_=new Set(["http:","https:"]);function BC(o){const n=String(o||"").trim();if(!n||/\s/.test(n))return null;try{const l=new URL(n);if(/^[a-z][a-z0-9+.-]*:\/\//i.test(n))return R_.has(l.protocol)?l.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 l=new URL(`https://${n}`);return R_.has(l.protocol)?l.href:null}catch{return null}return null}async function LC(o,n=eu(),l=u=>window.location.assign(u)){const u=BC(o);if(u)return l(u),!0;if($l()&&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 IC=[{id:"ask",icon:MA},{id:"act",icon:Ab},{id:"search",icon:Tm}],Ub=()=>IC.filter(o=>o.id!=="search"||RC()),UC=()=>{const o=localStorage.getItem("taskBoxMode");return Ub().some(n=>n.id===o)?o:"ask"};function PC(){const[o,n]=y.useState(UC),[l,u]=y.useState(""),[d,c]=y.useState(""),f=y.useRef(null);y.useEffect(()=>{jC(),localStorage.getItem("taskBoxFocus")!=="false"&&f.current?.focus()},[]);const p=h=>{h.preventDefault();const k=l.trim();if(!k)return;c(""),(o==="search"?LC(k):OC({text:k,mode:o})).then(()=>{o!=="search"&&u("")}).catch(()=>c(Ea("wb.panel_failed")))};return w.jsxs("div",{className:"taskBox",children:[w.jsxs("form",{className:"taskBoxForm",onSubmit:p,children:[w.jsx("input",{ref:f,className:"taskBoxInput",type:"text",value:l,maxLength:4e3,autoComplete:"off",spellCheck:!1,placeholder:Ea(`wb.placeholder_${o}`),"aria-label":Ea(`wb.placeholder_${o}`),onChange:h=>u(h.target.value)}),w.jsx("button",{className:"taskBoxGo",type:"submit","aria-label":Ea("wb.go"),disabled:!l.trim(),children:w.jsx(Mb,{})})]}),w.jsx("div",{className:"taskBoxModes",role:"radiogroup",children:Ub().map(({id:h,icon:k})=>w.jsxs("button",{type:"button",role:"radio","aria-checked":o===h,className:o===h?"taskBoxMode active":"taskBoxMode",onClick:()=>{n(h),f.current?.focus()},children:[w.jsx(k,{}),w.jsx("span",{children:Ea(`wb.${h}`)})]},h))}),o==="act"&&w.jsx("span",{className:"taskBoxHint",children:Ea("wb.act_hint")}),d&&w.jsx("span",{className:"taskBoxHint taskBoxError",role:"alert",children:d})]})}const B_="webbrain_chat_history",Jc="records";async function HC(o=4,n=globalThis.indexedDB){if(!n?.databases)return[];if(!(await n.databases()).some(d=>d.name===B_))return[];const u=await new Promise((d,c)=>{const f=n.open(B_);f.onupgradeneeded=()=>f.transaction.abort(),f.onsuccess=()=>d(f.result),f.onerror=()=>c(f.error),f.onblocked=()=>c(new Error("blocked"))});try{return u.objectStoreNames.contains(Jc)?await new Promise((d,c)=>{const f=[],p=u.transaction([Jc],"readonly").objectStore(Jc),k=(p.indexNames.contains("updatedAt")?p.index("updatedAt"):p).openCursor(null,"prev");k.onsuccess=()=>{const _=k.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()},k.onerror=()=>c(k.error)}):[]}finally{u.close()}}const $c="../src/ui/history.html";function FC(){const[o,n]=y.useState(null);return y.useEffect(()=>{let l=!1;return HC(4).then(u=>!l&&n(u)).catch(()=>!l&&n([])),()=>{l=!0}},[]),o===null?null:w.jsxs("div",{className:"recentChats",children:[w.jsxs("div",{className:"recentChatsHeader",children:[w.jsx("span",{children:Ea("wb.recent_title")}),w.jsx("a",{href:$c,children:Ea("wb.recent_all")})]}),o.length===0?w.jsx("span",{className:"recentChatsEmpty",children:Ea("wb.recent_empty")}):w.jsx("ul",{children:o.map(l=>w.jsx("li",{children:w.jsx("a",{href:l.url?`${$c}?url=${encodeURIComponent(l.url)}`:$c,children:l.title||l.url})},l.id))})]})}const vm=Math.min,Sn=Math.max,Hl=Math.round,ho=o=>({x:o,y:o}),VC={left:"right",right:"left",bottom:"top",top:"bottom"};function GC(o,n,l){return Sn(o,vm(n,l))}function tu(o,n){return typeof o=="function"?o(n):o}function Cn(o){return o.split("-")[0]}function au(o){return o.split("-")[1]}function Pb(o){return o==="x"?"y":"x"}function Hb(o){return o==="y"?"height":"width"}function Ko(o){const n=o[0];return n==="t"||n==="b"?"y":"x"}function Fb(o){return Pb(Ko(o))}function KC(o,n,l){l===void 0&&(l=!1);const u=au(o),d=Fb(o),c=Hb(d);let f=d==="x"?u===(l?"end":"start")?"right":"left":u==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=Fl(f)),[f,Fl(f)]}function YC(o){const n=Fl(o);return[bm(o),n,bm(n)]}function bm(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}const L_=["left","right"],I_=["right","left"],QC=["top","bottom"],WC=["bottom","top"];function ZC(o,n,l){switch(o){case"top":case"bottom":return l?n?I_:L_:n?L_:I_;case"left":case"right":return n?QC:WC;default:return[]}}function XC(o,n,l,u){const d=au(o);let c=ZC(Cn(o),l==="start",u);return d&&(c=c.map(f=>f+"-"+d),n&&(c=c.concat(c.map(bm)))),c}function Fl(o){const n=Cn(o);return VC[n]+o.slice(n.length)}function JC(o){var n,l,u,d;return{top:(n=o.top)!=null?n:0,right:(l=o.right)!=null?l:0,bottom:(u=o.bottom)!=null?u:0,left:(d=o.left)!=null?d:0}}function $C(o){return typeof o!="number"?JC(o):{top:o,right:o,bottom:o,left:o}}function Vl(o){const{x:n,y:l,width:u,height:d}=o;return{width:u,height:d,top:l,left:n,right:n+u,bottom:l+d,x:n,y:l}}function U_(o,n,l){let{reference:u,floating:d}=o;const c=Ko(n),f=Fb(n),p=Hb(f),h=Cn(n),k=c==="y",_=u.x+u.width/2-d.width/2,g=u.y+u.height/2-d.height/2,b=u[p]/2-d[p]/2;let S;switch(h){case"top":S={x:_,y:u.y-d.height};break;case"bottom":S={x:_,y:u.y+u.height};break;case"right":S={x:u.x+u.width,y:g};break;case"left":S={x:u.x-d.width,y:g};break;default:S={x:u.x,y:u.y}}const C=au(n);return C&&(S[f]+=b*(C==="end"?1:-1)*(l&&k?-1:1)),S}async function ex(o,n){var l;n===void 0&&(n={});const{x:u,y:d,platform:c,rects:f,elements:p,strategy:h}=o,{boundary:k="clippingAncestors",rootBoundary:_="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=tu(n,o),C=$C(S),A=p[b?g==="floating"?"reference":"floating":g],D=Vl(await c.getClippingRect({element:(l=await(c.isElement==null?void 0:c.isElement(A)))==null||l?A:A.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:k,rootBoundary:_,strategy:h})),z=g==="floating"?{x:u,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},J=Vl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:z,offsetParent:L,strategy:h}):z);return{top:(D.top-J.top+C.top)/G.y,bottom:(J.bottom-D.bottom+C.bottom)/G.y,left:(D.left-J.left+C.left)/G.x,right:(J.right-D.right+C.right)/G.x}}const tx=50,ax=async(o,n,l)=>{const{placement:u="bottom",strategy:d="absolute",middleware:c=[],platform:f}=l,p=f.detectOverflow?f:{...f,detectOverflow:ex},h=await(f.isRTL==null?void 0:f.isRTL(n));let k=await f.getElementRects({reference:o,floating:n,strategy:d}),{x:_,y:g}=U_(k,u,h),b=u,S=0;const C={};for(let x=0;x<c.length;x++){const A=c[x];if(!A)continue;const{name:D,fn:z}=A,{x:L,y:G,data:J,reset:H}=await z({x:_,y:g,initialPlacement:u,placement:b,strategy:d,middlewareData:C,rects:k,platform:p,elements:{reference:o,floating:n}});_=L??_,g=G??g,C[D]={...C[D],...J},H&&S<tx&&(S++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(k=H.rects===!0?await f.getElementRects({reference:o,floating:n,strategy:d}):H.rects),{x:_,y:g}=U_(k,b,h)),x=-1)}return{x:_,y:g,placement:b,strategy:d,middlewareData:C}},ox=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(n){var l,u;const{placement:d,middlewareData:c,rects:f,initialPlacement:p,platform:h,elements:k}=n,{mainAxis:_=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:x=!0,...A}=tu(o,n);if((l=c.arrow)!=null&&l.alignmentOffset)return{};const D=Cn(d),z=Ko(p),L=Cn(p)===p,G=await(h.isRTL==null?void 0:h.isRTL(k.floating)),J=b||(L||!x?[Fl(p)]:YC(p)),H=C!=="none";!b&&H&&J.push(...XC(p,x,C,G));const j=[p,...J],q=await h.detectOverflow(n,A),V=[];let $=((u=c.flip)==null?void 0:u.overflows)||[];if(_&&V.push(q[D]),g){const Z=KC(d,f,G);V.push(q[Z[0]],q[Z[1]])}if($=[...$,{placement:d,overflows:V}],!V.every(Z=>Z<=0)){var Q,ee;const Z=(((Q=c.flip)==null?void 0:Q.index)||0)+1,Y=j[Z];if(Y&&(!(g==="alignment"?z!==Ko(Y):!1)||$.every(K=>Ko(K.placement)===z?K.overflows[0]>0:!0)))return{data:{index:Z,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===z||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{}}}},ix=new Set(["left","top"]);async function nx(o,n){const{placement:l,platform:u,elements:d}=o,c=await(u.isRTL==null?void 0:u.isRTL(d.floating)),f=Cn(l),p=au(l),h=Ko(l)==="y",k=ix.has(f)?-1:1,_=c&&h?-1:1,g=tu(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*k}:{x:b*k,y:S*_}}const sx=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(n){var l,u;const{x:d,y:c,placement:f,middlewareData:p}=n,h=await nx(n,o);return f===((l=p.offset)==null?void 0:l.placement)&&(u=p.arrow)!=null&&u.alignmentOffset?{}:{x:d+h.x,y:c+h.y,data:{...h,placement:f}}}}},rx=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(n){const{x:l,y:u,placement:d,platform:c}=n,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:z=>{let{x:L,y:G}=z;return{x:L,y:G}}},...k}=tu(o,n),_={x:l,y:u},g=await c.detectOverflow(n,k),b=Ko(d),S=Pb(b);let C=_[S],x=_[b];const A=(z,L)=>GC(L+g[z==="y"?"top":"left"],L,L-g[z==="y"?"bottom":"right"]);f&&(C=A(S,C)),p&&(x=A(b,x));const D=h.fn({...n,[S]:C,[b]:x});return{...D,data:{x:D.x-l,y:D.y-u,enabled:{[S]:f,[b]:p}}}}}};function ou(){return typeof window<"u"}function zn(o){return Vb(o)?(o.nodeName||"").toLowerCase():"#document"}function ra(o){var n;return(o==null||(n=o.ownerDocument)==null?void 0:n.defaultView)||window}function Wo(o){var n;return(n=(Vb(o)?o.ownerDocument:o.document)||window.document)==null?void 0:n.documentElement}function Vb(o){return ou()?o instanceof Node||o instanceof ra(o).Node:!1}function Qa(o){return ou()?o instanceof Element||o instanceof ra(o).Element:!1}function Zo(o){return ou()?o instanceof HTMLElement||o instanceof ra(o).HTMLElement:!1}function P_(o){return!ou()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof ra(o).ShadowRoot}function iu(o){const{overflow:n,overflowX:l,overflowY:u,display:d}=Wa(o);return/auto|scroll|overlay|hidden|clip/.test(n+u+l)&&d!=="inline"&&d!=="contents"}function lx(o){return/^(table|td|th)$/.test(zn(o))}function nu(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}const ux=/transform|translate|scale|rotate|perspective|filter/,dx=/paint|layout|strict|content/,wi=o=>!!o&&o!=="none";let em;function jm(o){const n=Qa(o)?Wa(o):o;return wi(n.transform)||wi(n.translate)||wi(n.scale)||wi(n.rotate)||wi(n.perspective)||!Dm()&&(wi(n.backdropFilter)||wi(n.filter))||ux.test(n.willChange||"")||dx.test(n.contain||"")}function cx(o){let n=xi(o);for(;Zo(n)&&!Ls(n);){if(jm(n))return n;if(nu(n))return null;n=xi(n)}return null}function Dm(){return em==null&&(em=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),em}function Ls(o){return/^(html|body|#document)$/.test(zn(o))}function Wa(o){return ra(o).getComputedStyle(o)}function su(o){return Qa(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function xi(o){if(zn(o)==="html")return o;const n=o.assignedSlot||o.parentNode||P_(o)&&o.host||Wo(o);return P_(n)?n.host:n}function Gb(o){const n=xi(o);return Ls(n)?(o.ownerDocument||o).body:Zo(n)&&iu(n)?n:Gb(n)}function Kb(o,n,l){var u;n===void 0&&(n=[]);const d=Gb(o),c=d===((u=o.ownerDocument)==null?void 0:u.body),f=ra(d);return c?(ym(f),n.concat(f,f.visualViewport||[],iu(d)?d:[],[])):n.concat(d,Kb(d,[]))}function ym(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function Yb(o){const n=Wa(o);let l=parseFloat(n.width)||0,u=parseFloat(n.height)||0;const d=Zo(o),c=d?o.offsetWidth:l,f=d?o.offsetHeight:u,p=Hl(l)!==c||Hl(u)!==f;return p&&(l=c,u=f),{width:l,height:u,$:p}}function Qb(o){return Qa(o)?o:o.contextElement}function Mn(o){const n=Qb(o);if(!Zo(n))return ho(1);const l=n.getBoundingClientRect(),{width:u,height:d,$:c}=Yb(n);let f=(c?Hl(l.width):l.width)/u,p=(c?Hl(l.height):l.height)/d;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const mx=ho(0);function Wb(o){const n=ra(o);return!Dm()||!n.visualViewport?mx:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function px(o,n,l){return n===void 0&&(n=!1),!!l&&n&&l===ra(o)}function Is(o,n,l,u){n===void 0&&(n=!1),l===void 0&&(l=!1);const d=o.getBoundingClientRect(),c=Qb(o);let f=ho(1);n&&(u?Qa(u)&&(f=Mn(u)):f=Mn(o));const p=px(c,l,u)?Wb(c):ho(0);let h=(d.left+p.x)/f.x,k=(d.top+p.y)/f.y,_=d.width/f.x,g=d.height/f.y;if(c&&u){const b=ra(c),S=Qa(u)?ra(u):u;let C=b,x=ym(C);for(;x&&S!==C;){const A=Mn(x),D=x.getBoundingClientRect(),z=Wa(x),L=D.left+(x.clientLeft+parseFloat(z.paddingLeft))*A.x,G=D.top+(x.clientTop+parseFloat(z.paddingTop))*A.y;h*=A.x,k*=A.y,_*=A.x,g*=A.y,h+=L,k+=G,C=ra(x),x=ym(C)}}return Vl({width:_,height:g,x:h,y:k})}function ru(o,n){const l=su(o).scrollLeft;return n?n.left+l:Is(Wo(o)).left+l}function Zb(o,n){const l=o.getBoundingClientRect(),u=l.left+n.scrollLeft-ru(o,l),d=l.top+n.scrollTop;return{x:u,y:d}}function fx(o){let{elements:n,rect:l,offsetParent:u,strategy:d}=o;const c=d==="fixed",f=Wo(u),p=n?nu(n.floating):!1;if(u===f||p&&c)return l;let h={scrollLeft:0,scrollTop:0},k=ho(1);const _=ho(0),g=Zo(u);if((g||!c)&&((zn(u)!=="body"||iu(f))&&(h=su(u)),g)){const S=Is(u);k=Mn(u),_.x=S.x+u.clientLeft,_.y=S.y+u.clientTop}const b=f&&!g&&!c?Zb(f,h):ho(0);return{width:l.width*k.x,height:l.height*k.y,x:l.x*k.x-h.scrollLeft*k.x+_.x+b.x,y:l.y*k.y-h.scrollTop*k.y+_.y+b.y}}function gx(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function hx(o){const n=su(o),l=o.ownerDocument.body,u=Sn(o.scrollWidth,o.clientWidth,l.scrollWidth,l.clientWidth),d=Sn(o.scrollHeight,o.clientHeight,l.scrollHeight,l.clientHeight);let c=-n.scrollLeft+ru(o);const f=-n.scrollTop;return Wa(l).direction==="rtl"&&(c+=Sn(o.clientWidth,l.clientWidth)-u),{width:u,height:d,x:c,y:f}}const _x=25;function vx(o,n,l){l===void 0&&(l="viewport");const u=l==="layoutViewport",d=ra(o),c=Wo(o),f=d.visualViewport;let p=c.clientWidth,h=c.clientHeight,k=0,_=0;if(f){const b=!Dm()||n==="fixed";u?b||(k=-f.offsetLeft,_=-f.offsetTop):(p=f.width,h=f.height,b&&(k=f.offsetLeft,_=f.offsetTop))}if(ru(c)<=0){const b=c.ownerDocument,S=b.body,C=getComputedStyle(S),x=b.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,A=Math.abs(c.clientWidth-S.clientWidth-x),D=getComputedStyle(c).scrollbarGutter==="stable both-edges"?A/2:A;D<=_x&&(p-=D)}return{width:p,height:h,x:k,y:_}}function bx(o,n){const l=Is(o,!0,n==="fixed"),u=l.top+o.clientTop,d=l.left+o.clientLeft,c=Mn(o),f=o.clientWidth*c.x,p=o.clientHeight*c.y,h=d*c.x,k=u*c.y;return{width:f,height:p,x:h,y:k}}function H_(o,n,l){let u;if(n==="viewport"||n==="layoutViewport")u=vx(o,l,n);else if(n==="document")u=hx(Wo(o));else if(Qa(n))u=bx(n,l);else{const d=Wb(o);u={x:n.x-d.x,y:n.y-d.y,width:n.width,height:n.height}}return Vl(u)}function yx(o,n){const l=n.get(o);if(l)return l;let u=Kb(o,[]).filter(p=>Qa(p)&&zn(p)!=="body"),d=null;const c=Wa(o).position==="fixed";let f=c?xi(o):o;for(;Qa(f)&&!Ls(f);){const p=Wa(f),h=jm(f),k=d?d.position:c?"fixed":"";!h&&(k==="fixed"||k==="absolute"&&p.position==="static")?u=u.filter(g=>g!==f):d=p,f=xi(f)}return n.set(o,u),u}function kx(o){let{element:n,boundary:l,rootBoundary:u,strategy:d}=o;const f=[...l==="clippingAncestors"?nu(n)?[]:yx(n,this._c):[].concat(l),u],p=H_(n,f[0],d);let h=p.top,k=p.right,_=p.bottom,g=p.left;for(let b=1;b<f.length;b++){const S=H_(n,f[b],d);h=Sn(S.top,h),k=vm(S.right,k),_=vm(S.bottom,_),g=Sn(S.left,g)}return{width:k-g,height:_-h,x:g,y:h}}function wx(o){const{width:n,height:l}=Yb(o);return{width:n,height:l}}function Sx(o,n,l){const u=Zo(n),d=Wo(n),c=l==="fixed",f=Is(o,!0,c,n);let p={scrollLeft:0,scrollTop:0};const h=ho(0);if((u||!c)&&((zn(n)!=="body"||iu(d))&&(p=su(n)),u)){const b=Is(n,!0,c,n);h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}!u&&d&&(h.x=ru(d));const k=d&&!u&&!c?Zb(d,p):ho(0),_=f.left+p.scrollLeft-h.x-k.x,g=f.top+p.scrollTop-h.y-k.y;return{x:_,y:g,width:f.width,height:f.height}}function tm(o){return Wa(o).position==="static"}function F_(o,n){if(!Zo(o)||Wa(o).position==="fixed")return null;if(n)return n(o);let l=o.offsetParent;return Wo(o)===l&&(l=l.ownerDocument.body),l}function Xb(o,n){const l=ra(o);if(nu(o))return l;if(!Zo(o)){let d=xi(o);for(;d&&!Ls(d);){if(Qa(d)&&!tm(d))return d;d=xi(d)}return l}let u=F_(o,n);for(;u&&lx(u)&&tm(u);)u=F_(u,n);return u&&Ls(u)&&tm(u)&&!jm(u)?l:u||cx(o)||l}const Mx=async function(o){const n=this.getOffsetParent||Xb,l=this.getDimensions,u=await l(o.floating);return{reference:Sx(o.reference,await n(o.floating),o.strategy),floating:{x:0,y:0,width:u.width,height:u.height}}};function Ax(o){return Wa(o).direction==="rtl"}const Cx={convertOffsetParentRelativeRectToViewportRelativeRect:fx,getDocumentElement:Wo,getClippingRect:kx,getOffsetParent:Xb,getElementRects:Mx,getClientRects:gx,getDimensions:wx,getScale:Mn,isElement:Qa,isRTL:Ax},xx=sx,zx=rx,Tx=ox,Nx=(o,n,l)=>{const u=new Map,d=l??{},c={...Cx,...d.platform,_c:u};return ax(o,n,{...d,platform:c})};var wn=xm(),Ex=typeof document<"u",jx=function(){},Ol=Ex?y.useLayoutEffect:jx;function Gl(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 l,u,d;if(o&&n&&typeof o=="object"){if(Array.isArray(o)){if(l=o.length,l!==n.length)return!1;for(u=l;u--!==0;)if(!Gl(o[u],n[u]))return!1;return!0}if(d=Object.keys(o),l=d.length,l!==Object.keys(n).length)return!1;for(u=l;u--!==0;)if(!{}.hasOwnProperty.call(n,d[u]))return!1;for(u=l;u--!==0;){const c=d[u];if(!(c==="_owner"&&o.$$typeof)&&!Gl(o[c],n[c]))return!1}return!0}return o!==o&&n!==n}function Jb(o){return typeof window>"u"?1:(o.ownerDocument.defaultView||window).devicePixelRatio||1}function V_(o,n){const l=Jb(o);return Math.round(n*l)/l}function am(o){const n=y.useRef(o);return Ol(()=>{n.current=o}),n}function lu(o){o===void 0&&(o={});const{placement:n="bottom",strategy:l="absolute",middleware:u=[],platform:d,elements:{reference:c,floating:f}={},transform:p=!0,whileElementsMounted:h,open:k}=o,[_,g]=y.useState({x:0,y:0,strategy:l,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=y.useState(u);Gl(b,u)||S(u);const[C,x]=y.useState(null),[A,D]=y.useState(null),z=y.useCallback(K=>{K!==H.current&&(H.current=K,x(K))},[]),L=y.useCallback(K=>{K!==j.current&&(j.current=K,D(K))},[]),G=c||C,J=f||A,H=y.useRef(null),j=y.useRef(null),q=y.useRef(_),V=h!=null,$=am(h),Q=am(d),ee=am(k),ae=y.useCallback(()=>{if(!H.current||!j.current)return;const K={placement:n,strategy:l,middleware:b};Q.current&&(K.platform=Q.current),Nx(H.current,j.current,K).then(ie=>{const ne={...ie,isPositioned:ee.current!==!1};Z.current&&!Gl(q.current,ne)&&(q.current=ne,wn.flushSync(()=>{g(ne)}))})},[b,n,l,Q,ee]);Ol(()=>{k===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,g(K=>({...K,isPositioned:!1})))},[k]);const Z=y.useRef(!1);Ol(()=>(Z.current=!0,()=>{Z.current=!1}),[]),Ol(()=>{if(G&&(H.current=G),J&&(j.current=J),G&&J){if($.current)return $.current(G,J,ae);ae()}},[G,J,ae,$,V]);const Y=y.useMemo(()=>({reference:H,floating:j,setReference:z,setFloating:L}),[z,L]),I=y.useMemo(()=>({reference:G,floating:J}),[G,J]),T=y.useMemo(()=>{const K={position:l,left:0,top:0};if(!I.floating)return K;const ie=V_(I.floating,_.x),ne=V_(I.floating,_.y);return p?{...K,transform:"translate("+ie+"px, "+ne+"px)",...Jb(I.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:ie,top:ne}},[l,p,I.floating,_.x,_.y]);return y.useMemo(()=>({..._,update:ae,refs:Y,elements:I,floatingStyles:T}),[_,ae,Y,I,T])}const Dx=(o,n)=>{const l=xx(o);return{name:l.name,fn:l.fn,options:[o,n]}},uu=(o,n)=>{const l=zx(o);return{name:l.name,fn:l.fn,options:[o,n]}},Ox=(o,n)=>{const l=Tx(o);return{name:l.name,fn:l.fn,options:[o,n]}};function qx({children:o,title:n,style:l,placement:u,subtitle:d}){const[c,f]=y.useState(!1),[p,h]=y.useState(!1),[k,_]=y.useState(null),g=y.useRef(`tooltip-${Math.random()}`),b=y.useRef(null),{x:S,y:C,refs:x,strategy:A,placement:D}=lu({placement:u||"bottom",middleware:[Ox(),Dx(15),uu()],elements:{reference:k}}),z=()=>{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)},J=()=>{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:l,onMouseEnter:z,onMouseLeave:L,onFocus:G,onBlur:J,ref:_,"aria-describedby":g.current,children:o}),(c||p)&&w.jsxs("span",{ref:x.setFloating,style:{position:A,top:C??"",left:S??"",display:"flex",flexFlow:"column"},className:"tooltipTitle","data-status":H(),"data-placement":D,children:[n,w.jsx("span",{style:{fontSize:"8px"},children:d})]})]})}const ht=y.memo(qx),Us=y.forwardRef(({icon:o,label:n,type:l,iconPlacement:u,onClick:d,active:c,disabled:f,tooltipTitle:p,tooltipKey:h,href:k,style:_},g)=>{let b;switch(l){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"}u==="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:k,style:_,target:"_blank",rel:"noopener noreferrer",children:[o,n]}),x=w.jsx(ht,{title:p,children:w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:k,target:"_blank",rel:"noopener noreferrer",style:_,children:[o,n]})},h);switch(l){case"linkIconButton":return x;case"linkButton":return C;case"icon":return w.jsx(ht,{title:p,children:S},h);default:return S}});Us.displayName="Button";function Rx({urlError:o,iconError:n,addLink:l,closeModal:u,edit:d,editData:c,editLink:f}){const[p,h]=y.useState(d?c.name:""),[k,_]=y.useState(d?c.url:""),[g,b]=y.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:()=>u(),children:w.jsx(Bs,{})})})]}),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:k,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(Us,{type:"settings",onClick:()=>f(c,p,k,g),icon:w.jsx(T_,{}),label:pe.getMessage("modals.main.settings.sections.quicklinks.edit")}):w.jsx(Us,{type:"settings",onClick:()=>l(p,k,g),icon:w.jsx(T_,{}),label:pe.getMessage("widgets.quicklinks.add")})]})]})}const cN=y.memo(Rx),Bx=[{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}],Lx=[{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 $b(o){localStorage.clear(),Bx.forEach(u=>localStorage.setItem(u.name,u.value));const n=Lx.map(({value:u})=>u),l=navigator.languages&&navigator.languages.find(u=>u.replace("-","_")&&n.includes(u))||navigator.language.replace("-","_");n.includes(l)?localStorage.setItem("language",l):localStorage.setItem("language","en_GB"),localStorage.setItem("tabName",pe.getMessage("tabname")),o&&localStorage.setItem("showWelcome",!1),localStorage.setItem("firstRun",!0)}function Ix(o,n="file",l="text/json"){typeof o=="object"&&(o=JSON.stringify(o,void 0,4));const u=new Blob([o],{type:l}),d=document.createEvent("MouseEvents"),c=document.createElement("a");c.href=window.URL.createObjectURL(u),c.download=n,c.dataset.downloadurl=[l,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 G_(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 l=localStorage.getItem("customcss");l&&document.head.insertAdjacentHTML("beforeend",'<style id="customcss">'+l+"</style>");const u=localStorage.getItem("font");u&&document.head.insertAdjacentHTML("beforeend",`<style id='customfont'>* {font-family: '${u}', 'Lexend Deca', 'Inter', sans-serif !important;@@ -855,7 +855,7 @@ Note: if you don't like "{category}" images, you can deselect the category in thfont-style: ${localStorage.getItem("fontstyle")};}</style>- `),localStorage.getItem("applinks")===null&&localStorage.setItem("applinks",JSON.stringify([])),localStorage.getItem("appsEnabled")===null&&localStorage.setItem("showWelcome",!1)}function Ux(){const o=Object.keys(localStorage);if(o.length===0)return this.setDefaultSettings();const n={};o.forEach(l=>{n[l]=localStorage.getItem(l)}),localStorage.clear(),$b(),Object.keys(n).forEach(l=>{localStorage.setItem(l,n[l])})}function Px({modalClose:o}){const n=()=>{pe.stats.postEvent("setting","Reset"),$b("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(Bs,{})})})]}),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(Us,{type:"secondary",onClick:o,icon:w.jsx(Bs,{}),label:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),w.jsx(Us,{type:"settings",onClick:()=>n(),icon:w.jsx(AA,{}),label:pe.getMessage("modals.main.settings.buttons.reset")})]})]})}const mN=y.memo(Px),K_={[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:[]}},Hx=({currentTab:o=Yo.SETTINGS})=>{const n=K_[o]||K_[Yo.SETTINGS];return n.itemCount===0?null:w.jsx("div",{className:"sidebarSkeleton",children:Array.from({length:n.itemCount}).map((l,u)=>{const d=n.dividerPositions.includes(u),c=n.textWidths[u]||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"})]},u)})})},Fx=({currentTab:o})=>w.jsxs("div",{style:{display:"flex",width:"100%",minHeight:"100%"},children:[w.jsx("div",{className:"modalSidebar",children:w.jsx(Hx,{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")})]})})})})]}),Vx=""+new URL("webbrain-rEIJfo36.png",import.meta.url).href;function Gx({currentTab:o,currentSection:n,currentSectionName:l,currentSubSection:u,onSubSectionChange:d,onClose:c,onBack:f,onForward:p,canGoBack:h,canGoForward:k}){const _=Qo(),g=GA.find(({tab:x})=>x===o),b=g?_(g.messageKey):"",S=(x,A)=>{if(!x||!A)return x;const D=`modals.main.settings.sections.${A}.${x}.title`,z=_(D);return!z||z===D?x.charAt(0).toUpperCase()+x.slice(1):z},C=[];return b&&(C.push({label:b,onClick:null}),n&&(C.push({label:n,onClick:u?()=>d(null):null}),u&&C.push({label:S(u,l),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(fA,{})})},"backTooltip"),w.jsx(ht,{title:"Forward",children:w.jsx("button",{className:"navButton",onClick:p,disabled:!k,"aria-label":"Navigate forward",children:w.jsx(Mb,{})})},"forwardTooltip")]}),w.jsx("img",{src:Vx,alt:"WebBrain",className:"topBarLogo",draggable:!1}),C.length>0&&w.jsx("nav",{className:"breadcrumbs","aria-label":"Breadcrumb navigation",children:C.map((x,A)=>{const D=A===C.length-1,z=x.onClick!==null;return w.jsxs("span",{className:"breadcrumb-segment",children:[z?w.jsx("span",{className:"breadcrumb-item breadcrumb-clickable",onClick:x.onClick,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),x.onClick())},role:"button",tabIndex:0,"aria-label":`Navigate to ${x.label}`,children:x.label}):w.jsx("span",{className:`breadcrumb-item ${D?"breadcrumb-current":""}`,"aria-current":D?"page":void 0,children:x.label}),!D&&w.jsx(pA,{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(Bs,{})})},"closeTooltip")})]})}const Kx=y.lazy(()=>Nm(()=>import("./Settings-7szeChri.js"),__vite__mapDeps([1,2]),import.meta.url));function Yx({modalClose:o,deepLinkData:n}){const l=Yo.SETTINGS,[u,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(n?.subSection||null),[k,_]=y.useState(null);y.useEffect(()=>{n?.section&&(_({type:"settings-section",data:n.section,timestamp:Date.now()}),n.subSection&&h(n.subSection))},[n]),y.useEffect(()=>()=>{window.location.hash&&window.history.replaceState(null,null,window.location.pathname)},[]),y.useEffect(()=>{const S=()=>{const C=window.location.hash?Il(window.location.hash):null;C?.section&&(_({type:"settings-section",data:C.section,timestamp:Date.now()}),h(C.subSection||null))};return window.addEventListener("popstate",S),()=>window.removeEventListener("popstate",S)},[]);const g=(S,C)=>{d(S),f(C),h(null),C&&Ul(`#${l}/${C}`,!1)},b=(S,C)=>{h(S),C&&Ul(S?`#${l}/${C}/${S}`:`#${l}/${C}`)};return w.jsxs("div",{className:"frame",children:[w.jsx(Gx,{currentTab:l,currentSection:u,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(y.Suspense,{fallback:w.jsx(Fx,{currentTab:l}),children:w.jsx(Kx,{currentTab:l,changeTab:()=>{},deepLinkData:n,onSectionChange:g,onSubSectionChange:b,currentSubSection:p,navigationTrigger:k},l)})})]})}const Qx=y.memo(Yx),Y_=["#3b6ea8","#2f8f83","#a85a3b","#7a4fa3","#a38a2f","#b0425b","#4a7f3a","#456b8f"];function ey(o,n=""){let l;try{l=new URL(o).hostname.replace(/^www\./,"")}catch{l=String(o||"")}const u=(n||l||"?").trim(),d=(Array.from(u)[0]||"?").toUpperCase().replace(/[&<>"']/g,"?");let c=0;for(const h of l)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="${Y_[c%Y_.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 Q_=()=>{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),[]}},ty=y.memo(()=>{const[o,n]=y.useState(Q_()),[l,u]=y.useState(0),d=y.useRef(null),c=y.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`},[]);y.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(Q_()),u(Date.now())}};return ye.on("refresh",_),c(d.current),()=>{ye.off("refresh",_)}},[c]),y.useEffect(()=>{c(d.current)},[o,l,c]);let f,p=null;localStorage.getItem("quicklinksnewtab")==="true"&&(f="_blank",p="noopener noreferrer");const h=localStorage.getItem("quicklinkstooltip"),k=(_,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||ey(_.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)=>k(_,g))})});ty.displayName="QuickLinks";const Wx=()=>{const[o,n]=y.useState(""),[l,u]=y.useState(null),[d,c]=y.useState("block"),[f,p]=y.useState("1em"),h=y.useRef(),k=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),u(`${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=Em(g,b)),localStorage.getItem("weeknumber")==="true"?k(g):l!==null&&u(null),localStorage.getItem("dateType")==="short"){const S=g.getDate(),C=g.getMonth()+1,x=g.getFullYear(),A=localStorage.getItem("datezero")==="true";let D=A?("00"+S).slice(-2):S,z=A?("00"+C).slice(-2):C,L=x;switch(localStorage.getItem("dateFormat")){case"MDY":D=C,z=S;break;case"YMD":D=x,L=S;break}let G;switch(localStorage.getItem("shortFormat")){case"dots":G=`${D}.${z}.${L}`;break;case"dash":G=`${D}-${z}-${L}`;break;case"gaps":G=`${D} - ${z} - ${L}`;break;case"slashes":G=`${D}/${z}/${L}`;break}n(G)}else{const S=pe.languagecode.split("_")[0],C=localStorage.getItem("datenth")==="true"?Lb(g.getDate()):g.getDate(),x=localStorage.getItem("dayofweek")==="true"?g.toLocaleDateString(S,{weekday:"long"}):"",A=g.toLocaleDateString(S,{month:"long"}),D=g.getFullYear();let z;switch(localStorage.getItem("longFormat")){case"MDY":z=`${A} ${C}, ${D}${x?`, ${x}`:""}`;break;case"YMD":z=`${D} ${A} ${C}${x?`, ${x}`:""}`;break;default:z=`${C} ${A} ${D}${x?`, ${x}`:""}`;break}n(z)}};return y.useEffect(()=>{const g=b=>{if(b==="date"||b==="timezone"){if(localStorage.getItem("date")==="false"){c("none");return}c("block"),p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_()}};return p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_(),ye.on("refresh",g),()=>{ye.off("refresh")}},[]),w.jsxs("span",{className:"date",ref:h,style:{display:d,fontSize:f},children:[o,w.jsx("br",{}),l]})},Zx=()=>{const[o,n]=y.useState(""),[l,u]=y.useState("none"),[d,c]=y.useState("1em"),f=y.useRef();return y.useEffect(()=>{const p=k=>{if(k==="message"){const _=localStorage.getItem("message"),g=localStorage.getItem("zoomMessage");u(_==="false"?"none":"block"),c(`${1*Number((g||100)/100)}em`)}},h=JSON.parse(localStorage.getItem("messages"))||[];return h.length>0&&(n(h[Math.floor(Math.random()*h.length)]),u("block")),ye.on("refresh",p),()=>{ye.off("refresh")}},[]),w.jsx("h2",{className:"message",ref:f,style:{display:l,fontSize:d},children:o.split("\\n").map(p=>w.jsxs("span",{children:[p,w.jsx("br",{})]},p))})},Xx=y.memo(o=>{const[n,l]=y.useState(localStorage.getItem(o.name)||o.default),u=y.useRef(null),d=y.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),l(h),o.element&&!document.querySelector(o.element))return document.querySelector(".reminder-info").style.display="flex",localStorage.setItem("showReminder",!0);ye.emit("refresh",o.category)},[o]),c=y.useCallback(()=>{u.current&&cancelAnimationFrame(u.current);const p=Number(n),h=Number(o.default||0),k=300,_=performance.now(),g=b=>{const S=b-_,C=Math.min(S/k,1),x=1-Math.pow(1-C,3),A=p+(h-p)*x,D=Math.round(A/(Number(o.step)||1))*(Number(o.step)||1);localStorage.setItem(o.name,D),l(D),C<1?u.current=requestAnimationFrame(g):(localStorage.setItem(o.name,h),l(h),ye.emit("refresh",o.category))};u.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(Rs,{}),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))})]})]})});Xx.displayName="SliderComponent";const Jx=({children:o})=>w.jsx("div",{id:"widgets",children:o}),W_=()=>{try{const o=JSON.parse(localStorage.getItem("order"));return Array.isArray(o)?o:[]}catch{return[]}},Si=o=>localStorage.getItem(o)==="true",$x=()=>{const[o,n]=y.useState(W_),l=y.useMemo(()=>({time:Si("time")&&w.jsx(zC,{}),greeting:Si("greeting")&&w.jsx(NC,{}),date:Si("date")&&w.jsx(Wx,{}),quicklinks:Si("quicklinksenabled")?w.jsx(ty,{}):null,message:Si("message")&&w.jsx(Zx,{})}),[o]);return y.useEffect(()=>{const u=d=>{d==="widgets"&&n(W_())};return ye.on("refresh",u),()=>{ye.off("refresh")}},[]),w.jsxs(Jx,{children:[o.map((u,d)=>w.jsx(y.Fragment,{children:l[u]},d)),Si("taskBox")&&w.jsx(PC,{}),Si("recentChats")&&w.jsx(FC,{})]})};var Ml={exports:{}},Vo={},om={exports:{}},im,Z_;function e2(){if(Z_)return im;Z_=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return im=o,im}var nm,X_;function t2(){if(X_)return nm;X_=1;var o=e2();function n(){}function l(){}return l.resetWarningCache=n,nm=function(){function u(f,p,h,k,_,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}}u.isRequired=u;function d(){return u}var c={array:u,bigint:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:d,element:u,elementType:u,instanceOf:d,node:u,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:l,resetWarningCache:n};return c.PropTypes=c,c},nm}var J_;function ay(){return J_||(J_=1,om.exports=t2()()),om.exports}var Al={exports:{}},ba={},Cl={exports:{}},$_;function oy(){return $_||($_=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=_;var l="none",u="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!==u&&c(g,S):C===l}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 k(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(k)}o.exports=n.default})(Cl,Cl.exports)),Cl.exports}var ev;function a2(){if(ev)return ba;ev=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.resetState=f,ba.log=p,ba.handleBlur=h,ba.handleFocus=k,ba.markForFocusLater=_,ba.returnFocus=g,ba.popWithoutFocus=b,ba.setupScopedFocus=S,ba.teardownScopedFocus=C;var o=oy(),n=l(o);function l(x){return x&&x.__esModule?x:{default:x}}var u=[],d=null,c=!1;function f(){u=[]}function p(){}function h(){c=!0}function k(){if(c){if(c=!1,!d)return;setTimeout(function(){if(!d.contains(document.activeElement)){var x=(0,n.default)(d)[0]||d;x.focus()}},0)}}function _(){u.push(document.activeElement)}function g(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,A=null;try{u.length!==0&&(A=u.pop(),A.focus({preventScroll:x}));return}catch{console.warn(["You tried to return focus to",A,"but it is not in the DOM anymore"].join(" "))}}function b(){u.length>0&&u.pop()}function S(x){d=x,window.addEventListener?(window.addEventListener("blur",h,!1),document.addEventListener("focus",k,!0)):(window.attachEvent("onBlur",h),document.attachEvent("onFocus",k))}function C(){d=null,window.addEventListener?(window.removeEventListener("blur",h),document.removeEventListener("focus",k)):(window.detachEvent("onBlur",h),document.detachEvent("onFocus",k))}return ba}var xl={exports:{}},tv;function o2(){return tv||(tv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var l=oy(),u=d(l);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 k=(0,u.default)(p);if(!k.length){h.preventDefault();return}var _=void 0,g=h.shiftKey,b=k[0],S=k[k.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 x=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),A=x!=null&&x[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(A){var D=k.indexOf(C);if(D>-1&&(D+=g?-1:1),_=k[D],typeof _>"u"){h.preventDefault(),_=g?S:b,_.focus();return}h.preventDefault(),_.focus()}}o.exports=n.default})(xl,xl.exports)),xl.exports}var Na={},sm,av;function i2(){if(av)return sm;av=1;var o=function(){};return sm=o,sm}var Ya={},rm={exports:{}};var ov;function n2(){return ov||(ov=1,(function(o){(function(){var n=!!(typeof window<"u"&&window.document&&window.document.createElement),l={canUseDOM:n,canUseWorkers:typeof Worker<"u",canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen};o.exports?o.exports=l:window.ExecutionEnvironment=l})()})(rm)),rm.exports}var iv;function Om(){if(iv)return Ya;iv=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.canUseDOM=Ya.SafeNodeList=Ya.SafeHTMLCollection=void 0;var o=n2(),n=l(o);function l(c){return c&&c.__esModule?c:{default:c}}var u=n.default,d=u.canUseDOM?window.HTMLElement:{};return Ya.SafeHTMLCollection=u.canUseDOM?window.HTMLCollection:{},Ya.SafeNodeList=u.canUseDOM?window.NodeList:{},Ya.canUseDOM=u.canUseDOM,Ya.default=d,Ya}var nv;function iy(){if(nv)return Na;nv=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.resetState=c,Na.log=f,Na.assertNodeList=p,Na.setElement=h,Na.validateElement=k,Na.hide=_,Na.show=g,Na.documentNotReadyOrSSRTesting=b;var o=i2(),n=u(o),l=Om();function u(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"&&l.canUseDOM){var x=document.querySelectorAll(C);p(x,C),C=x}return d=C||d,d}function k(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,x=!1,A=void 0;try{for(var D=k(S)[Symbol.iterator](),z;!(C=(z=D.next()).done);C=!0){var L=z.value;L.setAttribute("aria-hidden","true")}}catch(G){x=!0,A=G}finally{try{!C&&D.return&&D.return()}finally{if(x)throw A}}}function g(S){var C=!0,x=!1,A=void 0;try{for(var D=k(S)[Symbol.iterator](),z;!(C=(z=D.next()).done);C=!0){var L=z.value;L.removeAttribute("aria-hidden")}}catch(G){x=!0,A=G}finally{try{!C&&D.return&&D.return()}finally{if(x)throw A}}}function b(){d=null}return Na}var Mi={},sv;function s2(){if(sv)return Mi;sv=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.resetState=u,Mi.log=d;var o={},n={};function l(k,_){k.classList.remove(_)}function u(){var k=document.getElementsByTagName("html")[0];for(var _ in o)l(k,o[_]);var g=document.body;for(var b in n)l(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 Mi.add=function(_,g){return p(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Mi.remove=function(_,g){return h(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Mi}var kn={},rv;function ny(){if(rv)return kn;rv=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.log=u,kn.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=[]},l=new n;function u(){console.log("portalOpenInstances ----------"),console.log(l.openInstances.length),l.openInstances.forEach(function(c){return console.log(c)}),console.log("end portalOpenInstances ----------")}function d(){l=new n}return kn.default=l,kn}var zs={},lv;function r2(){if(lv)return zs;lv=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.resetState=f,zs.log=p;var o=ny(),n=l(o);function l(_){return _&&_.__esModule?_:{default:_}}var u=void 0,d=void 0,c=[];function f(){for(var _=[u,d],g=0;g<_.length;g++){var b=_[g];b&&b.parentNode&&b.parentNode.removeChild(b)}u=d=null,c=[]}function p(){console.log("bodyTrap ----------"),console.log(c.length);for(var _=[u,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 k(_,g){!u&&!d&&(u=document.createElement("div"),u.setAttribute("data-react-modal-body-trap",""),u.style.position="absolute",u.style.opacity="0",u.setAttribute("tabindex","0"),u.addEventListener("focus",h),d=u.cloneNode(),d.addEventListener("focus",h)),c=g,c.length>0?(document.body.firstChild!==u&&document.body.insertBefore(u,document.body.firstChild),document.body.lastChild!==d&&document.body.appendChild(d)):(u.parentElement&&u.parentElement.removeChild(u),d.parentElement&&d.parentElement.removeChild(d))}return n.default.subscribe(k),zs}var uv;function l2(){return uv||(uv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var l=Object.assign||function(Z){for(var Y=1;Y<arguments.length;Y++){var I=arguments[Y];for(var T in I)Object.prototype.hasOwnProperty.call(I,T)&&(Z[T]=I[T])}return Z},u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},d=(function(){function Z(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&&Z(Y.prototype,I),T&&Z(Y,T),Y}})(),c=Gs(),f=ay(),p=J(f),h=a2(),k=G(h),_=o2(),g=J(_),b=iy(),S=G(b),C=s2(),x=G(C),A=Om(),D=J(A),z=ny(),L=J(z);r2();function G(Z){if(Z&&Z.__esModule)return Z;var Y={};if(Z!=null)for(var I in Z)Object.prototype.hasOwnProperty.call(Z,I)&&(Y[I]=Z[I]);return Y.default=Z,Y}function J(Z){return Z&&Z.__esModule?Z:{default:Z}}function H(Z,Y){if(!(Z instanceof Y))throw new TypeError("Cannot call a class as a function")}function j(Z,Y){if(!Z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:Z}function q(Z,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);Z.prototype=Object.create(Y&&Y.prototype,{constructor:{value:Z,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(Z,Y):Z.__proto__=Y)}var V={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},$=function(Y){return Y.code==="Tab"||Y.keyCode===9},Q=function(Y){return Y.code==="Escape"||Y.keyCode===27},ee=0,ae=(function(Z){q(Y,Z);function Y(I){H(this,Y);var T=j(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,be=K.htmlOpenClassName,Ce=K.bodyOpenClassName,Ve=K.parentSelector,E=Ve&&Ve().ownerDocument||document;Ce&&x.remove(E.body,Ce),be&&x.remove(E.getElementsByTagName("html")[0],be),ne&&ee>0&&(ee-=1,ee===0&&S.show(ie)),T.props.shouldFocusAfterRender&&(T.props.shouldReturnFocusAfterClose?(k.returnFocus(T.props.preventScroll),k.teardownScopedFocus()):k.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&&(k.setupScopedFocus(T.node),k.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&&Q(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":u(ie))==="object"?ie:{base:V[K],afterOpen:V[K]+"--after-open",beforeClose:V[K]+"--before-close"},be=ne.base;return T.state.afterOpen&&(be=be+" "+ne.afterOpen),T.state.beforeClose&&(be=be+" "+ne.beforeClose),typeof ie=="string"&&ie?be+" "+ie:be},T.attributesFromObject=function(K,ie){return Object.keys(ie).reduce(function(ne,be){return ne[K+"-"+be]=ie[be],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,be=T.bodyOpenClassName,Ce=T.parentSelector,Ve=Ce&&Ce().ownerDocument||document;be&&x.add(Ve.body,be),ne&&x.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,be=T.defaultStyles,Ce=T.children,Ve=ie?{}:be.content,E=ne?{}:be.overlay;if(this.shouldBeClosed())return null;var te={ref:this.setOverlayRef,className:this.buildClassName("overlay",ne),style:l({},E,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},se=l({id:K,ref:this.setContentRef,style:l({},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",l({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(D.default),p.default.instanceOf(A.SafeHTMLCollection),p.default.instanceOf(A.SafeNodeList),p.default.arrayOf(p.default.instanceOf(D.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})(Al,Al.exports)),Al.exports}function sy(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function ry(o){function n(l){var u=this.constructor.getDerivedStateFromProps(o,l);return u??null}this.setState(n.bind(this))}function ly(o,n){try{var l=this.props,u=this.state;this.props=o,this.state=n,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(l,u)}finally{this.props=l,this.state=u}}sy.__suppressDeprecationWarning=!0;ry.__suppressDeprecationWarning=!0;ly.__suppressDeprecationWarning=!0;function u2(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 l=null,u=null,d=null;if(typeof n.componentWillMount=="function"?l="componentWillMount":typeof n.UNSAFE_componentWillMount=="function"&&(l="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps=="function"?u="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps=="function"&&(u="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate=="function"?d="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate=="function"&&(d="UNSAFE_componentWillUpdate"),l!==null||u!==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 Ux(){const o=Object.keys(localStorage);if(o.length===0)return this.setDefaultSettings();const n={};o.forEach(l=>{n[l]=localStorage.getItem(l)}),localStorage.clear(),$b(),Object.keys(n).forEach(l=>{localStorage.setItem(l,n[l])})}function Px({modalClose:o}){const n=()=>{pe.stats.postEvent("setting","Reset"),$b("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(Bs,{})})})]}),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(Us,{type:"secondary",onClick:o,icon:w.jsx(Bs,{}),label:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),w.jsx(Us,{type:"settings",onClick:()=>n(),icon:w.jsx(AA,{}),label:pe.getMessage("modals.main.settings.buttons.reset")})]})]})}const mN=y.memo(Px),K_={[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:[]}},Hx=({currentTab:o=Yo.SETTINGS})=>{const n=K_[o]||K_[Yo.SETTINGS];return n.itemCount===0?null:w.jsx("div",{className:"sidebarSkeleton",children:Array.from({length:n.itemCount}).map((l,u)=>{const d=n.dividerPositions.includes(u),c=n.textWidths[u]||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"})]},u)})})},Fx=({currentTab:o})=>w.jsxs("div",{style:{display:"flex",width:"100%",minHeight:"100%"},children:[w.jsx("div",{className:"modalSidebar",children:w.jsx(Hx,{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")})]})})})})]}),Vx=""+new URL("webbrain-rEIJfo36.png",import.meta.url).href;function Gx({currentTab:o,currentSection:n,currentSectionName:l,currentSubSection:u,onSubSectionChange:d,onClose:c,onBack:f,onForward:p,canGoBack:h,canGoForward:k}){const _=Qo(),g=GA.find(({tab:x})=>x===o),b=g?_(g.messageKey):"",S=(x,A)=>{if(!x||!A)return x;const D=`modals.main.settings.sections.${A}.${x}.title`,z=_(D);return!z||z===D?x.charAt(0).toUpperCase()+x.slice(1):z},C=[];return b&&(C.push({label:b,onClick:null}),n&&(C.push({label:n,onClick:u?()=>d(null):null}),u&&C.push({label:S(u,l),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(fA,{})})},"backTooltip"),w.jsx(ht,{title:"Forward",children:w.jsx("button",{className:"navButton",onClick:p,disabled:!k,"aria-label":"Navigate forward",children:w.jsx(Mb,{})})},"forwardTooltip")]}),w.jsx("img",{src:Vx,alt:"WebBrain",className:"topBarLogo",draggable:!1}),C.length>0&&w.jsx("nav",{className:"breadcrumbs","aria-label":"Breadcrumb navigation",children:C.map((x,A)=>{const D=A===C.length-1,z=x.onClick!==null;return w.jsxs("span",{className:"breadcrumb-segment",children:[z?w.jsx("span",{className:"breadcrumb-item breadcrumb-clickable",onClick:x.onClick,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),x.onClick())},role:"button",tabIndex:0,"aria-label":`Navigate to ${x.label}`,children:x.label}):w.jsx("span",{className:`breadcrumb-item ${D?"breadcrumb-current":""}`,"aria-current":D?"page":void 0,children:x.label}),!D&&w.jsx(pA,{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(Bs,{})})},"closeTooltip")})]})}const Kx=y.lazy(()=>Nm(()=>import("./Settings-BiXm1rpf.js"),__vite__mapDeps([1,2]),import.meta.url));function Yx({modalClose:o,deepLinkData:n}){const l=Yo.SETTINGS,[u,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(n?.subSection||null),[k,_]=y.useState(null);y.useEffect(()=>{n?.section&&(_({type:"settings-section",data:n.section,timestamp:Date.now()}),n.subSection&&h(n.subSection))},[n]),y.useEffect(()=>()=>{window.location.hash&&window.history.replaceState(null,null,window.location.pathname)},[]),y.useEffect(()=>{const S=()=>{const C=window.location.hash?Il(window.location.hash):null;C?.section&&(_({type:"settings-section",data:C.section,timestamp:Date.now()}),h(C.subSection||null))};return window.addEventListener("popstate",S),()=>window.removeEventListener("popstate",S)},[]);const g=(S,C)=>{d(S),f(C),h(null),C&&Ul(`#${l}/${C}`,!1)},b=(S,C)=>{h(S),C&&Ul(S?`#${l}/${C}/${S}`:`#${l}/${C}`)};return w.jsxs("div",{className:"frame",children:[w.jsx(Gx,{currentTab:l,currentSection:u,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(y.Suspense,{fallback:w.jsx(Fx,{currentTab:l}),children:w.jsx(Kx,{currentTab:l,changeTab:()=>{},deepLinkData:n,onSectionChange:g,onSubSectionChange:b,currentSubSection:p,navigationTrigger:k},l)})})]})}const Qx=y.memo(Yx),Y_=["#3b6ea8","#2f8f83","#a85a3b","#7a4fa3","#a38a2f","#b0425b","#4a7f3a","#456b8f"];function ey(o,n=""){let l;try{l=new URL(o).hostname.replace(/^www\./,"")}catch{l=String(o||"")}const u=(n||l||"?").trim(),d=(Array.from(u)[0]||"?").toUpperCase().replace(/[&<>"']/g,"?");let c=0;for(const h of l)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="${Y_[c%Y_.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 Q_=()=>{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),[]}},ty=y.memo(()=>{const[o,n]=y.useState(Q_()),[l,u]=y.useState(0),d=y.useRef(null),c=y.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`},[]);y.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(Q_()),u(Date.now())}};return ye.on("refresh",_),c(d.current),()=>{ye.off("refresh",_)}},[c]),y.useEffect(()=>{c(d.current)},[o,l,c]);let f,p=null;localStorage.getItem("quicklinksnewtab")==="true"&&(f="_blank",p="noopener noreferrer");const h=localStorage.getItem("quicklinkstooltip"),k=(_,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||ey(_.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)=>k(_,g))})});ty.displayName="QuickLinks";const Wx=()=>{const[o,n]=y.useState(""),[l,u]=y.useState(null),[d,c]=y.useState("block"),[f,p]=y.useState("1em"),h=y.useRef(),k=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),u(`${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=Em(g,b)),localStorage.getItem("weeknumber")==="true"?k(g):l!==null&&u(null),localStorage.getItem("dateType")==="short"){const S=g.getDate(),C=g.getMonth()+1,x=g.getFullYear(),A=localStorage.getItem("datezero")==="true";let D=A?("00"+S).slice(-2):S,z=A?("00"+C).slice(-2):C,L=x;switch(localStorage.getItem("dateFormat")){case"MDY":D=C,z=S;break;case"YMD":D=x,L=S;break}let G;switch(localStorage.getItem("shortFormat")){case"dots":G=`${D}.${z}.${L}`;break;case"dash":G=`${D}-${z}-${L}`;break;case"gaps":G=`${D} - ${z} - ${L}`;break;case"slashes":G=`${D}/${z}/${L}`;break}n(G)}else{const S=pe.languagecode.split("_")[0],C=localStorage.getItem("datenth")==="true"?Lb(g.getDate()):g.getDate(),x=localStorage.getItem("dayofweek")==="true"?g.toLocaleDateString(S,{weekday:"long"}):"",A=g.toLocaleDateString(S,{month:"long"}),D=g.getFullYear();let z;switch(localStorage.getItem("longFormat")){case"MDY":z=`${A} ${C}, ${D}${x?`, ${x}`:""}`;break;case"YMD":z=`${D} ${A} ${C}${x?`, ${x}`:""}`;break;default:z=`${C} ${A} ${D}${x?`, ${x}`:""}`;break}n(z)}};return y.useEffect(()=>{const g=b=>{if(b==="date"||b==="timezone"){if(localStorage.getItem("date")==="false"){c("none");return}c("block"),p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_()}};return p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_(),ye.on("refresh",g),()=>{ye.off("refresh")}},[]),w.jsxs("span",{className:"date",ref:h,style:{display:d,fontSize:f},children:[o,w.jsx("br",{}),l]})},Zx=()=>{const[o,n]=y.useState(""),[l,u]=y.useState("none"),[d,c]=y.useState("1em"),f=y.useRef();return y.useEffect(()=>{const p=k=>{if(k==="message"){const _=localStorage.getItem("message"),g=localStorage.getItem("zoomMessage");u(_==="false"?"none":"block"),c(`${1*Number((g||100)/100)}em`)}},h=JSON.parse(localStorage.getItem("messages"))||[];return h.length>0&&(n(h[Math.floor(Math.random()*h.length)]),u("block")),ye.on("refresh",p),()=>{ye.off("refresh")}},[]),w.jsx("h2",{className:"message",ref:f,style:{display:l,fontSize:d},children:o.split("\\n").map(p=>w.jsxs("span",{children:[p,w.jsx("br",{})]},p))})},Xx=y.memo(o=>{const[n,l]=y.useState(localStorage.getItem(o.name)||o.default),u=y.useRef(null),d=y.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),l(h),o.element&&!document.querySelector(o.element))return document.querySelector(".reminder-info").style.display="flex",localStorage.setItem("showReminder",!0);ye.emit("refresh",o.category)},[o]),c=y.useCallback(()=>{u.current&&cancelAnimationFrame(u.current);const p=Number(n),h=Number(o.default||0),k=300,_=performance.now(),g=b=>{const S=b-_,C=Math.min(S/k,1),x=1-Math.pow(1-C,3),A=p+(h-p)*x,D=Math.round(A/(Number(o.step)||1))*(Number(o.step)||1);localStorage.setItem(o.name,D),l(D),C<1?u.current=requestAnimationFrame(g):(localStorage.setItem(o.name,h),l(h),ye.emit("refresh",o.category))};u.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(Rs,{}),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))})]})]})});Xx.displayName="SliderComponent";const Jx=({children:o})=>w.jsx("div",{id:"widgets",children:o}),W_=()=>{try{const o=JSON.parse(localStorage.getItem("order"));return Array.isArray(o)?o:[]}catch{return[]}},Si=o=>localStorage.getItem(o)==="true",$x=()=>{const[o,n]=y.useState(W_),l=y.useMemo(()=>({time:Si("time")&&w.jsx(zC,{}),greeting:Si("greeting")&&w.jsx(NC,{}),date:Si("date")&&w.jsx(Wx,{}),quicklinks:Si("quicklinksenabled")?w.jsx(ty,{}):null,message:Si("message")&&w.jsx(Zx,{})}),[o]);return y.useEffect(()=>{const u=d=>{d==="widgets"&&n(W_())};return ye.on("refresh",u),()=>{ye.off("refresh")}},[]),w.jsxs(Jx,{children:[o.map((u,d)=>w.jsx(y.Fragment,{children:l[u]},d)),Si("taskBox")&&w.jsx(PC,{}),Si("recentChats")&&w.jsx(FC,{})]})};var Ml={exports:{}},Vo={},om={exports:{}},im,Z_;function e2(){if(Z_)return im;Z_=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return im=o,im}var nm,X_;function t2(){if(X_)return nm;X_=1;var o=e2();function n(){}function l(){}return l.resetWarningCache=n,nm=function(){function u(f,p,h,k,_,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}}u.isRequired=u;function d(){return u}var c={array:u,bigint:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:d,element:u,elementType:u,instanceOf:d,node:u,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:l,resetWarningCache:n};return c.PropTypes=c,c},nm}var J_;function ay(){return J_||(J_=1,om.exports=t2()()),om.exports}var Al={exports:{}},ba={},Cl={exports:{}},$_;function oy(){return $_||($_=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=_;var l="none",u="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!==u&&c(g,S):C===l}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 k(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(k)}o.exports=n.default})(Cl,Cl.exports)),Cl.exports}var ev;function a2(){if(ev)return ba;ev=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.resetState=f,ba.log=p,ba.handleBlur=h,ba.handleFocus=k,ba.markForFocusLater=_,ba.returnFocus=g,ba.popWithoutFocus=b,ba.setupScopedFocus=S,ba.teardownScopedFocus=C;var o=oy(),n=l(o);function l(x){return x&&x.__esModule?x:{default:x}}var u=[],d=null,c=!1;function f(){u=[]}function p(){}function h(){c=!0}function k(){if(c){if(c=!1,!d)return;setTimeout(function(){if(!d.contains(document.activeElement)){var x=(0,n.default)(d)[0]||d;x.focus()}},0)}}function _(){u.push(document.activeElement)}function g(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,A=null;try{u.length!==0&&(A=u.pop(),A.focus({preventScroll:x}));return}catch{console.warn(["You tried to return focus to",A,"but it is not in the DOM anymore"].join(" "))}}function b(){u.length>0&&u.pop()}function S(x){d=x,window.addEventListener?(window.addEventListener("blur",h,!1),document.addEventListener("focus",k,!0)):(window.attachEvent("onBlur",h),document.attachEvent("onFocus",k))}function C(){d=null,window.addEventListener?(window.removeEventListener("blur",h),document.removeEventListener("focus",k)):(window.detachEvent("onBlur",h),document.detachEvent("onFocus",k))}return ba}var xl={exports:{}},tv;function o2(){return tv||(tv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var l=oy(),u=d(l);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 k=(0,u.default)(p);if(!k.length){h.preventDefault();return}var _=void 0,g=h.shiftKey,b=k[0],S=k[k.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 x=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),A=x!=null&&x[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(A){var D=k.indexOf(C);if(D>-1&&(D+=g?-1:1),_=k[D],typeof _>"u"){h.preventDefault(),_=g?S:b,_.focus();return}h.preventDefault(),_.focus()}}o.exports=n.default})(xl,xl.exports)),xl.exports}var Na={},sm,av;function i2(){if(av)return sm;av=1;var o=function(){};return sm=o,sm}var Ya={},rm={exports:{}};var ov;function n2(){return ov||(ov=1,(function(o){(function(){var n=!!(typeof window<"u"&&window.document&&window.document.createElement),l={canUseDOM:n,canUseWorkers:typeof Worker<"u",canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen};o.exports?o.exports=l:window.ExecutionEnvironment=l})()})(rm)),rm.exports}var iv;function Om(){if(iv)return Ya;iv=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.canUseDOM=Ya.SafeNodeList=Ya.SafeHTMLCollection=void 0;var o=n2(),n=l(o);function l(c){return c&&c.__esModule?c:{default:c}}var u=n.default,d=u.canUseDOM?window.HTMLElement:{};return Ya.SafeHTMLCollection=u.canUseDOM?window.HTMLCollection:{},Ya.SafeNodeList=u.canUseDOM?window.NodeList:{},Ya.canUseDOM=u.canUseDOM,Ya.default=d,Ya}var nv;function iy(){if(nv)return Na;nv=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.resetState=c,Na.log=f,Na.assertNodeList=p,Na.setElement=h,Na.validateElement=k,Na.hide=_,Na.show=g,Na.documentNotReadyOrSSRTesting=b;var o=i2(),n=u(o),l=Om();function u(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"&&l.canUseDOM){var x=document.querySelectorAll(C);p(x,C),C=x}return d=C||d,d}function k(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,x=!1,A=void 0;try{for(var D=k(S)[Symbol.iterator](),z;!(C=(z=D.next()).done);C=!0){var L=z.value;L.setAttribute("aria-hidden","true")}}catch(G){x=!0,A=G}finally{try{!C&&D.return&&D.return()}finally{if(x)throw A}}}function g(S){var C=!0,x=!1,A=void 0;try{for(var D=k(S)[Symbol.iterator](),z;!(C=(z=D.next()).done);C=!0){var L=z.value;L.removeAttribute("aria-hidden")}}catch(G){x=!0,A=G}finally{try{!C&&D.return&&D.return()}finally{if(x)throw A}}}function b(){d=null}return Na}var Mi={},sv;function s2(){if(sv)return Mi;sv=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.resetState=u,Mi.log=d;var o={},n={};function l(k,_){k.classList.remove(_)}function u(){var k=document.getElementsByTagName("html")[0];for(var _ in o)l(k,o[_]);var g=document.body;for(var b in n)l(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 Mi.add=function(_,g){return p(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Mi.remove=function(_,g){return h(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Mi}var kn={},rv;function ny(){if(rv)return kn;rv=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.log=u,kn.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=[]},l=new n;function u(){console.log("portalOpenInstances ----------"),console.log(l.openInstances.length),l.openInstances.forEach(function(c){return console.log(c)}),console.log("end portalOpenInstances ----------")}function d(){l=new n}return kn.default=l,kn}var zs={},lv;function r2(){if(lv)return zs;lv=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.resetState=f,zs.log=p;var o=ny(),n=l(o);function l(_){return _&&_.__esModule?_:{default:_}}var u=void 0,d=void 0,c=[];function f(){for(var _=[u,d],g=0;g<_.length;g++){var b=_[g];b&&b.parentNode&&b.parentNode.removeChild(b)}u=d=null,c=[]}function p(){console.log("bodyTrap ----------"),console.log(c.length);for(var _=[u,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 k(_,g){!u&&!d&&(u=document.createElement("div"),u.setAttribute("data-react-modal-body-trap",""),u.style.position="absolute",u.style.opacity="0",u.setAttribute("tabindex","0"),u.addEventListener("focus",h),d=u.cloneNode(),d.addEventListener("focus",h)),c=g,c.length>0?(document.body.firstChild!==u&&document.body.insertBefore(u,document.body.firstChild),document.body.lastChild!==d&&document.body.appendChild(d)):(u.parentElement&&u.parentElement.removeChild(u),d.parentElement&&d.parentElement.removeChild(d))}return n.default.subscribe(k),zs}var uv;function l2(){return uv||(uv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var l=Object.assign||function(Z){for(var Y=1;Y<arguments.length;Y++){var I=arguments[Y];for(var T in I)Object.prototype.hasOwnProperty.call(I,T)&&(Z[T]=I[T])}return Z},u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},d=(function(){function Z(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&&Z(Y.prototype,I),T&&Z(Y,T),Y}})(),c=Gs(),f=ay(),p=J(f),h=a2(),k=G(h),_=o2(),g=J(_),b=iy(),S=G(b),C=s2(),x=G(C),A=Om(),D=J(A),z=ny(),L=J(z);r2();function G(Z){if(Z&&Z.__esModule)return Z;var Y={};if(Z!=null)for(var I in Z)Object.prototype.hasOwnProperty.call(Z,I)&&(Y[I]=Z[I]);return Y.default=Z,Y}function J(Z){return Z&&Z.__esModule?Z:{default:Z}}function H(Z,Y){if(!(Z instanceof Y))throw new TypeError("Cannot call a class as a function")}function j(Z,Y){if(!Z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:Z}function q(Z,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);Z.prototype=Object.create(Y&&Y.prototype,{constructor:{value:Z,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(Z,Y):Z.__proto__=Y)}var V={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},$=function(Y){return Y.code==="Tab"||Y.keyCode===9},Q=function(Y){return Y.code==="Escape"||Y.keyCode===27},ee=0,ae=(function(Z){q(Y,Z);function Y(I){H(this,Y);var T=j(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,be=K.htmlOpenClassName,Ce=K.bodyOpenClassName,Ve=K.parentSelector,E=Ve&&Ve().ownerDocument||document;Ce&&x.remove(E.body,Ce),be&&x.remove(E.getElementsByTagName("html")[0],be),ne&&ee>0&&(ee-=1,ee===0&&S.show(ie)),T.props.shouldFocusAfterRender&&(T.props.shouldReturnFocusAfterClose?(k.returnFocus(T.props.preventScroll),k.teardownScopedFocus()):k.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&&(k.setupScopedFocus(T.node),k.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&&Q(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":u(ie))==="object"?ie:{base:V[K],afterOpen:V[K]+"--after-open",beforeClose:V[K]+"--before-close"},be=ne.base;return T.state.afterOpen&&(be=be+" "+ne.afterOpen),T.state.beforeClose&&(be=be+" "+ne.beforeClose),typeof ie=="string"&&ie?be+" "+ie:be},T.attributesFromObject=function(K,ie){return Object.keys(ie).reduce(function(ne,be){return ne[K+"-"+be]=ie[be],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,be=T.bodyOpenClassName,Ce=T.parentSelector,Ve=Ce&&Ce().ownerDocument||document;be&&x.add(Ve.body,be),ne&&x.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,be=T.defaultStyles,Ce=T.children,Ve=ie?{}:be.content,E=ne?{}:be.overlay;if(this.shouldBeClosed())return null;var te={ref:this.setOverlayRef,className:this.buildClassName("overlay",ne),style:l({},E,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},se=l({id:K,ref:this.setContentRef,style:l({},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",l({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(D.default),p.default.instanceOf(A.SafeHTMLCollection),p.default.instanceOf(A.SafeNodeList),p.default.arrayOf(p.default.instanceOf(D.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})(Al,Al.exports)),Al.exports}function sy(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function ry(o){function n(l){var u=this.constructor.getDerivedStateFromProps(o,l);return u??null}this.setState(n.bind(this))}function ly(o,n){try{var l=this.props,u=this.state;this.props=o,this.state=n,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(l,u)}finally{this.props=l,this.state=u}}sy.__suppressDeprecationWarning=!0;ry.__suppressDeprecationWarning=!0;ly.__suppressDeprecationWarning=!0;function u2(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 l=null,u=null,d=null;if(typeof n.componentWillMount=="function"?l="componentWillMount":typeof n.UNSAFE_componentWillMount=="function"&&(l="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps=="function"?u="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps=="function"&&(u="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate=="function"?d="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate=="function"&&(d="UNSAFE_componentWillUpdate"),l!==null||u!==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:"+(l!==null?``+l:"")+(u!==null?`diff --git a/src/firefox/newtab/index.html b/src/firefox/newtab/index.htmlindex c64bc0914..0764a1efa 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-DDjvabsM.js"></script>+ <script type="module" crossorigin src="./assets/index-epcgRnvP.js"></script><link rel="stylesheet" crossorigin href="./assets/index-ByIwaINw.css"></head><body>diff --git a/src/firefox/src/ui/newtab-handoff.js b/src/firefox/src/ui/newtab-handoff.jsindex d5ab654da..6fe08ffbc 100644--- a/src/firefox/src/ui/newtab-handoff.js+++ b/src/firefox/src/ui/newtab-handoff.js@@ -4,7 +4,8 @@* The new tab stores { id, tabId, text, mode, createdAt } under one storage* key and opens this panel from its own click handler. The panel claims the* record only if it is fresh and addressed to the tab it is showing:- * - Ask: the task is filled in and sent (Ask is read-only);+ * - Ask: the task is filled in and sent (Ask is read-only). If a run is already+ * active in that tab it is queued behind it, exactly like pressing Send then;* - Act: the task is filled in and the panel switches to Act, but nothing is* sent. Act always needs the user's own Enter in the panel.*@@ -37,7 +38,9 @@ export function createNewtabHandoff({onChanged,getCurrentTabId,getIsProcessing,+ getIsBlocked = () => false,getIsDocumentVisible = () => true,+ doc = globalThis.document,setMode,getInputEl,autoResizeInput,@@ -72,7 +75,9 @@ export function createNewtabHandoff({input.dispatchEvent(new Event('input', { bubbles: true }));autoResizeInput();input.focus?.();- if (handoff.mode === 'ask' && !getIsProcessing()) await sendMessage();+ if (handoff.mode === 'ask' && !getIsBlocked()) {+ await sendMessage(getIsProcessing() ? { __deliveryMode: 'queue' } : undefined);+ }return true;} catch {return false;@@ -86,6 +91,12 @@ export function createNewtabHandoff({if (area && area !== 'local') return;if (changes?.[NEWTAB_HANDOFF_KEY]?.newValue) consume();});+ // The record can arrive just before an already-loaded panel becomes visible+ // (the new tab writes it, then opens the panel). consume() skips hidden+ // panels, so try again the moment this one is shown.+ doc?.addEventListener?.('visibilitychange', () => {+ if (getIsDocumentVisible()) consume();+ });}return { consume, watch };diff --git a/src/firefox/src/ui/sidepanel.js b/src/firefox/src/ui/sidepanel.jsindex ff6334de9..f01eaff05 100644--- a/src/firefox/src/ui/sidepanel.js+++ b/src/firefox/src/ui/sidepanel.js@@ -1462,7 +1462,8 @@ const newtabHandoff = createNewtabHandoff({storage: browser.storage.local,onChanged: browser.storage.onChanged,getCurrentTabId: () => currentTabId,- getIsProcessing: () => isProcessing || isConversationClearInProgress(),+ getIsProcessing: () => isProcessing,+ getIsBlocked: () => isConversationClearInProgress(),getIsDocumentVisible: () => document.visibilityState !== 'hidden',setMode,getInputEl: () => inputEl,diff --git a/test/newtab.mjs b/test/newtab.mjsindex 4d7311707..36fb5af2f 100644--- a/test/newtab.mjs+++ b/test/newtab.mjs@@ -11,6 +11,7 @@ const load = (file) => import(pathToFileURL(file).href);const { createNamespacedStorage, NAMESPACE_PREFIX } = await load(nt('lib/storage-namespace.js'));const { buildHandoff, toNavigableUrl, submitTask, HANDOFF_KEY } = await load(nt('features/agent/handoff.js'));const { getTitleFromUrl } = await load(nt('utils/links/getTitleFromUrl.js'));+const { normalizeLinkUrl } = await load(nt('utils/links/normalizeLinkUrl.js'));function memoryStorage(seed = {}) {const map = new Map(Object.entries(seed));@@ -135,6 +136,29 @@ test('link titles are derived locally and never fetched', async () => {}});+test('link URLs are normalised the same way for add and edit', () => {+ assert.equal(normalizeLinkUrl('example.com'), 'https://example.com');+ assert.equal(normalizeLinkUrl(' http://example.com/x '), 'http://example.com/x');+ assert.equal(normalizeLinkUrl('HTTPS://Example.com'), 'https://Example.com');+ assert.equal(normalizeLinkUrl('javascript:alert(1)'), null);+ assert.equal(normalizeLinkUrl('javascript:alert(1)//https://a.bc'), null);+ assert.equal(normalizeLinkUrl('data:text/html,hi'), null);+ assert.equal(normalizeLinkUrl('ftp://example.com'), null);+ assert.equal(normalizeLinkUrl('nodots'), null);+ assert.equal(normalizeLinkUrl(''), null);+ assert.equal(normalizeLinkUrl(undefined), null);+});++test('editing a link uses the same normalisation as adding one', () => {+ for (const file of ['features/quicklinks/options/QuickLinksOptions.jsx', 'features/navbar/options/AppsOptions.jsx']) {+ const src = readFileSync(nt(file), 'utf8');+ const start = src.indexOf('const editLink');+ const edit = src.slice(start, start + 1500);+ assert.match(src, /normalizeLinkUrl/, file);+ assert.match(edit, /normalizeLinkUrl\(url\)/, `${file}: editLink must normalise`);+ }+});+test('the only remaining fetch in the new tab source loads the chosen background image', () => {const walk = (dir) => readdirSync(dir, { withFileTypes: true }).flatMap((e) =>e.isDirectory() ? walk(path.join(dir, e.name)) : [path.join(dir, e.name)]);@@ -161,10 +185,12 @@ for (const browser of ['chrome', 'firefox']) {assert.equal(normalizeNewtabHandoff(null, now), null);});- function harness({ tabId = 3, processing = false, record }) {+ function harness({ tabId = 3, processing = false, blocked = false, record, visible = true }) {const store = { [NEWTAB_HANDOFF_KEY]: record };- const log = { mode: null, sent: 0, value: '' };+ const log = { mode: null, sent: [], value: '' };const input = { value: '', dispatchEvent() {}, focus() {} };+ const listeners = [];+ const state = { visible };const handoff = createNewtabHandoff({storage: {get: async (k) => (k in store ? { [k]: store[k] } : {}),@@ -172,30 +198,33 @@ for (const browser of ['chrome', 'firefox']) {},getCurrentTabId: () => tabId,getIsProcessing: () => processing,+ getIsBlocked: () => blocked,+ getIsDocumentVisible: () => state.visible,+ doc: { addEventListener: (type, fn) => { if (type === 'visibilitychange') listeners.push(fn); } },setMode: (m) => { log.mode = m; },getInputEl: () => input,autoResizeInput() {},- sendMessage: async () => { log.sent += 1; log.value = input.value; },+ sendMessage: async (params) => { log.sent.push(params); log.value = input.value; },now: () => 100_000,});- return { handoff, store, log, input };+ return { handoff, store, log, input, state, listeners };}const rec = (over = {}) => ({ id: 'r1', tabId: 3, text: 'summarise', mode: 'ask', createdAt: 99_000, ...over });test(`${browser}: Ask is sent automatically and the record is claimed once`, async () => {const h = harness({ record: rec() });assert.equal(await h.handoff.consume(), true);- assert.deepEqual([h.log.mode, h.log.sent, h.log.value], ['ask', 1, 'summarise']);+ assert.deepEqual([h.log.mode, h.log.sent, h.log.value], ['ask', [undefined], 'summarise']);assert.equal(NEWTAB_HANDOFF_KEY in h.store, false);assert.equal(await h.handoff.consume(), false);- assert.equal(h.log.sent, 1);+ assert.equal(h.log.sent.length, 1);});test(`${browser}: Act is pre-filled but never sent`, async () => {const h = harness({ record: rec({ mode: 'act', text: 'book a table' }) });assert.equal(await h.handoff.consume(), true);assert.equal(h.log.mode, 'act');- assert.equal(h.log.sent, 0);+ assert.equal(h.log.sent.length, 0);assert.equal(h.input.value, 'book a table');});@@ -203,20 +232,41 @@ for (const browser of ['chrome', 'firefox']) {const other = harness({ record: rec({ tabId: 99 }) });assert.equal(await other.handoff.consume(), false);assert.equal(NEWTAB_HANDOFF_KEY in other.store, true);- assert.equal(other.log.sent, 0);+ assert.equal(other.log.sent.length, 0);const stale = harness({ record: rec({ createdAt: 1 }) });assert.equal(await stale.handoff.consume(), false);assert.equal(NEWTAB_HANDOFF_KEY in stale.store, false);});- test(`${browser}: Ask while the agent is busy fills the box without sending`, async () => {+ test(`${browser}: Ask during an active run is queued behind it, not dropped`, async () => {const h = harness({ processing: true, record: rec() });+ assert.equal(await h.handoff.consume(), true);+ assert.deepEqual(h.log.sent, [{ __deliveryMode: 'queue' }]);+ assert.equal(h.input.value, 'summarise');+ assert.equal(NEWTAB_HANDOFF_KEY in h.store, false);+ });++ test(`${browser}: Ask while the conversation is being cleared is only pre-filled`, async () => {+ const h = harness({ blocked: true, record: rec() });await h.handoff.consume();- assert.equal(h.log.sent, 0);+ assert.equal(h.log.sent.length, 0);assert.equal(h.input.value, 'summarise');});+ test(`${browser}: a hidden panel claims the task as soon as it becomes visible`, async () => {+ const h = harness({ visible: false, record: rec() });+ h.handoff.watch();+ assert.equal(await h.handoff.consume(), false);+ assert.equal(NEWTAB_HANDOFF_KEY in h.store, true);+ h.state.visible = true;+ h.listeners.forEach((fn) => fn());+ await new Promise((r) => setTimeout(r, 0));+ await new Promise((r) => setTimeout(r, 0));+ assert.equal(h.log.sent.length, 1);+ assert.equal(NEWTAB_HANDOFF_KEY in h.store, false);+ });+test(`${browser}: manifest and background are wired`, () => {const manifest = JSON.parse(readFileSync(path.join(root, 'src', browser, 'manifest.json'), 'utf8'));assert.equal(manifest.chrome_url_overrides?.newtab, 'newtab/index.html');