+ {let r=0,c=!1;const l=()=>{const d=document.evaluate(c&&n?n:t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(d instanceof HTMLElement){o(d);return}r++,r{const r=new FileReader;r.onloadend=()=>{typeof r.result=="string"?n(r.result.split(",")[1]):o("Không thể đọc dữ liệu ảnh")},r.onerror=o,r.readAsDataURL(i)})}getImageExtension(t){try{const i=new URL(t).pathname.match(/\.([a-zA-Z0-9]+)$/);return i?i[1].toLowerCase():null}catch{const n=t.split("?")[0].match(/\.([a-zA-Z0-9]+)$/);return n?n[1].toLowerCase():null}}imageLocalToBase64(t){return new Promise((e,i)=>{try{const n=chrome.runtime.getURL(`${t}`);fetch(n).then(o=>o.blob()).then(o=>{const r=new FileReader;r.onloadend=()=>e(r.result),r.onerror=i,r.readAsDataURL(o)}).catch(i)}catch(n){i(n)}})}scrollToElement(t,e="smooth"){t&&t.scrollIntoView({behavior:e,block:"center",inline:"nearest"})}getElementPointCoores(t){if(!t)return null;const e=t.getBoundingClientRect(),i=e.left+e.width/2,n=e.top+e.height/2;return{x:i,y:n}}setInputValue(t,e){t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0})),t.dispatchEvent(new Event("change",{bubbles:!0})))}writeToInput=async(t,e)=>{let i;if(typeof e=="string"?i=await this.getElementByXPath(e):i=e,!i)throw new Error("Xpath is not found with value: "+t);this.scrollToElement(i),this.clickByPoint(i),this.setInputValue(i,t)};pressEnter(t){if(!t)throw new Error("Textarea not found:",t);t.focus(),["keydown","keypress","keyup"].forEach(e=>{t.dispatchEvent(new KeyboardEvent(e,{key:"Enter",code:"Enter",keyCode:13,which:13,bubbles:!0,cancelable:!0}))})}findNestedElement(t,e,i){const n=document.querySelector(t);if(!n)return null;const o=n.querySelectorAll(e);for(const r of o)if(r.innerText.trim().toLowerCase()===i.toLowerCase())return r;return null}findNestedIcElement(t,e,i){let n=null;if(typeof t=="string"){if(document.querySelector(t),!n)return null}else n=t;const o=n.querySelectorAll(e);for(const r of o)if(r.innerText.trim().toLowerCase().includes(i.toLowerCase()))return r;return null}findElInParent(t,e){return t&&t.parentElement?.querySelector(e)||null}waitForElement(t,e=100){return new Promise(i=>{const n=l=>l.offsetParent!==null&&(l.childElementCount>0||l.innerText.trim().length>0),o=()=>{const l=document.querySelector(t);l&&n(l)&&(r.disconnect(),clearInterval(c),i(l))},r=new MutationObserver(o);r.observe(document.body,{childList:!0,subtree:!0});const c=setInterval(o,e);o()})}}const a=new p;class f{sellingPath="https://www.facebook.com/marketplace/you/selling";marketPath="https://www.facebook.com/marketplace";createItem="https://www.facebook.com/marketplace/create/item";editItem="https://www.facebook.com/marketplace/edit";selectors={file__image_input:'input[type="file"]',next_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[5]/div/div/div",update_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[4]/div/div/div",publish_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[4]/div[2]/div/div",option_btn:"/html/body/div[1]/div/div[1]/div/div[4]/div/div/div[1]/div/div[2]/div/div/div/div/div/div/div[3]/div/div/div/div/div[1]/div",option_btn_fallback:"/html/body/div[1]/div/div[1]/div/div[4]/div/div/div[1]/div/div[2]/div/div/div/div[3]/div[2]/div/div[2]/div[1]",close_btn_modal_feedback:"/html/body/div[1]/div/div[1]/div/div[4]/div/div/div[1]/div/div[2]/div/div/div/div[2]/div",images_container:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[2]/div[1]/div[2]/div/div/div[3]/div[2]/div",description_edit_input:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[3]/div[1]/div[2]/div/div/div[9]/div/div/div[2]/div/div/div/label/div/div/textarea",sku_edit_input:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[3]/div[1]/div[2]/div/div/div[9]/div/div/div[5]/div/div/div[1]/label/div/input",new_item_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[3]/div[1]/div[2]/div/div/div[7]/a/div",item_for_sell:"/html/body/div[1]/div/div[1]/div/div[5]/div/div/div[3]/div[2]/div[2]/div/div/div[2]/div[1]/div/span/div/div/div[1]/div/div",market_container:'[aria-label="Marketplace"]',collection_marketplace:'[aria-label="Collection of your Marketplace items"]'};findInputByTitle(t,e="input"){const i=a.findNestedElement(this.selectors.market_container,"span",t);if(!i)throw new Error("Not found input by title: "+t);return a.findElInParent(i,e)}clearImages=async()=>{document.querySelectorAll('[aria-label="Remove"]').forEach(t=>t?.click())};uploadImages=async t=>{const e=new DataTransfer;for(const n of t.images){const o=await a.imageUrlToBase64(n),r=a.base64ToFile(o,t.sku,a.getImageExtension(n)||"jpg");e.items.add(r)}const i=document.querySelector(this.selectors.file__image_input);i?(i.files=e.files,i.dispatchEvent(new Event("change",{bubbles:!0}))):console.error("Không tìm thấy input[type='file']")};chooseSelect=async(t,e,i='[aria-label="Dropdown menu"]')=>{const n=a.findNestedElement(this.selectors.market_container,"span",e);a.scrollToElement(n),await s(500,600),n?.click(),await s(500,600);const o=a.findNestedElement(i,"span",t);if(await s(500,600),!o)throw new Error(`No child found with text "${t}"`);a.scrollToElement(o),await s(500,600),o.click(),await s(500,600)};chooseLocation=async t=>{const e=this.findInputByTitle("location");await a.writeToInput(t,e),await u(600);const i=document.querySelector('[role="listbox"]')?.querySelectorAll("li")||[],n=Array.from(i).find(o=>o.innerHTML.trim().toLowerCase().includes(t.toLowerCase()));if(!n)throw new Error(`No child found with text "${t}"`);a.scrollToElement(n),await u(400),a.clickByPoint(n)};writeTags=async t=>{const e=this.findInputByTitle("product tags","textarea");if(!e)throw new Error("Input is not found");a.scrollToElement(e),await u(500);for(const i of t)await a.writeToInput(i,e),await u(300),a.pressEnter(e)};clickNext=async()=>{const t=await a.getElementByXPath(this.selectors.next_btn);if(!t)throw new Error("Next button is not found");a.clickByPoint(t)};clickUpdate=async()=>{const t=await a.getElementByXPath(this.selectors.update_btn);if(!t)throw new Error("Next button is not found");a.clickByPoint(t)};clickPublist=async()=>{const t=await a.getElementByXPath(this.selectors.publish_btn);if(!t)throw new Error("Publist button is not found");a.clickByPoint(t)};handlePublist=async t=>{await s(600,1e3),await this.uploadImages(t),await s(600,1e3);const e=this.findInputByTitle("title");a.writeToInput(t.title,e),await s(600,1e3);const i=this.findInputByTitle("price");if(a.writeToInput(String(t.price),i),await s(600,1e3),await this.chooseSelect(t.category,"category"),await s(600,1e3),await this.chooseSelect(t.condition,"condition",'[aria-label="Select an option"]'),t.brand){await s(600,1e3);const r=this.findInputByTitle("brand");await a.writeToInput(t.brand,r)}await s(600,1e3);const n=this.findInputByTitle("description","textarea");await a.writeToInput(t.description,n),await s(600,1e3),await this.writeTags(t.tags),await s(600,1e3);const o=this.findInputByTitle("sku");return await a.writeToInput(t.sku,o),t?.location&&(await s(600,1e3),await this.chooseLocation(t.location)),await s(300,500),await this.clickNext(),!0};handleRePublist=async t=>{await a.waitForElement('[aria-label="Collection of your Marketplace items"]');const e=await this.getOptionEls(t);this.clickItemInList(e,"edit"),await u(1e3),await this.waitForPageReady(this.editItem,this.selectors.market_container),await s(1e3,2e3),await this.clearImages(),await s(600,1e3),await this.uploadImages(t),await s(600,1e3);const i=this.findInputByTitle("title");a.writeToInput(t.title,i),await s(600,1e3);const n=this.findInputByTitle("price");a.writeToInput(String(t.price),n),await s(600,1e3),await this.chooseSelect(t.category,"category"),await s(600,1e3),await this.chooseSelect(t.condition,"condition",'[aria-label="Select an option"]'),await s(600,1e3);const o=this.findInputByTitle("description","textarea");return await a.writeToInput(t.description,o),await s(600,1e3),await this.writeTags(t.tags),await s(600,1e3),t?.location&&(await s(600,1e3),await this.chooseLocation(t.location)),!0};async getInfo(){try{const e=Date.now(),i=await new Promise(o=>{chrome.storage.local.get("meCache",r=>{o(r.meCache?JSON.parse(r.meCache):null)})});if(i&&e-i.timestamp<72e5)return i.data;const n=await fetch("/me");if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return chrome.storage.local.set({meCache:JSON.stringify({data:{url:n.url},timestamp:e})}),n}catch(e){return console.error("Failed to get /me:",e),null}}getProductContainer(){const t=document.querySelectorAll('[aria-label="Collection of your Marketplace items"] span > div > div'),e=Array.from(t).filter(i=>i.querySelector("span > div > div")&&i.classList.length>0);return e.length>0?e[0]:null}getProducts=async()=>{const t=this.getProductContainer();if(!t)throw new Error("List element has changed. Please connect to DEV");const e=await this.getInfo();return this.extractListings(t,e)};extractListings(t,e){return Array.from(t.children).map(n=>{const r=n.querySelector('span[dir="auto"], div[dir="auto"]')?.textContent?.trim()||"",c=document.querySelectorAll(`[aria-label="${r}"]`),l=Array.from(c).filter(m=>!m.querySelector("img"))[0],v=a.findNestedIcElement(l,"span","AU$")?.textContent?.match(/[\d,]+(?:\.\d+)?/),w=v?parseFloat(v[0].replace(/,/g,"")):0;return{title:r,price:w,el:t,url_info:e?.url}})}closeTab=async t=>{chrome.runtime.sendMessage({type:"close-tab",payload:t})};clickOptionOfProduct(t){const e=document.querySelector(`[aria-label="More options for ${t.title}"]`);if(!e)throw new Error(`Not found option buttin in product ${`[aria-label="More options for ${t.title}"]`}, ID: ${t.id}`);a.scrollToElement(e),e.click?.()}async getOptionEls(t){return this.clickOptionOfProduct(t),await u(2e3),Array.from(document.querySelectorAll('[role="menuitem"]'))}clickItemInList(t,e){const i=t.find(n=>n.textContent.toLocaleLowerCase().includes(e));if(!i)throw new Error(`Not found item ${e} in options list`);i.click?.()}getItemInList(t,e){const i=t.find(n=>n.textContent.toLocaleLowerCase().includes(e));if(!i)throw new Error(`Not found item ${e} in options list`);return i}handleDelete=async t=>{const e=await this.getOptionEls(t);this.clickItemInList(e,"delete"),await u(1e3),(await a.getElementByXPath(this.selectors.option_btn,{xpathFallback:this.selectors.option_btn_fallback}))?.click(),(await a.getElementByXPath(this.selectors.close_btn_modal_feedback))?.click(),chrome.runtime.sendMessage({type:"delete-done"})};waitForUrlContains(t,e=1e4){return new Promise((i,n)=>{const o=Date.now(),r=()=>{window.location.href.includes(t)?i():Date.now()-o>e?n(new Error("Timeout waiting for URL change")):setTimeout(r,500)};r()})}waitForPageReady(t,e,i=15e3){return new Promise((n,o)=>{const r=Date.now(),c=async()=>{window.location.href.includes(t)&&document.querySelector(e)?n():Date.now()-r>i?o(new Error("Timeout waiting for selling page ready")):setTimeout(c,500)};c()})}extractMarketplaceItemId(t){const e=t.match(/\/marketplace\/item\/(\d+)/);return e?e[1]:null}handleGetPublistID=async t=>{const i=(await g.getProducts()).find(c=>c.title==t.title&&c.price==t.price);if(!i)return;i.el;const n=await this.getOptionEls(t),o=this.getItemInList(n,"view listing"),r=this.extractMarketplaceItemId(o.href);return this.clickOptionOfProduct(t),r};async gotoPublist(){(await a.getElementByXPath(this.selectors.new_item_btn))?.click(),await s(400,800),(await a.getElementByXPath(this.selectors.item_for_sell))?.click()}async gotoSell(){document.querySelector('[href="/marketplace/you/selling/"]')?.click()}}const g=new f;class b{role;listeners;constructor(t){this.role=t,this.listeners=new Map,chrome.runtime.onMessage.addListener((e,i,n)=>{if(e?.type&&this.listeners.has(e.type))return this.listeners.get(e.type)(e.payload,i,n),!0})}on(t,e){this.listeners.set(t,e)}send(t,e,i){const n={from:this.role,to:t,type:e,payload:i};(this.role==="popup"||this.role==="content")&&chrome.runtime.sendMessage(n),this.role==="background"&&(t==="content"?chrome.tabs.query({active:!0,currentWindow:!0},o=>{o[0]?.id&&chrome.tabs.sendMessage(o[0].id,n,()=>{chrome.runtime.lastError&&console.warn("Không gửi được tới content script:",chrome.runtime.lastError.message)})}):t==="popup"&&chrome.runtime.sendMessage(n,()=>{chrome.runtime.lastError&&console.warn("Không gửi được tới popup:",chrome.runtime.lastError.message)}))}sendToTab(t,e,i){if(this.role!=="background")throw new Error("sendToTab chỉ được gọi từ background");const n={from:this.role,to:"content",type:e,payload:i};chrome.tabs.sendMessage(t,n,()=>{chrome.runtime.lastError&&console.warn(`Không gửi được tới content script ở tab ${t}:`,chrome.runtime.lastError.message)})}waitForMessage(t,e=3e4){return new Promise((i,n)=>{let o;const r=c=>{clearTimeout(o),this.off(t,r),i(c)};o=setTimeout(()=>{this.off(t,r),n(new Error(`Timeout khi chờ message: ${t}`))},e),this.on(t,r)})}off(t,e){this.listeners.get(t)===e&&this.listeners.delete(t)}}export{b as M,g as f,a as t};
diff --git a/releases/auto-post-facebook-extensions_1.3/assets/message.service-CPW8kpXL.js b/releases/auto-post-facebook-extensions_1.3/assets/message.service-CPW8kpXL.js
new file mode 100644
index 0000000..6581a9e
--- /dev/null
+++ b/releases/auto-post-facebook-extensions_1.3/assets/message.service-CPW8kpXL.js
@@ -0,0 +1 @@
+import{d as a,a as u}from"./app-C7VSS-q9.js";class f{base64ToFile(t,e,i){const n=t.includes(",")?t.split(",")[1]:t,o=atob(n),r=new ArrayBuffer(o.length),c=new Uint8Array(r);for(let d=0;d{let r=0,c=!1;const l=()=>{const d=document.evaluate(c&&n?n:t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(d instanceof HTMLElement){o(d);return}r++,r{const r=new FileReader;r.onloadend=()=>{typeof r.result=="string"?n(r.result.split(",")[1]):o("Không thể đọc dữ liệu ảnh")},r.onerror=o,r.readAsDataURL(i)})}getImageExtension(t){try{const i=new URL(t).pathname.match(/\.([a-zA-Z0-9]+)$/);return i?i[1].toLowerCase():null}catch{const n=t.split("?")[0].match(/\.([a-zA-Z0-9]+)$/);return n?n[1].toLowerCase():null}}imageLocalToBase64(t){return new Promise((e,i)=>{try{const n=chrome.runtime.getURL(`${t}`);fetch(n).then(o=>o.blob()).then(o=>{const r=new FileReader;r.onloadend=()=>e(r.result),r.onerror=i,r.readAsDataURL(o)}).catch(i)}catch(n){i(n)}})}scrollToElement(t,e="smooth"){t&&t.scrollIntoView({behavior:e,block:"center",inline:"nearest"})}getElementPointCoores(t){if(!t)return null;const e=t.getBoundingClientRect(),i=e.left+e.width/2,n=e.top+e.height/2;return{x:i,y:n}}setInputValue(t,e){t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0})),t.dispatchEvent(new Event("change",{bubbles:!0})))}writeToInput=async(t,e)=>{let i;if(typeof e=="string"?i=await this.getElementByXPath(e):i=e,!i)throw new Error("Xpath is not found with value: "+t);this.scrollToElement(i),this.clickByPoint(i),this.setInputValue(i,t)};pressEnter(t){if(!t)throw new Error("Textarea not found:",t);t.focus(),["keydown","keypress","keyup"].forEach(e=>{t.dispatchEvent(new KeyboardEvent(e,{key:"Enter",code:"Enter",keyCode:13,which:13,bubbles:!0,cancelable:!0}))})}findNestedElement(t,e,i){const n=document.querySelector(t);if(!n)return null;const o=n.querySelectorAll(e);for(const r of o)if(r.innerText.trim().toLowerCase()===i.toLowerCase())return r;return null}findNestedIcElement(t,e,i){let n=null;if(typeof t=="string"){if(document.querySelector(t),!n)return null}else n=t;const o=n.querySelectorAll(e);for(const r of o)if(r.innerText.trim().toLowerCase().includes(i.toLowerCase()))return r;return null}findElInParent(t,e){return t&&t.parentElement?.querySelector(e)||null}waitForElement(t,e=100){return new Promise(i=>{const n=l=>l.offsetParent!==null&&(l.childElementCount>0||l.innerText.trim().length>0),o=()=>{const l=document.querySelector(t);l&&n(l)&&(r.disconnect(),clearInterval(c),i(l))},r=new MutationObserver(o);r.observe(document.body,{childList:!0,subtree:!0});const c=setInterval(o,e);o()})}}const s=new f;class g{sellingPath="https://www.facebook.com/marketplace/you/selling";marketPath="https://www.facebook.com/marketplace";createItem="https://www.facebook.com/marketplace/create/item";editItem="https://www.facebook.com/marketplace/edit";selectors={file__image_input:'input[type="file"]',next_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[5]/div/div/div",update_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[4]/div/div/div",publish_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[4]/div[2]/div/div",products:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[2]/div/div/div[2]/div[1]/div/div[2]/div/div/span/div",products_fallback:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[2]/div/div/div[2]/div[1]/div/div[3]/div/div/span/div[2]/div",option_btn:"/html/body/div[1]/div/div[1]/div/div[4]/div/div/div[1]/div/div[2]/div/div/div/div/div/div/div[3]/div/div/div/div/div[1]/div",option_btn_fallback:"/html/body/div[1]/div/div[1]/div/div[4]/div/div/div[1]/div/div[2]/div/div/div/div[3]/div[2]/div/div[2]/div[1]",close_btn_modal_feedback:"/html/body/div[1]/div/div[1]/div/div[4]/div/div/div[1]/div/div[2]/div/div/div/div[2]/div",images_container:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[2]/div[1]/div[2]/div/div/div[3]/div[2]/div",description_edit_input:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[3]/div[1]/div[2]/div/div/div[9]/div/div/div[2]/div/div/div/label/div/div/textarea",sku_edit_input:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[3]/div[1]/div[2]/div/div/div[9]/div/div/div[5]/div/div/div[1]/label/div/input",new_item_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[3]/div[1]/div[2]/div/div/div[7]/a/div",item_for_sell:"/html/body/div[1]/div/div[1]/div/div[5]/div/div/div[3]/div[2]/div[2]/div/div/div[2]/div[1]/div/span/div/div/div[1]/div/div",market_container:'[aria-label="Marketplace"]',collection_marketplace:'[aria-label="Collection of your Marketplace items"]'};findInputByTitle(t,e="input"){const i=s.findNestedElement(this.selectors.market_container,"span",t);if(!i)throw new Error("Not found input by title: "+t);return s.findElInParent(i,e)}clearImages=async()=>{document.querySelectorAll('[aria-label="Remove"]').forEach(t=>t?.click())};uploadImages=async t=>{const e=new DataTransfer;for(const n of t.images){const o=await s.imageUrlToBase64(n),r=s.base64ToFile(o,t.sku,s.getImageExtension(n)||"jpg");e.items.add(r)}const i=document.querySelector(this.selectors.file__image_input);i?(i.files=e.files,i.dispatchEvent(new Event("change",{bubbles:!0}))):console.error("Không tìm thấy input[type='file']")};chooseSelect=async(t,e,i='[aria-label="Dropdown menu"]')=>{const n=s.findNestedElement(this.selectors.market_container,"span",e);s.scrollToElement(n),await a(500,600),n?.click(),await a(500,600);const o=s.findNestedElement(i,"span",t);if(await a(500,600),!o)throw new Error(`No child found with text "${t}"`);s.scrollToElement(o),await a(500,600),o.click(),await a(500,600)};chooseLocation=async t=>{const e=this.findInputByTitle("location");await s.writeToInput(t,e),await u(600);const i=document.querySelector('[role="listbox"]')?.querySelectorAll("li")||[],n=Array.from(i).find(o=>o.innerHTML.trim().toLowerCase().includes(t.toLowerCase()));if(!n)throw new Error(`No child found with text "${t}"`);s.scrollToElement(n),await u(400),s.clickByPoint(n)};writeTags=async t=>{const e=this.findInputByTitle("product tags","textarea");if(!e)throw new Error("Input is not found");s.scrollToElement(e),await u(500);for(const i of t)await s.writeToInput(i,e),await u(300),s.pressEnter(e)};clickNext=async()=>{const t=await s.getElementByXPath(this.selectors.next_btn);if(!t)throw new Error("Next button is not found");s.clickByPoint(t)};clickUpdate=async()=>{const t=await s.getElementByXPath(this.selectors.update_btn);if(!t)throw new Error("Next button is not found");s.clickByPoint(t)};clickPublist=async()=>{const t=await s.getElementByXPath(this.selectors.publish_btn);if(!t)throw new Error("Publist button is not found");s.clickByPoint(t)};handlePublist=async t=>{await a(600,1e3),await this.uploadImages(t),await a(600,1e3);const e=this.findInputByTitle("title");s.writeToInput(t.title,e),await a(600,1e3);const i=this.findInputByTitle("price");if(s.writeToInput(String(t.price),i),await a(600,1e3),await this.chooseSelect(t.category,"category"),await a(600,1e3),await this.chooseSelect(t.condition,"condition",'[aria-label="Select an option"]'),t.brand){await a(600,1e3);const r=this.findInputByTitle("brand");await s.writeToInput(t.brand,r)}await a(600,1e3);const n=this.findInputByTitle("description","textarea");await s.writeToInput(t.description,n),await a(600,1e3),await this.writeTags(t.tags),await a(600,1e3);const o=this.findInputByTitle("sku");return await s.writeToInput(t.sku,o),t?.location&&(await a(600,1e3),await this.chooseLocation(t.location)),await a(300,500),await this.clickNext(),!0};handleRePublist=async t=>{await s.waitForElement('[aria-label="Collection of your Marketplace items"]');const e=await this.getOptionEls(t);this.clickItemInList(e,"edit"),await u(1e3),await this.waitForPageReady(this.editItem,this.selectors.market_container),await a(1e3,2e3),await this.clearImages(),await a(600,1e3),await this.uploadImages(t),await a(600,1e3);const i=this.findInputByTitle("title");s.writeToInput(t.title,i),await a(600,1e3);const n=this.findInputByTitle("price");s.writeToInput(String(t.price),n),await a(600,1e3),await this.chooseSelect(t.category,"category"),await a(600,1e3),await this.chooseSelect(t.condition,"condition",'[aria-label="Select an option"]'),await a(600,1e3);const o=this.findInputByTitle("description","textarea");return await s.writeToInput(t.description,o),await a(600,1e3),await this.writeTags(t.tags),await a(600,1e3),t?.location&&(await a(600,1e3),await this.chooseLocation(t.location)),!0};async getInfo(){try{const e=Date.now(),i=await new Promise(o=>{chrome.storage.local.get("meCache",r=>{o(r.meCache?JSON.parse(r.meCache):null)})});if(i&&e-i.timestamp<72e5)return i.data;const n=await fetch("/me");if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return chrome.storage.local.set({meCache:JSON.stringify({data:{url:n.url},timestamp:e})}),n}catch(e){return console.error("Failed to get /me:",e),null}}getProducts=async()=>{const t=await s.getElementByXPath(this.selectors.products),e=await s.getElementByXPath(this.selectors.products_fallback);if(!t&&!e)throw new Error("List element has changed. Please connect to DEV");const i=[t,e].filter(Boolean);if(i.length===0)return[];const n=await this.getInfo();return i.flatMap(o=>this.extractListings(o,n))};extractListings(t,e){return Array.from(t.children).map(n=>{const r=n.querySelector('span[dir="auto"], div[dir="auto"]')?.textContent?.trim()||"",c=document.querySelectorAll(`[aria-label="${r}"]`),l=Array.from(c).filter(p=>!p.querySelector("img"))[0],h=s.findNestedIcElement(l,"span","AU$")?.textContent?.match(/[\d,]+(?:\.\d+)?/),m=h?parseFloat(h[0].replace(/,/g,"")):0;return{title:r,price:m,el:t,url_info:e?.url}})}closeTab=async t=>{chrome.runtime.sendMessage({type:"close-tab",payload:t})};clickOptionOfProduct(t){const e=document.querySelector(`[aria-label="More options for ${t.title}"]`);if(!e)throw new Error(`Not found option buttin in product ${`[aria-label="More options for ${t.title}"]`}, ID: ${t.id}`);s.scrollToElement(e),e.click?.()}async getOptionEls(t){return this.clickOptionOfProduct(t),await u(2e3),Array.from(document.querySelectorAll('[role="menuitem"]'))}clickItemInList(t,e){const i=t.find(n=>n.textContent.toLocaleLowerCase().includes(e));if(!i)throw new Error(`Not found item ${e} in options list`);i.click?.()}getItemInList(t,e){const i=t.find(n=>n.textContent.toLocaleLowerCase().includes(e));if(!i)throw new Error(`Not found item ${e} in options list`);return i}handleDelete=async t=>{const e=await this.getOptionEls(t);this.clickItemInList(e,"delete"),await u(1e3),(await s.getElementByXPath(this.selectors.option_btn,{xpathFallback:this.selectors.option_btn_fallback}))?.click(),(await s.getElementByXPath(this.selectors.close_btn_modal_feedback))?.click(),chrome.runtime.sendMessage({type:"delete-done"})};waitForUrlContains(t,e=1e4){return new Promise((i,n)=>{const o=Date.now(),r=()=>{window.location.href.includes(t)?i():Date.now()-o>e?n(new Error("Timeout waiting for URL change")):setTimeout(r,500)};r()})}waitForPageReady(t,e,i=15e3){return new Promise((n,o)=>{const r=Date.now(),c=async()=>{window.location.href.includes(t)&&document.querySelector(e)?n():Date.now()-r>i?o(new Error("Timeout waiting for selling page ready")):setTimeout(c,500)};c()})}syncListing=async()=>{window.location.href.includes(this.sellingPath)||(document.querySelector('a[href="/marketplace/you/selling/"]')?.click?.(),await this.waitForPageReady(this.sellingPath,this.selectors.products)),await w.getProducts()};extractMarketplaceItemId(t){const e=t.match(/\/marketplace\/item\/(\d+)/);return e?e[1]:null}handleGetPublistID=async t=>{const i=(await w.getProducts()).find(c=>c.title==t.title&&c.price==t.price);if(!i)return;i.el;const n=await this.getOptionEls(t),o=this.getItemInList(n,"view listing"),r=this.extractMarketplaceItemId(o.href);return this.clickOptionOfProduct(t),r};async gotoPublist(){(await s.getElementByXPath(this.selectors.new_item_btn))?.click(),await a(400,800),(await s.getElementByXPath(this.selectors.item_for_sell))?.click()}async gotoSell(){document.querySelector('[href="/marketplace/you/selling/"]')?.click()}}const w=new g;class b{role;listeners;constructor(t){this.role=t,this.listeners=new Map,chrome.runtime.onMessage.addListener((e,i,n)=>{if(e?.type&&this.listeners.has(e.type))return this.listeners.get(e.type)(e.payload,i,n),!0})}on(t,e){this.listeners.set(t,e)}send(t,e,i){const n={from:this.role,to:t,type:e,payload:i};(this.role==="popup"||this.role==="content")&&chrome.runtime.sendMessage(n),this.role==="background"&&(t==="content"?chrome.tabs.query({active:!0,currentWindow:!0},o=>{o[0]?.id&&chrome.tabs.sendMessage(o[0].id,n,()=>{chrome.runtime.lastError&&console.warn("Không gửi được tới content script:",chrome.runtime.lastError.message)})}):t==="popup"&&chrome.runtime.sendMessage(n,()=>{chrome.runtime.lastError&&console.warn("Không gửi được tới popup:",chrome.runtime.lastError.message)}))}sendToTab(t,e,i){if(this.role!=="background")throw new Error("sendToTab chỉ được gọi từ background");const n={from:this.role,to:"content",type:e,payload:i};chrome.tabs.sendMessage(t,n,()=>{chrome.runtime.lastError&&console.warn(`Không gửi được tới content script ở tab ${t}:`,chrome.runtime.lastError.message)})}waitForMessage(t,e=3e4){return new Promise((i,n)=>{let o;const r=c=>{clearTimeout(o),this.off(t,r),i(c)};o=setTimeout(()=>{this.off(t,r),n(new Error(`Timeout khi chờ message: ${t}`))},e),this.on(t,r)})}off(t,e){this.listeners.get(t)===e&&this.listeners.delete(t)}}export{b as M,w as f,s as t};
diff --git a/releases/auto-post-facebook-extensions_1.3/assets/message.service-Ccf3ag2D.js b/releases/auto-post-facebook-extensions_1.3/assets/message.service-Ccf3ag2D.js
new file mode 100644
index 0000000..5dab4ce
--- /dev/null
+++ b/releases/auto-post-facebook-extensions_1.3/assets/message.service-Ccf3ag2D.js
@@ -0,0 +1 @@
+import{d as a,a as u}from"./app-C7VSS-q9.js";class f{base64ToFile(t,e,i){const n=t.includes(",")?t.split(",")[1]:t,o=atob(n),r=new ArrayBuffer(o.length),c=new Uint8Array(r);for(let d=0;d{let r=0,c=!1;const l=()=>{const d=document.evaluate(c&&n?n:t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(d instanceof HTMLElement){o(d);return}r++,r{const r=new FileReader;r.onloadend=()=>{typeof r.result=="string"?n(r.result.split(",")[1]):o("Không thể đọc dữ liệu ảnh")},r.onerror=o,r.readAsDataURL(i)})}getImageExtension(t){try{const i=new URL(t).pathname.match(/\.([a-zA-Z0-9]+)$/);return i?i[1].toLowerCase():null}catch{const n=t.split("?")[0].match(/\.([a-zA-Z0-9]+)$/);return n?n[1].toLowerCase():null}}imageLocalToBase64(t){return new Promise((e,i)=>{try{const n=chrome.runtime.getURL(`${t}`);fetch(n).then(o=>o.blob()).then(o=>{const r=new FileReader;r.onloadend=()=>e(r.result),r.onerror=i,r.readAsDataURL(o)}).catch(i)}catch(n){i(n)}})}scrollToElement(t,e="smooth"){t&&t.scrollIntoView({behavior:e,block:"center",inline:"nearest"})}getElementPointCoores(t){if(!t)return null;const e=t.getBoundingClientRect(),i=e.left+e.width/2,n=e.top+e.height/2;return{x:i,y:n}}setInputValue(t,e){t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0})),t.dispatchEvent(new Event("change",{bubbles:!0})))}writeToInput=async(t,e)=>{let i;if(typeof e=="string"?i=await this.getElementByXPath(e):i=e,!i)throw new Error("Xpath is not found with value: "+t);this.scrollToElement(i),this.clickByPoint(i),this.setInputValue(i,t)};pressEnter(t){if(!t)throw new Error("Textarea not found:",t);t.focus(),["keydown","keypress","keyup"].forEach(e=>{t.dispatchEvent(new KeyboardEvent(e,{key:"Enter",code:"Enter",keyCode:13,which:13,bubbles:!0,cancelable:!0}))})}findNestedElement(t,e,i){const n=document.querySelector(t);if(!n)return null;const o=n.querySelectorAll(e);for(const r of o)if(r.innerText.trim().toLowerCase()===i.toLowerCase())return r;return null}findNestedIcElement(t,e,i){let n=null;if(typeof t=="string"){if(document.querySelector(t),!n)return null}else n=t;const o=n.querySelectorAll(e);for(const r of o)if(r.innerText.trim().toLowerCase().includes(i.toLowerCase()))return r;return null}findElInParent(t,e){return t&&t.parentElement?.querySelector(e)||null}waitForElement(t,e=100){return new Promise(i=>{const n=l=>l.offsetParent!==null&&(l.childElementCount>0||l.innerText.trim().length>0),o=()=>{const l=document.querySelector(t);l&&n(l)&&(r.disconnect(),clearInterval(c),i(l))},r=new MutationObserver(o);r.observe(document.body,{childList:!0,subtree:!0});const c=setInterval(o,e);o()})}}const s=new f;class g{sellingPath="https://www.facebook.com/marketplace/you/selling";marketPath="https://www.facebook.com/marketplace";createItem="https://www.facebook.com/marketplace/create/item";editItem="https://www.facebook.com/marketplace/edit";selectors={file__image_input:'input[type="file"]',next_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[5]/div/div/div",update_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[4]/div/div/div",publish_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[4]/div[2]/div/div",products:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[2]/div/div/div[2]/div[1]/div/div[3]/div/div/span/div",products_fallback:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[2]/div/div/div[2]/div[1]/div/div[3]/div/div/span/div[2]/div",option_btn:"/html/body/div[1]/div/div[1]/div/div[4]/div/div/div[1]/div/div[2]/div/div/div/div/div/div/div[3]/div/div/div/div/div[1]/div",option_btn_fallback:"/html/body/div[1]/div/div[1]/div/div[4]/div/div/div[1]/div/div[2]/div/div/div/div[3]/div[2]/div/div[2]/div[1]",close_btn_modal_feedback:"/html/body/div[1]/div/div[1]/div/div[4]/div/div/div[1]/div/div[2]/div/div/div/div[2]/div",images_container:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[2]/div[1]/div[2]/div/div/div[3]/div[2]/div",description_edit_input:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[3]/div[1]/div[2]/div/div/div[9]/div/div/div[2]/div/div/div/label/div/div/textarea",sku_edit_input:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[3]/div[1]/div[2]/div/div/div[9]/div/div/div[5]/div/div/div[1]/label/div/input",new_item_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[3]/div[1]/div[2]/div/div/div[7]/a/div",item_for_sell:"/html/body/div[1]/div/div[1]/div/div[5]/div/div/div[3]/div[2]/div[2]/div/div/div[2]/div[1]/div/span/div/div/div[1]/div/div",market_container:'[aria-label="Marketplace"]',collection_marketplace:'[aria-label="Collection of your Marketplace items"]'};findInputByTitle(t,e="input"){const i=s.findNestedElement(this.selectors.market_container,"span",t);if(!i)throw new Error("Not found input by title: "+t);return s.findElInParent(i,e)}clearImages=async()=>{document.querySelectorAll('[aria-label="Remove"]').forEach(t=>t?.click())};uploadImages=async t=>{const e=new DataTransfer;for(const n of t.images){const o=await s.imageUrlToBase64(n),r=s.base64ToFile(o,t.sku,s.getImageExtension(n)||"jpg");e.items.add(r)}const i=document.querySelector(this.selectors.file__image_input);i?(i.files=e.files,i.dispatchEvent(new Event("change",{bubbles:!0}))):console.error("Không tìm thấy input[type='file']")};chooseSelect=async(t,e,i='[aria-label="Dropdown menu"]')=>{const n=s.findNestedElement(this.selectors.market_container,"span",e);s.scrollToElement(n),await a(500,600),n?.click(),await a(500,600);const o=s.findNestedElement(i,"span",t);if(await a(500,600),!o)throw new Error(`No child found with text "${t}"`);s.scrollToElement(o),await a(500,600),o.click(),await a(500,600)};chooseLocation=async t=>{const e=this.findInputByTitle("location");await s.writeToInput(t,e),await u(600);const i=document.querySelector('[role="listbox"]')?.querySelectorAll("li")||[],n=Array.from(i).find(o=>o.innerHTML.trim().toLowerCase().includes(t.toLowerCase()));if(!n)throw new Error(`No child found with text "${t}"`);s.scrollToElement(n),await u(400),s.clickByPoint(n)};writeTags=async t=>{const e=this.findInputByTitle("product tags","textarea");if(!e)throw new Error("Input is not found");s.scrollToElement(e),await u(500);for(const i of t)await s.writeToInput(i,e),await u(300),s.pressEnter(e)};clickNext=async()=>{const t=await s.getElementByXPath(this.selectors.next_btn);if(!t)throw new Error("Next button is not found");s.clickByPoint(t)};clickUpdate=async()=>{const t=await s.getElementByXPath(this.selectors.update_btn);if(!t)throw new Error("Next button is not found");s.clickByPoint(t)};clickPublist=async()=>{const t=await s.getElementByXPath(this.selectors.publish_btn);if(!t)throw new Error("Publist button is not found");s.clickByPoint(t)};handlePublist=async t=>{await a(600,1e3),await this.uploadImages(t),await a(600,1e3);const e=this.findInputByTitle("title");s.writeToInput(t.title,e),await a(600,1e3);const i=this.findInputByTitle("price");if(s.writeToInput(String(t.price),i),await a(600,1e3),await this.chooseSelect(t.category,"category"),await a(600,1e3),await this.chooseSelect(t.condition,"condition",'[aria-label="Select an option"]'),t.brand){await a(600,1e3);const r=this.findInputByTitle("brand");await s.writeToInput(t.brand,r)}await a(600,1e3);const n=this.findInputByTitle("description","textarea");await s.writeToInput(t.description,n),await a(600,1e3),await this.writeTags(t.tags),await a(600,1e3);const o=this.findInputByTitle("sku");return await s.writeToInput(t.sku,o),t?.location&&(await a(600,1e3),await this.chooseLocation(t.location)),await a(300,500),await this.clickNext(),!0};handleRePublist=async t=>{await s.waitForElement('[aria-label="Collection of your Marketplace items"]');const e=await this.getOptionEls(t);this.clickItemInList(e,"edit"),await u(1e3),await this.waitForPageReady(this.editItem,this.selectors.market_container),await a(1e3,2e3),await this.clearImages(),await a(600,1e3),await this.uploadImages(t),await a(600,1e3);const i=this.findInputByTitle("title");s.writeToInput(t.title,i),await a(600,1e3);const n=this.findInputByTitle("price");s.writeToInput(String(t.price),n),await a(600,1e3),await this.chooseSelect(t.category,"category"),await a(600,1e3),await this.chooseSelect(t.condition,"condition",'[aria-label="Select an option"]'),await a(600,1e3);const o=this.findInputByTitle("description","textarea");return await s.writeToInput(t.description,o),await a(600,1e3),await this.writeTags(t.tags),await a(600,1e3),t?.location&&(await a(600,1e3),await this.chooseLocation(t.location)),!0};async getInfo(){try{const e=Date.now(),i=await new Promise(o=>{chrome.storage.local.get("meCache",r=>{o(r.meCache?JSON.parse(r.meCache):null)})});if(i&&e-i.timestamp<72e5)return i.data;const n=await fetch("/me");if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return chrome.storage.local.set({meCache:JSON.stringify({data:{url:n.url},timestamp:e})}),n}catch(e){return console.error("Failed to get /me:",e),null}}getProducts=async()=>{const t=await s.getElementByXPath(this.selectors.products),e=await s.getElementByXPath(this.selectors.products_fallback);if(!t&&!e)throw new Error("List element has changed. Please connect to DEV");const i=[t,e].filter(Boolean);if(i.length===0)return[];const n=await this.getInfo();return i.flatMap(o=>this.extractListings(o,n))};extractListings(t,e){return Array.from(t.children).map(n=>{const r=n.querySelector('span[dir="auto"], div[dir="auto"]')?.textContent?.trim()||"",c=document.querySelectorAll(`[aria-label="${r}"]`),l=Array.from(c).filter(p=>!p.querySelector("img"))[0],h=s.findNestedIcElement(l,"span","AU$")?.textContent?.match(/[\d,]+(?:\.\d+)?/),m=h?parseFloat(h[0].replace(/,/g,"")):0;return{title:r,price:m,el:t,url_info:e?.url}})}closeTab=async t=>{chrome.runtime.sendMessage({type:"close-tab",payload:t})};clickOptionOfProduct(t){const e=document.querySelector(`[aria-label="More options for ${t.title}"]`);if(!e)throw new Error(`Not found option buttin in product ${`[aria-label="More options for ${t.title}"]`}, ID: ${t.id}`);s.scrollToElement(e),e.click?.()}async getOptionEls(t){return this.clickOptionOfProduct(t),await u(2e3),Array.from(document.querySelectorAll('[role="menuitem"]'))}clickItemInList(t,e){const i=t.find(n=>n.textContent.toLocaleLowerCase().includes(e));if(!i)throw new Error(`Not found item ${e} in options list`);i.click?.()}getItemInList(t,e){const i=t.find(n=>n.textContent.toLocaleLowerCase().includes(e));if(!i)throw new Error(`Not found item ${e} in options list`);return i}handleDelete=async t=>{const e=await this.getOptionEls(t);this.clickItemInList(e,"delete"),await u(1e3),(await s.getElementByXPath(this.selectors.option_btn,{xpathFallback:this.selectors.option_btn_fallback}))?.click(),(await s.getElementByXPath(this.selectors.close_btn_modal_feedback))?.click(),chrome.runtime.sendMessage({type:"delete-done"})};waitForUrlContains(t,e=1e4){return new Promise((i,n)=>{const o=Date.now(),r=()=>{window.location.href.includes(t)?i():Date.now()-o>e?n(new Error("Timeout waiting for URL change")):setTimeout(r,500)};r()})}waitForPageReady(t,e,i=15e3){return new Promise((n,o)=>{const r=Date.now(),c=async()=>{window.location.href.includes(t)&&document.querySelector(e)?n():Date.now()-r>i?o(new Error("Timeout waiting for selling page ready")):setTimeout(c,500)};c()})}syncListing=async()=>{window.location.href.includes(this.sellingPath)||(document.querySelector('a[href="/marketplace/you/selling/"]')?.click?.(),await this.waitForPageReady(this.sellingPath,this.selectors.products)),await w.getProducts()};extractMarketplaceItemId(t){const e=t.match(/\/marketplace\/item\/(\d+)/);return e?e[1]:null}handleGetPublistID=async t=>{const i=(await w.getProducts()).find(c=>c.title==t.title&&c.price==t.price);if(!i)return;i.el;const n=await this.getOptionEls(t),o=this.getItemInList(n,"view listing"),r=this.extractMarketplaceItemId(o.href);return this.clickOptionOfProduct(t),r};async gotoPublist(){(await s.getElementByXPath(this.selectors.new_item_btn))?.click(),await a(400,800),(await s.getElementByXPath(this.selectors.item_for_sell))?.click()}async gotoSell(){document.querySelector('[href="/marketplace/you/selling/"]')?.click()}}const w=new g;class b{role;listeners;constructor(t){this.role=t,this.listeners=new Map,chrome.runtime.onMessage.addListener((e,i,n)=>{if(e?.type&&this.listeners.has(e.type))return this.listeners.get(e.type)(e.payload,i,n),!0})}on(t,e){this.listeners.set(t,e)}send(t,e,i){const n={from:this.role,to:t,type:e,payload:i};(this.role==="popup"||this.role==="content")&&chrome.runtime.sendMessage(n),this.role==="background"&&(t==="content"?chrome.tabs.query({active:!0,currentWindow:!0},o=>{o[0]?.id&&chrome.tabs.sendMessage(o[0].id,n,()=>{chrome.runtime.lastError&&console.warn("Không gửi được tới content script:",chrome.runtime.lastError.message)})}):t==="popup"&&chrome.runtime.sendMessage(n,()=>{chrome.runtime.lastError&&console.warn("Không gửi được tới popup:",chrome.runtime.lastError.message)}))}sendToTab(t,e,i){if(this.role!=="background")throw new Error("sendToTab chỉ được gọi từ background");const n={from:this.role,to:"content",type:e,payload:i};chrome.tabs.sendMessage(t,n,()=>{chrome.runtime.lastError&&console.warn(`Không gửi được tới content script ở tab ${t}:`,chrome.runtime.lastError.message)})}waitForMessage(t,e=3e4){return new Promise((i,n)=>{let o;const r=c=>{clearTimeout(o),this.off(t,r),i(c)};o=setTimeout(()=>{this.off(t,r),n(new Error(`Timeout khi chờ message: ${t}`))},e),this.on(t,r)})}off(t,e){this.listeners.get(t)===e&&this.listeners.delete(t)}}export{b as M,w as f,s as t};
diff --git a/releases/auto-post-facebook-extensions_1.3/assets/popup-7ET7snnx.js b/releases/auto-post-facebook-extensions_1.3/assets/popup-7ET7snnx.js
new file mode 100644
index 0000000..3fc8fe0
--- /dev/null
+++ b/releases/auto-post-facebook-extensions_1.3/assets/popup-7ET7snnx.js
@@ -0,0 +1,181 @@
+import{g as Uh}from"./_commonjsHelpers-CqkleIqs.js";import{p as dn,C as Y1}from"./contants-D9-9W2RY.js";import{a as qb,r as Z1}from"./app-C7VSS-q9.js";function Q1(t,r){for(var s=0;si[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Pf={exports:{}},Eo={};/**
+ * @license React
+ * react-jsx-runtime.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var vy;function X1(){if(vy)return Eo;vy=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function s(i,l,c){var d=null;if(c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),"key"in l){c={};for(var h in l)h!=="key"&&(c[h]=l[h])}else c=l;return l=c.ref,{$$typeof:t,type:i,key:d,ref:l!==void 0?l:null,props:c}}return Eo.Fragment=r,Eo.jsx=s,Eo.jsxs=s,Eo}var yy;function K1(){return yy||(yy=1,Pf.exports=X1()),Pf.exports}var y=K1(),xi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},os=typeof window>"u"||"Deno"in globalThis;function en(){}function $1(t,r){return typeof t=="function"?t(r):t}function ih(t){return typeof t=="number"&&t>=0&&t!==1/0}function Ib(t,r){return Math.max(t+(r||0)-Date.now(),0)}function Aa(t,r){return typeof t=="function"?t(r):t}function Un(t,r){return typeof t=="function"?t(r):t}function by(t,r){const{type:s="all",exact:i,fetchStatus:l,predicate:c,queryKey:d,stale:h}=t;if(d){if(i){if(r.queryHash!==Lh(d,r.options))return!1}else if(!jo(r.queryKey,d))return!1}if(s!=="all"){const m=r.isActive();if(s==="active"&&!m||s==="inactive"&&m)return!1}return!(typeof h=="boolean"&&r.isStale()!==h||l&&l!==r.state.fetchStatus||c&&!c(r))}function xy(t,r){const{exact:s,status:i,predicate:l,mutationKey:c}=t;if(c){if(!r.options.mutationKey)return!1;if(s){if(ls(r.options.mutationKey)!==ls(c))return!1}else if(!jo(r.options.mutationKey,c))return!1}return!(i&&r.state.status!==i||l&&!l(r))}function Lh(t,r){return(r?.queryKeyHashFn||ls)(t)}function ls(t){return JSON.stringify(t,(r,s)=>oh(s)?Object.keys(s).sort().reduce((i,l)=>(i[l]=s[l],i),{}):s)}function jo(t,r){return t===r?!0:typeof t!=typeof r?!1:t&&r&&typeof t=="object"&&typeof r=="object"?Object.keys(r).every(s=>jo(t[s],r[s])):!1}function Fb(t,r){if(t===r)return t;const s=Sy(t)&&Sy(r);if(s||oh(t)&&oh(r)){const i=s?t:Object.keys(t),l=i.length,c=s?r:Object.keys(r),d=c.length,h=s?[]:{},m=new Set(i);let p=0;for(let v=0;v{setTimeout(r,t)})}function lh(t,r,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,r):s.structuralSharing!==!1?Fb(t,r):r}function J1(t,r,s=0){const i=[...t,r];return s&&i.length>s?i.slice(1):i}function eE(t,r,s=0){const i=[r,...t];return s&&i.length>s?i.slice(0,-1):i}var Ph=Symbol();function Gb(t,r){return!t.queryFn&&r?.initialPromise?()=>r.initialPromise:!t.queryFn||t.queryFn===Ph?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Yb(t,r){return typeof t=="function"?t(...r):!!t}var tE=class extends xi{#t;#e;#n;constructor(){super(),this.#n=t=>{if(!os&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Vh=new tE,nE=class extends xi{#t=!0;#e;#n;constructor(){super(),this.#n=t=>{if(!os&&window.addEventListener){const r=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){this.#t!==t&&(this.#t=t,this.listeners.forEach(s=>{s(t)}))}isOnline(){return this.#t}},Bc=new nE;function ch(){let t,r;const s=new Promise((l,c)=>{t=l,r=c});s.status="pending",s.catch(()=>{});function i(l){Object.assign(s,l),delete s.resolve,delete s.reject}return s.resolve=l=>{i({status:"fulfilled",value:l}),t(l)},s.reject=l=>{i({status:"rejected",reason:l}),r(l)},s}function rE(t){return Math.min(1e3*2**t,3e4)}function Zb(t){return(t??"online")==="online"?Bc.isOnline():!0}var Qb=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Xb(t){let r=!1,s=0,i;const l=ch(),c=()=>l.status!=="pending",d=_=>{c()||(w(new Qb(_)),t.abort?.())},h=()=>{r=!0},m=()=>{r=!1},p=()=>Vh.isFocused()&&(t.networkMode==="always"||Bc.isOnline())&&t.canRun(),v=()=>Zb(t.networkMode)&&t.canRun(),g=_=>{c()||(i?.(),l.resolve(_))},w=_=>{c()||(i?.(),l.reject(_))},E=()=>new Promise(_=>{i=R=>{(c()||p())&&_(R)},t.onPause?.()}).then(()=>{i=void 0,c()||t.onContinue?.()}),T=()=>{if(c())return;let _;const R=s===0?t.initialPromise:void 0;try{_=R??t.fn()}catch(D){_=Promise.reject(D)}Promise.resolve(_).then(g).catch(D=>{if(c())return;const N=t.retry??(os?0:3),z=t.retryDelay??rE,k=typeof z=="function"?z(s,D):z,U=N===!0||typeof N=="number"&&sp()?void 0:E()).then(()=>{r?w(D):T()})})};return{promise:l,status:()=>l.status,cancel:d,continue:()=>(i?.(),l),cancelRetry:h,continueRetry:m,canStart:v,start:()=>(v()?T():E().then(T),l)}}var aE=t=>setTimeout(t,0);function sE(){let t=[],r=0,s=h=>{h()},i=h=>{h()},l=aE;const c=h=>{r?t.push(h):l(()=>{s(h)})},d=()=>{const h=t;t=[],h.length&&l(()=>{i(()=>{h.forEach(m=>{s(m)})})})};return{batch:h=>{let m;r++;try{m=h()}finally{r--,r||d()}return m},batchCalls:h=>(...m)=>{c(()=>{h(...m)})},schedule:c,setNotifyFunction:h=>{s=h},setBatchNotifyFunction:h=>{i=h},setScheduler:h=>{l=h}}}var zt=sE(),Kb=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ih(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(os?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},iE=class extends Kb{#t;#e;#n;#r;#a;#i;#o;constructor(t){super(),this.#o=!1,this.#i=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#n=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=oE(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(t){this.options={...this.#i,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,r){const s=lh(this.state.data,t,this.options);return this.#s({data:s,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),s}setState(t,r){this.#s({type:"setState",state:t,setStateOptions:r})}cancel(t){const r=this.#a?.promise;return this.#a?.cancel(t),r?r.then(en).catch(en):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(t=>Un(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ph||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Aa(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Ib(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(t,r){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}const s=new AbortController,i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#o=!0,s.signal)})},l=()=>{const h=Gb(this.options,r),p=(()=>{const v={client:this.#r,queryKey:this.queryKey,meta:this.meta};return i(v),v})();return this.#o=!1,this.options.persister?this.options.persister(h,p,this):h(p)},d=(()=>{const h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:l};return i(h),h})();this.options.behavior?.onFetch(d,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#s({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=Xb({initialPromise:r?.initialPromise,fn:d.fetchFn,abort:s.abort.bind(s),onFail:(h,m)=>{this.#s({type:"failed",failureCount:h,error:m})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const h=await this.#a.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof Qb){if(h.silent)return this.#a.promise;if(h.revert){if(this.setState({...this.#e,fetchStatus:"idle"}),this.state.data===void 0)throw h;return this.state.data}}throw this.#s({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#s(t){const r=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...$b(s.data,this.options),fetchMeta:t.meta??null};case"success":const i={...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=t.manual?i:void 0,i;case"error":const l=t.error;return{...s,error:l,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=r(this.state),zt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function $b(t,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zb(r.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function oE(t){const r=typeof t.initialData=="function"?t.initialData():t.initialData,s=r!==void 0,i=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var lE=class extends xi{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,r,s){const i=r.queryKey,l=r.queryHash??Lh(i,r);let c=this.get(l);return c||(c=new iE({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(r),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(c)),c}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=this.#t.get(t.queryHash);r&&(t.destroy(),r===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){zt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){const r={exact:!0,...t};return this.getAll().find(s=>by(r,s))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(s=>by(t,s)):r}notify(t){zt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){zt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){zt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},cE=class extends Kb{#t;#e;#n;constructor(t){super(),this.mutationId=t.mutationId,this.#e=t.mutationCache,this.#t=[],this.state=t.state||Wb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(r=>r!==t),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){const r=()=>{this.#r({type:"continue"})};this.#n=Xb({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(l,c)=>{this.#r({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const s=this.state.status==="pending",i=!this.#n.canStart();try{if(s)r();else{this.#r({type:"pending",variables:t,isPaused:i}),await this.#e.config.onMutate?.(t,this);const c=await this.options.onMutate?.(t);c!==this.state.context&&this.#r({type:"pending",context:c,variables:t,isPaused:i})}const l=await this.#n.start();return await this.#e.config.onSuccess?.(l,t,this.state.context,this),await this.options.onSuccess?.(l,t,this.state.context),await this.#e.config.onSettled?.(l,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(l,null,t,this.state.context),this.#r({type:"success",data:l}),l}catch(l){try{throw await this.#e.config.onError?.(l,t,this.state.context,this),await this.options.onError?.(l,t,this.state.context),await this.#e.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,l,t,this.state.context),l}finally{this.#r({type:"error",error:l})}}finally{this.#e.runNext(this)}}#r(t){const r=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),zt.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(t)}),this.#e.notify({mutation:this,type:"updated",action:t})})}};function Wb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var uE=class extends xi{constructor(t={}){super(),this.config=t,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(t,r,s){const i=new cE({mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(r),state:s});return this.add(i),i}add(t){this.#t.add(t);const r=wc(t);if(typeof r=="string"){const s=this.#e.get(r);s?s.push(t):this.#e.set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#t.delete(t)){const r=wc(t);if(typeof r=="string"){const s=this.#e.get(r);if(s)if(s.length>1){const i=s.indexOf(t);i!==-1&&s.splice(i,1)}else s[0]===t&&this.#e.delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=wc(t);if(typeof r=="string"){const i=this.#e.get(r)?.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){const r=wc(t);return typeof r=="string"?this.#e.get(r)?.find(i=>i!==t&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){zt.batch(()=>{this.#t.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(t){const r={exact:!0,...t};return this.getAll().find(s=>xy(r,s))}findAll(t={}){return this.getAll().filter(r=>xy(t,r))}notify(t){zt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return zt.batch(()=>Promise.all(t.map(r=>r.continue().catch(en))))}};function wc(t){return t.options.scope?.id}function _y(t){return{onFetch:(r,s)=>{const i=r.options,l=r.fetchOptions?.meta?.fetchMore?.direction,c=r.state.data?.pages||[],d=r.state.data?.pageParams||[];let h={pages:[],pageParams:[]},m=0;const p=async()=>{let v=!1;const g=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(r.signal.aborted?v=!0:r.signal.addEventListener("abort",()=>{v=!0}),r.signal)})},w=Gb(r.options,r.fetchOptions),E=async(T,_,R)=>{if(v)return Promise.reject();if(_==null&&T.pages.length)return Promise.resolve(T);const N=(()=>{const ee={client:r.client,queryKey:r.queryKey,pageParam:_,direction:R?"backward":"forward",meta:r.options.meta};return g(ee),ee})(),z=await w(N),{maxPages:k}=r.options,U=R?eE:J1;return{pages:U(T.pages,z,k),pageParams:U(T.pageParams,_,k)}};if(l&&c.length){const T=l==="backward",_=T?dE:Ey,R={pages:c,pageParams:d},D=_(i,R);h=await E(R,D,T)}else{const T=t??c.length;do{const _=m===0?d[0]??i.initialPageParam:Ey(i,h);if(m>0&&_==null)break;h=await E(h,_),m++}while(mr.options.persister?.(p,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},s):r.fetchFn=p}}}function Ey(t,{pages:r,pageParams:s}){const i=r.length-1;return r.length>0?t.getNextPageParam(r[i],r,s[i],s):void 0}function dE(t,{pages:r,pageParams:s}){return r.length>0?t.getPreviousPageParam?.(r[0],r,s[0],s):void 0}var fE=class{#t;#e;#n;#r;#a;#i;#o;#s;constructor(t={}){this.#t=t.queryCache||new lE,this.#e=t.mutationCache||new uE,this.#n=t.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=Vh.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=Bc.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(t){return this.#t.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#e.findAll({...t,status:"pending"}).length}getQueryData(t){const r=this.defaultQueryOptions({queryKey:t});return this.#t.get(r.queryHash)?.state.data}ensureQueryData(t){const r=this.defaultQueryOptions(t),s=this.#t.build(this,r),i=s.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(Aa(r.staleTime,s))&&this.prefetchQuery(r),Promise.resolve(i))}getQueriesData(t){return this.#t.findAll(t).map(({queryKey:r,state:s})=>{const i=s.data;return[r,i]})}setQueryData(t,r,s){const i=this.defaultQueryOptions({queryKey:t}),c=this.#t.get(i.queryHash)?.state.data,d=$1(r,c);if(d!==void 0)return this.#t.build(this,i).setData(d,{...s,manual:!0})}setQueriesData(t,r,s){return zt.batch(()=>this.#t.findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,r,s)]))}getQueryState(t){const r=this.defaultQueryOptions({queryKey:t});return this.#t.get(r.queryHash)?.state}removeQueries(t){const r=this.#t;zt.batch(()=>{r.findAll(t).forEach(s=>{r.remove(s)})})}resetQueries(t,r){const s=this.#t;return zt.batch(()=>(s.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},r)))}cancelQueries(t,r={}){const s={revert:!0,...r},i=zt.batch(()=>this.#t.findAll(t).map(l=>l.cancel(s)));return Promise.all(i).then(en).catch(en)}invalidateQueries(t,r={}){return zt.batch(()=>(this.#t.findAll(t).forEach(s=>{s.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},r)))}refetchQueries(t,r={}){const s={...r,cancelRefetch:r.cancelRefetch??!0},i=zt.batch(()=>this.#t.findAll(t).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let c=l.fetch(void 0,s);return s.throwOnError||(c=c.catch(en)),l.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(en)}fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const s=this.#t.build(this,r);return s.isStaleByTime(Aa(r.staleTime,s))?s.fetch(r):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(en).catch(en)}fetchInfiniteQuery(t){return t.behavior=_y(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(en).catch(en)}ensureInfiniteQueryData(t){return t.behavior=_y(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Bc.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,r){this.#r.set(ls(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...this.#r.values()],s={};return r.forEach(i=>{jo(t,i.queryKey)&&Object.assign(s,i.defaultOptions)}),s}setMutationDefaults(t,r){this.#a.set(ls(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...this.#a.values()],s={};return r.forEach(i=>{jo(t,i.mutationKey)&&Object.assign(s,i.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const r={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return r.queryHash||(r.queryHash=Lh(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===Ph&&(r.enabled=!1),r}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},hE=class extends xi{constructor(t,r){super(),this.options=r,this.#t=t,this.#s=null,this.#o=ch(),this.bindMethods(),this.setOptions(r)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#i;#o;#s;#p;#f;#h;#c;#u;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Cy(this.#e,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return uh(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return uh(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(t){const r=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Un(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),r._defaulted&&!Vc(this.options,r)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const i=this.hasListeners();i&&Ty(this.#e,s,this.options,r)&&this.#d(),this.updateResult(),i&&(this.#e!==s||Un(this.options.enabled,this.#e)!==Un(r.enabled,this.#e)||Aa(this.options.staleTime,this.#e)!==Aa(r.staleTime,this.#e))&&this.#g();const l=this.#v();i&&(this.#e!==s||Un(this.options.enabled,this.#e)!==Un(r.enabled,this.#e)||l!==this.#l)&&this.#y(l)}getOptimisticResult(t){const r=this.#t.getQueryCache().build(this.#t,t),s=this.createResult(r,t);return pE(this,s)&&(this.#r=s,this.#i=this.options,this.#a=this.#e.state),s}getCurrentResult(){return this.#r}trackResult(t,r){return new Proxy(t,{get:(s,i)=>(this.trackProp(i),r?.(i),i==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,i))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#e}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=this.#t.defaultQueryOptions(t),s=this.#t.getQueryCache().build(this.#t,r);return s.fetch().then(()=>this.createResult(s,r))}fetch(t){return this.#d({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(t){this.#w();let r=this.#e.fetch(this.options,t);return t?.throwOnError||(r=r.catch(en)),r}#g(){this.#x();const t=Aa(this.options.staleTime,this.#e);if(os||this.#r.isStale||!ih(t))return;const s=Ib(this.#r.dataUpdatedAt,t)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(t){this.#S(),this.#l=t,!(os||Un(this.options.enabled,this.#e)===!1||!ih(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||Vh.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#x(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(t,r){const s=this.#e,i=this.options,l=this.#r,c=this.#a,d=this.#i,m=t!==s?t.state:this.#n,{state:p}=t;let v={...p},g=!1,w;if(r._optimisticResults){const V=this.hasListeners(),J=!V&&Cy(t,r),de=V&&Ty(t,s,r,i);(J||de)&&(v={...v,...$b(p.data,t.options)}),r._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:E,errorUpdatedAt:T,status:_}=v;w=v.data;let R=!1;if(r.placeholderData!==void 0&&w===void 0&&_==="pending"){let V;l?.isPlaceholderData&&r.placeholderData===d?.placeholderData?(V=l.data,R=!0):V=typeof r.placeholderData=="function"?r.placeholderData(this.#h?.state.data,this.#h):r.placeholderData,V!==void 0&&(_="success",w=lh(l?.data,V,r),g=!0)}if(r.select&&w!==void 0&&!R)if(l&&w===c?.data&&r.select===this.#p)w=this.#f;else try{this.#p=r.select,w=r.select(w),w=lh(l?.data,w,r),this.#f=w,this.#s=null}catch(V){this.#s=V}this.#s&&(E=this.#s,w=this.#f,T=Date.now(),_="error");const D=v.fetchStatus==="fetching",N=_==="pending",z=_==="error",k=N&&D,U=w!==void 0,P={status:_,fetchStatus:v.fetchStatus,isPending:N,isSuccess:_==="success",isError:z,isInitialLoading:k,isLoading:k,data:w,dataUpdatedAt:v.dataUpdatedAt,error:E,errorUpdatedAt:T,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>m.dataUpdateCount||v.errorUpdateCount>m.errorUpdateCount,isFetching:D,isRefetching:D&&!N,isLoadingError:z&&!U,isPaused:v.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:z&&U,isStale:Bh(t,r),refetch:this.refetch,promise:this.#o,isEnabled:Un(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const V=be=>{P.status==="error"?be.reject(P.error):P.data!==void 0&&be.resolve(P.data)},J=()=>{const be=this.#o=P.promise=ch();V(be)},de=this.#o;switch(de.status){case"pending":t.queryHash===s.queryHash&&V(de);break;case"fulfilled":(P.status==="error"||P.data!==de.value)&&J();break;case"rejected":(P.status!=="error"||P.error!==de.reason)&&J();break}}return P}updateResult(){const t=this.#r,r=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#i=this.options,this.#a.data!==void 0&&(this.#h=this.#e),Vc(r,t))return;this.#r=r;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.#m.size)return!0;const c=new Set(l??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#r).some(d=>{const h=d;return this.#r[h]!==t[h]&&c.has(h)})};this.#_({listeners:s()})}#w(){const t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#e)return;const r=this.#e;this.#e=t,this.#n=t.state,this.hasListeners()&&(r?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(t){zt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function mE(t,r){return Un(r.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&r.retryOnMount===!1)}function Cy(t,r){return mE(t,r)||t.state.data!==void 0&&uh(t,r,r.refetchOnMount)}function uh(t,r,s){if(Un(r.enabled,t)!==!1&&Aa(r.staleTime,t)!=="static"){const i=typeof s=="function"?s(t):s;return i==="always"||i!==!1&&Bh(t,r)}return!1}function Ty(t,r,s,i){return(t!==r||Un(i.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&Bh(t,s)}function Bh(t,r){return Un(r.enabled,t)!==!1&&t.isStaleByTime(Aa(r.staleTime,t))}function pE(t,r){return!Vc(t.getCurrentResult(),r)}var gE=class extends xi{#t;#e=void 0;#n;#r;constructor(r,s){super(),this.#t=r,this.setOptions(s),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){const s=this.options;this.options=this.#t.defaultMutationOptions(r),Vc(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),s?.mutationKey&&this.options.mutationKey&&ls(s.mutationKey)!==ls(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(r){this.#a(),this.#i(r)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(r,s){return this.#r=s,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(r)}#a(){const r=this.#n?.state??Wb();this.#e={...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset}}#i(r){zt.batch(()=>{if(this.#r&&this.hasListeners()){const s=this.#e.variables,i=this.#e.context;r?.type==="success"?(this.#r.onSuccess?.(r.data,s,i),this.#r.onSettled?.(r.data,null,s,i)):r?.type==="error"&&(this.#r.onError?.(r.error,s,i),this.#r.onSettled?.(void 0,r.error,s,i))}this.listeners.forEach(s=>{s(this.#e)})})}},Vf={exports:{}},Ve={};/**
+ * @license React
+ * react.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var Ay;function vE(){if(Ay)return Ve;Ay=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.iterator;function w(C){return C===null||typeof C!="object"?null:(C=g&&C[g]||C["@@iterator"],typeof C=="function"?C:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,_={};function R(C,K,le){this.props=C,this.context=K,this.refs=_,this.updater=le||E}R.prototype.isReactComponent={},R.prototype.setState=function(C,K){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,K,"setState")},R.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function D(){}D.prototype=R.prototype;function N(C,K,le){this.props=C,this.context=K,this.refs=_,this.updater=le||E}var z=N.prototype=new D;z.constructor=N,T(z,R.prototype),z.isPureReactComponent=!0;var k=Array.isArray,U={H:null,A:null,T:null,S:null,V:null},ee=Object.prototype.hasOwnProperty;function P(C,K,le,Q,ae,xe){return le=xe.ref,{$$typeof:t,type:C,key:K,ref:le!==void 0?le:null,props:xe}}function V(C,K){return P(C.type,K,void 0,void 0,void 0,C.props)}function J(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function de(C){var K={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(le){return K[le]})}var be=/\/+/g;function ie(C,K){return typeof C=="object"&&C!==null&&C.key!=null?de(""+C.key):K.toString(36)}function se(){}function ce(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(se,se):(C.status="pending",C.then(function(K){C.status==="pending"&&(C.status="fulfilled",C.value=K)},function(K){C.status==="pending"&&(C.status="rejected",C.reason=K)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function pe(C,K,le,Q,ae){var xe=typeof C;(xe==="undefined"||xe==="boolean")&&(C=null);var ge=!1;if(C===null)ge=!0;else switch(xe){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(C.$$typeof){case t:case r:ge=!0;break;case v:return ge=C._init,pe(ge(C._payload),K,le,Q,ae)}}if(ge)return ae=ae(C),ge=Q===""?"."+ie(C,0):Q,k(ae)?(le="",ge!=null&&(le=ge.replace(be,"$&/")+"/"),pe(ae,K,le,"",function(Be){return Be})):ae!=null&&(J(ae)&&(ae=V(ae,le+(ae.key==null||C&&C.key===ae.key?"":(""+ae.key).replace(be,"$&/")+"/")+ge)),K.push(ae)),1;ge=0;var re=Q===""?".":Q+":";if(k(C))for(var fe=0;fe{const r=x.useContext(e0);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},Dj=({client:t,children:r})=>(x.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),y.jsx(e0.Provider,{value:t,children:r})),n0=x.createContext(!1),yE=()=>x.useContext(n0);n0.Provider;function bE(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var xE=x.createContext(bE()),SE=()=>x.useContext(xE),wE=(t,r)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(r.isReset()||(t.retryOnMount=!1))},_E=t=>{x.useEffect(()=>{t.clearReset()},[t])},EE=({result:t,errorResetBoundary:r,throwOnError:s,query:i,suspense:l})=>t.isError&&!r.isReset()&&!t.isFetching&&i&&(l&&t.data===void 0||Yb(s,[t.error,i])),CE=t=>{if(t.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...i)=>r(s(...i)):r(s),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},TE=(t,r)=>t.isLoading&&t.isFetching&&!r,AE=(t,r)=>t?.suspense&&r.isPending,Oy=(t,r,s)=>r.fetchOptimistic(t).catch(()=>{s.clearReset()});function RE(t,r,s){const i=yE(),l=SE(),c=t0(),d=c.defaultQueryOptions(t);c.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=i?"isRestoring":"optimistic",CE(d),wE(d,l),_E(l);const h=!c.getQueryCache().get(d.queryHash),[m]=x.useState(()=>new r(c,d)),p=m.getOptimisticResult(d),v=!i&&t.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(g=>{const w=v?m.subscribe(zt.batchCalls(g)):en;return m.updateResult(),w},[m,v]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),x.useEffect(()=>{m.setOptions(d)},[d,m]),AE(d,p))throw Oy(d,m,l);if(EE({result:p,errorResetBoundary:l,throwOnError:d.throwOnError,query:c.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw p.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(d,p),d.experimental_prefetchInRender&&!os&&TE(p,i)&&(h?Oy(d,m,l):c.getQueryCache().get(d.queryHash)?.promise)?.catch(en).finally(()=>{m.updateResult()}),d.notifyOnChangeProps?p:m.trackResult(p)}function dh(t,r){return RE(t,hE)}function fh(t,r){const s=t0(),[i]=x.useState(()=>new gE(s,t));x.useEffect(()=>{i.setOptions(t)},[i,t]);const l=x.useSyncExternalStore(x.useCallback(d=>i.subscribe(zt.batchCalls(d)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=x.useCallback((d,h)=>{i.mutate(d,h).catch(en)},[i]);if(l.error&&Yb(i.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:c,mutateAsync:l.mutate}}const jj=new fE({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});var Bf={exports:{}},Co={},Hf={exports:{}},qf={};/**
+ * @license React
+ * scheduler.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var My;function OE(){return My||(My=1,(function(t){function r(O,Y){var B=O.length;O.push(Y);e:for(;0>>1,C=O[te];if(0>>1;tel(Q,B))ael(xe,Q)?(O[te]=xe,O[ae]=B,te=ae):(O[te]=Q,O[le]=B,te=le);else if(ael(xe,B))O[te]=xe,O[ae]=B,te=ae;else break e}}return Y}function l(O,Y){var B=O.sortIndex-Y.sortIndex;return B!==0?B:O.id-Y.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();t.unstable_now=function(){return d.now()-h}}var m=[],p=[],v=1,g=null,w=3,E=!1,T=!1,_=!1,R=!1,D=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function k(O){for(var Y=s(p);Y!==null;){if(Y.callback===null)i(p);else if(Y.startTime<=O)i(p),Y.sortIndex=Y.expirationTime,r(m,Y);else break;Y=s(p)}}function U(O){if(_=!1,k(O),!T)if(s(m)!==null)T=!0,ee||(ee=!0,ie());else{var Y=s(p);Y!==null&&pe(U,Y.startTime-O)}}var ee=!1,P=-1,V=5,J=-1;function de(){return R?!0:!(t.unstable_now()-JO&&de());){var te=g.callback;if(typeof te=="function"){g.callback=null,w=g.priorityLevel;var C=te(g.expirationTime<=O);if(O=t.unstable_now(),typeof C=="function"){g.callback=C,k(O),Y=!0;break t}g===s(m)&&i(m),k(O)}else i(m);g=s(m)}if(g!==null)Y=!0;else{var K=s(p);K!==null&&pe(U,K.startTime-O),Y=!1}}break e}finally{g=null,w=B,E=!1}Y=void 0}}finally{Y?ie():ee=!1}}}var ie;if(typeof z=="function")ie=function(){z(be)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=be,ie=function(){ce.postMessage(null)}}else ie=function(){D(be,0)};function pe(O,Y){P=D(function(){O(t.unstable_now())},Y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(O){O.callback=null},t.unstable_forceFrameRate=function(O){0>O||125te?(O.sortIndex=B,r(p,O),s(m)===null&&O===s(p)&&(_?(N(P),P=-1):_=!0,pe(U,B-te))):(O.sortIndex=C,r(m,O),T||E||(T=!0,ee||(ee=!0,ie()))),O},t.unstable_shouldYield=de,t.unstable_wrapCallback=function(O){var Y=w;return function(){var B=w;w=Y;try{return O.apply(this,arguments)}finally{w=B}}}})(qf)),qf}var Ny;function ME(){return Ny||(Ny=1,Hf.exports=OE()),Hf.exports}var If={exports:{}},Xt={};/**
+ * @license React
+ * react-dom.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var Dy;function NE(){if(Dy)return Xt;Dy=1;var t=Hh();function r(m){var p="https://react.dev/errors/"+m;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),If.exports=NE(),If.exports}/**
+ * @license React
+ * react-dom-client.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var ky;function DE(){if(ky)return Co;ky=1;var t=ME(),r=Hh(),s=r0();function i(e){var n="https://react.dev/errors/"+e;if(1C||(e.current=te[C],te[C]=null,C--)}function Q(e,n){C++,te[C]=e.current,e.current=n}var ae=K(null),xe=K(null),ge=K(null),re=K(null);function fe(e,n){switch(Q(ge,n),Q(xe,e),Q(ae,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Gv(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Gv(n),e=Yv(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}le(ae),Q(ae,e)}function Be(){le(ae),le(xe),le(ge)}function Le(e){e.memoizedState!==null&&Q(re,e);var n=ae.current,a=Yv(n,e.type);n!==a&&(Q(xe,e),Q(ae,a))}function He(e){xe.current===e&&(le(ae),le(xe)),re.current===e&&(le(re),bo._currentValue=B)}var Ie=Object.prototype.hasOwnProperty,Ct=t.unstable_scheduleCallback,Ut=t.unstable_cancelCallback,er=t.unstable_shouldYield,tr=t.unstable_requestPaint,pt=t.unstable_now,Ai=t.unstable_getCurrentPriorityLevel,$t=t.unstable_ImmediatePriority,M=t.unstable_UserBlockingPriority,I=t.unstable_NormalPriority,X=t.unstable_LowPriority,me=t.unstable_IdlePriority,he=t.log,ue=t.unstable_setDisableYieldValue,_e=null,ke=null;function Ye(e){if(typeof he=="function"&&ue(e),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(_e,e)}catch{}}var nt=Math.clz32?Math.clz32:nr,hn=Math.log,mn=Math.LN2;function nr(e){return e>>>=0,e===0?32:31-(hn(e)/mn|0)|0}var rr=256,ar=4194304;function Tn(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function sr(e,n,a){var o=e.pendingLanes;if(o===0)return 0;var u=0,f=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=o&134217727;return S!==0?(o=S&~f,o!==0?u=Tn(o):(b&=S,b!==0?u=Tn(b):a||(a=S&~e,a!==0&&(u=Tn(a))))):(S=o&~f,S!==0?u=Tn(S):b!==0?u=Tn(b):a||(a=o&~e,a!==0&&(u=Tn(a)))),u===0?0:n!==0&&n!==u&&(n&f)===0&&(f=u&-u,a=n&-n,f>=a||f===32&&(a&4194048)!==0)?n:u}function Cr(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function ea(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bn(){var e=rr;return rr<<=1,(rr&4194048)===0&&(rr=256),e}function ul(){var e=ar;return ar<<=1,(ar&62914560)===0&&(ar=4194304),e}function Ri(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function ta(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dl(e,n,a,o,u,f){var b=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,A=e.expirationTimes,q=e.hiddenUpdates;for(a=b&~a;0)":-1u||A[o]!==q[u]){var $=`
+`+A[o].replace(" at new "," at ");return e.displayName&&$.includes("")&&($=$.replace("",e.displayName)),$}while(1<=o&&0<=u);break}}}finally{Du=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?_s(a):""}function Bw(e){switch(e.tag){case 26:case 27:case 5:return _s(e.type);case 16:return _s("Lazy");case 13:return _s("Suspense");case 19:return _s("SuspenseList");case 0:case 15:return ju(e.type,!1);case 11:return ju(e.type.render,!1);case 1:return ju(e.type,!0);case 31:return _s("Activity");default:return""}}function Vm(e){try{var n="";do n+=Bw(e),e=e.return;while(e);return n}catch(a){return`
+Error generating stack: `+a.message+`
+`+a.stack}}function An(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Hw(e){var n=Bm(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),o=""+e[n];if(!e.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,f=a.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(b){o=""+b,f.call(this,b)}}),Object.defineProperty(e,n,{enumerable:a.enumerable}),{getValue:function(){return o},setValue:function(b){o=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ml(e){e._valueTracker||(e._valueTracker=Hw(e))}function Hm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),o="";return e&&(o=Bm(e)?e.checked?"true":"false":e.value),e=o,e!==a?(n.setValue(e),!0):!1}function pl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var qw=/[\n"\\]/g;function Rn(e){return e.replace(qw,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function ku(e,n,a,o,u,f,b,S){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+An(n)):e.value!==""+An(n)&&(e.value=""+An(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?zu(e,b,An(n)):a!=null?zu(e,b,An(a)):o!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+An(S):e.removeAttribute("name")}function qm(e,n,a,o,u,f,b,S){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),n!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||n!=null))return;a=a!=null?""+An(a):"",n=n!=null?""+An(n):a,S||n===e.value||(e.value=n),e.defaultValue=n}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=S?e.checked:!!o,e.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b)}function zu(e,n,a){n==="number"&&pl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Es(e,n,a,o){if(e=e.options,n){n={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bu=!1;if(Rr)try{var Di={};Object.defineProperty(Di,"passive",{get:function(){Bu=!0}}),window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,Di)}catch{Bu=!1}var na=null,Hu=null,vl=null;function Xm(){if(vl)return vl;var e,n=Hu,a=n.length,o,u="value"in na?na.value:na.textContent,f=u.length;for(e=0;e=zi),tp=" ",np=!1;function rp(e,n){switch(e){case"keyup":return g_.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ap(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rs=!1;function y_(e,n){switch(e){case"compositionend":return ap(n);case"keypress":return n.which!==32?null:(np=!0,tp);case"textInput":return e=n.data,e===tp&&np?null:e;default:return null}}function b_(e,n){if(Rs)return e==="compositionend"||!Yu&&rp(e,n)?(e=Xm(),vl=Hu=na=null,Rs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:a,offset:n-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=fp(a)}}function mp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?mp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function pp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=pl(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=pl(e.document)}return n}function Xu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var A_=Rr&&"documentMode"in document&&11>=document.documentMode,Os=null,Ku=null,Vi=null,$u=!1;function gp(e,n,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;$u||Os==null||Os!==pl(o)||(o=Os,"selectionStart"in o&&Xu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Vi&&Pi(Vi,o)||(Vi=o,o=oc(Ku,"onSelect"),0>=b,u-=b,Mr=1<<32-nt(n)+u|a<f?f:8;var b=O.T,S={};O.T=S,Ud(e,!1,n,a);try{var A=u(),q=O.S;if(q!==null&&q(S,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var $=U_(A,o);eo(e,n,$,xn(e))}else eo(e,n,o,xn(e))}catch(ne){eo(e,n,{then:function(){},status:"rejected",reason:ne},xn())}finally{Y.p=f,O.T=b}}function H_(){}function kd(e,n,a,o){if(e.tag!==5)throw Error(i(476));var u=vg(e).queue;gg(e,u,n,B,a===null?H_:function(){return yg(e),a(o)})}function vg(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kr,lastRenderedState:B},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kr,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function yg(e){var n=vg(e).next.queue;eo(e,n,{},xn())}function zd(){return Qt(bo)}function bg(){return Rt().memoizedState}function xg(){return Rt().memoizedState}function q_(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=xn();e=sa(a);var o=ia(n,e,a);o!==null&&(Sn(o,n,a),Qi(o,n,a)),n={cache:dd()},e.payload=n;return}n=n.return}}function I_(e,n,a){var o=xn();a={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Hl(e)?wg(n,a):(a=td(e,n,a,o),a!==null&&(Sn(a,e,o),_g(a,n,o)))}function Sg(e,n,a){var o=xn();eo(e,n,a,o)}function eo(e,n,a,o){var u={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Hl(e))wg(n,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var b=n.lastRenderedState,S=f(b,a);if(u.hasEagerState=!0,u.eagerState=S,pn(S,b))return El(e,n,u,0),dt===null&&_l(),!1}catch{}finally{}if(a=td(e,n,u,o),a!==null)return Sn(a,e,o),_g(a,n,o),!0}return!1}function Ud(e,n,a,o){if(o={lane:2,revertLane:pf(),action:o,hasEagerState:!1,eagerState:null,next:null},Hl(e)){if(n)throw Error(i(479))}else n=td(e,a,o,2),n!==null&&Sn(n,e,2)}function Hl(e){var n=e.alternate;return e===Fe||n!==null&&n===Fe}function wg(e,n){Vs=zl=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function _g(e,n,a){if((a&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,a|=o,n.lanes=a,yt(e,a)}}var ql={readContext:Qt,use:Ll,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St,useHostTransitionStatus:St,useFormState:St,useActionState:St,useOptimistic:St,useMemoCache:St,useCacheRefresh:St},Eg={readContext:Qt,use:Ll,useCallback:function(e,n){return sn().memoizedState=[e,n===void 0?null:n],e},useContext:Qt,useEffect:og,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Bl(4194308,4,dg.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Bl(4194308,4,e,n)},useInsertionEffect:function(e,n){Bl(4,2,e,n)},useMemo:function(e,n){var a=sn();n=n===void 0?null:n;var o=e();if(Wa){Ye(!0);try{e()}finally{Ye(!1)}}return a.memoizedState=[o,n],o},useReducer:function(e,n,a){var o=sn();if(a!==void 0){var u=a(n);if(Wa){Ye(!0);try{a(n)}finally{Ye(!1)}}}else u=n;return o.memoizedState=o.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},o.queue=e,e=e.dispatch=I_.bind(null,Fe,e),[o.memoizedState,e]},useRef:function(e){var n=sn();return e={current:e},n.memoizedState=e},useState:function(e){e=Md(e);var n=e.queue,a=Sg.bind(null,Fe,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Dd,useDeferredValue:function(e,n){var a=sn();return jd(a,e,n)},useTransition:function(){var e=Md(!1);return e=gg.bind(null,Fe,e.queue,!0,!1),sn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var o=Fe,u=sn();if(tt){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),dt===null)throw Error(i(349));(We&124)!==0||Gp(o,n,a)}u.memoizedState=a;var f={value:a,getSnapshot:n};return u.queue=f,og(Zp.bind(null,o,f,e),[e]),o.flags|=2048,Hs(9,Vl(),Yp.bind(null,o,f,a,n),null),a},useId:function(){var e=sn(),n=dt.identifierPrefix;if(tt){var a=Nr,o=Mr;a=(o&~(1<<32-nt(o)-1)).toString(32)+a,n="«"+n+"R"+a,a=Ul++,0Me?(Ht=Re,Re=null):Ht=Re.sibling;var et=F(L,Re,H[Me],W);if(et===null){Re===null&&(Re=Ht);break}e&&Re&&et.alternate===null&&n(L,Re),j=f(et,j,Me),Ze===null?Ee=et:Ze.sibling=et,Ze=et,Re=Ht}if(Me===H.length)return a(L,Re),tt&&Ya(L,Me),Ee;if(Re===null){for(;MeMe?(Ht=Re,Re=null):Ht=Re.sibling;var _a=F(L,Re,et.value,W);if(_a===null){Re===null&&(Re=Ht);break}e&&Re&&_a.alternate===null&&n(L,Re),j=f(_a,j,Me),Ze===null?Ee=_a:Ze.sibling=_a,Ze=_a,Re=Ht}if(et.done)return a(L,Re),tt&&Ya(L,Me),Ee;if(Re===null){for(;!et.done;Me++,et=H.next())et=ne(L,et.value,W),et!==null&&(j=f(et,j,Me),Ze===null?Ee=et:Ze.sibling=et,Ze=et);return tt&&Ya(L,Me),Ee}for(Re=o(Re);!et.done;Me++,et=H.next())et=G(Re,L,Me,et.value,W),et!==null&&(e&&et.alternate!==null&&Re.delete(et.key===null?Me:et.key),j=f(et,j,Me),Ze===null?Ee=et:Ze.sibling=et,Ze=et);return e&&Re.forEach(function(G1){return n(L,G1)}),tt&&Ya(L,Me),Ee}function lt(L,j,H,W){if(typeof H=="object"&&H!==null&&H.type===T&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case w:e:{for(var Ee=H.key;j!==null;){if(j.key===Ee){if(Ee=H.type,Ee===T){if(j.tag===7){a(L,j.sibling),W=u(j,H.props.children),W.return=L,L=W;break e}}else if(j.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===V&&Tg(Ee)===j.type){a(L,j.sibling),W=u(j,H.props),no(W,H),W.return=L,L=W;break e}a(L,j);break}else n(L,j);j=j.sibling}H.type===T?(W=Fa(H.props.children,L.mode,W,H.key),W.return=L,L=W):(W=Tl(H.type,H.key,H.props,null,L.mode,W),no(W,H),W.return=L,L=W)}return b(L);case E:e:{for(Ee=H.key;j!==null;){if(j.key===Ee)if(j.tag===4&&j.stateNode.containerInfo===H.containerInfo&&j.stateNode.implementation===H.implementation){a(L,j.sibling),W=u(j,H.children||[]),W.return=L,L=W;break e}else{a(L,j);break}else n(L,j);j=j.sibling}W=ad(H,L.mode,W),W.return=L,L=W}return b(L);case V:return Ee=H._init,H=Ee(H._payload),lt(L,j,H,W)}if(pe(H))return je(L,j,H,W);if(ie(H)){if(Ee=ie(H),typeof Ee!="function")throw Error(i(150));return H=Ee.call(H),Oe(L,j,H,W)}if(typeof H.then=="function")return lt(L,j,Il(H),W);if(H.$$typeof===z)return lt(L,j,Ml(L,H),W);Fl(L,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,j!==null&&j.tag===6?(a(L,j.sibling),W=u(j,H),W.return=L,L=W):(a(L,j),W=rd(H,L.mode,W),W.return=L,L=W),b(L)):a(L,j)}return function(L,j,H,W){try{to=0;var Ee=lt(L,j,H,W);return qs=null,Ee}catch(Re){if(Re===Yi||Re===Dl)throw Re;var Ze=gn(29,Re,null,L.mode);return Ze.lanes=W,Ze.return=L,Ze}finally{}}}var Is=Ag(!0),Rg=Ag(!1),jn=K(null),or=null;function la(e){var n=e.alternate;Q(Dt,Dt.current&1),Q(jn,e),or===null&&(n===null||Ps.current!==null||n.memoizedState!==null)&&(or=e)}function Og(e){if(e.tag===22){if(Q(Dt,Dt.current),Q(jn,e),or===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(or=e)}}else ca()}function ca(){Q(Dt,Dt.current),Q(jn,jn.current)}function zr(e){le(jn),or===e&&(or=null),le(Dt)}var Dt=K(0);function Gl(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Af(a)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Ld(e,n,a,o){n=e.memoizedState,a=a(o,n),a=a==null?n:v({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Pd={enqueueSetState:function(e,n,a){e=e._reactInternals;var o=xn(),u=sa(o);u.payload=n,a!=null&&(u.callback=a),n=ia(e,u,o),n!==null&&(Sn(n,e,o),Qi(n,e,o))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var o=xn(),u=sa(o);u.tag=1,u.payload=n,a!=null&&(u.callback=a),n=ia(e,u,o),n!==null&&(Sn(n,e,o),Qi(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=xn(),o=sa(a);o.tag=2,n!=null&&(o.callback=n),n=ia(e,o,a),n!==null&&(Sn(n,e,a),Qi(n,e,a))}};function Mg(e,n,a,o,u,f,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,b):n.prototype&&n.prototype.isPureReactComponent?!Pi(a,o)||!Pi(u,f):!0}function Ng(e,n,a,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,o),n.state!==e&&Pd.enqueueReplaceState(n,n.state,null)}function Ja(e,n){var a=n;if("ref"in n){a={};for(var o in n)o!=="ref"&&(a[o]=n[o])}if(e=e.defaultProps){a===n&&(a=v({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}var Yl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Dg(e){Yl(e)}function jg(e){console.error(e)}function kg(e){Yl(e)}function Zl(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function zg(e,n,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Vd(e,n,a){return a=sa(a),a.tag=3,a.payload={element:null},a.callback=function(){Zl(e,n)},a}function Ug(e){return e=sa(e),e.tag=3,e}function Lg(e,n,a,o){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var f=o.value;e.payload=function(){return u(f)},e.callback=function(){zg(n,a,o)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){zg(n,a,o),typeof u!="function"&&(pa===null?pa=new Set([this]):pa.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})})}function G_(e,n,a,o,u){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=a.alternate,n!==null&&Ii(n,a,u,!0),a=jn.current,a!==null){switch(a.tag){case 13:return or===null?uf():a.alternate===null&&vt===0&&(vt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,o===md?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([o]):n.add(o),ff(e,o,u)),!1;case 22:return a.flags|=65536,o===md?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([o]):a.add(o)),ff(e,o,u)),!1}throw Error(i(435,a.tag))}return ff(e,o,u),uf(),!1}if(tt)return n=jn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,o!==od&&(e=Error(i(422),{cause:o}),qi(On(e,a)))):(o!==od&&(n=Error(i(423),{cause:o}),qi(On(n,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,o=On(o,a),u=Vd(e.stateNode,o,u),vd(e,u),vt!==4&&(vt=2)),!1;var f=Error(i(520),{cause:o});if(f=On(f,a),co===null?co=[f]:co.push(f),vt!==4&&(vt=2),n===null)return!0;o=On(o,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Vd(a.stateNode,o,e),vd(a,e),!1;case 1:if(n=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(pa===null||!pa.has(f))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Ug(u),Lg(u,e,a,o),vd(a,u),!1}a=a.return}while(a!==null);return!1}var Pg=Error(i(461)),Vt=!1;function It(e,n,a,o){n.child=e===null?Rg(n,null,a,o):Is(n,e.child,a,o)}function Vg(e,n,a,o,u){a=a.render;var f=n.ref;if("ref"in o){var b={};for(var S in o)S!=="ref"&&(b[S]=o[S])}else b=o;return Ka(n),o=wd(e,n,a,b,f,u),S=_d(),e!==null&&!Vt?(Ed(e,n,u),Ur(e,n,u)):(tt&&S&&sd(n),n.flags|=1,It(e,n,o,u),n.child)}function Bg(e,n,a,o,u){if(e===null){var f=a.type;return typeof f=="function"&&!nd(f)&&f.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=f,Hg(e,n,f,o,u)):(e=Tl(a.type,null,o,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,!Zd(e,u)){var b=f.memoizedProps;if(a=a.compare,a=a!==null?a:Pi,a(b,o)&&e.ref===n.ref)return Ur(e,n,u)}return n.flags|=1,e=Or(f,o),e.ref=n.ref,e.return=n,n.child=e}function Hg(e,n,a,o,u){if(e!==null){var f=e.memoizedProps;if(Pi(f,o)&&e.ref===n.ref)if(Vt=!1,n.pendingProps=o=f,Zd(e,u))(e.flags&131072)!==0&&(Vt=!0);else return n.lanes=e.lanes,Ur(e,n,u)}return Bd(e,n,a,o,u)}function qg(e,n,a){var o=n.pendingProps,u=o.children,f=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((n.flags&128)!==0){if(o=f!==null?f.baseLanes|a:a,e!==null){for(u=n.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;n.childLanes=f&~o}else n.childLanes=0,n.child=null;return Ig(e,n,o,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Nl(n,f!==null?f.cachePool:null),f!==null?Hp(n,f):bd(),Og(n);else return n.lanes=n.childLanes=536870912,Ig(e,n,f!==null?f.baseLanes|a:a,a)}else f!==null?(Nl(n,f.cachePool),Hp(n,f),ca(),n.memoizedState=null):(e!==null&&Nl(n,null),bd(),ca());return It(e,n,u,a),n.child}function Ig(e,n,a,o){var u=hd();return u=u===null?null:{parent:Nt._currentValue,pool:u},n.memoizedState={baseLanes:a,cachePool:u},e!==null&&Nl(n,null),bd(),Og(n),e!==null&&Ii(e,n,o,!0),null}function Ql(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Bd(e,n,a,o,u){return Ka(n),a=wd(e,n,a,o,void 0,u),o=_d(),e!==null&&!Vt?(Ed(e,n,u),Ur(e,n,u)):(tt&&o&&sd(n),n.flags|=1,It(e,n,a,u),n.child)}function Fg(e,n,a,o,u,f){return Ka(n),n.updateQueue=null,a=Ip(n,o,a,u),qp(e),o=_d(),e!==null&&!Vt?(Ed(e,n,f),Ur(e,n,f)):(tt&&o&&sd(n),n.flags|=1,It(e,n,a,f),n.child)}function Gg(e,n,a,o,u){if(Ka(n),n.stateNode===null){var f=js,b=a.contextType;typeof b=="object"&&b!==null&&(f=Qt(b)),f=new a(o,f),n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Pd,n.stateNode=f,f._reactInternals=n,f=n.stateNode,f.props=o,f.state=n.memoizedState,f.refs={},pd(n),b=a.contextType,f.context=typeof b=="object"&&b!==null?Qt(b):js,f.state=n.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(Ld(n,a,b,o),f.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(b=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),b!==f.state&&Pd.enqueueReplaceState(f,f.state,null),Ki(n,o,f,u),Xi(),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){f=n.stateNode;var S=n.memoizedProps,A=Ja(a,S);f.props=A;var q=f.context,$=a.contextType;b=js,typeof $=="object"&&$!==null&&(b=Qt($));var ne=a.getDerivedStateFromProps;$=typeof ne=="function"||typeof f.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,$||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(S||q!==b)&&Ng(n,f,o,b),aa=!1;var F=n.memoizedState;f.state=F,Ki(n,o,f,u),Xi(),q=n.memoizedState,S||F!==q||aa?(typeof ne=="function"&&(Ld(n,a,ne,o),q=n.memoizedState),(A=aa||Mg(n,a,A,o,F,q,b))?($||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=q),f.props=o,f.state=q,f.context=b,o=A):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{f=n.stateNode,gd(e,n),b=n.memoizedProps,$=Ja(a,b),f.props=$,ne=n.pendingProps,F=f.context,q=a.contextType,A=js,typeof q=="object"&&q!==null&&(A=Qt(q)),S=a.getDerivedStateFromProps,(q=typeof S=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==ne||F!==A)&&Ng(n,f,o,A),aa=!1,F=n.memoizedState,f.state=F,Ki(n,o,f,u),Xi();var G=n.memoizedState;b!==ne||F!==G||aa||e!==null&&e.dependencies!==null&&Ol(e.dependencies)?(typeof S=="function"&&(Ld(n,a,S,o),G=n.memoizedState),($=aa||Mg(n,a,$,o,F,G,A)||e!==null&&e.dependencies!==null&&Ol(e.dependencies))?(q||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,G,A),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,G,A)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=G),f.props=o,f.state=G,f.context=A,o=$):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(n.flags|=1024),o=!1)}return f=o,Ql(e,n),o=(n.flags&128)!==0,f||o?(f=n.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:f.render(),n.flags|=1,e!==null&&o?(n.child=Is(n,e.child,null,u),n.child=Is(n,null,a,u)):It(e,n,a,u),n.memoizedState=f.state,e=n.child):e=Ur(e,n,u),e}function Yg(e,n,a,o){return Hi(),n.flags|=256,It(e,n,a,o),n.child}var Hd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qd(e){return{baseLanes:e,cachePool:jp()}}function Id(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=kn),e}function Zg(e,n,a){var o=n.pendingProps,u=!1,f=(n.flags&128)!==0,b;if((b=f)||(b=e!==null&&e.memoizedState===null?!1:(Dt.current&2)!==0),b&&(u=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(tt){if(u?la(n):ca(),tt){var S=gt,A;if(A=S){e:{for(A=S,S=ir;A.nodeType!==8;){if(!S){S=null;break e}if(A=In(A.nextSibling),A===null){S=null;break e}}S=A}S!==null?(n.memoizedState={dehydrated:S,treeContext:Ga!==null?{id:Mr,overflow:Nr}:null,retryLane:536870912,hydrationErrors:null},A=gn(18,null,null,0),A.stateNode=S,A.return=n,n.child=A,Wt=n,gt=null,A=!0):A=!1}A||Qa(n)}if(S=n.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return Af(S)?n.lanes=32:n.lanes=536870912,null;zr(n)}return S=o.children,o=o.fallback,u?(ca(),u=n.mode,S=Xl({mode:"hidden",children:S},u),o=Fa(o,u,a,null),S.return=n,o.return=n,S.sibling=o,n.child=S,u=n.child,u.memoizedState=qd(a),u.childLanes=Id(e,b,a),n.memoizedState=Hd,o):(la(n),Fd(n,S))}if(A=e.memoizedState,A!==null&&(S=A.dehydrated,S!==null)){if(f)n.flags&256?(la(n),n.flags&=-257,n=Gd(e,n,a)):n.memoizedState!==null?(ca(),n.child=e.child,n.flags|=128,n=null):(ca(),u=o.fallback,S=n.mode,o=Xl({mode:"visible",children:o.children},S),u=Fa(u,S,a,null),u.flags|=2,o.return=n,u.return=n,o.sibling=u,n.child=o,Is(n,e.child,null,a),o=n.child,o.memoizedState=qd(a),o.childLanes=Id(e,b,a),n.memoizedState=Hd,n=u);else if(la(n),Af(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var q=b.dgst;b=q,o=Error(i(419)),o.stack="",o.digest=b,qi({value:o,source:null,stack:null}),n=Gd(e,n,a)}else if(Vt||Ii(e,n,a,!1),b=(a&e.childLanes)!==0,Vt||b){if(b=dt,b!==null&&(o=a&-a,o=(o&42)!==0?1:Tt(o),o=(o&(b.suspendedLanes|a))!==0?0:o,o!==0&&o!==A.retryLane))throw A.retryLane=o,Ds(e,o),Sn(b,e,o),Pg;S.data==="$?"||uf(),n=Gd(e,n,a)}else S.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=A.treeContext,gt=In(S.nextSibling),Wt=n,tt=!0,Za=null,ir=!1,e!==null&&(Nn[Dn++]=Mr,Nn[Dn++]=Nr,Nn[Dn++]=Ga,Mr=e.id,Nr=e.overflow,Ga=n),n=Fd(n,o.children),n.flags|=4096);return n}return u?(ca(),u=o.fallback,S=n.mode,A=e.child,q=A.sibling,o=Or(A,{mode:"hidden",children:o.children}),o.subtreeFlags=A.subtreeFlags&65011712,q!==null?u=Or(q,u):(u=Fa(u,S,a,null),u.flags|=2),u.return=n,o.return=n,o.sibling=u,n.child=o,o=u,u=n.child,S=e.child.memoizedState,S===null?S=qd(a):(A=S.cachePool,A!==null?(q=Nt._currentValue,A=A.parent!==q?{parent:q,pool:q}:A):A=jp(),S={baseLanes:S.baseLanes|a,cachePool:A}),u.memoizedState=S,u.childLanes=Id(e,b,a),n.memoizedState=Hd,o):(la(n),a=e.child,e=a.sibling,a=Or(a,{mode:"visible",children:o.children}),a.return=n,a.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=a,n.memoizedState=null,a)}function Fd(e,n){return n=Xl({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Xl(e,n){return e=gn(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Gd(e,n,a){return Is(n,e.child,null,a),e=Fd(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Qg(e,n,a){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),cd(e.return,n,a)}function Yd(e,n,a,o,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:u}:(f.isBackwards=n,f.rendering=null,f.renderingStartTime=0,f.last=o,f.tail=a,f.tailMode=u)}function Xg(e,n,a){var o=n.pendingProps,u=o.revealOrder,f=o.tail;if(It(e,n,o.children,a),o=Dt.current,(o&2)!==0)o=o&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qg(e,a,n);else if(e.tag===19)Qg(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(Q(Dt,o),u){case"forwards":for(a=n.child,u=null;a!==null;)e=a.alternate,e!==null&&Gl(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=n.child,n.child=null):(u=a.sibling,a.sibling=null),Yd(n,!1,u,a,f);break;case"backwards":for(a=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&Gl(e)===null){n.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Yd(n,!0,a,null,f);break;case"together":Yd(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ur(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),ma|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Ii(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,a=Or(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=Or(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Zd(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Ol(e)))}function Y_(e,n,a){switch(n.tag){case 3:fe(n,n.stateNode.containerInfo),ra(n,Nt,e.memoizedState.cache),Hi();break;case 27:case 5:Le(n);break;case 4:fe(n,n.stateNode.containerInfo);break;case 10:ra(n,n.type,n.memoizedProps.value);break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(la(n),n.flags|=128,null):(a&n.child.childLanes)!==0?Zg(e,n,a):(la(n),e=Ur(e,n,a),e!==null?e.sibling:null);la(n);break;case 19:var u=(e.flags&128)!==0;if(o=(a&n.childLanes)!==0,o||(Ii(e,n,a,!1),o=(a&n.childLanes)!==0),u){if(o)return Xg(e,n,a);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Q(Dt,Dt.current),o)break;return null;case 22:case 23:return n.lanes=0,qg(e,n,a);case 24:ra(n,Nt,e.memoizedState.cache)}return Ur(e,n,a)}function Kg(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)Vt=!0;else{if(!Zd(e,a)&&(n.flags&128)===0)return Vt=!1,Y_(e,n,a);Vt=(e.flags&131072)!==0}else Vt=!1,tt&&(n.flags&1048576)!==0&&Tp(n,Rl,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var o=n.elementType,u=o._init;if(o=u(o._payload),n.type=o,typeof o=="function")nd(o)?(e=Ja(o,e),n.tag=1,n=Gg(null,n,o,e,a)):(n.tag=0,n=Bd(null,n,o,e,a));else{if(o!=null){if(u=o.$$typeof,u===k){n.tag=11,n=Vg(null,n,o,e,a);break e}else if(u===P){n.tag=14,n=Bg(null,n,o,e,a);break e}}throw n=ce(o)||o,Error(i(306,n,""))}}return n;case 0:return Bd(e,n,n.type,n.pendingProps,a);case 1:return o=n.type,u=Ja(o,n.pendingProps),Gg(e,n,o,u,a);case 3:e:{if(fe(n,n.stateNode.containerInfo),e===null)throw Error(i(387));o=n.pendingProps;var f=n.memoizedState;u=f.element,gd(e,n),Ki(n,o,null,a);var b=n.memoizedState;if(o=b.cache,ra(n,Nt,o),o!==f.cache&&ud(n,[Nt],a,!0),Xi(),o=b.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){n=Yg(e,n,o,a);break e}else if(o!==u){u=On(Error(i(424)),n),qi(u),n=Yg(e,n,o,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(gt=In(e.firstChild),Wt=n,tt=!0,Za=null,ir=!0,a=Rg(n,null,o,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Hi(),o===u){n=Ur(e,n,a);break e}It(e,n,o,a)}n=n.child}return n;case 26:return Ql(e,n),e===null?(a=ey(n.type,null,n.pendingProps,null))?n.memoizedState=a:tt||(a=n.type,e=n.pendingProps,o=cc(ge.current).createElement(a),o[xt]=n,o[ut]=e,Gt(o,a,e),Pt(o),n.stateNode=o):n.memoizedState=ey(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Le(n),e===null&&tt&&(o=n.stateNode=$v(n.type,n.pendingProps,ge.current),Wt=n,ir=!0,u=gt,ya(n.type)?(Rf=u,gt=In(o.firstChild)):gt=u),It(e,n,n.pendingProps.children,a),Ql(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&tt&&((u=o=gt)&&(o=x1(o,n.type,n.pendingProps,ir),o!==null?(n.stateNode=o,Wt=n,gt=In(o.firstChild),ir=!1,u=!0):u=!1),u||Qa(n)),Le(n),u=n.type,f=n.pendingProps,b=e!==null?e.memoizedProps:null,o=f.children,Ef(u,f)?o=null:b!==null&&Ef(u,b)&&(n.flags|=32),n.memoizedState!==null&&(u=wd(e,n,P_,null,null,a),bo._currentValue=u),Ql(e,n),It(e,n,o,a),n.child;case 6:return e===null&&tt&&((e=a=gt)&&(a=S1(a,n.pendingProps,ir),a!==null?(n.stateNode=a,Wt=n,gt=null,e=!0):e=!1),e||Qa(n)),null;case 13:return Zg(e,n,a);case 4:return fe(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=Is(n,null,o,a):It(e,n,o,a),n.child;case 11:return Vg(e,n,n.type,n.pendingProps,a);case 7:return It(e,n,n.pendingProps,a),n.child;case 8:return It(e,n,n.pendingProps.children,a),n.child;case 12:return It(e,n,n.pendingProps.children,a),n.child;case 10:return o=n.pendingProps,ra(n,n.type,o.value),It(e,n,o.children,a),n.child;case 9:return u=n.type._context,o=n.pendingProps.children,Ka(n),u=Qt(u),o=o(u),n.flags|=1,It(e,n,o,a),n.child;case 14:return Bg(e,n,n.type,n.pendingProps,a);case 15:return Hg(e,n,n.type,n.pendingProps,a);case 19:return Xg(e,n,a);case 31:return o=n.pendingProps,a=n.mode,o={mode:o.mode,children:o.children},e===null?(a=Xl(o,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=Or(e.child,o),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return qg(e,n,a);case 24:return Ka(n),o=Qt(Nt),e===null?(u=hd(),u===null&&(u=dt,f=dd(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=a),u=f),n.memoizedState={parent:o,cache:u},pd(n),ra(n,Nt,u)):((e.lanes&a)!==0&&(gd(e,n),Ki(n,null,null,a),Xi()),u=e.memoizedState,f=n.memoizedState,u.parent!==o?(u={parent:o,cache:o},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),ra(n,Nt,o)):(o=f.cache,ra(n,Nt,o),o!==u.cache&&ud(n,[Nt],a,!0))),It(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function Lr(e){e.flags|=4}function $g(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sy(n)){if(n=jn.current,n!==null&&((We&4194048)===We?or!==null:(We&62914560)!==We&&(We&536870912)===0||n!==or))throw Zi=md,kp;e.flags|=8192}}function Kl(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?ul():536870912,e.lanes|=n,Zs|=n)}function ro(e,n){if(!tt)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ht(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(n)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=o,e.childLanes=a,n}function Z_(e,n,a){var o=n.pendingProps;switch(id(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(n),null;case 1:return ht(n),null;case 3:return a=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),jr(Nt),Be(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Bi(n)?Lr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Op())),ht(n),null;case 26:return a=n.memoizedState,e===null?(Lr(n),a!==null?(ht(n),$g(n,a)):(ht(n),n.flags&=-16777217)):a?a!==e.memoizedState?(Lr(n),ht(n),$g(n,a)):(ht(n),n.flags&=-16777217):(e.memoizedProps!==o&&Lr(n),ht(n),n.flags&=-16777217),null;case 27:He(n),a=ge.current;var u=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Lr(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ht(n),null}e=ae.current,Bi(n)?Ap(n):(e=$v(u,o,a),n.stateNode=e,Lr(n))}return ht(n),null;case 5:if(He(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Lr(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ht(n),null}if(e=ae.current,Bi(n))Ap(n);else{switch(u=cc(ge.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=u.createElement("div"),e.innerHTML="
+
diff --git a/public/manifest.json b/public/manifest.json
index 5c00104..814d8e1 100644
--- a/public/manifest.json
+++ b/public/manifest.json
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Auto post facebook extensions",
- "version": "1.3",
+ "version": "1.4",
"action": {
"default_popup": "index.html",
"default_icon": {
diff --git a/releases/auto-post-facebook-extensions_1.3/assets/message.service-C0RCxylm.js b/releases/auto-post-facebook-extensions_1.3/assets/message.service-C0RCxylm.js
new file mode 100644
index 0000000..4b256c7
--- /dev/null
+++ b/releases/auto-post-facebook-extensions_1.3/assets/message.service-C0RCxylm.js
@@ -0,0 +1 @@
+import{d as s,a as u}from"./app-C7VSS-q9.js";class p{base64ToFile(t,e,i){const n=t.includes(",")?t.split(",")[1]:t,o=atob(n),r=new ArrayBuffer(o.length),c=new Uint8Array(r);for(let d=0;d
+
+
+
+
+
+
+
+
+
+
+ Your listings
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + Your listings +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Filters
+
+
+
+
+
+
+
+
+
+
+
+ >
+
+