@billgangcom/theme-lib 1.123.2 → 1.123.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{builder-Ds7YGa4R.cjs → builder-CuCcIZjx.cjs} +3 -3
- package/dist/{builder-CCEuMJHf.js → builder-Vw17cIvh.js} +6 -6
- package/dist/{builder-components-DwhwUeGI.js → builder-components-CqsarjiD.js} +192 -192
- package/dist/builder-components-D8fl8nFz.cjs +5 -0
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +23 -23
- package/dist/{charge-CDN6c8fH.js → charge-BxH20YHb.js} +3413 -3411
- package/dist/{charge-DhnKnpft.cjs → charge-D2IfRJ1B.cjs} +38 -38
- package/dist/{checkout-BvO_IFZC.js → checkout-BmEdO4pB.js} +5 -5
- package/dist/{checkout-DwjYz2UO.cjs → checkout-l_9O3JXV.cjs} +1 -1
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-CcUTer5K.js → index-3cVWcT47.js} +5 -5
- package/dist/{index-4Fv4TJoE.js → index-BdggtqWP.js} +1 -1
- package/dist/{index-O1rl7waW.cjs → index-Bxzx1T1Y.cjs} +1 -1
- package/dist/{index-Bf1rCeaA.js → index-C9m6xbNq.js} +5 -5
- package/dist/{index-5V9m4qrj.cjs → index-CWkTgTiA.cjs} +1 -1
- package/dist/{index-BUzWndW1.cjs → index-Cz9vjw2u.cjs} +1 -1
- package/dist/{index-BmdHEyvQ.cjs → index-DOMIQhcU.cjs} +1 -1
- package/dist/{index-BEA2JbPH.js → index-Lx5YZc2J.js} +2 -2
- package/dist/{index-Day7cnTY.js → index-VcBR0LYA.js} +5 -5
- package/dist/{index-BnXJaCzv.cjs → index-pGpGZ-zG.cjs} +1 -1
- package/dist/{index-CnYAFW5g.js → index-pPt21AZn.js} +5 -5
- package/dist/{index-DFgrfmVQ.cjs → index-uCRD-Te9.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/{order-72eEexQG.js → order-CfWBV151.js} +5 -5
- package/dist/{order-CViCqeNE.cjs → order-gdnIl9fl.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{subscription-KNkElwUf.cjs → subscription-CKzWjY6c.cjs} +1 -1
- package/dist/{subscription-_1E5Q4cZ.js → subscription-DvtuQ1Gv.js} +5 -5
- package/dist/{ticket-BaaOhwo6.js → ticket-DsTC46Fo.js} +5 -5
- package/dist/{ticket-CAAyzazn.cjs → ticket-ZqwqBmci.cjs} +1 -1
- package/dist/{top-up-C6yt7kQ7.cjs → top-up-BV-1a3uD.cjs} +1 -1
- package/dist/{top-up-BtDdCsvY.js → top-up-DYFlVzcS.js} +5 -5
- package/dist/{ui-components-CjgL5uP8.js → ui-components-C-CMo5C7.js} +381 -381
- package/dist/ui-components-C4tsxCG_.cjs +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-CMUxfJfv.js → validation-DKeEzJKR.js} +5 -5
- package/dist/{validation-JBPRJyS9.cjs → validation-DOgf6jMh.cjs} +1 -1
- package/package.json +1 -1
- package/dist/builder-components-DGUkozk4.cjs +0 -5
- package/dist/ui-components-B4zC_5Bu.cjs +0 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
"use strict";const g=require("./builder-Ds7YGa4R.cjs"),i=require("react/jsx-runtime"),L=require("react"),N=require("./ui-components-B4zC_5Bu.cjs"),tl=require("./builder-components-DGUkozk4.cjs");require("react-dom");const nl=require("./ticket-CAAyzazn.cjs"),rl=require("./order-CViCqeNE.cjs"),e2=require("./subscription-KNkElwUf.cjs");function t2(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const me=t2(L),n2=()=>typeof document<"u"?document.documentElement.hasAttribute("translated")||document.documentElement.querySelector(".translated-ltr, .translated-rtl")!==null||document.head.querySelector('meta[name="_translator"]')!==null:!1,ul=({children:e,className:t,as:n="span",...r})=>{const[u,a]=L.useState(!1);return L.useEffect(()=>{typeof window<"u"&&a(n2())},[]),u?i.jsx(n,{className:t,...r,"data-stable-text":e,dangerouslySetInnerHTML:{__html:""}}):i.jsx(n,{className:t,...r,children:e})};async function r2(e){const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.storeApi}/shops/${n}/general`+(e?`?password=${e}`:"");return(await g.request({method:"get",url:r,withToken:!1})).data}const u2=async()=>{const e=g.useApiStore.getState().apiUrls,t=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"flagship-theme.pages.dev":window.location.hostname,n=`${e.storeApi}/v2/shops/${t}/settings-theme`;return await g.request({url:n,withToken:!0,method:"get"})},a2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/balance/top-up/${n}`;return await g.request({url:r,method:"post",body:e,withToken:!1})},s2=async(e,t)=>{const r=`${g.useApiStore.getState().apiUrls.cashappApi}/v1/${t}/cashapp/link`;return await g.request({url:r,method:"post",body:e,withToken:!1})},Nr=async e=>{const t=g.useApiStore.getState().apiUrls;if(!localStorage.getItem("token"))throw new Error("No access token");const r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${t.customersApi}/v2/${r}/customers/${e}`;return await g.request({url:u,withToken:!0,method:"get",typeToken:"customer"})},i2=()=>Nr("dash/info"),al=()=>Nr("dash/dashboard/home"),o2=()=>Nr("rewards"),c2=()=>Nr("balance"),l2=()=>Nr("balance/top-up/settings"),d2=()=>Nr("referral-system"),Ks=e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.storeApi}/shops/${n}/${e}`;return g.request({url:r,withToken:!1,method:"get"})},f2=()=>Ks("terms"),h2=()=>Ks("refund-policy"),p2=()=>Ks("privacy-policy"),Cs=10,ua=async({url:e,PageNumber:t})=>{var o;const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.customersApi}/v2/${r}/${e}?PageNumber=${t}&PageSize=${Cs}`,a=await g.request({url:u,withToken:!0,method:"get",typeToken:"customer"}),s=Number((o=a.headers)==null?void 0:o["x-pagination-total"]);return{list:a.data,totalCount:s}},aa=async(e,t="get",n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v1/orders/${u}/${e}`;return await g.request({url:a,method:t,withToken:!0,body:n,typeToken:"customer"})},m2=e=>aa("","post",e),g2=({PageNumber:e})=>ua({url:"customers/orders",PageNumber:e}),b2=e=>aa(e),_2=e=>aa(e),x2=(e,t,n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v2/orders/${u}/${e}/${t}/replacement-requests`;return g.request({url:a,method:"post",withToken:!0,body:n,typeToken:"customer"})},C2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/public/${n}/images`,u=new FormData;return u.append("file",e),g.request({url:r,method:"post",withToken:!1,body:u})},E2=(e,t,n)=>aa(`${e}/${t}/replacement-requests/${n}/cancel`,"post"),y2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/${n}/subscriptions`;return await g.request({url:r,method:"post",withToken:!1,body:e})},T2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v2/${r}/subscriptions/${e}/${t}`;return await g.request({url:u,method:"get",withToken:!1})},k2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v1/${r}/subscriptions/${e}/${t}/upgrades`;return await g.request({url:u,method:"get",withToken:!1})},A2=async(e,t,n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v1/${u}/subscriptions/${e}/${t}/cancel`;return await g.request({url:a,method:"post",withToken:!1,body:n})},S2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v2/${r}/subscriptions/${e}/change-gateway`;return await g.request({url:u,method:"post",withToken:!1,body:{gateway:t}})},I2=({PageNumber:e})=>ua({url:"customers/subscriptions",PageNumber:e}),N2=async({id:e,accessToken:t})=>await k2(e,t),v2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v2/${r}/subscriptions/${e}/order`;return await g.request({url:u,method:"post",withToken:!1,body:t})},w2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v1/public/${r}/tickets/${e}/${t}`;return await g.request({url:u,method:"get",withToken:!1})},D2=async(e,t,n,r,u,a)=>{const s=g.useApiStore.getState().apiUrls,o=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,c=`${s.slApi}/v1/public/${o}/tickets/${e}/${t}/answer`;return(await g.request({url:c,method:"post",body:{message:n,recaptcha:r,tsId:u,...a&&a.length>0&&{imageIds:a.map(h=>h.imageId)}},withToken:!1})).data},L2=({PageNumber:e})=>ua({url:"customers/tickets",PageNumber:e}),P2=({PageNumber:e})=>ua({url:"customers/balance/transactions",PageNumber:e}),R2=async(e,t,n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v1/reviews/${u}/${t}/${n}`;return await g.request({url:a,method:"post",withToken:!1,body:e})},M2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/charges/${n}/${e}`;return await g.request({url:r,method:"get",withToken:!1})},O2=async e=>{const t=g.useApiStore.getState().apiUrls,n=e.map(s=>["names",s]),r=new URLSearchParams(n),u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${t.slApi}/v2/gateways?shopDomain=${u}&${r.toString()}`;return await g.request({url:a,method:"get",withToken:!1})},ku=new Map,sl=async e=>{const t=g.useApiStore.getState().apiUrls,r=Array.from(new Set(e)).sort().map(l=>["names",l]),u=new URLSearchParams(r),a=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,s=`${t.slApi}/v2/checkout?shopDomain=${a}&${u.toString()}`,o=`${s}`;if(ku.has(o))return ku.get(o);const c=g.request({url:s,method:"get",withToken:!1}).catch(l=>{throw ku.delete(o),l});return ku.set(o,c),c},il=async({email:e,recaptcha:t,tsId:n})=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.customersApi}/v2/${u}/auth/otp/request`;return(await g.request({url:a,body:{email:e,recaptcha:t,tsId:n},method:"post",withToken:!1})).data?{requested:!0,email:e}:{requested:!1,email:void 0}},ol=async({email:e,otp:t,recaptcha:n,tsId:r})=>{const u=g.useApiStore.getState().apiUrls,a=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,s=`${u.customersApi}/v2/${a}/auth/otp/login`,{data:o}=await g.request({url:s,method:"post",body:{email:e,otp:t,recaptcha:n,tsId:r},withToken:!1});return g.useStorefrontStore.getState().setToken(o.data),localStorage.setItem("token",o.data),{token:o.data,requested:!1}},Es=async()=>{g.useStorefrontStore.getState().setToken(""),g.useCustomerDashboardStore.getState().setDashInfo(null),localStorage.removeItem("token")},j2=Object.freeze(Object.defineProperty({__proto__:null,loginCustomer:ol,logoutCustomer:Es,requestOtp:il},Symbol.toStringTag,{value:"Module"})),F2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v2/coupons/${n}/validate`;return await g.request({url:r,method:"post",body:e,withToken:!1})},B2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.customersApi}/v2/${n}/customers/referral-system/signup`;return(await g.request({url:r,withToken:!0,method:"post",body:e,typeToken:"customer"})).data},H2=async()=>{const{data:e}=await d2();return e},U2=async e=>{const{data:t}=await B2(e);return t},V2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/discord/${n}`;return await g.request({url:r,method:"post",body:e,withToken:!1})},$2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/discord/${n}/${e.id}?customerEmail=${e.customerEmail}`;return await g.request({url:r,method:"get",withToken:!1})};async function z2(e){const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.customersApi}/v2/${n}/customers/rewards/${e.id}/claim`;return g.request({url:r,method:"post",withToken:!0,typeToken:"customer"})}const q2=async(e,t,n,r)=>{const a=`${g.useApiStore.getState().apiUrls.slApi}/v1/vouches/${t}/${n}/${r}`;return await g.request({url:a,method:"post",withToken:!1,body:e})},cl=()=>g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,Z2=async()=>{const e=g.useApiStore.getState().apiUrls,t=cl(),n=`${e.customersApi}/v2/${t}/api-key`;return g.request({url:n,method:"get",withToken:!0,typeToken:"customer"})},W2=async()=>{const e=g.useApiStore.getState().apiUrls,t=cl(),n=`${e.customersApi}/v2/${t}/api-key/regenerate`;return g.request({url:n,method:"post",withToken:!0,typeToken:"customer"})},Ra="Balance",jn={Number:"NUMBER",Textarea:"LARGE_TEXT",Checkbox:"CHECK_BOX",Hidden:"HIDDEN"},Y2={customerEmail:"",recaptcha:"",gateway:"",paymentMethod:"",parts:[],customFields:{},discordSocialConnectId:null,coupon:null,tsId:""},Wi=(e,t)=>{var l;const{productId:n,productVariantId:r,quantity:u,chargeType:a}=t,s=e.find(h=>h.id===n);if(!s)throw new Error("Product does not exist");const o=s.variants.find(h=>h.id===r);if(!o)throw new Error("Variant does not exist");if(a==="RECURRING"&&!o.subscriptionSettings)throw new Error("Variant does not have subscription settings");if(u!==void 0&&((l=o.quantity)!=null&&l.available)&&o.quantity.available<u)throw new Error("Not enough quantity available");const c=g.useCartStore.getState().cart;if(c.parts.length>0){const h=e.find(m=>m.id===c.parts[0].productId),f=h==null?void 0:h.variants.find(m=>m.id===c.parts[0].productVariantId);if(f&&o.price.currency!==f.price.currency)throw new Error("Product have different currency")}return o},G2=(e,t)=>{if(!e.volumeDiscounts||e.volumeDiscounts.length===0)return 0;const n=e.volumeDiscounts.filter(u=>t>=u.amount);return n.length===0?0:n.reduce((u,a)=>a.amount>u.amount?a:u).percentage},X2=(e,t)=>{let n=0,r=0;return e.forEach(u=>{var m,p;const a=t.find(b=>(b==null?void 0:b.id)===u.productId),s=a==null?void 0:a.variants.find(b=>b.id===u.productVariantId);if(!s)return;const{gateway:o}=g.useCartStore.getState().cart,c=(s==null?void 0:s.gateways)||[],l=c.some(b=>b.name===o&&b.overrodePrice)?(m=c.find(b=>b.name===o))==null?void 0:m.overrodePrice:null;let h=0,f=0;if(u.chargeType==="ONE_TIME"?(h=(l==null?void 0:l.amount)||(s==null?void 0:s.price.amount)||0,f=h*u.quantity):f=s!=null&&s.subscriptionSettings?s.subscriptionSettings.price.amount+(((p=s.subscriptionSettings.entryFee)==null?void 0:p.amount)||0):0,n+=f,u.chargeType==="ONE_TIME"){const b=G2(s,u.quantity),_=f*(1-b/100);r+=_}else r+=f}),{total:n,totalWithVolumeDiscounts:r}},K2=(e,t)=>({isRequired:t.some(r=>{var a;const u=e.find(s=>(s==null?void 0:s.id)===r.productId);return(a=u==null?void 0:u.variants.find(s=>s.id===r.productVariantId))==null?void 0:a.discordSettings.isRequired}),isEnabled:t.some(r=>{var a;const u=e.find(s=>(s==null?void 0:s.id)===r.productId);return(a=u==null?void 0:u.variants.find(s=>s.id===r.productVariantId))==null?void 0:a.discordSettings.isEnabled})}),Yi=e=>new Set(e.gateways.map(t=>t.name)),Ma={availableGateways:[],requiresSignInGateways:[]},Gi=(e,t)=>{if(t.length===0)return Ma;const n=e[0];if(!n)return Ma;const r=t.find(o=>o.id===n.productId),u=r==null?void 0:r.variants.find(o=>o.id===n.productVariantId);if(!u)return Ma;const a=Yi(u);for(const o of e){const c=t.find(f=>f.id===o.productId);if(!c)continue;const l=c.variants.find(f=>f.id===o.productVariantId);if(!l)continue;const h=Yi(l);for(const f of a)h.has(f)||a.delete(f)}return!localStorage.getItem("token")&&a.has(Ra)?(a.delete(Ra),{availableGateways:[...a],requiresSignInGateways:[Ra]}):{availableGateways:[...a],requiresSignInGateways:[]}},Xi=(e,t)=>{if(e.length===0)return[];const r=e.map(a=>{const s=t.find(c=>c.id===a.productId),o=s==null?void 0:s.variants.find(c=>c.id===a.productVariantId);return(o==null?void 0:o.customFields)??[]}).flat().reduce((a,s)=>{const o=a[s.name];return o?(s.required&&!o.required&&(a[s.name]={...s,value:s.defaultValue}),a):(a[s.name]={...s,value:s.defaultValue},a)},{});return Object.values(r).map(a=>({...a,value:""}))},Q2=(e,t)=>{const n=t.find(u=>u.id===e.productId),r=n==null?void 0:n.variants.find(u=>u.id===e.productVariantId);return e.chargeType==="RECURRING"?!!(r!=null&&r.subscriptionSettings):!1},du=()=>{const{cart:e,products:t,coupon:n,pending:r,applyCouponPending:u,customerEmail:a,setCart:s,setProducts:o,setCoupon:c,setPending:l,setApplyCouponPending:h}=g.useCartStore(),f=async _=>{var M;h(!0);const{cart:E}=g.useCartStore.getState(),{gateway:x,parts:k}=E,{notifications:y,setNotifications:D}=g.useNotificationStore.getState();x||(h(!1),D([...y,{message:"There should be a gateway for the coupon",status:"error",id:g.v4()}]));const S=k.map(H=>H.productId);let I=null;try{const{data:H}=await F2({gateway:x,couponName:_,productIds:S});I=H.data,D([...y,{message:"Coupon is applied",status:"success",id:g.v4()}]),s(U=>({...U,coupon:_}))}catch(H){const U=H;D([...y,{message:`Coupon is not applied: ${U.message}`,status:"error",id:g.v4()}]),s(P=>({...P,coupon:null})),c(null),h(!1)}if(h(!1),(M=I==null?void 0:I.restrictToProductIds)!=null&&M.length&&!S.every(H=>{var U;return(U=I==null?void 0:I.restrictToProductIds)==null?void 0:U.includes(H)}))throw new Error("Coupon can't be applied to such products");return c(I),I},b={reset(){s({...Y2})},addProducts:_=>{const E=g.useCartStore.getState().products,x=_.filter(k=>!E.some(y=>y.id===k.id));o([...E,...x])},addProductToCart:_=>{const E=g.useCartStore.getState().cart;try{Wi(t,_)}catch(k){throw new Error(k)}const x=E.parts.find(k=>k.productId===_.productId&&k.productVariantId===_.productVariantId&&k.chargeType===_.chargeType);if(x)return b.updateQuantityOfProduct({...x,quantity:(x.quantity||1)+(_.quantity||1),chargeType:_.chargeType});if(E.parts.length&&Gi([...E.parts,_],t).availableGateways.length===0)throw new Error("No common payment gateways available");s({...E,parts:[...E.parts,_]}),E.coupon&&f(E.coupon)},removeProduct({productId:_,productVariantId:E}){s(x=>({...x,parts:x.parts.filter(k=>k.productId!==_||k.productVariantId!==E)})),e.coupon&&f(e.coupon)},getPossibleGateways(){return Gi(e.parts,t)},removeCoupon(){c(null)},getDiscordSettings(){return K2(t,e.parts)},updateQuantityOfProduct(_){Wi(t,_),s(E=>({...E,parts:E.parts.map(x=>x.productId===_.productId&&x.productVariantId===_.productVariantId?{...x,quantity:_.quantity,chargeType:_.chargeType}:x)})),e.coupon&&f(e.coupon)},getTotalAndDiscount(){const{coupon:_}=g.useCartStore.getState(),{total:E,totalWithVolumeDiscounts:x}=X2(e.parts,t);let k;const y=x;return _&&_.discount?!_.isFixed&&_.discount===100?k=0:k=_.isFixed?Math.max(0,y-_.discount):y*(1-_.discount/100):x!==E&&(k=x),{total:E,totalWithVolumeDiscounts:x!==E?x:void 0,totalWithDiscount:k}},setGateway(_){s(x=>({...x,gateway:_}));const{isAntistock:E}=g.useGeneralStore.getState();e.coupon&&!E&&f(e.coupon)},setPaymentMethod(_){s(E=>({...E,paymentMethod:_}))},async submitCart(_){l(!0);const{cart:E}=g.useCartStore.getState(),{discordInfo:x}=g.useDiscordStore.getState();let k;if(E.parts&&a&&Q2(E.parts[0],t))try{const{data:y}=await y2({gateway:E.gateway,coupon:E.coupon,partOrder:E.parts[0],referralCode:localStorage.getItem("referralCode"),discordSocialConnectId:x!=null&&x.authorized?x.id:null,customerEmail:a,recaptcha:_,customFields:{...E.customFields},tsId:g.useGetTsId()});k=y.data}catch(y){console.error(y)}else try{const{data:y}=await m2({gateway:E.gateway,parts:[...E.parts],coupon:E.coupon,customerEmail:E.customerEmail,referralCode:localStorage.getItem("referralCode"),recaptcha:_,customFields:{...E.customFields},tsId:g.useGetTsId(),discordSocialConnectId:x!=null&&x.authorized?x.id:null,usePriorityReplacement:E.usePriorityReplacement===!0});k=y.data}catch(y){const D=y,{notifications:S,setNotifications:I}=g.useNotificationStore.getState();I([...S,{message:`Failed to create order: ${D.message}`,status:"error",id:g.v4()}])}if(l(!1),k)return k;throw new Error("Failed to create order")},setDiscordSocialConnectId(_){s(E=>({...E,discordSocialConnectId:_}))},setCustomFields(_){s(E=>({...E,customFields:{..._}}))}};return L.useEffect(()=>{s(_=>({..._,customerEmail:a??""}))},[a,s]),{cart:e,products:t,coupon:n,pending:r,applyCouponPending:u,applyCoupon:f,...b}},Zn=()=>{const{notifications:e,setNotifications:t}=g.useNotificationStore();return n=>{navigator.clipboard.writeText(n),t([...e,{status:"success",message:"Successfully copied",id:g.v4()}])}};var ys={exports:{}},Ts={exports:{}},Re={};/** @license React v16.13.1
|
|
1
|
+
"use strict";const g=require("./builder-CuCcIZjx.cjs"),i=require("react/jsx-runtime"),L=require("react"),N=require("./ui-components-C4tsxCG_.cjs"),nl=require("./builder-components-D8fl8nFz.cjs");require("react-dom");const rl=require("./ticket-ZqwqBmci.cjs"),ul=require("./order-gdnIl9fl.cjs"),t2=require("./subscription-CKzWjY6c.cjs");function n2(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const me=n2(L),r2=()=>typeof document<"u"?document.documentElement.hasAttribute("translated")||document.documentElement.querySelector(".translated-ltr, .translated-rtl")!==null||document.head.querySelector('meta[name="_translator"]')!==null:!1,al=({children:e,className:t,as:n="span",...r})=>{const[u,a]=L.useState(!1);return L.useEffect(()=>{typeof window<"u"&&a(r2())},[]),u?i.jsx(n,{className:t,...r,"data-stable-text":e,dangerouslySetInnerHTML:{__html:""}}):i.jsx(n,{className:t,...r,children:e})};async function u2(e){const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.storeApi}/shops/${n}/general`+(e?`?password=${e}`:"");return(await g.request({method:"get",url:r,withToken:!1})).data}const a2=async()=>{const e=g.useApiStore.getState().apiUrls,t=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"flagship-theme.pages.dev":window.location.hostname,n=`${e.storeApi}/v2/shops/${t}/settings-theme`;return await g.request({url:n,withToken:!0,method:"get"})},s2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/balance/top-up/${n}`;return await g.request({url:r,method:"post",body:e,withToken:!1})},i2=async(e,t)=>{const r=`${g.useApiStore.getState().apiUrls.cashappApi}/v1/${t}/cashapp/link`;return await g.request({url:r,method:"post",body:e,withToken:!1})},Nr=async e=>{const t=g.useApiStore.getState().apiUrls;if(!localStorage.getItem("token"))throw new Error("No access token");const r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${t.customersApi}/v2/${r}/customers/${e}`;return await g.request({url:u,withToken:!0,method:"get",typeToken:"customer"})},o2=()=>Nr("dash/info"),sl=()=>Nr("dash/dashboard/home"),c2=()=>Nr("rewards"),l2=()=>Nr("balance"),d2=()=>Nr("balance/top-up/settings"),f2=()=>Nr("referral-system"),Ks=e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.storeApi}/shops/${n}/${e}`;return g.request({url:r,withToken:!1,method:"get"})},h2=()=>Ks("terms"),p2=()=>Ks("refund-policy"),m2=()=>Ks("privacy-policy"),Es=10,aa=async({url:e,PageNumber:t})=>{var o;const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.customersApi}/v2/${r}/${e}?PageNumber=${t}&PageSize=${Es}`,a=await g.request({url:u,withToken:!0,method:"get",typeToken:"customer"}),s=Number((o=a.headers)==null?void 0:o["x-pagination-total"]);return{list:a.data,totalCount:s}},sa=async(e,t="get",n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v1/orders/${u}/${e}`;return await g.request({url:a,method:t,withToken:!0,body:n,typeToken:"customer"})},g2=e=>sa("","post",e),b2=({PageNumber:e})=>aa({url:"customers/orders",PageNumber:e}),_2=e=>sa(e),x2=e=>sa(e),C2=(e,t,n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v2/orders/${u}/${e}/${t}/replacement-requests`;return g.request({url:a,method:"post",withToken:!0,body:n,typeToken:"customer"})},E2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/public/${n}/images`,u=new FormData;return u.append("file",e),g.request({url:r,method:"post",withToken:!1,body:u})},y2=(e,t,n)=>sa(`${e}/${t}/replacement-requests/${n}/cancel`,"post"),T2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/${n}/subscriptions`;return await g.request({url:r,method:"post",withToken:!1,body:e})},k2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v2/${r}/subscriptions/${e}/${t}`;return await g.request({url:u,method:"get",withToken:!1})},A2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v1/${r}/subscriptions/${e}/${t}/upgrades`;return await g.request({url:u,method:"get",withToken:!1})},S2=async(e,t,n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v1/${u}/subscriptions/${e}/${t}/cancel`;return await g.request({url:a,method:"post",withToken:!1,body:n})},I2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v2/${r}/subscriptions/${e}/change-gateway`;return await g.request({url:u,method:"post",withToken:!1,body:{gateway:t}})},N2=({PageNumber:e})=>aa({url:"customers/subscriptions",PageNumber:e}),v2=async({id:e,accessToken:t})=>await A2(e,t),w2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v2/${r}/subscriptions/${e}/order`;return await g.request({url:u,method:"post",withToken:!1,body:t})},D2=async(e,t)=>{const n=g.useApiStore.getState().apiUrls,r=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,u=`${n.slApi}/v1/public/${r}/tickets/${e}/${t}`;return await g.request({url:u,method:"get",withToken:!1})},L2=async(e,t,n,r,u,a)=>{const s=g.useApiStore.getState().apiUrls,o=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,c=`${s.slApi}/v1/public/${o}/tickets/${e}/${t}/answer`;return(await g.request({url:c,method:"post",body:{message:n,recaptcha:r,tsId:u,...a&&a.length>0&&{imageIds:a.map(h=>h.imageId)}},withToken:!1})).data},P2=({PageNumber:e})=>aa({url:"customers/tickets",PageNumber:e}),R2=({PageNumber:e})=>aa({url:"customers/balance/transactions",PageNumber:e}),M2=async(e,t,n)=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.slApi}/v1/reviews/${u}/${t}/${n}`;return await g.request({url:a,method:"post",withToken:!1,body:e})},O2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/charges/${n}/${e}`;return await g.request({url:r,method:"get",withToken:!1})},j2=async e=>{const t=g.useApiStore.getState().apiUrls,n=e.map(s=>["names",s]),r=new URLSearchParams(n),u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${t.slApi}/v2/gateways?shopDomain=${u}&${r.toString()}`;return await g.request({url:a,method:"get",withToken:!1})},ku=new Map,il=async e=>{const t=g.useApiStore.getState().apiUrls,r=Array.from(new Set(e)).sort().map(l=>["names",l]),u=new URLSearchParams(r),a=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,s=`${t.slApi}/v2/checkout?shopDomain=${a}&${u.toString()}`,o=`${s}`;if(ku.has(o))return ku.get(o);const c=g.request({url:s,method:"get",withToken:!1}).catch(l=>{throw ku.delete(o),l});return ku.set(o,c),c},ol=async({email:e,recaptcha:t,tsId:n})=>{const r=g.useApiStore.getState().apiUrls,u=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,a=`${r.customersApi}/v2/${u}/auth/otp/request`;return(await g.request({url:a,body:{email:e,recaptcha:t,tsId:n},method:"post",withToken:!1})).data?{requested:!0,email:e}:{requested:!1,email:void 0}},cl=async({email:e,otp:t,recaptcha:n,tsId:r})=>{const u=g.useApiStore.getState().apiUrls,a=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,s=`${u.customersApi}/v2/${a}/auth/otp/login`,{data:o}=await g.request({url:s,method:"post",body:{email:e,otp:t,recaptcha:n,tsId:r},withToken:!1});return g.useStorefrontStore.getState().setToken(o.data),localStorage.setItem("token",o.data),{token:o.data,requested:!1}},ys=async()=>{g.useStorefrontStore.getState().setToken(""),g.useCustomerDashboardStore.getState().setDashInfo(null),localStorage.removeItem("token")},F2=Object.freeze(Object.defineProperty({__proto__:null,loginCustomer:cl,logoutCustomer:ys,requestOtp:ol},Symbol.toStringTag,{value:"Module"})),B2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v2/coupons/${n}/validate`;return await g.request({url:r,method:"post",body:e,withToken:!1})},H2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.customersApi}/v2/${n}/customers/referral-system/signup`;return(await g.request({url:r,withToken:!0,method:"post",body:e,typeToken:"customer"})).data},U2=async()=>{const{data:e}=await f2();return e},V2=async e=>{const{data:t}=await H2(e);return t},$2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/discord/${n}`;return await g.request({url:r,method:"post",body:e,withToken:!1})},z2=async e=>{const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.slApi}/v1/discord/${n}/${e.id}?customerEmail=${e.customerEmail}`;return await g.request({url:r,method:"get",withToken:!1})};async function q2(e){const t=g.useApiStore.getState().apiUrls,n=g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,r=`${t.customersApi}/v2/${n}/customers/rewards/${e.id}/claim`;return g.request({url:r,method:"post",withToken:!0,typeToken:"customer"})}const Z2=async(e,t,n,r)=>{const a=`${g.useApiStore.getState().apiUrls.slApi}/v1/vouches/${t}/${n}/${r}`;return await g.request({url:a,method:"post",withToken:!1,body:e})},ll=()=>g.IS_LOCAL_HOST?localStorage.getItem("fakeDomain"):window.location.hostname,W2=async()=>{const e=g.useApiStore.getState().apiUrls,t=ll(),n=`${e.customersApi}/v2/${t}/api-key`;return g.request({url:n,method:"get",withToken:!0,typeToken:"customer"})},Y2=async()=>{const e=g.useApiStore.getState().apiUrls,t=ll(),n=`${e.customersApi}/v2/${t}/api-key/regenerate`;return g.request({url:n,method:"post",withToken:!0,typeToken:"customer"})},Ma="Balance",jn={Number:"NUMBER",Textarea:"LARGE_TEXT",Checkbox:"CHECK_BOX",Hidden:"HIDDEN"},G2={customerEmail:"",recaptcha:"",gateway:"",paymentMethod:"",parts:[],customFields:{},discordSocialConnectId:null,coupon:null,tsId:""},Wi=(e,t)=>{var l;const{productId:n,productVariantId:r,quantity:u,chargeType:a}=t,s=e.find(h=>h.id===n);if(!s)throw new Error("Product does not exist");const o=s.variants.find(h=>h.id===r);if(!o)throw new Error("Variant does not exist");if(a==="RECURRING"&&!o.subscriptionSettings)throw new Error("Variant does not have subscription settings");if(u!==void 0&&((l=o.quantity)!=null&&l.available)&&o.quantity.available<u)throw new Error("Not enough quantity available");const c=g.useCartStore.getState().cart;if(c.parts.length>0){const h=e.find(m=>m.id===c.parts[0].productId),f=h==null?void 0:h.variants.find(m=>m.id===c.parts[0].productVariantId);if(f&&o.price.currency!==f.price.currency)throw new Error("Product have different currency")}return o},X2=(e,t)=>{if(!e.volumeDiscounts||e.volumeDiscounts.length===0)return 0;const n=e.volumeDiscounts.filter(u=>t>=u.amount);return n.length===0?0:n.reduce((u,a)=>a.amount>u.amount?a:u).percentage},K2=(e,t)=>{let n=0,r=0;return e.forEach(u=>{var m,p;const a=t.find(b=>(b==null?void 0:b.id)===u.productId),s=a==null?void 0:a.variants.find(b=>b.id===u.productVariantId);if(!s)return;const{gateway:o}=g.useCartStore.getState().cart,c=(s==null?void 0:s.gateways)||[],l=c.some(b=>b.name===o&&b.overrodePrice)?(m=c.find(b=>b.name===o))==null?void 0:m.overrodePrice:null;let h=0,f=0;if(u.chargeType==="ONE_TIME"?(h=(l==null?void 0:l.amount)||(s==null?void 0:s.price.amount)||0,f=h*u.quantity):f=s!=null&&s.subscriptionSettings?s.subscriptionSettings.price.amount+(((p=s.subscriptionSettings.entryFee)==null?void 0:p.amount)||0):0,n+=f,u.chargeType==="ONE_TIME"){const b=X2(s,u.quantity),_=f*(1-b/100);r+=_}else r+=f}),{total:n,totalWithVolumeDiscounts:r}},Q2=(e,t)=>({isRequired:t.some(r=>{var a;const u=e.find(s=>(s==null?void 0:s.id)===r.productId);return(a=u==null?void 0:u.variants.find(s=>s.id===r.productVariantId))==null?void 0:a.discordSettings.isRequired}),isEnabled:t.some(r=>{var a;const u=e.find(s=>(s==null?void 0:s.id)===r.productId);return(a=u==null?void 0:u.variants.find(s=>s.id===r.productVariantId))==null?void 0:a.discordSettings.isEnabled})}),Yi=e=>new Set(e.gateways.map(t=>t.name)),Oa={availableGateways:[],requiresSignInGateways:[]},Gi=(e,t)=>{if(t.length===0)return Oa;const n=e[0];if(!n)return Oa;const r=t.find(o=>o.id===n.productId),u=r==null?void 0:r.variants.find(o=>o.id===n.productVariantId);if(!u)return Oa;const a=Yi(u);for(const o of e){const c=t.find(f=>f.id===o.productId);if(!c)continue;const l=c.variants.find(f=>f.id===o.productVariantId);if(!l)continue;const h=Yi(l);for(const f of a)h.has(f)||a.delete(f)}return!localStorage.getItem("token")&&a.has(Ma)?(a.delete(Ma),{availableGateways:[...a],requiresSignInGateways:[Ma]}):{availableGateways:[...a],requiresSignInGateways:[]}},Xi=(e,t)=>{if(e.length===0)return[];const r=e.map(a=>{const s=t.find(c=>c.id===a.productId),o=s==null?void 0:s.variants.find(c=>c.id===a.productVariantId);return(o==null?void 0:o.customFields)??[]}).flat().reduce((a,s)=>{const o=a[s.name];return o?(s.required&&!o.required&&(a[s.name]={...s,value:s.defaultValue}),a):(a[s.name]={...s,value:s.defaultValue},a)},{});return Object.values(r).map(a=>({...a,value:""}))},J2=(e,t)=>{const n=t.find(u=>u.id===e.productId),r=n==null?void 0:n.variants.find(u=>u.id===e.productVariantId);return e.chargeType==="RECURRING"?!!(r!=null&&r.subscriptionSettings):!1},du=()=>{const{cart:e,products:t,coupon:n,pending:r,applyCouponPending:u,customerEmail:a,setCart:s,setProducts:o,setCoupon:c,setPending:l,setApplyCouponPending:h}=g.useCartStore(),f=async _=>{var M;h(!0);const{cart:E}=g.useCartStore.getState(),{gateway:x,parts:k}=E,{notifications:y,setNotifications:D}=g.useNotificationStore.getState();x||(h(!1),D([...y,{message:"There should be a gateway for the coupon",status:"error",id:g.v4()}]));const S=k.map(H=>H.productId);let I=null;try{const{data:H}=await B2({gateway:x,couponName:_,productIds:S});I=H.data,D([...y,{message:"Coupon is applied",status:"success",id:g.v4()}]),s(U=>({...U,coupon:_}))}catch(H){const U=H;D([...y,{message:`Coupon is not applied: ${U.message}`,status:"error",id:g.v4()}]),s(P=>({...P,coupon:null})),c(null),h(!1)}if(h(!1),(M=I==null?void 0:I.restrictToProductIds)!=null&&M.length&&!S.every(H=>{var U;return(U=I==null?void 0:I.restrictToProductIds)==null?void 0:U.includes(H)}))throw new Error("Coupon can't be applied to such products");return c(I),I},b={reset(){s({...G2})},addProducts:_=>{const E=g.useCartStore.getState().products,x=_.filter(k=>!E.some(y=>y.id===k.id));o([...E,...x])},addProductToCart:_=>{const E=g.useCartStore.getState().cart;try{Wi(t,_)}catch(k){throw new Error(k)}const x=E.parts.find(k=>k.productId===_.productId&&k.productVariantId===_.productVariantId&&k.chargeType===_.chargeType);if(x)return b.updateQuantityOfProduct({...x,quantity:(x.quantity||1)+(_.quantity||1),chargeType:_.chargeType});if(E.parts.length&&Gi([...E.parts,_],t).availableGateways.length===0)throw new Error("No common payment gateways available");s({...E,parts:[...E.parts,_]}),E.coupon&&f(E.coupon)},removeProduct({productId:_,productVariantId:E}){s(x=>({...x,parts:x.parts.filter(k=>k.productId!==_||k.productVariantId!==E)})),e.coupon&&f(e.coupon)},getPossibleGateways(){return Gi(e.parts,t)},removeCoupon(){c(null)},getDiscordSettings(){return Q2(t,e.parts)},updateQuantityOfProduct(_){Wi(t,_),s(E=>({...E,parts:E.parts.map(x=>x.productId===_.productId&&x.productVariantId===_.productVariantId?{...x,quantity:_.quantity,chargeType:_.chargeType}:x)})),e.coupon&&f(e.coupon)},getTotalAndDiscount(){const{coupon:_}=g.useCartStore.getState(),{total:E,totalWithVolumeDiscounts:x}=K2(e.parts,t);let k;const y=x;return _&&_.discount?!_.isFixed&&_.discount===100?k=0:k=_.isFixed?Math.max(0,y-_.discount):y*(1-_.discount/100):x!==E&&(k=x),{total:E,totalWithVolumeDiscounts:x!==E?x:void 0,totalWithDiscount:k}},setGateway(_){s(x=>({...x,gateway:_}));const{isAntistock:E}=g.useGeneralStore.getState();e.coupon&&!E&&f(e.coupon)},setPaymentMethod(_){s(E=>({...E,paymentMethod:_}))},async submitCart(_){l(!0);const{cart:E}=g.useCartStore.getState(),{discordInfo:x}=g.useDiscordStore.getState();let k;if(E.parts&&a&&J2(E.parts[0],t))try{const{data:y}=await T2({gateway:E.gateway,coupon:E.coupon,partOrder:E.parts[0],referralCode:localStorage.getItem("referralCode"),discordSocialConnectId:x!=null&&x.authorized?x.id:null,customerEmail:a,recaptcha:_,customFields:{...E.customFields},tsId:g.useGetTsId()});k=y.data}catch(y){console.error(y)}else try{const{data:y}=await g2({gateway:E.gateway,parts:[...E.parts],coupon:E.coupon,customerEmail:E.customerEmail,referralCode:localStorage.getItem("referralCode"),recaptcha:_,customFields:{...E.customFields},tsId:g.useGetTsId(),discordSocialConnectId:x!=null&&x.authorized?x.id:null,usePriorityReplacement:E.usePriorityReplacement===!0});k=y.data}catch(y){const D=y,{notifications:S,setNotifications:I}=g.useNotificationStore.getState();I([...S,{message:`Failed to create order: ${D.message}`,status:"error",id:g.v4()}])}if(l(!1),k)return k;throw new Error("Failed to create order")},setDiscordSocialConnectId(_){s(E=>({...E,discordSocialConnectId:_}))},setCustomFields(_){s(E=>({...E,customFields:{..._}}))}};return L.useEffect(()=>{s(_=>({..._,customerEmail:a??""}))},[a,s]),{cart:e,products:t,coupon:n,pending:r,applyCouponPending:u,applyCoupon:f,...b}},Zn=()=>{const{notifications:e,setNotifications:t}=g.useNotificationStore();return n=>{navigator.clipboard.writeText(n),t([...e,{status:"success",message:"Successfully copied",id:g.v4()}])}};var Ts={exports:{}},Au={exports:{}},Re={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var Ki;function
|
|
8
|
+
*/var Ki;function ef(){if(Ki)return Re;Ki=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,u=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function y(S){if(typeof S=="object"&&S!==null){var I=S.$$typeof;switch(I){case t:switch(S=S.type,S){case c:case l:case r:case a:case u:case f:return S;default:switch(S=S&&S.$$typeof,S){case o:case h:case b:case p:case s:return S;default:return I}}case n:return I}}}function D(S){return y(S)===l}return Re.AsyncMode=c,Re.ConcurrentMode=l,Re.ContextConsumer=o,Re.ContextProvider=s,Re.Element=t,Re.ForwardRef=h,Re.Fragment=r,Re.Lazy=b,Re.Memo=p,Re.Portal=n,Re.Profiler=a,Re.StrictMode=u,Re.Suspense=f,Re.isAsyncMode=function(S){return D(S)||y(S)===c},Re.isConcurrentMode=D,Re.isContextConsumer=function(S){return y(S)===o},Re.isContextProvider=function(S){return y(S)===s},Re.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Re.isForwardRef=function(S){return y(S)===h},Re.isFragment=function(S){return y(S)===r},Re.isLazy=function(S){return y(S)===b},Re.isMemo=function(S){return y(S)===p},Re.isPortal=function(S){return y(S)===n},Re.isProfiler=function(S){return y(S)===a},Re.isStrictMode=function(S){return y(S)===u},Re.isSuspense=function(S){return y(S)===f},Re.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===l||S===a||S===u||S===f||S===m||typeof S=="object"&&S!==null&&(S.$$typeof===b||S.$$typeof===p||S.$$typeof===s||S.$$typeof===o||S.$$typeof===h||S.$$typeof===E||S.$$typeof===x||S.$$typeof===k||S.$$typeof===_)},Re.typeOf=y,Re}var Me={};/** @license React v16.13.1
|
|
9
9
|
* react-is.development.js
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var Qi;function
|
|
15
|
+
*/var Qi;function tf(){return Qi||(Qi=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,u=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function y(G){return typeof G=="string"||typeof G=="function"||G===r||G===l||G===a||G===u||G===f||G===m||typeof G=="object"&&G!==null&&(G.$$typeof===b||G.$$typeof===p||G.$$typeof===s||G.$$typeof===o||G.$$typeof===h||G.$$typeof===E||G.$$typeof===x||G.$$typeof===k||G.$$typeof===_)}function D(G){if(typeof G=="object"&&G!==null){var pt=G.$$typeof;switch(pt){case t:var oe=G.type;switch(oe){case c:case l:case r:case a:case u:case f:return oe;default:var pe=oe&&oe.$$typeof;switch(pe){case o:case h:case b:case p:case s:return pe;default:return pt}}case n:return pt}}}var S=c,I=l,M=o,H=s,U=t,P=h,B=r,O=b,X=p,Y=n,K=a,ue=u,ae=f,se=!1;function _e(G){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),C(G)||D(G)===c}function C(G){return D(G)===l}function V(G){return D(G)===o}function te(G){return D(G)===s}function v(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function J(G){return D(G)===h}function ne(G){return D(G)===r}function Q(G){return D(G)===b}function de(G){return D(G)===p}function le(G){return D(G)===n}function ie(G){return D(G)===a}function xe(G){return D(G)===u}function $e(G){return D(G)===f}Me.AsyncMode=S,Me.ConcurrentMode=I,Me.ContextConsumer=M,Me.ContextProvider=H,Me.Element=U,Me.ForwardRef=P,Me.Fragment=B,Me.Lazy=O,Me.Memo=X,Me.Portal=Y,Me.Profiler=K,Me.StrictMode=ue,Me.Suspense=ae,Me.isAsyncMode=_e,Me.isConcurrentMode=C,Me.isContextConsumer=V,Me.isContextProvider=te,Me.isElement=v,Me.isForwardRef=J,Me.isFragment=ne,Me.isLazy=Q,Me.isMemo=de,Me.isPortal=le,Me.isProfiler=ie,Me.isStrictMode=xe,Me.isSuspense=$e,Me.isValidElementType=y,Me.typeOf=D}()),Me}var Ji;function Qs(){return Ji||(Ji=1,process.env.NODE_ENV==="production"?Au.exports=ef():Au.exports=tf()),Au.exports}/*
|
|
16
16
|
object-assign
|
|
17
17
|
(c) Sindre Sorhus
|
|
18
18
|
@license MIT
|
|
19
|
-
*/var
|
|
20
|
-
Valid keys: `+JSON.stringify(Object.keys(C),null," "));var G=$e(de,xe,J,ne,Q+"."+xe,n);if(G)return G}return null}return E(V)}function Y(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(Y);if(C===null||o(C))return!0;var V=f(C);if(V){var te=V.call(C),v;if(V!==C.entries){for(;!(v=te.next()).done;)if(!Y(v.value))return!1}else for(;!(v=te.next()).done;){var J=v.value;if(J&&!Y(J[1]))return!1}}else return!1;return!0;default:return!1}}function K(C,V){return C==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function ue(C){var V=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":K(V,C)?"symbol":V}function ae(C){if(typeof C>"u"||C===null)return""+C;var V=ue(C);if(V==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return V}function se(C){var V=ae(C);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function _e(C){return!C.constructor||!C.constructor.name?m:C.constructor.name}return p.checkPropTypes=u,p.resetWarningCache=u.resetWarningCache,p.PropTypes=p,p},Ha}var Ua,uo;function uf(){if(uo)return Ua;uo=1;var e=Js();function t(){}function n(){}return n.resetWarningCache=t,Ua=function(){function r(s,o,c,l,h,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function u(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:u,element:r,elementType:r,instanceOf:u,node:r,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Ua}if(process.env.NODE_ENV!=="production"){var af=Qs,sf=!0;ys.exports=rf()(af.isElement,sf)}else ys.exports=uf()();var of=ys.exports;const vt=g.getDefaultExportFromCjs(of);var cf=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function ks(){return ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ks.apply(this,arguments)}function lf(e,t){if(e==null)return{};var n={},r=Object.keys(e),u,a;for(a=0;a<r.length;a++)u=r[a],!(t.indexOf(u)>=0)&&(n[u]=e[u]);return n}function Au(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function df(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,As(e,t)}function As(e,t){return As=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,u){return r.__proto__=u,r},As(e,t)}var sa=function(e){df(t,e);function t(){var r;return r=e.call(this)||this,r.handleExpired=r.handleExpired.bind(Au(r)),r.handleErrored=r.handleErrored.bind(Au(r)),r.handleChange=r.handleChange.bind(Au(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(Au(r)),r}var n=t.prototype;return n.getCaptchaFunction=function(u){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[u]:this.props.grecaptcha[u]:null},n.getValue=function(){var u=this.getCaptchaFunction("getResponse");return u&&this._widgetId!==void 0?u(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var u=this.getCaptchaFunction("execute");if(u&&this._widgetId!==void 0)return u(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var u=this;return new Promise(function(a,s){u.executionResolve=a,u.executionReject=s,u.execute()})},n.reset=function(){var u=this.getCaptchaFunction("reset");u&&this._widgetId!==void 0&&u(this._widgetId)},n.forceReset=function(){var u=this.getCaptchaFunction("reset");u&&u()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(u){this.props.onChange&&this.props.onChange(u),this.executionResolve&&(this.executionResolve(u),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var u=this.getCaptchaFunction("render");if(u&&this._widgetId===void 0){var a=document.createElement("div");this._widgetId=u(a,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(a)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(u){this.captcha=u},n.render=function(){var u=this.props;u.sitekey,u.onChange,u.theme,u.type,u.tabindex,u.onExpired,u.onErrored,u.size,u.stoken,u.grecaptcha,u.badge,u.hl,u.isolated;var a=lf(u,cf);return me.createElement("div",ks({},a,{ref:this.handleRecaptchaRef}))},t}(me.Component);sa.displayName="ReCAPTCHA";sa.propTypes={sitekey:vt.string.isRequired,onChange:vt.func,grecaptcha:vt.object,theme:vt.oneOf(["dark","light"]),type:vt.oneOf(["image","audio"]),tabindex:vt.number,onExpired:vt.func,onErrored:vt.func,size:vt.oneOf(["compact","normal","invisible"]),stoken:vt.string,hl:vt.string,badge:vt.oneOf(["bottomright","bottomleft","inline"]),isolated:vt.bool};sa.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var ei=Qs,ff={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},hf={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},pf={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ti={};ti[ei.ForwardRef]=pf;ti[ei.Memo]=dl;function ao(e){return ei.isMemo(e)?dl:ti[e.$$typeof]||ff}var mf=Object.defineProperty,gf=Object.getOwnPropertyNames,so=Object.getOwnPropertySymbols,bf=Object.getOwnPropertyDescriptor,_f=Object.getPrototypeOf,io=Object.prototype;function fl(e,t,n){if(typeof t!="string"){if(io){var r=_f(t);r&&r!==io&&fl(e,r,n)}var u=gf(t);so&&(u=u.concat(so(t)));for(var a=ao(e),s=ao(t),o=0;o<u.length;++o){var c=u[o];if(!hf[c]&&!(n&&n[c])&&!(s&&s[c])&&!(a&&a[c])){var l=bf(t,c);try{mf(e,c,l)}catch{}}}}return e}var xf=fl;const Cf=g.getDefaultExportFromCjs(xf);function Ss(){return Ss=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ss.apply(this,arguments)}function Ef(e,t){if(e==null)return{};var n={},r=Object.keys(e),u,a;for(a=0;a<r.length;a++)u=r[a],!(t.indexOf(u)>=0)&&(n[u]=e[u]);return n}function yf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var en={},Tf=0;function kf(e,t){return t=t||{},function(r){var u=r.displayName||r.name||"Component",a=function(o){yf(c,o);function c(h,f){var m;return m=o.call(this,h,f)||this,m.state={},m.__scriptURL="",m}var l=c.prototype;return l.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+Tf++),this.__scriptLoaderID},l.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},l.asyncScriptLoaderHandleLoad=function(f){var m=this;this.setState(f,function(){return m.props.asyncScriptOnLoad&&m.props.asyncScriptOnLoad(m.state)})},l.asyncScriptLoaderTriggerOnScriptLoaded=function(){var f=en[this.__scriptURL];if(!f||!f.loaded)throw new Error("Script is not loaded.");for(var m in f.observers)f.observers[m](f);delete window[t.callbackName]},l.componentDidMount=function(){var f=this,m=this.setupScriptURL(),p=this.asyncScriptLoaderGetScriptLoaderID(),b=t,_=b.globalName,E=b.callbackName,x=b.scriptId;if(_&&typeof window[_]<"u"&&(en[m]={loaded:!0,observers:{}}),en[m]){var k=en[m];if(k&&(k.loaded||k.errored)){this.asyncScriptLoaderHandleLoad(k);return}k.observers[p]=function(M){return f.asyncScriptLoaderHandleLoad(M)};return}var y={};y[p]=function(M){return f.asyncScriptLoaderHandleLoad(M)},en[m]={loaded:!1,observers:y};var D=document.createElement("script");D.src=m,D.async=!0;for(var S in t.attributes)D.setAttribute(S,t.attributes[S]);x&&(D.id=x);var I=function(H){if(en[m]){var U=en[m],P=U.observers;for(var B in P)H(P[B])&&delete P[B]}};E&&typeof window<"u"&&(window[E]=function(){return f.asyncScriptLoaderTriggerOnScriptLoaded()}),D.onload=function(){var M=en[m];M&&(M.loaded=!0,I(function(H){return E?!1:(H(M),!0)}))},D.onerror=function(){var M=en[m];M&&(M.errored=!0,I(function(H){return H(M),!0}))},document.body.appendChild(D)},l.componentWillUnmount=function(){var f=this.__scriptURL;if(t.removeOnUnmount===!0)for(var m=document.getElementsByTagName("script"),p=0;p<m.length;p+=1)m[p].src.indexOf(f)>-1&&m[p].parentNode&&m[p].parentNode.removeChild(m[p]);var b=en[f];b&&(delete b.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete en[f])},l.render=function(){var f=t.globalName,m=this.props;m.asyncScriptOnLoad;var p=m.forwardedRef,b=Ef(m,["asyncScriptOnLoad","forwardedRef"]);return f&&typeof window<"u"&&(b[f]=typeof window[f]<"u"?window[f]:void 0),b.ref=p,L.createElement(r,b)},c}(L.Component),s=L.forwardRef(function(o,c){return L.createElement(a,Ss({},o,{forwardedRef:c}))});return s.displayName="AsyncScriptLoader("+u+")",s.propTypes={asyncScriptOnLoad:vt.func},Cf(s,r)}}var Is="onloadcallback",Af="grecaptcha";function Ns(){return typeof window<"u"&&window.recaptchaOptions||{}}function Sf(){var e=Ns(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Is+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Is+"&render=explicit"}const If=kf(Sf,{callbackName:Is,globalName:Af,attributes:Ns().nonce?{nonce:Ns().nonce}:{}})(sa),hl=()=>{const{isAntistock:e,general:t}=g.useGeneralStore();return{isAntistock:e,general:t}},pl="6LdQiIIpAAAAAAkhvhS9zuo5WNS5mAzZrALD9cCa",ml="6Ld0EgYrAAAAAF5_Zqm8S4ZrbCZu6s1u7evUlL3l",gl=L.createContext(void 0),ni=({children:e})=>{const t=L.useRef(null),{isAntistock:n}=hl(),{notifications:r,setNotifications:u}=g.useNotificationStore();L.useEffect(()=>{typeof window<"u"&&Nf()},[]);const a=async()=>{try{if(!t.current)return u([...r,{message:"[ReCAPTCHA] executeRecaptcha called before ref is ready",status:"error",id:g.v4()}]),null;const s=await t.current.executeAsync();return t.current.reset(),s||(u([...r,{message:"[ReCAPTCHA] Received empty token",status:"error",id:g.v4()}]),null)}catch{return u([...r,{message:"[ReCAPTCHA] executeRecaptcha error",status:"error",id:g.v4()}]),null}};return i.jsxs(gl.Provider,{value:{recaptchaRef:t,executeRecaptcha:a},children:[e,i.jsx("div",{style:{visibility:"hidden",opacity:0},children:i.jsx(If,{sitekey:n?ml:pl,size:"invisible",ref:t,badge:"inline"})})]})},fu=()=>{const e=L.useContext(gl);if(e===void 0)throw new Error("useReCaptcha must be used within a ReCaptchaProvider");return e};function Nf(){var t,n;if(typeof window>"u")return;const e=(n=(t=[...document.getElementsByTagName("iframe")].find(r=>r.src.includes("google.com/recaptcha/api2/bframe")))==null?void 0:t.parentNode)==null?void 0:n.parentNode;e&&new MutationObserver(()=>{(e.style.visibility!=="visible"||e.style.opacity!=="1")&&(e.style.opacity="1",e.style.visibility="visible")}).observe(e,{attributeFilter:["style"]})}const vf=Object.freeze(Object.defineProperty({__proto__:null,ANTISTOCK_SITE_KEY:ml,ReCaptchaProvider:ni,SITE_KEY:pl,useReCaptcha:fu},Symbol.toStringTag,{value:"Module"}));var wf=/[ \u0020\t\n]*$/,Df=["*","_","~","`"],Lf=/(\*|_|~|\\|`)/g,Rn={},Va=0,En={"unordered-list-item":{open:function(){return"- "},close:function(){return""}},"ordered-list-item":{open:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return"".concat(n,". ")},close:function(){return""}},blockquote:{open:function(){return"> "},close:function(){return""}},"header-one":{open:function(){return"# "},close:function(){return""}},"header-two":{open:function(){return"## "},close:function(){return""}},"header-three":{open:function(){return"### "},close:function(){return""}},"header-four":{open:function(){return"#### "},close:function(){return""}},"header-five":{open:function(){return"##### "},close:function(){return""}},"header-six":{open:function(){return"###### "},close:function(){return""}},"code-block":{open:function(t){return"```"+(t.data.language||"")+`
|
|
21
|
-
`},close:function(){return"\n```"}},BOLD:{open:function(){return"**"},close:function(){return"**"}},ITALIC:{open:function(){return"_"},close:function(){return"_"}},STRIKETHROUGH:{open:function(){return"~~"},close:function(){return"~~"}},CODE:{open:function(){return"`"},close:function(){return"`"}}},
|
|
19
|
+
*/var ja,eo;function nf(){if(eo)return ja;eo=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function u(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},o=0;o<10;o++)s["_"+String.fromCharCode(o)]=o;var c=Object.getOwnPropertyNames(s).map(function(h){return s[h]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(h){l[h]=h}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ja=u()?Object.assign:function(a,s){for(var o,c=r(a),l,h=1;h<arguments.length;h++){o=Object(arguments[h]);for(var f in o)t.call(o,f)&&(c[f]=o[f]);if(e){l=e(o);for(var m=0;m<l.length;m++)n.call(o,l[m])&&(c[l[m]]=o[l[m]])}}return c},ja}var Fa,to;function Js(){if(to)return Fa;to=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Fa=e,Fa}var Ba,no;function dl(){return no||(no=1,Ba=Function.call.bind(Object.prototype.hasOwnProperty)),Ba}var Ha,ro;function rf(){if(ro)return Ha;ro=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Js(),n={},r=dl();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function u(a,s,o,c,l){if(process.env.NODE_ENV!=="production"){for(var h in a)if(r(a,h)){var f;try{if(typeof a[h]!="function"){var m=Error((c||"React class")+": "+o+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}f=a[h](s,h,c,o,null,t)}catch(b){f=b}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+o+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var p=l?l():"";e("Failed "+o+" type: "+f.message+(p??""))}}}}return u.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ha=u,Ha}var Ua,uo;function uf(){if(uo)return Ua;uo=1;var e=Qs(),t=nf(),n=Js(),r=dl(),u=rf(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(o){var c="Warning: "+o;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return Ua=function(o,c){var l=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function f(C){var V=C&&(l&&C[l]||C[h]);if(typeof V=="function")return V}var m="<<anonymous>>",p={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:k(),arrayOf:y,element:D(),elementType:S(),instanceOf:I,node:P(),objectOf:H,oneOf:M,oneOfType:U,shape:O,exact:X};function b(C,V){return C===V?C!==0||1/C===1/V:C!==C&&V!==V}function _(C,V){this.message=C,this.data=V&&typeof V=="object"?V:{},this.stack=""}_.prototype=Error.prototype;function E(C){if(process.env.NODE_ENV!=="production")var V={},te=0;function v(ne,Q,de,le,ie,xe,$e){if(le=le||m,xe=xe||de,$e!==n){if(c){var G=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw G.name="Invariant Violation",G}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pt=le+":"+de;!V[pt]&&te<3&&(a("You are manually calling a React.PropTypes validation function for the `"+xe+"` prop on `"+le+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[pt]=!0,te++)}}return Q[de]==null?ne?Q[de]===null?new _("The "+ie+" `"+xe+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new _("The "+ie+" `"+xe+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:C(Q,de,le,ie,xe)}var J=v.bind(null,!1);return J.isRequired=v.bind(null,!0),J}function x(C){function V(te,v,J,ne,Q,de){var le=te[v],ie=ue(le);if(ie!==C){var xe=ae(le);return new _("Invalid "+ne+" `"+Q+"` of type "+("`"+xe+"` supplied to `"+J+"`, expected ")+("`"+C+"`."),{expectedType:C})}return null}return E(V)}function k(){return E(s)}function y(C){function V(te,v,J,ne,Q){if(typeof C!="function")return new _("Property `"+Q+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var de=te[v];if(!Array.isArray(de)){var le=ue(de);return new _("Invalid "+ne+" `"+Q+"` of type "+("`"+le+"` supplied to `"+J+"`, expected an array."))}for(var ie=0;ie<de.length;ie++){var xe=C(de,ie,J,ne,Q+"["+ie+"]",n);if(xe instanceof Error)return xe}return null}return E(V)}function D(){function C(V,te,v,J,ne){var Q=V[te];if(!o(Q)){var de=ue(Q);return new _("Invalid "+J+" `"+ne+"` of type "+("`"+de+"` supplied to `"+v+"`, expected a single ReactElement."))}return null}return E(C)}function S(){function C(V,te,v,J,ne){var Q=V[te];if(!e.isValidElementType(Q)){var de=ue(Q);return new _("Invalid "+J+" `"+ne+"` of type "+("`"+de+"` supplied to `"+v+"`, expected a single ReactElement type."))}return null}return E(C)}function I(C){function V(te,v,J,ne,Q){if(!(te[v]instanceof C)){var de=C.name||m,le=_e(te[v]);return new _("Invalid "+ne+" `"+Q+"` of type "+("`"+le+"` supplied to `"+J+"`, expected ")+("instance of `"+de+"`."))}return null}return E(V)}function M(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function V(te,v,J,ne,Q){for(var de=te[v],le=0;le<C.length;le++)if(b(de,C[le]))return null;var ie=JSON.stringify(C,function($e,G){var pt=ae(G);return pt==="symbol"?String(G):G});return new _("Invalid "+ne+" `"+Q+"` of value `"+String(de)+"` "+("supplied to `"+J+"`, expected one of "+ie+"."))}return E(V)}function H(C){function V(te,v,J,ne,Q){if(typeof C!="function")return new _("Property `"+Q+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var de=te[v],le=ue(de);if(le!=="object")return new _("Invalid "+ne+" `"+Q+"` of type "+("`"+le+"` supplied to `"+J+"`, expected an object."));for(var ie in de)if(r(de,ie)){var xe=C(de,ie,J,ne,Q+"."+ie,n);if(xe instanceof Error)return xe}return null}return E(V)}function U(C){if(!Array.isArray(C))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var V=0;V<C.length;V++){var te=C[V];if(typeof te!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(te)+" at index "+V+"."),s}function v(J,ne,Q,de,le){for(var ie=[],xe=0;xe<C.length;xe++){var $e=C[xe],G=$e(J,ne,Q,de,le,n);if(G==null)return null;G.data&&r(G.data,"expectedType")&&ie.push(G.data.expectedType)}var pt=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new _("Invalid "+de+" `"+le+"` supplied to "+("`"+Q+"`"+pt+"."))}return E(v)}function P(){function C(V,te,v,J,ne){return Y(V[te])?null:new _("Invalid "+J+" `"+ne+"` supplied to "+("`"+v+"`, expected a ReactNode."))}return E(C)}function B(C,V,te,v,J){return new _((C||"React class")+": "+V+" type `"+te+"."+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function O(C){function V(te,v,J,ne,Q){var de=te[v],le=ue(de);if(le!=="object")return new _("Invalid "+ne+" `"+Q+"` of type `"+le+"` "+("supplied to `"+J+"`, expected `object`."));for(var ie in C){var xe=C[ie];if(typeof xe!="function")return B(J,ne,Q,ie,ae(xe));var $e=xe(de,ie,J,ne,Q+"."+ie,n);if($e)return $e}return null}return E(V)}function X(C){function V(te,v,J,ne,Q){var de=te[v],le=ue(de);if(le!=="object")return new _("Invalid "+ne+" `"+Q+"` of type `"+le+"` "+("supplied to `"+J+"`, expected `object`."));var ie=t({},te[v],C);for(var xe in ie){var $e=C[xe];if(r(C,xe)&&typeof $e!="function")return B(J,ne,Q,xe,ae($e));if(!$e)return new _("Invalid "+ne+" `"+Q+"` key `"+xe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(te[v],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(C),null," "));var G=$e(de,xe,J,ne,Q+"."+xe,n);if(G)return G}return null}return E(V)}function Y(C){switch(typeof C){case"number":case"string":case"undefined":return!0;case"boolean":return!C;case"object":if(Array.isArray(C))return C.every(Y);if(C===null||o(C))return!0;var V=f(C);if(V){var te=V.call(C),v;if(V!==C.entries){for(;!(v=te.next()).done;)if(!Y(v.value))return!1}else for(;!(v=te.next()).done;){var J=v.value;if(J&&!Y(J[1]))return!1}}else return!1;return!0;default:return!1}}function K(C,V){return C==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function ue(C){var V=typeof C;return Array.isArray(C)?"array":C instanceof RegExp?"object":K(V,C)?"symbol":V}function ae(C){if(typeof C>"u"||C===null)return""+C;var V=ue(C);if(V==="object"){if(C instanceof Date)return"date";if(C instanceof RegExp)return"regexp"}return V}function se(C){var V=ae(C);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function _e(C){return!C.constructor||!C.constructor.name?m:C.constructor.name}return p.checkPropTypes=u,p.resetWarningCache=u.resetWarningCache,p.PropTypes=p,p},Ua}var Va,ao;function af(){if(ao)return Va;ao=1;var e=Js();function t(){}function n(){}return n.resetWarningCache=t,Va=function(){function r(s,o,c,l,h,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function u(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:u,element:r,elementType:r,instanceOf:u,node:r,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Va}if(process.env.NODE_ENV!=="production"){var sf=Qs(),of=!0;Ts.exports=uf()(sf.isElement,of)}else Ts.exports=af()();var cf=Ts.exports;const vt=g.getDefaultExportFromCjs(cf);var lf=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function ks(){return ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ks.apply(this,arguments)}function df(e,t){if(e==null)return{};var n={},r=Object.keys(e),u,a;for(a=0;a<r.length;a++)u=r[a],!(t.indexOf(u)>=0)&&(n[u]=e[u]);return n}function Su(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ff(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,As(e,t)}function As(e,t){return As=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,u){return r.__proto__=u,r},As(e,t)}var ia=function(e){ff(t,e);function t(){var r;return r=e.call(this)||this,r.handleExpired=r.handleExpired.bind(Su(r)),r.handleErrored=r.handleErrored.bind(Su(r)),r.handleChange=r.handleChange.bind(Su(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(Su(r)),r}var n=t.prototype;return n.getCaptchaFunction=function(u){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[u]:this.props.grecaptcha[u]:null},n.getValue=function(){var u=this.getCaptchaFunction("getResponse");return u&&this._widgetId!==void 0?u(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var u=this.getCaptchaFunction("execute");if(u&&this._widgetId!==void 0)return u(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var u=this;return new Promise(function(a,s){u.executionResolve=a,u.executionReject=s,u.execute()})},n.reset=function(){var u=this.getCaptchaFunction("reset");u&&this._widgetId!==void 0&&u(this._widgetId)},n.forceReset=function(){var u=this.getCaptchaFunction("reset");u&&u()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(u){this.props.onChange&&this.props.onChange(u),this.executionResolve&&(this.executionResolve(u),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var u=this.getCaptchaFunction("render");if(u&&this._widgetId===void 0){var a=document.createElement("div");this._widgetId=u(a,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(a)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(u){this.captcha=u},n.render=function(){var u=this.props;u.sitekey,u.onChange,u.theme,u.type,u.tabindex,u.onExpired,u.onErrored,u.size,u.stoken,u.grecaptcha,u.badge,u.hl,u.isolated;var a=df(u,lf);return me.createElement("div",ks({},a,{ref:this.handleRecaptchaRef}))},t}(me.Component);ia.displayName="ReCAPTCHA";ia.propTypes={sitekey:vt.string.isRequired,onChange:vt.func,grecaptcha:vt.object,theme:vt.oneOf(["dark","light"]),type:vt.oneOf(["image","audio"]),tabindex:vt.number,onExpired:vt.func,onErrored:vt.func,size:vt.oneOf(["compact","normal","invisible"]),stoken:vt.string,hl:vt.string,badge:vt.oneOf(["bottomright","bottomleft","inline"]),isolated:vt.bool};ia.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var ei=Qs(),hf={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pf={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mf={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ti={};ti[ei.ForwardRef]=mf;ti[ei.Memo]=fl;function so(e){return ei.isMemo(e)?fl:ti[e.$$typeof]||hf}var gf=Object.defineProperty,bf=Object.getOwnPropertyNames,io=Object.getOwnPropertySymbols,_f=Object.getOwnPropertyDescriptor,xf=Object.getPrototypeOf,oo=Object.prototype;function hl(e,t,n){if(typeof t!="string"){if(oo){var r=xf(t);r&&r!==oo&&hl(e,r,n)}var u=bf(t);io&&(u=u.concat(io(t)));for(var a=so(e),s=so(t),o=0;o<u.length;++o){var c=u[o];if(!pf[c]&&!(n&&n[c])&&!(s&&s[c])&&!(a&&a[c])){var l=_f(t,c);try{gf(e,c,l)}catch{}}}}return e}var Cf=hl;const Ef=g.getDefaultExportFromCjs(Cf);function Ss(){return Ss=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ss.apply(this,arguments)}function yf(e,t){if(e==null)return{};var n={},r=Object.keys(e),u,a;for(a=0;a<r.length;a++)u=r[a],!(t.indexOf(u)>=0)&&(n[u]=e[u]);return n}function Tf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var en={},kf=0;function Af(e,t){return t=t||{},function(r){var u=r.displayName||r.name||"Component",a=function(o){Tf(c,o);function c(h,f){var m;return m=o.call(this,h,f)||this,m.state={},m.__scriptURL="",m}var l=c.prototype;return l.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+kf++),this.__scriptLoaderID},l.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},l.asyncScriptLoaderHandleLoad=function(f){var m=this;this.setState(f,function(){return m.props.asyncScriptOnLoad&&m.props.asyncScriptOnLoad(m.state)})},l.asyncScriptLoaderTriggerOnScriptLoaded=function(){var f=en[this.__scriptURL];if(!f||!f.loaded)throw new Error("Script is not loaded.");for(var m in f.observers)f.observers[m](f);delete window[t.callbackName]},l.componentDidMount=function(){var f=this,m=this.setupScriptURL(),p=this.asyncScriptLoaderGetScriptLoaderID(),b=t,_=b.globalName,E=b.callbackName,x=b.scriptId;if(_&&typeof window[_]<"u"&&(en[m]={loaded:!0,observers:{}}),en[m]){var k=en[m];if(k&&(k.loaded||k.errored)){this.asyncScriptLoaderHandleLoad(k);return}k.observers[p]=function(M){return f.asyncScriptLoaderHandleLoad(M)};return}var y={};y[p]=function(M){return f.asyncScriptLoaderHandleLoad(M)},en[m]={loaded:!1,observers:y};var D=document.createElement("script");D.src=m,D.async=!0;for(var S in t.attributes)D.setAttribute(S,t.attributes[S]);x&&(D.id=x);var I=function(H){if(en[m]){var U=en[m],P=U.observers;for(var B in P)H(P[B])&&delete P[B]}};E&&typeof window<"u"&&(window[E]=function(){return f.asyncScriptLoaderTriggerOnScriptLoaded()}),D.onload=function(){var M=en[m];M&&(M.loaded=!0,I(function(H){return E?!1:(H(M),!0)}))},D.onerror=function(){var M=en[m];M&&(M.errored=!0,I(function(H){return H(M),!0}))},document.body.appendChild(D)},l.componentWillUnmount=function(){var f=this.__scriptURL;if(t.removeOnUnmount===!0)for(var m=document.getElementsByTagName("script"),p=0;p<m.length;p+=1)m[p].src.indexOf(f)>-1&&m[p].parentNode&&m[p].parentNode.removeChild(m[p]);var b=en[f];b&&(delete b.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete en[f])},l.render=function(){var f=t.globalName,m=this.props;m.asyncScriptOnLoad;var p=m.forwardedRef,b=yf(m,["asyncScriptOnLoad","forwardedRef"]);return f&&typeof window<"u"&&(b[f]=typeof window[f]<"u"?window[f]:void 0),b.ref=p,L.createElement(r,b)},c}(L.Component),s=L.forwardRef(function(o,c){return L.createElement(a,Ss({},o,{forwardedRef:c}))});return s.displayName="AsyncScriptLoader("+u+")",s.propTypes={asyncScriptOnLoad:vt.func},Ef(s,r)}}var Is="onloadcallback",Sf="grecaptcha";function Ns(){return typeof window<"u"&&window.recaptchaOptions||{}}function If(){var e=Ns(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Is+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Is+"&render=explicit"}const Nf=Af(If,{callbackName:Is,globalName:Sf,attributes:Ns().nonce?{nonce:Ns().nonce}:{}})(ia),pl=()=>{const{isAntistock:e,general:t}=g.useGeneralStore();return{isAntistock:e,general:t}},ml="6LdQiIIpAAAAAAkhvhS9zuo5WNS5mAzZrALD9cCa",gl="6Ld0EgYrAAAAAF5_Zqm8S4ZrbCZu6s1u7evUlL3l",bl=L.createContext(void 0),ni=({children:e})=>{const t=L.useRef(null),{isAntistock:n}=pl(),{notifications:r,setNotifications:u}=g.useNotificationStore();L.useEffect(()=>{typeof window<"u"&&vf()},[]);const a=async()=>{try{if(!t.current)return u([...r,{message:"[ReCAPTCHA] executeRecaptcha called before ref is ready",status:"error",id:g.v4()}]),null;const s=await t.current.executeAsync();return t.current.reset(),s||(u([...r,{message:"[ReCAPTCHA] Received empty token",status:"error",id:g.v4()}]),null)}catch{return u([...r,{message:"[ReCAPTCHA] executeRecaptcha error",status:"error",id:g.v4()}]),null}};return i.jsxs(bl.Provider,{value:{recaptchaRef:t,executeRecaptcha:a},children:[e,i.jsx("div",{style:{visibility:"hidden",opacity:0},children:i.jsx(Nf,{sitekey:n?gl:ml,size:"invisible",ref:t,badge:"inline"})})]})},fu=()=>{const e=L.useContext(bl);if(e===void 0)throw new Error("useReCaptcha must be used within a ReCaptchaProvider");return e};function vf(){var t,n;if(typeof window>"u")return;const e=(n=(t=[...document.getElementsByTagName("iframe")].find(r=>r.src.includes("google.com/recaptcha/api2/bframe")))==null?void 0:t.parentNode)==null?void 0:n.parentNode;e&&new MutationObserver(()=>{(e.style.visibility!=="visible"||e.style.opacity!=="1")&&(e.style.opacity="1",e.style.visibility="visible")}).observe(e,{attributeFilter:["style"]})}const wf=Object.freeze(Object.defineProperty({__proto__:null,ANTISTOCK_SITE_KEY:gl,ReCaptchaProvider:ni,SITE_KEY:ml,useReCaptcha:fu},Symbol.toStringTag,{value:"Module"}));var Df=/[ \u0020\t\n]*$/,Lf=["*","_","~","`"],Pf=/(\*|_|~|\\|`)/g,Rn={},$a=0,En={"unordered-list-item":{open:function(){return"- "},close:function(){return""}},"ordered-list-item":{open:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return"".concat(n,". ")},close:function(){return""}},blockquote:{open:function(){return"> "},close:function(){return""}},"header-one":{open:function(){return"# "},close:function(){return""}},"header-two":{open:function(){return"## "},close:function(){return""}},"header-three":{open:function(){return"### "},close:function(){return""}},"header-four":{open:function(){return"#### "},close:function(){return""}},"header-five":{open:function(){return"##### "},close:function(){return""}},"header-six":{open:function(){return"###### "},close:function(){return""}},"code-block":{open:function(t){return"```"+(t.data.language||"")+`
|
|
21
|
+
`},close:function(){return"\n```"}},BOLD:{open:function(){return"**"},close:function(){return"**"}},ITALIC:{open:function(){return"_"},close:function(){return"_"}},STRIKETHROUGH:{open:function(){return"~~"},close:function(){return"~~"}},CODE:{open:function(){return"`"},close:function(){return"`"}}},Iu={LINK:{open:function(t){return"["},close:function(t){return"](".concat(t.data.url||t.data.href,")")}}},Nu=["unordered-list-item","ordered-list-item"];function Rf(e){return e.text.length===0&&e.entityRanges.length===0&&Object.keys(e.data||{}).length===0}function Mf(e,t,n,r){var u=[],a="",s=r.styleItems||{},o=r.entityItems||{},c=r.hasOwnProperty("escapeMarkdownCharacters")?r.escapeMarkdownCharacters:!0,l=e.type,h=[];Rf(e)&&!r.preserveNewlines&&(l="unstyled"),s[l]||En[l]?((l==="unordered-list-item"||l==="ordered-list-item")&&(a+=" ".repeat(e.depth*4)),l==="ordered-list-item"?(Rn[e.depth]=Rn[e.depth]||1,a+=(s[l]||En[l]).open(e,Rn[e.depth]),Rn[e.depth]++,$a>e.depth&&(Rn[$a]=1),$a=e.depth):(Rn={},a+=(s[l]||En[l]).open(e))):Rn={};var f=[];function m(E){if(f.push(E),E.style){if(s[E.style]||En[E.style]){var x=(s[E.style]||En[E.style]).open();u.push({type:"style",style:E,value:x})}}else{var k=n.entityMap[E.key];if(o[k.type]||Iu[k.type]){var y=(o[k.type]||Iu[k.type]).open(k,e);u.push({type:"entity",value:y})}}}function p(E){var x=f.pop();if(E!==x)throw new Error("Invariant violation: Cannot close a tag before all inner tags have been closed");if(E.style){if(s[E.style]||En[E.style]){var k=Df.exec(a);a=a.slice(0,a.length-k[0].length),a+=(s[E.style]||En[E.style]).close(),a+=k[0]}}else{var y=n.entityMap[E.key];(o[y.type]||Iu[y.type])&&(a+=(o[y.type]||Iu[y.type]).close(y,e))}}var b=function(x,k){return k.offset+k.length-(x.offset+x.length)},_=function(x){return x.concat().reverse()};return Array.from(e.text).some(function(E,x){_(f).forEach(function(P){if(P.offset+P.length===x){var B=f.slice(f.indexOf(P)+1);_(B).forEach(p),p(P),B.sort(b).forEach(m)}});var k=e.inlineStyleRanges.filter(function(P){return P.offset===x}),y=e.entityRanges.filter(function(P){return P.offset===x});if(k.concat(y).sort(b).forEach(m),E!==" "&&u.length&&(a+=u.map(function(P){return P.value}).join(""),u=[]),e.type!=="code-block"&&c){var D=f.find(function(P){return P.style==="CODE"});if(!D){if(x===0&&E==="#"&&e.text[1]&&e.text[1]===" "?E=E.replace("#","\\#"):x===0&&E===">"&&(E=E.replace(">","\\>")),Lf.includes(E)){var S=h.find(function(P){return P.character===E});if(!S&&e.text[x-1]===" "&&e.text[x+1]!==" ")h.push({character:E,index:x,markdownStringIndexStart:a.length+E.length-1,markdownStringIndexEnd:a.length+E.length});else if(S&&e.text[x-1]===E&&x===S.index+1)S.markdownStringIndexEnd+=1;else if(S){var I=S.markdownStringIndexEnd-S.markdownStringIndexStart,M=!1,H=!1;if(I===1&&(e.text[x+1]===" "||!e.text[x+1])&&(H=!0,M=!0),I===2&&e.text[x+1]===E&&(M=!0),I===2&&e.text[x-1]===E&&(e.text[x+1]===" "||!e.text[x+1])&&(H=!0,M=!0),H){h.splice(h.indexOf(S),1);var U=a.slice(S.markdownStringIndexStart,S.markdownStringIndexEnd);U=U.replace(Pf,"\\$1"),a=a.slice(0,S.markdownStringIndexStart)+U+a.slice(S.markdownStringIndexEnd)}M&&(E="\\".concat(E))}}}}E===`
|
|
22
22
|
`&&l==="blockquote"?a+=`
|
|
23
|
-
> `:a+=E}),_(f).forEach(p),(s[l]||En[l])&&(a+=(s[l]||En[l]).close(e)),
|
|
24
|
-
`:n.blocks[t+1]&&(n.blocks[t].text?
|
|
23
|
+
> `:a+=E}),_(f).forEach(p),(s[l]||En[l])&&(a+=(s[l]||En[l]).close(e)),Nu.indexOf(l)!==-1&&n.blocks[t+1]&&Nu.indexOf(n.blocks[t+1].type)!==-1?a+=`
|
|
24
|
+
`:n.blocks[t+1]&&(n.blocks[t].text?Nu.indexOf(l)!==-1&&Nu.indexOf(n.blocks[t+1].type)===-1?a+=`
|
|
25
25
|
|
|
26
26
|
`:r.preserveNewlines?a+=`
|
|
27
27
|
`:a+=`
|
|
28
28
|
|
|
29
29
|
`:r.preserveNewlines&&(a+=`
|
|
30
|
-
`)),a}function
|
|
31
|
-
`," "],th=["{","}","|","\\","^","`"].concat(eh),nh=["'"].concat(th),fo=["%","/","?",";","#"].concat(nh),ho=["/","?","#"],rh=255,po=/^[+a-z0-9A-Z_-]{0,63}$/,uh=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,mo={javascript:!0,"javascript:":!0},go={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ui(e,t){if(e&&e instanceof Wu)return e;const n=new Wu;return n.parse(e,t),n}Wu.prototype.parse=function(e,t){let n,r,u,a=e;if(a=a.trim(),!t&&e.split("#").length===1){const l=Jf.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let s=Kf.exec(a);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,a=a.substr(s.length)),(t||s||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=a.substr(0,2)==="//",u&&!(s&&mo[s])&&(a=a.substr(2),this.slashes=!0)),!mo[s]&&(u||s&&!go[s])){let l=-1;for(let b=0;b<ho.length;b++)r=a.indexOf(ho[b]),r!==-1&&(l===-1||r<l)&&(l=r);let h,f;l===-1?f=a.lastIndexOf("@"):f=a.lastIndexOf("@",l),f!==-1&&(h=a.slice(0,f),a=a.slice(f+1),this.auth=h),l=-1;for(let b=0;b<fo.length;b++)r=a.indexOf(fo[b]),r!==-1&&(l===-1||r<l)&&(l=r);l===-1&&(l=a.length),a[l-1]===":"&&l--;const m=a.slice(0,l);a=a.slice(l),this.parseHost(m),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const b=this.hostname.split(/\./);for(let _=0,E=b.length;_<E;_++){const x=b[_];if(x&&!x.match(po)){let k="";for(let y=0,D=x.length;y<D;y++)x.charCodeAt(y)>127?k+="x":k+=x[y];if(!k.match(po)){const y=b.slice(0,_),D=b.slice(_+1),S=x.match(uh);S&&(y.push(S[1]),D.unshift(S[2])),D.length&&(a=D.join(".")+a),this.hostname=y.join(".");break}}}}this.hostname.length>rh&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=a.indexOf("#");o!==-1&&(this.hash=a.substr(o),a=a.slice(0,o));const c=a.indexOf("?");return c!==-1&&(this.search=a.substr(c),a=a.slice(0,c)),a&&(this.pathname=a),go[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Wu.prototype.parseHost=function(e){let t=Qf.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const ah=Object.freeze(Object.defineProperty({__proto__:null,decode:Tr,encode:pu,format:ri,parse:ui},Symbol.toStringTag,{value:"Module"})),Cl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,El=/[\0-\x1F\x7F-\x9F]/,sh=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,ai=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,yl=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Tl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ih=Object.freeze(Object.defineProperty({__proto__:null,Any:Cl,Cc:El,Cf:sh,P:ai,S:yl,Z:Tl},Symbol.toStringTag,{value:"Module"})),oh=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),ch=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var $a;const lh=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),dh=($a=String.fromCodePoint)!==null&&$a!==void 0?$a:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function fh(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=lh.get(e))!==null&&t!==void 0?t:e}var ct;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ct||(ct={}));const hh=32;var Un;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Un||(Un={}));function vs(e){return e>=ct.ZERO&&e<=ct.NINE}function ph(e){return e>=ct.UPPER_A&&e<=ct.UPPER_F||e>=ct.LOWER_A&&e<=ct.LOWER_F}function mh(e){return e>=ct.UPPER_A&&e<=ct.UPPER_Z||e>=ct.LOWER_A&&e<=ct.LOWER_Z||vs(e)}function gh(e){return e===ct.EQUALS||mh(e)}var st;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(st||(st={}));var Bn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Bn||(Bn={}));let bh=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=st.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Bn.Strict}startEntity(t){this.decodeMode=t,this.state=st.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case st.EntityStart:return t.charCodeAt(n)===ct.NUM?(this.state=st.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=st.NamedEntity,this.stateNamedEntity(t,n));case st.NumericStart:return this.stateNumericStart(t,n);case st.NumericDecimal:return this.stateNumericDecimal(t,n);case st.NumericHex:return this.stateNumericHex(t,n);case st.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|hh)===ct.LOWER_X?(this.state=st.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=st.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,u){if(n!==r){const a=r-n;this.result=this.result*Math.pow(u,a)+parseInt(t.substr(n,a),u),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(vs(u)||ph(u))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(vs(u))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(u,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ct.SEMI)this.consumed+=1;else if(this.decodeMode===Bn.Strict)return 0;return this.emitCodePoint(fh(this.result),this.consumed),this.errors&&(t!==ct.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let u=r[this.treeIndex],a=(u&Un.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=_h(r,u,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Bn.Attribute&&(a===0||gh(s))?0:this.emitNotTerminatedNamedEntity();if(u=r[this.treeIndex],a=(u&Un.VALUE_LENGTH)>>14,a!==0){if(s===ct.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Bn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,u=(r[n]&Un.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[t]&~Un.VALUE_LENGTH:u[t+1],r),n===3&&this.emitCodePoint(u[t+2],r),r}end(){var t;switch(this.state){case st.NamedEntity:return this.result!==0&&(this.decodeMode!==Bn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case st.NumericDecimal:return this.emitNumericEntity(0,2);case st.NumericHex:return this.emitNumericEntity(0,3);case st.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case st.EntityStart:return 0}}};function kl(e){let t="";const n=new bh(e,r=>t+=dh(r));return function(u,a){let s=0,o=0;for(;(o=u.indexOf("&",o))>=0;){t+=u.slice(s,o),n.startEntity(a);const l=n.write(u,o+1);if(l<0){s=o+n.end();break}s=o+l,o=l===0?s+1:s}const c=t+u.slice(s);return t="",c}}function _h(e,t,n,r){const u=(t&Un.BRANCH_LENGTH)>>7,a=t&Un.JUMP_TABLE;if(u===0)return a!==0&&r===a?n:-1;if(a){const c=r-a;return c<0||c>=u?-1:e[n+c]-1}let s=n,o=s+u-1;for(;s<=o;){const c=s+o>>>1,l=e[c];if(l<r)s=c+1;else if(l>r)o=c-1;else return e[c+u]}return-1}const xh=kl(oh);kl(ch);function Al(e,t=Bn.Legacy){return xh(e,t)}function Ch(e){return Object.prototype.toString.call(e)}function si(e){return Ch(e)==="[object String]"}const Eh=Object.prototype.hasOwnProperty;function yh(e,t){return Eh.call(e,t)}function ca(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}function Sl(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function ii(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Yu(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Il=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Th=/&([a-z#][a-z0-9]{1,31});/gi,kh=new RegExp(Il.source+"|"+Th.source,"gi"),Ah=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Sh(e,t){if(t.charCodeAt(0)===35&&Ah.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return ii(r)?Yu(r):e}const n=Al(e);return n!==e?n:e}function Ih(e){return e.indexOf("\\")<0?e:e.replace(Il,"$1")}function kr(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(kh,function(t,n,r){return n||Sh(t,r)})}const Nh=/[&<>"]/,vh=/[&<>"]/g,wh={"&":"&","<":"<",">":">",'"':"""};function Dh(e){return wh[e]}function zn(e){return Nh.test(e)?e.replace(vh,Dh):e}const Lh=/[.?*+^$[\]\\(){}|-]/g;function Ph(e){return e.replace(Lh,"\\$&")}function Ue(e){switch(e){case 9:case 32:return!0}return!1}function ru(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function uu(e){return ai.test(e)||yl.test(e)}function au(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function la(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Rh={mdurl:ah,ucmicro:ih},Mh=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Sl,assign:ca,escapeHtml:zn,escapeRE:Ph,fromCodePoint:Yu,has:yh,isMdAsciiPunct:au,isPunctChar:uu,isSpace:Ue,isString:si,isValidEntityCode:ii,isWhiteSpace:ru,lib:Rh,normalizeReference:la,unescapeAll:kr,unescapeMd:Ih},Symbol.toStringTag,{value:"Module"}));function Oh(e,t,n){let r,u,a,s;const o=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<o;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){u=!0;break}if(s=e.pos,e.md.inline.skipToken(e),a===91){if(s===e.pos-1)r++;else if(n)return e.pos=c,-1}}let l=-1;return u&&(l=e.pos),e.pos=c,l}function jh(e,t,n){let r,u=t;const a={ok:!1,pos:0,str:""};if(e.charCodeAt(u)===60){for(u++;u<n;){if(r=e.charCodeAt(u),r===10||r===60)return a;if(r===62)return a.pos=u+1,a.str=kr(e.slice(t+1,u)),a.ok=!0,a;if(r===92&&u+1<n){u+=2;continue}u++}return a}let s=0;for(;u<n&&(r=e.charCodeAt(u),!(r===32||r<32||r===127));){if(r===92&&u+1<n){if(e.charCodeAt(u+1)===32)break;u+=2;continue}if(r===40&&(s++,s>32))return a;if(r===41){if(s===0)break;s--}u++}return t===u||s!==0||(a.str=kr(e.slice(t,u)),a.pos=u,a.ok=!0),a}function Fh(e,t,n,r){let u,a=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)s.str=r.str,s.marker=r.marker;else{if(a>=n)return s;let o=e.charCodeAt(a);if(o!==34&&o!==39&&o!==40)return s;t++,a++,o===40&&(o=41),s.marker=o}for(;a<n;){if(u=e.charCodeAt(a),u===s.marker)return s.pos=a+1,s.str+=kr(e.slice(t,a)),s.ok=!0,s;if(u===40&&s.marker===41)return s;u===92&&a+1<n&&a++,a++}return s.can_continue=!0,s.str+=kr(e.slice(t,a)),s}const Bh=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:jh,parseLinkLabel:Oh,parseLinkTitle:Fh},Symbol.toStringTag,{value:"Module"})),pn={};pn.code_inline=function(e,t,n,r,u){const a=e[t];return"<code"+u.renderAttrs(a)+">"+zn(a.content)+"</code>"};pn.code_block=function(e,t,n,r,u){const a=e[t];return"<pre"+u.renderAttrs(a)+"><code>"+zn(e[t].content)+`</code></pre>
|
|
30
|
+
`)),a}function Of(e,t){t=t||{};var n="";return e.blocks.forEach(function(r,u){n+=Mf(r,u,e,t)}),Rn={},n}var _l=[];for(var co=0;co<256;co++)_l.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){_l[e.charCodeAt(0)]=1});function oa(e,t){return e=e.source,t=t||"",function n(r,u){return r?(u=u.source||u,e=e.replace(r,u),n):new RegExp(e,t)}}var jf=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,Ff=/[^"'=<>`\x00-\x20]+/,Bf=/'[^']*'/,Hf=/"[^"]*"/,Uf=oa(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",Ff)("single_quoted",Bf)("double_quoted",Hf)(),Vf=oa(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",jf)("attr_value",Uf)(),$f=oa(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",Vf)(),zf=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,qf=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,Zf=/<[?].*?[?]>/,Wf=/<![A-Z]+\s+[^>]*>/,Yf=/<!\[CDATA\[[\s\S]*?\]\]>/;oa(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",$f)("close_tag",zf)("comment",qf)("processing",Zf)("declaration",Wf)("cdata",Yf)();const xl=e=>{try{const t=JSON.parse(e);return Of(t,{styleItems:{UNDERLINE:{open:()=>"<u>",close:()=>"</u>"}}})}catch{return e}};var be=(e=>(e.New="NEW",e.Pending="PENDING",e.Processing="PROCESSING",e.Completed="COMPLETED",e.Cancelled="CANCELLED",e.Expired="EXPIRED",e.FullDeliveryFailure="FULL_DELIVERY_FAILURE",e.PartiallyDelivered="PARTIALLY_DELIVERED",e.PartiallyRefunded="PARTIALLY_REFUNDED",e.Refunded="REFUNDED",e.Failed="FAILED",e))(be||{}),he=(e=>(e.PENDING="PENDING",e.APPROVED="APPROVED",e.DECLINED="DECLINED",e.AUTO_APPROVED="AUTO_APPROVED",e.CANCELLED="CANCELLED",e.EXPIRED="EXPIRED",e.PROCESSING="PROCESSING",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e))(he||{}),Pe=(e=>(e.Text="TEXT",e.Serial="SERIALS",e.Ebook="EBOOK",e.Link="LINK",e.Download="DOWNLOAD",e.Discord="DISCORD",e.Telegram="TELEGRAM",e.Custom="CUSTOM",e))(Pe||{}),kn=(e=>(e.RIAL="RIAL",e.AWAITING_PAYMENT="AWAITING_PAYMENT",e.ACTIVE="ACTIVE",e.PAST_DUE="PAST_DUE",e.CANCELLED="CANCELLED",e.EXPIRED="EXPIRED",e.CHANGED_GATEWAY="CHANGED_GATEWAY",e.REPLACED="REPLACED",e))(kn||{});const hu=async e=>(await j2(e)).data,Cl=async()=>{var n;const t=(await d2()).data;if(t.isEnabled){const r=(n=t==null?void 0:t.topUpSettings)==null?void 0:n.gateways;r&&hu(r)}return t},ca=async()=>{const t=(await l2()).data;return{amount:t.realBalance+t.manualBalance,currency:t.currency}};var qr=(e=>(e.ADDED="ADDED",e.REMOVED="REMOVED",e))(qr||{}),ke=(e=>(e.NotPaid="NOT_PAID",e.Pending="PENDING",e.Paid="PAID",e.Expired="EXPIRED",e.Cancelled="CANCELLED",e.Refunded="REFUNDED",e))(ke||{}),nu=(e=>(e.Balance="BALANCE",e.Product="PRODUCT",e))(nu||{}),_t=(e=>(e.Spend="SPEND_AMOUNT",e.Order="ORDER_COUNT",e.Referral="REFER_FRIEND",e.Review="LEAVE_REVIEW",e.Vouch="LEAVE_VOUCH",e))(_t||{});const Gf=async()=>(await c2()).data,lo={};function Xf(e){let t=lo[e];if(t)return t;t=lo[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function Tr(e,t){typeof t!="string"&&(t=Tr.defaultChars);const n=Xf(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let u="";for(let a=0,s=r.length;a<s;a+=3){const o=parseInt(r.slice(a+1,a+3),16);if(o<128){u+=n[o];continue}if((o&224)===192&&a+3<s){const c=parseInt(r.slice(a+4,a+6),16);if((c&192)===128){const l=o<<6&1984|c&63;l<128?u+="��":u+=String.fromCharCode(l),a+=3;continue}}if((o&240)===224&&a+6<s){const c=parseInt(r.slice(a+4,a+6),16),l=parseInt(r.slice(a+7,a+9),16);if((c&192)===128&&(l&192)===128){const h=o<<12&61440|c<<6&4032|l&63;h<2048||h>=55296&&h<=57343?u+="���":u+=String.fromCharCode(h),a+=6;continue}}if((o&248)===240&&a+9<s){const c=parseInt(r.slice(a+4,a+6),16),l=parseInt(r.slice(a+7,a+9),16),h=parseInt(r.slice(a+10,a+12),16);if((c&192)===128&&(l&192)===128&&(h&192)===128){let f=o<<18&1835008|c<<12&258048|l<<6&4032|h&63;f<65536||f>1114111?u+="����":(f-=65536,u+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),a+=9;continue}}u+="�"}return u})}Tr.defaultChars=";/?:@&=+$,#";Tr.componentChars="";const fo={};function Kf(e){let t=fo[e];if(t)return t;t=fo[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function pu(e,t,n){typeof t!="string"&&(n=t,t=pu.defaultChars),typeof n>"u"&&(n=!0);const r=Kf(t);let u="";for(let a=0,s=e.length;a<s;a++){const o=e.charCodeAt(a);if(n&&o===37&&a+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3))){u+=e.slice(a,a+3),a+=2;continue}if(o<128){u+=r[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&a+1<s){const c=e.charCodeAt(a+1);if(c>=56320&&c<=57343){u+=encodeURIComponent(e[a]+e[a+1]),a++;continue}}u+="%EF%BF%BD";continue}u+=encodeURIComponent(e[a])}return u}pu.defaultChars=";/?:@&=+$,-_.!~*'()#";pu.componentChars="-_.!~*'()";function ri(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Yu(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Qf=/^([a-z0-9.+-]+:)/i,Jf=/:[0-9]*$/,eh=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,th=["<",">",'"',"`"," ","\r",`
|
|
31
|
+
`," "],nh=["{","}","|","\\","^","`"].concat(th),rh=["'"].concat(nh),ho=["%","/","?",";","#"].concat(rh),po=["/","?","#"],uh=255,mo=/^[+a-z0-9A-Z_-]{0,63}$/,ah=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,go={javascript:!0,"javascript:":!0},bo={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ui(e,t){if(e&&e instanceof Yu)return e;const n=new Yu;return n.parse(e,t),n}Yu.prototype.parse=function(e,t){let n,r,u,a=e;if(a=a.trim(),!t&&e.split("#").length===1){const l=eh.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let s=Qf.exec(a);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,a=a.substr(s.length)),(t||s||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=a.substr(0,2)==="//",u&&!(s&&go[s])&&(a=a.substr(2),this.slashes=!0)),!go[s]&&(u||s&&!bo[s])){let l=-1;for(let b=0;b<po.length;b++)r=a.indexOf(po[b]),r!==-1&&(l===-1||r<l)&&(l=r);let h,f;l===-1?f=a.lastIndexOf("@"):f=a.lastIndexOf("@",l),f!==-1&&(h=a.slice(0,f),a=a.slice(f+1),this.auth=h),l=-1;for(let b=0;b<ho.length;b++)r=a.indexOf(ho[b]),r!==-1&&(l===-1||r<l)&&(l=r);l===-1&&(l=a.length),a[l-1]===":"&&l--;const m=a.slice(0,l);a=a.slice(l),this.parseHost(m),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const b=this.hostname.split(/\./);for(let _=0,E=b.length;_<E;_++){const x=b[_];if(x&&!x.match(mo)){let k="";for(let y=0,D=x.length;y<D;y++)x.charCodeAt(y)>127?k+="x":k+=x[y];if(!k.match(mo)){const y=b.slice(0,_),D=b.slice(_+1),S=x.match(ah);S&&(y.push(S[1]),D.unshift(S[2])),D.length&&(a=D.join(".")+a),this.hostname=y.join(".");break}}}}this.hostname.length>uh&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=a.indexOf("#");o!==-1&&(this.hash=a.substr(o),a=a.slice(0,o));const c=a.indexOf("?");return c!==-1&&(this.search=a.substr(c),a=a.slice(0,c)),a&&(this.pathname=a),bo[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Yu.prototype.parseHost=function(e){let t=Jf.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const sh=Object.freeze(Object.defineProperty({__proto__:null,decode:Tr,encode:pu,format:ri,parse:ui},Symbol.toStringTag,{value:"Module"})),El=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,yl=/[\0-\x1F\x7F-\x9F]/,ih=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,ai=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Tl=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,kl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,oh=Object.freeze(Object.defineProperty({__proto__:null,Any:El,Cc:yl,Cf:ih,P:ai,S:Tl,Z:kl},Symbol.toStringTag,{value:"Module"})),ch=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),lh=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var za;const dh=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),fh=(za=String.fromCodePoint)!==null&&za!==void 0?za:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function hh(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=dh.get(e))!==null&&t!==void 0?t:e}var ct;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ct||(ct={}));const ph=32;var Un;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Un||(Un={}));function vs(e){return e>=ct.ZERO&&e<=ct.NINE}function mh(e){return e>=ct.UPPER_A&&e<=ct.UPPER_F||e>=ct.LOWER_A&&e<=ct.LOWER_F}function gh(e){return e>=ct.UPPER_A&&e<=ct.UPPER_Z||e>=ct.LOWER_A&&e<=ct.LOWER_Z||vs(e)}function bh(e){return e===ct.EQUALS||gh(e)}var st;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(st||(st={}));var Bn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Bn||(Bn={}));let _h=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=st.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Bn.Strict}startEntity(t){this.decodeMode=t,this.state=st.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case st.EntityStart:return t.charCodeAt(n)===ct.NUM?(this.state=st.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=st.NamedEntity,this.stateNamedEntity(t,n));case st.NumericStart:return this.stateNumericStart(t,n);case st.NumericDecimal:return this.stateNumericDecimal(t,n);case st.NumericHex:return this.stateNumericHex(t,n);case st.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|ph)===ct.LOWER_X?(this.state=st.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=st.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,u){if(n!==r){const a=r-n;this.result=this.result*Math.pow(u,a)+parseInt(t.substr(n,a),u),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(vs(u)||mh(u))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(vs(u))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(u,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ct.SEMI)this.consumed+=1;else if(this.decodeMode===Bn.Strict)return 0;return this.emitCodePoint(hh(this.result),this.consumed),this.errors&&(t!==ct.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let u=r[this.treeIndex],a=(u&Un.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=xh(r,u,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Bn.Attribute&&(a===0||bh(s))?0:this.emitNotTerminatedNamedEntity();if(u=r[this.treeIndex],a=(u&Un.VALUE_LENGTH)>>14,a!==0){if(s===ct.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Bn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,u=(r[n]&Un.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[t]&~Un.VALUE_LENGTH:u[t+1],r),n===3&&this.emitCodePoint(u[t+2],r),r}end(){var t;switch(this.state){case st.NamedEntity:return this.result!==0&&(this.decodeMode!==Bn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case st.NumericDecimal:return this.emitNumericEntity(0,2);case st.NumericHex:return this.emitNumericEntity(0,3);case st.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case st.EntityStart:return 0}}};function Al(e){let t="";const n=new _h(e,r=>t+=fh(r));return function(u,a){let s=0,o=0;for(;(o=u.indexOf("&",o))>=0;){t+=u.slice(s,o),n.startEntity(a);const l=n.write(u,o+1);if(l<0){s=o+n.end();break}s=o+l,o=l===0?s+1:s}const c=t+u.slice(s);return t="",c}}function xh(e,t,n,r){const u=(t&Un.BRANCH_LENGTH)>>7,a=t&Un.JUMP_TABLE;if(u===0)return a!==0&&r===a?n:-1;if(a){const c=r-a;return c<0||c>=u?-1:e[n+c]-1}let s=n,o=s+u-1;for(;s<=o;){const c=s+o>>>1,l=e[c];if(l<r)s=c+1;else if(l>r)o=c-1;else return e[c+u]}return-1}const Ch=Al(ch);Al(lh);function Sl(e,t=Bn.Legacy){return Ch(e,t)}function Eh(e){return Object.prototype.toString.call(e)}function si(e){return Eh(e)==="[object String]"}const yh=Object.prototype.hasOwnProperty;function Th(e,t){return yh.call(e,t)}function la(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}function Il(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function ii(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Gu(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Nl=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,kh=/&([a-z#][a-z0-9]{1,31});/gi,Ah=new RegExp(Nl.source+"|"+kh.source,"gi"),Sh=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Ih(e,t){if(t.charCodeAt(0)===35&&Sh.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return ii(r)?Gu(r):e}const n=Sl(e);return n!==e?n:e}function Nh(e){return e.indexOf("\\")<0?e:e.replace(Nl,"$1")}function kr(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Ah,function(t,n,r){return n||Ih(t,r)})}const vh=/[&<>"]/,wh=/[&<>"]/g,Dh={"&":"&","<":"<",">":">",'"':"""};function Lh(e){return Dh[e]}function zn(e){return vh.test(e)?e.replace(wh,Lh):e}const Ph=/[.?*+^$[\]\\(){}|-]/g;function Rh(e){return e.replace(Ph,"\\$&")}function Ue(e){switch(e){case 9:case 32:return!0}return!1}function ru(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function uu(e){return ai.test(e)||Tl.test(e)}function au(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function da(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Mh={mdurl:sh,ucmicro:oh},Oh=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Il,assign:la,escapeHtml:zn,escapeRE:Rh,fromCodePoint:Gu,has:Th,isMdAsciiPunct:au,isPunctChar:uu,isSpace:Ue,isString:si,isValidEntityCode:ii,isWhiteSpace:ru,lib:Mh,normalizeReference:da,unescapeAll:kr,unescapeMd:Nh},Symbol.toStringTag,{value:"Module"}));function jh(e,t,n){let r,u,a,s;const o=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<o;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){u=!0;break}if(s=e.pos,e.md.inline.skipToken(e),a===91){if(s===e.pos-1)r++;else if(n)return e.pos=c,-1}}let l=-1;return u&&(l=e.pos),e.pos=c,l}function Fh(e,t,n){let r,u=t;const a={ok:!1,pos:0,str:""};if(e.charCodeAt(u)===60){for(u++;u<n;){if(r=e.charCodeAt(u),r===10||r===60)return a;if(r===62)return a.pos=u+1,a.str=kr(e.slice(t+1,u)),a.ok=!0,a;if(r===92&&u+1<n){u+=2;continue}u++}return a}let s=0;for(;u<n&&(r=e.charCodeAt(u),!(r===32||r<32||r===127));){if(r===92&&u+1<n){if(e.charCodeAt(u+1)===32)break;u+=2;continue}if(r===40&&(s++,s>32))return a;if(r===41){if(s===0)break;s--}u++}return t===u||s!==0||(a.str=kr(e.slice(t,u)),a.pos=u,a.ok=!0),a}function Bh(e,t,n,r){let u,a=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)s.str=r.str,s.marker=r.marker;else{if(a>=n)return s;let o=e.charCodeAt(a);if(o!==34&&o!==39&&o!==40)return s;t++,a++,o===40&&(o=41),s.marker=o}for(;a<n;){if(u=e.charCodeAt(a),u===s.marker)return s.pos=a+1,s.str+=kr(e.slice(t,a)),s.ok=!0,s;if(u===40&&s.marker===41)return s;u===92&&a+1<n&&a++,a++}return s.can_continue=!0,s.str+=kr(e.slice(t,a)),s}const Hh=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Fh,parseLinkLabel:jh,parseLinkTitle:Bh},Symbol.toStringTag,{value:"Module"})),pn={};pn.code_inline=function(e,t,n,r,u){const a=e[t];return"<code"+u.renderAttrs(a)+">"+zn(a.content)+"</code>"};pn.code_block=function(e,t,n,r,u){const a=e[t];return"<pre"+u.renderAttrs(a)+"><code>"+zn(e[t].content)+`</code></pre>
|
|
32
32
|
`};pn.fence=function(e,t,n,r,u){const a=e[t],s=a.info?kr(a.info).trim():"";let o="",c="";if(s){const h=s.split(/(\s+)/g);o=h[0],c=h.slice(2).join("")}let l;if(n.highlight?l=n.highlight(a.content,o,c)||zn(a.content):l=zn(a.content),l.indexOf("<pre")===0)return l+`
|
|
33
33
|
`;if(s){const h=a.attrIndex("class"),f=a.attrs?a.attrs.slice():[];h<0?f.push(["class",n.langPrefix+o]):(f[h]=f[h].slice(),f[h][1]+=" "+n.langPrefix+o);const m={attrs:f};return`<pre><code${u.renderAttrs(m)}>${l}</code></pre>
|
|
34
34
|
`}return`<pre><code${u.renderAttrs(a)}>${l}</code></pre>
|
|
@@ -37,12 +37,12 @@ Valid keys: `+JSON.stringify(Object.keys(C),null," "));var G=$e(de,xe,J,ne,Q+".
|
|
|
37
37
|
`};pn.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
38
38
|
`:`<br>
|
|
39
39
|
`:`
|
|
40
|
-
`};pn.text=function(e,t){return zn(e[t].content)};pn.html_block=function(e,t){return e[t].content};pn.html_inline=function(e,t){return e[t].content};function vr(){this.rules=
|
|
40
|
+
`};pn.text=function(e,t){return zn(e[t].content)};pn.html_block=function(e,t){return e[t].content};pn.html_inline=function(e,t){return e[t].content};function vr(){this.rules=la({},pn)}vr.prototype.renderAttrs=function(t){let n,r,u;if(!t.attrs)return"";for(u="",n=0,r=t.attrs.length;n<r;n++)u+=" "+zn(t.attrs[n][0])+'="'+zn(t.attrs[n][1])+'"';return u};vr.prototype.renderToken=function(t,n,r){const u=t[n];let a="";if(u.hidden)return"";u.block&&u.nesting!==-1&&n&&t[n-1].hidden&&(a+=`
|
|
41
41
|
`),a+=(u.nesting===-1?"</":"<")+u.tag,a+=this.renderAttrs(u),u.nesting===0&&r.xhtmlOut&&(a+=" /");let s=!1;if(u.block&&(s=!0,u.nesting===1&&n+1<t.length)){const o=t[n+1];(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===u.tag)&&(s=!1)}return a+=s?`>
|
|
42
42
|
`:">",a};vr.prototype.renderInline=function(e,t,n){let r="";const u=this.rules;for(let a=0,s=e.length;a<s;a++){const o=e[a].type;typeof u[o]<"u"?r+=u[o](e,a,t,n,this):r+=this.renderToken(e,a,t)}return r};vr.prototype.renderInlineAsText=function(e,t,n){let r="";for(let u=0,a=e.length;u<a;u++)switch(e[u].type){case"text":r+=e[u].content;break;case"image":r+=this.renderInlineAsText(e[u].children,t,n);break;case"html_inline":case"html_block":r+=e[u].content;break;case"softbreak":case"hardbreak":r+=`
|
|
43
|
-
`;break}return r};vr.prototype.render=function(e,t,n){let r="";const u=this.rules;for(let a=0,s=e.length;a<s;a++){const o=e[a].type;o==="inline"?r+=this.renderInline(e[a].children,t,n):typeof u[o]<"u"?r+=u[o](e,a,t,n,this):r+=this.renderToken(e,a,t,n)}return r};function Rt(){this.__rules__=[],this.__cache__=null}Rt.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Rt.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})};Rt.prototype.at=function(e,t,n){const r=this.__find__(e),u=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=u.alt||[],this.__cache__=null};Rt.prototype.before=function(e,t,n,r){const u=this.__find__(e),a=r||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(u,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};Rt.prototype.after=function(e,t,n,r){const u=this.__find__(e),a=r||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(u+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};Rt.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};Rt.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const u=this.__find__(r);if(u<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[u].enabled=!0,n.push(r)},this),this.__cache__=null,n};Rt.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Rt.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const u=this.__find__(r);if(u<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[u].enabled=!1,n.push(r)},this),this.__cache__=null,n};Rt.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function un(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}un.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,u=n.length;r<u;r++)if(n[r][0]===t)return r;return-1};un.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};un.prototype.attrSet=function(t,n){const r=this.attrIndex(t),u=[t,n];r<0?this.attrPush(u):this.attrs[r]=u};un.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r};un.prototype.attrJoin=function(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function
|
|
44
|
-
`),t=t.replace(Uh,"�"),e.src=t}function $h(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function zh(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const u=t[n];u.type==="inline"&&e.md.inline.parse(u.content,e.md,e.env,u.children)}}function qh(e){return/^<a[>\s]/i.test(e)}function Zh(e){return/^<\/a\s*>/i.test(e)}function Wh(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let u=t[n].children,a=0;for(let s=u.length-1;s>=0;s--){const o=u[s];if(o.type==="link_close"){for(s--;u[s].level!==o.level&&u[s].type!=="link_open";)s--;continue}if(o.type==="html_inline"&&(qh(o.content)&&a>0&&a--,Zh(o.content)&&a++),!(a>0)&&o.type==="text"&&e.md.linkify.test(o.content)){const c=o.content;let l=e.md.linkify.match(c);const h=[];let f=o.level,m=0;l.length>0&&l[0].index===0&&s>0&&u[s-1].type==="text_special"&&(l=l.slice(1));for(let p=0;p<l.length;p++){const b=l[p].url,_=e.md.normalizeLink(b);if(!e.md.validateLink(_))continue;let E=l[p].text;l[p].schema?l[p].schema==="mailto:"&&!/^mailto:/i.test(E)?E=e.md.normalizeLinkText("mailto:"+E).replace(/^mailto:/,""):E=e.md.normalizeLinkText(E):E=e.md.normalizeLinkText("http://"+E).replace(/^http:\/\//,"");const x=l[p].index;if(x>m){const S=new e.Token("text","",0);S.content=c.slice(m,x),S.level=f,h.push(S)}const k=new e.Token("link_open","a",1);k.attrs=[["href",_]],k.level=f++,k.markup="linkify",k.info="auto",h.push(k);const y=new e.Token("text","",0);y.content=E,y.level=f,h.push(y);const D=new e.Token("link_close","a",-1);D.level=--f,D.markup="linkify",D.info="auto",h.push(D),m=l[p].lastIndex}if(m<c.length){const p=new e.Token("text","",0);p.content=c.slice(m),p.level=f,h.push(p)}t[n].children=u=Sl(u,s,h)}}}}const vl=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Yh=/\((c|tm|r)\)/i,Gh=/\((c|tm|r)\)/ig,Xh={c:"©",r:"®",tm:"™"};function Kh(e,t){return Xh[t.toLowerCase()]}function Qh(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(Gh,Kh)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function Jh(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&vl.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function e3(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Yh.test(e.tokens[t].content)&&Qh(e.tokens[t].children),vl.test(e.tokens[t].content)&&Jh(e.tokens[t].children))}const t3=/['"]/,bo=/['"]/g,_o="’";function Nu(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function n3(e,t){let n;const r=[];for(let u=0;u<e.length;u++){const a=e[u],s=e[u].level;for(n=r.length-1;n>=0&&!(r[n].level<=s);n--);if(r.length=n+1,a.type!=="text")continue;let o=a.content,c=0,l=o.length;e:for(;c<l;){bo.lastIndex=c;const h=bo.exec(o);if(!h)break;let f=!0,m=!0;c=h.index+1;const p=h[0]==="'";let b=32;if(h.index-1>=0)b=o.charCodeAt(h.index-1);else for(n=u-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){b=e[n].content.charCodeAt(e[n].content.length-1);break}let _=32;if(c<l)_=o.charCodeAt(c);else for(n=u+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){_=e[n].content.charCodeAt(0);break}const E=au(b)||uu(String.fromCharCode(b)),x=au(_)||uu(String.fromCharCode(_)),k=ru(b),y=ru(_);if(y?f=!1:x&&(k||E||(f=!1)),k?m=!1:E&&(y||x||(m=!1)),_===34&&h[0]==='"'&&b>=48&&b<=57&&(m=f=!1),f&&m&&(f=E,m=x),!f&&!m){p&&(a.content=Nu(a.content,h.index,_o));continue}if(m)for(n=r.length-1;n>=0;n--){let D=r[n];if(r[n].level<s)break;if(D.single===p&&r[n].level===s){D=r[n];let S,I;p?(S=t.md.options.quotes[2],I=t.md.options.quotes[3]):(S=t.md.options.quotes[0],I=t.md.options.quotes[1]),a.content=Nu(a.content,h.index,I),e[D.token].content=Nu(e[D.token].content,D.pos,S),c+=I.length-1,D.token===u&&(c+=S.length-1),o=a.content,l=o.length,r.length=n;continue e}}f?r.push({token:u,pos:h.index,single:p,level:s}):m&&p&&(a.content=Nu(a.content,h.index,_o))}}}function r3(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!t3.test(e.tokens[t].content)||n3(e.tokens[t].children,e)}function u3(e){let t,n;const r=e.tokens,u=r.length;for(let a=0;a<u;a++){if(r[a].type!=="inline")continue;const s=r[a].children,o=s.length;for(t=0;t<o;t++)s[t].type==="text_special"&&(s[t].type="text");for(t=n=0;t<o;t++)s[t].type==="text"&&t+1<o&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==n&&(s[n]=s[t]),n++);t!==n&&(s.length=n)}}const za=[["normalize",Vh],["block",$h],["inline",zh],["linkify",Wh],["replacements",e3],["smartquotes",r3],["text_join",u3]];function oi(){this.ruler=new Rt;for(let e=0;e<za.length;e++)this.ruler.push(za[e][0],za[e][1])}oi.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};oi.prototype.State=Nl;function mn(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const u=this.src;for(let a=0,s=0,o=0,c=0,l=u.length,h=!1;s<l;s++){const f=u.charCodeAt(s);if(!h)if(Ue(f)){o++,f===9?c+=4-c%4:c++;continue}else h=!0;(f===10||s===l-1)&&(f!==10&&s++,this.bMarks.push(a),this.eMarks.push(s),this.tShift.push(o),this.sCount.push(c),this.bsCount.push(0),h=!1,o=0,c=0,a=s+1)}this.bMarks.push(u.length),this.eMarks.push(u.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}mn.prototype.push=function(e,t,n){const r=new un(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};mn.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};mn.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};mn.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!Ue(r))break}return t};mn.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!Ue(this.src.charCodeAt(--t)))return t+1;return t};mn.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t};mn.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t};mn.prototype.getLines=function(t,n,r,u){if(t>=n)return"";const a=new Array(n-t);for(let s=0,o=t;o<n;o++,s++){let c=0;const l=this.bMarks[o];let h=l,f;for(o+1<n||u?f=this.eMarks[o]+1:f=this.eMarks[o];h<f&&c<r;){const m=this.src.charCodeAt(h);if(Ue(m))m===9?c+=4-(c+this.bsCount[o])%4:c++;else if(h-l<this.tShift[o])c++;else break;h++}c>r?a[s]=new Array(c-r+1).join(" ")+this.src.slice(h,f):a[s]=this.src.slice(h,f)}return a.join("")};mn.prototype.Token=un;const a3=65536;function qa(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function xo(e){const t=[],n=e.length;let r=0,u=e.charCodeAt(r),a=!1,s=0,o="";for(;r<n;)u===124&&(a?(o+=e.substring(s,r-1),s=r):(t.push(o+e.substring(s,r)),o="",s=r+1)),a=u===92,r++,u=e.charCodeAt(r);return t.push(o+e.substring(s)),t}function s3(e,t,n,r){if(t+2>n)return!1;let u=t+1;if(e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)return!1;let a=e.bMarks[u]+e.tShift[u];if(a>=e.eMarks[u])return!1;const s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58||a>=e.eMarks[u])return!1;const o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58&&!Ue(o)||s===45&&Ue(o))return!1;for(;a<e.eMarks[u];){const D=e.src.charCodeAt(a);if(D!==124&&D!==45&&D!==58&&!Ue(D))return!1;a++}let c=qa(e,t+1),l=c.split("|");const h=[];for(let D=0;D<l.length;D++){const S=l[D].trim();if(!S){if(D===0||D===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(S))return!1;S.charCodeAt(S.length-1)===58?h.push(S.charCodeAt(0)===58?"center":"right"):S.charCodeAt(0)===58?h.push("left"):h.push("")}if(c=qa(e,t).trim(),c.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=xo(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const f=l.length;if(f===0||f!==h.length)return!1;if(r)return!0;const m=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),b=e.push("table_open","table",1),_=[t,0];b.map=_;const E=e.push("thead_open","thead",1);E.map=[t,t+1];const x=e.push("tr_open","tr",1);x.map=[t,t+1];for(let D=0;D<l.length;D++){const S=e.push("th_open","th",1);h[D]&&(S.attrs=[["style","text-align:"+h[D]]]);const I=e.push("inline","",0);I.content=l[D].trim(),I.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let k,y=0;for(u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){let D=!1;for(let I=0,M=p.length;I<M;I++)if(p[I](e,u,n,!0)){D=!0;break}if(D||(c=qa(e,u).trim(),!c)||e.sCount[u]-e.blkIndent>=4||(l=xo(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),y+=f-l.length,y>a3))break;if(u===t+2){const I=e.push("tbody_open","tbody",1);I.map=k=[t+2,0]}const S=e.push("tr_open","tr",1);S.map=[u,u+1];for(let I=0;I<f;I++){const M=e.push("td_open","td",1);h[I]&&(M.attrs=[["style","text-align:"+h[I]]]);const H=e.push("inline","",0);H.content=l[I]?l[I].trim():"",H.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return k&&(e.push("tbody_close","tbody",-1),k[1]=u),e.push("table_close","table",-1),_[1]=u,e.parentType=m,e.line=u,!0}function i3(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,u=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,u=r;continue}break}e.line=u;const a=e.push("code_block","code",0);return a.content=e.getLines(t,u,4+e.blkIndent,!1)+`
|
|
45
|
-
`,a.map=[t,e.line],!0}function o3(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||u+3>a)return!1;const s=e.src.charCodeAt(u);if(s!==126&&s!==96)return!1;let o=u;u=e.skipChars(u,s);let c=u-o;if(c<3)return!1;const l=e.src.slice(o,u),h=e.src.slice(u,a);if(s===96&&h.indexOf(String.fromCharCode(s))>=0)return!1;if(r)return!0;let f=t,m=!1;for(;f++,!(f>=n||(u=o=e.bMarks[f]+e.tShift[f],a=e.eMarks[f],u<a&&e.sCount[f]<e.blkIndent));)if(e.src.charCodeAt(u)===s&&!(e.sCount[f]-e.blkIndent>=4)&&(u=e.skipChars(u,s),!(u-o<c)&&(u=e.skipSpaces(u),!(u<a)))){m=!0;break}c=e.sCount[t],e.line=f+(m?1:0);const p=e.push("fence","code",0);return p.info=h,p.content=e.getLines(t+1,f,c,!0),p.markup=l,p.map=[t,e.line],!0}function c3(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==62)return!1;if(r)return!0;const o=[],c=[],l=[],h=[],f=e.md.block.ruler.getRules("blockquote"),m=e.parentType;e.parentType="blockquote";let p=!1,b;for(b=t;b<n;b++){const y=e.sCount[b]<e.blkIndent;if(u=e.bMarks[b]+e.tShift[b],a=e.eMarks[b],u>=a)break;if(e.src.charCodeAt(u++)===62&&!y){let S=e.sCount[b]+1,I,M;e.src.charCodeAt(u)===32?(u++,S++,M=!1,I=!0):e.src.charCodeAt(u)===9?(I=!0,(e.bsCount[b]+S)%4===3?(u++,S++,M=!1):M=!0):I=!1;let H=S;for(o.push(e.bMarks[b]),e.bMarks[b]=u;u<a;){const U=e.src.charCodeAt(u);if(Ue(U))U===9?H+=4-(H+e.bsCount[b]+(M?1:0))%4:H++;else break;u++}p=u>=a,c.push(e.bsCount[b]),e.bsCount[b]=e.sCount[b]+1+(I?1:0),l.push(e.sCount[b]),e.sCount[b]=H-S,h.push(e.tShift[b]),e.tShift[b]=u-e.bMarks[b];continue}if(p)break;let D=!1;for(let S=0,I=f.length;S<I;S++)if(f[S](e,b,n,!0)){D=!0;break}if(D){e.lineMax=b,e.blkIndent!==0&&(o.push(e.bMarks[b]),c.push(e.bsCount[b]),h.push(e.tShift[b]),l.push(e.sCount[b]),e.sCount[b]-=e.blkIndent);break}o.push(e.bMarks[b]),c.push(e.bsCount[b]),h.push(e.tShift[b]),l.push(e.sCount[b]),e.sCount[b]=-1}const _=e.blkIndent;e.blkIndent=0;const E=e.push("blockquote_open","blockquote",1);E.markup=">";const x=[t,0];E.map=x,e.md.block.tokenize(e,t,b);const k=e.push("blockquote_close","blockquote",-1);k.markup=">",e.lineMax=s,e.parentType=m,x[1]=e.line;for(let y=0;y<h.length;y++)e.bMarks[y+t]=o[y],e.tShift[y+t]=h[y],e.sCount[y+t]=l[y],e.bsCount[y+t]=c[y];return e.blkIndent=_,!0}function l3(e,t,n,r){const u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(a++);if(s!==42&&s!==45&&s!==95)return!1;let o=1;for(;a<u;){const l=e.src.charCodeAt(a++);if(l!==s&&!Ue(l))return!1;l===s&&o++}if(o<3)return!1;if(r)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(o+1).join(String.fromCharCode(s)),!0}function Co(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const u=e.src.charCodeAt(r++);if(u!==42&&u!==45&&u!==43)return-1;if(r<n){const a=e.src.charCodeAt(r);if(!Ue(a))return-1}return r}function Eo(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let u=n;if(u+1>=r)return-1;let a=e.src.charCodeAt(u++);if(a<48||a>57)return-1;for(;;){if(u>=r)return-1;if(a=e.src.charCodeAt(u++),a>=48&&a<=57){if(u-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return u<r&&(a=e.src.charCodeAt(u),!Ue(a))?-1:u}function d3(e,t){const n=e.level+2;for(let r=t+2,u=e.tokens.length-2;r<u;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function f3(e,t,n,r){let u,a,s,o,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let h=!1;r&&e.parentType==="paragraph"&&e.sCount[c]>=e.blkIndent&&(h=!0);let f,m,p;if((p=Eo(e,c))>=0){if(f=!0,s=e.bMarks[c]+e.tShift[c],m=Number(e.src.slice(s,p-1)),h&&m!==1)return!1}else if((p=Co(e,c))>=0)f=!1;else return!1;if(h&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;const b=e.src.charCodeAt(p-1),_=e.tokens.length;f?(o=e.push("ordered_list_open","ol",1),m!==1&&(o.attrs=[["start",m]])):o=e.push("bullet_list_open","ul",1);const E=[c,0];o.map=E,o.markup=String.fromCharCode(b);let x=!1;const k=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";c<n;){a=p,u=e.eMarks[c];const D=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]);let S=D;for(;a<u;){const K=e.src.charCodeAt(a);if(K===9)S+=4-(S+e.bsCount[c])%4;else if(K===32)S++;else break;a++}const I=a;let M;I>=u?M=1:M=S-D,M>4&&(M=1);const H=D+M;o=e.push("list_item_open","li",1),o.markup=String.fromCharCode(b);const U=[c,0];o.map=U,f&&(o.info=e.src.slice(s,p-1));const P=e.tight,B=e.tShift[c],O=e.sCount[c],X=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=H,e.tight=!0,e.tShift[c]=I-e.bMarks[c],e.sCount[c]=S,I>=u&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||x)&&(l=!1),x=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=X,e.tShift[c]=B,e.sCount[c]=O,e.tight=P,o=e.push("list_item_close","li",-1),o.markup=String.fromCharCode(b),c=e.line,U[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let Y=!1;for(let K=0,ue=k.length;K<ue;K++)if(k[K](e,c,n,!0)){Y=!0;break}if(Y)break;if(f){if(p=Eo(e,c),p<0)break;s=e.bMarks[c]+e.tShift[c]}else if(p=Co(e,c),p<0)break;if(b!==e.src.charCodeAt(p-1))break}return f?o=e.push("ordered_list_close","ol",-1):o=e.push("bullet_list_close","ul",-1),o.markup=String.fromCharCode(b),E[1]=c,e.line=c,e.parentType=y,l&&d3(e,_),!0}function h3(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==91)return!1;function o(k){const y=e.lineMax;if(k>=y||e.isEmpty(k))return null;let D=!1;if(e.sCount[k]-e.blkIndent>3&&(D=!0),e.sCount[k]<0&&(D=!0),!D){const M=e.md.block.ruler.getRules("reference"),H=e.parentType;e.parentType="reference";let U=!1;for(let P=0,B=M.length;P<B;P++)if(M[P](e,k,y,!0)){U=!0;break}if(e.parentType=H,U)return null}const S=e.bMarks[k]+e.tShift[k],I=e.eMarks[k];return e.src.slice(S,I+1)}let c=e.src.slice(u,a+1);a=c.length;let l=-1;for(u=1;u<a;u++){const k=c.charCodeAt(u);if(k===91)return!1;if(k===93){l=u;break}else if(k===10){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}else if(k===92&&(u++,u<a&&c.charCodeAt(u)===10)){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(u=l+2;u<a;u++){const k=c.charCodeAt(u);if(k===10){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}else if(!Ue(k))break}const h=e.md.helpers.parseLinkDestination(c,u,a);if(!h.ok)return!1;const f=e.md.normalizeLink(h.str);if(!e.md.validateLink(f))return!1;u=h.pos;const m=u,p=s,b=u;for(;u<a;u++){const k=c.charCodeAt(u);if(k===10){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}else if(!Ue(k))break}let _=e.md.helpers.parseLinkTitle(c,u,a);for(;_.can_continue;){const k=o(s);if(k===null)break;c+=k,u=a,a=c.length,s++,_=e.md.helpers.parseLinkTitle(c,u,a,_)}let E;for(u<a&&b!==u&&_.ok?(E=_.str,u=_.pos):(E="",u=m,s=p);u<a;){const k=c.charCodeAt(u);if(!Ue(k))break;u++}if(u<a&&c.charCodeAt(u)!==10&&E)for(E="",u=m,s=p;u<a;){const k=c.charCodeAt(u);if(!Ue(k))break;u++}if(u<a&&c.charCodeAt(u)!==10)return!1;const x=la(c.slice(1,l));return x?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[x]>"u"&&(e.env.references[x]={title:E,href:f}),e.line=s),!0):!1}const p3=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],m3="[a-zA-Z_:][a-zA-Z0-9:._-]*",g3="[^\"'=<>`\\x00-\\x20]+",b3="'[^']*'",_3='"[^"]*"',x3="(?:"+g3+"|"+b3+"|"+_3+")",C3="(?:\\s+"+m3+"(?:\\s*=\\s*"+x3+")?)",wl="<[A-Za-z][A-Za-z0-9\\-]*"+C3+"*\\s*\\/?>",Dl="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",E3="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",y3="<[?][\\s\\S]*?[?]>",T3="<![A-Za-z][^>]*>",k3="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",A3=new RegExp("^(?:"+wl+"|"+Dl+"|"+E3+"|"+y3+"|"+T3+"|"+k3+")"),S3=new RegExp("^(?:"+wl+"|"+Dl+")"),fr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+p3.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(S3.source+"\\s*$"),/^$/,!1]];function I3(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;let s=e.src.slice(u,a),o=0;for(;o<fr.length&&!fr[o][0].test(s);o++);if(o===fr.length)return!1;if(r)return fr[o][2];let c=t+1;if(!fr[o][1].test(s)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(u=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],s=e.src.slice(u,a),fr[o][1].test(s)){s.length!==0&&c++;break}}e.line=c;const l=e.push("html_block","",0);return l.map=[t,c],l.content=e.getLines(t,c,e.blkIndent,!0),!0}function N3(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(u);if(s!==35||u>=a)return!1;let o=1;for(s=e.src.charCodeAt(++u);s===35&&u<a&&o<=6;)o++,s=e.src.charCodeAt(++u);if(o>6||u<a&&!Ue(s))return!1;if(r)return!0;a=e.skipSpacesBack(a,u);const c=e.skipCharsBack(a,35,u);c>u&&Ue(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;const l=e.push("heading_open","h"+String(o),1);l.markup="########".slice(0,o),l.map=[t,e.line];const h=e.push("inline","",0);h.content=e.src.slice(u,a).trim(),h.map=[t,e.line],h.children=[];const f=e.push("heading_close","h"+String(o),-1);return f.markup="########".slice(0,o),!0}function v3(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const u=e.parentType;e.parentType="paragraph";let a=0,s,o=t+1;for(;o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3)continue;if(e.sCount[o]>=e.blkIndent){let p=e.bMarks[o]+e.tShift[o];const b=e.eMarks[o];if(p<b&&(s=e.src.charCodeAt(p),(s===45||s===61)&&(p=e.skipChars(p,s),p=e.skipSpaces(p),p>=b))){a=s===61?1:2;break}}if(e.sCount[o]<0)continue;let m=!1;for(let p=0,b=r.length;p<b;p++)if(r[p](e,o,n,!0)){m=!0;break}if(m)break}if(!a)return!1;const c=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o+1;const l=e.push("heading_open","h"+String(a),1);l.markup=String.fromCharCode(s),l.map=[t,e.line];const h=e.push("inline","",0);h.content=c,h.map=[t,e.line-1],h.children=[];const f=e.push("heading_close","h"+String(a),-1);return f.markup=String.fromCharCode(s),e.parentType=u,!0}function w3(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),u=e.parentType;let a=t+1;for(e.parentType="paragraph";a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let l=!1;for(let h=0,f=r.length;h<f;h++)if(r[h](e,a,n,!0)){l=!0;break}if(l)break}const s=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a;const o=e.push("paragraph_open","p",1);o.map=[t,e.line];const c=e.push("inline","",0);return c.content=s,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=u,!0}const vu=[["table",s3,["paragraph","reference"]],["code",i3],["fence",o3,["paragraph","reference","blockquote","list"]],["blockquote",c3,["paragraph","reference","blockquote","list"]],["hr",l3,["paragraph","reference","blockquote","list"]],["list",f3,["paragraph","reference","blockquote"]],["reference",h3],["html_block",I3,["paragraph","reference","blockquote"]],["heading",N3,["paragraph","reference","blockquote"]],["lheading",v3],["paragraph",w3]];function da(){this.ruler=new Rt;for(let e=0;e<vu.length;e++)this.ruler.push(vu[e][0],vu[e][1],{alt:(vu[e][2]||[]).slice()})}da.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),u=r.length,a=e.md.options.maxNesting;let s=t,o=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=a){e.line=n;break}const c=e.line;let l=!1;for(let h=0;h<u;h++)if(l=r[h](e,s,n,!1),l){if(c>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!o,e.isEmpty(e.line-1)&&(o=!0),s=e.line,s<n&&e.isEmpty(s)&&(o=!0,s++,e.line=s)}};da.prototype.parse=function(e,t,n,r){if(!e)return;const u=new this.State(e,t,n,r);this.tokenize(u,u.line,u.lineMax)};da.prototype.State=mn;function mu(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}mu.prototype.pushPending=function(){const e=new un("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};mu.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new un(e,t,n);let u=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],u={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(u),r};mu.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),u=e>0?this.src.charCodeAt(e-1):32;let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;const s=a-e,o=a<n?this.src.charCodeAt(a):32,c=au(u)||uu(String.fromCharCode(u)),l=au(o)||uu(String.fromCharCode(o)),h=ru(u),f=ru(o),m=!f&&(!l||h||c),p=!h&&(!c||f||l);return{can_open:m&&(t||!p||c),can_close:p&&(t||!m||l),length:s}};mu.prototype.Token=un;function D3(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function L3(e,t){let n=e.pos;for(;n<e.posMax&&!D3(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const P3=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function R3(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const u=e.pending.match(P3);if(!u)return!1;const a=u[1],s=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!s)return!1;let o=s.url;if(o.length<=a.length)return!1;o=o.replace(/\*+$/,"");const c=e.md.normalizeLink(o);if(!e.md.validateLink(c))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);const l=e.push("link_open","a",1);l.attrs=[["href",c]],l.markup="linkify",l.info="auto";const h=e.push("text","",0);h.content=e.md.normalizeLinkText(o);const f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=o.length-a.length,!0}function M3(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,u=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let a=r-1;for(;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<u&&Ue(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const ci=[];for(let e=0;e<256;e++)ci.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ci[e.charCodeAt(0)]=1});function O3(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let u=e.src.charCodeAt(n);if(u===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(u=e.src.charCodeAt(n),!!Ue(u));)n++;return e.pos=n,!0}let a=e.src[n];if(u>=55296&&u<=56319&&n+1<r){const o=e.src.charCodeAt(n+1);o>=56320&&o<=57343&&(a+=e.src[n+1],n++)}const s="\\"+a;if(!t){const o=e.push("text_special","",0);u<256&&ci[u]!==0?o.content=a:o.content=s,o.markup=s,o.info="escape"}return e.pos=n+1,!0}function j3(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const u=n;n++;const a=e.posMax;for(;n<a&&e.src.charCodeAt(n)===96;)n++;const s=e.src.slice(u,n),o=s.length;if(e.backticksScanned&&(e.backticks[o]||0)<=u)return t||(e.pending+=s),e.pos+=o,!0;let c=n,l;for(;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<a&&e.src.charCodeAt(c)===96;)c++;const h=c-l;if(h===o){if(!t){const f=e.push("code_inline","code",0);f.markup=s,f.content=e.src.slice(n,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=c,!0}e.backticks[h]=l}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=o,!0}function F3(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const u=e.scanDelims(e.pos,!0);let a=u.length;const s=String.fromCharCode(r);if(a<2)return!1;let o;a%2&&(o=e.push("text","",0),o.content=s,a--);for(let c=0;c<a;c+=2)o=e.push("text","",0),o.content=s+s,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close});return e.pos+=u.length,!0}function yo(e,t){let n;const r=[],u=t.length;for(let a=0;a<u;a++){const s=t[a];if(s.marker!==126||s.end===-1)continue;const o=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[o.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[o.token-1].type==="text"&&e.tokens[o.token-1].content==="~"&&r.push(o.token-1)}for(;r.length;){const a=r.pop();let s=a+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,a!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[a],e.tokens[a]=n)}}function B3(e){const t=e.tokens_meta,n=e.tokens_meta.length;yo(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&yo(e,t[r].delimiters)}const Ll={tokenize:F3,postProcess:B3};function H3(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const u=e.scanDelims(e.pos,r===42);for(let a=0;a<u.length;a++){const s=e.push("text","",0);s.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:u.length,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close})}return e.pos+=u.length,!0}function To(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const u=t[r];if(u.marker!==95&&u.marker!==42||u.end===-1)continue;const a=t[u.end],s=r>0&&t[r-1].end===u.end+1&&t[r-1].marker===u.marker&&t[r-1].token===u.token-1&&t[u.end+1].token===a.token+1,o=String.fromCharCode(u.marker),c=e.tokens[u.token];c.type=s?"strong_open":"em_open",c.tag=s?"strong":"em",c.nesting=1,c.markup=s?o+o:o,c.content="";const l=e.tokens[a.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?o+o:o,l.content="",s&&(e.tokens[t[r-1].token].content="",e.tokens[t[u.end+1].token].content="",r--)}}function U3(e){const t=e.tokens_meta,n=e.tokens_meta.length;To(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&To(e,t[r].delimiters)}const Pl={tokenize:H3,postProcess:U3};function V3(e,t){let n,r,u,a,s="",o="",c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const h=e.pos,f=e.posMax,m=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let b=p+1;if(b<f&&e.src.charCodeAt(b)===40){for(l=!1,b++;b<f&&(n=e.src.charCodeAt(b),!(!Ue(n)&&n!==10));b++);if(b>=f)return!1;if(c=b,u=e.md.helpers.parseLinkDestination(e.src,b,e.posMax),u.ok){for(s=e.md.normalizeLink(u.str),e.md.validateLink(s)?b=u.pos:s="",c=b;b<f&&(n=e.src.charCodeAt(b),!(!Ue(n)&&n!==10));b++);if(u=e.md.helpers.parseLinkTitle(e.src,b,e.posMax),b<f&&c!==b&&u.ok)for(o=u.str,b=u.pos;b<f&&(n=e.src.charCodeAt(b),!(!Ue(n)&&n!==10));b++);}(b>=f||e.src.charCodeAt(b)!==41)&&(l=!0),b++}if(l){if(typeof e.env.references>"u")return!1;if(b<f&&e.src.charCodeAt(b)===91?(c=b+1,b=e.md.helpers.parseLinkLabel(e,b),b>=0?r=e.src.slice(c,b++):b=p+1):b=p+1,r||(r=e.src.slice(m,p)),a=e.env.references[la(r)],!a)return e.pos=h,!1;s=a.href,o=a.title}if(!t){e.pos=m,e.posMax=p;const _=e.push("link_open","a",1),E=[["href",s]];_.attrs=E,o&&E.push(["title",o]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=b,e.posMax=f,!0}function $3(e,t){let n,r,u,a,s,o,c,l,h="";const f=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,b=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(b<0)return!1;if(a=b+1,a<m&&e.src.charCodeAt(a)===40){for(a++;a<m&&(n=e.src.charCodeAt(a),!(!Ue(n)&&n!==10));a++);if(a>=m)return!1;for(l=a,o=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),o.ok&&(h=e.md.normalizeLink(o.str),e.md.validateLink(h)?a=o.pos:h=""),l=a;a<m&&(n=e.src.charCodeAt(a),!(!Ue(n)&&n!==10));a++);if(o=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<m&&l!==a&&o.ok)for(c=o.str,a=o.pos;a<m&&(n=e.src.charCodeAt(a),!(!Ue(n)&&n!==10));a++);else c="";if(a>=m||e.src.charCodeAt(a)!==41)return e.pos=f,!1;a++}else{if(typeof e.env.references>"u")return!1;if(a<m&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?u=e.src.slice(l,a++):a=b+1):a=b+1,u||(u=e.src.slice(p,b)),s=e.env.references[la(u)],!s)return e.pos=f,!1;h=s.href,c=s.title}if(!t){r=e.src.slice(p,b);const _=[];e.md.inline.parse(r,e.md,e.env,_);const E=e.push("image","img",0),x=[["src",h],["alt",""]];E.attrs=x,E.children=_,E.content=r,c&&x.push(["title",c])}return e.pos=a,e.posMax=m,!0}const z3=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,q3=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Z3(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,u=e.posMax;for(;;){if(++n>=u)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const a=e.src.slice(r+1,n);if(q3.test(a)){const s=e.md.normalizeLink(a);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(a);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=a.length+2,!0}if(z3.test(a)){const s=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(a);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=a.length+2,!0}return!1}function W3(e){return/^<a[>\s]/i.test(e)}function Y3(e){return/^<\/a\s*>/i.test(e)}function G3(e){const t=e|32;return t>=97&&t<=122}function X3(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const u=e.src.charCodeAt(r+1);if(u!==33&&u!==63&&u!==47&&!G3(u))return!1;const a=e.src.slice(r).match(A3);if(!a)return!1;if(!t){const s=e.push("html_inline","",0);s.content=a[0],W3(s.content)&&e.linkLevel++,Y3(s.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}const K3=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Q3=/^&([a-z][a-z0-9]{1,31});/i;function J3(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const a=e.src.slice(n).match(K3);if(a){if(!t){const s=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),o=e.push("text_special","",0);o.content=ii(s)?Yu(s):Yu(65533),o.markup=a[0],o.info="entity"}return e.pos+=a[0].length,!0}}else{const a=e.src.slice(n).match(Q3);if(a){const s=Al(a[0]);if(s!==a[0]){if(!t){const o=e.push("text_special","",0);o.content=s,o.markup=a[0],o.info="entity"}return e.pos+=a[0].length,!0}}}return!1}function ko(e){const t={},n=e.length;if(!n)return;let r=0,u=-2;const a=[];for(let s=0;s<n;s++){const o=e[s];if(a.push(0),(e[r].marker!==o.marker||u!==o.token-1)&&(r=s),u=o.token,o.length=o.length||0,!o.close)continue;t.hasOwnProperty(o.marker)||(t[o.marker]=[-1,-1,-1,-1,-1,-1]);const c=t[o.marker][(o.open?3:0)+o.length%3];let l=r-a[r]-1,h=l;for(;l>c;l-=a[l]+1){const f=e[l];if(f.marker===o.marker&&f.open&&f.end<0){let m=!1;if((f.close||o.open)&&(f.length+o.length)%3===0&&(f.length%3!==0||o.length%3!==0)&&(m=!0),!m){const p=l>0&&!e[l-1].open?a[l-1]+1:0;a[s]=s-l+p,a[l]=p,o.open=!1,f.end=s,f.close=!1,h=-1,u=-2;break}}}h!==-1&&(t[o.marker][(o.open?3:0)+(o.length||0)%3]=h)}}function ep(e){const t=e.tokens_meta,n=e.tokens_meta.length;ko(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ko(t[r].delimiters)}function tp(e){let t,n,r=0;const u=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)u[t].nesting<0&&r--,u[t].level=r,u[t].nesting>0&&r++,u[t].type==="text"&&t+1<a&&u[t+1].type==="text"?u[t+1].content=u[t].content+u[t+1].content:(t!==n&&(u[n]=u[t]),n++);t!==n&&(u.length=n)}const Za=[["text",L3],["linkify",R3],["newline",M3],["escape",O3],["backticks",j3],["strikethrough",Ll.tokenize],["emphasis",Pl.tokenize],["link",V3],["image",$3],["autolink",Z3],["html_inline",X3],["entity",J3]],Wa=[["balance_pairs",ep],["strikethrough",Ll.postProcess],["emphasis",Pl.postProcess],["fragments_join",tp]];function gu(){this.ruler=new Rt;for(let e=0;e<Za.length;e++)this.ruler.push(Za[e][0],Za[e][1]);this.ruler2=new Rt;for(let e=0;e<Wa.length;e++)this.ruler2.push(Wa[e][0],Wa[e][1])}gu.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,u=e.md.options.maxNesting,a=e.cache;if(typeof a[t]<"u"){e.pos=a[t];return}let s=!1;if(e.level<u){for(let o=0;o<r;o++)if(e.level++,s=n[o](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,a[t]=e.pos};gu.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,u=e.md.options.maxNesting;for(;e.pos<r;){const a=e.pos;let s=!1;if(e.level<u){for(let o=0;o<n;o++)if(s=t[o](e,!1),s){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};gu.prototype.parse=function(e,t,n,r){const u=new this.State(e,t,n,r);this.tokenize(u);const a=this.ruler2.getRules(""),s=a.length;for(let o=0;o<s;o++)a[o](u)};gu.prototype.State=mu;function np(e){const t={};e=e||{},t.src_Any=Cl.source,t.src_Cc=El.source,t.src_Z=Tl.source,t.src_P=ai.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function ws(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function fa(e){return Object.prototype.toString.call(e)}function rp(e){return fa(e)==="[object String]"}function up(e){return fa(e)==="[object Object]"}function ap(e){return fa(e)==="[object RegExp]"}function Ao(e){return fa(e)==="[object Function]"}function sp(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Rl={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function ip(e){return Object.keys(e||{}).reduce(function(t,n){return t||Rl.hasOwnProperty(n)},!1)}const op={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},cp="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",lp="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function dp(e){e.__index__=-1,e.__text_cache__=""}function fp(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function So(){return function(e,t){t.normalize(e)}}function Gu(e){const t=e.re=np(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(cp),n.push(t.src_xn),t.src_tlds=n.join("|");function r(o){return o.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const u=[];e.__compiled__={};function a(o,c){throw new Error('(LinkifyIt) Invalid schema "'+o+'": '+c)}Object.keys(e.__schemas__).forEach(function(o){const c=e.__schemas__[o];if(c===null)return;const l={validate:null,link:null};if(e.__compiled__[o]=l,up(c)){ap(c.validate)?l.validate=fp(c.validate):Ao(c.validate)?l.validate=c.validate:a(o,c),Ao(c.normalize)?l.normalize=c.normalize:c.normalize?a(o,c):l.normalize=So();return}if(rp(c)){u.push(o);return}a(o,c)}),u.forEach(function(o){e.__compiled__[e.__schemas__[o]]&&(e.__compiled__[o].validate=e.__compiled__[e.__schemas__[o]].validate,e.__compiled__[o].normalize=e.__compiled__[e.__schemas__[o]].normalize)}),e.__compiled__[""]={validate:null,normalize:So()};const s=Object.keys(e.__compiled__).filter(function(o){return o.length>0&&e.__compiled__[o]}).map(sp).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),dp(e)}function hp(e,t){const n=e.__index__,r=e.__last_index__,u=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=u,this.text=u,this.url=u}function Ds(e,t){const n=new hp(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function zt(e,t){if(!(this instanceof zt))return new zt(e,t);t||ip(e)&&(t=e,e={}),this.__opts__=ws({},Rl,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ws({},op,e),this.__compiled__={},this.__tlds__=lp,this.__tlds_replaced__=!1,this.re={},Gu(this)}zt.prototype.add=function(t,n){return this.__schemas__[t]=n,Gu(this),this};zt.prototype.set=function(t){return this.__opts__=ws(this.__opts__,t),this};zt.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,u,a,s,o,c,l,h;if(this.re.schema_test.test(t)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(t))!==null;)if(a=this.testSchemaAt(t,n[2],c.lastIndex),a){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(h=t.indexOf("@"),h>=0&&(u=t.match(this.re.email_fuzzy))!==null&&(s=u.index+u[1].length,o=u.index+u[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=o))),this.__index__>=0};zt.prototype.pretest=function(t){return this.re.pretest.test(t)};zt.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};zt.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(Ds(this,r)),r=this.__last_index__);let u=r?t.slice(r):t;for(;this.test(u);)n.push(Ds(this,r)),u=u.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};zt.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,Ds(this,0)):null};zt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,u,a){return r!==a[u-1]}).reverse(),Gu(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Gu(this),this)};zt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};zt.prototype.onCompile=function(){};const xr=2147483647,fn=36,li=1,su=26,pp=38,mp=700,Ml=72,Ol=128,jl="-",gp=/^xn--/,bp=/[^\0-\x7F]/,_p=/[\x2E\u3002\uFF0E\uFF61]/g,xp={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ya=fn-li,hn=Math.floor,Ga=String.fromCharCode;function Fn(e){throw new RangeError(xp[e])}function Cp(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Fl(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(_p,".");const u=e.split("."),a=Cp(u,t).join(".");return r+a}function Bl(e){const t=[];let n=0;const r=e.length;for(;n<r;){const u=e.charCodeAt(n++);if(u>=55296&&u<=56319&&n<r){const a=e.charCodeAt(n++);(a&64512)==56320?t.push(((u&1023)<<10)+(a&1023)+65536):(t.push(u),n--)}else t.push(u)}return t}const Ep=e=>String.fromCodePoint(...e),yp=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:fn},Io=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Hl=function(e,t,n){let r=0;for(e=n?hn(e/mp):e>>1,e+=hn(e/t);e>Ya*su>>1;r+=fn)e=hn(e/Ya);return hn(r+(Ya+1)*e/(e+pp))},Ul=function(e){const t=[],n=e.length;let r=0,u=Ol,a=Ml,s=e.lastIndexOf(jl);s<0&&(s=0);for(let o=0;o<s;++o)e.charCodeAt(o)>=128&&Fn("not-basic"),t.push(e.charCodeAt(o));for(let o=s>0?s+1:0;o<n;){const c=r;for(let h=1,f=fn;;f+=fn){o>=n&&Fn("invalid-input");const m=yp(e.charCodeAt(o++));m>=fn&&Fn("invalid-input"),m>hn((xr-r)/h)&&Fn("overflow"),r+=m*h;const p=f<=a?li:f>=a+su?su:f-a;if(m<p)break;const b=fn-p;h>hn(xr/b)&&Fn("overflow"),h*=b}const l=t.length+1;a=Hl(r-c,l,c==0),hn(r/l)>xr-u&&Fn("overflow"),u+=hn(r/l),r%=l,t.splice(r++,0,u)}return String.fromCodePoint(...t)},Vl=function(e){const t=[];e=Bl(e);const n=e.length;let r=Ol,u=0,a=Ml;for(const c of e)c<128&&t.push(Ga(c));const s=t.length;let o=s;for(s&&t.push(jl);o<n;){let c=xr;for(const h of e)h>=r&&h<c&&(c=h);const l=o+1;c-r>hn((xr-u)/l)&&Fn("overflow"),u+=(c-r)*l,r=c;for(const h of e)if(h<r&&++u>xr&&Fn("overflow"),h===r){let f=u;for(let m=fn;;m+=fn){const p=m<=a?li:m>=a+su?su:m-a;if(f<p)break;const b=f-p,_=fn-p;t.push(Ga(Io(p+b%_,0))),f=hn(b/_)}t.push(Ga(Io(f,0))),a=Hl(u,l,o===s),u=0,++o}++u,++r}return t.join("")},Tp=function(e){return Fl(e,function(t){return gp.test(t)?Ul(t.slice(4).toLowerCase()):t})},kp=function(e){return Fl(e,function(t){return bp.test(t)?"xn--"+Vl(t):t})},$l={version:"2.3.1",ucs2:{decode:Bl,encode:Ep},decode:Ul,encode:Vl,toASCII:kp,toUnicode:Tp},Ap={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Sp={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Ip={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Np={default:Ap,zero:Sp,commonmark:Ip},vp=/^(vbscript|javascript|file|data):/,wp=/^data:image\/(gif|png|jpeg|webp);/;function Dp(e){const t=e.trim().toLowerCase();return vp.test(t)?wp.test(t):!0}const zl=["http:","https:","mailto:"];function Lp(e){const t=ui(e,!0);if(t.hostname&&(!t.protocol||zl.indexOf(t.protocol)>=0))try{t.hostname=$l.toASCII(t.hostname)}catch{}return pu(ri(t))}function Pp(e){const t=ui(e,!0);if(t.hostname&&(!t.protocol||zl.indexOf(t.protocol)>=0))try{t.hostname=$l.toUnicode(t.hostname)}catch{}return Tr(ri(t),Tr.defaultChars+"%")}function Qt(e,t){if(!(this instanceof Qt))return new Qt(e,t);t||si(e)||(t=e||{},e="default"),this.inline=new gu,this.block=new da,this.core=new oi,this.renderer=new vr,this.linkify=new zt,this.validateLink=Dp,this.normalizeLink=Lp,this.normalizeLinkText=Pp,this.utils=Mh,this.helpers=ca({},Bh),this.options={},this.configure(e),t&&this.set(t)}Qt.prototype.set=function(e){return ca(this.options,e),this};Qt.prototype.configure=function(e){const t=this;if(si(e)){const n=e;if(e=Np[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Qt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Qt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Qt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Qt.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Qt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Qt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Qt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const ql=()=>new Qt({html:!0,linkify:!0,typographer:!0,breaks:!0}),di=({text:e})=>{const t=ql(),n=_l(e),r=t.render(n);return i.jsx("div",{className:"markdown-text",dangerouslySetInnerHTML:{__html:r}})},Rp="_statItem_fzeec_1",Mp="_content_fzeec_44",Op="_withChildren_fzeec_50",jp="_info_fzeec_56",Fp="_iconWrapper_fzeec_68",Bp="_text_fzeec_78",Hp="_title_fzeec_84",Up="_value_fzeec_88",Vp="_emptyImage_fzeec_94",$p="_image_fzeec_11",zp="_imageTitle_fzeec_112",qp="_emptyImageText_fzeec_122",Zp="_hoverable_fzeec_147",rt={statItem:Rp,content:Mp,withChildren:Op,info:jp,iconWrapper:Fp,text:Bp,title:Hp,value:Up,emptyImage:Vp,image:$p,imageTitle:zp,emptyImageText:qp,hoverable:Zp},wt=({iconName:e,title:t,value:n,image:r,imageName:u,children:a,className:s,logo:o,customLogo:c,productSlug:l})=>{const h=g.useNavigate();return i.jsxs("div",{className:`${rt.statItem} ${s}`,children:[r&&r!=="empty"&&i.jsxs("div",{style:{position:"relative"},onClick:()=>{l&&h(`/${l}`)},children:[i.jsx("div",{style:{background:"#000000"},children:i.jsx("img",{src:r,alt:u,className:g.clx(rt.image,rt.emptyImage,{[rt.hoverable]:l})})}),i.jsx("div",{className:rt.emptyImageText,children:i.jsx("div",{className:g.clx(rt.title,rt.imageTitle),id:"h5",children:u})})]}),r==="empty"&&i.jsx("div",{style:{background:"#000000"},children:i.jsxs("div",{className:g.clx(rt.emptyImage,{[rt.hoverable]:l}),onClick:()=>{l&&h(`/${l}`)},children:[i.jsx(N.Icon,{name:"Image",width:64,height:64,fill:"var(--text-secondary)"}),i.jsx("div",{className:rt.emptyImageText,children:i.jsx("div",{className:rt.title,id:"h5",children:u||"No Product"})})]})}),i.jsxs("div",{className:`${rt.content} ${a?rt.withChildren:""}`,children:[i.jsxs("div",{className:rt.info,children:[c?i.jsx("div",{style:{color:"var(--text-action)"},children:c}):o?i.jsx("div",{className:rt.iconWrapper,children:i.jsx("img",{src:o,width:28,height:28,style:{objectFit:"contain"}})}):i.jsx(N.Icon,{name:e||"File",className:rt.iconWrapper,width:28,height:28,fill:"var(--text-action)"}),i.jsxs("div",{className:rt.text,children:[i.jsx("div",{className:rt.title,id:"h5",children:t}),i.jsx("div",{className:rt.value,id:"h5-bold",children:n})]})]}),a]})]})},Wp="_card_8m277_2",Yp="_mobile_8m277_15",Gp="_email_8m277_19",Xp="_balance_8m277_25",Kp="_sidebar_8m277_32",Qp="_sidebarAntistock_8m277_33",Jp="_navList_8m277_68",e6="_navListAntistock_8m277_86",t6="_navItem_8m277_91",n6="_antistockNavItem_8m277_92",r6="_activeNavItem_8m277_116",u6="_antistockActiveNavItem_8m277_121",a6="_antistockInactiveNavItem_8m277_139",s6="_inactiveNavItem_8m277_140",i6="_logoutNavItem_8m277_150",o6="_logoutNavItemAntistock_8m277_159",c6="_logoutNavItemContentAntistock_8m277_173",l6="_iconWrapper_8m277_185",d6="_skeleton_8m277_190",qe={card:Wp,mobile:Yp,email:Gp,balance:Xp,sidebar:Kp,sidebarAntistock:Qp,navList:Jp,navListAntistock:e6,navItem:t6,antistockNavItem:n6,activeNavItem:r6,antistockActiveNavItem:u6,antistockInactiveNavItem:a6,inactiveNavItem:s6,logoutNavItem:i6,logoutNavItemAntistock:o6,logoutNavItemContentAntistock:c6,iconWrapper:l6,skeleton:d6},f6=({email:e,balance:t,adaptiveStyles:n})=>i.jsxs("div",{className:g.clx(qe.card,{[qe.mobile]:n!=="desktop"}),children:[i.jsx("div",{className:qe.email,id:"h5",children:e}),i.jsxs("div",{className:qe.balance,id:"md",children:["Balance: ",t]})]}),h6=()=>typeof g.Routes>"u"||!g.Routes.Home?(console.warn("Routes not available"),[]):[[g.Routes.Home,"House"],[g.Routes.Orders,"CurrencyCircleDollar"],[g.Routes.Rewards,"Medal"],[g.Routes.Balance,"Wallet"],[g.Routes.Subscriptions,"CalendarCheck"],[g.Routes.Tickets,"Question"],[g.Routes.Api,"Code"]],p6=()=>typeof g.AntistockRoutes>"u"||!g.AntistockRoutes.Home?(console.warn("AntistockRoutes not available"),[]):[[g.AntistockRoutes.Home,"House"],[g.AntistockRoutes.Orders,"CurrencyCircleDollar"],[g.AntistockRoutes.Rewards,"Medal"],[g.AntistockRoutes.Balance,"Wallet"],[g.AntistockRoutes.Tickets,"Question"],[g.AntistockRoutes.Api,"Code"]],No=({children:e,className:t="",onClick:n})=>{const{isAntistock:r}=g.useGeneralStore();return i.jsx("button",{type:"button",className:g.clx(r?qe.antistockNavItem:qe.navItem,t),onClick:n,children:e})},m6=({adaptiveStyles:e})=>{const{route:t,setRoute:n,dashboardSettings:r}=g.useCustomerDashboardStore(),{resetPage:u}=g.usePaginationPagesStore(),{isAntistock:a}=g.useGeneralStore(),s=L.useMemo(()=>{if(a){const l=p6();return r!=null&&r.isApiPageEnabled?l:l.filter(([h])=>h!==g.AntistockRoutes.Api)}const c=h6();return r!=null&&r.isApiPageEnabled?c:c.filter(([l])=>l!==g.Routes.Api)},[a,r]),o=c=>{t!==c&&u(),n(c)};return i.jsxs("div",{className:g.clx(qe.navList,{[qe.mobile]:e!=="desktop",[qe.navListAntistock]:a}),children:[s.map(([c,l])=>{const h=c===t;return i.jsxs(No,{onClick:()=>o(c),className:g.clx(h?a?qe.antistockActiveNavItem:qe.activeNavItem:a?qe.antistockInactiveNavItem:qe.inactiveNavItem),children:[a?null:i.jsx("div",{className:qe.iconWrapper,children:i.jsx(N.Icon,{name:l})}),i.jsx("div",{children:c})]},c)}),i.jsx(No,{className:g.clx(qe.logoutNavItem,{[qe.logoutNavItemAntistock]:a}),onClick:()=>{a||Es()},children:a?i.jsxs("div",{className:g.clx({[qe.logoutNavItemContentAntistock]:a}),onClick:()=>{Es()},children:[i.jsx("div",{className:qe.iconWrapper,children:i.jsx(N.Icon,{name:"SignOut"})}),i.jsx("div",{children:"Sign Out"})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{className:qe.iconWrapper,children:i.jsx(N.Icon,{name:"SignOut"})}),i.jsx("div",{children:"Sign Out"})]})})]})};/*! *****************************************************************************
|
|
43
|
+
`;break}return r};vr.prototype.render=function(e,t,n){let r="";const u=this.rules;for(let a=0,s=e.length;a<s;a++){const o=e[a].type;o==="inline"?r+=this.renderInline(e[a].children,t,n):typeof u[o]<"u"?r+=u[o](e,a,t,n,this):r+=this.renderToken(e,a,t,n)}return r};function Rt(){this.__rules__=[],this.__cache__=null}Rt.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Rt.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})};Rt.prototype.at=function(e,t,n){const r=this.__find__(e),u=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=u.alt||[],this.__cache__=null};Rt.prototype.before=function(e,t,n,r){const u=this.__find__(e),a=r||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(u,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};Rt.prototype.after=function(e,t,n,r){const u=this.__find__(e),a=r||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(u+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};Rt.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};Rt.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const u=this.__find__(r);if(u<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[u].enabled=!0,n.push(r)},this),this.__cache__=null,n};Rt.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Rt.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const u=this.__find__(r);if(u<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[u].enabled=!1,n.push(r)},this),this.__cache__=null,n};Rt.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function un(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}un.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,u=n.length;r<u;r++)if(n[r][0]===t)return r;return-1};un.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};un.prototype.attrSet=function(t,n){const r=this.attrIndex(t),u=[t,n];r<0?this.attrPush(u):this.attrs[r]=u};un.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r};un.prototype.attrJoin=function(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function vl(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}vl.prototype.Token=un;const Uh=/\r\n?|\n/g,Vh=/\0/g;function $h(e){let t;t=e.src.replace(Uh,`
|
|
44
|
+
`),t=t.replace(Vh,"�"),e.src=t}function zh(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function qh(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const u=t[n];u.type==="inline"&&e.md.inline.parse(u.content,e.md,e.env,u.children)}}function Zh(e){return/^<a[>\s]/i.test(e)}function Wh(e){return/^<\/a\s*>/i.test(e)}function Yh(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let u=t[n].children,a=0;for(let s=u.length-1;s>=0;s--){const o=u[s];if(o.type==="link_close"){for(s--;u[s].level!==o.level&&u[s].type!=="link_open";)s--;continue}if(o.type==="html_inline"&&(Zh(o.content)&&a>0&&a--,Wh(o.content)&&a++),!(a>0)&&o.type==="text"&&e.md.linkify.test(o.content)){const c=o.content;let l=e.md.linkify.match(c);const h=[];let f=o.level,m=0;l.length>0&&l[0].index===0&&s>0&&u[s-1].type==="text_special"&&(l=l.slice(1));for(let p=0;p<l.length;p++){const b=l[p].url,_=e.md.normalizeLink(b);if(!e.md.validateLink(_))continue;let E=l[p].text;l[p].schema?l[p].schema==="mailto:"&&!/^mailto:/i.test(E)?E=e.md.normalizeLinkText("mailto:"+E).replace(/^mailto:/,""):E=e.md.normalizeLinkText(E):E=e.md.normalizeLinkText("http://"+E).replace(/^http:\/\//,"");const x=l[p].index;if(x>m){const S=new e.Token("text","",0);S.content=c.slice(m,x),S.level=f,h.push(S)}const k=new e.Token("link_open","a",1);k.attrs=[["href",_]],k.level=f++,k.markup="linkify",k.info="auto",h.push(k);const y=new e.Token("text","",0);y.content=E,y.level=f,h.push(y);const D=new e.Token("link_close","a",-1);D.level=--f,D.markup="linkify",D.info="auto",h.push(D),m=l[p].lastIndex}if(m<c.length){const p=new e.Token("text","",0);p.content=c.slice(m),p.level=f,h.push(p)}t[n].children=u=Il(u,s,h)}}}}const wl=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Gh=/\((c|tm|r)\)/i,Xh=/\((c|tm|r)\)/ig,Kh={c:"©",r:"®",tm:"™"};function Qh(e,t){return Kh[t.toLowerCase()]}function Jh(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(Xh,Qh)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function e3(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&wl.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function t3(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Gh.test(e.tokens[t].content)&&Jh(e.tokens[t].children),wl.test(e.tokens[t].content)&&e3(e.tokens[t].children))}const n3=/['"]/,_o=/['"]/g,xo="’";function vu(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function r3(e,t){let n;const r=[];for(let u=0;u<e.length;u++){const a=e[u],s=e[u].level;for(n=r.length-1;n>=0&&!(r[n].level<=s);n--);if(r.length=n+1,a.type!=="text")continue;let o=a.content,c=0,l=o.length;e:for(;c<l;){_o.lastIndex=c;const h=_o.exec(o);if(!h)break;let f=!0,m=!0;c=h.index+1;const p=h[0]==="'";let b=32;if(h.index-1>=0)b=o.charCodeAt(h.index-1);else for(n=u-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){b=e[n].content.charCodeAt(e[n].content.length-1);break}let _=32;if(c<l)_=o.charCodeAt(c);else for(n=u+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){_=e[n].content.charCodeAt(0);break}const E=au(b)||uu(String.fromCharCode(b)),x=au(_)||uu(String.fromCharCode(_)),k=ru(b),y=ru(_);if(y?f=!1:x&&(k||E||(f=!1)),k?m=!1:E&&(y||x||(m=!1)),_===34&&h[0]==='"'&&b>=48&&b<=57&&(m=f=!1),f&&m&&(f=E,m=x),!f&&!m){p&&(a.content=vu(a.content,h.index,xo));continue}if(m)for(n=r.length-1;n>=0;n--){let D=r[n];if(r[n].level<s)break;if(D.single===p&&r[n].level===s){D=r[n];let S,I;p?(S=t.md.options.quotes[2],I=t.md.options.quotes[3]):(S=t.md.options.quotes[0],I=t.md.options.quotes[1]),a.content=vu(a.content,h.index,I),e[D.token].content=vu(e[D.token].content,D.pos,S),c+=I.length-1,D.token===u&&(c+=S.length-1),o=a.content,l=o.length,r.length=n;continue e}}f?r.push({token:u,pos:h.index,single:p,level:s}):m&&p&&(a.content=vu(a.content,h.index,xo))}}}function u3(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!n3.test(e.tokens[t].content)||r3(e.tokens[t].children,e)}function a3(e){let t,n;const r=e.tokens,u=r.length;for(let a=0;a<u;a++){if(r[a].type!=="inline")continue;const s=r[a].children,o=s.length;for(t=0;t<o;t++)s[t].type==="text_special"&&(s[t].type="text");for(t=n=0;t<o;t++)s[t].type==="text"&&t+1<o&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==n&&(s[n]=s[t]),n++);t!==n&&(s.length=n)}}const qa=[["normalize",$h],["block",zh],["inline",qh],["linkify",Yh],["replacements",t3],["smartquotes",u3],["text_join",a3]];function oi(){this.ruler=new Rt;for(let e=0;e<qa.length;e++)this.ruler.push(qa[e][0],qa[e][1])}oi.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};oi.prototype.State=vl;function mn(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const u=this.src;for(let a=0,s=0,o=0,c=0,l=u.length,h=!1;s<l;s++){const f=u.charCodeAt(s);if(!h)if(Ue(f)){o++,f===9?c+=4-c%4:c++;continue}else h=!0;(f===10||s===l-1)&&(f!==10&&s++,this.bMarks.push(a),this.eMarks.push(s),this.tShift.push(o),this.sCount.push(c),this.bsCount.push(0),h=!1,o=0,c=0,a=s+1)}this.bMarks.push(u.length),this.eMarks.push(u.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}mn.prototype.push=function(e,t,n){const r=new un(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};mn.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};mn.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};mn.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!Ue(r))break}return t};mn.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!Ue(this.src.charCodeAt(--t)))return t+1;return t};mn.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t};mn.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t};mn.prototype.getLines=function(t,n,r,u){if(t>=n)return"";const a=new Array(n-t);for(let s=0,o=t;o<n;o++,s++){let c=0;const l=this.bMarks[o];let h=l,f;for(o+1<n||u?f=this.eMarks[o]+1:f=this.eMarks[o];h<f&&c<r;){const m=this.src.charCodeAt(h);if(Ue(m))m===9?c+=4-(c+this.bsCount[o])%4:c++;else if(h-l<this.tShift[o])c++;else break;h++}c>r?a[s]=new Array(c-r+1).join(" ")+this.src.slice(h,f):a[s]=this.src.slice(h,f)}return a.join("")};mn.prototype.Token=un;const s3=65536;function Za(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Co(e){const t=[],n=e.length;let r=0,u=e.charCodeAt(r),a=!1,s=0,o="";for(;r<n;)u===124&&(a?(o+=e.substring(s,r-1),s=r):(t.push(o+e.substring(s,r)),o="",s=r+1)),a=u===92,r++,u=e.charCodeAt(r);return t.push(o+e.substring(s)),t}function i3(e,t,n,r){if(t+2>n)return!1;let u=t+1;if(e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)return!1;let a=e.bMarks[u]+e.tShift[u];if(a>=e.eMarks[u])return!1;const s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58||a>=e.eMarks[u])return!1;const o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58&&!Ue(o)||s===45&&Ue(o))return!1;for(;a<e.eMarks[u];){const D=e.src.charCodeAt(a);if(D!==124&&D!==45&&D!==58&&!Ue(D))return!1;a++}let c=Za(e,t+1),l=c.split("|");const h=[];for(let D=0;D<l.length;D++){const S=l[D].trim();if(!S){if(D===0||D===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(S))return!1;S.charCodeAt(S.length-1)===58?h.push(S.charCodeAt(0)===58?"center":"right"):S.charCodeAt(0)===58?h.push("left"):h.push("")}if(c=Za(e,t).trim(),c.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=Co(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const f=l.length;if(f===0||f!==h.length)return!1;if(r)return!0;const m=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),b=e.push("table_open","table",1),_=[t,0];b.map=_;const E=e.push("thead_open","thead",1);E.map=[t,t+1];const x=e.push("tr_open","tr",1);x.map=[t,t+1];for(let D=0;D<l.length;D++){const S=e.push("th_open","th",1);h[D]&&(S.attrs=[["style","text-align:"+h[D]]]);const I=e.push("inline","",0);I.content=l[D].trim(),I.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let k,y=0;for(u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){let D=!1;for(let I=0,M=p.length;I<M;I++)if(p[I](e,u,n,!0)){D=!0;break}if(D||(c=Za(e,u).trim(),!c)||e.sCount[u]-e.blkIndent>=4||(l=Co(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),y+=f-l.length,y>s3))break;if(u===t+2){const I=e.push("tbody_open","tbody",1);I.map=k=[t+2,0]}const S=e.push("tr_open","tr",1);S.map=[u,u+1];for(let I=0;I<f;I++){const M=e.push("td_open","td",1);h[I]&&(M.attrs=[["style","text-align:"+h[I]]]);const H=e.push("inline","",0);H.content=l[I]?l[I].trim():"",H.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return k&&(e.push("tbody_close","tbody",-1),k[1]=u),e.push("table_close","table",-1),_[1]=u,e.parentType=m,e.line=u,!0}function o3(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,u=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,u=r;continue}break}e.line=u;const a=e.push("code_block","code",0);return a.content=e.getLines(t,u,4+e.blkIndent,!1)+`
|
|
45
|
+
`,a.map=[t,e.line],!0}function c3(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||u+3>a)return!1;const s=e.src.charCodeAt(u);if(s!==126&&s!==96)return!1;let o=u;u=e.skipChars(u,s);let c=u-o;if(c<3)return!1;const l=e.src.slice(o,u),h=e.src.slice(u,a);if(s===96&&h.indexOf(String.fromCharCode(s))>=0)return!1;if(r)return!0;let f=t,m=!1;for(;f++,!(f>=n||(u=o=e.bMarks[f]+e.tShift[f],a=e.eMarks[f],u<a&&e.sCount[f]<e.blkIndent));)if(e.src.charCodeAt(u)===s&&!(e.sCount[f]-e.blkIndent>=4)&&(u=e.skipChars(u,s),!(u-o<c)&&(u=e.skipSpaces(u),!(u<a)))){m=!0;break}c=e.sCount[t],e.line=f+(m?1:0);const p=e.push("fence","code",0);return p.info=h,p.content=e.getLines(t+1,f,c,!0),p.markup=l,p.map=[t,e.line],!0}function l3(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==62)return!1;if(r)return!0;const o=[],c=[],l=[],h=[],f=e.md.block.ruler.getRules("blockquote"),m=e.parentType;e.parentType="blockquote";let p=!1,b;for(b=t;b<n;b++){const y=e.sCount[b]<e.blkIndent;if(u=e.bMarks[b]+e.tShift[b],a=e.eMarks[b],u>=a)break;if(e.src.charCodeAt(u++)===62&&!y){let S=e.sCount[b]+1,I,M;e.src.charCodeAt(u)===32?(u++,S++,M=!1,I=!0):e.src.charCodeAt(u)===9?(I=!0,(e.bsCount[b]+S)%4===3?(u++,S++,M=!1):M=!0):I=!1;let H=S;for(o.push(e.bMarks[b]),e.bMarks[b]=u;u<a;){const U=e.src.charCodeAt(u);if(Ue(U))U===9?H+=4-(H+e.bsCount[b]+(M?1:0))%4:H++;else break;u++}p=u>=a,c.push(e.bsCount[b]),e.bsCount[b]=e.sCount[b]+1+(I?1:0),l.push(e.sCount[b]),e.sCount[b]=H-S,h.push(e.tShift[b]),e.tShift[b]=u-e.bMarks[b];continue}if(p)break;let D=!1;for(let S=0,I=f.length;S<I;S++)if(f[S](e,b,n,!0)){D=!0;break}if(D){e.lineMax=b,e.blkIndent!==0&&(o.push(e.bMarks[b]),c.push(e.bsCount[b]),h.push(e.tShift[b]),l.push(e.sCount[b]),e.sCount[b]-=e.blkIndent);break}o.push(e.bMarks[b]),c.push(e.bsCount[b]),h.push(e.tShift[b]),l.push(e.sCount[b]),e.sCount[b]=-1}const _=e.blkIndent;e.blkIndent=0;const E=e.push("blockquote_open","blockquote",1);E.markup=">";const x=[t,0];E.map=x,e.md.block.tokenize(e,t,b);const k=e.push("blockquote_close","blockquote",-1);k.markup=">",e.lineMax=s,e.parentType=m,x[1]=e.line;for(let y=0;y<h.length;y++)e.bMarks[y+t]=o[y],e.tShift[y+t]=h[y],e.sCount[y+t]=l[y],e.bsCount[y+t]=c[y];return e.blkIndent=_,!0}function d3(e,t,n,r){const u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(a++);if(s!==42&&s!==45&&s!==95)return!1;let o=1;for(;a<u;){const l=e.src.charCodeAt(a++);if(l!==s&&!Ue(l))return!1;l===s&&o++}if(o<3)return!1;if(r)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(o+1).join(String.fromCharCode(s)),!0}function Eo(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const u=e.src.charCodeAt(r++);if(u!==42&&u!==45&&u!==43)return-1;if(r<n){const a=e.src.charCodeAt(r);if(!Ue(a))return-1}return r}function yo(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let u=n;if(u+1>=r)return-1;let a=e.src.charCodeAt(u++);if(a<48||a>57)return-1;for(;;){if(u>=r)return-1;if(a=e.src.charCodeAt(u++),a>=48&&a<=57){if(u-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return u<r&&(a=e.src.charCodeAt(u),!Ue(a))?-1:u}function f3(e,t){const n=e.level+2;for(let r=t+2,u=e.tokens.length-2;r<u;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function h3(e,t,n,r){let u,a,s,o,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let h=!1;r&&e.parentType==="paragraph"&&e.sCount[c]>=e.blkIndent&&(h=!0);let f,m,p;if((p=yo(e,c))>=0){if(f=!0,s=e.bMarks[c]+e.tShift[c],m=Number(e.src.slice(s,p-1)),h&&m!==1)return!1}else if((p=Eo(e,c))>=0)f=!1;else return!1;if(h&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;const b=e.src.charCodeAt(p-1),_=e.tokens.length;f?(o=e.push("ordered_list_open","ol",1),m!==1&&(o.attrs=[["start",m]])):o=e.push("bullet_list_open","ul",1);const E=[c,0];o.map=E,o.markup=String.fromCharCode(b);let x=!1;const k=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";c<n;){a=p,u=e.eMarks[c];const D=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]);let S=D;for(;a<u;){const K=e.src.charCodeAt(a);if(K===9)S+=4-(S+e.bsCount[c])%4;else if(K===32)S++;else break;a++}const I=a;let M;I>=u?M=1:M=S-D,M>4&&(M=1);const H=D+M;o=e.push("list_item_open","li",1),o.markup=String.fromCharCode(b);const U=[c,0];o.map=U,f&&(o.info=e.src.slice(s,p-1));const P=e.tight,B=e.tShift[c],O=e.sCount[c],X=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=H,e.tight=!0,e.tShift[c]=I-e.bMarks[c],e.sCount[c]=S,I>=u&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||x)&&(l=!1),x=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=X,e.tShift[c]=B,e.sCount[c]=O,e.tight=P,o=e.push("list_item_close","li",-1),o.markup=String.fromCharCode(b),c=e.line,U[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let Y=!1;for(let K=0,ue=k.length;K<ue;K++)if(k[K](e,c,n,!0)){Y=!0;break}if(Y)break;if(f){if(p=yo(e,c),p<0)break;s=e.bMarks[c]+e.tShift[c]}else if(p=Eo(e,c),p<0)break;if(b!==e.src.charCodeAt(p-1))break}return f?o=e.push("ordered_list_close","ol",-1):o=e.push("bullet_list_close","ul",-1),o.markup=String.fromCharCode(b),E[1]=c,e.line=c,e.parentType=y,l&&f3(e,_),!0}function p3(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==91)return!1;function o(k){const y=e.lineMax;if(k>=y||e.isEmpty(k))return null;let D=!1;if(e.sCount[k]-e.blkIndent>3&&(D=!0),e.sCount[k]<0&&(D=!0),!D){const M=e.md.block.ruler.getRules("reference"),H=e.parentType;e.parentType="reference";let U=!1;for(let P=0,B=M.length;P<B;P++)if(M[P](e,k,y,!0)){U=!0;break}if(e.parentType=H,U)return null}const S=e.bMarks[k]+e.tShift[k],I=e.eMarks[k];return e.src.slice(S,I+1)}let c=e.src.slice(u,a+1);a=c.length;let l=-1;for(u=1;u<a;u++){const k=c.charCodeAt(u);if(k===91)return!1;if(k===93){l=u;break}else if(k===10){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}else if(k===92&&(u++,u<a&&c.charCodeAt(u)===10)){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(u=l+2;u<a;u++){const k=c.charCodeAt(u);if(k===10){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}else if(!Ue(k))break}const h=e.md.helpers.parseLinkDestination(c,u,a);if(!h.ok)return!1;const f=e.md.normalizeLink(h.str);if(!e.md.validateLink(f))return!1;u=h.pos;const m=u,p=s,b=u;for(;u<a;u++){const k=c.charCodeAt(u);if(k===10){const y=o(s);y!==null&&(c+=y,a=c.length,s++)}else if(!Ue(k))break}let _=e.md.helpers.parseLinkTitle(c,u,a);for(;_.can_continue;){const k=o(s);if(k===null)break;c+=k,u=a,a=c.length,s++,_=e.md.helpers.parseLinkTitle(c,u,a,_)}let E;for(u<a&&b!==u&&_.ok?(E=_.str,u=_.pos):(E="",u=m,s=p);u<a;){const k=c.charCodeAt(u);if(!Ue(k))break;u++}if(u<a&&c.charCodeAt(u)!==10&&E)for(E="",u=m,s=p;u<a;){const k=c.charCodeAt(u);if(!Ue(k))break;u++}if(u<a&&c.charCodeAt(u)!==10)return!1;const x=da(c.slice(1,l));return x?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[x]>"u"&&(e.env.references[x]={title:E,href:f}),e.line=s),!0):!1}const m3=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],g3="[a-zA-Z_:][a-zA-Z0-9:._-]*",b3="[^\"'=<>`\\x00-\\x20]+",_3="'[^']*'",x3='"[^"]*"',C3="(?:"+b3+"|"+_3+"|"+x3+")",E3="(?:\\s+"+g3+"(?:\\s*=\\s*"+C3+")?)",Dl="<[A-Za-z][A-Za-z0-9\\-]*"+E3+"*\\s*\\/?>",Ll="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",y3="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",T3="<[?][\\s\\S]*?[?]>",k3="<![A-Za-z][^>]*>",A3="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",S3=new RegExp("^(?:"+Dl+"|"+Ll+"|"+y3+"|"+T3+"|"+k3+"|"+A3+")"),I3=new RegExp("^(?:"+Dl+"|"+Ll+")"),fr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+m3.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(I3.source+"\\s*$"),/^$/,!1]];function N3(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;let s=e.src.slice(u,a),o=0;for(;o<fr.length&&!fr[o][0].test(s);o++);if(o===fr.length)return!1;if(r)return fr[o][2];let c=t+1;if(!fr[o][1].test(s)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(u=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],s=e.src.slice(u,a),fr[o][1].test(s)){s.length!==0&&c++;break}}e.line=c;const l=e.push("html_block","",0);return l.map=[t,c],l.content=e.getLines(t,c,e.blkIndent,!0),!0}function v3(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(u);if(s!==35||u>=a)return!1;let o=1;for(s=e.src.charCodeAt(++u);s===35&&u<a&&o<=6;)o++,s=e.src.charCodeAt(++u);if(o>6||u<a&&!Ue(s))return!1;if(r)return!0;a=e.skipSpacesBack(a,u);const c=e.skipCharsBack(a,35,u);c>u&&Ue(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;const l=e.push("heading_open","h"+String(o),1);l.markup="########".slice(0,o),l.map=[t,e.line];const h=e.push("inline","",0);h.content=e.src.slice(u,a).trim(),h.map=[t,e.line],h.children=[];const f=e.push("heading_close","h"+String(o),-1);return f.markup="########".slice(0,o),!0}function w3(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const u=e.parentType;e.parentType="paragraph";let a=0,s,o=t+1;for(;o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3)continue;if(e.sCount[o]>=e.blkIndent){let p=e.bMarks[o]+e.tShift[o];const b=e.eMarks[o];if(p<b&&(s=e.src.charCodeAt(p),(s===45||s===61)&&(p=e.skipChars(p,s),p=e.skipSpaces(p),p>=b))){a=s===61?1:2;break}}if(e.sCount[o]<0)continue;let m=!1;for(let p=0,b=r.length;p<b;p++)if(r[p](e,o,n,!0)){m=!0;break}if(m)break}if(!a)return!1;const c=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o+1;const l=e.push("heading_open","h"+String(a),1);l.markup=String.fromCharCode(s),l.map=[t,e.line];const h=e.push("inline","",0);h.content=c,h.map=[t,e.line-1],h.children=[];const f=e.push("heading_close","h"+String(a),-1);return f.markup=String.fromCharCode(s),e.parentType=u,!0}function D3(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),u=e.parentType;let a=t+1;for(e.parentType="paragraph";a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let l=!1;for(let h=0,f=r.length;h<f;h++)if(r[h](e,a,n,!0)){l=!0;break}if(l)break}const s=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a;const o=e.push("paragraph_open","p",1);o.map=[t,e.line];const c=e.push("inline","",0);return c.content=s,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=u,!0}const wu=[["table",i3,["paragraph","reference"]],["code",o3],["fence",c3,["paragraph","reference","blockquote","list"]],["blockquote",l3,["paragraph","reference","blockquote","list"]],["hr",d3,["paragraph","reference","blockquote","list"]],["list",h3,["paragraph","reference","blockquote"]],["reference",p3],["html_block",N3,["paragraph","reference","blockquote"]],["heading",v3,["paragraph","reference","blockquote"]],["lheading",w3],["paragraph",D3]];function fa(){this.ruler=new Rt;for(let e=0;e<wu.length;e++)this.ruler.push(wu[e][0],wu[e][1],{alt:(wu[e][2]||[]).slice()})}fa.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),u=r.length,a=e.md.options.maxNesting;let s=t,o=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=a){e.line=n;break}const c=e.line;let l=!1;for(let h=0;h<u;h++)if(l=r[h](e,s,n,!1),l){if(c>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!o,e.isEmpty(e.line-1)&&(o=!0),s=e.line,s<n&&e.isEmpty(s)&&(o=!0,s++,e.line=s)}};fa.prototype.parse=function(e,t,n,r){if(!e)return;const u=new this.State(e,t,n,r);this.tokenize(u,u.line,u.lineMax)};fa.prototype.State=mn;function mu(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}mu.prototype.pushPending=function(){const e=new un("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};mu.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new un(e,t,n);let u=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],u={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(u),r};mu.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),u=e>0?this.src.charCodeAt(e-1):32;let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;const s=a-e,o=a<n?this.src.charCodeAt(a):32,c=au(u)||uu(String.fromCharCode(u)),l=au(o)||uu(String.fromCharCode(o)),h=ru(u),f=ru(o),m=!f&&(!l||h||c),p=!h&&(!c||f||l);return{can_open:m&&(t||!p||c),can_close:p&&(t||!m||l),length:s}};mu.prototype.Token=un;function L3(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function P3(e,t){let n=e.pos;for(;n<e.posMax&&!L3(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const R3=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function M3(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const u=e.pending.match(R3);if(!u)return!1;const a=u[1],s=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!s)return!1;let o=s.url;if(o.length<=a.length)return!1;o=o.replace(/\*+$/,"");const c=e.md.normalizeLink(o);if(!e.md.validateLink(c))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);const l=e.push("link_open","a",1);l.attrs=[["href",c]],l.markup="linkify",l.info="auto";const h=e.push("text","",0);h.content=e.md.normalizeLinkText(o);const f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=o.length-a.length,!0}function O3(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,u=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let a=r-1;for(;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<u&&Ue(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const ci=[];for(let e=0;e<256;e++)ci.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ci[e.charCodeAt(0)]=1});function j3(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let u=e.src.charCodeAt(n);if(u===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(u=e.src.charCodeAt(n),!!Ue(u));)n++;return e.pos=n,!0}let a=e.src[n];if(u>=55296&&u<=56319&&n+1<r){const o=e.src.charCodeAt(n+1);o>=56320&&o<=57343&&(a+=e.src[n+1],n++)}const s="\\"+a;if(!t){const o=e.push("text_special","",0);u<256&&ci[u]!==0?o.content=a:o.content=s,o.markup=s,o.info="escape"}return e.pos=n+1,!0}function F3(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const u=n;n++;const a=e.posMax;for(;n<a&&e.src.charCodeAt(n)===96;)n++;const s=e.src.slice(u,n),o=s.length;if(e.backticksScanned&&(e.backticks[o]||0)<=u)return t||(e.pending+=s),e.pos+=o,!0;let c=n,l;for(;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<a&&e.src.charCodeAt(c)===96;)c++;const h=c-l;if(h===o){if(!t){const f=e.push("code_inline","code",0);f.markup=s,f.content=e.src.slice(n,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=c,!0}e.backticks[h]=l}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=o,!0}function B3(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const u=e.scanDelims(e.pos,!0);let a=u.length;const s=String.fromCharCode(r);if(a<2)return!1;let o;a%2&&(o=e.push("text","",0),o.content=s,a--);for(let c=0;c<a;c+=2)o=e.push("text","",0),o.content=s+s,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close});return e.pos+=u.length,!0}function To(e,t){let n;const r=[],u=t.length;for(let a=0;a<u;a++){const s=t[a];if(s.marker!==126||s.end===-1)continue;const o=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[o.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[o.token-1].type==="text"&&e.tokens[o.token-1].content==="~"&&r.push(o.token-1)}for(;r.length;){const a=r.pop();let s=a+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,a!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[a],e.tokens[a]=n)}}function H3(e){const t=e.tokens_meta,n=e.tokens_meta.length;To(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&To(e,t[r].delimiters)}const Pl={tokenize:B3,postProcess:H3};function U3(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const u=e.scanDelims(e.pos,r===42);for(let a=0;a<u.length;a++){const s=e.push("text","",0);s.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:u.length,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close})}return e.pos+=u.length,!0}function ko(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const u=t[r];if(u.marker!==95&&u.marker!==42||u.end===-1)continue;const a=t[u.end],s=r>0&&t[r-1].end===u.end+1&&t[r-1].marker===u.marker&&t[r-1].token===u.token-1&&t[u.end+1].token===a.token+1,o=String.fromCharCode(u.marker),c=e.tokens[u.token];c.type=s?"strong_open":"em_open",c.tag=s?"strong":"em",c.nesting=1,c.markup=s?o+o:o,c.content="";const l=e.tokens[a.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?o+o:o,l.content="",s&&(e.tokens[t[r-1].token].content="",e.tokens[t[u.end+1].token].content="",r--)}}function V3(e){const t=e.tokens_meta,n=e.tokens_meta.length;ko(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ko(e,t[r].delimiters)}const Rl={tokenize:U3,postProcess:V3};function $3(e,t){let n,r,u,a,s="",o="",c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const h=e.pos,f=e.posMax,m=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let b=p+1;if(b<f&&e.src.charCodeAt(b)===40){for(l=!1,b++;b<f&&(n=e.src.charCodeAt(b),!(!Ue(n)&&n!==10));b++);if(b>=f)return!1;if(c=b,u=e.md.helpers.parseLinkDestination(e.src,b,e.posMax),u.ok){for(s=e.md.normalizeLink(u.str),e.md.validateLink(s)?b=u.pos:s="",c=b;b<f&&(n=e.src.charCodeAt(b),!(!Ue(n)&&n!==10));b++);if(u=e.md.helpers.parseLinkTitle(e.src,b,e.posMax),b<f&&c!==b&&u.ok)for(o=u.str,b=u.pos;b<f&&(n=e.src.charCodeAt(b),!(!Ue(n)&&n!==10));b++);}(b>=f||e.src.charCodeAt(b)!==41)&&(l=!0),b++}if(l){if(typeof e.env.references>"u")return!1;if(b<f&&e.src.charCodeAt(b)===91?(c=b+1,b=e.md.helpers.parseLinkLabel(e,b),b>=0?r=e.src.slice(c,b++):b=p+1):b=p+1,r||(r=e.src.slice(m,p)),a=e.env.references[da(r)],!a)return e.pos=h,!1;s=a.href,o=a.title}if(!t){e.pos=m,e.posMax=p;const _=e.push("link_open","a",1),E=[["href",s]];_.attrs=E,o&&E.push(["title",o]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=b,e.posMax=f,!0}function z3(e,t){let n,r,u,a,s,o,c,l,h="";const f=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,b=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(b<0)return!1;if(a=b+1,a<m&&e.src.charCodeAt(a)===40){for(a++;a<m&&(n=e.src.charCodeAt(a),!(!Ue(n)&&n!==10));a++);if(a>=m)return!1;for(l=a,o=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),o.ok&&(h=e.md.normalizeLink(o.str),e.md.validateLink(h)?a=o.pos:h=""),l=a;a<m&&(n=e.src.charCodeAt(a),!(!Ue(n)&&n!==10));a++);if(o=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<m&&l!==a&&o.ok)for(c=o.str,a=o.pos;a<m&&(n=e.src.charCodeAt(a),!(!Ue(n)&&n!==10));a++);else c="";if(a>=m||e.src.charCodeAt(a)!==41)return e.pos=f,!1;a++}else{if(typeof e.env.references>"u")return!1;if(a<m&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?u=e.src.slice(l,a++):a=b+1):a=b+1,u||(u=e.src.slice(p,b)),s=e.env.references[da(u)],!s)return e.pos=f,!1;h=s.href,c=s.title}if(!t){r=e.src.slice(p,b);const _=[];e.md.inline.parse(r,e.md,e.env,_);const E=e.push("image","img",0),x=[["src",h],["alt",""]];E.attrs=x,E.children=_,E.content=r,c&&x.push(["title",c])}return e.pos=a,e.posMax=m,!0}const q3=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Z3=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function W3(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,u=e.posMax;for(;;){if(++n>=u)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const a=e.src.slice(r+1,n);if(Z3.test(a)){const s=e.md.normalizeLink(a);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(a);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=a.length+2,!0}if(q3.test(a)){const s=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(a);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=a.length+2,!0}return!1}function Y3(e){return/^<a[>\s]/i.test(e)}function G3(e){return/^<\/a\s*>/i.test(e)}function X3(e){const t=e|32;return t>=97&&t<=122}function K3(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const u=e.src.charCodeAt(r+1);if(u!==33&&u!==63&&u!==47&&!X3(u))return!1;const a=e.src.slice(r).match(S3);if(!a)return!1;if(!t){const s=e.push("html_inline","",0);s.content=a[0],Y3(s.content)&&e.linkLevel++,G3(s.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}const Q3=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,J3=/^&([a-z][a-z0-9]{1,31});/i;function ep(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const a=e.src.slice(n).match(Q3);if(a){if(!t){const s=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),o=e.push("text_special","",0);o.content=ii(s)?Gu(s):Gu(65533),o.markup=a[0],o.info="entity"}return e.pos+=a[0].length,!0}}else{const a=e.src.slice(n).match(J3);if(a){const s=Sl(a[0]);if(s!==a[0]){if(!t){const o=e.push("text_special","",0);o.content=s,o.markup=a[0],o.info="entity"}return e.pos+=a[0].length,!0}}}return!1}function Ao(e){const t={},n=e.length;if(!n)return;let r=0,u=-2;const a=[];for(let s=0;s<n;s++){const o=e[s];if(a.push(0),(e[r].marker!==o.marker||u!==o.token-1)&&(r=s),u=o.token,o.length=o.length||0,!o.close)continue;t.hasOwnProperty(o.marker)||(t[o.marker]=[-1,-1,-1,-1,-1,-1]);const c=t[o.marker][(o.open?3:0)+o.length%3];let l=r-a[r]-1,h=l;for(;l>c;l-=a[l]+1){const f=e[l];if(f.marker===o.marker&&f.open&&f.end<0){let m=!1;if((f.close||o.open)&&(f.length+o.length)%3===0&&(f.length%3!==0||o.length%3!==0)&&(m=!0),!m){const p=l>0&&!e[l-1].open?a[l-1]+1:0;a[s]=s-l+p,a[l]=p,o.open=!1,f.end=s,f.close=!1,h=-1,u=-2;break}}}h!==-1&&(t[o.marker][(o.open?3:0)+(o.length||0)%3]=h)}}function tp(e){const t=e.tokens_meta,n=e.tokens_meta.length;Ao(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Ao(t[r].delimiters)}function np(e){let t,n,r=0;const u=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)u[t].nesting<0&&r--,u[t].level=r,u[t].nesting>0&&r++,u[t].type==="text"&&t+1<a&&u[t+1].type==="text"?u[t+1].content=u[t].content+u[t+1].content:(t!==n&&(u[n]=u[t]),n++);t!==n&&(u.length=n)}const Wa=[["text",P3],["linkify",M3],["newline",O3],["escape",j3],["backticks",F3],["strikethrough",Pl.tokenize],["emphasis",Rl.tokenize],["link",$3],["image",z3],["autolink",W3],["html_inline",K3],["entity",ep]],Ya=[["balance_pairs",tp],["strikethrough",Pl.postProcess],["emphasis",Rl.postProcess],["fragments_join",np]];function gu(){this.ruler=new Rt;for(let e=0;e<Wa.length;e++)this.ruler.push(Wa[e][0],Wa[e][1]);this.ruler2=new Rt;for(let e=0;e<Ya.length;e++)this.ruler2.push(Ya[e][0],Ya[e][1])}gu.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,u=e.md.options.maxNesting,a=e.cache;if(typeof a[t]<"u"){e.pos=a[t];return}let s=!1;if(e.level<u){for(let o=0;o<r;o++)if(e.level++,s=n[o](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,a[t]=e.pos};gu.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,u=e.md.options.maxNesting;for(;e.pos<r;){const a=e.pos;let s=!1;if(e.level<u){for(let o=0;o<n;o++)if(s=t[o](e,!1),s){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};gu.prototype.parse=function(e,t,n,r){const u=new this.State(e,t,n,r);this.tokenize(u);const a=this.ruler2.getRules(""),s=a.length;for(let o=0;o<s;o++)a[o](u)};gu.prototype.State=mu;function rp(e){const t={};e=e||{},t.src_Any=El.source,t.src_Cc=yl.source,t.src_Z=kl.source,t.src_P=ai.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function ws(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function ha(e){return Object.prototype.toString.call(e)}function up(e){return ha(e)==="[object String]"}function ap(e){return ha(e)==="[object Object]"}function sp(e){return ha(e)==="[object RegExp]"}function So(e){return ha(e)==="[object Function]"}function ip(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Ml={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function op(e){return Object.keys(e||{}).reduce(function(t,n){return t||Ml.hasOwnProperty(n)},!1)}const cp={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},lp="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",dp="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function fp(e){e.__index__=-1,e.__text_cache__=""}function hp(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Io(){return function(e,t){t.normalize(e)}}function Xu(e){const t=e.re=rp(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(lp),n.push(t.src_xn),t.src_tlds=n.join("|");function r(o){return o.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const u=[];e.__compiled__={};function a(o,c){throw new Error('(LinkifyIt) Invalid schema "'+o+'": '+c)}Object.keys(e.__schemas__).forEach(function(o){const c=e.__schemas__[o];if(c===null)return;const l={validate:null,link:null};if(e.__compiled__[o]=l,ap(c)){sp(c.validate)?l.validate=hp(c.validate):So(c.validate)?l.validate=c.validate:a(o,c),So(c.normalize)?l.normalize=c.normalize:c.normalize?a(o,c):l.normalize=Io();return}if(up(c)){u.push(o);return}a(o,c)}),u.forEach(function(o){e.__compiled__[e.__schemas__[o]]&&(e.__compiled__[o].validate=e.__compiled__[e.__schemas__[o]].validate,e.__compiled__[o].normalize=e.__compiled__[e.__schemas__[o]].normalize)}),e.__compiled__[""]={validate:null,normalize:Io()};const s=Object.keys(e.__compiled__).filter(function(o){return o.length>0&&e.__compiled__[o]}).map(ip).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),fp(e)}function pp(e,t){const n=e.__index__,r=e.__last_index__,u=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=u,this.text=u,this.url=u}function Ds(e,t){const n=new pp(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function zt(e,t){if(!(this instanceof zt))return new zt(e,t);t||op(e)&&(t=e,e={}),this.__opts__=ws({},Ml,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ws({},cp,e),this.__compiled__={},this.__tlds__=dp,this.__tlds_replaced__=!1,this.re={},Xu(this)}zt.prototype.add=function(t,n){return this.__schemas__[t]=n,Xu(this),this};zt.prototype.set=function(t){return this.__opts__=ws(this.__opts__,t),this};zt.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,u,a,s,o,c,l,h;if(this.re.schema_test.test(t)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(t))!==null;)if(a=this.testSchemaAt(t,n[2],c.lastIndex),a){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(h=t.indexOf("@"),h>=0&&(u=t.match(this.re.email_fuzzy))!==null&&(s=u.index+u[1].length,o=u.index+u[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=o))),this.__index__>=0};zt.prototype.pretest=function(t){return this.re.pretest.test(t)};zt.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};zt.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(Ds(this,r)),r=this.__last_index__);let u=r?t.slice(r):t;for(;this.test(u);)n.push(Ds(this,r)),u=u.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};zt.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,Ds(this,0)):null};zt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,u,a){return r!==a[u-1]}).reverse(),Xu(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Xu(this),this)};zt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};zt.prototype.onCompile=function(){};const xr=2147483647,fn=36,li=1,su=26,mp=38,gp=700,Ol=72,jl=128,Fl="-",bp=/^xn--/,_p=/[^\0-\x7F]/,xp=/[\x2E\u3002\uFF0E\uFF61]/g,Cp={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ga=fn-li,hn=Math.floor,Xa=String.fromCharCode;function Fn(e){throw new RangeError(Cp[e])}function Ep(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Bl(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(xp,".");const u=e.split("."),a=Ep(u,t).join(".");return r+a}function Hl(e){const t=[];let n=0;const r=e.length;for(;n<r;){const u=e.charCodeAt(n++);if(u>=55296&&u<=56319&&n<r){const a=e.charCodeAt(n++);(a&64512)==56320?t.push(((u&1023)<<10)+(a&1023)+65536):(t.push(u),n--)}else t.push(u)}return t}const yp=e=>String.fromCodePoint(...e),Tp=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:fn},No=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Ul=function(e,t,n){let r=0;for(e=n?hn(e/gp):e>>1,e+=hn(e/t);e>Ga*su>>1;r+=fn)e=hn(e/Ga);return hn(r+(Ga+1)*e/(e+mp))},Vl=function(e){const t=[],n=e.length;let r=0,u=jl,a=Ol,s=e.lastIndexOf(Fl);s<0&&(s=0);for(let o=0;o<s;++o)e.charCodeAt(o)>=128&&Fn("not-basic"),t.push(e.charCodeAt(o));for(let o=s>0?s+1:0;o<n;){const c=r;for(let h=1,f=fn;;f+=fn){o>=n&&Fn("invalid-input");const m=Tp(e.charCodeAt(o++));m>=fn&&Fn("invalid-input"),m>hn((xr-r)/h)&&Fn("overflow"),r+=m*h;const p=f<=a?li:f>=a+su?su:f-a;if(m<p)break;const b=fn-p;h>hn(xr/b)&&Fn("overflow"),h*=b}const l=t.length+1;a=Ul(r-c,l,c==0),hn(r/l)>xr-u&&Fn("overflow"),u+=hn(r/l),r%=l,t.splice(r++,0,u)}return String.fromCodePoint(...t)},$l=function(e){const t=[];e=Hl(e);const n=e.length;let r=jl,u=0,a=Ol;for(const c of e)c<128&&t.push(Xa(c));const s=t.length;let o=s;for(s&&t.push(Fl);o<n;){let c=xr;for(const h of e)h>=r&&h<c&&(c=h);const l=o+1;c-r>hn((xr-u)/l)&&Fn("overflow"),u+=(c-r)*l,r=c;for(const h of e)if(h<r&&++u>xr&&Fn("overflow"),h===r){let f=u;for(let m=fn;;m+=fn){const p=m<=a?li:m>=a+su?su:m-a;if(f<p)break;const b=f-p,_=fn-p;t.push(Xa(No(p+b%_,0))),f=hn(b/_)}t.push(Xa(No(f,0))),a=Ul(u,l,o===s),u=0,++o}++u,++r}return t.join("")},kp=function(e){return Bl(e,function(t){return bp.test(t)?Vl(t.slice(4).toLowerCase()):t})},Ap=function(e){return Bl(e,function(t){return _p.test(t)?"xn--"+$l(t):t})},zl={version:"2.3.1",ucs2:{decode:Hl,encode:yp},decode:Vl,encode:$l,toASCII:Ap,toUnicode:kp},Sp={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Ip={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Np={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},vp={default:Sp,zero:Ip,commonmark:Np},wp=/^(vbscript|javascript|file|data):/,Dp=/^data:image\/(gif|png|jpeg|webp);/;function Lp(e){const t=e.trim().toLowerCase();return wp.test(t)?Dp.test(t):!0}const ql=["http:","https:","mailto:"];function Pp(e){const t=ui(e,!0);if(t.hostname&&(!t.protocol||ql.indexOf(t.protocol)>=0))try{t.hostname=zl.toASCII(t.hostname)}catch{}return pu(ri(t))}function Rp(e){const t=ui(e,!0);if(t.hostname&&(!t.protocol||ql.indexOf(t.protocol)>=0))try{t.hostname=zl.toUnicode(t.hostname)}catch{}return Tr(ri(t),Tr.defaultChars+"%")}function Qt(e,t){if(!(this instanceof Qt))return new Qt(e,t);t||si(e)||(t=e||{},e="default"),this.inline=new gu,this.block=new fa,this.core=new oi,this.renderer=new vr,this.linkify=new zt,this.validateLink=Lp,this.normalizeLink=Pp,this.normalizeLinkText=Rp,this.utils=Oh,this.helpers=la({},Hh),this.options={},this.configure(e),t&&this.set(t)}Qt.prototype.set=function(e){return la(this.options,e),this};Qt.prototype.configure=function(e){const t=this;if(si(e)){const n=e;if(e=vp[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Qt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Qt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Qt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Qt.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Qt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Qt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Qt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Zl=()=>new Qt({html:!0,linkify:!0,typographer:!0,breaks:!0}),di=({text:e})=>{const t=Zl(),n=xl(e),r=t.render(n);return i.jsx("div",{className:"markdown-text",dangerouslySetInnerHTML:{__html:r}})},Mp="_statItem_fzeec_1",Op="_content_fzeec_44",jp="_withChildren_fzeec_50",Fp="_info_fzeec_56",Bp="_iconWrapper_fzeec_68",Hp="_text_fzeec_78",Up="_title_fzeec_84",Vp="_value_fzeec_88",$p="_emptyImage_fzeec_94",zp="_image_fzeec_11",qp="_imageTitle_fzeec_112",Zp="_emptyImageText_fzeec_122",Wp="_hoverable_fzeec_147",rt={statItem:Mp,content:Op,withChildren:jp,info:Fp,iconWrapper:Bp,text:Hp,title:Up,value:Vp,emptyImage:$p,image:zp,imageTitle:qp,emptyImageText:Zp,hoverable:Wp},wt=({iconName:e,title:t,value:n,image:r,imageName:u,children:a,className:s,logo:o,customLogo:c,productSlug:l})=>{const h=g.useNavigate();return i.jsxs("div",{className:`${rt.statItem} ${s}`,children:[r&&r!=="empty"&&i.jsxs("div",{style:{position:"relative"},onClick:()=>{l&&h(`/${l}`)},children:[i.jsx("div",{style:{background:"#000000"},children:i.jsx("img",{src:r,alt:u,className:g.clx(rt.image,rt.emptyImage,{[rt.hoverable]:l})})}),i.jsx("div",{className:rt.emptyImageText,children:i.jsx("div",{className:g.clx(rt.title,rt.imageTitle),id:"h5",children:u})})]}),r==="empty"&&i.jsx("div",{style:{background:"#000000"},children:i.jsxs("div",{className:g.clx(rt.emptyImage,{[rt.hoverable]:l}),onClick:()=>{l&&h(`/${l}`)},children:[i.jsx(N.Icon,{name:"Image",width:64,height:64,fill:"var(--text-secondary)"}),i.jsx("div",{className:rt.emptyImageText,children:i.jsx("div",{className:rt.title,id:"h5",children:u||"No Product"})})]})}),i.jsxs("div",{className:`${rt.content} ${a?rt.withChildren:""}`,children:[i.jsxs("div",{className:rt.info,children:[c?i.jsx("div",{style:{color:"var(--text-action)"},children:c}):o?i.jsx("div",{className:rt.iconWrapper,children:i.jsx("img",{src:o,width:28,height:28,style:{objectFit:"contain"}})}):i.jsx(N.Icon,{name:e||"File",className:rt.iconWrapper,width:28,height:28,fill:"var(--text-action)"}),i.jsxs("div",{className:rt.text,children:[i.jsx("div",{className:rt.title,id:"h5",children:t}),i.jsx("div",{className:rt.value,id:"h5-bold",children:n})]})]}),a]})]})},Yp="_card_8m277_2",Gp="_mobile_8m277_15",Xp="_email_8m277_19",Kp="_balance_8m277_25",Qp="_sidebar_8m277_32",Jp="_sidebarAntistock_8m277_33",e6="_navList_8m277_68",t6="_navListAntistock_8m277_86",n6="_navItem_8m277_91",r6="_antistockNavItem_8m277_92",u6="_activeNavItem_8m277_116",a6="_antistockActiveNavItem_8m277_121",s6="_antistockInactiveNavItem_8m277_139",i6="_inactiveNavItem_8m277_140",o6="_logoutNavItem_8m277_150",c6="_logoutNavItemAntistock_8m277_159",l6="_logoutNavItemContentAntistock_8m277_173",d6="_iconWrapper_8m277_185",f6="_skeleton_8m277_190",qe={card:Yp,mobile:Gp,email:Xp,balance:Kp,sidebar:Qp,sidebarAntistock:Jp,navList:e6,navListAntistock:t6,navItem:n6,antistockNavItem:r6,activeNavItem:u6,antistockActiveNavItem:a6,antistockInactiveNavItem:s6,inactiveNavItem:i6,logoutNavItem:o6,logoutNavItemAntistock:c6,logoutNavItemContentAntistock:l6,iconWrapper:d6,skeleton:f6},h6=({email:e,balance:t,adaptiveStyles:n})=>i.jsxs("div",{className:g.clx(qe.card,{[qe.mobile]:n!=="desktop"}),children:[i.jsx("div",{className:qe.email,id:"h5",children:e}),i.jsxs("div",{className:qe.balance,id:"md",children:["Balance: ",t]})]}),p6=()=>typeof g.Routes>"u"||!g.Routes.Home?(console.warn("Routes not available"),[]):[[g.Routes.Home,"House"],[g.Routes.Orders,"CurrencyCircleDollar"],[g.Routes.Rewards,"Medal"],[g.Routes.Balance,"Wallet"],[g.Routes.Subscriptions,"CalendarCheck"],[g.Routes.Tickets,"Question"],[g.Routes.Api,"Code"]],m6=()=>typeof g.AntistockRoutes>"u"||!g.AntistockRoutes.Home?(console.warn("AntistockRoutes not available"),[]):[[g.AntistockRoutes.Home,"House"],[g.AntistockRoutes.Orders,"CurrencyCircleDollar"],[g.AntistockRoutes.Rewards,"Medal"],[g.AntistockRoutes.Balance,"Wallet"],[g.AntistockRoutes.Tickets,"Question"],[g.AntistockRoutes.Api,"Code"]],vo=({children:e,className:t="",onClick:n})=>{const{isAntistock:r}=g.useGeneralStore();return i.jsx("button",{type:"button",className:g.clx(r?qe.antistockNavItem:qe.navItem,t),onClick:n,children:e})},g6=({adaptiveStyles:e})=>{const{route:t,setRoute:n,dashboardSettings:r}=g.useCustomerDashboardStore(),{resetPage:u}=g.usePaginationPagesStore(),{isAntistock:a}=g.useGeneralStore(),s=L.useMemo(()=>{if(a){const l=m6();return r!=null&&r.isApiPageEnabled?l:l.filter(([h])=>h!==g.AntistockRoutes.Api)}const c=p6();return r!=null&&r.isApiPageEnabled?c:c.filter(([l])=>l!==g.Routes.Api)},[a,r]),o=c=>{t!==c&&u(),n(c)};return i.jsxs("div",{className:g.clx(qe.navList,{[qe.mobile]:e!=="desktop",[qe.navListAntistock]:a}),children:[s.map(([c,l])=>{const h=c===t;return i.jsxs(vo,{onClick:()=>o(c),className:g.clx(h?a?qe.antistockActiveNavItem:qe.activeNavItem:a?qe.antistockInactiveNavItem:qe.inactiveNavItem),children:[a?null:i.jsx("div",{className:qe.iconWrapper,children:i.jsx(N.Icon,{name:l})}),i.jsx("div",{children:c})]},c)}),i.jsx(vo,{className:g.clx(qe.logoutNavItem,{[qe.logoutNavItemAntistock]:a}),onClick:()=>{a||ys()},children:a?i.jsxs("div",{className:g.clx({[qe.logoutNavItemContentAntistock]:a}),onClick:()=>{ys()},children:[i.jsx("div",{className:qe.iconWrapper,children:i.jsx(N.Icon,{name:"SignOut"})}),i.jsx("div",{children:"Sign Out"})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{className:qe.iconWrapper,children:i.jsx(N.Icon,{name:"SignOut"})}),i.jsx("div",{children:"Sign Out"})]})})]})};/*! *****************************************************************************
|
|
46
46
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
47
47
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
48
48
|
this file except in compliance with the License. You may obtain a copy of the
|
|
@@ -55,13 +55,13 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
55
55
|
|
|
56
56
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
57
57
|
and limitations under the License.
|
|
58
|
-
***************************************************************************** */var $n=function(){return $n=Object.assign||function(t){for(var n,r=1,u=arguments.length;r<u;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},$n.apply(this,arguments)};function g6(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(e);u<r.length;u++)t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u])&&(n[r[u]]=e[r[u]]);return n}var b6=function(){return Math.random().toString(36).substring(6)},_6=function(e){var t=e.animate,n=t===void 0?!0:t,r=e.backgroundColor,u=r===void 0?"#f5f6f7":r,a=e.backgroundOpacity,s=a===void 0?1:a,o=e.baseUrl,c=o===void 0?"":o,l=e.children,h=e.foregroundColor,f=h===void 0?"#eee":h,m=e.foregroundOpacity,p=m===void 0?1:m,b=e.gradientRatio,_=b===void 0?2:b,E=e.uniqueKey,x=e.rtl,k=x===void 0?!1:x,y=e.speed,D=y===void 0?1.2:y,S=e.style,I=S===void 0?{}:S,M=e.title,H=M===void 0?"Loading...":M,U=e.beforeMask,P=U===void 0?null:U,B=g6(e,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","rtl","speed","style","title","beforeMask"]),O=E||b6(),X="".concat(O,"-diff"),Y="".concat(O,"-animated-diff"),K="".concat(O,"-aria"),ue=k?{transform:"scaleX(-1)"}:null,ae="".concat(D,"s"),se="".concat(_*-1," 0"),_e="".concat(_," 0");return L.createElement("svg",$n({"aria-labelledby":K,role:"img",style:$n($n({},I),ue)},B),H?L.createElement("title",{id:K},H):null,P&&L.isValidElement(P)?P:null,L.createElement("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url(".concat(c,"#").concat(X,")"),style:{fill:"url(".concat(c,"#").concat(Y,")")}}),L.createElement("defs",null,L.createElement("clipPath",{id:X},l),L.createElement("linearGradient",{id:Y,gradientTransform:"translate(".concat(se,")")},L.createElement("stop",{offset:"0%",stopColor:u,stopOpacity:s}),L.createElement("stop",{offset:"50%",stopColor:f,stopOpacity:p}),L.createElement("stop",{offset:"100%",stopColor:u,stopOpacity:s}),n&&L.createElement("animateTransform",{attributeName:"gradientTransform",type:"translate",values:"".concat(se,"; 0 0; ").concat(_e),dur:ae,repeatCount:"indefinite"}))))},ir=function(e){return e.children?L.createElement(_6,$n({},e)):L.createElement(x6,$n({},e))},x6=function(e){return L.createElement(ir,$n({viewBox:"0 0 476 124"},e),L.createElement("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),L.createElement("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),L.createElement("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),L.createElement("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),L.createElement("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),L.createElement("circle",{cx:"20",cy:"20",r:"20"}))};const Zl=({adaptiveStyles:e})=>{const{dashInfo:t,balance:n,setBalance:r,setDashInfo:u,setDashboardSettings:a}=g.useCustomerDashboardStore(),{isAntistock:s}=g.useGeneralStore();return L.useEffect(()=>{(async()=>{var c;try{const[l,h,f]=await Promise.all([i2(),al(),oa()]);u(l.data),r(f);const m=(c=h==null?void 0:h.data)==null?void 0:c.dashboardSettings;m&&a(m)}catch{}})()},[]),i.jsxs("div",{className:g.clx(s?qe.sidebarAntistock:qe.sidebar,{[qe.mobile]:e!=="desktop"}),style:{paddingTop:s?"48px":void 0},children:[!t||!n?i.jsx(i.Fragment,{children:s?i.jsx(N.Loader,{}):i.jsx(C6,{adaptiveStyles:e})}):!s&&i.jsx(f6,{email:t.email,balance:g.formatPrice(n),adaptiveStyles:e}),i.jsx(m6,{adaptiveStyles:e})]})},C6=({adaptiveStyles:e})=>i.jsx(ir,{speed:2,width:320,height:120,viewBox:"0 0 320 120",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",className:g.clx(qe.skeleton,{[qe.mobile]:e!=="desktop"}),style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"280",height:"100"})}),E6="_balanceContainer_lnfgz_1",y6="_headerTitle_lnfgz_12",T6="_balanceHeader_lnfgz_16",k6="_balanceAmount_lnfgz_23",A6="_balanceAmountTitle_lnfgz_36",S6="_balanceAmountValue_lnfgz_41",I6="_transactionDate_lnfgz_69",N6="_transactionItem_lnfgz_76",v6="_transactionDetails_lnfgz_84",w6="_iconWrapper_lnfgz_89",D6="_transactionInfo_lnfgz_100",L6="_transactionTitle_lnfgz_105",P6="_transactionId_lnfgz_109",R6="_transactionAmount_lnfgz_115",M6="_added_lnfgz_120",O6="_removed_lnfgz_123",j6="_noItemsBlock_lnfgz_127",F6="_pagination_lnfgz_136",B6="_antistock_lnfgz_142",H6="_modal_lnfgz_153",U6="_header_lnfgz_12",V6="_form_lnfgz_165",$6="_label_lnfgz_171",z6="_bonusBlock_lnfgz_184",q6="_gatewayList_lnfgz_198",Z6="_gatewayButton_lnfgz_205",W6="_selected_lnfgz_215",Y6="_gatewayName_lnfgz_218",G6="_error_lnfgz_221",X6="_submitButton_lnfgz_226",K6="_addBalanceButton_lnfgz_248",Q6="_gatewayIcon_lnfgz_267",J6="_loaderContainer_lnfgz_291",em="_transactionsContainer_lnfgz_299",tm="_transactionsHeader_lnfgz_8",nm="_transactionsContent_lnfgz_313",Ae={balanceContainer:E6,headerTitle:y6,balanceHeader:T6,balanceAmount:k6,balanceAmountTitle:A6,balanceAmountValue:S6,transactionDate:I6,transactionItem:N6,transactionDetails:v6,iconWrapper:w6,transactionInfo:D6,transactionTitle:L6,transactionId:P6,transactionAmount:R6,added:M6,removed:O6,noItemsBlock:j6,pagination:F6,antistock:B6,modal:H6,header:U6,form:V6,label:$6,bonusBlock:z6,gatewayList:q6,gatewayButton:Z6,selected:W6,gatewayName:Y6,error:G6,submitButton:X6,addBalanceButton:K6,gatewayIcon:Q6,loaderContainer:J6,transactionsContainer:em,transactionsHeader:tm,transactionsContent:nm},rm=async(e=1)=>await P2({PageNumber:e}),um=async({price:e,gateway:t,customerEmail:n})=>await a2({customerEmail:n,price:e,gateway:t,tsId:g.useGetTsId()}),vo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABcCAYAAAD50zLWAAAVdklEQVR4nM2da4hs2VXHf2ufU1XdffvOnfdN5pmZTGYm88xjMuRhkBAUgyIoBNHgp3wV/CAoYgQ/KQQi+SAiShQ1QhCNCuoXjYqIiZiJ7zFGY5QQNWHIa3K7u6rOXn8/7L3Po+pUdfWde/veBaer6jz22Xvt9V5r7zZ770coYGaA4xbac0jGlQV87VjhSoOkdwMfIthTQAAHMM4HlD+XwEvA14HP5eNTwCeAK8AMOFEwuGVfNg3Y3oQwrc0BKTVjDm7IzLT6IgDlUSW8jEN9SoeN9DLDhYyHEB8B7gVCHtB5Ia8PE+DVwGXg8dwXgAj8JfBrwF8hfYmT5VJeA5hjUBshI8QD2Cvsfth6SkoocpHn6D3AgzIqOmq4nqCVYxUCaQLLtQp4G/DrwL8Av8rCX8PRXHp5bv7yXH5lIS1dSowjgtEeVwEDBBbSHgzABa5CaU8BCzLfrgz0WsNZ2yxInuXfU+CHkD5H5KPM/QmunMDREh3NsWWUuTAzZJbYdASJ29gXRimw97BIVOiOJeQ+SjfrcGPYd1doTChxkd6H+8dZ+Ps5Wk50ZYG/PEdXTsBFHQI2gsSww/C2IhBIZOlSps6nzazpXz37uM4M/XdY7zitD5PeMxF4LfCLuD7AUuhkYbqyCH48R9FbBPaROMKRazCKwCAwV2pAwqIj6U7ggozpyPPXgxJLm32KH+3uyDPdd2GZuYWogJ/G9Rs03MIyGkdL4tGJxRhxerIpGLLTkbiGQEndQxI0QhEz8VqSXFGSGwTZuSqSTUgsfRgTK0OKLSpXeh/Sb+HaY9GIkwU6mhvu68+cAttZWEDjhRqfB4KkIBtovuspB7cNpn9+9Xr7OysBA8wwTMiEIb0L168wX0w5WVQcz9F8YSanp/RPHVvYRKKFfYMrI9EekNTXSgaYrif6doNNPWiRn6F/DhP75vpeXD9C49Ear1k0KIkrAO0i4gNs5nMD3N1wF/BMunV477gNf1PCGKIPTPpxi/4E7tGWEYtJCkqyVqlsgZaFNwrLZAcGEgLX4CagwKuHJO8vm+vnLUpEhyYmx+EUxBXYqkSUbEAz16tx3X1te39TgHCh6N+pJr7Loot5Q/Ad7JcMLQILxgeYd4EbEJ4ot12ty3OzgplJyVT7CUWv5Y430fAiB7dDYBvrAkFI0hMUU2Lt/o6IdyX7mwSSmhUN4JLeGqIusYyiicXzKrBxYJ0MtHV5FhJ5A9xDsEVqanhTUiIBsyp/7obEIip2sfavB1gym4ut0ij6ocf4HUiVOTiGpFVTaTA4mVGDZ6QYJAMZooMLP15AdBH0dnPZqj1rSvgfIi1gBlLc2HlJKbik0rPrSbmrcY8OzMyEB4Qb7hyfvLvam34MsJh7NsLFBkghXavXLyWEyCNEgVSTojC1mSm3Z13nhnrIe7gYM3GKfYnHNB1l8mTnotHbSTOzzKcBk0mYgj1Ps9yXpougXgxqrJ0s4uqWJYtyKP5fzAOFS8DFkTba5lcM7O6GEvm1vnMeQUuIC8wTpRc8nwcCh5ItWD2bSlalLobwkJaLKJ95RxyWwnmhZelBE4kCx+SWWgS+iSHvbnDh0guDul/D5hLbEpcwP4JmjmIDvhwZ2XmAYVTEuIftHWB17UzqfZp4UeZftRBMdZC5WuJqNXYbKlhlYehMl2RAA7yezT5zQZclxydmZZJYZQ0nMcLyBBZH0CzSBJmvtXZ+IGx5ArGRTyaYHUi33zKzO2+pONwH96iFwzJLxGJg95Rfhxj1RuyeWNiFpdzDepgIVJBFb+hrrl7fvjSHlupihzyFdHC+hyxH3Jsl4ejI7BvfND1w+Wd0352Pc9uFhr0JXNiDvUkKb4VO3BU3r4fAgjy1Wjhj+s09xLWIzPJqwKktZkdsRVlICio2aYL6ExaUxMh5H5D6Qg69L+YVd178YWaTFzStf5a9ibgwgYv7sD/FqgBVaJEo64KVRcqnBIHLiG64YWplYB9PBpgbhWXXhKh67KnQdVjEId7NEvUFGwavrvdBtjZyuLWaTYIqg0k1RU2N8ZMczP6L/embOJjBwQzNJhDMqILJMIJZXwYaEuag6AGpxnWnpDtGrd2EkOBAIuSClKH6SHorJGQWymufr9LUhNBv85xARatiwppvXIFX3QZghFZrPIjx50zD+2D2hyQSg+NFQqQXJaLMQsJaO20Zl0gPt3nhlbebi86OTh7eZhZOXNqitiCqIE+np2auOXgx5mVCKXT3yAMZF1XBiZAOQB9nWv0gzH4n9VvGydIwhbqN1RaR5HmkLiE9C6MGcSK/9EA6YRWseh8KLVal2FJfQnjPKrLu2rlBLguQ5f5Ma3jVHWlCW2tPpPR7MCz+MtPqX2H2YmviLZrB1Ge14Ebj2TnmyT7yTjN0N6EgkKO8Wq7HeUtnShT9PI8ycDPs9otw6RBCVU6Cl4l1IbsVmj9iEu4rMpG9iUJf7ljBgrtwVeZ6vB1nTxF0Y49bgwHZvO88EC9mi2gZuj+Ya02F7eSMHH1YNPhr74e6GloH/XZwkN2LxY8yrTwhcNpSYMltiJIPkG4BHtlk13XgvWvV4IqyeIDsgcRmnc2HjW++djVwmgnT7+fD9wGhtWiKGUdx3yQHr5A9B837mVbiwkyDnGvxUPKD9wJrUWgfGeMYkgv1hTJHEuYRtDk6cu6Q5Bh68mGYzTrq9B6VKjunJfwC+xB+DvxeJtW06FFIiEvxluTCXQamuyRWwDeycjJTI8QG+SkUeB4wcAfAZlN47MEOcd4X+mXyQ3pKISblyl2I94LPS4laMobMRHSCI8SzpJKITHWDvP0I+CAGmNhXqbcuiIvkwrWzfH42n7Vx0b75ZLBYorc+AWHSu7u4euVh652nxkwQhFXfQwqotko7a2GZpEPgjcOWXgHIoZn3lEg4F6M5+aqBSAreyugozCo43Ie7Lyd/d0V+j1StqB/AB96CwtMDLdyG2KVvAY+sduaqwXMQ4dyhEz8pxhkBg7qGxRKeegwOL6wjL4wrm7bRBBeAbwut8JKlKKvkSrx4Pz0j46y5i85+zOzb/jxPr0M4SmVqRucyLpbYG5+kevCB9ZrA5JGd3nA6vr115UwJSeYyXI8J7mG70Nv+hk2Td06ib0B5lt9dvj/8APWzjxPL70IcYSPyNqH0zW0wQZLMRYjIV9j3FYPHITuoypGa6+e+DQOeiR0lYfdcZvLON6c3h96Etu7bKPT1RP/z9i6YIKFGeBOR9HqwE7py2VcAsYyo1xdWznHdlIokQl1h0yncckh4x1uIFtY55OxzacBtoTxsLqzJ9pzr7ebaK3eGqyQUa+0q76RGMVK95/+eirwtQb1yR2lj5ZIEOonYpYvU73gLmtVt4aT32Xfzi/ug1Wt1icIkLZVjdoRH11sOhIyInfCZcwdWv5xTpDnL1feLzaDukvHrcnMFSUVOa/V69rRseA4M7riEP3I//tgjaH+G5svM3jspi9XOtF57/v21OgfzJFcSEi4z52GSAinzqaCz57/NDJZLWCzARQiBaAAVhIDldRptsnnDgERokZe6M/R8Ur6l90AVksY9PIS3PYvdfRdIxPmiQ8UZhtF2Y11SvlRn28+IYI2waI8JTVtpOcJetmI7jkHL9qHG9qaoJNJbUVi0pLdd3BQ665DXk/lZKbR9MBJVVxXccSs8+hDh/lfDbC9xWKH4axPxKd34z7p/Rk1E7k+1aF7F3hlsuHZwX3kptR867yM5BMKKlZS9g8HQVn60ZDAoF+iZH3sT7J674aH7CK+6C59MUrVpswTrAhr08rxtScvpAY412Zc/P9PlRFzKacwncibeBkSwUmWwCxigaZ0UVI+KEvL6psZG3k3eUW/AFkIXRQ417E0ID94DD92H3XYrqgMel6hZjLhndF7GtYFPdBSYfGCX9FiRKP25vhqQhC1jmwpURlwIgVBXSDWxWWzkKpEoxjyivRkcHqBLh3DxAtqfwWxGdfkOONhP9wfHi789YFd1SCvn27zMmXyFvi32ZeCTdZEl2ZA2wetknUOzqe5lJwhCj74O7rkN3XUr7M9QCChk5vWYtXovW7feSBYn6fsAEYC3Y+py2eW5nsDsoeDMMlAbPv8AOKmBKdHnil546hmS9TtaP72K0L4wH4WnH0qJabPkzHvOt1ihghIdWZmk5Crka/2T+f5c/FTNZrg7UkClvdMM9LNQ37risfQyfh+oandvcKBxgOcwm5If2UR3u1ClzAl3X0K3Xchte2cUued0Zo9a1jq+8eWd8W1GE5sebWxC3sgE70KJ62MsweYvEP1PidFrJG/LOaS7y9ty1j593fCuEhPdeH1SDSO80P324sifPo4hrNh8q+3vIm52ZePV+1wGBFwfpIkNTbSaXKNH9AA8SUireWRrBuTOUJaQcjAbIkgaRjyuiUl2rmDAf+P+SzZvqpQXLusjXBG355F2Wn0kiaBSF1RIdeXBi3sdWxVKSX7jNR3VOUEE5hb9+20ZjUUDi4aAZL0U3huLV5X+DqT3ADbJQDPr0h2Heyu5YFZk1Csc0vWH/rgnwIdp/DM6WaL5Ulo2BCJF/u0j7gcKrwNb/FMNK+wLQj0buUwqmJ62JQM3MxJ79hEy8UWi/xTzZcXJApooXAq5BgZcr6FbpAw7DG2bJg4Hs4TE8Qd3HcT1hF3liANflvRumugsGrNlXg7mUjBXShyI++yMeyH0KXA1S6nDHE7chqyeWXdOIIZvTd/NRLBuaXYHBpyY+D5cnyf6RPNlVPRSpW+pUjAKc3sXUBktZTXWmQgbsdD6s+qxL6BbD67RmK8JbJ6qfihsKPPL3jTfreh/w8lCfPO4oYn08EKt6ITGcenh8mRuprJUln723hpJgbQWv65lKOnM3dlyLvuxg/PFOv2iie9SEz/PycJ4+QTmS6wZMmmoFhGWAniqlHHI8qYq6rzQjb1bUSap1ZBtwBuucbXyvR8M6JvxS8o6DVfA9Ulc71ETP8/xAl4+MY4Xa8gDqLVsTNLUzF4jiGYW1MbJtlNMia60oalCcbM6KZC+419uvDGwaSAGNEhTUk3Q14EPIn2I6A3HC7PjBTpeyFY9ngw1TQxg9wB7yYZzARY0vtRjFwj7s/HSlzHXrY/46wenOO4I15+Y9KM0/m800TheoKO5egqju7vXZo0bBs9gJrVefVhnyy29KtSX6qAFB9Otz50jlClbZd0OXH+B68Mm/bGW0ZgvjeOF2aLJy14Hd6+KBKtJvP+81hvf6gMX9oWseft5kj4CW993RZG0imXbW14BDGOAq379/wG/Z+J3JX3CJDhZwnwpjhdGEyXXNuS15+pMaa8r9kcpiNTwoVMVycCornsGdFsNBW1pRQlHbWkSsBwHahd5txVWu0CZqNSxrwB/b+KvgT8DPgMcAXssGnSyhJMlNl/CMp5pSuu8O8WzSGfagKP/Buvhpaoq4h0XSWtAjG45l60wwErsLp8d+S7gJVy/KXiRqCtmNpENtt8L6YUYaXO0b5nZy8CxuT4bXF+16G6NoyZa3lzCFP2kOTpOzDFObVsCiglqMzuUdG9bpdo9WHT29g3KbJguVhWwqkSH+xdG4naFtbcrK5l4j1wvWHRTimESzBpJVe6nSQPajMrvVHS88W71QXRl37+tjthCOafSVC24LDgoBged0L0qyWT7U0TCuq9WP63dPN7FdkDpuY9Z9BeYLyudLN2iR1zmUshGKFBKE1Zal2jjne1Obu31Actdbe6nBt5gZutLz4ewhtDRhDvgh7M2T9Lah9taDaPz33Oy9aIvmpqTpXOyMCVq6pfjpQfWF0OXC628TWkY05gcvdrEWS3pHTDYkdJyg5IUGKERM2sxmr73NPKFvS6Pexrkwvd2AbO11NepGulFxRhtGYOWMdVw5yRiKwTUCvB+Xzum6l1TpsLN9Thng5q0B+kqSIU1VmBQ1sE6n+sV2IBWEJO1ryRDeglR4x7JRu2KhUDa/yD1ude/rfLrqjyEEajN7OEd2hudp9X6FDNrZeCOkGYpU15RBD2FcGTiUynd0LWazZkyf63EvBH71tTAQ0BDt6Pvqgpf61WLuBX5JsCnNRZMreyTTt3taIMWPDHxBaWUgxTdwtC3NDOTnypoz/zeM0Ews78zs0XeIs6tA5XozOqRe5/zQ5I3S5yIHrwdaiQiaUGNw1Vs0pjfUwGflbRU3sO1XxtoG5Ot5wu1mb0V+AHgnSQqnJCUyqhmXs2DSHFBHSbhYC/4wfQNBHuy2xAIbTGIBggYKV6qgX+nLfzscv39LWYG65BH4HqjuY4TBPx2PvrW/5hv3J7qSmpnzsEUv3RwwK0HHwSezLfpVEsyiwGt6CMZaRmp8bcaGrrrrotGrZJzg9ruPIT1SbTesW2Cpbo2btkXt104Yn/6zMi6i53Hl220trTJ0T8V1kXj83Fqbc51hlr7o6nHHXsUUury9kPj0oGQnk610OTahrPRRrc8Nvm0Jv4n7aKeTRfvjOKbBWrSerm0DqtEPzrwzW5Yj8OntQh2iahLmEXcdyllHXgOWSm1ml/Sf+B+hWU0i+0ucjcd1Jj115+uy7zTZty9JObfnmXaWSjPiiun/ruSo/+PWkasiXjTrbMbpA5uAqgZbne5Zoz2ZfRg+RR0OlqCZXyEUle46yC7+sCC9MIBUdIXLDoqkRMGrl7bPV8/d65Qm1UaMSGAgijT6rWWUMzMDvbSfe7PvSLKGCK9Al7IKyxT51LVWMsjg9rpGwg7FK/AmmQsECzt5lOFCWYP0FHSWaCThcMS/C92d1iKCVi3fKJUh53juu1RaDfiNnVHH7axh5mlAvIqHJL+08MZh7PWeNEUc5IR3fkxecOvPsK85YSzvfVaQruYYVMnxs4PWGdSGVW4Hbi8gfo2TIFWv3TU5/pfk75OWj3VGdgrFkGhxhsqA8uXNsY3QoGyLvYHOWQdzCwEqC2A7scsYPId/I9tUNTSP+MyNiSz+4pjU8L7vCBAh5ixrFf/dy/Ckp/OLGyW3LfNyNs0ypEAKA58Wu6p/Lilz+7WUhV7Iz2Qti/9H6fJkhJGD1iKhgQTITjGm66S7kZ8bYTrH9L2eyp72Fy7COg1hjWPYXUNyKbrMlBageSYPbR62ym/x6B/z5dwOT0bsA9uVx0CvOZwqsu1uvFO32YMZRMH8RzrCZ2+SbJttKvIPTHp00SPXX31ygM3WO71YRSBOwVQQrsd5oNI9Qb5t4sDO5SDrhfzDpphTYmMJ+NvKAwQuGvkKf1/grRyklTF+VK+pJXP02B4v9kVM/uEyv8wyVsG5O1YRu3UGw2jFLhNvuSNjyj/zM7EEfBjJM+h316f+rbNTGH3bwG/AHygrRrt++E3GeIK/D/1R7dpRZ4HDAAAAABJRU5ErkJggg==",am="_antistockLogoWrapper_ax6a6_1",sm="_applePayGooglePay_ax6a6_13",im="_debitCreditCard_ax6a6_20",om="_cryptocurrency_ax6a6_27",ha={antistockLogoWrapper:am,applePayGooglePay:sm,debitCreditCard:im,cryptocurrency:om},cm="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%20-34.55%20120.3%20120.3'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.8%206.6c1.4-1.8%202.4-4.2%202.1-6.6-2.1.1-4.6%201.4-6.1%203.1-1.3%201.5-2.5%204-2.2%206.3%202.4.3%204.7-1%206.2-2.8M24.9%2010c-3.4-.2-6.3%201.9-7.9%201.9-1.6%200-4.1-1.8-6.8-1.8-3.5.1-6.7%202-8.5%205.2-3.6%206.3-1%2015.6%202.6%2020.7%201.7%202.5%203.8%205.3%206.5%205.2%202.6-.1%203.6-1.7%206.7-1.7s4%201.7%206.8%201.6%204.6-2.5%206.3-5.1c2-2.9%202.8-5.7%202.8-5.8-.1-.1-5.5-2.1-5.5-8.3-.1-5.2%204.2-7.7%204.4-7.8-2.3-3.6-6.1-4-7.4-4.1'/%3e%3cg%3e%3cpath%20d='M54.3%202.9c7.4%200%2012.5%205.1%2012.5%2012.4%200%207.4-5.2%2012.5-12.7%2012.5H46v12.9h-5.9V2.9h14.2zm-8.3%2020h6.7c5.1%200%208-2.8%208-7.5%200-4.8-2.9-7.5-8-7.5h-6.8v15h.1zM68.3%2033c0-4.8%203.7-7.8%2010.3-8.2l7.6-.4v-2.1c0-3.1-2.1-4.9-5.5-4.9-3.3%200-5.3%201.6-5.8%204h-5.4c.3-5%204.6-8.7%2011.4-8.7%206.7%200%2011%203.5%2011%209.1v19h-5.4v-4.5h-.1c-1.6%203.1-5.1%205-8.7%205-5.6%200-9.4-3.4-9.4-8.3zm17.9-2.5v-2.2l-6.8.4c-3.4.2-5.3%201.7-5.3%204.1%200%202.4%202%204%205%204%204%200%207.1-2.7%207.1-6.3zM96.9%2051v-4.6c.4.1%201.4.1%201.8.1%202.6%200%204-1.1%204.9-3.9%200-.1.5-1.7.5-1.7l-10-27.6h6.1l7%2022.5h.1l7-22.5h6L110%2042.4c-2.4%206.7-5.1%208.8-10.8%208.8-.4-.1-1.8-.1-2.3-.2z'/%3e%3c/g%3e%3c/svg%3e",lm=()=>i.jsx("svg",{width:"22",height:"21",viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M20.9852 9.72294L16.7571 13.4129L18.0236 18.9067C18.0906 19.1939 18.0715 19.4945 17.9686 19.7709C17.8658 20.0472 17.6837 20.2872 17.4452 20.4606C17.2067 20.6341 16.9223 20.7334 16.6277 20.7462C16.3331 20.7589 16.0412 20.6845 15.7886 20.5323L10.9971 17.6261L6.2158 20.5323C5.96321 20.6845 5.67135 20.7589 5.37671 20.7462C5.08208 20.7334 4.79773 20.6341 4.55923 20.4606C4.32074 20.2872 4.13866 20.0472 4.03578 19.7709C3.9329 19.4945 3.91378 19.1939 3.9808 18.9067L5.24549 13.4186L1.01643 9.72294C0.792748 9.53002 0.631004 9.27536 0.55148 8.99089C0.471955 8.70642 0.478189 8.4048 0.569401 8.12385C0.660612 7.84291 0.832741 7.59515 1.0642 7.41164C1.29566 7.22813 1.57615 7.11705 1.87049 7.09231L7.44486 6.6095L9.6208 1.4195C9.73443 1.14717 9.9261 0.914551 10.1717 0.750929C10.4172 0.587308 10.7057 0.5 11.0008 0.5C11.2959 0.5 11.5844 0.587308 11.8299 0.750929C12.0755 0.914551 12.2672 1.14717 12.3808 1.4195L14.5633 6.6095L20.1358 7.09231C20.4301 7.11705 20.7106 7.22813 20.9421 7.41164C21.1736 7.59515 21.3457 7.84291 21.4369 8.12385C21.5281 8.4048 21.5343 8.70642 21.4548 8.99089C21.3753 9.27536 21.2135 9.53002 20.9899 9.72294H20.9852Z",fill:"currentColor"})}),Wl=({isAntistock:e=!1})=>e?i.jsxs("div",{className:ha.cryptocurrency,children:[i.jsx(Kt,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9656 10.3538C18.2402 8.58846 16.8424 7.63956 14.9309 7.00654L15.551 4.6153L14.0371 4.2526L13.4335 6.58088C13.0355 6.48543 12.6267 6.3955 12.2205 6.30635L12.8285 3.9627L11.3155 3.6L10.6951 5.99046C10.3657 5.91836 10.0422 5.8471 9.7284 5.77202L9.73015 5.7645L7.64241 5.26323L7.23968 6.81792C7.23968 6.81792 8.36289 7.06548 8.33922 7.08071C8.95228 7.22783 9.06315 7.61803 9.04474 7.92731L8.33841 10.6515C8.38063 10.6618 8.43538 10.6767 8.49581 10.7001L8.45182 10.6895C8.41447 10.6805 8.37564 10.6712 8.33578 10.662L7.34575 14.4782C7.27083 14.6573 7.08066 14.926 6.65204 14.824C6.66721 14.8451 5.55169 14.5599 5.55169 14.5599L4.80005 16.2262L6.77019 16.6984C6.98594 16.7504 7.19915 16.8038 7.41019 16.8567C7.55766 16.8937 7.70408 16.9304 7.84957 16.9662L7.22309 19.3848L8.73527 19.7475L9.35568 17.3545C9.76879 17.4624 10.1697 17.5618 10.5622 17.6556L9.94386 20.0373L11.4579 20.4L12.0843 17.9859C14.6659 18.4556 16.607 18.2662 17.4241 16.0211C18.0824 14.2136 17.3913 13.171 16.0331 12.4911C17.0223 12.2717 17.7674 11.6462 17.9661 10.3539L17.9656 10.3536L17.9656 10.3538ZM14.5079 15.0208C14.0786 16.6792 11.3788 15.9936 10.1436 15.6799C10.0325 15.6517 9.93318 15.6265 9.84849 15.6063L10.6798 12.402C10.7831 12.4267 10.9092 12.4539 11.0521 12.4848L11.0521 12.4848C12.3298 12.7605 14.9477 13.3254 14.508 15.0208H14.5079ZM11.3014 10.9928C12.3312 11.2571 14.5778 11.8336 14.9691 10.3263H14.9692C15.3688 8.78475 13.1854 8.31998 12.1191 8.09299C11.9992 8.06746 11.8933 8.04493 11.8069 8.02422L11.0532 10.9303C11.1243 10.9474 11.2078 10.9688 11.3014 10.9928Z",fill:"#F7931A"})})}),i.jsx(Kt,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M11.3837 16.4017C13.6027 16.4483 15.781 16.4937 18 16.5857C17.9187 16.9525 17.8362 17.2727 17.7956 17.5941C17.6712 18.0529 17.5481 18.4664 17.4668 18.9252C17.4249 19.1546 17.3424 19.2 17.138 19.2H6.53438C6.90513 17.5941 7.27452 16.0815 7.64386 14.4756C7.06883 14.705 6.57507 14.9344 6 15.2092C6.16497 14.5223 6.32877 13.9261 6.53438 13.2832C6.53438 13.1924 6.65762 13.1458 6.74007 13.1458C7.11071 12.963 7.52084 12.8243 7.89018 12.6403C8.01344 12.5962 8.13773 12.4588 8.13773 12.3201L9.86171 5.16681C9.90358 4.89203 9.98489 4.8 10.273 4.8H14.0128C13.5608 6.67939 13.1495 8.56137 12.6976 10.5328C13.3552 10.2126 13.9721 9.93657 14.6703 9.66179C14.5878 10.0286 14.4647 10.3487 14.424 10.6702C14.3415 11.4051 13.9721 11.8172 13.3145 12.0013C13.0276 12.092 12.7383 12.2294 12.4513 12.3681C12.3494 12.436 12.2648 12.5305 12.205 12.6429C11.9169 13.8807 11.6288 15.0731 11.3825 16.3109V16.403L11.3837 16.4017Z",fill:"#345D9D"})})}),i.jsx(Kt,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsx("path",{d:"M19.9946 3.6L19.8636 3.98284V15.0909L19.9946 15.2034L25.9879 12.1555L19.9946 3.6Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M19.9946 3.6L14 12.1555L19.9946 15.2034L19.9934 9.81181L19.9946 3.6Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M19.9948 16.1802L19.9209 16.2577V20.2146L19.9948 20.4L25.9917 13.134L19.9948 16.1802Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M19.9948 20.4V16.1802L14 13.134L19.9948 20.4Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M20.0067 15.2052L26 12.1574L20.0067 9.81369V15.2052Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M14 12.1555L19.9934 15.2044V9.81181L14 12.1555Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}})]})}),i.jsx(Kt,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M7.4623 17V13.962H4.6763V12.898H7.4623V9.846H8.5123V12.898H11.2843V13.962H8.5123V17H7.4623ZM16.3943 17.168C15.6476 17.168 15.0176 17.056 14.5043 16.832C13.991 16.5987 13.6036 16.272 13.3423 15.852C13.081 15.432 12.9503 14.9327 12.9503 14.354V14.172H14.1963V14.354C14.1963 14.9327 14.3783 15.376 14.7423 15.684C15.1156 15.9827 15.629 16.132 16.2823 16.132C16.9356 16.132 17.463 15.992 17.8643 15.712C18.2656 15.4227 18.4663 14.9653 18.4663 14.34C18.4663 13.8827 18.359 13.5327 18.1443 13.29C17.9296 13.0473 17.6496 12.8793 17.3043 12.786C16.9683 12.6833 16.609 12.632 16.2263 12.632H15.2183V11.596H16.2683C16.623 11.596 16.9496 11.54 17.2483 11.428C17.547 11.316 17.785 11.134 17.9623 10.882C18.149 10.6207 18.2423 10.2847 18.2423 9.874C18.2423 9.50067 18.1583 9.19733 17.9903 8.964C17.8316 8.73067 17.6123 8.558 17.3323 8.446C17.0523 8.32467 16.7443 8.264 16.4083 8.264C16.035 8.264 15.699 8.32933 15.4003 8.46C15.1016 8.58133 14.8636 8.768 14.6863 9.02C14.5183 9.272 14.4343 9.58933 14.4343 9.972V10.154H13.1743V9.902C13.1743 9.37 13.3096 8.90333 13.5803 8.502C13.8603 8.10067 14.2383 7.788 14.7143 7.564C15.1996 7.34 15.755 7.228 16.3803 7.228C16.9963 7.228 17.5376 7.326 18.0043 7.522C18.4803 7.718 18.8536 8.00733 19.1243 8.39C19.395 8.77267 19.5303 9.244 19.5303 9.804C19.5303 10.2147 19.4556 10.5647 19.3063 10.854C19.157 11.134 18.961 11.3673 18.7183 11.554C18.4756 11.7407 18.2143 11.8947 17.9343 12.016V12.072C18.4476 12.2213 18.877 12.492 19.2223 12.884C19.5676 13.276 19.7403 13.7893 19.7403 14.424C19.7403 14.9933 19.5956 15.4833 19.3063 15.894C19.0263 16.3047 18.6296 16.622 18.1163 16.846C17.6123 17.0607 17.0383 17.168 16.3943 17.168Z",fill:"#757575"})})})]}):i.jsxs("svg",{width:"72",height:"24",viewBox:"0 0 72 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsxs("g",{clipPath:"url(#clip0_1466_4561)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9656 10.3538C18.2402 8.58846 16.8424 7.63956 14.9309 7.00654L15.551 4.6153L14.0371 4.2526L13.4335 6.58088C13.0355 6.48543 12.6267 6.3955 12.2205 6.30635L12.8285 3.9627L11.3155 3.6L10.6951 5.99046C10.3657 5.91836 10.0422 5.8471 9.7284 5.77202L9.73015 5.7645L7.64241 5.26323L7.23968 6.81792C7.23968 6.81792 8.36289 7.06548 8.33922 7.08071C8.95228 7.22783 9.06315 7.61803 9.04474 7.92731L8.33841 10.6515C8.38063 10.6618 8.43538 10.6767 8.49581 10.7001L8.45182 10.6895C8.41447 10.6805 8.37564 10.6712 8.33578 10.662L7.34575 14.4782C7.27083 14.6573 7.08066 14.926 6.65204 14.824C6.66721 14.8451 5.55169 14.5599 5.55169 14.5599L4.80005 16.2262L6.77019 16.6984C6.98594 16.7504 7.19915 16.8038 7.41019 16.8567C7.55766 16.8937 7.70408 16.9304 7.84957 16.9662L7.22309 19.3848L8.73527 19.7475L9.35568 17.3545C9.76879 17.4624 10.1697 17.5618 10.5622 17.6556L9.94386 20.0373L11.4579 20.4L12.0843 17.9859C14.6659 18.4556 16.607 18.2662 17.4241 16.0211C18.0824 14.2136 17.3913 13.171 16.0331 12.4911C17.0223 12.2717 17.7674 11.6462 17.9661 10.3539L17.9656 10.3536L17.9656 10.3538ZM14.5079 15.0208C14.0786 16.6792 11.3788 15.9936 10.1436 15.6799C10.0325 15.6517 9.93318 15.6265 9.84849 15.6063L10.6798 12.402C10.7831 12.4267 10.9092 12.4539 11.0521 12.4848L11.0521 12.4848C12.3298 12.7605 14.9477 13.3254 14.508 15.0208H14.5079ZM11.3014 10.9928C12.3312 11.2571 14.5778 11.8336 14.9691 10.3263H14.9692C15.3688 8.78475 13.1854 8.31998 12.1191 8.09299C11.9992 8.06746 11.8933 8.04493 11.8069 8.02422L11.0532 10.9303C11.1243 10.9474 11.2078 10.9688 11.3014 10.9928Z",fill:"#F7931A"})]}),i.jsxs("g",{clipPath:"url(#clip1_1466_4561)",children:[i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M27.3837 16.4017C29.6027 16.4483 31.781 16.4937 34 16.5857C33.9187 16.9525 33.8362 17.2727 33.7956 17.5941C33.6712 18.0529 33.5481 18.4664 33.4668 18.9252C33.4249 19.1546 33.3424 19.2 33.138 19.2H22.5344C22.9051 17.5941 23.2745 16.0815 23.6439 14.4756C23.0688 14.705 22.5751 14.9344 22 15.2092C22.165 14.5223 22.3288 13.9261 22.5344 13.2832C22.5344 13.1924 22.6576 13.1458 22.7401 13.1458C23.1107 12.963 23.5208 12.8243 23.8902 12.6403C24.0134 12.5962 24.1377 12.4588 24.1377 12.3201L25.8617 5.16681C25.9036 4.89203 25.9849 4.8 26.273 4.8H30.0128C29.5608 6.67939 29.1495 8.56137 28.6976 10.5328C29.3552 10.2126 29.9721 9.93657 30.6703 9.66179C30.5878 10.0286 30.4647 10.3487 30.424 10.6702C30.3415 11.4051 29.9721 11.8172 29.3145 12.0013C29.0276 12.092 28.7383 12.2294 28.4513 12.3681C28.3494 12.436 28.2648 12.5305 28.205 12.6429C27.9169 13.8807 27.6288 15.0731 27.3825 16.3109V16.403L27.3837 16.4017Z",fill:"#345D9D"})]}),i.jsxs("g",{clipPath:"url(#clip2_1466_4561)",children:[i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M43.9946 3.59961L43.8636 3.98245V15.0905L43.9946 15.203L49.9879 12.1551L43.9946 3.59961Z",fill:"#252525"}),i.jsx("path",{d:"M43.9946 3.59961L38 12.1551L43.9946 15.203L43.9934 9.81142L43.9946 3.59961Z",fill:"#252525"}),i.jsx("path",{d:"M43.9948 16.1798L43.9209 16.2573V20.2142L43.9948 20.3996L49.9917 13.1336L43.9948 16.1798Z",fill:"#252525"}),i.jsx("path",{d:"M43.9948 20.3996V16.1798L38 13.1336L43.9948 20.3996Z",fill:"#252525"}),i.jsx("path",{d:"M44.0067 15.2049L50 12.157L44.0067 9.8133V15.2049Z",fill:"#252525"}),i.jsx("path",{d:"M38 12.1551L43.9934 15.204V9.81142L38 12.1551Z",fill:"#252525"})]}),i.jsx("rect",{x:"48",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("rect",{x:"48",width:"24",height:"24",rx:"12",stroke:"#F0F0F0"}),i.jsx("path",{d:"M55.4623 17V13.962H52.6763V12.898H55.4623V9.846H56.5123V12.898H59.2843V13.962H56.5123V17H55.4623ZM64.3943 17.168C63.6476 17.168 63.0176 17.056 62.5043 16.832C61.991 16.5987 61.6036 16.272 61.3423 15.852C61.081 15.432 60.9503 14.9327 60.9503 14.354V14.172H62.1963V14.354C62.1963 14.9327 62.3783 15.376 62.7423 15.684C63.1156 15.9827 63.629 16.132 64.2823 16.132C64.9356 16.132 65.463 15.992 65.8643 15.712C66.2656 15.4227 66.4663 14.9653 66.4663 14.34C66.4663 13.8827 66.359 13.5327 66.1443 13.29C65.9296 13.0473 65.6496 12.8793 65.3043 12.786C64.9683 12.6833 64.609 12.632 64.2263 12.632H63.2183V11.596H64.2683C64.623 11.596 64.9496 11.54 65.2483 11.428C65.547 11.316 65.785 11.134 65.9623 10.882C66.149 10.6207 66.2423 10.2847 66.2423 9.874C66.2423 9.50067 66.1583 9.19733 65.9903 8.964C65.8316 8.73067 65.6123 8.558 65.3323 8.446C65.0523 8.32467 64.7443 8.264 64.4083 8.264C64.035 8.264 63.699 8.32933 63.4003 8.46C63.1016 8.58133 62.8636 8.768 62.6863 9.02C62.5183 9.272 62.4343 9.58933 62.4343 9.972V10.154H61.1743V9.902C61.1743 9.37 61.3096 8.90333 61.5803 8.502C61.8603 8.10067 62.2383 7.788 62.7143 7.564C63.1996 7.34 63.755 7.228 64.3803 7.228C64.9963 7.228 65.5376 7.326 66.0043 7.522C66.4803 7.718 66.8536 8.00733 67.1243 8.39C67.395 8.77267 67.5303 9.244 67.5303 9.804C67.5303 10.2147 67.4556 10.5647 67.3063 10.854C67.157 11.134 66.961 11.3673 66.7183 11.554C66.4756 11.7407 66.2143 11.8947 65.9343 12.016V12.072C66.4476 12.2213 66.877 12.492 67.2223 12.884C67.5676 13.276 67.7403 13.7893 67.7403 14.424C67.7403 14.9933 67.5956 15.4833 67.3063 15.894C67.0263 16.3047 66.6296 16.622 66.1163 16.846C65.6123 17.0607 65.0383 17.168 64.3943 17.168Z",fill:"#757575"}),i.jsxs("defs",{children:[i.jsx("clipPath",{id:"clip0_1466_4561",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip1_1466_4561",children:i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip2_1466_4561",children:i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"white"})})]})]}),Yl=()=>i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9656 10.3538C18.2402 8.58846 16.8424 7.63956 14.9309 7.00654L15.551 4.6153L14.0371 4.2526L13.4335 6.58088C13.0355 6.48543 12.6267 6.3955 12.2205 6.30635L12.8285 3.9627L11.3155 3.6L10.6951 5.99046C10.3657 5.91836 10.0422 5.8471 9.7284 5.77202L9.73015 5.7645L7.64241 5.26323L7.23968 6.81792C7.23968 6.81792 8.36289 7.06548 8.33922 7.08071C8.95228 7.22783 9.06315 7.61803 9.04474 7.92731L8.33841 10.6515C8.38063 10.6618 8.43538 10.6767 8.49581 10.7001L8.45182 10.6895C8.41447 10.6805 8.37564 10.6712 8.33578 10.662L7.34575 14.4782C7.27083 14.6573 7.08066 14.926 6.65204 14.824C6.66721 14.8451 5.55169 14.5599 5.55169 14.5599L4.80005 16.2262L6.77019 16.6984C6.98594 16.7504 7.19915 16.8038 7.41019 16.8567C7.55766 16.8937 7.70408 16.9304 7.84957 16.9662L7.22309 19.3848L8.73527 19.7475L9.35568 17.3545C9.76879 17.4624 10.1697 17.5618 10.5622 17.6556L9.94386 20.0373L11.4579 20.4L12.0843 17.9859C14.6659 18.4556 16.607 18.2662 17.4241 16.0211C18.0824 14.2136 17.3913 13.171 16.0331 12.4911C17.0223 12.2717 17.7674 11.6462 17.9661 10.3539L17.9656 10.3536L17.9656 10.3538ZM14.5079 15.0208C14.0786 16.6792 11.3788 15.9936 10.1436 15.6799C10.0325 15.6517 9.93318 15.6265 9.84849 15.6063L10.6798 12.402C10.7831 12.4267 10.9092 12.4539 11.0521 12.4848L11.0521 12.4848C12.3298 12.7605 14.9477 13.3254 14.508 15.0208H14.5079ZM11.3014 10.9928C12.3312 11.2571 14.5778 11.8336 14.9691 10.3263H14.9692C15.3688 8.78475 13.1854 8.31998 12.1191 8.09299C11.9992 8.06746 11.8933 8.04493 11.8069 8.02422L11.0532 10.9303C11.1243 10.9474 11.2078 10.9688 11.3014 10.9928Z",fill:"#F7931A"})}),Gl=({isAntistock:e=!1})=>e?i.jsxs("div",{className:ha.debitCreditCard,children:[i.jsx(Kt,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M12.371 10.7018C12.3586 11.7047 13.2368 12.2645 13.8984 12.5972C14.5782 12.9387 14.8065 13.1576 14.8039 13.4629C14.7987 13.9302 14.2616 14.1364 13.759 14.1445C12.8821 14.1585 12.3722 13.9001 11.9669 13.7046L11.651 15.2304C12.0577 15.4239 12.8107 15.5926 13.5916 15.6C15.4246 15.6 16.6239 14.666 16.6304 13.2179C16.6375 11.38 14.1676 11.2783 14.1845 10.4568C14.1903 10.2077 14.4206 9.9419 14.9252 9.87428C15.1749 9.84013 15.8644 9.81402 16.6459 10.1856L16.9527 8.70932C16.5324 8.55131 15.9921 8.4 15.3195 8.4C13.5942 8.4 12.3807 9.3467 12.371 10.7018ZM19.9007 8.52721C19.566 8.52721 19.2838 8.72873 19.158 9.03805L16.5396 15.4915H18.3712L18.7358 14.4518H20.9741L21.1856 15.4915H22.7999L21.3912 8.52721H19.9007ZM20.1569 10.4086L20.6855 13.0237H19.2378L20.1569 10.4086ZM10.1501 8.52721L8.70631 15.4915H10.4517L11.8949 8.52721H10.1501ZM7.568 8.52721L5.75124 13.2674L5.01637 9.2369C4.93011 8.78698 4.58959 8.52721 4.21145 8.52721H1.24147L1.19995 8.7294C1.80964 8.86598 2.50236 9.08626 2.92201 9.32193C3.17886 9.46587 3.25215 9.59174 3.33647 9.93386L4.72839 15.4915H6.57303L9.40097 8.52721H7.568Z",fill:"#254AA5"})})}),i.jsx(Kt,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsx("path",{d:"M14.5901 7.2835H9.39431V16.7165H14.5901V7.2835Z",fill:"#FF5A00"}),i.jsx("path",{d:"M9.74021 12C9.74021 10.0835 10.6318 8.38252 11.9999 7.2835C10.993 6.4835 9.72288 6 8.33751 6C5.05551 6 2.39991 8.6835 2.39991 12C2.39991 15.3165 5.05551 18 8.33751 18C9.72288 18 10.993 17.5165 11.9999 16.7165C10.6298 15.633 9.74021 13.9165 9.74021 12Z",fill:"#EB001B"}),i.jsx("path",{d:"M21.5999 12C21.5999 15.3165 18.9443 18 15.6624 18C14.2769 18 13.0068 17.5165 11.9999 16.7165C13.3853 15.6155 14.2596 13.9165 14.2596 12C14.2596 10.0835 13.368 8.38252 11.9999 7.2835C13.0049 6.4835 14.275 6 15.6604 6C18.9443 6 21.5999 8.70097 21.5999 12Z",fill:"#F79E1B"})]})}),i.jsx(Kt,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M11.6377 9.6L9.2 15.5923H12.1183L12.48 14.6369H13.307L13.6688 15.5923H16.881V14.8631L17.1673 15.5923H18.8289L19.1151 14.8477V15.5923H25.7957L26.608 14.6617L27.3687 15.5923L30.7999 15.6L28.3545 12.6129L30.7999 9.6H27.4219L26.6311 10.5134L25.8944 9.6H18.6268L18.0028 11.1467L17.3641 9.6H14.4518V10.3044L14.1279 9.6H11.6377ZM12.2024 10.4509H13.6249L15.2418 14.5143V10.4509H16.8001L18.0491 13.3644L19.2001 10.4509H20.7506V14.7508H19.8071L19.7994 11.3814L18.424 14.7508H17.58L16.1968 11.3814V14.7508H14.2559L13.8879 13.7868H11.9L11.5328 14.7499H10.4929L12.2024 10.4509ZM21.6138 10.4509H25.4501L26.6234 11.8588L27.8346 10.4509H29.0079L27.2252 12.612L29.0079 14.7482H27.7814L26.608 13.324L25.3907 14.7482H21.6138V10.4509ZM12.8944 11.1784L12.2394 12.8957H13.5486L12.8944 11.1784ZM22.5611 12.1261H24.654V13.001H22.5611V13.8579H24.9086L25.9994 12.5958L24.9549 11.3405H22.5611V12.1261Z",fill:"#26A6D1",style:{transform:"translateX(-8px)"}})})})]}):i.jsxs("svg",{width:"56",height:"24",viewBox:"0 0 56 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsxs("g",{clipPath:"url(#clip0_1466_4573)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M12.371 10.7018C12.3586 11.7047 13.2368 12.2645 13.8984 12.5972C14.5782 12.9387 14.8065 13.1576 14.8039 13.4629C14.7987 13.9302 14.2616 14.1364 13.759 14.1445C12.8821 14.1585 12.3722 13.9001 11.9669 13.7046L11.651 15.2304C12.0577 15.4239 12.8107 15.5926 13.5916 15.6C15.4246 15.6 16.6239 14.666 16.6304 13.2179C16.6375 11.38 14.1676 11.2783 14.1845 10.4568C14.1903 10.2077 14.4206 9.9419 14.9252 9.87428C15.1749 9.84013 15.8644 9.81402 16.6459 10.1856L16.9527 8.70932C16.5324 8.55131 15.9921 8.4 15.3195 8.4C13.5942 8.4 12.3807 9.3467 12.371 10.7018ZM19.9007 8.52721C19.566 8.52721 19.2838 8.72873 19.158 9.03805L16.5396 15.4915H18.3712L18.7358 14.4518H20.9741L21.1856 15.4915H22.7999L21.3912 8.52721H19.9007ZM20.1569 10.4086L20.6855 13.0237H19.2378L20.1569 10.4086ZM10.1501 8.52721L8.70631 15.4915H10.4517L11.8949 8.52721H10.1501ZM7.568 8.52721L5.75124 13.2674L5.01637 9.2369C4.93011 8.78698 4.58959 8.52721 4.21145 8.52721H1.24147L1.19995 8.7294C1.80964 8.86598 2.50236 9.08626 2.92201 9.32193C3.17886 9.46587 3.25215 9.59174 3.33647 9.93386L4.72839 15.4915H6.57303L9.40097 8.52721H7.568Z",fill:"#254AA5"})]}),i.jsxs("g",{clipPath:"url(#clip1_1466_4573)",children:[i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M30.5901 7.2835H25.3943V16.7165H30.5901V7.2835Z",fill:"#FF5A00"}),i.jsx("path",{d:"M25.7402 12C25.7402 10.0835 26.6318 8.38252 27.9999 7.2835C26.993 6.4835 25.7229 6 24.3375 6C21.0555 6 18.3999 8.6835 18.3999 12C18.3999 15.3165 21.0555 18 24.3375 18C25.7229 18 26.993 17.5165 27.9999 16.7165C26.6298 15.633 25.7402 13.9165 25.7402 12Z",fill:"#EB001B"}),i.jsx("path",{d:"M37.5999 12C37.5999 15.3165 34.9443 18 31.6624 18C30.2769 18 29.0068 17.5165 27.9999 16.7165C29.3853 15.6155 30.2596 13.9165 30.2596 12C30.2596 10.0835 29.368 8.38252 27.9999 7.2835C29.0049 6.4835 30.275 6 31.6604 6C34.9443 6 37.5999 8.70097 37.5999 12Z",fill:"#F79E1B"})]}),i.jsxs("g",{clipPath:"url(#clip2_1466_4573)",children:[i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M35.6377 9.6L33.2 15.5923H36.1183L36.48 14.6369H37.307L37.6688 15.5923H40.881V14.8631L41.1673 15.5923H42.8289L43.1151 14.8477V15.5923H49.7957L50.608 14.6617L51.3687 15.5923L54.7999 15.6L52.3545 12.6129L54.7999 9.6H51.4219L50.6311 10.5134L49.8944 9.6H42.6268L42.0028 11.1467L41.3641 9.6H38.4518V10.3044L38.1279 9.6H35.6377ZM36.2024 10.4509H37.6249L39.2418 14.5143V10.4509H40.8001L42.0491 13.3644L43.2001 10.4509H44.7506V14.7508H43.8071L43.7994 11.3814L42.424 14.7508H41.58L40.1968 11.3814V14.7508H38.2559L37.8879 13.7868H35.9L35.5328 14.7499H34.4929L36.2024 10.4509ZM45.6138 10.4509H49.4501L50.6234 11.8588L51.8346 10.4509H53.0079L51.2252 12.612L53.0079 14.7482H51.7814L50.608 13.324L49.3907 14.7482H45.6138V10.4509ZM36.8944 11.1784L36.2394 12.8957H37.5486L36.8944 11.1784ZM46.5611 12.1261H48.654V13.001H46.5611V13.8579H48.9086L49.9994 12.5958L48.9549 11.3405H46.5611V12.1261Z",fill:"#26A6D1"})]}),i.jsxs("defs",{children:[i.jsx("clipPath",{id:"clip0_1466_4573",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip1_1466_4573",children:i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip2_1466_4573",children:i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"white"})})]})]}),Xl=({isAntistock:e=!1})=>e?i.jsx(Kt,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("g",{clipPath:"url(#clip0_13_4480)",children:i.jsx("path",{d:"M15.1258 8.86178C15.3047 9.05256 15.6016 9.05256 15.7698 8.86178L16.6642 7.86973C16.8539 7.67895 16.8431 7.33555 16.6428 7.12951C15.9399 6.47662 15.1228 5.97865 14.2385 5.66433L14.5211 4.21441C14.582 3.89771 14.3601 3.6001 14.0632 3.6001H12.3315C12.2233 3.60134 12.1187 3.64219 12.0354 3.71581C11.952 3.78944 11.8949 3.89137 11.8736 4.00455L11.6231 5.29421C9.31901 5.42013 7.36553 6.66782 7.36553 9.22426C7.36553 11.4373 8.97912 12.3874 10.6857 13.0398C12.2993 13.6961 13.1544 13.9403 13.1544 14.8637C13.1544 15.8138 12.3029 16.3708 11.0435 16.3708C9.89861 16.3708 8.69647 15.9626 7.76624 14.9667C7.72304 14.9206 7.67174 14.8839 7.61526 14.859C7.55878 14.834 7.49823 14.8211 7.43709 14.8211C7.37594 14.8211 7.3154 14.834 7.25892 14.859C7.20244 14.8839 7.15113 14.9206 7.10793 14.9667L6.14192 15.9969C6.05103 16.0942 6 16.2259 6 16.3632C6 16.5005 6.05103 16.6322 6.14192 16.7295C6.89326 17.5193 7.84496 18.0917 8.92975 18.4084L8.66499 19.7705C8.60417 20.0872 8.82241 20.381 9.11937 20.3848L10.8546 20.4001C10.9641 20.4006 11.0703 20.3606 11.1551 20.2868C11.24 20.213 11.2982 20.1101 11.3197 19.9956L11.5702 18.7022C14.3422 18.5037 16.031 16.8745 16.031 14.4974C16.031 12.3072 14.3494 11.3839 12.3101 10.6322C11.1437 10.1705 10.1347 9.85383 10.1347 8.90375C10.1347 7.98038 11.0757 7.61409 12.0203 7.61409C13.2224 7.61409 14.378 8.14445 15.1329 8.86941L15.1258 8.86178Z",fill:"#00D249"})}),i.jsx("defs",{children:i.jsx("clipPath",{id:"clip0_13_4480",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})})})]})}):i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_13_4480)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M15.1258 8.86178C15.3047 9.05256 15.6016 9.05256 15.7698 8.86178L16.6642 7.86973C16.8539 7.67895 16.8431 7.33555 16.6428 7.12951C15.9399 6.47662 15.1228 5.97865 14.2385 5.66433L14.5211 4.21441C14.582 3.89771 14.3601 3.6001 14.0632 3.6001H12.3315C12.2233 3.60134 12.1187 3.64219 12.0354 3.71581C11.952 3.78944 11.8949 3.89137 11.8736 4.00455L11.6231 5.29421C9.31901 5.42013 7.36553 6.66782 7.36553 9.22426C7.36553 11.4373 8.97912 12.3874 10.6857 13.0398C12.2993 13.6961 13.1544 13.9403 13.1544 14.8637C13.1544 15.8138 12.3029 16.3708 11.0435 16.3708C9.89861 16.3708 8.69647 15.9626 7.76624 14.9667C7.72304 14.9206 7.67174 14.8839 7.61526 14.859C7.55878 14.834 7.49823 14.8211 7.43709 14.8211C7.37594 14.8211 7.3154 14.834 7.25892 14.859C7.20244 14.8839 7.15113 14.9206 7.10793 14.9667L6.14192 15.9969C6.05103 16.0942 6 16.2259 6 16.3632C6 16.5005 6.05103 16.6322 6.14192 16.7295C6.89326 17.5193 7.84496 18.0917 8.92975 18.4084L8.66499 19.7705C8.60417 20.0872 8.82241 20.381 9.11937 20.3848L10.8546 20.4001C10.9641 20.4006 11.0703 20.3606 11.1551 20.2868C11.24 20.213 11.2982 20.1101 11.3197 19.9956L11.5702 18.7022C14.3422 18.5037 16.031 16.8745 16.031 14.4974C16.031 12.3072 14.3494 11.3839 12.3101 10.6322C11.1437 10.1705 10.1347 9.85383 10.1347 8.90375C10.1347 7.98038 11.0757 7.61409 12.0203 7.61409C13.2224 7.61409 14.378 8.14445 15.1329 8.86941L15.1258 8.86178Z",fill:"#00D249"})]}),i.jsx("defs",{children:i.jsx("clipPath",{id:"clip0_13_4480",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})})})]}),Kl=({isAntistock:e=!1})=>e?i.jsx(Kt,{children:i.jsx("img",{src:vo,alt:"PayPal",width:14,height:18})}):i.jsx("img",{src:vo,alt:"PayPal",height:24}),Kt=({children:e})=>i.jsx("div",{className:ha.antistockLogoWrapper,children:e}),Ql=({isAntistock:e=!1})=>e?i.jsxs("div",{className:ha.applePayGooglePay,children:[i.jsx(Kt,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_12_1508)",children:[i.jsx("path",{d:"M11.4098 12.495V14.9512H10.6V8.87671H12.7053C13.2182 8.87671 13.704 9.06159 14.0819 9.40493C14.4598 9.72185 14.6487 10.1972 14.6487 10.699C14.6487 11.2008 14.4598 11.6498 14.0819 11.9932C13.704 12.3365 13.2452 12.5214 12.7053 12.5214L11.4098 12.495ZM11.4098 9.61621V11.7291H12.7593C13.0562 11.7291 13.3531 11.6234 13.5421 11.4121C13.974 11.016 13.974 10.3557 13.5691 9.95955L13.5421 9.93314C13.3262 9.72185 13.0562 9.5898 12.7593 9.61621H11.4098Z",fill:"#5F6368"}),i.jsx("path",{d:"M16.5112 10.6726C17.105 10.6726 17.5638 10.8311 17.9147 11.148C18.2656 11.465 18.4276 11.8875 18.4276 12.4157V14.9512H17.6718V14.3701H17.6448C17.3209 14.8455 16.8621 15.0832 16.3222 15.0832C15.8634 15.0832 15.4585 14.9512 15.1346 14.6871C14.8377 14.4229 14.6487 14.0532 14.6487 13.657C14.6487 13.2345 14.8107 12.8911 15.1346 12.627C15.4585 12.3629 15.9173 12.2573 16.4572 12.2573C16.943 12.2573 17.3209 12.3365 17.6178 12.5214V12.3365C17.6178 12.0724 17.5098 11.8083 17.2939 11.6498C17.078 11.465 16.8081 11.3593 16.5112 11.3593C16.0523 11.3593 15.7014 11.5442 15.4585 11.9139L14.7567 11.4914C15.1886 10.9367 15.7554 10.6726 16.5112 10.6726ZM15.4855 13.6834C15.4855 13.8947 15.5934 14.0796 15.7554 14.1852C15.9443 14.3173 16.1603 14.3965 16.3762 14.3965C16.7001 14.3965 17.024 14.2645 17.2669 14.0268C17.5368 13.7891 17.6718 13.4986 17.6718 13.1816C17.4289 12.9968 17.078 12.8911 16.6191 12.8911C16.2952 12.8911 16.0253 12.9704 15.8094 13.1288C15.5934 13.2609 15.4855 13.4458 15.4855 13.6834Z",fill:"#5F6368"}),i.jsx("path",{d:"M22.8002 10.8047L20.128 16.7999H19.3183L20.317 14.7135L18.5625 10.8311H19.4262L20.6949 13.8155H20.7218L21.9635 10.8311H22.8002V10.8047Z",fill:"#5F6368"}),i.jsx("path",{d:"M8.19776 11.9668C8.19776 11.7291 8.17077 11.4914 8.14378 11.2537H4.76983V12.6006H6.68623C6.60526 13.0232 6.36233 13.4193 5.98445 13.657V14.5286H7.14509C7.81988 13.9211 8.19776 13.0232 8.19776 11.9668Z",fill:"#4285F4"}),i.jsx("path",{d:"M4.76983 15.3737C5.74153 15.3737 6.55127 15.0568 7.14509 14.5286L5.98445 13.657C5.66055 13.8683 5.25568 14.0004 4.76983 14.0004C3.85212 14.0004 3.04237 13.3929 2.77245 12.5478H1.58483V13.4458C2.20563 14.6342 3.42025 15.3737 4.76983 15.3737Z",fill:"#34A853"}),i.jsx("path",{d:"M2.77245 12.5478C2.6105 12.1252 2.6105 11.6498 2.77245 11.2008V10.3029H1.58483C1.07199 11.2801 1.07199 12.4421 1.58483 13.4458L2.77245 12.5478Z",fill:"#FBBC04"}),i.jsx("path",{d:"M4.76983 9.77468C5.28267 9.77468 5.76852 9.95955 6.1464 10.3029L7.17208 9.29928C6.52428 8.71825 5.66055 8.37491 4.79682 8.40132C3.44724 8.40132 2.20563 9.14082 1.61182 10.3293L2.79945 11.2273C3.04237 10.3821 3.85212 9.77468 4.76983 9.77468Z",fill:"#EA4335"})]}),i.jsx("defs",{children:i.jsx("clipPath",{id:"clip0_12_1508",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})})})]})}),i.jsx(Kt,{children:i.jsx("img",{src:cm,alt:"Apple Pay",width:18,height:24})})]}):i.jsxs("svg",{width:"40",height:"24",viewBox:"0 0 40 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_12_1508)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M11.4098 12.495V14.9512H10.6V8.87671H12.7053C13.2182 8.87671 13.704 9.06159 14.0819 9.40493C14.4598 9.72185 14.6487 10.1972 14.6487 10.699C14.6487 11.2008 14.4598 11.6498 14.0819 11.9932C13.704 12.3365 13.2452 12.5214 12.7053 12.5214L11.4098 12.495ZM11.4098 9.61621V11.7291H12.7593C13.0562 11.7291 13.3531 11.6234 13.5421 11.4121C13.974 11.016 13.974 10.3557 13.5691 9.95955L13.5421 9.93314C13.3262 9.72185 13.0562 9.5898 12.7593 9.61621H11.4098Z",fill:"#5F6368"}),i.jsx("path",{d:"M16.5112 10.6726C17.105 10.6726 17.5638 10.8311 17.9147 11.148C18.2656 11.465 18.4276 11.8875 18.4276 12.4157V14.9512H17.6718V14.3701H17.6448C17.3209 14.8455 16.8621 15.0832 16.3222 15.0832C15.8634 15.0832 15.4585 14.9512 15.1346 14.6871C14.8377 14.4229 14.6487 14.0532 14.6487 13.657C14.6487 13.2345 14.8107 12.8911 15.1346 12.627C15.4585 12.3629 15.9173 12.2573 16.4572 12.2573C16.943 12.2573 17.3209 12.3365 17.6178 12.5214V12.3365C17.6178 12.0724 17.5098 11.8083 17.2939 11.6498C17.078 11.465 16.8081 11.3593 16.5112 11.3593C16.0523 11.3593 15.7014 11.5442 15.4585 11.9139L14.7567 11.4914C15.1886 10.9367 15.7554 10.6726 16.5112 10.6726ZM15.4855 13.6834C15.4855 13.8947 15.5934 14.0796 15.7554 14.1852C15.9443 14.3173 16.1603 14.3965 16.3762 14.3965C16.7001 14.3965 17.024 14.2645 17.2669 14.0268C17.5368 13.7891 17.6718 13.4986 17.6718 13.1816C17.4289 12.9968 17.078 12.8911 16.6191 12.8911C16.2952 12.8911 16.0253 12.9704 15.8094 13.1288C15.5934 13.2609 15.4855 13.4458 15.4855 13.6834Z",fill:"#5F6368"}),i.jsx("path",{d:"M22.8002 10.8047L20.128 16.7999H19.3183L20.317 14.7135L18.5625 10.8311H19.4262L20.6949 13.8155H20.7218L21.9635 10.8311H22.8002V10.8047Z",fill:"#5F6368"}),i.jsx("path",{d:"M8.19776 11.9668C8.19776 11.7291 8.17077 11.4914 8.14378 11.2537H4.76983V12.6006H6.68623C6.60526 13.0232 6.36233 13.4193 5.98445 13.657V14.5286H7.14509C7.81988 13.9211 8.19776 13.0232 8.19776 11.9668Z",fill:"#4285F4"}),i.jsx("path",{d:"M4.76983 15.3737C5.74153 15.3737 6.55127 15.0568 7.14509 14.5286L5.98445 13.657C5.66055 13.8683 5.25568 14.0004 4.76983 14.0004C3.85212 14.0004 3.04237 13.3929 2.77245 12.5478H1.58483V13.4458C2.20563 14.6342 3.42025 15.3737 4.76983 15.3737Z",fill:"#34A853"}),i.jsx("path",{d:"M2.77245 12.5478C2.6105 12.1252 2.6105 11.6498 2.77245 11.2008V10.3029H1.58483C1.07199 11.2801 1.07199 12.4421 1.58483 13.4458L2.77245 12.5478Z",fill:"#FBBC04"}),i.jsx("path",{d:"M4.76983 9.77468C5.28267 9.77468 5.76852 9.95955 6.1464 10.3029L7.17208 9.29928C6.52428 8.71825 5.66055 8.37491 4.79682 8.40132C3.44724 8.40132 2.20563 9.14082 1.61182 10.3293L2.79945 11.2273C3.04237 10.3821 3.85212 9.77468 4.76983 9.77468Z",fill:"#EA4335"})]}),i.jsxs("g",{clipPath:"url(#clip1_12_1508)",children:[i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M21.1469 9.48287C20.8938 9.7666 20.4887 9.99039 20.0837 9.95842C20.033 9.57478 20.2313 9.16717 20.4634 8.91541C20.7166 8.62369 21.1596 8.41589 21.5182 8.3999C21.5604 8.79952 21.3959 9.19115 21.1469 9.48287ZM21.514 10.0343C20.9275 10.0024 20.4254 10.35 20.147 10.35C19.8643 10.35 19.4381 10.0503 18.974 10.0583C18.3707 10.0663 17.8095 10.39 17.5015 10.9055C16.8686 11.9365 17.337 13.4631 17.9487 14.3023C18.2483 14.7179 18.6069 15.1735 19.0795 15.1575C19.5267 15.1415 19.7039 14.8817 20.244 14.8817C20.7883 14.8817 20.9444 15.1575 21.417 15.1495C21.9064 15.1415 22.2144 14.7339 22.514 14.3183C22.8557 13.8467 22.9949 13.3872 23.0034 13.3632C22.9949 13.3552 22.0583 13.0155 22.0498 11.9925C22.0414 11.1373 22.7882 10.7297 22.822 10.7057C22.4 10.1143 21.7418 10.0503 21.514 10.0343ZM24.902 8.87545V15.1055H25.9231V12.9755H27.3365C28.6276 12.9755 29.5348 12.1363 29.5348 10.9215C29.5348 9.70666 28.6445 8.87545 27.3703 8.87545H24.902ZM25.9231 9.69067H27.1003C27.9863 9.69067 28.4926 10.1382 28.4926 10.9255C28.4926 11.7127 27.9863 12.1643 27.096 12.1643H25.9231V9.69067ZM31.3997 15.1535C32.041 15.1535 32.6359 14.8458 32.9059 14.3582H32.927V15.1055H33.8721V12.0045C33.8721 11.1053 33.1127 10.5259 31.9439 10.5259C30.8596 10.5259 30.0579 11.1133 30.0284 11.9205H30.9482C31.0241 11.5369 31.3997 11.2852 31.9144 11.2852C32.5389 11.2852 32.889 11.5609 32.889 12.0684V12.4121L31.6148 12.484C30.4292 12.5519 29.7879 13.0115 29.7879 13.8107C29.7879 14.618 30.4503 15.1535 31.3997 15.1535ZM31.6739 14.4142C31.1296 14.4142 30.7837 14.1664 30.7837 13.7868C30.7837 13.3951 31.117 13.1674 31.7541 13.1314L32.889 13.0635V13.4151C32.889 13.9986 32.3659 14.4142 31.6739 14.4142ZM35.1337 16.7999C36.1294 16.7999 36.5978 16.4402 37.007 15.3493L38.8002 10.5858H37.7623L36.5598 14.2663H36.5387L35.3362 10.5858H34.2687L35.9986 15.1215L35.9058 15.3972C35.7497 15.8648 35.4965 16.0446 35.0451 16.0446C34.9649 16.0446 34.8088 16.0366 34.7455 16.0286V16.7759C34.8046 16.7919 35.0577 16.7999 35.1337 16.7999Z",fill:"black"})]}),i.jsxs("defs",{children:[i.jsx("clipPath",{id:"clip0_12_1508",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip1_12_1508",children:i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"white"})})]})]}),Jl=({isAntistock:e=!1})=>e?i.jsx(Kt,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M18.6917 16.192L16.1917 18.692C16.0744 18.8093 15.9154 18.8752 15.7495 18.8752C15.5837 18.8752 15.4246 18.8093 15.3073 18.692C15.1901 18.5748 15.1242 18.4157 15.1242 18.2499C15.1242 18.084 15.1901 17.9249 15.3073 17.8077L16.7409 16.3749H5.74952C5.58375 16.3749 5.42478 16.309 5.30757 16.1918C5.19036 16.0746 5.12452 15.9156 5.12452 15.7499C5.12452 15.5841 5.19036 15.4251 5.30757 15.3079C5.42478 15.1907 5.58375 15.1249 5.74952 15.1249H16.7409L15.3073 13.692C15.1901 13.5748 15.1242 13.4157 15.1242 13.2499C15.1242 13.084 15.1901 12.9249 15.3073 12.8077C15.4246 12.6904 15.5837 12.6245 15.7495 12.6245C15.9154 12.6245 16.0744 12.6904 16.1917 12.8077L18.6917 15.3077C18.7498 15.3657 18.7959 15.4346 18.8274 15.5105C18.8588 15.5864 18.875 15.6677 18.875 15.7499C18.875 15.832 18.8588 15.9133 18.8274 15.9892C18.7959 16.0651 18.7498 16.134 18.6917 16.192ZM7.80733 11.192C7.9246 11.3093 8.08366 11.3752 8.24952 11.3752C8.41537 11.3752 8.57443 11.3093 8.6917 11.192C8.80898 11.0748 8.87486 10.9157 8.87486 10.7499C8.87486 10.584 8.80898 10.4249 8.6917 10.3077L7.25811 8.87486H18.2495C18.4153 8.87486 18.5742 8.80901 18.6915 8.6918C18.8087 8.57459 18.8745 8.41562 18.8745 8.24986C18.8745 8.0841 18.8087 7.92513 18.6915 7.80792C18.5742 7.69071 18.4153 7.62486 18.2495 7.62486H7.25811L8.6917 6.19205C8.80898 6.07477 8.87486 5.91571 8.87486 5.74986C8.87486 5.58401 8.80898 5.42495 8.6917 5.30767C8.57443 5.1904 8.41537 5.12451 8.24952 5.12451C8.08366 5.12451 7.9246 5.1904 7.80733 5.30767L5.30733 7.80767C5.24922 7.86572 5.20312 7.93465 5.17167 8.01052C5.14021 8.0864 5.12402 8.16772 5.12402 8.24986C5.12402 8.33199 5.14021 8.41332 5.17167 8.4892C5.20312 8.56507 5.24922 8.634 5.30733 8.69205L7.80733 11.192Z",fill:"#252525"})]})}):i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("rect",{width:"24",height:"24",rx:"12",stroke:"#F0F0F0"}),i.jsx("path",{d:"M18.6917 16.192L16.1917 18.692C16.0744 18.8093 15.9154 18.8752 15.7495 18.8752C15.5837 18.8752 15.4246 18.8093 15.3073 18.692C15.1901 18.5748 15.1242 18.4157 15.1242 18.2499C15.1242 18.084 15.1901 17.9249 15.3073 17.8077L16.7409 16.3749H5.74952C5.58375 16.3749 5.42478 16.309 5.30757 16.1918C5.19036 16.0746 5.12452 15.9156 5.12452 15.7499C5.12452 15.5841 5.19036 15.4251 5.30757 15.3079C5.42478 15.1907 5.58375 15.1249 5.74952 15.1249H16.7409L15.3073 13.692C15.1901 13.5748 15.1242 13.4157 15.1242 13.2499C15.1242 13.084 15.1901 12.9249 15.3073 12.8077C15.4246 12.6904 15.5837 12.6245 15.7495 12.6245C15.9154 12.6245 16.0744 12.6904 16.1917 12.8077L18.6917 15.3077C18.7498 15.3657 18.7959 15.4346 18.8274 15.5105C18.8588 15.5864 18.875 15.6677 18.875 15.7499C18.875 15.832 18.8588 15.9133 18.8274 15.9892C18.7959 16.0651 18.7498 16.134 18.6917 16.192ZM7.80733 11.192C7.9246 11.3093 8.08366 11.3752 8.24952 11.3752C8.41537 11.3752 8.57443 11.3093 8.6917 11.192C8.80898 11.0748 8.87486 10.9157 8.87486 10.7499C8.87486 10.584 8.80898 10.4249 8.6917 10.3077L7.25811 8.87486H18.2495C18.4153 8.87486 18.5742 8.80901 18.6915 8.6918C18.8087 8.57459 18.8745 8.41562 18.8745 8.24986C18.8745 8.0841 18.8087 7.92513 18.6915 7.80792C18.5742 7.69071 18.4153 7.62486 18.2495 7.62486H7.25811L8.6917 6.19205C8.80898 6.07477 8.87486 5.91571 8.87486 5.74986C8.87486 5.58401 8.80898 5.42495 8.6917 5.30767C8.57443 5.1904 8.41537 5.12451 8.24952 5.12451C8.08366 5.12451 7.9246 5.1904 7.80733 5.30767L5.30733 7.80767C5.24922 7.86572 5.20312 7.93465 5.17167 8.01052C5.14021 8.0864 5.12402 8.16772 5.12402 8.24986C5.12402 8.33199 5.14021 8.41332 5.17167 8.4892C5.20312 8.56507 5.24922 8.634 5.30733 8.69205L7.80733 11.192Z",fill:"#252525"})]}),dm=()=>i.jsx("svg",{width:"22",height:"8",viewBox:"0 0 22 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M11.3712 2.7019C11.3589 3.70484 12.2371 4.26456 12.8987 4.59731C13.5784 4.93876 13.8067 5.15769 13.8041 5.46299C13.7989 5.93032 13.2619 6.13653 12.7592 6.14456C11.8823 6.15862 11.3725 5.90019 10.9671 5.70469L10.6512 7.23052C11.0579 7.42401 11.811 7.59273 12.5919 7.6001C14.4249 7.6001 15.6241 6.66612 15.6306 5.21795C15.6378 3.38012 13.1678 3.27836 13.1847 2.45686C13.1905 2.2078 13.4208 1.942 13.9254 1.87438C14.1751 1.84023 14.8646 1.81412 15.6462 2.1857L15.953 0.709415C15.5327 0.551409 14.9924 0.400097 14.3198 0.400097C12.5945 0.400097 11.3809 1.3468 11.3712 2.7019ZM18.9009 0.527306C18.5662 0.527306 18.2841 0.728831 18.1583 1.03815L15.5398 7.49164H17.3715L17.736 6.45187H19.9744L20.1858 7.49164H21.8002L20.3914 0.527306H18.9009ZM19.1571 2.40865L19.6857 5.02379H18.238L19.1571 2.40865ZM9.15036 0.527306L7.70655 7.49164H9.45196L10.8951 0.527306H9.15036ZM6.56825 0.527306L4.75149 5.26749L4.01662 1.237C3.93035 0.787079 3.58983 0.527306 3.21169 0.527306H0.24171L0.200195 0.7295C0.80964 0.865981 1.50236 1.08626 1.92201 1.32193C2.17886 1.46587 2.25215 1.59174 2.33647 1.93386L3.72839 7.49164H5.57303L8.40122 0.527306H6.56825Z",fill:"#254AA5"})}),fm=({enterAnother:e,bonusPercent:t,currency:n,isAntistock:r})=>i.jsxs("div",{className:Ae.bonusBlock,children:[!r&&i.jsx(N.Icon,{name:"Fire"}),i.jsx("div",{children:r?e>0?`Deposit an additional ${g.formatPrice({amount:e,currency:n})} and receive a ${t}% bonus.`:`Congratulations! You just unlocked a ${t}% bonus!`:e>0?`Enter another ${g.formatPrice({amount:e,currency:n})} and receive an additional bonus of ${t}%`:`You will receive an additional bonus of ${t}%`})]}),e0=({isModal:e=!0})=>{const[t,n]=L.useState({amount:"100",gateway:""}),[r,u]=L.useState({}),[a,s]=L.useState(!1),{isAntistock:o}=g.useGeneralStore(),{gatewaysDetail:c,setGatewaysDetail:l,dashInfo:h,balanceSettings:f,setIsBalanceModalOpen:m}=g.useCustomerDashboardStore(),p=g.useNavigate(),{notifications:b,setNotifications:_}=g.useNotificationStore(),{setIsOpen:E}=g.useModalStore(),x=g.useGetTsId();L.useEffect(()=>{c||(async()=>{var Y;const O=f!=null&&f.isEnabled?(Y=f==null?void 0:f.topUpSettings)==null?void 0:Y.gateways:[],X=await hu(O);l(X)})()},[f,c]);const k=()=>{const B={};return(!t.amount||Number(t.amount)<1)&&(B.amount="The balance field cannot be empty."),t.gateway||(B.gateway="Select pay method"),u(B),Object.keys(B).length===0},y=async B=>{if(B.preventDefault(),!!k()){s(!0);try{const{data:O}=await um({price:{amount:Number(t.amount),currency:f!=null&&f.isEnabled?f.topUpSettings.currency:"USD"},gateway:t.gateway,customerEmail:(h==null?void 0:h.email)||"",tsId:x});_([...b,{message:"Order created successfully",status:"success",id:g.v4()}]),p(`/charges/${O.data.chargeId}`)}catch(O){const X=O;_([...b,{message:`Order creation failed: ${X.message}`,status:"error",id:g.v4()}])}finally{m(!1),s(!1)}}},D=()=>{E(!1),setTimeout(()=>{m(!1)},300)};if(!f||!f.isEnabled)return null;const{topUpSettings:{currency:S,topUpBonusEnabled:I,bonusPercent:M,minimumTopUpForBonus:H}}=f,U=Number(t.amount),P=I&&!Number.isNaN(U)?H-U:H;return i.jsx(i.Fragment,{children:a?i.jsx(Zi,{}):i.jsxs("div",{className:g.clx(Ae.modal,{[Ae.antistock]:o}),onClick:B=>B.stopPropagation(),id:o?"randomId":void 0,children:[i.jsxs("div",{className:Ae.header,children:[i.jsx("h2",{id:"h3",className:Ae.headerTitle,children:"Top Up Account Balance"}),e&&i.jsx(N.Icon,{name:"X",onClick:D,className:Ae.closeIcon,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("form",{onSubmit:y,className:Ae.form,children:[i.jsxs("label",{className:Ae.label,children:[i.jsx(N.Input,{label:"Enter Amount",type:"number",placeholder:"1000",value:t.amount,onChange:B=>n(O=>({...O,amount:B})),required:!0}),r.amount&&i.jsx("span",{className:Ae.error,children:r.amount})]}),I&&P!==void 0&&i.jsx(fm,{enterAnother:P,bonusPercent:M,currency:S,isAntistock:o}),c&&i.jsx("div",{className:Ae.gatewayList,children:c.length>0?c.map(B=>i.jsxs("div",{className:g.clx(Ae.gatewayButton,{[Ae.selected]:t.gateway===B.name}),onClick:()=>n(O=>({...O,gateway:B.name})),children:[B.name==="ForebitPayments"?i.jsx("div",{className:Ae.gatewayIcon,children:i.jsx(Yl,{})}):i.jsx("img",{alt:B.displayName,src:g.convertCfImageIdToUrl(B.logoCfImageId,"100"),className:Ae.gatewayIcon}),i.jsx("div",{className:Ae.gatewayName,children:B.displayName})]},B.name)):i.jsx("span",{children:"Gateways not found"})}),!c&&(o?i.jsx(N.Loader,{}):i.jsx(ir,{speed:2,width:"100%",height:"220px",viewBox:"0 0 600 220",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"100%",height:"100%"})})),r.gateway&&i.jsx("span",{className:Ae.error,children:r.gateway}),i.jsx(N.Button,{type:"Primary",disabled:!t.gateway||a,className:Ae.submitButton,children:"Continue to Checkout"}),i.jsxs("div",{children:[i.jsx(Vi,{}),i.jsx($i,{isAntistock:o})]})]})]})})},t0=()=>{const[e,t]=L.useState([]),{balanceSettings:n,balance:r,isBalanceModalOpen:u,setIsBalanceModalOpen:a}=g.useCustomerDashboardStore(),{page:s,setPage:o}=g.usePaginationPagesStore(),{setIsOpen:c}=g.useModalStore(),[l,h]=L.useState(!0),[f,m]=L.useState(0),[p,b]=L.useState("Newest");L.useEffect(()=>{o(1)},[]),L.useEffect(()=>{(async()=>{h(!0);const{list:S,totalCount:I}=await rm(s);t(S),m(I),h(!1)})()},[s]);const _=(D,S)=>{var U;const I={},M=new Date,H=[...D].sort((P,B)=>{const O=new Date(P.createdAt).getTime(),X=new Date(B.createdAt).getTime();return S==="Newest"?X-O:O-X});for(const P of H){const B=new Date(P.createdAt),O=B.toDateString()===M.toDateString()?"Today":B.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});I[O]||(I[O]=[]),(U=I[O])==null||U.push(P)}return I},E=({id:D,price:S,status:I,description:M})=>{const H=g.formatPrice({amount:Math.abs(S.amount),currency:S.currency});return i.jsxs("div",{className:Ae.transactionItem,children:[i.jsxs("div",{className:Ae.transactionDetails,children:[i.jsx(N.Icon,{className:Ae.iconWrapper,name:I===qr.ADDED?"Plus":"Minus",width:20,height:20}),i.jsxs("div",{className:Ae.transactionInfo,children:[i.jsx("div",{className:Ae.transactionTitle,id:"h4",children:M}),i.jsxs("div",{className:Ae.transactionId,id:"md",children:["ID: ",D]})]})]}),i.jsxs("div",{className:g.clx(Ae.transactionAmount,{[Ae.added]:I===qr.ADDED,[Ae.removed]:I===qr.REMOVED}),id:"lg",children:[I===qr.ADDED?"+":"-"," ",H]})]},D)},x=()=>{if(e!=null&&e.length){const D=_(e,p);return i.jsxs("div",{className:Ae.transactionsContainer,children:[i.jsx("div",{className:Ae.transactionsContent,children:Object.entries(D).map(([S,I])=>i.jsxs("div",{id:"lg",children:[i.jsx("div",{className:Ae.transactionDate,id:"md",children:S}),I.map(E)]},S))}),i.jsx(bu,{className:Ae.pagination,currentPage:s,totalCount:f,onPageChange:o})]})}return i.jsx(ga,{title:"Transaction History",description:"When you top up your account balance or receive a refund from our team, you'll see a history of transactions here.",className:Ae.noItemsBlock})},k=()=>{a(!0),c(!0)},y=()=>{a(!1),c(!1)};return i.jsxs(i.Fragment,{children:[(n==null?void 0:n.isEnabled)&&i.jsx("div",{className:Ae.balanceContainer,children:i.jsxs("div",{className:Ae.balanceHeader,children:[r&&i.jsxs("div",{className:Ae.balanceAmount,children:[i.jsx("span",{className:Ae.balanceAmountTitle,id:"lg",children:"Your balance"}),i.jsx("span",{className:Ae.balanceAmountValue,id:"h4",children:g.formatPrice(r)})]}),i.jsxs(N.Button,{onClick:D=>{D.stopPropagation(),k()},className:Ae.addBalanceButton,children:[i.jsx(N.Icon,{name:"Plus"}),i.jsx("span",{children:"Add balance"})]})]})}),i.jsxs("div",{className:Ae.transactionsHeader,children:[(e==null?void 0:e.length)>0?i.jsx(ma,{title:"Transactions"}):null,(e==null?void 0:e.length)>0&&i.jsx(N.Select,{options:["Newest","Oldest"],value:p,onChange:D=>{b(D)},style:{width:"110px"}})]}),l?i.jsx("div",{className:Ae.loaderContainer,children:i.jsx(N.Loader,{})}):i.jsx("div",{children:x()}),u&&(n==null?void 0:n.isEnabled)&&i.jsx(N.Modal,{close:y,children:i.jsx(e0,{})})]})},hm="_home_1uch5_1",pm="_content_1uch5_13",mm="_tablet_1uch5_28",gm="_mobile_1uch5_31",bm="_statContainer_1uch5_35",_m="_text_1uch5_47",xm="_iconWrapper_1uch5_53",Cm="_loader_1uch5_57",Em="_title_1uch5_65",cn={home:hm,content:pm,tablet:mm,mobile:gm,statContainer:bm,text:_m,iconWrapper:xm,loader:Cm,title:Em},ym="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17%202V9.85233L13.5806%2010.9427V6.58116L6.41169%208.82252V4.89257L17%202Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M13.5806%2010.9427L13.5805%2014.691L3%2018V9.79935L6.41169%208.82252L6.41152%2013.2598L13.5806%2010.9427Z'%20fill='%23FF3F19'/%3e%3c/svg%3e",n0=e=>me.createElement("svg",{width:20,height:20,viewBox:"0 0 19 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},me.createElement("path",{d:"M0.0103662 23.5362C0.0538052 22.4425 0.370173 21.4309 1.08058 20.6127C1.92699 19.6379 2.91375 19.2329 4.14841 19.1732C4.162 20.1401 4.15111 21.1085 4.15091 22.0756L4.70583 22.0747L7.42027 22.0755C7.95952 22.0752 8.50027 22.0844 9.03933 22.0742L9.17755 22.0731L10.6132 22.0759C10.8265 22.0759 11.0767 22.1021 11.2852 22.0658C11.3052 22.0703 11.3534 22.0735 11.3625 22.0928C11.3917 22.1543 11.3688 31.0517 11.3725 31.9631C11.1563 32.0856 10.2676 31.8701 10.0303 31.7947C9.89866 31.7528 9.644 31.6914 9.54946 31.5874L9.51914 31.584C9.46943 31.5736 9.44171 31.5537 9.40126 31.5222C9.30218 31.5131 9.14954 31.4132 9.07718 31.343C9.00129 31.3163 8.92757 31.2576 8.85921 31.2134L8.85617 31.2002C8.5748 31.0715 8.14929 30.6244 7.94318 30.376C7.35205 29.6639 6.93892 28.7659 6.83493 27.8203C6.78763 27.3904 6.7994 26.9595 6.80055 26.5277C6.80084 26.4202 6.82996 26.126 6.78242 26.0387L6.71237 26.023C6.54382 26.0528 6.34316 26.0328 6.17124 26.0324L1.0194 26.0325L0.942306 26.0307C0.74237 26.0326 0.173082 26.0689 0.0224192 26.0192L0.00848581 26.0029C0.022853 25.8597 0.0136924 25.7065 0.013837 25.562L0.0113299 24.6651L0.0117161 24.5253C0.0150266 24.1956 0.0145767 23.8659 0.0103662 23.5362Z",fill:"currentColor"}),me.createElement("path",{d:"M6.79824 0.00127802C6.88001 -0.000781892 6.96176 -0.000351703 7.04349 0.00256876C7.12523 0.00549261 7.20682 0.0108998 7.28827 0.0187905C7.36968 0.0266845 7.45082 0.0370518 7.53169 0.0498924C7.61259 0.0627296 7.69305 0.078018 7.77309 0.0957576C7.85312 0.113501 7.93259 0.133663 8.0115 0.156244C8.09044 0.178828 8.16868 0.203796 8.24624 0.231148C8.3238 0.258499 8.40053 0.28819 8.47645 0.32022C8.55237 0.352247 8.62736 0.386559 8.70141 0.423156L8.71428 0.423492C8.76476 0.450874 8.815 0.479135 8.8661 0.50516C8.947 0.550491 9.03065 0.593185 9.10687 0.646856L9.24939 0.733144C9.31674 0.78126 9.38361 0.83049 9.45202 0.87695C10.462 1.67615 11.1434 2.77146 11.325 4.10211C11.4076 4.70784 11.3729 5.34243 11.372 5.9541C11.4625 5.96599 11.5526 5.9664 11.6436 5.96762C12.6033 5.93794 13.5708 5.96289 14.5314 5.96294C15.459 5.96305 16.3927 5.93758 17.3195 5.9633C17.5874 5.96523 17.9062 6.00101 18.1677 5.95273C18.1496 6.13096 18.1583 6.31472 18.1585 6.49401L18.1598 7.38388L18.1595 7.51855C18.1591 7.83084 18.14 8.15609 18.1607 8.46685C18.109 9.73893 17.6972 10.8198 16.8003 11.6891C15.9969 12.4676 15.0894 12.76 14.0228 12.8194L14.021 10.9083C14.0209 10.5892 14.0389 10.2573 14.0163 9.93952C14.0002 9.92849 13.9879 9.91884 13.9692 9.9133C13.7941 9.93418 13.6055 9.92148 13.4293 9.92133H9.15258L9.04077 9.92082L7.56664 9.92209C7.31676 9.92224 7.04528 9.94526 6.79858 9.90893L6.79824 0.00127802Z",fill:"currentColor"}),me.createElement("path",{d:"M4.13987 5.96279C4.65941 5.9653 5.17894 5.96467 5.69847 5.96091C5.70059 7.27995 5.71757 8.60219 5.69833 9.92082L4.15072 9.92046L4.15106 11.4065C4.15096 11.6783 4.1406 11.9555 4.15443 12.2266C4.73799 12.8393 5.31307 13.4655 5.90921 14.0644L5.98321 14.0407C6.25311 14.0833 6.6928 14.0501 6.97981 14.0499L12.7386 14.0492L13.5943 14.0482C13.7363 14.0479 13.9068 14.0286 14.0457 14.0577L15.8019 15.9078L15.8915 15.997L15.9615 16.0784L15.9955 16.1093L17.4221 17.6163C17.6528 17.8599 17.9077 18.0979 18.1211 18.3569C18.1463 18.3875 18.1599 18.4086 18.1691 18.4477C18.1415 18.6757 18.1577 18.9211 18.1579 19.1514L18.1594 20.4531C18.1597 21.8112 18.142 23.1721 18.1599 24.5297L18.1589 24.6625L18.158 25.5556C18.158 25.7089 18.1437 25.8808 18.1676 26.0315L18.0995 26.031L17.2568 26.0329L17.2101 26.0308C16.2512 26.0486 15.2892 26.0305 14.3299 26.0308C13.7488 26.031 13.0694 26.064 12.4959 26.0258L12.4831 26.0202C12.4481 25.9239 12.4717 22.4806 12.47 22.075L14.0216 22.0744C14.0024 21.3241 14.0324 20.5711 14.0173 19.8203C13.4629 19.2116 12.887 18.6041 12.3052 18.0244L12.293 17.9978C12.0554 18.0392 11.5401 18.0054 11.2777 18.0053L8.9362 18.0074C7.75375 17.9793 6.56306 18.0065 5.37994 18.0069C5.13497 18.007 4.32737 18.0401 4.13472 17.9962L2.36331 16.1262L2.29219 16.0566L2.21959 15.9758L2.15074 15.9102C1.93803 15.6694 1.70849 15.441 1.48797 15.2079L0 13.631C0.0383768 13.4512 0.014078 13.2231 0.013837 13.0369L0.0121494 11.9198L0.0113299 7.52017L0.0122943 7.34622C0.0134032 6.9143 0.0453199 6.37479 0.00371286 5.95329C0.115854 5.96772 0.229056 5.9664 0.341872 5.96777C0.589393 5.96198 0.836946 5.96042 1.08453 5.9631L3.10905 5.96548C3.44789 5.96554 3.80282 5.98825 4.13987 5.96279Z",fill:"currentColor"})),wo=({children:e})=>i.jsx("div",{className:cn.statContainer,children:e}),r0=({adaptiveStyles:e})=>{var f,m,p;const[t,n]=L.useState(null),{setBalanceSettings:r}=g.useCustomerDashboardStore(),{pageContext:u}=g.usePagesStore(),{general:a,isAntistock:s}=g.useGeneralStore();console.log(a);const{header:o}=g.useLayersStore(),{settings:c}=g.useSettingsStore(),l=s?"Antistock":"Billgang";console.log(c);function h(b){var x,k;const _=b==null?void 0:b.name,E=(k=(x=u==null?void 0:u.listings)==null?void 0:x.filter(y=>y.type==="PRODUCT"))==null?void 0:k.find(y=>y.productData.name===_);return E==null?void 0:E.link.to}return L.useEffect(()=>{const b=async()=>{const{data:E}=await al();n(E)},_=async()=>{const E=await xl();r(E)};b(),_()},[]),t?i.jsxs("div",{className:cn.home,children:[i.jsx(p0,{adaptiveStyles:e}),i.jsx("h3",{id:"h3",className:cn.title,children:s?"Home":"Your Statistics"}),i.jsxs("div",{className:g.clx(cn.content,{[cn.desktop]:e==="desktop",[cn.tablet]:e==="tablet",[cn.mobile]:e==="mobile"}),children:[i.jsxs(wo,{children:[i.jsx(wt,{iconName:"Calendar",title:"Customer since",value:g.formatTimestamp(t.createdAt)}),i.jsx(wt,{iconName:"CurrencyCircleDollar",title:"Total spent",value:g.formatPrice({amount:t.totalSpent})}),i.jsx(wt,{iconName:"Medal",title:"Top",value:`#${t.ratingPlacement}`,children:t.ratingPlacement>1&&i.jsxs("div",{className:cn.text,id:"md-bold",children:[i.jsx(N.Icon,{name:"ArrowUp",className:cn.iconWrapper,width:16,height:16,fill:"var(--text-secondary)"}),"Spend"," ",g.formatPrice({amount:t.spendMoreDefaultCurrencyForNextPlace??t.spendMoreUsdForNextPlace??0,currency:(f=t.balance)==null?void 0:f.currency})," ","more to be #",t.ratingPlacement-1]})}),s?null:i.jsx(wt,{iconName:"Star",title:"Average review",value:t.averageReview})]}),t.topSpenderProduct?i.jsx(wt,{image:g.convertCfImageIdToUrl(t.topSpenderProduct.image.cfId),imageName:t.topSpenderProduct.name,iconName:"Crown",title:"Top spent",value:`${g.formatPrice({amount:t.topSpenderProduct.amountSpentUsd||0})} spent`,productSlug:h(t.topSpenderProduct)}):i.jsx(wt,{image:"empty",iconName:"Crown",title:"Top spent",value:`${g.formatPrice({amount:0})} spent`}),i.jsxs(wo,{children:[i.jsx(wt,{iconName:"Bag",title:"Purchases",value:t.totalPurchases}),i.jsx(wt,{iconName:"Eye",title:"Visits",value:t.visits}),s&&i.jsx(wt,{title:"Powered by",value:c!=null&&c.showPoweredBy?"Antistock":(a==null?void 0:a.info.name)||"",logo:c!=null&&c.showPoweredBy?void 0:g.convertCfImageIdToUrl(((m=a==null?void 0:a.info.logo)==null?void 0:m.cfId)||"A5gbiev6F8AaBvp6M146Kw/4ecd0fb9-8ebc-44e9-fa1c-c36f61f4bd00"),customLogo:c!=null&&c.showPoweredBy?i.jsx("div",{style:{width:"48px",height:"48px",padding:"10px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--border-radius)",backgroundColor:"var(--surface-secondary)"},children:i.jsx(n0,{width:22,height:22})}):void 0}),!s&&i.jsx(wt,{title:"Powered by",value:l,logo:ym}),s?null:i.jsx(wt,{title:"Store",value:(a==null?void 0:a.info.name)||"",logo:g.convertCfImageIdToUrl((o==null?void 0:o.blockSettings.logo.url)||((p=a==null?void 0:a.info.logo)==null?void 0:p.cfId)||"A5gbiev6F8AaBvp6M146Kw/4ecd0fb9-8ebc-44e9-fa1c-c36f61f4bd00")})]}),t.favoriteProduct?i.jsx(wt,{image:g.convertCfImageIdToUrl(t.favoriteProduct.image.cfId),imageName:t.favoriteProduct.name,iconName:"Heart",title:"Favorite product",value:`bought ${t.favoriteProduct.purchasedTimes} times`,productSlug:h(t.favoriteProduct)}):i.jsx(wt,{image:"empty",iconName:"Heart",title:"Favorite product",value:"bought 0 times"})]})]}):i.jsx("div",{className:cn.loader,children:i.jsx(N.Loader,{})})},Tm="_container_caax0_1",km="_tablet_caax0_15",Am="_mobile_caax0_18",Sm="_progress_caax0_22",Im="_status_caax0_26",Nm="_name_caax0_37",vm="_completed_caax0_44",wm="_title_caax0_50",Dm="_description_caax0_58",Lm="_button_caax0_65",Pm="_achievement_caax0_73",Rm="_progressText_caax0_92",Mm="_progressTextStart_caax0_99",Om="_progressBackground_caax0_103",jm="_progressForeground_caax0_107",Fm="_icon_caax0_111",bt={container:Tm,tablet:km,mobile:Am,progress:Sm,status:Im,name:Nm,completed:vm,title:wm,description:Dm,button:Lm,achievement:Pm,progressText:Rm,progressTextStart:Mm,progressBackground:Om,progressForeground:jm,icon:Fm},Ut=(e,t,n)=>e===1?t:n??`${t}s`,u0=({adaptiveStyles:e})=>{const{notifications:t,setNotifications:n}=g.useNotificationStore(),{setBalance:r}=g.useCustomerDashboardStore(),[u,a]=L.useState(null),s=async()=>{const f=(await Yf()).map(m=>({...m,isClaimed:!1}));a(f)};L.useEffect(()=>{s()},[]);async function o(h){try{if(await z2(h),u){const m=u==null?void 0:u.map(p=>p.id===h.id?{...p,isClaimed:!0}:p);a(m)}n([...t,{message:"Reward claimed successfully",status:"success",id:g.v4()}]);const f=await oa();a(null),r(f),s()}catch{n([...t,{message:"Failed to claim reward",status:"error",id:g.v4()}])}}const c=u&&u.length===0,l=u&&u.length>0;return i.jsx(i.Fragment,{children:c?i.jsx(ga,{title:"Rewards Unavailable",description:"Check back in the future to join our reward program."}):i.jsxs(i.Fragment,{children:[i.jsx(ma,{title:"Rewards",description:"To unlock an exclusive reward, complete everything on this checklist"}),i.jsxs("div",{className:g.clx(bt.container,{[bt.tablet]:e==="tablet",[bt.mobile]:e==="mobile"}),children:[l&&u.map(h=>i.jsx(Bm,{achievement:h,onClick:f=>o(f)},h.id)),!l&&[...new Array(6)].map((h,f)=>i.jsx(ir,{speed:2,width:"100%",height:400,viewBox:"0 0 300 300",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"100%",height:"300px"})},f))]})]})})},Bm=({achievement:e,onClick:t})=>{const{isAntistock:n}=g.useGeneralStore(),[r,u]=zm(e),[a,s,o]=qm(e),[c,l]=L.useState(!1),h=s>=o;return i.jsxs("div",{className:bt.achievement,children:[i.jsx(Hm,{percentage:Math.min(a,100)}),i.jsx("div",{className:`${bt.status} ${h&&!n?bt.completed:""}`,id:"md",children:h?i.jsxs(i.Fragment,{children:[i.jsx(N.Icon,{name:"Confetti"}),i.jsx("span",{id:"md",children:"Completed!"})]}):`Done: ${s} / ${o}`}),i.jsxs("div",{className:bt.title,children:[i.jsx(N.Icon,{name:"Bag",className:bt.icon,fill:"var(--text-action)",width:18,height:18}),i.jsx("div",{className:bt.name,id:"h5",children:r})]}),i.jsx("span",{className:bt.description,id:"md",children:u}),i.jsx(N.Button,{type:h&&!e.isClaimed?"Primary":"Secondary",className:bt.button,disabled:!h,onClick:async()=>{l(!0),await t(e),l(!1)},children:e.isClaimed?i.jsxs(i.Fragment,{children:[i.jsx(N.Icon,{name:"CheckCircle",fill:"var(--text-secondary)"}),i.jsxs("span",{children:["Your claimed ",Do(e)," bonus"]})]}):i.jsxs(i.Fragment,{children:[!c&&(h?i.jsx("span",{children:"Claim"}):Do(e)),c&&i.jsx(N.Loader,{})]})})]})},Hm=({percentage:e,radius:t=40,strokeWidth:n=8})=>{const r=t+n/2,u=r*2,a=2*Math.PI*t,s=a-e/100*a;return i.jsxs("div",{style:{width:u,height:u},className:bt.progress,children:[i.jsxs("svg",{"aria-hidden":"true",width:u,height:u,children:[i.jsx("circle",{cx:r,cy:r,r:t,fill:"transparent",className:bt.progressBackground,strokeWidth:n}),i.jsx("circle",{cx:r,cy:r,r:t,fill:"transparent",strokeWidth:n,strokeDasharray:`${a} ${a}`,strokeDashoffset:s,className:bt.progressForeground})]}),i.jsxs("span",{className:g.clx(bt.progressText,{[bt.progressTextStart]:e!==0}),id:"md",children:[Math.min(e,100),"%"]})]})},Um=e=>{switch(e.rewardRule.rewardType){case nu.Balance:return`${g.formatPrice(e.rewardRule.rewardOptions.balance)} on the balance`;case nu.Product:return`products: ${e.rewardRule.rewardOptions.productsWithVariants.map(t=>`${t.quantity} ${t.productName} (${t.variantName})`).join(", ")}`}},Do=e=>{switch(e.rewardRule.rewardType){case nu.Balance:return g.formatPrice(e.rewardRule.rewardOptions.balance);case nu.Product:return`${e.rewardRule.rewardOptions.productsWithVariants.map(t=>`${t.quantity} ${t.productName} (${t.variantName})`).join()}`}},Vm=e=>{const{ruleType:t,ruleOptions:n}=e.rewardRule,r=Um(e),u=e.progress;switch(t){case _t.Spend:return`Spend $${n.forEach} in total purchases to receive ${r}. You've spent $${u} so far.`;case _t.Order:{const a=n.ordersCount;return`Place ${a} ${Ut(a,"order")} to receive ${r}. You've made ${u} ${Ut(u,"order")} so far.`}case _t.Referral:{const a=n.minReferrals,s=n.minCompletedOrders;return`Have ${a} ${Ut(a,"person")} sign up via your referral link and make at least ${s} ${Ut(s,"purchase")} to receive ${r}. You've referred ${u} ${Ut(u,"friend")} so far.`}case _t.Review:{const a=n.minReviews,s=n.minStars;return`Leave ${a} ${Ut(a,"review")} with a minimum rating of ${s} to receive ${r}. You've left ${u} ${Ut(u,"review")} so far.`}case _t.Vouch:{const a=n.minVouches;return`Leave ${a} ${Ut(a,"vouch","vouches")} to receive ${r}. You've left ${u} ${Ut(u,"vouch","vouches")} so far.`}}},$m=e=>{const{ruleType:t,ruleOptions:n}=e.rewardRule;switch(t){case _t.Spend:return`Spend $${n.forEach} at our store`;case _t.Order:{const r=n.ordersCount;return`Place ${r} ${Ut(r,"order")}`}case _t.Referral:{const r=n.minReferrals;return`Refer ${r} ${Ut(r,"friend")}`}case _t.Review:{const r=n.minReviews,u=n.minStars;return`Leave ${r} ${Ut(r,"review")} with a minimum rating of ${u}`}case _t.Vouch:{const r=n.minVouches;return`Leave ${r} ${Ut(r,"vouch","vouches")}`}}},zm=e=>[$m(e),Vm(e)],qm=e=>{let t;switch(e.rewardRule.ruleType){case _t.Spend:t=e.rewardRule.ruleOptions.forEach;break;case _t.Order:t=e.rewardRule.ruleOptions.ordersCount;break;case _t.Referral:t=e.rewardRule.ruleOptions.minReferrals;break;case _t.Review:t=e.rewardRule.ruleOptions.minReviews;break;case _t.Vouch:t=e.rewardRule.ruleOptions.minVouches;break;default:t=0}const n=Math.round((e.progress/Math.max(t,1)*100+Number.EPSILON)*100)/100;return[t===0?100:n,e.progress,t]},Zm="_appContainer_1bj0v_1",Wm="_noAnimation_1bj0v_11",Ym="_mobile_1bj0v_19",Gm="_appContainerAntistock_1bj0v_28",Xm="_contentContainer_1bj0v_44",Km="_contentContainerAntistock_1bj0v_64",Gn={appContainer:Zm,noAnimation:Wm,mobile:Ym,appContainerAntistock:Gm,contentContainer:Xm,contentContainerAntistock:Km},Qm="_apiPage_pkays_1",Jm="_cards_pkays_8",e4="_card_pkays_8",t4="_cardHeader_pkays_24",n4="_cardHeaderRow_pkays_30",r4="_cardTitle_pkays_37",u4="_cardDescription_pkays_42",a4="_apiKeyMeta_pkays_47",s4="_regenerateButton_pkays_62",i4="_fieldRow_pkays_68",o4="_fieldLabel_pkays_75",c4="_fieldValueWrapper_pkays_80",l4="_fieldValue_pkays_80",d4="_copyButton_pkays_98",f4="_twoColumn_pkays_116",h4="_selectorGroup_pkays_127",p4="_selectorLabel_pkays_133",m4="_codeBlockGroup_pkays_145",g4="_codeBlock_pkays_145",b4="_codeHeader_pkays_160",_4="_codeTitle_pkays_169",x4="_codeMethod_pkays_175",C4="_codeBody_pkays_185",E4="_jsonString_pkays_197",y4="_jsonNumber_pkays_201",T4="_jsonBoolean_pkays_205",k4="_endpointDescriptionList_pkays_209",re={apiPage:Qm,cards:Jm,card:e4,cardHeader:t4,cardHeaderRow:n4,cardTitle:r4,cardDescription:u4,apiKeyMeta:a4,regenerateButton:s4,fieldRow:i4,fieldLabel:o4,fieldValueWrapper:c4,fieldValue:l4,copyButton:d4,twoColumn:f4,selectorGroup:h4,selectorLabel:p4,codeBlockGroup:m4,codeBlock:g4,codeHeader:b4,codeTitle:_4,codeMethod:x4,codeBody:C4,jsonString:E4,jsonNumber:y4,jsonBoolean:T4,endpointDescriptionList:k4},Xa=" ",Ls=(e,t=0)=>{const n=[],r=Xa.repeat(t);if(Array.isArray(e))return n.push(`[
|
|
59
|
-
`),e.forEach((u,a)=>{n.push(
|
|
58
|
+
***************************************************************************** */var $n=function(){return $n=Object.assign||function(t){for(var n,r=1,u=arguments.length;r<u;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},$n.apply(this,arguments)};function b6(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(e);u<r.length;u++)t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u])&&(n[r[u]]=e[r[u]]);return n}var _6=function(){return Math.random().toString(36).substring(6)},x6=function(e){var t=e.animate,n=t===void 0?!0:t,r=e.backgroundColor,u=r===void 0?"#f5f6f7":r,a=e.backgroundOpacity,s=a===void 0?1:a,o=e.baseUrl,c=o===void 0?"":o,l=e.children,h=e.foregroundColor,f=h===void 0?"#eee":h,m=e.foregroundOpacity,p=m===void 0?1:m,b=e.gradientRatio,_=b===void 0?2:b,E=e.uniqueKey,x=e.rtl,k=x===void 0?!1:x,y=e.speed,D=y===void 0?1.2:y,S=e.style,I=S===void 0?{}:S,M=e.title,H=M===void 0?"Loading...":M,U=e.beforeMask,P=U===void 0?null:U,B=b6(e,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","rtl","speed","style","title","beforeMask"]),O=E||_6(),X="".concat(O,"-diff"),Y="".concat(O,"-animated-diff"),K="".concat(O,"-aria"),ue=k?{transform:"scaleX(-1)"}:null,ae="".concat(D,"s"),se="".concat(_*-1," 0"),_e="".concat(_," 0");return L.createElement("svg",$n({"aria-labelledby":K,role:"img",style:$n($n({},I),ue)},B),H?L.createElement("title",{id:K},H):null,P&&L.isValidElement(P)?P:null,L.createElement("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url(".concat(c,"#").concat(X,")"),style:{fill:"url(".concat(c,"#").concat(Y,")")}}),L.createElement("defs",null,L.createElement("clipPath",{id:X},l),L.createElement("linearGradient",{id:Y,gradientTransform:"translate(".concat(se,")")},L.createElement("stop",{offset:"0%",stopColor:u,stopOpacity:s}),L.createElement("stop",{offset:"50%",stopColor:f,stopOpacity:p}),L.createElement("stop",{offset:"100%",stopColor:u,stopOpacity:s}),n&&L.createElement("animateTransform",{attributeName:"gradientTransform",type:"translate",values:"".concat(se,"; 0 0; ").concat(_e),dur:ae,repeatCount:"indefinite"}))))},ir=function(e){return e.children?L.createElement(x6,$n({},e)):L.createElement(C6,$n({},e))},C6=function(e){return L.createElement(ir,$n({viewBox:"0 0 476 124"},e),L.createElement("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),L.createElement("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),L.createElement("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),L.createElement("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),L.createElement("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),L.createElement("circle",{cx:"20",cy:"20",r:"20"}))};const Wl=({adaptiveStyles:e})=>{const{dashInfo:t,balance:n,setBalance:r,setDashInfo:u,setDashboardSettings:a}=g.useCustomerDashboardStore(),{isAntistock:s}=g.useGeneralStore();return L.useEffect(()=>{(async()=>{var c;try{const[l,h,f]=await Promise.all([o2(),sl(),ca()]);u(l.data),r(f);const m=(c=h==null?void 0:h.data)==null?void 0:c.dashboardSettings;m&&a(m)}catch{}})()},[]),i.jsxs("div",{className:g.clx(s?qe.sidebarAntistock:qe.sidebar,{[qe.mobile]:e!=="desktop"}),style:{paddingTop:s?"48px":void 0},children:[!t||!n?i.jsx(i.Fragment,{children:s?i.jsx(N.Loader,{}):i.jsx(E6,{adaptiveStyles:e})}):!s&&i.jsx(h6,{email:t.email,balance:g.formatPrice(n),adaptiveStyles:e}),i.jsx(g6,{adaptiveStyles:e})]})},E6=({adaptiveStyles:e})=>i.jsx(ir,{speed:2,width:320,height:120,viewBox:"0 0 320 120",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",className:g.clx(qe.skeleton,{[qe.mobile]:e!=="desktop"}),style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"280",height:"100"})}),y6="_balanceContainer_lnfgz_1",T6="_headerTitle_lnfgz_12",k6="_balanceHeader_lnfgz_16",A6="_balanceAmount_lnfgz_23",S6="_balanceAmountTitle_lnfgz_36",I6="_balanceAmountValue_lnfgz_41",N6="_transactionDate_lnfgz_69",v6="_transactionItem_lnfgz_76",w6="_transactionDetails_lnfgz_84",D6="_iconWrapper_lnfgz_89",L6="_transactionInfo_lnfgz_100",P6="_transactionTitle_lnfgz_105",R6="_transactionId_lnfgz_109",M6="_transactionAmount_lnfgz_115",O6="_added_lnfgz_120",j6="_removed_lnfgz_123",F6="_noItemsBlock_lnfgz_127",B6="_pagination_lnfgz_136",H6="_antistock_lnfgz_142",U6="_modal_lnfgz_153",V6="_header_lnfgz_12",$6="_form_lnfgz_165",z6="_label_lnfgz_171",q6="_bonusBlock_lnfgz_184",Z6="_gatewayList_lnfgz_198",W6="_gatewayButton_lnfgz_205",Y6="_selected_lnfgz_215",G6="_gatewayName_lnfgz_218",X6="_error_lnfgz_221",K6="_submitButton_lnfgz_226",Q6="_addBalanceButton_lnfgz_248",J6="_gatewayIcon_lnfgz_267",em="_loaderContainer_lnfgz_291",tm="_transactionsContainer_lnfgz_299",nm="_transactionsHeader_lnfgz_8",rm="_transactionsContent_lnfgz_313",Ae={balanceContainer:y6,headerTitle:T6,balanceHeader:k6,balanceAmount:A6,balanceAmountTitle:S6,balanceAmountValue:I6,transactionDate:N6,transactionItem:v6,transactionDetails:w6,iconWrapper:D6,transactionInfo:L6,transactionTitle:P6,transactionId:R6,transactionAmount:M6,added:O6,removed:j6,noItemsBlock:F6,pagination:B6,antistock:H6,modal:U6,header:V6,form:$6,label:z6,bonusBlock:q6,gatewayList:Z6,gatewayButton:W6,selected:Y6,gatewayName:G6,error:X6,submitButton:K6,addBalanceButton:Q6,gatewayIcon:J6,loaderContainer:em,transactionsContainer:tm,transactionsHeader:nm,transactionsContent:rm},um=async(e=1)=>await R2({PageNumber:e}),am=async({price:e,gateway:t,customerEmail:n})=>await s2({customerEmail:n,price:e,gateway:t,tsId:g.useGetTsId()}),wo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABcCAYAAAD50zLWAAAVdklEQVR4nM2da4hs2VXHf2ufU1XdffvOnfdN5pmZTGYm88xjMuRhkBAUgyIoBNHgp3wV/CAoYgQ/KQQi+SAiShQ1QhCNCuoXjYqIiZiJ7zFGY5QQNWHIa3K7u6rOXn8/7L3Po+pUdfWde/veBaer6jz22Xvt9V5r7zZ770coYGaA4xbac0jGlQV87VjhSoOkdwMfIthTQAAHMM4HlD+XwEvA14HP5eNTwCeAK8AMOFEwuGVfNg3Y3oQwrc0BKTVjDm7IzLT6IgDlUSW8jEN9SoeN9DLDhYyHEB8B7gVCHtB5Ia8PE+DVwGXg8dwXgAj8JfBrwF8hfYmT5VJeA5hjUBshI8QD2Cvsfth6SkoocpHn6D3AgzIqOmq4nqCVYxUCaQLLtQp4G/DrwL8Av8rCX8PRXHp5bv7yXH5lIS1dSowjgtEeVwEDBBbSHgzABa5CaU8BCzLfrgz0WsNZ2yxInuXfU+CHkD5H5KPM/QmunMDREh3NsWWUuTAzZJbYdASJ29gXRimw97BIVOiOJeQ+SjfrcGPYd1doTChxkd6H+8dZ+Ps5Wk50ZYG/PEdXTsBFHQI2gsSww/C2IhBIZOlSps6nzazpXz37uM4M/XdY7zitD5PeMxF4LfCLuD7AUuhkYbqyCH48R9FbBPaROMKRazCKwCAwV2pAwqIj6U7ggozpyPPXgxJLm32KH+3uyDPdd2GZuYWogJ/G9Rs03MIyGkdL4tGJxRhxerIpGLLTkbiGQEndQxI0QhEz8VqSXFGSGwTZuSqSTUgsfRgTK0OKLSpXeh/Sb+HaY9GIkwU6mhvu68+cAttZWEDjhRqfB4KkIBtovuspB7cNpn9+9Xr7OysBA8wwTMiEIb0L168wX0w5WVQcz9F8YSanp/RPHVvYRKKFfYMrI9EekNTXSgaYrif6doNNPWiRn6F/DhP75vpeXD9C49Ear1k0KIkrAO0i4gNs5nMD3N1wF/BMunV477gNf1PCGKIPTPpxi/4E7tGWEYtJCkqyVqlsgZaFNwrLZAcGEgLX4CagwKuHJO8vm+vnLUpEhyYmx+EUxBXYqkSUbEAz16tx3X1te39TgHCh6N+pJr7Loot5Q/Ad7JcMLQILxgeYd4EbEJ4ot12ty3OzgplJyVT7CUWv5Y430fAiB7dDYBvrAkFI0hMUU2Lt/o6IdyX7mwSSmhUN4JLeGqIusYyiicXzKrBxYJ0MtHV5FhJ5A9xDsEVqanhTUiIBsyp/7obEIip2sfavB1gym4ut0ij6ocf4HUiVOTiGpFVTaTA4mVGDZ6QYJAMZooMLP15AdBH0dnPZqj1rSvgfIi1gBlLc2HlJKbik0rPrSbmrcY8OzMyEB4Qb7hyfvLvam34MsJh7NsLFBkghXavXLyWEyCNEgVSTojC1mSm3Z13nhnrIe7gYM3GKfYnHNB1l8mTnotHbSTOzzKcBk0mYgj1Ps9yXpougXgxqrJ0s4uqWJYtyKP5fzAOFS8DFkTba5lcM7O6GEvm1vnMeQUuIC8wTpRc8nwcCh5ItWD2bSlalLobwkJaLKJ95RxyWwnmhZelBE4kCx+SWWgS+iSHvbnDh0guDul/D5hLbEpcwP4JmjmIDvhwZ2XmAYVTEuIftHWB17UzqfZp4UeZftRBMdZC5WuJqNXYbKlhlYehMl2RAA7yezT5zQZclxydmZZJYZQ0nMcLyBBZH0CzSBJmvtXZ+IGx5ArGRTyaYHUi33zKzO2+pONwH96iFwzJLxGJg95Rfhxj1RuyeWNiFpdzDepgIVJBFb+hrrl7fvjSHlupihzyFdHC+hyxH3Jsl4ejI7BvfND1w+Wd0352Pc9uFhr0JXNiDvUkKb4VO3BU3r4fAgjy1Wjhj+s09xLWIzPJqwKktZkdsRVlICio2aYL6ExaUxMh5H5D6Qg69L+YVd178YWaTFzStf5a9ibgwgYv7sD/FqgBVaJEo64KVRcqnBIHLiG64YWplYB9PBpgbhWXXhKh67KnQdVjEId7NEvUFGwavrvdBtjZyuLWaTYIqg0k1RU2N8ZMczP6L/embOJjBwQzNJhDMqILJMIJZXwYaEuag6AGpxnWnpDtGrd2EkOBAIuSClKH6SHorJGQWymufr9LUhNBv85xARatiwppvXIFX3QZghFZrPIjx50zD+2D2hyQSg+NFQqQXJaLMQsJaO20Zl0gPt3nhlbebi86OTh7eZhZOXNqitiCqIE+np2auOXgx5mVCKXT3yAMZF1XBiZAOQB9nWv0gzH4n9VvGydIwhbqN1RaR5HmkLiE9C6MGcSK/9EA6YRWseh8KLVal2FJfQnjPKrLu2rlBLguQ5f5Ma3jVHWlCW2tPpPR7MCz+MtPqX2H2YmviLZrB1Ge14Ebj2TnmyT7yTjN0N6EgkKO8Wq7HeUtnShT9PI8ycDPs9otw6RBCVU6Cl4l1IbsVmj9iEu4rMpG9iUJf7ljBgrtwVeZ6vB1nTxF0Y49bgwHZvO88EC9mi2gZuj+Ya02F7eSMHH1YNPhr74e6GloH/XZwkN2LxY8yrTwhcNpSYMltiJIPkG4BHtlk13XgvWvV4IqyeIDsgcRmnc2HjW++djVwmgnT7+fD9wGhtWiKGUdx3yQHr5A9B837mVbiwkyDnGvxUPKD9wJrUWgfGeMYkgv1hTJHEuYRtDk6cu6Q5Bh68mGYzTrq9B6VKjunJfwC+xB+DvxeJtW06FFIiEvxluTCXQamuyRWwDeycjJTI8QG+SkUeB4wcAfAZlN47MEOcd4X+mXyQ3pKISblyl2I94LPS4laMobMRHSCI8SzpJKITHWDvP0I+CAGmNhXqbcuiIvkwrWzfH42n7Vx0b75ZLBYorc+AWHSu7u4euVh652nxkwQhFXfQwqotko7a2GZpEPgjcOWXgHIoZn3lEg4F6M5+aqBSAreyugozCo43Ie7Lyd/d0V+j1StqB/AB96CwtMDLdyG2KVvAY+sduaqwXMQ4dyhEz8pxhkBg7qGxRKeegwOL6wjL4wrm7bRBBeAbwut8JKlKKvkSrx4Pz0j46y5i85+zOzb/jxPr0M4SmVqRucyLpbYG5+kevCB9ZrA5JGd3nA6vr115UwJSeYyXI8J7mG70Nv+hk2Td06ib0B5lt9dvj/8APWzjxPL70IcYSPyNqH0zW0wQZLMRYjIV9j3FYPHITuoypGa6+e+DQOeiR0lYfdcZvLON6c3h96Etu7bKPT1RP/z9i6YIKFGeBOR9HqwE7py2VcAsYyo1xdWznHdlIokQl1h0yncckh4x1uIFtY55OxzacBtoTxsLqzJ9pzr7ebaK3eGqyQUa+0q76RGMVK95/+eirwtQb1yR2lj5ZIEOonYpYvU73gLmtVt4aT32Xfzi/ug1Wt1icIkLZVjdoRH11sOhIyInfCZcwdWv5xTpDnL1feLzaDukvHrcnMFSUVOa/V69rRseA4M7riEP3I//tgjaH+G5svM3jspi9XOtF57/v21OgfzJFcSEi4z52GSAinzqaCz57/NDJZLWCzARQiBaAAVhIDldRptsnnDgERokZe6M/R8Ur6l90AVksY9PIS3PYvdfRdIxPmiQ8UZhtF2Y11SvlRn28+IYI2waI8JTVtpOcJetmI7jkHL9qHG9qaoJNJbUVi0pLdd3BQ665DXk/lZKbR9MBJVVxXccSs8+hDh/lfDbC9xWKH4axPxKd34z7p/Rk1E7k+1aF7F3hlsuHZwX3kptR867yM5BMKKlZS9g8HQVn60ZDAoF+iZH3sT7J674aH7CK+6C59MUrVpswTrAhr08rxtScvpAY412Zc/P9PlRFzKacwncibeBkSwUmWwCxigaZ0UVI+KEvL6psZG3k3eUW/AFkIXRQ417E0ID94DD92H3XYrqgMel6hZjLhndF7GtYFPdBSYfGCX9FiRKP25vhqQhC1jmwpURlwIgVBXSDWxWWzkKpEoxjyivRkcHqBLh3DxAtqfwWxGdfkOONhP9wfHi789YFd1SCvn27zMmXyFvi32ZeCTdZEl2ZA2wetknUOzqe5lJwhCj74O7rkN3XUr7M9QCChk5vWYtXovW7feSBYn6fsAEYC3Y+py2eW5nsDsoeDMMlAbPv8AOKmBKdHnil546hmS9TtaP72K0L4wH4WnH0qJabPkzHvOt1ihghIdWZmk5Crka/2T+f5c/FTNZrg7UkClvdMM9LNQ37risfQyfh+oandvcKBxgOcwm5If2UR3u1ClzAl3X0K3Xchte2cUued0Zo9a1jq+8eWd8W1GE5sebWxC3sgE70KJ62MsweYvEP1PidFrJG/LOaS7y9ty1j593fCuEhPdeH1SDSO80P324sifPo4hrNh8q+3vIm52ZePV+1wGBFwfpIkNTbSaXKNH9AA8SUireWRrBuTOUJaQcjAbIkgaRjyuiUl2rmDAf+P+SzZvqpQXLusjXBG355F2Wn0kiaBSF1RIdeXBi3sdWxVKSX7jNR3VOUEE5hb9+20ZjUUDi4aAZL0U3huLV5X+DqT3ADbJQDPr0h2Heyu5YFZk1Csc0vWH/rgnwIdp/DM6WaL5Ulo2BCJF/u0j7gcKrwNb/FMNK+wLQj0buUwqmJ62JQM3MxJ79hEy8UWi/xTzZcXJApooXAq5BgZcr6FbpAw7DG2bJg4Hs4TE8Qd3HcT1hF3liANflvRumugsGrNlXg7mUjBXShyI++yMeyH0KXA1S6nDHE7chqyeWXdOIIZvTd/NRLBuaXYHBpyY+D5cnyf6RPNlVPRSpW+pUjAKc3sXUBktZTXWmQgbsdD6s+qxL6BbD67RmK8JbJ6qfihsKPPL3jTfreh/w8lCfPO4oYn08EKt6ITGcenh8mRuprJUln723hpJgbQWv65lKOnM3dlyLvuxg/PFOv2iie9SEz/PycJ4+QTmS6wZMmmoFhGWAniqlHHI8qYq6rzQjb1bUSap1ZBtwBuucbXyvR8M6JvxS8o6DVfA9Ulc71ETP8/xAl4+MY4Xa8gDqLVsTNLUzF4jiGYW1MbJtlNMia60oalCcbM6KZC+419uvDGwaSAGNEhTUk3Q14EPIn2I6A3HC7PjBTpeyFY9ngw1TQxg9wB7yYZzARY0vtRjFwj7s/HSlzHXrY/46wenOO4I15+Y9KM0/m800TheoKO5egqju7vXZo0bBs9gJrVefVhnyy29KtSX6qAFB9Otz50jlClbZd0OXH+B68Mm/bGW0ZgvjeOF2aLJy14Hd6+KBKtJvP+81hvf6gMX9oWseft5kj4CW993RZG0imXbW14BDGOAq379/wG/Z+J3JX3CJDhZwnwpjhdGEyXXNuS15+pMaa8r9kcpiNTwoVMVycCornsGdFsNBW1pRQlHbWkSsBwHahd5txVWu0CZqNSxrwB/b+KvgT8DPgMcAXssGnSyhJMlNl/CMp5pSuu8O8WzSGfagKP/Buvhpaoq4h0XSWtAjG45l60wwErsLp8d+S7gJVy/KXiRqCtmNpENtt8L6YUYaXO0b5nZy8CxuT4bXF+16G6NoyZa3lzCFP2kOTpOzDFObVsCiglqMzuUdG9bpdo9WHT29g3KbJguVhWwqkSH+xdG4naFtbcrK5l4j1wvWHRTimESzBpJVe6nSQPajMrvVHS88W71QXRl37+tjthCOafSVC24LDgoBged0L0qyWT7U0TCuq9WP63dPN7FdkDpuY9Z9BeYLyudLN2iR1zmUshGKFBKE1Zal2jjne1Obu31Actdbe6nBt5gZutLz4ewhtDRhDvgh7M2T9Lah9taDaPz33Oy9aIvmpqTpXOyMCVq6pfjpQfWF0OXC628TWkY05gcvdrEWS3pHTDYkdJyg5IUGKERM2sxmr73NPKFvS6Pexrkwvd2AbO11NepGulFxRhtGYOWMdVw5yRiKwTUCvB+Xzum6l1TpsLN9Thng5q0B+kqSIU1VmBQ1sE6n+sV2IBWEJO1ryRDeglR4x7JRu2KhUDa/yD1ude/rfLrqjyEEajN7OEd2hudp9X6FDNrZeCOkGYpU15RBD2FcGTiUynd0LWazZkyf63EvBH71tTAQ0BDt6Pvqgpf61WLuBX5JsCnNRZMreyTTt3taIMWPDHxBaWUgxTdwtC3NDOTnypoz/zeM0Ews78zs0XeIs6tA5XozOqRe5/zQ5I3S5yIHrwdaiQiaUGNw1Vs0pjfUwGflbRU3sO1XxtoG5Ot5wu1mb0V+AHgnSQqnJCUyqhmXs2DSHFBHSbhYC/4wfQNBHuy2xAIbTGIBggYKV6qgX+nLfzscv39LWYG65BH4HqjuY4TBPx2PvrW/5hv3J7qSmpnzsEUv3RwwK0HHwSezLfpVEsyiwGt6CMZaRmp8bcaGrrrrotGrZJzg9ruPIT1SbTesW2Cpbo2btkXt104Yn/6zMi6i53Hl220trTJ0T8V1kXj83Fqbc51hlr7o6nHHXsUUury9kPj0oGQnk610OTahrPRRrc8Nvm0Jv4n7aKeTRfvjOKbBWrSerm0DqtEPzrwzW5Yj8OntQh2iahLmEXcdyllHXgOWSm1ml/Sf+B+hWU0i+0ucjcd1Jj115+uy7zTZty9JObfnmXaWSjPiiun/ruSo/+PWkasiXjTrbMbpA5uAqgZbne5Zoz2ZfRg+RR0OlqCZXyEUle46yC7+sCC9MIBUdIXLDoqkRMGrl7bPV8/d65Qm1UaMSGAgijT6rWWUMzMDvbSfe7PvSLKGCK9Al7IKyxT51LVWMsjg9rpGwg7FK/AmmQsECzt5lOFCWYP0FHSWaCThcMS/C92d1iKCVi3fKJUh53juu1RaDfiNnVHH7axh5mlAvIqHJL+08MZh7PWeNEUc5IR3fkxecOvPsK85YSzvfVaQruYYVMnxs4PWGdSGVW4Hbi8gfo2TIFWv3TU5/pfk75OWj3VGdgrFkGhxhsqA8uXNsY3QoGyLvYHOWQdzCwEqC2A7scsYPId/I9tUNTSP+MyNiSz+4pjU8L7vCBAh5ixrFf/dy/Ckp/OLGyW3LfNyNs0ypEAKA58Wu6p/Lilz+7WUhV7Iz2Qti/9H6fJkhJGD1iKhgQTITjGm66S7kZ8bYTrH9L2eyp72Fy7COg1hjWPYXUNyKbrMlBageSYPbR62ym/x6B/z5dwOT0bsA9uVx0CvOZwqsu1uvFO32YMZRMH8RzrCZ2+SbJttKvIPTHp00SPXX31ygM3WO71YRSBOwVQQrsd5oNI9Qb5t4sDO5SDrhfzDpphTYmMJ+NvKAwQuGvkKf1/grRyklTF+VK+pJXP02B4v9kVM/uEyv8wyVsG5O1YRu3UGw2jFLhNvuSNjyj/zM7EEfBjJM+h316f+rbNTGH3bwG/AHygrRrt++E3GeIK/D/1R7dpRZ4HDAAAAABJRU5ErkJggg==",sm="_antistockLogoWrapper_ax6a6_1",im="_applePayGooglePay_ax6a6_13",om="_debitCreditCard_ax6a6_20",cm="_cryptocurrency_ax6a6_27",pa={antistockLogoWrapper:sm,applePayGooglePay:im,debitCreditCard:om,cryptocurrency:cm},lm="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%20-34.55%20120.3%20120.3'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.8%206.6c1.4-1.8%202.4-4.2%202.1-6.6-2.1.1-4.6%201.4-6.1%203.1-1.3%201.5-2.5%204-2.2%206.3%202.4.3%204.7-1%206.2-2.8M24.9%2010c-3.4-.2-6.3%201.9-7.9%201.9-1.6%200-4.1-1.8-6.8-1.8-3.5.1-6.7%202-8.5%205.2-3.6%206.3-1%2015.6%202.6%2020.7%201.7%202.5%203.8%205.3%206.5%205.2%202.6-.1%203.6-1.7%206.7-1.7s4%201.7%206.8%201.6%204.6-2.5%206.3-5.1c2-2.9%202.8-5.7%202.8-5.8-.1-.1-5.5-2.1-5.5-8.3-.1-5.2%204.2-7.7%204.4-7.8-2.3-3.6-6.1-4-7.4-4.1'/%3e%3cg%3e%3cpath%20d='M54.3%202.9c7.4%200%2012.5%205.1%2012.5%2012.4%200%207.4-5.2%2012.5-12.7%2012.5H46v12.9h-5.9V2.9h14.2zm-8.3%2020h6.7c5.1%200%208-2.8%208-7.5%200-4.8-2.9-7.5-8-7.5h-6.8v15h.1zM68.3%2033c0-4.8%203.7-7.8%2010.3-8.2l7.6-.4v-2.1c0-3.1-2.1-4.9-5.5-4.9-3.3%200-5.3%201.6-5.8%204h-5.4c.3-5%204.6-8.7%2011.4-8.7%206.7%200%2011%203.5%2011%209.1v19h-5.4v-4.5h-.1c-1.6%203.1-5.1%205-8.7%205-5.6%200-9.4-3.4-9.4-8.3zm17.9-2.5v-2.2l-6.8.4c-3.4.2-5.3%201.7-5.3%204.1%200%202.4%202%204%205%204%204%200%207.1-2.7%207.1-6.3zM96.9%2051v-4.6c.4.1%201.4.1%201.8.1%202.6%200%204-1.1%204.9-3.9%200-.1.5-1.7.5-1.7l-10-27.6h6.1l7%2022.5h.1l7-22.5h6L110%2042.4c-2.4%206.7-5.1%208.8-10.8%208.8-.4-.1-1.8-.1-2.3-.2z'/%3e%3c/g%3e%3c/svg%3e",dm=()=>i.jsx("svg",{width:"22",height:"21",viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M20.9852 9.72294L16.7571 13.4129L18.0236 18.9067C18.0906 19.1939 18.0715 19.4945 17.9686 19.7709C17.8658 20.0472 17.6837 20.2872 17.4452 20.4606C17.2067 20.6341 16.9223 20.7334 16.6277 20.7462C16.3331 20.7589 16.0412 20.6845 15.7886 20.5323L10.9971 17.6261L6.2158 20.5323C5.96321 20.6845 5.67135 20.7589 5.37671 20.7462C5.08208 20.7334 4.79773 20.6341 4.55923 20.4606C4.32074 20.2872 4.13866 20.0472 4.03578 19.7709C3.9329 19.4945 3.91378 19.1939 3.9808 18.9067L5.24549 13.4186L1.01643 9.72294C0.792748 9.53002 0.631004 9.27536 0.55148 8.99089C0.471955 8.70642 0.478189 8.4048 0.569401 8.12385C0.660612 7.84291 0.832741 7.59515 1.0642 7.41164C1.29566 7.22813 1.57615 7.11705 1.87049 7.09231L7.44486 6.6095L9.6208 1.4195C9.73443 1.14717 9.9261 0.914551 10.1717 0.750929C10.4172 0.587308 10.7057 0.5 11.0008 0.5C11.2959 0.5 11.5844 0.587308 11.8299 0.750929C12.0755 0.914551 12.2672 1.14717 12.3808 1.4195L14.5633 6.6095L20.1358 7.09231C20.4301 7.11705 20.7106 7.22813 20.9421 7.41164C21.1736 7.59515 21.3457 7.84291 21.4369 8.12385C21.5281 8.4048 21.5343 8.70642 21.4548 8.99089C21.3753 9.27536 21.2135 9.53002 20.9899 9.72294H20.9852Z",fill:"currentColor"})}),Yl=({isAntistock:e=!1})=>e?i.jsxs("div",{className:pa.cryptocurrency,children:[i.jsx(Kt,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9656 10.3538C18.2402 8.58846 16.8424 7.63956 14.9309 7.00654L15.551 4.6153L14.0371 4.2526L13.4335 6.58088C13.0355 6.48543 12.6267 6.3955 12.2205 6.30635L12.8285 3.9627L11.3155 3.6L10.6951 5.99046C10.3657 5.91836 10.0422 5.8471 9.7284 5.77202L9.73015 5.7645L7.64241 5.26323L7.23968 6.81792C7.23968 6.81792 8.36289 7.06548 8.33922 7.08071C8.95228 7.22783 9.06315 7.61803 9.04474 7.92731L8.33841 10.6515C8.38063 10.6618 8.43538 10.6767 8.49581 10.7001L8.45182 10.6895C8.41447 10.6805 8.37564 10.6712 8.33578 10.662L7.34575 14.4782C7.27083 14.6573 7.08066 14.926 6.65204 14.824C6.66721 14.8451 5.55169 14.5599 5.55169 14.5599L4.80005 16.2262L6.77019 16.6984C6.98594 16.7504 7.19915 16.8038 7.41019 16.8567C7.55766 16.8937 7.70408 16.9304 7.84957 16.9662L7.22309 19.3848L8.73527 19.7475L9.35568 17.3545C9.76879 17.4624 10.1697 17.5618 10.5622 17.6556L9.94386 20.0373L11.4579 20.4L12.0843 17.9859C14.6659 18.4556 16.607 18.2662 17.4241 16.0211C18.0824 14.2136 17.3913 13.171 16.0331 12.4911C17.0223 12.2717 17.7674 11.6462 17.9661 10.3539L17.9656 10.3536L17.9656 10.3538ZM14.5079 15.0208C14.0786 16.6792 11.3788 15.9936 10.1436 15.6799C10.0325 15.6517 9.93318 15.6265 9.84849 15.6063L10.6798 12.402C10.7831 12.4267 10.9092 12.4539 11.0521 12.4848L11.0521 12.4848C12.3298 12.7605 14.9477 13.3254 14.508 15.0208H14.5079ZM11.3014 10.9928C12.3312 11.2571 14.5778 11.8336 14.9691 10.3263H14.9692C15.3688 8.78475 13.1854 8.31998 12.1191 8.09299C11.9992 8.06746 11.8933 8.04493 11.8069 8.02422L11.0532 10.9303C11.1243 10.9474 11.2078 10.9688 11.3014 10.9928Z",fill:"#F7931A"})})}),i.jsx(Kt,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M11.3837 16.4017C13.6027 16.4483 15.781 16.4937 18 16.5857C17.9187 16.9525 17.8362 17.2727 17.7956 17.5941C17.6712 18.0529 17.5481 18.4664 17.4668 18.9252C17.4249 19.1546 17.3424 19.2 17.138 19.2H6.53438C6.90513 17.5941 7.27452 16.0815 7.64386 14.4756C7.06883 14.705 6.57507 14.9344 6 15.2092C6.16497 14.5223 6.32877 13.9261 6.53438 13.2832C6.53438 13.1924 6.65762 13.1458 6.74007 13.1458C7.11071 12.963 7.52084 12.8243 7.89018 12.6403C8.01344 12.5962 8.13773 12.4588 8.13773 12.3201L9.86171 5.16681C9.90358 4.89203 9.98489 4.8 10.273 4.8H14.0128C13.5608 6.67939 13.1495 8.56137 12.6976 10.5328C13.3552 10.2126 13.9721 9.93657 14.6703 9.66179C14.5878 10.0286 14.4647 10.3487 14.424 10.6702C14.3415 11.4051 13.9721 11.8172 13.3145 12.0013C13.0276 12.092 12.7383 12.2294 12.4513 12.3681C12.3494 12.436 12.2648 12.5305 12.205 12.6429C11.9169 13.8807 11.6288 15.0731 11.3825 16.3109V16.403L11.3837 16.4017Z",fill:"#345D9D"})})}),i.jsx(Kt,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsx("path",{d:"M19.9946 3.6L19.8636 3.98284V15.0909L19.9946 15.2034L25.9879 12.1555L19.9946 3.6Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M19.9946 3.6L14 12.1555L19.9946 15.2034L19.9934 9.81181L19.9946 3.6Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M19.9948 16.1802L19.9209 16.2577V20.2146L19.9948 20.4L25.9917 13.134L19.9948 16.1802Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M19.9948 20.4V16.1802L14 13.134L19.9948 20.4Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M20.0067 15.2052L26 12.1574L20.0067 9.81369V15.2052Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}}),i.jsx("path",{d:"M14 12.1555L19.9934 15.2044V9.81181L14 12.1555Z",fill:"#ffffff",style:{transform:"translateX(-8px)"}})]})}),i.jsx(Kt,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M7.4623 17V13.962H4.6763V12.898H7.4623V9.846H8.5123V12.898H11.2843V13.962H8.5123V17H7.4623ZM16.3943 17.168C15.6476 17.168 15.0176 17.056 14.5043 16.832C13.991 16.5987 13.6036 16.272 13.3423 15.852C13.081 15.432 12.9503 14.9327 12.9503 14.354V14.172H14.1963V14.354C14.1963 14.9327 14.3783 15.376 14.7423 15.684C15.1156 15.9827 15.629 16.132 16.2823 16.132C16.9356 16.132 17.463 15.992 17.8643 15.712C18.2656 15.4227 18.4663 14.9653 18.4663 14.34C18.4663 13.8827 18.359 13.5327 18.1443 13.29C17.9296 13.0473 17.6496 12.8793 17.3043 12.786C16.9683 12.6833 16.609 12.632 16.2263 12.632H15.2183V11.596H16.2683C16.623 11.596 16.9496 11.54 17.2483 11.428C17.547 11.316 17.785 11.134 17.9623 10.882C18.149 10.6207 18.2423 10.2847 18.2423 9.874C18.2423 9.50067 18.1583 9.19733 17.9903 8.964C17.8316 8.73067 17.6123 8.558 17.3323 8.446C17.0523 8.32467 16.7443 8.264 16.4083 8.264C16.035 8.264 15.699 8.32933 15.4003 8.46C15.1016 8.58133 14.8636 8.768 14.6863 9.02C14.5183 9.272 14.4343 9.58933 14.4343 9.972V10.154H13.1743V9.902C13.1743 9.37 13.3096 8.90333 13.5803 8.502C13.8603 8.10067 14.2383 7.788 14.7143 7.564C15.1996 7.34 15.755 7.228 16.3803 7.228C16.9963 7.228 17.5376 7.326 18.0043 7.522C18.4803 7.718 18.8536 8.00733 19.1243 8.39C19.395 8.77267 19.5303 9.244 19.5303 9.804C19.5303 10.2147 19.4556 10.5647 19.3063 10.854C19.157 11.134 18.961 11.3673 18.7183 11.554C18.4756 11.7407 18.2143 11.8947 17.9343 12.016V12.072C18.4476 12.2213 18.877 12.492 19.2223 12.884C19.5676 13.276 19.7403 13.7893 19.7403 14.424C19.7403 14.9933 19.5956 15.4833 19.3063 15.894C19.0263 16.3047 18.6296 16.622 18.1163 16.846C17.6123 17.0607 17.0383 17.168 16.3943 17.168Z",fill:"#757575"})})})]}):i.jsxs("svg",{width:"72",height:"24",viewBox:"0 0 72 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsxs("g",{clipPath:"url(#clip0_1466_4561)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9656 10.3538C18.2402 8.58846 16.8424 7.63956 14.9309 7.00654L15.551 4.6153L14.0371 4.2526L13.4335 6.58088C13.0355 6.48543 12.6267 6.3955 12.2205 6.30635L12.8285 3.9627L11.3155 3.6L10.6951 5.99046C10.3657 5.91836 10.0422 5.8471 9.7284 5.77202L9.73015 5.7645L7.64241 5.26323L7.23968 6.81792C7.23968 6.81792 8.36289 7.06548 8.33922 7.08071C8.95228 7.22783 9.06315 7.61803 9.04474 7.92731L8.33841 10.6515C8.38063 10.6618 8.43538 10.6767 8.49581 10.7001L8.45182 10.6895C8.41447 10.6805 8.37564 10.6712 8.33578 10.662L7.34575 14.4782C7.27083 14.6573 7.08066 14.926 6.65204 14.824C6.66721 14.8451 5.55169 14.5599 5.55169 14.5599L4.80005 16.2262L6.77019 16.6984C6.98594 16.7504 7.19915 16.8038 7.41019 16.8567C7.55766 16.8937 7.70408 16.9304 7.84957 16.9662L7.22309 19.3848L8.73527 19.7475L9.35568 17.3545C9.76879 17.4624 10.1697 17.5618 10.5622 17.6556L9.94386 20.0373L11.4579 20.4L12.0843 17.9859C14.6659 18.4556 16.607 18.2662 17.4241 16.0211C18.0824 14.2136 17.3913 13.171 16.0331 12.4911C17.0223 12.2717 17.7674 11.6462 17.9661 10.3539L17.9656 10.3536L17.9656 10.3538ZM14.5079 15.0208C14.0786 16.6792 11.3788 15.9936 10.1436 15.6799C10.0325 15.6517 9.93318 15.6265 9.84849 15.6063L10.6798 12.402C10.7831 12.4267 10.9092 12.4539 11.0521 12.4848L11.0521 12.4848C12.3298 12.7605 14.9477 13.3254 14.508 15.0208H14.5079ZM11.3014 10.9928C12.3312 11.2571 14.5778 11.8336 14.9691 10.3263H14.9692C15.3688 8.78475 13.1854 8.31998 12.1191 8.09299C11.9992 8.06746 11.8933 8.04493 11.8069 8.02422L11.0532 10.9303C11.1243 10.9474 11.2078 10.9688 11.3014 10.9928Z",fill:"#F7931A"})]}),i.jsxs("g",{clipPath:"url(#clip1_1466_4561)",children:[i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M27.3837 16.4017C29.6027 16.4483 31.781 16.4937 34 16.5857C33.9187 16.9525 33.8362 17.2727 33.7956 17.5941C33.6712 18.0529 33.5481 18.4664 33.4668 18.9252C33.4249 19.1546 33.3424 19.2 33.138 19.2H22.5344C22.9051 17.5941 23.2745 16.0815 23.6439 14.4756C23.0688 14.705 22.5751 14.9344 22 15.2092C22.165 14.5223 22.3288 13.9261 22.5344 13.2832C22.5344 13.1924 22.6576 13.1458 22.7401 13.1458C23.1107 12.963 23.5208 12.8243 23.8902 12.6403C24.0134 12.5962 24.1377 12.4588 24.1377 12.3201L25.8617 5.16681C25.9036 4.89203 25.9849 4.8 26.273 4.8H30.0128C29.5608 6.67939 29.1495 8.56137 28.6976 10.5328C29.3552 10.2126 29.9721 9.93657 30.6703 9.66179C30.5878 10.0286 30.4647 10.3487 30.424 10.6702C30.3415 11.4051 29.9721 11.8172 29.3145 12.0013C29.0276 12.092 28.7383 12.2294 28.4513 12.3681C28.3494 12.436 28.2648 12.5305 28.205 12.6429C27.9169 13.8807 27.6288 15.0731 27.3825 16.3109V16.403L27.3837 16.4017Z",fill:"#345D9D"})]}),i.jsxs("g",{clipPath:"url(#clip2_1466_4561)",children:[i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M43.9946 3.59961L43.8636 3.98245V15.0905L43.9946 15.203L49.9879 12.1551L43.9946 3.59961Z",fill:"#252525"}),i.jsx("path",{d:"M43.9946 3.59961L38 12.1551L43.9946 15.203L43.9934 9.81142L43.9946 3.59961Z",fill:"#252525"}),i.jsx("path",{d:"M43.9948 16.1798L43.9209 16.2573V20.2142L43.9948 20.3996L49.9917 13.1336L43.9948 16.1798Z",fill:"#252525"}),i.jsx("path",{d:"M43.9948 20.3996V16.1798L38 13.1336L43.9948 20.3996Z",fill:"#252525"}),i.jsx("path",{d:"M44.0067 15.2049L50 12.157L44.0067 9.8133V15.2049Z",fill:"#252525"}),i.jsx("path",{d:"M38 12.1551L43.9934 15.204V9.81142L38 12.1551Z",fill:"#252525"})]}),i.jsx("rect",{x:"48",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("rect",{x:"48",width:"24",height:"24",rx:"12",stroke:"#F0F0F0"}),i.jsx("path",{d:"M55.4623 17V13.962H52.6763V12.898H55.4623V9.846H56.5123V12.898H59.2843V13.962H56.5123V17H55.4623ZM64.3943 17.168C63.6476 17.168 63.0176 17.056 62.5043 16.832C61.991 16.5987 61.6036 16.272 61.3423 15.852C61.081 15.432 60.9503 14.9327 60.9503 14.354V14.172H62.1963V14.354C62.1963 14.9327 62.3783 15.376 62.7423 15.684C63.1156 15.9827 63.629 16.132 64.2823 16.132C64.9356 16.132 65.463 15.992 65.8643 15.712C66.2656 15.4227 66.4663 14.9653 66.4663 14.34C66.4663 13.8827 66.359 13.5327 66.1443 13.29C65.9296 13.0473 65.6496 12.8793 65.3043 12.786C64.9683 12.6833 64.609 12.632 64.2263 12.632H63.2183V11.596H64.2683C64.623 11.596 64.9496 11.54 65.2483 11.428C65.547 11.316 65.785 11.134 65.9623 10.882C66.149 10.6207 66.2423 10.2847 66.2423 9.874C66.2423 9.50067 66.1583 9.19733 65.9903 8.964C65.8316 8.73067 65.6123 8.558 65.3323 8.446C65.0523 8.32467 64.7443 8.264 64.4083 8.264C64.035 8.264 63.699 8.32933 63.4003 8.46C63.1016 8.58133 62.8636 8.768 62.6863 9.02C62.5183 9.272 62.4343 9.58933 62.4343 9.972V10.154H61.1743V9.902C61.1743 9.37 61.3096 8.90333 61.5803 8.502C61.8603 8.10067 62.2383 7.788 62.7143 7.564C63.1996 7.34 63.755 7.228 64.3803 7.228C64.9963 7.228 65.5376 7.326 66.0043 7.522C66.4803 7.718 66.8536 8.00733 67.1243 8.39C67.395 8.77267 67.5303 9.244 67.5303 9.804C67.5303 10.2147 67.4556 10.5647 67.3063 10.854C67.157 11.134 66.961 11.3673 66.7183 11.554C66.4756 11.7407 66.2143 11.8947 65.9343 12.016V12.072C66.4476 12.2213 66.877 12.492 67.2223 12.884C67.5676 13.276 67.7403 13.7893 67.7403 14.424C67.7403 14.9933 67.5956 15.4833 67.3063 15.894C67.0263 16.3047 66.6296 16.622 66.1163 16.846C65.6123 17.0607 65.0383 17.168 64.3943 17.168Z",fill:"#757575"}),i.jsxs("defs",{children:[i.jsx("clipPath",{id:"clip0_1466_4561",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip1_1466_4561",children:i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip2_1466_4561",children:i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"white"})})]})]}),Gl=()=>i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9656 10.3538C18.2402 8.58846 16.8424 7.63956 14.9309 7.00654L15.551 4.6153L14.0371 4.2526L13.4335 6.58088C13.0355 6.48543 12.6267 6.3955 12.2205 6.30635L12.8285 3.9627L11.3155 3.6L10.6951 5.99046C10.3657 5.91836 10.0422 5.8471 9.7284 5.77202L9.73015 5.7645L7.64241 5.26323L7.23968 6.81792C7.23968 6.81792 8.36289 7.06548 8.33922 7.08071C8.95228 7.22783 9.06315 7.61803 9.04474 7.92731L8.33841 10.6515C8.38063 10.6618 8.43538 10.6767 8.49581 10.7001L8.45182 10.6895C8.41447 10.6805 8.37564 10.6712 8.33578 10.662L7.34575 14.4782C7.27083 14.6573 7.08066 14.926 6.65204 14.824C6.66721 14.8451 5.55169 14.5599 5.55169 14.5599L4.80005 16.2262L6.77019 16.6984C6.98594 16.7504 7.19915 16.8038 7.41019 16.8567C7.55766 16.8937 7.70408 16.9304 7.84957 16.9662L7.22309 19.3848L8.73527 19.7475L9.35568 17.3545C9.76879 17.4624 10.1697 17.5618 10.5622 17.6556L9.94386 20.0373L11.4579 20.4L12.0843 17.9859C14.6659 18.4556 16.607 18.2662 17.4241 16.0211C18.0824 14.2136 17.3913 13.171 16.0331 12.4911C17.0223 12.2717 17.7674 11.6462 17.9661 10.3539L17.9656 10.3536L17.9656 10.3538ZM14.5079 15.0208C14.0786 16.6792 11.3788 15.9936 10.1436 15.6799C10.0325 15.6517 9.93318 15.6265 9.84849 15.6063L10.6798 12.402C10.7831 12.4267 10.9092 12.4539 11.0521 12.4848L11.0521 12.4848C12.3298 12.7605 14.9477 13.3254 14.508 15.0208H14.5079ZM11.3014 10.9928C12.3312 11.2571 14.5778 11.8336 14.9691 10.3263H14.9692C15.3688 8.78475 13.1854 8.31998 12.1191 8.09299C11.9992 8.06746 11.8933 8.04493 11.8069 8.02422L11.0532 10.9303C11.1243 10.9474 11.2078 10.9688 11.3014 10.9928Z",fill:"#F7931A"})}),Xl=({isAntistock:e=!1})=>e?i.jsxs("div",{className:pa.debitCreditCard,children:[i.jsx(Kt,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M12.371 10.7018C12.3586 11.7047 13.2368 12.2645 13.8984 12.5972C14.5782 12.9387 14.8065 13.1576 14.8039 13.4629C14.7987 13.9302 14.2616 14.1364 13.759 14.1445C12.8821 14.1585 12.3722 13.9001 11.9669 13.7046L11.651 15.2304C12.0577 15.4239 12.8107 15.5926 13.5916 15.6C15.4246 15.6 16.6239 14.666 16.6304 13.2179C16.6375 11.38 14.1676 11.2783 14.1845 10.4568C14.1903 10.2077 14.4206 9.9419 14.9252 9.87428C15.1749 9.84013 15.8644 9.81402 16.6459 10.1856L16.9527 8.70932C16.5324 8.55131 15.9921 8.4 15.3195 8.4C13.5942 8.4 12.3807 9.3467 12.371 10.7018ZM19.9007 8.52721C19.566 8.52721 19.2838 8.72873 19.158 9.03805L16.5396 15.4915H18.3712L18.7358 14.4518H20.9741L21.1856 15.4915H22.7999L21.3912 8.52721H19.9007ZM20.1569 10.4086L20.6855 13.0237H19.2378L20.1569 10.4086ZM10.1501 8.52721L8.70631 15.4915H10.4517L11.8949 8.52721H10.1501ZM7.568 8.52721L5.75124 13.2674L5.01637 9.2369C4.93011 8.78698 4.58959 8.52721 4.21145 8.52721H1.24147L1.19995 8.7294C1.80964 8.86598 2.50236 9.08626 2.92201 9.32193C3.17886 9.46587 3.25215 9.59174 3.33647 9.93386L4.72839 15.4915H6.57303L9.40097 8.52721H7.568Z",fill:"#254AA5"})})}),i.jsx(Kt,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsx("path",{d:"M14.5901 7.2835H9.39431V16.7165H14.5901V7.2835Z",fill:"#FF5A00"}),i.jsx("path",{d:"M9.74021 12C9.74021 10.0835 10.6318 8.38252 11.9999 7.2835C10.993 6.4835 9.72288 6 8.33751 6C5.05551 6 2.39991 8.6835 2.39991 12C2.39991 15.3165 5.05551 18 8.33751 18C9.72288 18 10.993 17.5165 11.9999 16.7165C10.6298 15.633 9.74021 13.9165 9.74021 12Z",fill:"#EB001B"}),i.jsx("path",{d:"M21.5999 12C21.5999 15.3165 18.9443 18 15.6624 18C14.2769 18 13.0068 17.5165 11.9999 16.7165C13.3853 15.6155 14.2596 13.9165 14.2596 12C14.2596 10.0835 13.368 8.38252 11.9999 7.2835C13.0049 6.4835 14.275 6 15.6604 6C18.9443 6 21.5999 8.70097 21.5999 12Z",fill:"#F79E1B"})]})}),i.jsx(Kt,{children:i.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M11.6377 9.6L9.2 15.5923H12.1183L12.48 14.6369H13.307L13.6688 15.5923H16.881V14.8631L17.1673 15.5923H18.8289L19.1151 14.8477V15.5923H25.7957L26.608 14.6617L27.3687 15.5923L30.7999 15.6L28.3545 12.6129L30.7999 9.6H27.4219L26.6311 10.5134L25.8944 9.6H18.6268L18.0028 11.1467L17.3641 9.6H14.4518V10.3044L14.1279 9.6H11.6377ZM12.2024 10.4509H13.6249L15.2418 14.5143V10.4509H16.8001L18.0491 13.3644L19.2001 10.4509H20.7506V14.7508H19.8071L19.7994 11.3814L18.424 14.7508H17.58L16.1968 11.3814V14.7508H14.2559L13.8879 13.7868H11.9L11.5328 14.7499H10.4929L12.2024 10.4509ZM21.6138 10.4509H25.4501L26.6234 11.8588L27.8346 10.4509H29.0079L27.2252 12.612L29.0079 14.7482H27.7814L26.608 13.324L25.3907 14.7482H21.6138V10.4509ZM12.8944 11.1784L12.2394 12.8957H13.5486L12.8944 11.1784ZM22.5611 12.1261H24.654V13.001H22.5611V13.8579H24.9086L25.9994 12.5958L24.9549 11.3405H22.5611V12.1261Z",fill:"#26A6D1",style:{transform:"translateX(-8px)"}})})})]}):i.jsxs("svg",{width:"56",height:"24",viewBox:"0 0 56 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsxs("g",{clipPath:"url(#clip0_1466_4573)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M12.371 10.7018C12.3586 11.7047 13.2368 12.2645 13.8984 12.5972C14.5782 12.9387 14.8065 13.1576 14.8039 13.4629C14.7987 13.9302 14.2616 14.1364 13.759 14.1445C12.8821 14.1585 12.3722 13.9001 11.9669 13.7046L11.651 15.2304C12.0577 15.4239 12.8107 15.5926 13.5916 15.6C15.4246 15.6 16.6239 14.666 16.6304 13.2179C16.6375 11.38 14.1676 11.2783 14.1845 10.4568C14.1903 10.2077 14.4206 9.9419 14.9252 9.87428C15.1749 9.84013 15.8644 9.81402 16.6459 10.1856L16.9527 8.70932C16.5324 8.55131 15.9921 8.4 15.3195 8.4C13.5942 8.4 12.3807 9.3467 12.371 10.7018ZM19.9007 8.52721C19.566 8.52721 19.2838 8.72873 19.158 9.03805L16.5396 15.4915H18.3712L18.7358 14.4518H20.9741L21.1856 15.4915H22.7999L21.3912 8.52721H19.9007ZM20.1569 10.4086L20.6855 13.0237H19.2378L20.1569 10.4086ZM10.1501 8.52721L8.70631 15.4915H10.4517L11.8949 8.52721H10.1501ZM7.568 8.52721L5.75124 13.2674L5.01637 9.2369C4.93011 8.78698 4.58959 8.52721 4.21145 8.52721H1.24147L1.19995 8.7294C1.80964 8.86598 2.50236 9.08626 2.92201 9.32193C3.17886 9.46587 3.25215 9.59174 3.33647 9.93386L4.72839 15.4915H6.57303L9.40097 8.52721H7.568Z",fill:"#254AA5"})]}),i.jsxs("g",{clipPath:"url(#clip1_1466_4573)",children:[i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M30.5901 7.2835H25.3943V16.7165H30.5901V7.2835Z",fill:"#FF5A00"}),i.jsx("path",{d:"M25.7402 12C25.7402 10.0835 26.6318 8.38252 27.9999 7.2835C26.993 6.4835 25.7229 6 24.3375 6C21.0555 6 18.3999 8.6835 18.3999 12C18.3999 15.3165 21.0555 18 24.3375 18C25.7229 18 26.993 17.5165 27.9999 16.7165C26.6298 15.633 25.7402 13.9165 25.7402 12Z",fill:"#EB001B"}),i.jsx("path",{d:"M37.5999 12C37.5999 15.3165 34.9443 18 31.6624 18C30.2769 18 29.0068 17.5165 27.9999 16.7165C29.3853 15.6155 30.2596 13.9165 30.2596 12C30.2596 10.0835 29.368 8.38252 27.9999 7.2835C29.0049 6.4835 30.275 6 31.6604 6C34.9443 6 37.5999 8.70097 37.5999 12Z",fill:"#F79E1B"})]}),i.jsxs("g",{clipPath:"url(#clip2_1466_4573)",children:[i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M35.6377 9.6L33.2 15.5923H36.1183L36.48 14.6369H37.307L37.6688 15.5923H40.881V14.8631L41.1673 15.5923H42.8289L43.1151 14.8477V15.5923H49.7957L50.608 14.6617L51.3687 15.5923L54.7999 15.6L52.3545 12.6129L54.7999 9.6H51.4219L50.6311 10.5134L49.8944 9.6H42.6268L42.0028 11.1467L41.3641 9.6H38.4518V10.3044L38.1279 9.6H35.6377ZM36.2024 10.4509H37.6249L39.2418 14.5143V10.4509H40.8001L42.0491 13.3644L43.2001 10.4509H44.7506V14.7508H43.8071L43.7994 11.3814L42.424 14.7508H41.58L40.1968 11.3814V14.7508H38.2559L37.8879 13.7868H35.9L35.5328 14.7499H34.4929L36.2024 10.4509ZM45.6138 10.4509H49.4501L50.6234 11.8588L51.8346 10.4509H53.0079L51.2252 12.612L53.0079 14.7482H51.7814L50.608 13.324L49.3907 14.7482H45.6138V10.4509ZM36.8944 11.1784L36.2394 12.8957H37.5486L36.8944 11.1784ZM46.5611 12.1261H48.654V13.001H46.5611V13.8579H48.9086L49.9994 12.5958L48.9549 11.3405H46.5611V12.1261Z",fill:"#26A6D1"})]}),i.jsxs("defs",{children:[i.jsx("clipPath",{id:"clip0_1466_4573",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip1_1466_4573",children:i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip2_1466_4573",children:i.jsx("rect",{x:"32",width:"24",height:"24",rx:"12",fill:"white"})})]})]}),Kl=({isAntistock:e=!1})=>e?i.jsx(Kt,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("g",{clipPath:"url(#clip0_13_4480)",children:i.jsx("path",{d:"M15.1258 8.86178C15.3047 9.05256 15.6016 9.05256 15.7698 8.86178L16.6642 7.86973C16.8539 7.67895 16.8431 7.33555 16.6428 7.12951C15.9399 6.47662 15.1228 5.97865 14.2385 5.66433L14.5211 4.21441C14.582 3.89771 14.3601 3.6001 14.0632 3.6001H12.3315C12.2233 3.60134 12.1187 3.64219 12.0354 3.71581C11.952 3.78944 11.8949 3.89137 11.8736 4.00455L11.6231 5.29421C9.31901 5.42013 7.36553 6.66782 7.36553 9.22426C7.36553 11.4373 8.97912 12.3874 10.6857 13.0398C12.2993 13.6961 13.1544 13.9403 13.1544 14.8637C13.1544 15.8138 12.3029 16.3708 11.0435 16.3708C9.89861 16.3708 8.69647 15.9626 7.76624 14.9667C7.72304 14.9206 7.67174 14.8839 7.61526 14.859C7.55878 14.834 7.49823 14.8211 7.43709 14.8211C7.37594 14.8211 7.3154 14.834 7.25892 14.859C7.20244 14.8839 7.15113 14.9206 7.10793 14.9667L6.14192 15.9969C6.05103 16.0942 6 16.2259 6 16.3632C6 16.5005 6.05103 16.6322 6.14192 16.7295C6.89326 17.5193 7.84496 18.0917 8.92975 18.4084L8.66499 19.7705C8.60417 20.0872 8.82241 20.381 9.11937 20.3848L10.8546 20.4001C10.9641 20.4006 11.0703 20.3606 11.1551 20.2868C11.24 20.213 11.2982 20.1101 11.3197 19.9956L11.5702 18.7022C14.3422 18.5037 16.031 16.8745 16.031 14.4974C16.031 12.3072 14.3494 11.3839 12.3101 10.6322C11.1437 10.1705 10.1347 9.85383 10.1347 8.90375C10.1347 7.98038 11.0757 7.61409 12.0203 7.61409C13.2224 7.61409 14.378 8.14445 15.1329 8.86941L15.1258 8.86178Z",fill:"#00D249"})}),i.jsx("defs",{children:i.jsx("clipPath",{id:"clip0_13_4480",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})})})]})}):i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_13_4480)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M15.1258 8.86178C15.3047 9.05256 15.6016 9.05256 15.7698 8.86178L16.6642 7.86973C16.8539 7.67895 16.8431 7.33555 16.6428 7.12951C15.9399 6.47662 15.1228 5.97865 14.2385 5.66433L14.5211 4.21441C14.582 3.89771 14.3601 3.6001 14.0632 3.6001H12.3315C12.2233 3.60134 12.1187 3.64219 12.0354 3.71581C11.952 3.78944 11.8949 3.89137 11.8736 4.00455L11.6231 5.29421C9.31901 5.42013 7.36553 6.66782 7.36553 9.22426C7.36553 11.4373 8.97912 12.3874 10.6857 13.0398C12.2993 13.6961 13.1544 13.9403 13.1544 14.8637C13.1544 15.8138 12.3029 16.3708 11.0435 16.3708C9.89861 16.3708 8.69647 15.9626 7.76624 14.9667C7.72304 14.9206 7.67174 14.8839 7.61526 14.859C7.55878 14.834 7.49823 14.8211 7.43709 14.8211C7.37594 14.8211 7.3154 14.834 7.25892 14.859C7.20244 14.8839 7.15113 14.9206 7.10793 14.9667L6.14192 15.9969C6.05103 16.0942 6 16.2259 6 16.3632C6 16.5005 6.05103 16.6322 6.14192 16.7295C6.89326 17.5193 7.84496 18.0917 8.92975 18.4084L8.66499 19.7705C8.60417 20.0872 8.82241 20.381 9.11937 20.3848L10.8546 20.4001C10.9641 20.4006 11.0703 20.3606 11.1551 20.2868C11.24 20.213 11.2982 20.1101 11.3197 19.9956L11.5702 18.7022C14.3422 18.5037 16.031 16.8745 16.031 14.4974C16.031 12.3072 14.3494 11.3839 12.3101 10.6322C11.1437 10.1705 10.1347 9.85383 10.1347 8.90375C10.1347 7.98038 11.0757 7.61409 12.0203 7.61409C13.2224 7.61409 14.378 8.14445 15.1329 8.86941L15.1258 8.86178Z",fill:"#00D249"})]}),i.jsx("defs",{children:i.jsx("clipPath",{id:"clip0_13_4480",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})})})]}),Ql=({isAntistock:e=!1})=>e?i.jsx(Kt,{children:i.jsx("img",{src:wo,alt:"PayPal",width:14,height:18})}):i.jsx("img",{src:wo,alt:"PayPal",height:24}),Kt=({children:e})=>i.jsx("div",{className:pa.antistockLogoWrapper,children:e}),Jl=({isAntistock:e=!1})=>e?i.jsxs("div",{className:pa.applePayGooglePay,children:[i.jsx(Kt,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_12_1508)",children:[i.jsx("path",{d:"M11.4098 12.495V14.9512H10.6V8.87671H12.7053C13.2182 8.87671 13.704 9.06159 14.0819 9.40493C14.4598 9.72185 14.6487 10.1972 14.6487 10.699C14.6487 11.2008 14.4598 11.6498 14.0819 11.9932C13.704 12.3365 13.2452 12.5214 12.7053 12.5214L11.4098 12.495ZM11.4098 9.61621V11.7291H12.7593C13.0562 11.7291 13.3531 11.6234 13.5421 11.4121C13.974 11.016 13.974 10.3557 13.5691 9.95955L13.5421 9.93314C13.3262 9.72185 13.0562 9.5898 12.7593 9.61621H11.4098Z",fill:"#5F6368"}),i.jsx("path",{d:"M16.5112 10.6726C17.105 10.6726 17.5638 10.8311 17.9147 11.148C18.2656 11.465 18.4276 11.8875 18.4276 12.4157V14.9512H17.6718V14.3701H17.6448C17.3209 14.8455 16.8621 15.0832 16.3222 15.0832C15.8634 15.0832 15.4585 14.9512 15.1346 14.6871C14.8377 14.4229 14.6487 14.0532 14.6487 13.657C14.6487 13.2345 14.8107 12.8911 15.1346 12.627C15.4585 12.3629 15.9173 12.2573 16.4572 12.2573C16.943 12.2573 17.3209 12.3365 17.6178 12.5214V12.3365C17.6178 12.0724 17.5098 11.8083 17.2939 11.6498C17.078 11.465 16.8081 11.3593 16.5112 11.3593C16.0523 11.3593 15.7014 11.5442 15.4585 11.9139L14.7567 11.4914C15.1886 10.9367 15.7554 10.6726 16.5112 10.6726ZM15.4855 13.6834C15.4855 13.8947 15.5934 14.0796 15.7554 14.1852C15.9443 14.3173 16.1603 14.3965 16.3762 14.3965C16.7001 14.3965 17.024 14.2645 17.2669 14.0268C17.5368 13.7891 17.6718 13.4986 17.6718 13.1816C17.4289 12.9968 17.078 12.8911 16.6191 12.8911C16.2952 12.8911 16.0253 12.9704 15.8094 13.1288C15.5934 13.2609 15.4855 13.4458 15.4855 13.6834Z",fill:"#5F6368"}),i.jsx("path",{d:"M22.8002 10.8047L20.128 16.7999H19.3183L20.317 14.7135L18.5625 10.8311H19.4262L20.6949 13.8155H20.7218L21.9635 10.8311H22.8002V10.8047Z",fill:"#5F6368"}),i.jsx("path",{d:"M8.19776 11.9668C8.19776 11.7291 8.17077 11.4914 8.14378 11.2537H4.76983V12.6006H6.68623C6.60526 13.0232 6.36233 13.4193 5.98445 13.657V14.5286H7.14509C7.81988 13.9211 8.19776 13.0232 8.19776 11.9668Z",fill:"#4285F4"}),i.jsx("path",{d:"M4.76983 15.3737C5.74153 15.3737 6.55127 15.0568 7.14509 14.5286L5.98445 13.657C5.66055 13.8683 5.25568 14.0004 4.76983 14.0004C3.85212 14.0004 3.04237 13.3929 2.77245 12.5478H1.58483V13.4458C2.20563 14.6342 3.42025 15.3737 4.76983 15.3737Z",fill:"#34A853"}),i.jsx("path",{d:"M2.77245 12.5478C2.6105 12.1252 2.6105 11.6498 2.77245 11.2008V10.3029H1.58483C1.07199 11.2801 1.07199 12.4421 1.58483 13.4458L2.77245 12.5478Z",fill:"#FBBC04"}),i.jsx("path",{d:"M4.76983 9.77468C5.28267 9.77468 5.76852 9.95955 6.1464 10.3029L7.17208 9.29928C6.52428 8.71825 5.66055 8.37491 4.79682 8.40132C3.44724 8.40132 2.20563 9.14082 1.61182 10.3293L2.79945 11.2273C3.04237 10.3821 3.85212 9.77468 4.76983 9.77468Z",fill:"#EA4335"})]}),i.jsx("defs",{children:i.jsx("clipPath",{id:"clip0_12_1508",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})})})]})}),i.jsx(Kt,{children:i.jsx("img",{src:lm,alt:"Apple Pay",width:18,height:24})})]}):i.jsxs("svg",{width:"40",height:"24",viewBox:"0 0 40 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_12_1508)",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M11.4098 12.495V14.9512H10.6V8.87671H12.7053C13.2182 8.87671 13.704 9.06159 14.0819 9.40493C14.4598 9.72185 14.6487 10.1972 14.6487 10.699C14.6487 11.2008 14.4598 11.6498 14.0819 11.9932C13.704 12.3365 13.2452 12.5214 12.7053 12.5214L11.4098 12.495ZM11.4098 9.61621V11.7291H12.7593C13.0562 11.7291 13.3531 11.6234 13.5421 11.4121C13.974 11.016 13.974 10.3557 13.5691 9.95955L13.5421 9.93314C13.3262 9.72185 13.0562 9.5898 12.7593 9.61621H11.4098Z",fill:"#5F6368"}),i.jsx("path",{d:"M16.5112 10.6726C17.105 10.6726 17.5638 10.8311 17.9147 11.148C18.2656 11.465 18.4276 11.8875 18.4276 12.4157V14.9512H17.6718V14.3701H17.6448C17.3209 14.8455 16.8621 15.0832 16.3222 15.0832C15.8634 15.0832 15.4585 14.9512 15.1346 14.6871C14.8377 14.4229 14.6487 14.0532 14.6487 13.657C14.6487 13.2345 14.8107 12.8911 15.1346 12.627C15.4585 12.3629 15.9173 12.2573 16.4572 12.2573C16.943 12.2573 17.3209 12.3365 17.6178 12.5214V12.3365C17.6178 12.0724 17.5098 11.8083 17.2939 11.6498C17.078 11.465 16.8081 11.3593 16.5112 11.3593C16.0523 11.3593 15.7014 11.5442 15.4585 11.9139L14.7567 11.4914C15.1886 10.9367 15.7554 10.6726 16.5112 10.6726ZM15.4855 13.6834C15.4855 13.8947 15.5934 14.0796 15.7554 14.1852C15.9443 14.3173 16.1603 14.3965 16.3762 14.3965C16.7001 14.3965 17.024 14.2645 17.2669 14.0268C17.5368 13.7891 17.6718 13.4986 17.6718 13.1816C17.4289 12.9968 17.078 12.8911 16.6191 12.8911C16.2952 12.8911 16.0253 12.9704 15.8094 13.1288C15.5934 13.2609 15.4855 13.4458 15.4855 13.6834Z",fill:"#5F6368"}),i.jsx("path",{d:"M22.8002 10.8047L20.128 16.7999H19.3183L20.317 14.7135L18.5625 10.8311H19.4262L20.6949 13.8155H20.7218L21.9635 10.8311H22.8002V10.8047Z",fill:"#5F6368"}),i.jsx("path",{d:"M8.19776 11.9668C8.19776 11.7291 8.17077 11.4914 8.14378 11.2537H4.76983V12.6006H6.68623C6.60526 13.0232 6.36233 13.4193 5.98445 13.657V14.5286H7.14509C7.81988 13.9211 8.19776 13.0232 8.19776 11.9668Z",fill:"#4285F4"}),i.jsx("path",{d:"M4.76983 15.3737C5.74153 15.3737 6.55127 15.0568 7.14509 14.5286L5.98445 13.657C5.66055 13.8683 5.25568 14.0004 4.76983 14.0004C3.85212 14.0004 3.04237 13.3929 2.77245 12.5478H1.58483V13.4458C2.20563 14.6342 3.42025 15.3737 4.76983 15.3737Z",fill:"#34A853"}),i.jsx("path",{d:"M2.77245 12.5478C2.6105 12.1252 2.6105 11.6498 2.77245 11.2008V10.3029H1.58483C1.07199 11.2801 1.07199 12.4421 1.58483 13.4458L2.77245 12.5478Z",fill:"#FBBC04"}),i.jsx("path",{d:"M4.76983 9.77468C5.28267 9.77468 5.76852 9.95955 6.1464 10.3029L7.17208 9.29928C6.52428 8.71825 5.66055 8.37491 4.79682 8.40132C3.44724 8.40132 2.20563 9.14082 1.61182 10.3293L2.79945 11.2273C3.04237 10.3821 3.85212 9.77468 4.76983 9.77468Z",fill:"#EA4335"})]}),i.jsxs("g",{clipPath:"url(#clip1_12_1508)",children:[i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M21.1469 9.48287C20.8938 9.7666 20.4887 9.99039 20.0837 9.95842C20.033 9.57478 20.2313 9.16717 20.4634 8.91541C20.7166 8.62369 21.1596 8.41589 21.5182 8.3999C21.5604 8.79952 21.3959 9.19115 21.1469 9.48287ZM21.514 10.0343C20.9275 10.0024 20.4254 10.35 20.147 10.35C19.8643 10.35 19.4381 10.0503 18.974 10.0583C18.3707 10.0663 17.8095 10.39 17.5015 10.9055C16.8686 11.9365 17.337 13.4631 17.9487 14.3023C18.2483 14.7179 18.6069 15.1735 19.0795 15.1575C19.5267 15.1415 19.7039 14.8817 20.244 14.8817C20.7883 14.8817 20.9444 15.1575 21.417 15.1495C21.9064 15.1415 22.2144 14.7339 22.514 14.3183C22.8557 13.8467 22.9949 13.3872 23.0034 13.3632C22.9949 13.3552 22.0583 13.0155 22.0498 11.9925C22.0414 11.1373 22.7882 10.7297 22.822 10.7057C22.4 10.1143 21.7418 10.0503 21.514 10.0343ZM24.902 8.87545V15.1055H25.9231V12.9755H27.3365C28.6276 12.9755 29.5348 12.1363 29.5348 10.9215C29.5348 9.70666 28.6445 8.87545 27.3703 8.87545H24.902ZM25.9231 9.69067H27.1003C27.9863 9.69067 28.4926 10.1382 28.4926 10.9255C28.4926 11.7127 27.9863 12.1643 27.096 12.1643H25.9231V9.69067ZM31.3997 15.1535C32.041 15.1535 32.6359 14.8458 32.9059 14.3582H32.927V15.1055H33.8721V12.0045C33.8721 11.1053 33.1127 10.5259 31.9439 10.5259C30.8596 10.5259 30.0579 11.1133 30.0284 11.9205H30.9482C31.0241 11.5369 31.3997 11.2852 31.9144 11.2852C32.5389 11.2852 32.889 11.5609 32.889 12.0684V12.4121L31.6148 12.484C30.4292 12.5519 29.7879 13.0115 29.7879 13.8107C29.7879 14.618 30.4503 15.1535 31.3997 15.1535ZM31.6739 14.4142C31.1296 14.4142 30.7837 14.1664 30.7837 13.7868C30.7837 13.3951 31.117 13.1674 31.7541 13.1314L32.889 13.0635V13.4151C32.889 13.9986 32.3659 14.4142 31.6739 14.4142ZM35.1337 16.7999C36.1294 16.7999 36.5978 16.4402 37.007 15.3493L38.8002 10.5858H37.7623L36.5598 14.2663H36.5387L35.3362 10.5858H34.2687L35.9986 15.1215L35.9058 15.3972C35.7497 15.8648 35.4965 16.0446 35.0451 16.0446C34.9649 16.0446 34.8088 16.0366 34.7455 16.0286V16.7759C34.8046 16.7919 35.0577 16.7999 35.1337 16.7999Z",fill:"black"})]}),i.jsxs("defs",{children:[i.jsx("clipPath",{id:"clip0_12_1508",children:i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"white"})}),i.jsx("clipPath",{id:"clip1_12_1508",children:i.jsx("rect",{x:"16",width:"24",height:"24",rx:"12",fill:"white"})})]})]}),e0=({isAntistock:e=!1})=>e?i.jsx(Kt,{children:i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("path",{d:"M18.6917 16.192L16.1917 18.692C16.0744 18.8093 15.9154 18.8752 15.7495 18.8752C15.5837 18.8752 15.4246 18.8093 15.3073 18.692C15.1901 18.5748 15.1242 18.4157 15.1242 18.2499C15.1242 18.084 15.1901 17.9249 15.3073 17.8077L16.7409 16.3749H5.74952C5.58375 16.3749 5.42478 16.309 5.30757 16.1918C5.19036 16.0746 5.12452 15.9156 5.12452 15.7499C5.12452 15.5841 5.19036 15.4251 5.30757 15.3079C5.42478 15.1907 5.58375 15.1249 5.74952 15.1249H16.7409L15.3073 13.692C15.1901 13.5748 15.1242 13.4157 15.1242 13.2499C15.1242 13.084 15.1901 12.9249 15.3073 12.8077C15.4246 12.6904 15.5837 12.6245 15.7495 12.6245C15.9154 12.6245 16.0744 12.6904 16.1917 12.8077L18.6917 15.3077C18.7498 15.3657 18.7959 15.4346 18.8274 15.5105C18.8588 15.5864 18.875 15.6677 18.875 15.7499C18.875 15.832 18.8588 15.9133 18.8274 15.9892C18.7959 16.0651 18.7498 16.134 18.6917 16.192ZM7.80733 11.192C7.9246 11.3093 8.08366 11.3752 8.24952 11.3752C8.41537 11.3752 8.57443 11.3093 8.6917 11.192C8.80898 11.0748 8.87486 10.9157 8.87486 10.7499C8.87486 10.584 8.80898 10.4249 8.6917 10.3077L7.25811 8.87486H18.2495C18.4153 8.87486 18.5742 8.80901 18.6915 8.6918C18.8087 8.57459 18.8745 8.41562 18.8745 8.24986C18.8745 8.0841 18.8087 7.92513 18.6915 7.80792C18.5742 7.69071 18.4153 7.62486 18.2495 7.62486H7.25811L8.6917 6.19205C8.80898 6.07477 8.87486 5.91571 8.87486 5.74986C8.87486 5.58401 8.80898 5.42495 8.6917 5.30767C8.57443 5.1904 8.41537 5.12451 8.24952 5.12451C8.08366 5.12451 7.9246 5.1904 7.80733 5.30767L5.30733 7.80767C5.24922 7.86572 5.20312 7.93465 5.17167 8.01052C5.14021 8.0864 5.12402 8.16772 5.12402 8.24986C5.12402 8.33199 5.14021 8.41332 5.17167 8.4892C5.20312 8.56507 5.24922 8.634 5.30733 8.69205L7.80733 11.192Z",fill:"#252525"})]})}):i.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#F8F8F8"}),i.jsx("rect",{width:"24",height:"24",rx:"12",stroke:"#F0F0F0"}),i.jsx("path",{d:"M18.6917 16.192L16.1917 18.692C16.0744 18.8093 15.9154 18.8752 15.7495 18.8752C15.5837 18.8752 15.4246 18.8093 15.3073 18.692C15.1901 18.5748 15.1242 18.4157 15.1242 18.2499C15.1242 18.084 15.1901 17.9249 15.3073 17.8077L16.7409 16.3749H5.74952C5.58375 16.3749 5.42478 16.309 5.30757 16.1918C5.19036 16.0746 5.12452 15.9156 5.12452 15.7499C5.12452 15.5841 5.19036 15.4251 5.30757 15.3079C5.42478 15.1907 5.58375 15.1249 5.74952 15.1249H16.7409L15.3073 13.692C15.1901 13.5748 15.1242 13.4157 15.1242 13.2499C15.1242 13.084 15.1901 12.9249 15.3073 12.8077C15.4246 12.6904 15.5837 12.6245 15.7495 12.6245C15.9154 12.6245 16.0744 12.6904 16.1917 12.8077L18.6917 15.3077C18.7498 15.3657 18.7959 15.4346 18.8274 15.5105C18.8588 15.5864 18.875 15.6677 18.875 15.7499C18.875 15.832 18.8588 15.9133 18.8274 15.9892C18.7959 16.0651 18.7498 16.134 18.6917 16.192ZM7.80733 11.192C7.9246 11.3093 8.08366 11.3752 8.24952 11.3752C8.41537 11.3752 8.57443 11.3093 8.6917 11.192C8.80898 11.0748 8.87486 10.9157 8.87486 10.7499C8.87486 10.584 8.80898 10.4249 8.6917 10.3077L7.25811 8.87486H18.2495C18.4153 8.87486 18.5742 8.80901 18.6915 8.6918C18.8087 8.57459 18.8745 8.41562 18.8745 8.24986C18.8745 8.0841 18.8087 7.92513 18.6915 7.80792C18.5742 7.69071 18.4153 7.62486 18.2495 7.62486H7.25811L8.6917 6.19205C8.80898 6.07477 8.87486 5.91571 8.87486 5.74986C8.87486 5.58401 8.80898 5.42495 8.6917 5.30767C8.57443 5.1904 8.41537 5.12451 8.24952 5.12451C8.08366 5.12451 7.9246 5.1904 7.80733 5.30767L5.30733 7.80767C5.24922 7.86572 5.20312 7.93465 5.17167 8.01052C5.14021 8.0864 5.12402 8.16772 5.12402 8.24986C5.12402 8.33199 5.14021 8.41332 5.17167 8.4892C5.20312 8.56507 5.24922 8.634 5.30733 8.69205L7.80733 11.192Z",fill:"#252525"})]}),fm=()=>i.jsx("svg",{width:"22",height:"8",viewBox:"0 0 22 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M11.3712 2.7019C11.3589 3.70484 12.2371 4.26456 12.8987 4.59731C13.5784 4.93876 13.8067 5.15769 13.8041 5.46299C13.7989 5.93032 13.2619 6.13653 12.7592 6.14456C11.8823 6.15862 11.3725 5.90019 10.9671 5.70469L10.6512 7.23052C11.0579 7.42401 11.811 7.59273 12.5919 7.6001C14.4249 7.6001 15.6241 6.66612 15.6306 5.21795C15.6378 3.38012 13.1678 3.27836 13.1847 2.45686C13.1905 2.2078 13.4208 1.942 13.9254 1.87438C14.1751 1.84023 14.8646 1.81412 15.6462 2.1857L15.953 0.709415C15.5327 0.551409 14.9924 0.400097 14.3198 0.400097C12.5945 0.400097 11.3809 1.3468 11.3712 2.7019ZM18.9009 0.527306C18.5662 0.527306 18.2841 0.728831 18.1583 1.03815L15.5398 7.49164H17.3715L17.736 6.45187H19.9744L20.1858 7.49164H21.8002L20.3914 0.527306H18.9009ZM19.1571 2.40865L19.6857 5.02379H18.238L19.1571 2.40865ZM9.15036 0.527306L7.70655 7.49164H9.45196L10.8951 0.527306H9.15036ZM6.56825 0.527306L4.75149 5.26749L4.01662 1.237C3.93035 0.787079 3.58983 0.527306 3.21169 0.527306H0.24171L0.200195 0.7295C0.80964 0.865981 1.50236 1.08626 1.92201 1.32193C2.17886 1.46587 2.25215 1.59174 2.33647 1.93386L3.72839 7.49164H5.57303L8.40122 0.527306H6.56825Z",fill:"#254AA5"})}),hm=({enterAnother:e,bonusPercent:t,currency:n,isAntistock:r})=>i.jsxs("div",{className:Ae.bonusBlock,children:[!r&&i.jsx(N.Icon,{name:"Fire"}),i.jsx("div",{children:r?e>0?`Deposit an additional ${g.formatPrice({amount:e,currency:n})} and receive a ${t}% bonus.`:`Congratulations! You just unlocked a ${t}% bonus!`:e>0?`Enter another ${g.formatPrice({amount:e,currency:n})} and receive an additional bonus of ${t}%`:`You will receive an additional bonus of ${t}%`})]}),t0=({isModal:e=!0})=>{const[t,n]=L.useState({amount:"100",gateway:""}),[r,u]=L.useState({}),[a,s]=L.useState(!1),{isAntistock:o}=g.useGeneralStore(),{gatewaysDetail:c,setGatewaysDetail:l,dashInfo:h,balanceSettings:f,setIsBalanceModalOpen:m}=g.useCustomerDashboardStore(),p=g.useNavigate(),{notifications:b,setNotifications:_}=g.useNotificationStore(),{setIsOpen:E}=g.useModalStore(),x=g.useGetTsId();L.useEffect(()=>{c||(async()=>{var Y;const O=f!=null&&f.isEnabled?(Y=f==null?void 0:f.topUpSettings)==null?void 0:Y.gateways:[],X=await hu(O);l(X)})()},[f,c]);const k=()=>{const B={};return(!t.amount||Number(t.amount)<1)&&(B.amount="The balance field cannot be empty."),t.gateway||(B.gateway="Select pay method"),u(B),Object.keys(B).length===0},y=async B=>{if(B.preventDefault(),!!k()){s(!0);try{const{data:O}=await am({price:{amount:Number(t.amount),currency:f!=null&&f.isEnabled?f.topUpSettings.currency:"USD"},gateway:t.gateway,customerEmail:(h==null?void 0:h.email)||"",tsId:x});_([...b,{message:"Order created successfully",status:"success",id:g.v4()}]),p(`/charges/${O.data.chargeId}`)}catch(O){const X=O;_([...b,{message:`Order creation failed: ${X.message}`,status:"error",id:g.v4()}])}finally{m(!1),s(!1)}}},D=()=>{E(!1),setTimeout(()=>{m(!1)},300)};if(!f||!f.isEnabled)return null;const{topUpSettings:{currency:S,topUpBonusEnabled:I,bonusPercent:M,minimumTopUpForBonus:H}}=f,U=Number(t.amount),P=I&&!Number.isNaN(U)?H-U:H;return i.jsx(i.Fragment,{children:a?i.jsx(Zi,{}):i.jsxs("div",{className:g.clx(Ae.modal,{[Ae.antistock]:o}),onClick:B=>B.stopPropagation(),id:o?"randomId":void 0,children:[i.jsxs("div",{className:Ae.header,children:[i.jsx("h2",{id:"h3",className:Ae.headerTitle,children:"Top Up Account Balance"}),e&&i.jsx(N.Icon,{name:"X",onClick:D,className:Ae.closeIcon,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("form",{onSubmit:y,className:Ae.form,children:[i.jsxs("label",{className:Ae.label,children:[i.jsx(N.Input,{label:"Enter Amount",type:"number",placeholder:"1000",value:t.amount,onChange:B=>n(O=>({...O,amount:B})),required:!0}),r.amount&&i.jsx("span",{className:Ae.error,children:r.amount})]}),I&&P!==void 0&&i.jsx(hm,{enterAnother:P,bonusPercent:M,currency:S,isAntistock:o}),c&&i.jsx("div",{className:Ae.gatewayList,children:c.length>0?c.map(B=>i.jsxs("div",{className:g.clx(Ae.gatewayButton,{[Ae.selected]:t.gateway===B.name}),onClick:()=>n(O=>({...O,gateway:B.name})),children:[B.name==="ForebitPayments"?i.jsx("div",{className:Ae.gatewayIcon,children:i.jsx(Gl,{})}):i.jsx("img",{alt:B.displayName,src:g.convertCfImageIdToUrl(B.logoCfImageId,"100"),className:Ae.gatewayIcon}),i.jsx("div",{className:Ae.gatewayName,children:B.displayName})]},B.name)):i.jsx("span",{children:"Gateways not found"})}),!c&&(o?i.jsx(N.Loader,{}):i.jsx(ir,{speed:2,width:"100%",height:"220px",viewBox:"0 0 600 220",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"100%",height:"100%"})})),r.gateway&&i.jsx("span",{className:Ae.error,children:r.gateway}),i.jsx(N.Button,{type:"Primary",disabled:!t.gateway||a,className:Ae.submitButton,children:"Continue to Checkout"}),i.jsxs("div",{children:[i.jsx(Vi,{}),i.jsx($i,{isAntistock:o})]})]})]})})},n0=()=>{const[e,t]=L.useState([]),{balanceSettings:n,balance:r,isBalanceModalOpen:u,setIsBalanceModalOpen:a}=g.useCustomerDashboardStore(),{page:s,setPage:o}=g.usePaginationPagesStore(),{setIsOpen:c}=g.useModalStore(),[l,h]=L.useState(!0),[f,m]=L.useState(0),[p,b]=L.useState("Newest");L.useEffect(()=>{o(1)},[]),L.useEffect(()=>{(async()=>{h(!0);const{list:S,totalCount:I}=await um(s);t(S),m(I),h(!1)})()},[s]);const _=(D,S)=>{var U;const I={},M=new Date,H=[...D].sort((P,B)=>{const O=new Date(P.createdAt).getTime(),X=new Date(B.createdAt).getTime();return S==="Newest"?X-O:O-X});for(const P of H){const B=new Date(P.createdAt),O=B.toDateString()===M.toDateString()?"Today":B.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});I[O]||(I[O]=[]),(U=I[O])==null||U.push(P)}return I},E=({id:D,price:S,status:I,description:M})=>{const H=g.formatPrice({amount:Math.abs(S.amount),currency:S.currency});return i.jsxs("div",{className:Ae.transactionItem,children:[i.jsxs("div",{className:Ae.transactionDetails,children:[i.jsx(N.Icon,{className:Ae.iconWrapper,name:I===qr.ADDED?"Plus":"Minus",width:20,height:20}),i.jsxs("div",{className:Ae.transactionInfo,children:[i.jsx("div",{className:Ae.transactionTitle,id:"h4",children:M}),i.jsxs("div",{className:Ae.transactionId,id:"md",children:["ID: ",D]})]})]}),i.jsxs("div",{className:g.clx(Ae.transactionAmount,{[Ae.added]:I===qr.ADDED,[Ae.removed]:I===qr.REMOVED}),id:"lg",children:[I===qr.ADDED?"+":"-"," ",H]})]},D)},x=()=>{if(e!=null&&e.length){const D=_(e,p);return i.jsxs("div",{className:Ae.transactionsContainer,children:[i.jsx("div",{className:Ae.transactionsContent,children:Object.entries(D).map(([S,I])=>i.jsxs("div",{id:"lg",children:[i.jsx("div",{className:Ae.transactionDate,id:"md",children:S}),I.map(E)]},S))}),i.jsx(bu,{className:Ae.pagination,currentPage:s,totalCount:f,onPageChange:o})]})}return i.jsx(ba,{title:"Transaction History",description:"When you top up your account balance or receive a refund from our team, you'll see a history of transactions here.",className:Ae.noItemsBlock})},k=()=>{a(!0),c(!0)},y=()=>{a(!1),c(!1)};return i.jsxs(i.Fragment,{children:[(n==null?void 0:n.isEnabled)&&i.jsx("div",{className:Ae.balanceContainer,children:i.jsxs("div",{className:Ae.balanceHeader,children:[r&&i.jsxs("div",{className:Ae.balanceAmount,children:[i.jsx("span",{className:Ae.balanceAmountTitle,id:"lg",children:"Your balance"}),i.jsx("span",{className:Ae.balanceAmountValue,id:"h4",children:g.formatPrice(r)})]}),i.jsxs(N.Button,{onClick:D=>{D.stopPropagation(),k()},className:Ae.addBalanceButton,children:[i.jsx(N.Icon,{name:"Plus"}),i.jsx("span",{children:"Add balance"})]})]})}),i.jsxs("div",{className:Ae.transactionsHeader,children:[(e==null?void 0:e.length)>0?i.jsx(ga,{title:"Transactions"}):null,(e==null?void 0:e.length)>0&&i.jsx(N.Select,{options:["Newest","Oldest"],value:p,onChange:D=>{b(D)},style:{width:"110px"}})]}),l?i.jsx("div",{className:Ae.loaderContainer,children:i.jsx(N.Loader,{})}):i.jsx("div",{children:x()}),u&&(n==null?void 0:n.isEnabled)&&i.jsx(N.Modal,{close:y,children:i.jsx(t0,{})})]})},pm="_home_1uch5_1",mm="_content_1uch5_13",gm="_tablet_1uch5_28",bm="_mobile_1uch5_31",_m="_statContainer_1uch5_35",xm="_text_1uch5_47",Cm="_iconWrapper_1uch5_53",Em="_loader_1uch5_57",ym="_title_1uch5_65",cn={home:pm,content:mm,tablet:gm,mobile:bm,statContainer:_m,text:xm,iconWrapper:Cm,loader:Em,title:ym},Tm="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17%202V9.85233L13.5806%2010.9427V6.58116L6.41169%208.82252V4.89257L17%202Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M13.5806%2010.9427L13.5805%2014.691L3%2018V9.79935L6.41169%208.82252L6.41152%2013.2598L13.5806%2010.9427Z'%20fill='%23FF3F19'/%3e%3c/svg%3e",r0=e=>me.createElement("svg",{width:20,height:20,viewBox:"0 0 19 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},me.createElement("path",{d:"M0.0103662 23.5362C0.0538052 22.4425 0.370173 21.4309 1.08058 20.6127C1.92699 19.6379 2.91375 19.2329 4.14841 19.1732C4.162 20.1401 4.15111 21.1085 4.15091 22.0756L4.70583 22.0747L7.42027 22.0755C7.95952 22.0752 8.50027 22.0844 9.03933 22.0742L9.17755 22.0731L10.6132 22.0759C10.8265 22.0759 11.0767 22.1021 11.2852 22.0658C11.3052 22.0703 11.3534 22.0735 11.3625 22.0928C11.3917 22.1543 11.3688 31.0517 11.3725 31.9631C11.1563 32.0856 10.2676 31.8701 10.0303 31.7947C9.89866 31.7528 9.644 31.6914 9.54946 31.5874L9.51914 31.584C9.46943 31.5736 9.44171 31.5537 9.40126 31.5222C9.30218 31.5131 9.14954 31.4132 9.07718 31.343C9.00129 31.3163 8.92757 31.2576 8.85921 31.2134L8.85617 31.2002C8.5748 31.0715 8.14929 30.6244 7.94318 30.376C7.35205 29.6639 6.93892 28.7659 6.83493 27.8203C6.78763 27.3904 6.7994 26.9595 6.80055 26.5277C6.80084 26.4202 6.82996 26.126 6.78242 26.0387L6.71237 26.023C6.54382 26.0528 6.34316 26.0328 6.17124 26.0324L1.0194 26.0325L0.942306 26.0307C0.74237 26.0326 0.173082 26.0689 0.0224192 26.0192L0.00848581 26.0029C0.022853 25.8597 0.0136924 25.7065 0.013837 25.562L0.0113299 24.6651L0.0117161 24.5253C0.0150266 24.1956 0.0145767 23.8659 0.0103662 23.5362Z",fill:"currentColor"}),me.createElement("path",{d:"M6.79824 0.00127802C6.88001 -0.000781892 6.96176 -0.000351703 7.04349 0.00256876C7.12523 0.00549261 7.20682 0.0108998 7.28827 0.0187905C7.36968 0.0266845 7.45082 0.0370518 7.53169 0.0498924C7.61259 0.0627296 7.69305 0.078018 7.77309 0.0957576C7.85312 0.113501 7.93259 0.133663 8.0115 0.156244C8.09044 0.178828 8.16868 0.203796 8.24624 0.231148C8.3238 0.258499 8.40053 0.28819 8.47645 0.32022C8.55237 0.352247 8.62736 0.386559 8.70141 0.423156L8.71428 0.423492C8.76476 0.450874 8.815 0.479135 8.8661 0.50516C8.947 0.550491 9.03065 0.593185 9.10687 0.646856L9.24939 0.733144C9.31674 0.78126 9.38361 0.83049 9.45202 0.87695C10.462 1.67615 11.1434 2.77146 11.325 4.10211C11.4076 4.70784 11.3729 5.34243 11.372 5.9541C11.4625 5.96599 11.5526 5.9664 11.6436 5.96762C12.6033 5.93794 13.5708 5.96289 14.5314 5.96294C15.459 5.96305 16.3927 5.93758 17.3195 5.9633C17.5874 5.96523 17.9062 6.00101 18.1677 5.95273C18.1496 6.13096 18.1583 6.31472 18.1585 6.49401L18.1598 7.38388L18.1595 7.51855C18.1591 7.83084 18.14 8.15609 18.1607 8.46685C18.109 9.73893 17.6972 10.8198 16.8003 11.6891C15.9969 12.4676 15.0894 12.76 14.0228 12.8194L14.021 10.9083C14.0209 10.5892 14.0389 10.2573 14.0163 9.93952C14.0002 9.92849 13.9879 9.91884 13.9692 9.9133C13.7941 9.93418 13.6055 9.92148 13.4293 9.92133H9.15258L9.04077 9.92082L7.56664 9.92209C7.31676 9.92224 7.04528 9.94526 6.79858 9.90893L6.79824 0.00127802Z",fill:"currentColor"}),me.createElement("path",{d:"M4.13987 5.96279C4.65941 5.9653 5.17894 5.96467 5.69847 5.96091C5.70059 7.27995 5.71757 8.60219 5.69833 9.92082L4.15072 9.92046L4.15106 11.4065C4.15096 11.6783 4.1406 11.9555 4.15443 12.2266C4.73799 12.8393 5.31307 13.4655 5.90921 14.0644L5.98321 14.0407C6.25311 14.0833 6.6928 14.0501 6.97981 14.0499L12.7386 14.0492L13.5943 14.0482C13.7363 14.0479 13.9068 14.0286 14.0457 14.0577L15.8019 15.9078L15.8915 15.997L15.9615 16.0784L15.9955 16.1093L17.4221 17.6163C17.6528 17.8599 17.9077 18.0979 18.1211 18.3569C18.1463 18.3875 18.1599 18.4086 18.1691 18.4477C18.1415 18.6757 18.1577 18.9211 18.1579 19.1514L18.1594 20.4531C18.1597 21.8112 18.142 23.1721 18.1599 24.5297L18.1589 24.6625L18.158 25.5556C18.158 25.7089 18.1437 25.8808 18.1676 26.0315L18.0995 26.031L17.2568 26.0329L17.2101 26.0308C16.2512 26.0486 15.2892 26.0305 14.3299 26.0308C13.7488 26.031 13.0694 26.064 12.4959 26.0258L12.4831 26.0202C12.4481 25.9239 12.4717 22.4806 12.47 22.075L14.0216 22.0744C14.0024 21.3241 14.0324 20.5711 14.0173 19.8203C13.4629 19.2116 12.887 18.6041 12.3052 18.0244L12.293 17.9978C12.0554 18.0392 11.5401 18.0054 11.2777 18.0053L8.9362 18.0074C7.75375 17.9793 6.56306 18.0065 5.37994 18.0069C5.13497 18.007 4.32737 18.0401 4.13472 17.9962L2.36331 16.1262L2.29219 16.0566L2.21959 15.9758L2.15074 15.9102C1.93803 15.6694 1.70849 15.441 1.48797 15.2079L0 13.631C0.0383768 13.4512 0.014078 13.2231 0.013837 13.0369L0.0121494 11.9198L0.0113299 7.52017L0.0122943 7.34622C0.0134032 6.9143 0.0453199 6.37479 0.00371286 5.95329C0.115854 5.96772 0.229056 5.9664 0.341872 5.96777C0.589393 5.96198 0.836946 5.96042 1.08453 5.9631L3.10905 5.96548C3.44789 5.96554 3.80282 5.98825 4.13987 5.96279Z",fill:"currentColor"})),Do=({children:e})=>i.jsx("div",{className:cn.statContainer,children:e}),u0=({adaptiveStyles:e})=>{var f,m,p;const[t,n]=L.useState(null),{setBalanceSettings:r}=g.useCustomerDashboardStore(),{pageContext:u}=g.usePagesStore(),{general:a,isAntistock:s}=g.useGeneralStore();console.log(a);const{header:o}=g.useLayersStore(),{settings:c}=g.useSettingsStore(),l=s?"Antistock":"Billgang";console.log(c);function h(b){var x,k;const _=b==null?void 0:b.name,E=(k=(x=u==null?void 0:u.listings)==null?void 0:x.filter(y=>y.type==="PRODUCT"))==null?void 0:k.find(y=>y.productData.name===_);return E==null?void 0:E.link.to}return L.useEffect(()=>{const b=async()=>{const{data:E}=await sl();n(E)},_=async()=>{const E=await Cl();r(E)};b(),_()},[]),t?i.jsxs("div",{className:cn.home,children:[i.jsx(m0,{adaptiveStyles:e}),i.jsx("h3",{id:"h3",className:cn.title,children:s?"Home":"Your Statistics"}),i.jsxs("div",{className:g.clx(cn.content,{[cn.desktop]:e==="desktop",[cn.tablet]:e==="tablet",[cn.mobile]:e==="mobile"}),children:[i.jsxs(Do,{children:[i.jsx(wt,{iconName:"Calendar",title:"Customer since",value:g.formatTimestamp(t.createdAt)}),i.jsx(wt,{iconName:"CurrencyCircleDollar",title:"Total spent",value:g.formatPrice({amount:t.totalSpent})}),i.jsx(wt,{iconName:"Medal",title:"Top",value:`#${t.ratingPlacement}`,children:t.ratingPlacement>1&&i.jsxs("div",{className:cn.text,id:"md-bold",children:[i.jsx(N.Icon,{name:"ArrowUp",className:cn.iconWrapper,width:16,height:16,fill:"var(--text-secondary)"}),"Spend"," ",g.formatPrice({amount:t.spendMoreDefaultCurrencyForNextPlace??t.spendMoreUsdForNextPlace??0,currency:(f=t.balance)==null?void 0:f.currency})," ","more to be #",t.ratingPlacement-1]})}),s?null:i.jsx(wt,{iconName:"Star",title:"Average review",value:t.averageReview})]}),t.topSpenderProduct?i.jsx(wt,{image:g.convertCfImageIdToUrl(t.topSpenderProduct.image.cfId),imageName:t.topSpenderProduct.name,iconName:"Crown",title:"Top spent",value:`${g.formatPrice({amount:t.topSpenderProduct.amountSpentUsd||0})} spent`,productSlug:h(t.topSpenderProduct)}):i.jsx(wt,{image:"empty",iconName:"Crown",title:"Top spent",value:`${g.formatPrice({amount:0})} spent`}),i.jsxs(Do,{children:[i.jsx(wt,{iconName:"Bag",title:"Purchases",value:t.totalPurchases}),i.jsx(wt,{iconName:"Eye",title:"Visits",value:t.visits}),s&&i.jsx(wt,{title:"Powered by",value:c!=null&&c.showPoweredBy?"Antistock":(a==null?void 0:a.info.name)||"",logo:c!=null&&c.showPoweredBy?void 0:g.convertCfImageIdToUrl(((m=a==null?void 0:a.info.logo)==null?void 0:m.cfId)||"A5gbiev6F8AaBvp6M146Kw/4ecd0fb9-8ebc-44e9-fa1c-c36f61f4bd00"),customLogo:c!=null&&c.showPoweredBy?i.jsx("div",{style:{width:"48px",height:"48px",padding:"10px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--border-radius)",backgroundColor:"var(--surface-secondary)"},children:i.jsx(r0,{width:22,height:22})}):void 0}),!s&&i.jsx(wt,{title:"Powered by",value:l,logo:Tm}),s?null:i.jsx(wt,{title:"Store",value:(a==null?void 0:a.info.name)||"",logo:g.convertCfImageIdToUrl((o==null?void 0:o.blockSettings.logo.url)||((p=a==null?void 0:a.info.logo)==null?void 0:p.cfId)||"A5gbiev6F8AaBvp6M146Kw/4ecd0fb9-8ebc-44e9-fa1c-c36f61f4bd00")})]}),t.favoriteProduct?i.jsx(wt,{image:g.convertCfImageIdToUrl(t.favoriteProduct.image.cfId),imageName:t.favoriteProduct.name,iconName:"Heart",title:"Favorite product",value:`bought ${t.favoriteProduct.purchasedTimes} times`,productSlug:h(t.favoriteProduct)}):i.jsx(wt,{image:"empty",iconName:"Heart",title:"Favorite product",value:"bought 0 times"})]})]}):i.jsx("div",{className:cn.loader,children:i.jsx(N.Loader,{})})},km="_container_caax0_1",Am="_tablet_caax0_15",Sm="_mobile_caax0_18",Im="_progress_caax0_22",Nm="_status_caax0_26",vm="_name_caax0_37",wm="_completed_caax0_44",Dm="_title_caax0_50",Lm="_description_caax0_58",Pm="_button_caax0_65",Rm="_achievement_caax0_73",Mm="_progressText_caax0_92",Om="_progressTextStart_caax0_99",jm="_progressBackground_caax0_103",Fm="_progressForeground_caax0_107",Bm="_icon_caax0_111",bt={container:km,tablet:Am,mobile:Sm,progress:Im,status:Nm,name:vm,completed:wm,title:Dm,description:Lm,button:Pm,achievement:Rm,progressText:Mm,progressTextStart:Om,progressBackground:jm,progressForeground:Fm,icon:Bm},Ut=(e,t,n)=>e===1?t:n??`${t}s`,a0=({adaptiveStyles:e})=>{const{notifications:t,setNotifications:n}=g.useNotificationStore(),{setBalance:r}=g.useCustomerDashboardStore(),[u,a]=L.useState(null),s=async()=>{const f=(await Gf()).map(m=>({...m,isClaimed:!1}));a(f)};L.useEffect(()=>{s()},[]);async function o(h){try{if(await q2(h),u){const m=u==null?void 0:u.map(p=>p.id===h.id?{...p,isClaimed:!0}:p);a(m)}n([...t,{message:"Reward claimed successfully",status:"success",id:g.v4()}]);const f=await ca();a(null),r(f),s()}catch{n([...t,{message:"Failed to claim reward",status:"error",id:g.v4()}])}}const c=u&&u.length===0,l=u&&u.length>0;return i.jsx(i.Fragment,{children:c?i.jsx(ba,{title:"Rewards Unavailable",description:"Check back in the future to join our reward program."}):i.jsxs(i.Fragment,{children:[i.jsx(ga,{title:"Rewards",description:"To unlock an exclusive reward, complete everything on this checklist"}),i.jsxs("div",{className:g.clx(bt.container,{[bt.tablet]:e==="tablet",[bt.mobile]:e==="mobile"}),children:[l&&u.map(h=>i.jsx(Hm,{achievement:h,onClick:f=>o(f)},h.id)),!l&&[...new Array(6)].map((h,f)=>i.jsx(ir,{speed:2,width:"100%",height:400,viewBox:"0 0 300 300",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"100%",height:"300px"})},f))]})]})})},Hm=({achievement:e,onClick:t})=>{const{isAntistock:n}=g.useGeneralStore(),[r,u]=qm(e),[a,s,o]=Zm(e),[c,l]=L.useState(!1),h=s>=o;return i.jsxs("div",{className:bt.achievement,children:[i.jsx(Um,{percentage:Math.min(a,100)}),i.jsx("div",{className:`${bt.status} ${h&&!n?bt.completed:""}`,id:"md",children:h?i.jsxs(i.Fragment,{children:[i.jsx(N.Icon,{name:"Confetti"}),i.jsx("span",{id:"md",children:"Completed!"})]}):`Done: ${s} / ${o}`}),i.jsxs("div",{className:bt.title,children:[i.jsx(N.Icon,{name:"Bag",className:bt.icon,fill:"var(--text-action)",width:18,height:18}),i.jsx("div",{className:bt.name,id:"h5",children:r})]}),i.jsx("span",{className:bt.description,id:"md",children:u}),i.jsx(N.Button,{type:h&&!e.isClaimed?"Primary":"Secondary",className:bt.button,disabled:!h,onClick:async()=>{l(!0),await t(e),l(!1)},children:e.isClaimed?i.jsxs(i.Fragment,{children:[i.jsx(N.Icon,{name:"CheckCircle",fill:"var(--text-secondary)"}),i.jsxs("span",{children:["Your claimed ",Lo(e)," bonus"]})]}):i.jsxs(i.Fragment,{children:[!c&&(h?i.jsx("span",{children:"Claim"}):Lo(e)),c&&i.jsx(N.Loader,{})]})})]})},Um=({percentage:e,radius:t=40,strokeWidth:n=8})=>{const r=t+n/2,u=r*2,a=2*Math.PI*t,s=a-e/100*a;return i.jsxs("div",{style:{width:u,height:u},className:bt.progress,children:[i.jsxs("svg",{"aria-hidden":"true",width:u,height:u,children:[i.jsx("circle",{cx:r,cy:r,r:t,fill:"transparent",className:bt.progressBackground,strokeWidth:n}),i.jsx("circle",{cx:r,cy:r,r:t,fill:"transparent",strokeWidth:n,strokeDasharray:`${a} ${a}`,strokeDashoffset:s,className:bt.progressForeground})]}),i.jsxs("span",{className:g.clx(bt.progressText,{[bt.progressTextStart]:e!==0}),id:"md",children:[Math.min(e,100),"%"]})]})},Vm=e=>{switch(e.rewardRule.rewardType){case nu.Balance:return`${g.formatPrice(e.rewardRule.rewardOptions.balance)} on the balance`;case nu.Product:return`products: ${e.rewardRule.rewardOptions.productsWithVariants.map(t=>`${t.quantity} ${t.productName} (${t.variantName})`).join(", ")}`}},Lo=e=>{switch(e.rewardRule.rewardType){case nu.Balance:return g.formatPrice(e.rewardRule.rewardOptions.balance);case nu.Product:return`${e.rewardRule.rewardOptions.productsWithVariants.map(t=>`${t.quantity} ${t.productName} (${t.variantName})`).join()}`}},$m=e=>{const{ruleType:t,ruleOptions:n}=e.rewardRule,r=Vm(e),u=e.progress;switch(t){case _t.Spend:return`Spend $${n.forEach} in total purchases to receive ${r}. You've spent $${u} so far.`;case _t.Order:{const a=n.ordersCount;return`Place ${a} ${Ut(a,"order")} to receive ${r}. You've made ${u} ${Ut(u,"order")} so far.`}case _t.Referral:{const a=n.minReferrals,s=n.minCompletedOrders;return`Have ${a} ${Ut(a,"person")} sign up via your referral link and make at least ${s} ${Ut(s,"purchase")} to receive ${r}. You've referred ${u} ${Ut(u,"friend")} so far.`}case _t.Review:{const a=n.minReviews,s=n.minStars;return`Leave ${a} ${Ut(a,"review")} with a minimum rating of ${s} to receive ${r}. You've left ${u} ${Ut(u,"review")} so far.`}case _t.Vouch:{const a=n.minVouches;return`Leave ${a} ${Ut(a,"vouch","vouches")} to receive ${r}. You've left ${u} ${Ut(u,"vouch","vouches")} so far.`}}},zm=e=>{const{ruleType:t,ruleOptions:n}=e.rewardRule;switch(t){case _t.Spend:return`Spend $${n.forEach} at our store`;case _t.Order:{const r=n.ordersCount;return`Place ${r} ${Ut(r,"order")}`}case _t.Referral:{const r=n.minReferrals;return`Refer ${r} ${Ut(r,"friend")}`}case _t.Review:{const r=n.minReviews,u=n.minStars;return`Leave ${r} ${Ut(r,"review")} with a minimum rating of ${u}`}case _t.Vouch:{const r=n.minVouches;return`Leave ${r} ${Ut(r,"vouch","vouches")}`}}},qm=e=>[zm(e),$m(e)],Zm=e=>{let t;switch(e.rewardRule.ruleType){case _t.Spend:t=e.rewardRule.ruleOptions.forEach;break;case _t.Order:t=e.rewardRule.ruleOptions.ordersCount;break;case _t.Referral:t=e.rewardRule.ruleOptions.minReferrals;break;case _t.Review:t=e.rewardRule.ruleOptions.minReviews;break;case _t.Vouch:t=e.rewardRule.ruleOptions.minVouches;break;default:t=0}const n=Math.round((e.progress/Math.max(t,1)*100+Number.EPSILON)*100)/100;return[t===0?100:n,e.progress,t]},Wm="_appContainer_1bj0v_1",Ym="_noAnimation_1bj0v_11",Gm="_mobile_1bj0v_19",Xm="_appContainerAntistock_1bj0v_28",Km="_contentContainer_1bj0v_44",Qm="_contentContainerAntistock_1bj0v_64",Gn={appContainer:Wm,noAnimation:Ym,mobile:Gm,appContainerAntistock:Xm,contentContainer:Km,contentContainerAntistock:Qm},Jm="_apiPage_pkays_1",e4="_cards_pkays_8",t4="_card_pkays_8",n4="_cardHeader_pkays_24",r4="_cardHeaderRow_pkays_30",u4="_cardTitle_pkays_37",a4="_cardDescription_pkays_42",s4="_apiKeyMeta_pkays_47",i4="_regenerateButton_pkays_62",o4="_fieldRow_pkays_68",c4="_fieldLabel_pkays_75",l4="_fieldValueWrapper_pkays_80",d4="_fieldValue_pkays_80",f4="_copyButton_pkays_98",h4="_twoColumn_pkays_116",p4="_selectorGroup_pkays_127",m4="_selectorLabel_pkays_133",g4="_codeBlockGroup_pkays_145",b4="_codeBlock_pkays_145",_4="_codeHeader_pkays_160",x4="_codeTitle_pkays_169",C4="_codeMethod_pkays_175",E4="_codeBody_pkays_185",y4="_jsonString_pkays_197",T4="_jsonNumber_pkays_201",k4="_jsonBoolean_pkays_205",A4="_endpointDescriptionList_pkays_209",re={apiPage:Jm,cards:e4,card:t4,cardHeader:n4,cardHeaderRow:r4,cardTitle:u4,cardDescription:a4,apiKeyMeta:s4,regenerateButton:i4,fieldRow:o4,fieldLabel:c4,fieldValueWrapper:l4,fieldValue:d4,copyButton:f4,twoColumn:h4,selectorGroup:p4,selectorLabel:m4,codeBlockGroup:g4,codeBlock:b4,codeHeader:_4,codeTitle:x4,codeMethod:C4,codeBody:E4,jsonString:y4,jsonNumber:T4,jsonBoolean:k4,endpointDescriptionList:A4},Ka=" ",Ls=(e,t=0)=>{const n=[],r=Ka.repeat(t);if(Array.isArray(e))return n.push(`[
|
|
59
|
+
`),e.forEach((u,a)=>{n.push(Ka.repeat(t+1)),n.push(...Ls(u,t+1)),n.push(a<e.length-1?`,
|
|
60
60
|
`:`
|
|
61
61
|
`)}),n.push(r+"]"),n;if(e!==null&&typeof e=="object"){const u=Object.entries(e);return n.push(`{
|
|
62
|
-
`),u.forEach(([a,s],o)=>{n.push(
|
|
62
|
+
`),u.forEach(([a,s],o)=>{n.push(Ka.repeat(t+1)),n.push(`"${a}": `),n.push(...Ls(s,t+1)),n.push(o<u.length-1?`,
|
|
63
63
|
`:`
|
|
64
|
-
`)}),n.push(r+"}"),n}return typeof e=="string"?(n.push(i.jsx("span",{className:re.jsonString,children:`"${e}"`})),n):typeof e=="number"?(n.push(i.jsx("span",{className:re.jsonNumber,children:String(e)})),n):typeof e=="boolean"?(n.push(i.jsx("span",{className:re.jsonBoolean,children:e?"true":"false"})),n):(n.push("null"),n)},a0=()=>{const e=Zn(),{shopDomain:t}=g.useStorefrontStore(),{notifications:n,setNotifications:r}=g.useNotificationStore(),{dashboardSettings:u}=g.useCustomerDashboardStore(),a=L.useMemo(()=>t||localStorage.getItem("fakeDomain")||window.location.hostname||"{customDomain}",[t]),s=L.useMemo(()=>`https://${a}/o-api`,[a]),[o,c]=L.useState(localStorage.getItem("token")||"{apiKey}"),[l,h]=L.useState(!1),[f,m]=L.useState(!1),p=L.useMemo(()=>o?o.length>20?`${o.slice(0,20)}…`:o:"",[o]),b=l?"Loading…":p,[_,E]=L.useState(""),[x,k]=L.useState(""),y=(u==null?void 0:u.products)??[],D=L.useMemo(()=>_&&y.find(se=>se.name===_)||null,[_,y]),S=(D==null?void 0:D.variants)??[],I=L.useMemo(()=>!x||!D?null:S.find(se=>se.name===x)||null,[x,S,D]),M=`${s}`,H=`${M}/v1/customer-orders/${a}`,U={parts:[{productId:D?String(D.id):"{productId}",productVariantId:I?String(I.id):"{productVariantId}",quantity:1}]},P=JSON.stringify(U,null,2),B=`curl -X POST "${H}" -H "Authorization: Bearer ${o}" -H "Content-Type: application/json" -d '${P}'`,O={data:{id:"3fa85f64-5717-4562-b3fc-2c963f66afa6",fullAccessToken:"string"},message:"string",errors:[]},X=JSON.stringify(O,null,2),K=`curl -X GET "${`${M}/v1/orders/${a}/{id}/{accessToken}`}"`;L.useEffect(()=>{let se=!0;return(async()=>{var C;h(!0);try{const{data:V}=await Z2(),te=(C=V==null?void 0:V.data)==null?void 0:C.accessToken;se&&te&&c(te)}catch(V){console.error("Failed to fetch customer API key",V)}finally{se&&h(!1)}})(),()=>{se=!1}},[]);const ue=async()=>{var se;m(!0);try{const{data:_e}=await W2(),C=(se=_e==null?void 0:_e.data)==null?void 0:se.accessToken;C&&(c(C),r([...n,{id:g.v4(),message:"API key has been successfully regenerated.",status:"success"}]))}catch(_e){r([...n,{id:g.v4(),message:_e.message??"Failed to regenerate API Key.",status:"error"}])}finally{m(!1)}},ae=se=>{e(se)};return i.jsx("div",{className:re.apiPage,children:i.jsxs("div",{className:re.cards,children:[i.jsxs("section",{className:re.card,"aria-label":"API Key",children:[i.jsx("header",{className:re.cardHeader,children:i.jsxs("div",{className:re.cardHeaderRow,children:[i.jsx("div",{children:i.jsx("div",{className:re.cardTitle,children:"API Key"})}),i.jsx("div",{className:re.apiKeyMeta,children:i.jsx(N.Button,{type:"Secondary",className:re.regenerateButton,onClick:ue,disabled:f,children:f?"Regenerating...":"Regenerate"})})]})}),i.jsx("div",{className:re.fieldRow,children:i.jsxs("div",{className:re.fieldValueWrapper,children:[i.jsx("div",{className:re.fieldValue,children:b}),i.jsx("button",{type:"button",className:re.copyButton,onClick:()=>ae(o),"aria-label":"Copy API key",children:i.jsx(N.Icon,{name:"Copy"})})]})})]}),i.jsxs("section",{className:re.card,"aria-label":"API Getting Started",children:[i.jsx("header",{className:re.cardHeader,children:i.jsx("div",{className:re.cardTitle,children:"Getting Started"})}),i.jsxs("div",{className:re.fieldRow,children:[i.jsx("div",{className:re.fieldLabel,children:"Base URL"}),i.jsxs("div",{className:re.fieldValueWrapper,children:[i.jsx("div",{className:re.fieldValue,children:s}),i.jsx("button",{type:"button",className:re.copyButton,onClick:()=>ae(s),"aria-label":"Copy base URL",children:i.jsx(N.Icon,{name:"Copy"})})]})]}),i.jsxs("div",{className:re.fieldRow,children:[i.jsx("div",{className:re.fieldLabel,children:"Authorization"}),i.jsxs("div",{className:re.fieldValueWrapper,children:[i.jsx("div",{className:re.fieldValue,children:`Bearer ${p}`}),i.jsx("button",{type:"button",className:re.copyButton,onClick:()=>ae(`Bearer ${o}`),"aria-label":"Copy authentication header",children:i.jsx(N.Icon,{name:"Copy"})})]})]})]}),i.jsxs("section",{className:re.card,"aria-label":"Purchase Product via API",children:[i.jsxs("header",{className:re.cardHeader,children:[i.jsx("div",{className:re.cardTitle,children:(u==null?void 0:u.purchaseProductCustomTitle)||"Purchase Product via API"}),u!=null&&u.purchaseProductCustomDescription?i.jsx("div",{className:re.cardDescription,children:u==null?void 0:u.purchaseProductCustomDescription}):null]}),i.jsxs("div",{className:re.twoColumn,children:[i.jsxs("div",{className:re.selectorGroup,children:[i.jsxs("label",{className:re.selectorLabel,children:["Product",i.jsx(N.Select,{options:y.map(se=>se.name),value:_||"Select product",onChange:se=>{E(se),k("")}})]}),D&&i.jsxs("label",{className:re.selectorLabel,children:["Variant",i.jsx(N.Select,{options:S.map(se=>se.name),value:x||"Select variant",onChange:se=>k(se)})]})]}),i.jsxs("div",{className:re.codeBlockGroup,children:[i.jsxs("div",{className:re.codeBlock,children:[i.jsxs("div",{className:re.codeHeader,children:[i.jsx("div",{className:re.codeTitle,children:"Example Request"}),i.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[i.jsx("div",{className:re.codeMethod,children:"POST"}),i.jsx("button",{className:re.copyButton,type:"button",onClick:()=>ae(B),"aria-label":"Copy example request",children:i.jsx(N.Icon,{name:"Copy"})})]})]}),i.jsx("pre",{style:{color:"var(--text-secondary)"},className:re.codeBody,children:B})]}),i.jsxs("div",{className:re.codeBlock,children:[i.jsxs("div",{className:re.codeHeader,children:[i.jsx("div",{className:re.codeTitle,children:"Example Response"}),i.jsx("button",{className:re.copyButton,type:"button",onClick:()=>ae(X),"aria-label":"Copy example response",children:i.jsx(N.Icon,{name:"Copy"})})]}),i.jsx("pre",{className:re.codeBody,children:Ls(O)})]})]})]})]}),i.jsxs("section",{className:re.card,"aria-label":"Check Order Status",children:[i.jsx("header",{className:re.cardHeader,children:i.jsx("div",{className:re.cardTitle,children:"Check Order Status"})}),i.jsxs("ul",{className:re.endpointDescriptionList,children:[i.jsx("li",{children:"id: Order ID returned when creating an order"}),i.jsx("li",{children:"accessToken: FullAccessToken returned when creating an order"})]}),i.jsxs("div",{className:re.codeBlock,children:[i.jsxs("div",{className:re.codeHeader,children:[i.jsx("div",{className:re.codeTitle,children:"Example Request"}),i.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[i.jsx("div",{className:re.codeMethod,children:"GET"}),i.jsx("button",{className:re.copyButton,type:"button",onClick:()=>ae(K),"aria-label":"Copy status example request",children:i.jsx(N.Icon,{name:"Copy"})})]})]}),i.jsx("pre",{className:re.codeBody,children:K})]})]})]})})};var A4=Object.defineProperty,S4=Object.defineProperties,I4=Object.getOwnPropertyDescriptors,Xu=Object.getOwnPropertySymbols,s0=Object.prototype.hasOwnProperty,i0=Object.prototype.propertyIsEnumerable,Lo=(e,t,n)=>t in e?A4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N4=(e,t)=>{for(var n in t||(t={}))s0.call(t,n)&&Lo(e,n,t[n]);if(Xu)for(var n of Xu(t))i0.call(t,n)&&Lo(e,n,t[n]);return e},v4=(e,t)=>S4(e,I4(t)),w4=(e,t)=>{var n={};for(var r in e)s0.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Xu)for(var r of Xu(e))t.indexOf(r)<0&&i0.call(e,r)&&(n[r]=e[r]);return n};function D4(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function L4(e){let t=me.useRef();return me.useEffect(()=>{t.current=e}),t.current}var P4=18,o0=40,R4=`${o0}px`,M4=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function O4({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[u,a]=me.useState(!1),[s,o]=me.useState(!1),[c,l]=me.useState(!1),h=me.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&u&&s,[u,s,n]),f=me.useCallback(()=>{let m=e.current,p=t.current;if(!m||!p||c||n==="none")return;let b=m,_=b.getBoundingClientRect().left+b.offsetWidth,E=b.getBoundingClientRect().top+b.offsetHeight/2,x=_-P4,k=E;document.querySelectorAll(M4).length===0&&document.elementFromPoint(x,k)===m||(a(!0),l(!0))},[e,t,c,n]);return me.useEffect(()=>{let m=e.current;if(!m||n==="none")return;function p(){let _=window.innerWidth-m.getBoundingClientRect().right;o(_>=o0)}p();let b=setInterval(p,1e3);return()=>{clearInterval(b)}},[e,n]),me.useEffect(()=>{let m=r||document.activeElement===t.current;if(n==="none"||!m)return;let p=setTimeout(f,0),b=setTimeout(f,2e3),_=setTimeout(f,5e3),E=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(p),clearTimeout(b),clearTimeout(_),clearTimeout(E)}},[t,r,n,f]),{hasPWMBadge:u,willPushPWMBadge:h,PWM_BADGE_SPACE_WIDTH:R4}}var j4=me.createContext({}),c0=me.forwardRef((e,t)=>{var n=e,{value:r,onChange:u,maxLength:a,textAlign:s="left",pattern:o,placeholder:c,inputMode:l="numeric",onComplete:h,pushPasswordManagerStrategy:f="increase-width",pasteTransformer:m,containerClassName:p,noScriptCSSFallback:b=F4,render:_,children:E}=n,x=w4(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),k,y,D,S,I;let[M,H]=me.useState(typeof x.defaultValue=="string"?x.defaultValue:""),U=r??M,P=L4(U),B=me.useCallback(oe=>{u==null||u(oe),H(oe)},[u]),O=me.useMemo(()=>o?typeof o=="string"?new RegExp(o):o:null,[o]),X=me.useRef(null),Y=me.useRef(null),K=me.useRef({value:U,onChange:B,isIOS:typeof window<"u"&&((y=(k=window==null?void 0:window.CSS)==null?void 0:k.supports)==null?void 0:y.call(k,"-webkit-touch-callout","none"))}),ue=me.useRef({prev:[(D=X.current)==null?void 0:D.selectionStart,(S=X.current)==null?void 0:S.selectionEnd,(I=X.current)==null?void 0:I.selectionDirection]});me.useImperativeHandle(t,()=>X.current,[]),me.useEffect(()=>{let oe=X.current,pe=Y.current;if(!oe||!pe)return;K.current.value!==oe.value&&K.current.onChange(oe.value),ue.current.prev=[oe.selectionStart,oe.selectionEnd,oe.selectionDirection];function Qe(){if(document.activeElement!==oe){te(null),J(null);return}let ee=oe.selectionStart,ge=oe.selectionEnd,mt=oe.selectionDirection,gt=oe.maxLength,qt=oe.value,At=ue.current.prev,Ve=-1,j=-1,W;if(qt.length!==0&&ee!==null&&ge!==null){let Ot=ee===ge,_n=ee===qt.length&&qt.length<gt;if(Ot&&!_n){let dt=ee;if(dt===0)Ve=0,j=1,W="forward";else if(dt===gt)Ve=dt-1,j=dt,W="backward";else if(gt>1&&qt.length>1){let xn=0;if(At[0]!==null&&At[1]!==null){W=dt<At[1]?"backward":"forward";let Yn=At[0]===At[1]&&At[0]<gt;W==="backward"&&!Yn&&(xn=-1)}Ve=xn+dt,j=xn+dt+1}}Ve!==-1&&j!==-1&&Ve!==j&&X.current.setSelectionRange(Ve,j,W)}let fe=Ve!==-1?Ve:ee,Se=j!==-1?j:ge,Oe=W??mt;te(fe),J(Se),ue.current.prev=[fe,Se,Oe]}if(document.addEventListener("selectionchange",Qe,{capture:!0}),Qe(),document.activeElement===oe&&C(!0),!document.getElementById("input-otp-style")){let ee=document.createElement("style");if(ee.id="input-otp-style",document.head.appendChild(ee),ee.sheet){let ge="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Fr(ee.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Fr(ee.sheet,`[data-input-otp]:autofill { ${ge} }`),Fr(ee.sheet,`[data-input-otp]:-webkit-autofill { ${ge} }`),Fr(ee.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Fr(ee.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let Ee=()=>{pe&&pe.style.setProperty("--root-height",`${oe.clientHeight}px`)};Ee();let Ne=new ResizeObserver(Ee);return Ne.observe(oe),()=>{document.removeEventListener("selectionchange",Qe,{capture:!0}),Ne.disconnect()}},[]);let[ae,se]=me.useState(!1),[_e,C]=me.useState(!1),[V,te]=me.useState(null),[v,J]=me.useState(null);me.useEffect(()=>{D4(()=>{var oe,pe,Qe,Ee;(oe=X.current)==null||oe.dispatchEvent(new Event("input"));let Ne=(pe=X.current)==null?void 0:pe.selectionStart,ee=(Qe=X.current)==null?void 0:Qe.selectionEnd,ge=(Ee=X.current)==null?void 0:Ee.selectionDirection;Ne!==null&&ee!==null&&(te(Ne),J(ee),ue.current.prev=[Ne,ee,ge])})},[U,_e]),me.useEffect(()=>{P!==void 0&&U!==P&&P.length<a&&U.length===a&&(h==null||h(U))},[a,h,P,U]);let ne=O4({containerRef:Y,inputRef:X,pushPasswordManagerStrategy:f,isFocused:_e}),Q=me.useCallback(oe=>{let pe=oe.currentTarget.value.slice(0,a);if(pe.length>0&&O&&!O.test(pe)){oe.preventDefault();return}typeof P=="string"&&pe.length<P.length&&document.dispatchEvent(new Event("selectionchange")),B(pe)},[a,B,P,O]),de=me.useCallback(()=>{var oe;if(X.current){let pe=Math.min(X.current.value.length,a-1),Qe=X.current.value.length;(oe=X.current)==null||oe.setSelectionRange(pe,Qe),te(pe),J(Qe)}C(!0)},[a]),le=me.useCallback(oe=>{var pe,Qe;let Ee=X.current;if(!m&&(!K.current.isIOS||!oe.clipboardData||!Ee))return;let Ne=oe.clipboardData.getData("text/plain"),ee=m?m(Ne):Ne;oe.preventDefault();let ge=(pe=X.current)==null?void 0:pe.selectionStart,mt=(Qe=X.current)==null?void 0:Qe.selectionEnd,gt=(ge!==mt?U.slice(0,ge)+ee+U.slice(mt):U.slice(0,ge)+ee+U.slice(ge)).slice(0,a);if(gt.length>0&&O&&!O.test(gt))return;Ee.value=gt,B(gt);let qt=Math.min(gt.length,a-1),At=gt.length;Ee.setSelectionRange(qt,At),te(qt),J(At)},[a,B,O,U]),ie=me.useMemo(()=>({position:"relative",cursor:x.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[x.disabled]),xe=me.useMemo(()=>({position:"absolute",inset:0,width:ne.willPushPWMBadge?`calc(100% + ${ne.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:ne.willPushPWMBadge?`inset(0 ${ne.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:s,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[ne.PWM_BADGE_SPACE_WIDTH,ne.willPushPWMBadge,s]),$e=me.useMemo(()=>me.createElement("input",v4(N4({autoComplete:x.autoComplete||"one-time-code"},x),{"data-input-otp":!0,"data-input-otp-placeholder-shown":U.length===0||void 0,"data-input-otp-mss":V,"data-input-otp-mse":v,inputMode:l,pattern:O==null?void 0:O.source,"aria-placeholder":c,style:xe,maxLength:a,value:U,ref:X,onPaste:oe=>{var pe;le(oe),(pe=x.onPaste)==null||pe.call(x,oe)},onChange:Q,onMouseOver:oe=>{var pe;se(!0),(pe=x.onMouseOver)==null||pe.call(x,oe)},onMouseLeave:oe=>{var pe;se(!1),(pe=x.onMouseLeave)==null||pe.call(x,oe)},onFocus:oe=>{var pe;de(),(pe=x.onFocus)==null||pe.call(x,oe)},onBlur:oe=>{var pe;C(!1),(pe=x.onBlur)==null||pe.call(x,oe)}})),[Q,de,le,l,xe,a,v,V,x,O==null?void 0:O.source,U]),G=me.useMemo(()=>({slots:Array.from({length:a}).map((oe,pe)=>{var Qe;let Ee=_e&&V!==null&&v!==null&&(V===v&&pe===V||pe>=V&&pe<v),Ne=U[pe]!==void 0?U[pe]:null,ee=U[0]!==void 0?null:(Qe=c==null?void 0:c[pe])!=null?Qe:null;return{char:Ne,placeholderChar:ee,isActive:Ee,hasFakeCaret:Ee&&Ne===null}}),isFocused:_e,isHovering:!x.disabled&&ae}),[_e,ae,a,v,V,x.disabled,U]),pt=me.useMemo(()=>_?_(G):me.createElement(j4.Provider,{value:G},E),[E,G,_]);return me.createElement(me.Fragment,null,b!==null&&me.createElement("noscript",null,me.createElement("style",null,b)),me.createElement("div",{ref:Y,"data-input-otp-container":!0,style:ie,className:p},pt,me.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},$e)))});c0.displayName="Input";function Fr(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var F4=`
|
|
64
|
+
`)}),n.push(r+"}"),n}return typeof e=="string"?(n.push(i.jsx("span",{className:re.jsonString,children:`"${e}"`})),n):typeof e=="number"?(n.push(i.jsx("span",{className:re.jsonNumber,children:String(e)})),n):typeof e=="boolean"?(n.push(i.jsx("span",{className:re.jsonBoolean,children:e?"true":"false"})),n):(n.push("null"),n)},s0=()=>{const e=Zn(),{shopDomain:t}=g.useStorefrontStore(),{notifications:n,setNotifications:r}=g.useNotificationStore(),{dashboardSettings:u}=g.useCustomerDashboardStore(),a=L.useMemo(()=>t||localStorage.getItem("fakeDomain")||window.location.hostname||"{customDomain}",[t]),s=L.useMemo(()=>`https://${a}/o-api`,[a]),[o,c]=L.useState(localStorage.getItem("token")||"{apiKey}"),[l,h]=L.useState(!1),[f,m]=L.useState(!1),p=L.useMemo(()=>o?o.length>20?`${o.slice(0,20)}…`:o:"",[o]),b=l?"Loading…":p,[_,E]=L.useState(""),[x,k]=L.useState(""),y=(u==null?void 0:u.products)??[],D=L.useMemo(()=>_&&y.find(se=>se.name===_)||null,[_,y]),S=(D==null?void 0:D.variants)??[],I=L.useMemo(()=>!x||!D?null:S.find(se=>se.name===x)||null,[x,S,D]),M=`${s}`,H=`${M}/v1/customer-orders/${a}`,U={parts:[{productId:D?String(D.id):"{productId}",productVariantId:I?String(I.id):"{productVariantId}",quantity:1}]},P=JSON.stringify(U,null,2),B=`curl -X POST "${H}" -H "Authorization: Bearer ${o}" -H "Content-Type: application/json" -d '${P}'`,O={data:{id:"3fa85f64-5717-4562-b3fc-2c963f66afa6",fullAccessToken:"string"},message:"string",errors:[]},X=JSON.stringify(O,null,2),K=`curl -X GET "${`${M}/v1/orders/${a}/{id}/{accessToken}`}"`;L.useEffect(()=>{let se=!0;return(async()=>{var C;h(!0);try{const{data:V}=await W2(),te=(C=V==null?void 0:V.data)==null?void 0:C.accessToken;se&&te&&c(te)}catch(V){console.error("Failed to fetch customer API key",V)}finally{se&&h(!1)}})(),()=>{se=!1}},[]);const ue=async()=>{var se;m(!0);try{const{data:_e}=await Y2(),C=(se=_e==null?void 0:_e.data)==null?void 0:se.accessToken;C&&(c(C),r([...n,{id:g.v4(),message:"API key has been successfully regenerated.",status:"success"}]))}catch(_e){r([...n,{id:g.v4(),message:_e.message??"Failed to regenerate API Key.",status:"error"}])}finally{m(!1)}},ae=se=>{e(se)};return i.jsx("div",{className:re.apiPage,children:i.jsxs("div",{className:re.cards,children:[i.jsxs("section",{className:re.card,"aria-label":"API Key",children:[i.jsx("header",{className:re.cardHeader,children:i.jsxs("div",{className:re.cardHeaderRow,children:[i.jsx("div",{children:i.jsx("div",{className:re.cardTitle,children:"API Key"})}),i.jsx("div",{className:re.apiKeyMeta,children:i.jsx(N.Button,{type:"Secondary",className:re.regenerateButton,onClick:ue,disabled:f,children:f?"Regenerating...":"Regenerate"})})]})}),i.jsx("div",{className:re.fieldRow,children:i.jsxs("div",{className:re.fieldValueWrapper,children:[i.jsx("div",{className:re.fieldValue,children:b}),i.jsx("button",{type:"button",className:re.copyButton,onClick:()=>ae(o),"aria-label":"Copy API key",children:i.jsx(N.Icon,{name:"Copy"})})]})})]}),i.jsxs("section",{className:re.card,"aria-label":"API Getting Started",children:[i.jsx("header",{className:re.cardHeader,children:i.jsx("div",{className:re.cardTitle,children:"Getting Started"})}),i.jsxs("div",{className:re.fieldRow,children:[i.jsx("div",{className:re.fieldLabel,children:"Base URL"}),i.jsxs("div",{className:re.fieldValueWrapper,children:[i.jsx("div",{className:re.fieldValue,children:s}),i.jsx("button",{type:"button",className:re.copyButton,onClick:()=>ae(s),"aria-label":"Copy base URL",children:i.jsx(N.Icon,{name:"Copy"})})]})]}),i.jsxs("div",{className:re.fieldRow,children:[i.jsx("div",{className:re.fieldLabel,children:"Authorization"}),i.jsxs("div",{className:re.fieldValueWrapper,children:[i.jsx("div",{className:re.fieldValue,children:`Bearer ${p}`}),i.jsx("button",{type:"button",className:re.copyButton,onClick:()=>ae(`Bearer ${o}`),"aria-label":"Copy authentication header",children:i.jsx(N.Icon,{name:"Copy"})})]})]})]}),i.jsxs("section",{className:re.card,"aria-label":"Purchase Product via API",children:[i.jsxs("header",{className:re.cardHeader,children:[i.jsx("div",{className:re.cardTitle,children:(u==null?void 0:u.purchaseProductCustomTitle)||"Purchase Product via API"}),u!=null&&u.purchaseProductCustomDescription?i.jsx("div",{className:re.cardDescription,children:u==null?void 0:u.purchaseProductCustomDescription}):null]}),i.jsxs("div",{className:re.twoColumn,children:[i.jsxs("div",{className:re.selectorGroup,children:[i.jsxs("label",{className:re.selectorLabel,children:["Product",i.jsx(N.Select,{options:y.map(se=>se.name),value:_||"Select product",onChange:se=>{E(se),k("")}})]}),D&&i.jsxs("label",{className:re.selectorLabel,children:["Variant",i.jsx(N.Select,{options:S.map(se=>se.name),value:x||"Select variant",onChange:se=>k(se)})]})]}),i.jsxs("div",{className:re.codeBlockGroup,children:[i.jsxs("div",{className:re.codeBlock,children:[i.jsxs("div",{className:re.codeHeader,children:[i.jsx("div",{className:re.codeTitle,children:"Example Request"}),i.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[i.jsx("div",{className:re.codeMethod,children:"POST"}),i.jsx("button",{className:re.copyButton,type:"button",onClick:()=>ae(B),"aria-label":"Copy example request",children:i.jsx(N.Icon,{name:"Copy"})})]})]}),i.jsx("pre",{style:{color:"var(--text-secondary)"},className:re.codeBody,children:B})]}),i.jsxs("div",{className:re.codeBlock,children:[i.jsxs("div",{className:re.codeHeader,children:[i.jsx("div",{className:re.codeTitle,children:"Example Response"}),i.jsx("button",{className:re.copyButton,type:"button",onClick:()=>ae(X),"aria-label":"Copy example response",children:i.jsx(N.Icon,{name:"Copy"})})]}),i.jsx("pre",{className:re.codeBody,children:Ls(O)})]})]})]})]}),i.jsxs("section",{className:re.card,"aria-label":"Check Order Status",children:[i.jsx("header",{className:re.cardHeader,children:i.jsx("div",{className:re.cardTitle,children:"Check Order Status"})}),i.jsxs("ul",{className:re.endpointDescriptionList,children:[i.jsx("li",{children:"id: Order ID returned when creating an order"}),i.jsx("li",{children:"accessToken: FullAccessToken returned when creating an order"})]}),i.jsxs("div",{className:re.codeBlock,children:[i.jsxs("div",{className:re.codeHeader,children:[i.jsx("div",{className:re.codeTitle,children:"Example Request"}),i.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[i.jsx("div",{className:re.codeMethod,children:"GET"}),i.jsx("button",{className:re.copyButton,type:"button",onClick:()=>ae(K),"aria-label":"Copy status example request",children:i.jsx(N.Icon,{name:"Copy"})})]})]}),i.jsx("pre",{className:re.codeBody,children:K})]})]})]})})};var S4=Object.defineProperty,I4=Object.defineProperties,N4=Object.getOwnPropertyDescriptors,Ku=Object.getOwnPropertySymbols,i0=Object.prototype.hasOwnProperty,o0=Object.prototype.propertyIsEnumerable,Po=(e,t,n)=>t in e?S4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v4=(e,t)=>{for(var n in t||(t={}))i0.call(t,n)&&Po(e,n,t[n]);if(Ku)for(var n of Ku(t))o0.call(t,n)&&Po(e,n,t[n]);return e},w4=(e,t)=>I4(e,N4(t)),D4=(e,t)=>{var n={};for(var r in e)i0.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ku)for(var r of Ku(e))t.indexOf(r)<0&&o0.call(e,r)&&(n[r]=e[r]);return n};function L4(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function P4(e){let t=me.useRef();return me.useEffect(()=>{t.current=e}),t.current}var R4=18,c0=40,M4=`${c0}px`,O4=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function j4({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[u,a]=me.useState(!1),[s,o]=me.useState(!1),[c,l]=me.useState(!1),h=me.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&u&&s,[u,s,n]),f=me.useCallback(()=>{let m=e.current,p=t.current;if(!m||!p||c||n==="none")return;let b=m,_=b.getBoundingClientRect().left+b.offsetWidth,E=b.getBoundingClientRect().top+b.offsetHeight/2,x=_-R4,k=E;document.querySelectorAll(O4).length===0&&document.elementFromPoint(x,k)===m||(a(!0),l(!0))},[e,t,c,n]);return me.useEffect(()=>{let m=e.current;if(!m||n==="none")return;function p(){let _=window.innerWidth-m.getBoundingClientRect().right;o(_>=c0)}p();let b=setInterval(p,1e3);return()=>{clearInterval(b)}},[e,n]),me.useEffect(()=>{let m=r||document.activeElement===t.current;if(n==="none"||!m)return;let p=setTimeout(f,0),b=setTimeout(f,2e3),_=setTimeout(f,5e3),E=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(p),clearTimeout(b),clearTimeout(_),clearTimeout(E)}},[t,r,n,f]),{hasPWMBadge:u,willPushPWMBadge:h,PWM_BADGE_SPACE_WIDTH:M4}}var F4=me.createContext({}),l0=me.forwardRef((e,t)=>{var n=e,{value:r,onChange:u,maxLength:a,textAlign:s="left",pattern:o,placeholder:c,inputMode:l="numeric",onComplete:h,pushPasswordManagerStrategy:f="increase-width",pasteTransformer:m,containerClassName:p,noScriptCSSFallback:b=B4,render:_,children:E}=n,x=D4(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),k,y,D,S,I;let[M,H]=me.useState(typeof x.defaultValue=="string"?x.defaultValue:""),U=r??M,P=P4(U),B=me.useCallback(oe=>{u==null||u(oe),H(oe)},[u]),O=me.useMemo(()=>o?typeof o=="string"?new RegExp(o):o:null,[o]),X=me.useRef(null),Y=me.useRef(null),K=me.useRef({value:U,onChange:B,isIOS:typeof window<"u"&&((y=(k=window==null?void 0:window.CSS)==null?void 0:k.supports)==null?void 0:y.call(k,"-webkit-touch-callout","none"))}),ue=me.useRef({prev:[(D=X.current)==null?void 0:D.selectionStart,(S=X.current)==null?void 0:S.selectionEnd,(I=X.current)==null?void 0:I.selectionDirection]});me.useImperativeHandle(t,()=>X.current,[]),me.useEffect(()=>{let oe=X.current,pe=Y.current;if(!oe||!pe)return;K.current.value!==oe.value&&K.current.onChange(oe.value),ue.current.prev=[oe.selectionStart,oe.selectionEnd,oe.selectionDirection];function Qe(){if(document.activeElement!==oe){te(null),J(null);return}let ee=oe.selectionStart,ge=oe.selectionEnd,mt=oe.selectionDirection,gt=oe.maxLength,qt=oe.value,At=ue.current.prev,Ve=-1,j=-1,W;if(qt.length!==0&&ee!==null&&ge!==null){let Ot=ee===ge,_n=ee===qt.length&&qt.length<gt;if(Ot&&!_n){let dt=ee;if(dt===0)Ve=0,j=1,W="forward";else if(dt===gt)Ve=dt-1,j=dt,W="backward";else if(gt>1&&qt.length>1){let xn=0;if(At[0]!==null&&At[1]!==null){W=dt<At[1]?"backward":"forward";let Yn=At[0]===At[1]&&At[0]<gt;W==="backward"&&!Yn&&(xn=-1)}Ve=xn+dt,j=xn+dt+1}}Ve!==-1&&j!==-1&&Ve!==j&&X.current.setSelectionRange(Ve,j,W)}let fe=Ve!==-1?Ve:ee,Se=j!==-1?j:ge,Oe=W??mt;te(fe),J(Se),ue.current.prev=[fe,Se,Oe]}if(document.addEventListener("selectionchange",Qe,{capture:!0}),Qe(),document.activeElement===oe&&C(!0),!document.getElementById("input-otp-style")){let ee=document.createElement("style");if(ee.id="input-otp-style",document.head.appendChild(ee),ee.sheet){let ge="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Fr(ee.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Fr(ee.sheet,`[data-input-otp]:autofill { ${ge} }`),Fr(ee.sheet,`[data-input-otp]:-webkit-autofill { ${ge} }`),Fr(ee.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Fr(ee.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let Ee=()=>{pe&&pe.style.setProperty("--root-height",`${oe.clientHeight}px`)};Ee();let Ne=new ResizeObserver(Ee);return Ne.observe(oe),()=>{document.removeEventListener("selectionchange",Qe,{capture:!0}),Ne.disconnect()}},[]);let[ae,se]=me.useState(!1),[_e,C]=me.useState(!1),[V,te]=me.useState(null),[v,J]=me.useState(null);me.useEffect(()=>{L4(()=>{var oe,pe,Qe,Ee;(oe=X.current)==null||oe.dispatchEvent(new Event("input"));let Ne=(pe=X.current)==null?void 0:pe.selectionStart,ee=(Qe=X.current)==null?void 0:Qe.selectionEnd,ge=(Ee=X.current)==null?void 0:Ee.selectionDirection;Ne!==null&&ee!==null&&(te(Ne),J(ee),ue.current.prev=[Ne,ee,ge])})},[U,_e]),me.useEffect(()=>{P!==void 0&&U!==P&&P.length<a&&U.length===a&&(h==null||h(U))},[a,h,P,U]);let ne=j4({containerRef:Y,inputRef:X,pushPasswordManagerStrategy:f,isFocused:_e}),Q=me.useCallback(oe=>{let pe=oe.currentTarget.value.slice(0,a);if(pe.length>0&&O&&!O.test(pe)){oe.preventDefault();return}typeof P=="string"&&pe.length<P.length&&document.dispatchEvent(new Event("selectionchange")),B(pe)},[a,B,P,O]),de=me.useCallback(()=>{var oe;if(X.current){let pe=Math.min(X.current.value.length,a-1),Qe=X.current.value.length;(oe=X.current)==null||oe.setSelectionRange(pe,Qe),te(pe),J(Qe)}C(!0)},[a]),le=me.useCallback(oe=>{var pe,Qe;let Ee=X.current;if(!m&&(!K.current.isIOS||!oe.clipboardData||!Ee))return;let Ne=oe.clipboardData.getData("text/plain"),ee=m?m(Ne):Ne;oe.preventDefault();let ge=(pe=X.current)==null?void 0:pe.selectionStart,mt=(Qe=X.current)==null?void 0:Qe.selectionEnd,gt=(ge!==mt?U.slice(0,ge)+ee+U.slice(mt):U.slice(0,ge)+ee+U.slice(ge)).slice(0,a);if(gt.length>0&&O&&!O.test(gt))return;Ee.value=gt,B(gt);let qt=Math.min(gt.length,a-1),At=gt.length;Ee.setSelectionRange(qt,At),te(qt),J(At)},[a,B,O,U]),ie=me.useMemo(()=>({position:"relative",cursor:x.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[x.disabled]),xe=me.useMemo(()=>({position:"absolute",inset:0,width:ne.willPushPWMBadge?`calc(100% + ${ne.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:ne.willPushPWMBadge?`inset(0 ${ne.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:s,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[ne.PWM_BADGE_SPACE_WIDTH,ne.willPushPWMBadge,s]),$e=me.useMemo(()=>me.createElement("input",w4(v4({autoComplete:x.autoComplete||"one-time-code"},x),{"data-input-otp":!0,"data-input-otp-placeholder-shown":U.length===0||void 0,"data-input-otp-mss":V,"data-input-otp-mse":v,inputMode:l,pattern:O==null?void 0:O.source,"aria-placeholder":c,style:xe,maxLength:a,value:U,ref:X,onPaste:oe=>{var pe;le(oe),(pe=x.onPaste)==null||pe.call(x,oe)},onChange:Q,onMouseOver:oe=>{var pe;se(!0),(pe=x.onMouseOver)==null||pe.call(x,oe)},onMouseLeave:oe=>{var pe;se(!1),(pe=x.onMouseLeave)==null||pe.call(x,oe)},onFocus:oe=>{var pe;de(),(pe=x.onFocus)==null||pe.call(x,oe)},onBlur:oe=>{var pe;C(!1),(pe=x.onBlur)==null||pe.call(x,oe)}})),[Q,de,le,l,xe,a,v,V,x,O==null?void 0:O.source,U]),G=me.useMemo(()=>({slots:Array.from({length:a}).map((oe,pe)=>{var Qe;let Ee=_e&&V!==null&&v!==null&&(V===v&&pe===V||pe>=V&&pe<v),Ne=U[pe]!==void 0?U[pe]:null,ee=U[0]!==void 0?null:(Qe=c==null?void 0:c[pe])!=null?Qe:null;return{char:Ne,placeholderChar:ee,isActive:Ee,hasFakeCaret:Ee&&Ne===null}}),isFocused:_e,isHovering:!x.disabled&&ae}),[_e,ae,a,v,V,x.disabled,U]),pt=me.useMemo(()=>_?_(G):me.createElement(F4.Provider,{value:G},E),[E,G,_]);return me.createElement(me.Fragment,null,b!==null&&me.createElement("noscript",null,me.createElement("style",null,b)),me.createElement("div",{ref:Y,"data-input-otp-container":!0,style:ie,className:p},pt,me.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},$e)))});l0.displayName="Input";function Fr(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var B4=`
|
|
65
65
|
[data-input-otp] {
|
|
66
66
|
--nojs-bg: white !important;
|
|
67
67
|
--nojs-fg: black !important;
|
|
@@ -80,36 +80,36 @@ and limitations under the License.
|
|
|
80
80
|
--nojs-bg: black !important;
|
|
81
81
|
--nojs-fg: white !important;
|
|
82
82
|
}
|
|
83
|
-
}`;const B4="_authContainer_1uyf7_2",H4="_authWrapper_1uyf7_12",U4="_inModal_1uyf7_19",V4="_formHeaderTitle_1uyf7_26",$4="_formHeaderSubtitle_1uyf7_33",z4="_formLabel_1uyf7_39",q4="_formError_1uyf7_51",Z4="_submitButton_1uyf7_57",W4="_submitButtonAntistock_1uyf7_57",Y4="_backButton_1uyf7_67",G4="_otpContainer_1uyf7_78",X4="_otpSlots_1uyf7_85",K4="_otpSlot_1uyf7_85",Q4="_active_1uyf7_108",J4="_otpSlotEmpty_1uyf7_113",e5="_actionRow_1uyf7_117",t5="_authForm_1uyf7_124",n5="_formHeader_1uyf7_26",r5="_input_1uyf7_135",Ke={authContainer:B4,authWrapper:H4,inModal:U4,formHeaderTitle:V4,formHeaderSubtitle:$4,formLabel:z4,formError:q4,submitButton:Z4,submitButtonAntistock:W4,backButton:Y4,otpContainer:G4,otpSlots:X4,otpSlot:K4,active:Q4,otpSlotEmpty:J4,actionRow:e5,authForm:t5,formHeader:n5,input:r5},u5=L.forwardRef(({value:e,onChange:t,onComplete:n},r)=>i.jsx(c0,{ref:r,value:e,onChange:t,onComplete:n,maxLength:6,containerClassName:Ke.otpContainer,render:({slots:u})=>i.jsx("div",{className:Ke.otpSlots,children:u.map(a=>i.jsx(a5,{...a},crypto.randomUUID()))})}));function a5({char:e,isActive:t}){return i.jsx("div",{className:g.clx(Ke.otpSlot,{[Ke.active]:t}),children:e?i.jsx("div",{children:e}):i.jsx("div",{className:Ke.otpSlotEmpty,children:"0"})})}const s5=e=>{const t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return e.trim()?t.test(e)?null:"Please enter a valid email.":"The email field cannot be empty."},i5=e=>/^[0-9]{6}$/.test(e)?null:"Invalid verification code. The code should be a six-digit number. Please try again",l0=({title:e,subtitle:t,isAntistock:n})=>i.jsxs("div",{className:Ke.formHeader,style:{textAlign:n?"center":void 0},children:[i.jsx("h3",{id:"h3",className:Ke.formHeaderTitle,children:e}),t?i.jsx("div",{className:Ke.formHeaderSubtitle,children:t}):null]}),d0=({error:e})=>e?i.jsx("div",{className:Ke.formError,children:e}):null,f0=()=>{const[e,t]=L.useState(""),[n,r]=L.useState(null),[u,a]=L.useState(!1),{executeRecaptcha:s}=fu(),{setOtpRequest:o}=g.useCustomerDashboardStore(),{isAntistock:c}=g.useGeneralStore(),l=async h=>{h.preventDefault(),r(null);const f=s5(e);if(f){r(f);return}a(!0);try{const m=await s();if(!m)throw new Error("ReCaptcha verification failed");await il({email:e,recaptcha:m,tsId:g.useGetTsId()}),o({requested:!0,email:e})}catch{r("Failed to request OTP. Please try again.")}finally{a(!1)}};return i.jsxs("form",{onSubmit:l,className:Ke.authForm,children:[i.jsx(l0,{title:c?"My Account":"Sign In",subtitle:c?"":"To continue, enter your email address below.",isAntistock:c}),i.jsxs("div",{className:Ke.input,children:[i.jsx(N.Input,{label:c?"Email":"Email Address",placeholder:"your@email.com",value:e,onChange:h=>{t(h),r(null)}}),i.jsx(d0,{error:n})]}),i.jsx(N.Button,{type:"Primary",className:c?Ke.submitButtonAntistock:Ke.submitButton,disabled:u,children:u?c?i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx(N.Loader,{}),i.jsx("span",{children:"Continue"})]}):i.jsx(N.Loader,{}):c?"Continue":"Sign In"}),i.jsx("span",{style:{color:"var(--text-secondary)",paddingTop:"8px",fontSize:"var(--font-body-md-size)",textAlign:"center"},children:"You will receive a 6-digit account code via email."})]})},h0=({onSignIn:e})=>{const{otpRequest:t,setOtpRequest:n}=g.useCustomerDashboardStore(),{isAntistock:r}=g.useGeneralStore(),[u,a]=L.useState(""),[s,o]=L.useState(null),[c,l]=L.useState(!1),{executeRecaptcha:h}=fu(),f=async()=>{o(null);const p=i5(u);if(p){o(p);return}l(!0);try{const b=await h();if(!b)throw new Error("ReCaptcha verification failed");await ol({email:t.email,otp:u,recaptcha:b||"",tsId:g.useGetTsId()}),e&&e()}catch{o("Invalid OTP. Please try again.")}finally{l(!1)}},m=()=>n({requested:!1,email:""});return i.jsxs("form",{onSubmit:f,className:Ke.authForm,children:[i.jsx(l0,{title:"Check Your Email",subtitle:`Enter the 6-digit code we sent to ${t.email}`,isAntistock:r}),i.jsxs("label",{className:Ke.formLabel,children:["Code",i.jsx(u5,{onChange:p=>{a(p),o(null)},value:u,onComplete:f})]}),i.jsx(d0,{error:s}),i.jsxs("div",{className:Ke.actionRow,children:[i.jsx(N.Button,{onClick:m,type:"Secondary",className:Ke.backButton,children:"Back"}),i.jsx(N.Button,{type:"Primary",className:r?Ke.submitButtonAntistock:Ke.submitButton,disabled:c,children:c?i.jsx(N.Loader,{}):r?"Continue":"Sign In"})]})]})},pa=({inModal:e,onSignIn:t})=>{const{otpRequest:n,setOtpRequest:r}=g.useCustomerDashboardStore();return L.useEffect(()=>{n.requested&&r({requested:!1,email:""})},[]),i.jsx("div",{className:Ke.authContainer,children:n?i.jsx("div",{className:g.clx(Ke.authWrapper,e&&Ke.inModal),children:n.requested?i.jsx(h0,{onSignIn:t}):i.jsx(f0,{})}):i.jsx(N.Loader,{})})};function o5(){const e=new URL(window.location.href);window.history.replaceState(null,"",e.pathname+e.hash)}var fi=(e=>(e.ADD_BALANCE="AddBalance",e))(fi||{});function c5(){const e=new URLSearchParams(document.location.search),t=e.get("page"),n=e.get("action");return{page:t,action:n}}function l5(){const{page:e,action:t}=c5(),{setRoute:n,setAction:r}=g.useCustomerDashboardStore.getState();e&&Object.values(g.Routes).includes(e)&&n(e),t&&Object.values(fi).includes(t)&&r(t),o5()}const d5=()=>typeof g.Routes>"u"?(console.warn("Routes not available for RouteToRouteComponent"),{}):{[g.Routes.Home]:r0,[g.Routes.Orders]:rl.Orders,[g.Routes.Rewards]:u0,[g.Routes.Balance]:t0,[g.Routes.Subscriptions]:e2.Subscriptions,[g.Routes.Api]:a0,[g.Routes.Tickets]:nl.Tickets},f5=()=>typeof g.AntistockRoutes>"u"?(console.warn("AntistockRoutes not available for RouteToAntistockRouteComponent"),{}):{[g.AntistockRoutes.Home]:r0,[g.AntistockRoutes.Orders]:rl.Orders,[g.AntistockRoutes.Rewards]:u0,[g.AntistockRoutes.Balance]:t0,[g.AntistockRoutes.Api]:a0,[g.AntistockRoutes.Tickets]:nl.Tickets},h5=()=>{var l;const{route:e,action:t,setRoute:n,setIsBalanceModalOpen:r}=g.useCustomerDashboardStore(),{resetPage:u}=g.usePaginationPagesStore(),{token:a}=g.useStorefrontStore(),{isAntistock:s,general:o}=g.useGeneralStore(),c=s?f5()[e]:d5()[e];return L.useEffect(()=>{u(),l5()},[a,e,u]),L.useEffect(()=>{t===fi.ADD_BALANCE&&e===g.Routes.Balance&&r(!0)},[e,t]),L.useEffect(()=>{window.location.pathname.includes("/ticket")&&n(g.Routes.Tickets)},[window.location.pathname]),(l=o==null?void 0:o.info)!=null&&l.customerAccountSettings&&(o.info.customerAccountSettings??"OPTIONAL")==="DISABLED"?i.jsx(g.Navigate,{to:"/",replace:!0}):a?i.jsx("div",{style:{maxWidth:"var(--max-width-store)",margin:"0 auto",height:"100%"},children:i.jsx(N.Wrapper,{notPadding:!0,style:{height:"100%"},maxWidth:"var(--max-width-store)",children:h=>i.jsxs("main",{className:g.clx(Gn.appContainer,{[Gn.mobile]:h!=="desktop",[Gn.noAnimation]:s,[Gn.appContainerAntistock]:s}),children:[i.jsx(Zl,{adaptiveStyles:h}),i.jsx("div",{className:g.clx(Gn.contentContainer,{[Gn.mobile]:h!=="desktop",[Gn.contentContainerAntistock]:s}),children:i.jsx(c,{adaptiveStyles:h})})]})})}):i.jsx(pa,{})},p5=()=>i.jsx(ni,{children:i.jsx(h5,{})}),m5="_referralBlock_kla2r_2",g5="_skeleton_kla2r_3",b5="_mobile_kla2r_13",_5="_referralContainer_kla2r_18",x5="_title_kla2r_30",C5="_description_kla2r_36",E5="_linkContainer_kla2r_56",y5="_modalContainer_kla2r_77",T5="_steps_kla2r_86",k5="_joinButton_kla2r_92",A5="_stepItem_kla2r_97",S5="_iconContainer_kla2r_103",I5="_index_kla2r_111",N5="_bar_kla2r_123",v5="_content_kla2r_130",w5="_caption_kla2r_135",D5="_descriptionStep_kla2r_141",L5="_error_kla2r_151",P5="_infoBlock_kla2r_155",R5="_infoIcon_kla2r_164",M5="_infoText_kla2r_173",O5="_actions_kla2r_178",j5="_cancelButton_kla2r_183",F5="_referralStats_kla2r_187",B5="_referralInfo_kla2r_204",H5="_referralStatsItem_kla2r_210",U5="_referralStatsItemValue_kla2r_220",V5="_referralStatsItemLabel_kla2r_225",$5="_referral_kla2r_2",z5="_header_kla2r_244",q5="_contentModal_kla2r_254",Ce={referralBlock:m5,skeleton:g5,mobile:b5,referralContainer:_5,title:x5,description:C5,linkContainer:E5,modalContainer:y5,steps:T5,joinButton:k5,stepItem:A5,iconContainer:S5,index:I5,bar:N5,content:v5,caption:w5,descriptionStep:D5,error:L5,infoBlock:P5,infoIcon:R5,infoText:M5,actions:O5,cancelButton:j5,referralStats:F5,referralInfo:B5,referralStatsItem:H5,referralStatsItemValue:U5,referralStatsItemLabel:V5,referral:$5,header:z5,contentModal:q5},Z5=({caption:e,description:t,index:n,bar:r=!0})=>i.jsxs("div",{className:Ce.stepItem,children:[i.jsxs("div",{className:Ce.iconContainer,children:[i.jsx("div",{className:Ce.index,children:n}),r&&i.jsx("div",{className:Ce.bar})]}),i.jsxs("div",{className:Ce.content,children:[i.jsx("div",{className:Ce.caption,children:e}),i.jsx("div",{className:Ce.descriptionStep,children:t})]})]}),W5=({setIsOpen:e,setIsLoading:t})=>{const[n,r]=L.useState(""),[u,a]=L.useState(""),{notifications:s,setNotifications:o}=g.useNotificationStore(),{setIsOpen:c}=g.useModalStore(),l=async f=>{if(f.preventDefault(),n.length<3){a("Referral Code should have minimum length of 3");return}t(!0),h();try{await U2({referralCode:n}),o([...s,{message:"Referral Code has been applied",status:"success",id:g.v4()}])}catch(m){const p=m;o([...s,{message:p.message,status:"error",id:g.v4()}])}t(!1),e(!1),r(""),a("")},h=()=>{c(!1),setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{onClick:f=>f.stopPropagation(),className:Ce.modalContainer,children:[i.jsxs("div",{className:Ce.header,children:[i.jsx("div",{id:"h3",children:"Create an affiliate code"}),i.jsx(N.Icon,{name:"X",onClick:h,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Ce.contentModal,children:[i.jsx(N.Input,{value:n,onChange:f=>r(f),placeholder:"Enter code here (e.g., Join)",label:"Affiliate Code"}),u&&i.jsx("div",{className:Ce.error,children:u}),i.jsxs("div",{className:Ce.infoBlock,children:[i.jsx("div",{className:Ce.infoIcon,children:i.jsx(N.Icon,{name:"Info"})}),i.jsx("div",{className:Ce.infoText,children:"Once you join our referral program, you'll gain access to special deals, rewards, and potentially earn a percentage (%) of revenue."})]}),i.jsxs("div",{className:Ce.actions,children:[i.jsx(N.Button,{type:"Secondary",className:Ce.cancelButton,onClick:h,children:"Cancel"}),i.jsx(N.Button,{type:"Primary",onClick:l,children:"Create"})]})]})]})},wu=()=>i.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:i.jsxs("svg",{width:"100%",height:"64",viewBox:"0 0 208 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_2098_5511)",children:[i.jsx("mask",{id:"path-1-inside-1_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 0H208V16H0V0Z"})}),i.jsx("path",{d:"M208 16.5C208.276 16.5 208.5 16.2761 208.5 16C208.5 15.7239 208.276 15.5 208 15.5V16.5ZM0 15.5C-0.276142 15.5 -0.5 15.7239 -0.5 16C-0.5 16.2761 -0.276142 16.5 0 16.5V15.5ZM4 16.5C4.27614 16.5 4.5 16.2761 4.5 16C4.5 15.7239 4.27614 15.5 4 15.5V16.5ZM12 15.5C11.7239 15.5 11.5 15.7239 11.5 16C11.5 16.2761 11.7239 16.5 12 16.5V15.5ZM20 16.5C20.2761 16.5 20.5 16.2761 20.5 16C20.5 15.7239 20.2761 15.5 20 15.5V16.5ZM28 15.5C27.7239 15.5 27.5 15.7239 27.5 16C27.5 16.2761 27.7239 16.5 28 16.5V15.5ZM36 16.5C36.2761 16.5 36.5 16.2761 36.5 16C36.5 15.7239 36.2761 15.5 36 15.5V16.5ZM44 15.5C43.7239 15.5 43.5 15.7239 43.5 16C43.5 16.2761 43.7239 16.5 44 16.5V15.5ZM52 16.5C52.2761 16.5 52.5 16.2761 52.5 16C52.5 15.7239 52.2761 15.5 52 15.5V16.5ZM60 15.5C59.7239 15.5 59.5 15.7239 59.5 16C59.5 16.2761 59.7239 16.5 60 16.5V15.5ZM68 16.5C68.2761 16.5 68.5 16.2761 68.5 16C68.5 15.7239 68.2761 15.5 68 15.5V16.5ZM76 15.5C75.7239 15.5 75.5 15.7239 75.5 16C75.5 16.2761 75.7239 16.5 76 16.5V15.5ZM84 16.5C84.2761 16.5 84.5 16.2761 84.5 16C84.5 15.7239 84.2761 15.5 84 15.5V16.5ZM92 15.5C91.7239 15.5 91.5 15.7239 91.5 16C91.5 16.2761 91.7239 16.5 92 16.5V15.5ZM100 16.5C100.276 16.5 100.5 16.2761 100.5 16C100.5 15.7239 100.276 15.5 100 15.5V16.5ZM108 15.5C107.724 15.5 107.5 15.7239 107.5 16C107.5 16.2761 107.724 16.5 108 16.5V15.5ZM116 16.5C116.276 16.5 116.5 16.2761 116.5 16C116.5 15.7239 116.276 15.5 116 15.5V16.5ZM124 15.5C123.724 15.5 123.5 15.7239 123.5 16C123.5 16.2761 123.724 16.5 124 16.5V15.5ZM132 16.5C132.276 16.5 132.5 16.2761 132.5 16C132.5 15.7239 132.276 15.5 132 15.5V16.5ZM140 15.5C139.724 15.5 139.5 15.7239 139.5 16C139.5 16.2761 139.724 16.5 140 16.5V15.5ZM148 16.5C148.276 16.5 148.5 16.2761 148.5 16C148.5 15.7239 148.276 15.5 148 15.5V16.5ZM156 15.5C155.724 15.5 155.5 15.7239 155.5 16C155.5 16.2761 155.724 16.5 156 16.5V15.5ZM164 16.5C164.276 16.5 164.5 16.2761 164.5 16C164.5 15.7239 164.276 15.5 164 15.5V16.5ZM172 15.5C171.724 15.5 171.5 15.7239 171.5 16C171.5 16.2761 171.724 16.5 172 16.5V15.5ZM180 16.5C180.276 16.5 180.5 16.2761 180.5 16C180.5 15.7239 180.276 15.5 180 15.5V16.5ZM188 15.5C187.724 15.5 187.5 15.7239 187.5 16C187.5 16.2761 187.724 16.5 188 16.5V15.5ZM196 16.5C196.276 16.5 196.5 16.2761 196.5 16C196.5 15.7239 196.276 15.5 196 15.5V16.5ZM204 15.5C203.724 15.5 203.5 15.7239 203.5 16C203.5 16.2761 203.724 16.5 204 16.5V15.5ZM0 16.5H4V15.5H0V16.5ZM12 16.5H20V15.5H12V16.5ZM28 16.5H36V15.5H28V16.5ZM44 16.5H52V15.5H44V16.5ZM60 16.5H68V15.5H60V16.5ZM76 16.5H84V15.5H76V16.5ZM92 16.5H100V15.5H92V16.5ZM108 16.5H116V15.5H108V16.5ZM124 16.5H132V15.5H124V16.5ZM140 16.5H148V15.5H140V16.5ZM156 16.5H164V15.5H156V16.5ZM172 16.5H180V15.5H172V16.5ZM188 16.5H196V15.5H188V16.5ZM204 16.5H208V15.5H204V16.5ZM208 17C208.552 17 209 16.5523 209 16C209 15.4477 208.552 15 208 15V17ZM0 15C-0.552285 15 -1 15.4477 -1 16C-1 16.5523 -0.552285 17 0 17V15ZM4 17C4.55228 17 5 16.5523 5 16C5 15.4477 4.55228 15 4 15V17ZM12 15C11.4477 15 11 15.4477 11 16C11 16.5523 11.4477 17 12 17V15ZM20 17C20.5523 17 21 16.5523 21 16C21 15.4477 20.5523 15 20 15V17ZM28 15C27.4477 15 27 15.4477 27 16C27 16.5523 27.4477 17 28 17V15ZM36 17C36.5523 17 37 16.5523 37 16C37 15.4477 36.5523 15 36 15V17ZM44 15C43.4477 15 43 15.4477 43 16C43 16.5523 43.4477 17 44 17V15ZM52 17C52.5523 17 53 16.5523 53 16C53 15.4477 52.5523 15 52 15V17ZM60 15C59.4477 15 59 15.4477 59 16C59 16.5523 59.4477 17 60 17V15ZM68 17C68.5523 17 69 16.5523 69 16C69 15.4477 68.5523 15 68 15V17ZM76 15C75.4477 15 75 15.4477 75 16C75 16.5523 75.4477 17 76 17V15ZM84 17C84.5523 17 85 16.5523 85 16C85 15.4477 84.5523 15 84 15V17ZM92 15C91.4477 15 91 15.4477 91 16C91 16.5523 91.4477 17 92 17V15ZM100 17C100.552 17 101 16.5523 101 16C101 15.4477 100.552 15 100 15V17ZM108 15C107.448 15 107 15.4477 107 16C107 16.5523 107.448 17 108 17V15ZM116 17C116.552 17 117 16.5523 117 16C117 15.4477 116.552 15 116 15V17ZM124 15C123.448 15 123 15.4477 123 16C123 16.5523 123.448 17 124 17V15ZM132 17C132.552 17 133 16.5523 133 16C133 15.4477 132.552 15 132 15V17ZM140 15C139.448 15 139 15.4477 139 16C139 16.5523 139.448 17 140 17V15ZM148 17C148.552 17 149 16.5523 149 16C149 15.4477 148.552 15 148 15V17ZM156 15C155.448 15 155 15.4477 155 16C155 16.5523 155.448 17 156 17V15ZM164 17C164.552 17 165 16.5523 165 16C165 15.4477 164.552 15 164 15V17ZM172 15C171.448 15 171 15.4477 171 16C171 16.5523 171.448 17 172 17V15ZM180 17C180.552 17 181 16.5523 181 16C181 15.4477 180.552 15 180 15V17ZM188 15C187.448 15 187 15.4477 187 16C187 16.5523 187.448 17 188 17V15ZM196 17C196.552 17 197 16.5523 197 16C197 15.4477 196.552 15 196 15V17ZM204 15C203.448 15 203 15.4477 203 16C203 16.5523 203.448 17 204 17V15ZM0 17H4V15H0V17ZM12 17H20V15H12V17ZM28 17H36V15H28V17ZM44 17H52V15H44V17ZM60 17H68V15H60V17ZM76 17H84V15H76V17ZM92 17H100V15H92V17ZM108 17H116V15H108V17ZM124 17H132V15H124V17ZM140 17H148V15H140V17ZM156 17H164V15H156V17ZM172 17H180V15H172V17ZM188 17H196V15H188V17ZM204 17H208V15H204V17Z",fill:"#F8F8F8",mask:"url(#path-1-inside-1_2098_5511)"}),i.jsx("mask",{id:"path-3-inside-2_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 16H208V32H0V16Z"})}),i.jsx("path",{d:"M208 32.5C208.276 32.5 208.5 32.2761 208.5 32C208.5 31.7239 208.276 31.5 208 31.5V32.5ZM0 31.5C-0.276142 31.5 -0.5 31.7239 -0.5 32C-0.5 32.2761 -0.276142 32.5 0 32.5V31.5ZM4 32.5C4.27614 32.5 4.5 32.2761 4.5 32C4.5 31.7239 4.27614 31.5 4 31.5V32.5ZM12 31.5C11.7239 31.5 11.5 31.7239 11.5 32C11.5 32.2761 11.7239 32.5 12 32.5V31.5ZM20 32.5C20.2761 32.5 20.5 32.2761 20.5 32C20.5 31.7239 20.2761 31.5 20 31.5V32.5ZM28 31.5C27.7239 31.5 27.5 31.7239 27.5 32C27.5 32.2761 27.7239 32.5 28 32.5V31.5ZM36 32.5C36.2761 32.5 36.5 32.2761 36.5 32C36.5 31.7239 36.2761 31.5 36 31.5V32.5ZM44 31.5C43.7239 31.5 43.5 31.7239 43.5 32C43.5 32.2761 43.7239 32.5 44 32.5V31.5ZM52 32.5C52.2761 32.5 52.5 32.2761 52.5 32C52.5 31.7239 52.2761 31.5 52 31.5V32.5ZM60 31.5C59.7239 31.5 59.5 31.7239 59.5 32C59.5 32.2761 59.7239 32.5 60 32.5V31.5ZM68 32.5C68.2761 32.5 68.5 32.2761 68.5 32C68.5 31.7239 68.2761 31.5 68 31.5V32.5ZM76 31.5C75.7239 31.5 75.5 31.7239 75.5 32C75.5 32.2761 75.7239 32.5 76 32.5V31.5ZM84 32.5C84.2761 32.5 84.5 32.2761 84.5 32C84.5 31.7239 84.2761 31.5 84 31.5V32.5ZM92 31.5C91.7239 31.5 91.5 31.7239 91.5 32C91.5 32.2761 91.7239 32.5 92 32.5V31.5ZM100 32.5C100.276 32.5 100.5 32.2761 100.5 32C100.5 31.7239 100.276 31.5 100 31.5V32.5ZM108 31.5C107.724 31.5 107.5 31.7239 107.5 32C107.5 32.2761 107.724 32.5 108 32.5V31.5ZM116 32.5C116.276 32.5 116.5 32.2761 116.5 32C116.5 31.7239 116.276 31.5 116 31.5V32.5ZM124 31.5C123.724 31.5 123.5 31.7239 123.5 32C123.5 32.2761 123.724 32.5 124 32.5V31.5ZM132 32.5C132.276 32.5 132.5 32.2761 132.5 32C132.5 31.7239 132.276 31.5 132 31.5V32.5ZM140 31.5C139.724 31.5 139.5 31.7239 139.5 32C139.5 32.2761 139.724 32.5 140 32.5V31.5ZM148 32.5C148.276 32.5 148.5 32.2761 148.5 32C148.5 31.7239 148.276 31.5 148 31.5V32.5ZM156 31.5C155.724 31.5 155.5 31.7239 155.5 32C155.5 32.2761 155.724 32.5 156 32.5V31.5ZM164 32.5C164.276 32.5 164.5 32.2761 164.5 32C164.5 31.7239 164.276 31.5 164 31.5V32.5ZM172 31.5C171.724 31.5 171.5 31.7239 171.5 32C171.5 32.2761 171.724 32.5 172 32.5V31.5ZM180 32.5C180.276 32.5 180.5 32.2761 180.5 32C180.5 31.7239 180.276 31.5 180 31.5V32.5ZM188 31.5C187.724 31.5 187.5 31.7239 187.5 32C187.5 32.2761 187.724 32.5 188 32.5V31.5ZM196 32.5C196.276 32.5 196.5 32.2761 196.5 32C196.5 31.7239 196.276 31.5 196 31.5V32.5ZM204 31.5C203.724 31.5 203.5 31.7239 203.5 32C203.5 32.2761 203.724 32.5 204 32.5V31.5ZM0 32.5H4V31.5H0V32.5ZM12 32.5H20V31.5H12V32.5ZM28 32.5H36V31.5H28V32.5ZM44 32.5H52V31.5H44V32.5ZM60 32.5H68V31.5H60V32.5ZM76 32.5H84V31.5H76V32.5ZM92 32.5H100V31.5H92V32.5ZM108 32.5H116V31.5H108V32.5ZM124 32.5H132V31.5H124V32.5ZM140 32.5H148V31.5H140V32.5ZM156 32.5H164V31.5H156V32.5ZM172 32.5H180V31.5H172V32.5ZM188 32.5H196V31.5H188V32.5ZM204 32.5H208V31.5H204V32.5ZM208 33C208.552 33 209 32.5523 209 32C209 31.4477 208.552 31 208 31V33ZM0 31C-0.552285 31 -1 31.4477 -1 32C-1 32.5523 -0.552285 33 0 33V31ZM4 33C4.55228 33 5 32.5523 5 32C5 31.4477 4.55228 31 4 31V33ZM12 31C11.4477 31 11 31.4477 11 32C11 32.5523 11.4477 33 12 33V31ZM20 33C20.5523 33 21 32.5523 21 32C21 31.4477 20.5523 31 20 31V33ZM28 31C27.4477 31 27 31.4477 27 32C27 32.5523 27.4477 33 28 33V31ZM36 33C36.5523 33 37 32.5523 37 32C37 31.4477 36.5523 31 36 31V33ZM44 31C43.4477 31 43 31.4477 43 32C43 32.5523 43.4477 33 44 33V31ZM52 33C52.5523 33 53 32.5523 53 32C53 31.4477 52.5523 31 52 31V33ZM60 31C59.4477 31 59 31.4477 59 32C59 32.5523 59.4477 33 60 33V31ZM68 33C68.5523 33 69 32.5523 69 32C69 31.4477 68.5523 31 68 31V33ZM76 31C75.4477 31 75 31.4477 75 32C75 32.5523 75.4477 33 76 33V31ZM84 33C84.5523 33 85 32.5523 85 32C85 31.4477 84.5523 31 84 31V33ZM92 31C91.4477 31 91 31.4477 91 32C91 32.5523 91.4477 33 92 33V31ZM100 33C100.552 33 101 32.5523 101 32C101 31.4477 100.552 31 100 31V33ZM108 31C107.448 31 107 31.4477 107 32C107 32.5523 107.448 33 108 33V31ZM116 33C116.552 33 117 32.5523 117 32C117 31.4477 116.552 31 116 31V33ZM124 31C123.448 31 123 31.4477 123 32C123 32.5523 123.448 33 124 33V31ZM132 33C132.552 33 133 32.5523 133 32C133 31.4477 132.552 31 132 31V33ZM140 31C139.448 31 139 31.4477 139 32C139 32.5523 139.448 33 140 33V31ZM148 33C148.552 33 149 32.5523 149 32C149 31.4477 148.552 31 148 31V33ZM156 31C155.448 31 155 31.4477 155 32C155 32.5523 155.448 33 156 33V31ZM164 33C164.552 33 165 32.5523 165 32C165 31.4477 164.552 31 164 31V33ZM172 31C171.448 31 171 31.4477 171 32C171 32.5523 171.448 33 172 33V31ZM180 33C180.552 33 181 32.5523 181 32C181 31.4477 180.552 31 180 31V33ZM188 31C187.448 31 187 31.4477 187 32C187 32.5523 187.448 33 188 33V31ZM196 33C196.552 33 197 32.5523 197 32C197 31.4477 196.552 31 196 31V33ZM204 31C203.448 31 203 31.4477 203 32C203 32.5523 203.448 33 204 33V31ZM0 33H4V31H0V33ZM12 33H20V31H12V33ZM28 33H36V31H28V33ZM44 33H52V31H44V33ZM60 33H68V31H60V33ZM76 33H84V31H76V33ZM92 33H100V31H92V33ZM108 33H116V31H108V33ZM124 33H132V31H124V33ZM140 33H148V31H140V33ZM156 33H164V31H156V33ZM172 33H180V31H172V33ZM188 33H196V31H188V33ZM204 33H208V31H204V33Z",fill:"#F8F8F8",mask:"url(#path-3-inside-2_2098_5511)"}),i.jsx("mask",{id:"path-5-inside-3_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 32H208V48H0V32Z"})}),i.jsx("path",{d:"M208 48.5C208.276 48.5 208.5 48.2761 208.5 48C208.5 47.7239 208.276 47.5 208 47.5V48.5ZM0 47.5C-0.276142 47.5 -0.5 47.7239 -0.5 48C-0.5 48.2761 -0.276142 48.5 0 48.5V47.5ZM4 48.5C4.27614 48.5 4.5 48.2761 4.5 48C4.5 47.7239 4.27614 47.5 4 47.5V48.5ZM12 47.5C11.7239 47.5 11.5 47.7239 11.5 48C11.5 48.2761 11.7239 48.5 12 48.5V47.5ZM20 48.5C20.2761 48.5 20.5 48.2761 20.5 48C20.5 47.7239 20.2761 47.5 20 47.5V48.5ZM28 47.5C27.7239 47.5 27.5 47.7239 27.5 48C27.5 48.2761 27.7239 48.5 28 48.5V47.5ZM36 48.5C36.2761 48.5 36.5 48.2761 36.5 48C36.5 47.7239 36.2761 47.5 36 47.5V48.5ZM44 47.5C43.7239 47.5 43.5 47.7239 43.5 48C43.5 48.2761 43.7239 48.5 44 48.5V47.5ZM52 48.5C52.2761 48.5 52.5 48.2761 52.5 48C52.5 47.7239 52.2761 47.5 52 47.5V48.5ZM60 47.5C59.7239 47.5 59.5 47.7239 59.5 48C59.5 48.2761 59.7239 48.5 60 48.5V47.5ZM68 48.5C68.2761 48.5 68.5 48.2761 68.5 48C68.5 47.7239 68.2761 47.5 68 47.5V48.5ZM76 47.5C75.7239 47.5 75.5 47.7239 75.5 48C75.5 48.2761 75.7239 48.5 76 48.5V47.5ZM84 48.5C84.2761 48.5 84.5 48.2761 84.5 48C84.5 47.7239 84.2761 47.5 84 47.5V48.5ZM92 47.5C91.7239 47.5 91.5 47.7239 91.5 48C91.5 48.2761 91.7239 48.5 92 48.5V47.5ZM100 48.5C100.276 48.5 100.5 48.2761 100.5 48C100.5 47.7239 100.276 47.5 100 47.5V48.5ZM108 47.5C107.724 47.5 107.5 47.7239 107.5 48C107.5 48.2761 107.724 48.5 108 48.5V47.5ZM116 48.5C116.276 48.5 116.5 48.2761 116.5 48C116.5 47.7239 116.276 47.5 116 47.5V48.5ZM124 47.5C123.724 47.5 123.5 47.7239 123.5 48C123.5 48.2761 123.724 48.5 124 48.5V47.5ZM132 48.5C132.276 48.5 132.5 48.2761 132.5 48C132.5 47.7239 132.276 47.5 132 47.5V48.5ZM140 47.5C139.724 47.5 139.5 47.7239 139.5 48C139.5 48.2761 139.724 48.5 140 48.5V47.5ZM148 48.5C148.276 48.5 148.5 48.2761 148.5 48C148.5 47.7239 148.276 47.5 148 47.5V48.5ZM156 47.5C155.724 47.5 155.5 47.7239 155.5 48C155.5 48.2761 155.724 48.5 156 48.5V47.5ZM164 48.5C164.276 48.5 164.5 48.2761 164.5 48C164.5 47.7239 164.276 47.5 164 47.5V48.5ZM172 47.5C171.724 47.5 171.5 47.7239 171.5 48C171.5 48.2761 171.724 48.5 172 48.5V47.5ZM180 48.5C180.276 48.5 180.5 48.2761 180.5 48C180.5 47.7239 180.276 47.5 180 47.5V48.5ZM188 47.5C187.724 47.5 187.5 47.7239 187.5 48C187.5 48.2761 187.724 48.5 188 48.5V47.5ZM196 48.5C196.276 48.5 196.5 48.2761 196.5 48C196.5 47.7239 196.276 47.5 196 47.5V48.5ZM204 47.5C203.724 47.5 203.5 47.7239 203.5 48C203.5 48.2761 203.724 48.5 204 48.5V47.5ZM0 48.5H4V47.5H0V48.5ZM12 48.5H20V47.5H12V48.5ZM28 48.5H36V47.5H28V48.5ZM44 48.5H52V47.5H44V48.5ZM60 48.5H68V47.5H60V48.5ZM76 48.5H84V47.5H76V48.5ZM92 48.5H100V47.5H92V48.5ZM108 48.5H116V47.5H108V48.5ZM124 48.5H132V47.5H124V48.5ZM140 48.5H148V47.5H140V48.5ZM156 48.5H164V47.5H156V48.5ZM172 48.5H180V47.5H172V48.5ZM188 48.5H196V47.5H188V48.5ZM204 48.5H208V47.5H204V48.5ZM208 49C208.552 49 209 48.5523 209 48C209 47.4477 208.552 47 208 47V49ZM0 47C-0.552285 47 -1 47.4477 -1 48C-1 48.5523 -0.552285 49 0 49V47ZM4 49C4.55228 49 5 48.5523 5 48C5 47.4477 4.55228 47 4 47V49ZM12 47C11.4477 47 11 47.4477 11 48C11 48.5523 11.4477 49 12 49V47ZM20 49C20.5523 49 21 48.5523 21 48C21 47.4477 20.5523 47 20 47V49ZM28 47C27.4477 47 27 47.4477 27 48C27 48.5523 27.4477 49 28 49V47ZM36 49C36.5523 49 37 48.5523 37 48C37 47.4477 36.5523 47 36 47V49ZM44 47C43.4477 47 43 47.4477 43 48C43 48.5523 43.4477 49 44 49V47ZM52 49C52.5523 49 53 48.5523 53 48C53 47.4477 52.5523 47 52 47V49ZM60 47C59.4477 47 59 47.4477 59 48C59 48.5523 59.4477 49 60 49V47ZM68 49C68.5523 49 69 48.5523 69 48C69 47.4477 68.5523 47 68 47V49ZM76 47C75.4477 47 75 47.4477 75 48C75 48.5523 75.4477 49 76 49V47ZM84 49C84.5523 49 85 48.5523 85 48C85 47.4477 84.5523 47 84 47V49ZM92 47C91.4477 47 91 47.4477 91 48C91 48.5523 91.4477 49 92 49V47ZM100 49C100.552 49 101 48.5523 101 48C101 47.4477 100.552 47 100 47V49ZM108 47C107.448 47 107 47.4477 107 48C107 48.5523 107.448 49 108 49V47ZM116 49C116.552 49 117 48.5523 117 48C117 47.4477 116.552 47 116 47V49ZM124 47C123.448 47 123 47.4477 123 48C123 48.5523 123.448 49 124 49V47ZM132 49C132.552 49 133 48.5523 133 48C133 47.4477 132.552 47 132 47V49ZM140 47C139.448 47 139 47.4477 139 48C139 48.5523 139.448 49 140 49V47ZM148 49C148.552 49 149 48.5523 149 48C149 47.4477 148.552 47 148 47V49ZM156 47C155.448 47 155 47.4477 155 48C155 48.5523 155.448 49 156 49V47ZM164 49C164.552 49 165 48.5523 165 48C165 47.4477 164.552 47 164 47V49ZM172 47C171.448 47 171 47.4477 171 48C171 48.5523 171.448 49 172 49V47ZM180 49C180.552 49 181 48.5523 181 48C181 47.4477 180.552 47 180 47V49ZM188 47C187.448 47 187 47.4477 187 48C187 48.5523 187.448 49 188 49V47ZM196 49C196.552 49 197 48.5523 197 48C197 47.4477 196.552 47 196 47V49ZM204 47C203.448 47 203 47.4477 203 48C203 48.5523 203.448 49 204 49V47ZM0 49H4V47H0V49ZM12 49H20V47H12V49ZM28 49H36V47H28V49ZM44 49H52V47H44V49ZM60 49H68V47H60V49ZM76 49H84V47H76V49ZM92 49H100V47H92V49ZM108 49H116V47H108V49ZM124 49H132V47H124V49ZM140 49H148V47H140V49ZM156 49H164V47H156V49ZM172 49H180V47H172V49ZM188 49H196V47H188V49ZM204 49H208V47H204V49Z",fill:"#F8F8F8",mask:"url(#path-5-inside-3_2098_5511)"}),i.jsx("mask",{id:"path-7-inside-4_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 48H208V64H0V48Z"})}),i.jsx("path",{d:"M208 64.5C208.276 64.5 208.5 64.2761 208.5 64C208.5 63.7239 208.276 63.5 208 63.5V64.5ZM0 63.5C-0.276142 63.5 -0.5 63.7239 -0.5 64C-0.5 64.2761 -0.276142 64.5 0 64.5V63.5ZM4 64.5C4.27614 64.5 4.5 64.2761 4.5 64C4.5 63.7239 4.27614 63.5 4 63.5V64.5ZM12 63.5C11.7239 63.5 11.5 63.7239 11.5 64C11.5 64.2761 11.7239 64.5 12 64.5V63.5ZM20 64.5C20.2761 64.5 20.5 64.2761 20.5 64C20.5 63.7239 20.2761 63.5 20 63.5V64.5ZM28 63.5C27.7239 63.5 27.5 63.7239 27.5 64C27.5 64.2761 27.7239 64.5 28 64.5V63.5ZM36 64.5C36.2761 64.5 36.5 64.2761 36.5 64C36.5 63.7239 36.2761 63.5 36 63.5V64.5ZM44 63.5C43.7239 63.5 43.5 63.7239 43.5 64C43.5 64.2761 43.7239 64.5 44 64.5V63.5ZM52 64.5C52.2761 64.5 52.5 64.2761 52.5 64C52.5 63.7239 52.2761 63.5 52 63.5V64.5ZM60 63.5C59.7239 63.5 59.5 63.7239 59.5 64C59.5 64.2761 59.7239 64.5 60 64.5V63.5ZM68 64.5C68.2761 64.5 68.5 64.2761 68.5 64C68.5 63.7239 68.2761 63.5 68 63.5V64.5ZM76 63.5C75.7239 63.5 75.5 63.7239 75.5 64C75.5 64.2761 75.7239 64.5 76 64.5V63.5ZM84 64.5C84.2761 64.5 84.5 64.2761 84.5 64C84.5 63.7239 84.2761 63.5 84 63.5V64.5ZM92 63.5C91.7239 63.5 91.5 63.7239 91.5 64C91.5 64.2761 91.7239 64.5 92 64.5V63.5ZM100 64.5C100.276 64.5 100.5 64.2761 100.5 64C100.5 63.7239 100.276 63.5 100 63.5V64.5ZM108 63.5C107.724 63.5 107.5 63.7239 107.5 64C107.5 64.2761 107.724 64.5 108 64.5V63.5ZM116 64.5C116.276 64.5 116.5 64.2761 116.5 64C116.5 63.7239 116.276 63.5 116 63.5V64.5ZM124 63.5C123.724 63.5 123.5 63.7239 123.5 64C123.5 64.2761 123.724 64.5 124 64.5V63.5ZM132 64.5C132.276 64.5 132.5 64.2761 132.5 64C132.5 63.7239 132.276 63.5 132 63.5V64.5ZM140 63.5C139.724 63.5 139.5 63.7239 139.5 64C139.5 64.2761 139.724 64.5 140 64.5V63.5ZM148 64.5C148.276 64.5 148.5 64.2761 148.5 64C148.5 63.7239 148.276 63.5 148 63.5V64.5ZM156 63.5C155.724 63.5 155.5 63.7239 155.5 64C155.5 64.2761 155.724 64.5 156 64.5V63.5ZM164 64.5C164.276 64.5 164.5 64.2761 164.5 64C164.5 63.7239 164.276 63.5 164 63.5V64.5ZM172 63.5C171.724 63.5 171.5 63.7239 171.5 64C171.5 64.2761 171.724 64.5 172 64.5V63.5ZM180 64.5C180.276 64.5 180.5 64.2761 180.5 64C180.5 63.7239 180.276 63.5 180 63.5V64.5ZM188 63.5C187.724 63.5 187.5 63.7239 187.5 64C187.5 64.2761 187.724 64.5 188 64.5V63.5ZM196 64.5C196.276 64.5 196.5 64.2761 196.5 64C196.5 63.7239 196.276 63.5 196 63.5V64.5ZM204 63.5C203.724 63.5 203.5 63.7239 203.5 64C203.5 64.2761 203.724 64.5 204 64.5V63.5ZM0 64.5H4V63.5H0V64.5ZM12 64.5H20V63.5H12V64.5ZM28 64.5H36V63.5H28V64.5ZM44 64.5H52V63.5H44V64.5ZM60 64.5H68V63.5H60V64.5ZM76 64.5H84V63.5H76V64.5ZM92 64.5H100V63.5H92V64.5ZM108 64.5H116V63.5H108V64.5ZM124 64.5H132V63.5H124V64.5ZM140 64.5H148V63.5H140V64.5ZM156 64.5H164V63.5H156V64.5ZM172 64.5H180V63.5H172V64.5ZM188 64.5H196V63.5H188V64.5ZM204 64.5H208V63.5H204V64.5ZM208 65C208.552 65 209 64.5523 209 64C209 63.4477 208.552 63 208 63V65ZM0 63C-0.552285 63 -1 63.4477 -1 64C-1 64.5523 -0.552285 65 0 65V63ZM4 65C4.55228 65 5 64.5523 5 64C5 63.4477 4.55228 63 4 63V65ZM12 63C11.4477 63 11 63.4477 11 64C11 64.5523 11.4477 65 12 65V63ZM20 65C20.5523 65 21 64.5523 21 64C21 63.4477 20.5523 63 20 63V65ZM28 63C27.4477 63 27 63.4477 27 64C27 64.5523 27.4477 65 28 65V63ZM36 65C36.5523 65 37 64.5523 37 64C37 63.4477 36.5523 63 36 63V65ZM44 63C43.4477 63 43 63.4477 43 64C43 64.5523 43.4477 65 44 65V63ZM52 65C52.5523 65 53 64.5523 53 64C53 63.4477 52.5523 63 52 63V65ZM60 63C59.4477 63 59 63.4477 59 64C59 64.5523 59.4477 65 60 65V63ZM68 65C68.5523 65 69 64.5523 69 64C69 63.4477 68.5523 63 68 63V65ZM76 63C75.4477 63 75 63.4477 75 64C75 64.5523 75.4477 65 76 65V63ZM84 65C84.5523 65 85 64.5523 85 64C85 63.4477 84.5523 63 84 63V65ZM92 63C91.4477 63 91 63.4477 91 64C91 64.5523 91.4477 65 92 65V63ZM100 65C100.552 65 101 64.5523 101 64C101 63.4477 100.552 63 100 63V65ZM108 63C107.448 63 107 63.4477 107 64C107 64.5523 107.448 65 108 65V63ZM116 65C116.552 65 117 64.5523 117 64C117 63.4477 116.552 63 116 63V65ZM124 63C123.448 63 123 63.4477 123 64C123 64.5523 123.448 65 124 65V63ZM132 65C132.552 65 133 64.5523 133 64C133 63.4477 132.552 63 132 63V65ZM140 63C139.448 63 139 63.4477 139 64C139 64.5523 139.448 65 140 65V63ZM148 65C148.552 65 149 64.5523 149 64C149 63.4477 148.552 63 148 63V65ZM156 63C155.448 63 155 63.4477 155 64C155 64.5523 155.448 65 156 65V63ZM164 65C164.552 65 165 64.5523 165 64C165 63.4477 164.552 63 164 63V65ZM172 63C171.448 63 171 63.4477 171 64C171 64.5523 171.448 65 172 65V63ZM180 65C180.552 65 181 64.5523 181 64C181 63.4477 180.552 63 180 63V65ZM188 63C187.448 63 187 63.4477 187 64C187 64.5523 187.448 65 188 65V63ZM196 65C196.552 65 197 64.5523 197 64C197 63.4477 196.552 63 196 63V65ZM204 63C203.448 63 203 63.4477 203 64C203 64.5523 203.448 65 204 65V63ZM0 65H4V63H0V65ZM12 65H20V63H12V65ZM28 65H36V63H28V65ZM44 65H52V63H44V65ZM60 65H68V63H60V65ZM76 65H84V63H76V65ZM92 65H100V63H92V65ZM108 65H116V63H108V65ZM124 65H132V63H124V65ZM140 65H148V63H140V65ZM156 65H164V63H156V65ZM172 65H180V63H172V65ZM188 65H196V63H188V65ZM204 65H208V63H204V65Z",fill:"#F8F8F8",mask:"url(#path-7-inside-4_2098_5511)"}),i.jsx("path",{opacity:"0.25",d:"M188.216 21.8308L192.267 33.3363C192.984 35.3729 195.553 36.0079 197.136 34.5401L200.346 31.5644C200.704 31.2324 200.976 30.8179 201.137 30.357L202.893 25.3492L207.891 8.63898C207.962 8.40249 207.998 8.15696 207.998 7.91011V61C207.998 62.6569 206.655 64 204.998 64H2.99805C1.34119 64 -0.00195312 62.6569 -0.00195312 61V38.199C-0.00195312 37.5477 0.209976 36.9142 0.601822 36.394L4.07924 31.7775C5.46086 29.9434 8.30679 30.2781 9.22513 32.3828L13.7407 42.7321C14.1196 43.6005 14.8865 44.2389 15.8092 44.454L20.4905 45.5454C21.1539 45.7 21.8501 45.6244 22.4647 45.3308L27.6593 42.8495C28.3218 42.533 28.8452 41.9846 29.1305 41.3081L33.0958 31.9045C34.1272 29.4587 37.593 29.4587 38.6244 31.9045L39.704 34.4648C40.8065 37.0793 44.5863 36.8438 45.3559 34.1128L49.5889 19.0897C49.9533 17.7966 51.133 16.9033 52.4765 16.9033H56.4941C57.0707 16.9033 57.6351 16.7372 58.1197 16.4247L61.1576 14.466C62.8476 13.3764 65.11 14.2251 65.6662 16.1575L70.599 33.2936C71.1572 35.2328 73.4323 36.079 75.122 34.9758L75.9273 34.45C77.4802 33.4361 79.5719 34.0601 80.3156 35.7591L84.8676 46.1586C85.5306 47.6733 87.2942 48.366 88.8108 47.7074L91.9453 46.3462C92.765 45.9903 93.3833 45.2875 93.632 44.4292L99.0729 25.6458C99.6874 23.5244 102.321 22.7938 103.941 24.2955C105.587 25.8222 108.267 25.0377 108.831 22.864L112.541 8.54954C113.26 5.77543 117.087 5.49227 118.207 8.13037L120.305 13.0767C121.105 14.9603 123.513 15.5086 125.049 14.1567L125.58 13.6896C127.224 12.2425 129.814 12.9875 130.438 15.0869L134.329 28.1818C135.073 30.6853 138.439 31.1086 139.779 28.8673L142.671 24.0333C143.159 23.2175 144.004 22.6813 144.95 22.5878L149.822 22.1065C150.344 22.0549 150.843 21.8672 151.271 21.5621L154.984 18.9089C156.467 17.8494 158.544 18.346 159.388 19.9617L161.285 23.5972C162.565 26.0491 166.199 25.6102 166.858 22.9241L169.511 12.1165C170.239 9.14844 174.421 9.04274 175.298 11.9702L177.723 20.0592C178.406 22.3382 181.343 22.9532 182.883 21.1398L183.099 20.8852C184.598 19.1202 187.447 19.6467 188.216 21.8308Z",fill:"url(#paint0_linear_2098_5511)"}),i.jsx("path",{d:"M207.998 8.42336L201.106 31.2146C200.924 31.8169 200.557 32.3467 200.057 32.729L196.94 35.1136C195.319 36.3534 192.96 35.6482 192.286 33.7223L188.181 22.0024C187.422 19.8338 184.606 19.289 183.092 21.0179L182.846 21.2991C181.3 23.0654 178.416 22.4516 177.723 20.2087L175.29 12.336C174.395 9.4396 170.259 9.54691 169.515 12.4858L166.857 22.9946C166.185 25.6477 162.603 26.0903 161.306 23.6803L159.382 20.1042C158.534 18.5278 156.503 18.0404 155.031 19.0601L151.262 21.6725C150.84 21.9649 150.35 22.1442 149.839 22.1931L144.931 22.6636C143.996 22.7532 143.157 23.2757 142.664 24.0754L139.754 28.7942C138.4 30.9907 135.088 30.5657 134.332 28.0982L130.441 15.3948C129.808 13.3298 127.267 12.5895 125.624 13.9921L125.005 14.5209C123.474 15.8283 121.115 15.2863 120.308 13.4417L118.191 8.60225C117.054 6.00226 113.277 6.28847 112.544 9.03014L108.848 22.8647C108.27 25.0292 105.606 25.8158 103.94 24.3175V24.3175C102.303 22.8447 99.6856 23.5762 99.0555 25.6864L93.6445 43.8072C93.388 44.6663 92.7608 45.3656 91.9346 45.7136L88.763 47.0496C87.2632 47.6814 85.5332 47.0022 84.8638 45.5188L80.3156 35.4387C79.5653 33.7759 77.517 33.1621 75.9758 34.1381L75.0745 34.709C73.393 35.774 71.1595 34.9362 70.5933 33.028L65.672 16.4433C65.1078 14.5419 62.8867 13.7015 61.2051 14.7533L58.1073 16.6909C57.6303 16.9892 57.079 17.1474 56.5164 17.1474H52.4575C51.123 17.1474 49.9489 18.029 49.5766 19.3106L45.3511 33.8582C44.5676 36.5556 40.8386 36.7934 39.7188 34.2174L38.6114 31.6698C37.5658 29.2644 34.1544 29.2644 33.1088 31.6698L29.1425 40.7941C28.8495 41.4681 28.3193 42.0111 27.6525 42.3201L22.4421 44.7345C21.8411 45.0129 21.165 45.0847 20.519 44.9386L15.803 43.872C14.8836 43.6641 14.1154 43.0362 13.7288 42.1765L9.21662 32.1447C8.28874 30.0817 5.49845 29.7487 4.11113 31.5353L-0.00196201 36.8322",stroke:"#FF3F19"})]}),i.jsxs("defs",{children:[i.jsxs("linearGradient",{id:"paint0_linear_2098_5511",x1:"103.998",y1:"0",x2:"103.998",y2:"64",gradientUnits:"userSpaceOnUse",children:[i.jsx("stop",{stopColor:"#FF3F19"}),i.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),i.jsx("clipPath",{id:"clip0_2098_5511",children:i.jsx("rect",{width:"208",height:"64",fill:"white"})})]})]})}),p0=({adaptiveStyles:e})=>{const[t,n]=L.useState(null),[r,u]=L.useState(!1),[a,s]=L.useState(!1),[o,c]=L.useState(!1);if(L.useEffect(()=>{u(!0),s(!0),(async()=>{const p=await H2();n(p)})(),u(!1),s(!1)},[]),!t)return i.jsx(N.Loader,{});const{isAvailable:l,isActivated:h,info:f}=t.data;return l?i.jsxs("div",{children:[i.jsxs("div",{className:g.clx(Ce.referral,{[Ce.mobile]:e!=="desktop"}),children:[i.jsx("div",{className:g.clx(Ce.referralBlock,{[Ce.mobile]:e!=="desktop"}),children:r?i.jsx(b0,{adaptiveStyles:e}):i.jsxs("div",{className:Ce.referralContainer,children:[i.jsx("div",{id:"h2",className:Ce.title,children:"Refer friends"}),i.jsx("div",{className:Ce.description,id:"lg",children:"Refer friends. Earn rewards. Make bank."}),h?i.jsx(i.Fragment,{children:i.jsx(g0,{referral:t})}):i.jsx(i.Fragment,{children:i.jsx(m0,{setIsOpen:c})})]})}),a?i.jsx("div",{className:Ce.referralStats}):i.jsxs("div",{className:g.clx(Ce.referralStats,{[Ce.mobile]:e!=="desktop"}),children:[i.jsxs("div",{className:Ce.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ce.referralStatsItemLabel,children:"Referrals"}),i.jsx("div",{id:"h2",className:Ce.referralStatsItemValue,children:f!=null&&f.totalReferrals?`${f.totalReferrals} person`:"-"}),i.jsx(wu,{})]}),i.jsxs("div",{className:Ce.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ce.referralStatsItemLabel,children:"Earned"}),i.jsx("div",{id:"h2",className:Ce.referralStatsItemValue,children:"-"}),i.jsx(wu,{})]}),i.jsxs("div",{className:Ce.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ce.referralStatsItemLabel,children:"Total Revenue"}),i.jsx("div",{id:"h2",className:Ce.referralStatsItemValue,children:g.formatPrice({amount:(f==null?void 0:f.totalRevenueUsd)||0})}),i.jsx(wu,{})]}),i.jsxs("div",{className:Ce.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ce.referralStatsItemLabel,children:"Earn Procent"}),i.jsx("div",{id:"h2",className:Ce.referralStatsItemValue,children:`${t.data.earnPercent}%`||"-"}),i.jsx(wu,{})]})]})]}),o&&i.jsx(N.Modal,{close:()=>c(!1),children:i.jsx(W5,{setIsOpen:c,setIsLoading:u})})]}):null},m0=({setIsOpen:e})=>{const{setIsOpen:t}=g.useModalStore();return i.jsxs("div",{className:Ce.steps,onClick:n=>n.stopPropagation(),children:[i.jsx(N.Button,{type:"Primary",className:Ce.joinButton,onClick:()=>{e(!0),t(!0)},children:"Join the referral Program"}),i.jsx("div",{children:g.referralSteps.map(({caption:n,description:r},u,a)=>i.jsx(Z5,{caption:n,description:r,index:u+1,bar:u+1!==a.length},n))})]})},g0=({referral:e})=>{var a,s;const{shopDomain:t}=g.useStorefrontStore(),n=`https://${t}/?r=${(a=e.data.info)==null?void 0:a.referralCode}`,{notifications:r,setNotifications:u}=g.useNotificationStore();return i.jsxs("div",{className:Ce.referralInfo,children:[i.jsx(N.Input,{onChange:()=>{},label:"Affiliate Code",value:((s=e.data.info)==null?void 0:s.referralCode)||"",disabled:!0}),i.jsx("div",{className:Ce.linkContainer,children:i.jsx(N.Input,{onChange:()=>{},label:"Affiliate Link",value:n,disabled:!0,rightIcon:i.jsx(N.Icon,{name:"Copy",fill:"var(--text-action)",onClick:()=>{navigator.clipboard.writeText(n),u([...r,{message:"Link copied to clipboard",status:"success",id:g.v4()}])},hoverable:!0})})})]})},b0=({adaptiveStyles:e})=>i.jsxs(ir,{speed:2,width:500,height:"100%",viewBox:"0 0 500 305",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",className:g.clx(Ce.skeleton,{[Ce.mobile]:e!=="desktop"}),style:{borderRadius:"var(--border-radius)"},children:[i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"264",height:"40"}),i.jsx("rect",{x:"0",y:"45",rx:"10",ry:"10",width:"160",height:"24"}),i.jsx("rect",{x:"0",y:"100",rx:"10",ry:"10",width:"100",height:"40"}),i.jsx("rect",{x:"0",y:"150",rx:"10",ry:"10",width:"476",height:"40"}),i.jsx("rect",{x:"0",y:"220",rx:"10",ry:"10",width:"428",height:"50"})]}),Y5="_title_u8oqs_1",G5="_heading_u8oqs_10",X5="_description_u8oqs_15",Ka={title:Y5,heading:G5,description:X5},ma=({title:e,description:t})=>i.jsxs("div",{className:Ka.title,children:[i.jsx("div",{id:"h3",className:Ka.heading,children:e}),t&&i.jsx("div",{className:Ka.description,id:"lg",children:t})]}),K5="_noItemsBlock_yefnm_4",Q5="_noItemsBlockIcon_yefnm_13",J5="_noItemsBlockTitle_yefnm_21",e8="_noItemsBlockDescription_yefnm_31",t8="_centered_yefnm_37",Br={noItemsBlock:K5,noItemsBlockIcon:Q5,noItemsBlockTitle:J5,noItemsBlockDescription:e8,centered:t8},ga=({title:e,description:t,className:n,centered:r=!1})=>i.jsxs("div",{className:g.clx(Br.noItemsBlock,n,{[Br.centered]:r}),children:[i.jsx("div",{className:Br.noItemsBlockIcon,children:i.jsx(N.Icon,{name:"Info",fill:"var(--text-secondary)"})}),i.jsx("div",{className:Br.noItemsBlockTitle,id:"h4",children:e}),i.jsx("div",{className:Br.noItemsBlockDescription,id:"md",children:t})]}),n8="_ordersTable_1btyq_2",r8="_gatewayItem_1btyq_10",u8="_gatewayIcon_1btyq_15",a8="_orderTime_1btyq_20",s8="_reviewContainer_1btyq_25",i8="_reviewRating_1btyq_35",o8="_tableLoader_1btyq_39",c8="_tableItem_1btyq_48",Vt={ordersTable:n8,gatewayItem:r8,gatewayIcon:u8,orderTime:a8,reviewContainer:s8,reviewRating:i8,tableLoader:o8,tableItem:c8};var In=(e=>(e[e.SUCCESS=1]="SUCCESS",e[e.WARNING=2]="WARNING",e[e.ERROR=3]="ERROR",e))(In||{});const l8={[be.New]:2,[be.Pending]:2,[be.Processing]:2,[be.Completed]:1,[be.Cancelled]:3,[be.Expired]:3,[be.FullDeliveryFailure]:3,[be.PartiallyDelivered]:2,[be.Refunded]:2,[be.Failed]:3,[be.PartiallyRefunded]:2},d8=(e,t)=>{const n=t.find(r=>r.name===e);return n?i.jsxs("div",{className:Vt.gatewayItem,children:[(n==null?void 0:n.name)==="ForebitPayments"?i.jsx(Yl,{}):n.name==="Balance"?i.jsx(N.Icon,{name:"Wallet",fill:"var(--text-primary)",width:20,height:20,style:{marginRight:"0.25rem"}}):i.jsx("img",{alt:n.displayName,src:g.convertCfImageIdToUrl(n.logoCfImageId,"100"),className:Vt.gatewayIcon}),i.jsx("div",{id:"md",children:n.displayName})]}):null},f8=({item:e,gatewaysDetail:t})=>{const[n,r]=g.extractDateAndTime(e.time),{isAntistock:u}=g.useGeneralStore();return i.jsxs(L.Fragment,{children:[i.jsx(ot,{copyText:e.id,children:i.jsx(g.NavLink,{to:`/orders/${e.id}/${e.accessToken}`,id:"md",children:e.id})}),i.jsx(ot,{children:i.jsx(g.NavLink,{to:`/orders/${e.id}/${e.accessToken}`,children:i.jsx(E0,{status:e.status,variant:l8[e.status]})})}),i.jsx(ot,{children:g.formatPrice(e.price)}),i.jsx(ot,{children:d8(e.gatewayName,t)}),i.jsx(ot,{children:i.jsxs("div",{children:[i.jsx("div",{id:"md",children:n}),i.jsx("div",{className:Vt.orderTime,id:"md",children:r})]})}),!u&&i.jsx(ot,{children:e.review?i.jsxs("div",{className:Vt.reviewContainer,children:[i.jsx(N.Icon,{name:"Star",fill:"var(--text-secondary)"}),i.jsx("div",{className:Vt.reviewRating,id:"md",children:e.review.rating})]}):i.jsx("span",{id:"md",children:"None"})})]},e.id)},_0=({orders:e,gatewaysDetail:t,totalCount:n,isLoading:r})=>{const{page:u,setPage:a}=g.usePaginationPagesStore(),{isAntistock:s}=g.useGeneralStore(),c=!(!(e!=null&&e.length)||!t)&&e.length>0;return i.jsxs("div",{className:Vt.ordersTable,children:[i.jsxs(ba,{children:[i.jsx(Pt,{className:Vt.tableItem,children:"Invoice ID"}),i.jsx(Pt,{className:Vt.tableItem,children:"Status"}),i.jsx(Pt,{className:Vt.tableItem,children:"Value"}),i.jsx(Pt,{className:Vt.tableItem,children:"Payment"}),i.jsx(Pt,{className:Vt.tableItem,children:"Date"}),!s&&i.jsx(Pt,{className:Vt.tableItem,children:"Review"}),c&&!r&&e.map(l=>i.jsx(f8,{item:l,gatewaysDetail:t},l.id))]}),(!c||r)&&i.jsx("div",{className:Vt.tableLoader,children:i.jsx(N.Loader,{})}),c&&!r&&i.jsx(bu,{currentPage:u,totalCount:n,onPageChange:a})]})},h8="_ticketsTable_1m2oy_4",p8="_antistockTable_1m2oy_4",m8="_table_1m2oy_4",g8="_tableItem_1m2oy_22",b8="_text_1m2oy_47",_8="_tableItemTitle_1m2oy_54",x8="_copyIcon_1m2oy_85",ur={ticketsTable:h8,antistockTable:p8,table:m8,tableItem:g8,text:b8,tableItemTitle:_8,copyIcon:x8},ot=({children:e,className:t,onClick:n,copyText:r,id:u})=>{const a=Zn();return i.jsxs("div",{className:g.clx(ur.tableItem,t),onClick:n,style:{cursor:n?"pointer":"default"},children:[i.jsx("span",{className:ur.text,id:u||"md",children:e})," ",r&&i.jsx("div",{className:ur.copyIcon,children:i.jsx(N.Icon,{name:"Copy",onClick:()=>a(r),width:20,height:20})})]})},Pt=({children:e,className:t})=>i.jsx(ot,{className:g.clx(ur.tableItemTitle,t),id:"lg",children:e}),ba=({children:e,className:t})=>{const{isAntistock:n}=g.useGeneralStore(),r=t==null?void 0:t.includes("ticketsTable");return i.jsx("div",{className:g.clx(t,r?ur.ticketsTable:n?ur.antistockTable:ur.table),children:e})},C8="_paginationContainer_pt4l5_4",E8="_paginationWithRange_pt4l5_16",y8="_paginationWithRangeText_pt4l5_33",T8="_paginationWithRangePagination_pt4l5_45",Vu={paginationContainer:C8,paginationWithRange:E8,paginationWithRangeText:y8,paginationWithRangePagination:T8},Du=(e,t)=>Array.from({length:t-e+1},(n,r)=>e+r),k8=(e,t,n)=>{const r=n*2+3+2;if(t<=r)return Du(1,t);const u=Math.max(e-n,1),a=Math.min(e+n,t),s=u>2,o=a<t-2;return!s&&o?[...Du(1,3+2*n),"right-ellipsis",t]:s&&!o?[1,"left-ellipsis",...Du(t-(3+2*n)+1,t)]:[1,"left-ellipsis",...Du(u,a),"right-ellipsis",t]},x0=({currentPage:e,totalPages:t,onPageChange:n,siblingCount:r=1})=>{const u=c=>{const l=r*2+1;n(c?Math.max(e-l,1):Math.min(e+l,t))},a=e===1,s=e===t,o=c=>i.jsx(N.Button,{type:typeof c=="number"&&c===e?"Primary":"Secondary",onClick:()=>typeof c=="string"?u(c==="left-ellipsis"):n(c),"aria-current":typeof c=="number"&&c===e?"page":void 0,children:typeof c=="string"?"…":c},c);return i.jsxs("div",{className:Vu.paginationContainer,children:[i.jsx(N.Button,{type:"Secondary",onClick:()=>!a&&n(e-1),disabled:a,children:i.jsx(N.Icon,{name:"ArrowLeft"})}),k8(e,t,r).map(o),i.jsx(N.Button,{type:"Secondary",onClick:()=>!s&&n(e+1),disabled:s,children:i.jsx(N.Icon,{name:"ArrowRight"})})]})},C0=(e,t,n)=>{const r=(e-1)*n+1,u=Math.min(e*n,t);return`Showing ${r}-${u} entries of ${t}`},bu=({className:e,totalCount:t,...n})=>{const r=Math.ceil(t/Cs);return r<2?null:i.jsxs("div",{className:`${Vu.paginationWithRange} ${e}`,children:[i.jsx("div",{className:Vu.paginationWithRangeText,id:"md",children:C0(n.currentPage,t,Cs)}),i.jsx("div",{className:Vu.paginationWithRangePagination,children:i.jsx(x0,{...n,totalPages:r})})]})},A8="_statusIndicator_1gt2z_4",S8="_antistockStatus_1gt2z_11",I8="_statusIndicatorSuccess_1gt2z_16",N8="_statusIndicatorWarning_1gt2z_20",v8="_statusIndicatorError_1gt2z_24",w8="_statusIndicatorText_1gt2z_28",Cr={statusIndicator:A8,antistockStatus:S8,statusIndicatorSuccess:I8,statusIndicatorWarning:N8,statusIndicatorError:v8,statusIndicatorText:w8},D8=()=>i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M11.2105 5.91453C11.2628 5.96677 11.3043 6.02881 11.3326 6.0971C11.3609 6.16538 11.3754 6.23858 11.3754 6.3125C11.3754 6.38642 11.3609 6.45962 11.3326 6.5279C11.3043 6.59619 11.2628 6.65823 11.2105 6.71047L7.27297 10.648C7.22073 10.7003 7.15869 10.7418 7.09041 10.7701C7.02212 10.7984 6.94892 10.8129 6.875 10.8129C6.80108 10.8129 6.72789 10.7984 6.6596 10.7701C6.59131 10.7418 6.52928 10.7003 6.47703 10.648L4.78953 8.96047C4.68399 8.85492 4.62469 8.71177 4.62469 8.5625C4.62469 8.41323 4.68399 8.27008 4.78953 8.16453C4.89508 8.05898 5.03824 7.99969 5.1875 7.99969C5.33677 7.99969 5.47992 8.05898 5.58547 8.16453L6.875 9.45477L10.4145 5.91453C10.4668 5.86223 10.5288 5.82074 10.5971 5.79244C10.6654 5.76413 10.7386 5.74956 10.8125 5.74956C10.8864 5.74956 10.9596 5.76413 11.0279 5.79244C11.0962 5.82074 11.1582 5.86223 11.2105 5.91453ZM15.3125 8C15.3125 9.44628 14.8836 10.8601 14.0801 12.0626C13.2766 13.2651 12.1346 14.2024 10.7984 14.7559C9.46219 15.3093 7.99189 15.4541 6.57341 15.172C5.15492 14.8898 3.85196 14.1934 2.82928 13.1707C1.80661 12.148 1.11017 10.8451 0.828011 9.4266C0.545857 8.00811 0.690668 6.53781 1.24413 5.20163C1.7976 3.86544 2.73486 2.72339 3.9374 1.91988C5.13993 1.11637 6.55373 0.6875 8 0.6875C9.93877 0.689547 11.7975 1.46063 13.1685 2.83154C14.5394 4.20246 15.3105 6.06123 15.3125 8ZM14.1875 8C14.1875 6.77623 13.8246 5.57994 13.1447 4.56241C12.4648 3.54488 11.4985 2.75181 10.3679 2.2835C9.23724 1.81518 7.99314 1.69264 6.79288 1.93139C5.59262 2.17014 4.49012 2.75944 3.62478 3.62478C2.75944 4.49011 2.17014 5.59262 1.93139 6.79288C1.69265 7.99314 1.81518 9.23724 2.2835 10.3679C2.75182 11.4985 3.54488 12.4648 4.56241 13.1447C5.57994 13.8246 6.77623 14.1875 8 14.1875C9.64046 14.1856 11.2132 13.5331 12.3732 12.3732C13.5331 11.2132 14.1856 9.64046 14.1875 8Z",fill:"#338B13"})}),L8=()=>i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M8 0.6875C6.55373 0.6875 5.13993 1.11637 3.9374 1.91988C2.73486 2.72339 1.7976 3.86544 1.24413 5.20163C0.690668 6.53781 0.545857 8.00811 0.828011 9.4266C1.11017 10.8451 1.80661 12.148 2.82928 13.1707C3.85196 14.1934 5.15492 14.8898 6.57341 15.172C7.99189 15.4541 9.46219 15.3093 10.7984 14.7559C12.1346 14.2024 13.2766 13.2651 14.0801 12.0626C14.8836 10.8601 15.3125 9.44628 15.3125 8C15.3105 6.06123 14.5394 4.20246 13.1685 2.83154C11.7975 1.46063 9.93877 0.689547 8 0.6875ZM8 14.1875C6.77623 14.1875 5.57994 13.8246 4.56241 13.1447C3.54488 12.4648 2.75182 11.4985 2.2835 10.3679C1.81518 9.23724 1.69265 7.99314 1.93139 6.79288C2.17014 5.59262 2.75944 4.49011 3.62478 3.62478C4.49012 2.75944 5.59262 2.17014 6.79288 1.93139C7.99314 1.69264 9.23724 1.81518 10.3679 2.2835C11.4985 2.75181 12.4648 3.54488 13.1447 4.56241C13.8246 5.57994 14.1875 6.77623 14.1875 8C14.1856 9.64046 13.5331 11.2132 12.3732 12.3732C11.2132 13.5331 9.64046 14.1856 8 14.1875ZM12.5 8C12.5 8.14918 12.4407 8.29226 12.3353 8.39775C12.2298 8.50324 12.0867 8.5625 11.9375 8.5625H8C7.85082 8.5625 7.70775 8.50324 7.60226 8.39775C7.49677 8.29226 7.4375 8.14918 7.4375 8V4.0625C7.4375 3.91332 7.49677 3.77024 7.60226 3.66475C7.70775 3.55926 7.85082 3.5 8 3.5C8.14919 3.5 8.29226 3.55926 8.39775 3.66475C8.50324 3.77024 8.5625 3.91332 8.5625 4.0625V7.4375H11.9375C12.0867 7.4375 12.2298 7.49676 12.3353 7.60225C12.4407 7.70774 12.5 7.85082 12.5 8Z",fill:"#C1972A"})}),P8=()=>i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsx("path",{d:"M9 17.0625C4.5525 17.0625 0.9375 13.4475 0.9375 9C0.9375 4.5525 4.5525 0.9375 9 0.9375C13.4475 0.9375 17.0625 4.5525 17.0625 9C17.0625 13.4475 13.4475 17.0625 9 17.0625ZM9 2.0625C5.175 2.0625 2.0625 5.175 2.0625 9C2.0625 12.825 5.175 15.9375 9 15.9375C12.825 15.9375 15.9375 12.825 15.9375 9C15.9375 5.175 12.825 2.0625 9 2.0625Z",fill:"#C12A2A"}),i.jsx("path",{d:"M6.87752 11.685C6.73502 11.685 6.59252 11.6325 6.48002 11.52C6.26252 11.3025 6.26252 10.9425 6.48002 10.725L10.725 6.48C10.9425 6.2625 11.3025 6.2625 11.52 6.48C11.7375 6.6975 11.7375 7.0575 11.52 7.275L7.27502 11.52C7.17002 11.6325 7.02002 11.685 6.87752 11.685Z",fill:"#C12A2A"}),i.jsx("path",{d:"M11.1225 11.685C10.98 11.685 10.8375 11.6325 10.725 11.52L6.48002 7.275C6.26252 7.0575 6.26252 6.6975 6.48002 6.48C6.69752 6.2625 7.05752 6.2625 7.27502 6.48L11.52 10.725C11.7375 10.9425 11.7375 11.3025 11.52 11.52C11.4075 11.6325 11.265 11.685 11.1225 11.685Z",fill:"#C12A2A"})]}),R8={[In.SUCCESS]:D8,[In.WARNING]:L8,[In.ERROR]:P8},M8={[In.SUCCESS]:Cr.statusIndicatorSuccess,[In.WARNING]:Cr.statusIndicatorWarning,[In.ERROR]:Cr.statusIndicatorError},O8=e=>{switch(e){case"NEW":return"New";case"COMPLETED":return"Completed";case"CANCELLED":return"Cancelled";case"EXPIRED":return"Expired";case"FAILED":return"Failed";case"FULL_DELIVERY_FAILURE":return"Delivery Failed";case"PARTIALLY_DELIVERED":return"Partial Delivery Failed";case"REFUNDED":return"Refunded";case"PENDING":return"Pending";case"PROCESSING":return"Processing";case"APPROVED":return"Approved";case"DECLINED":return"Declined";case"AUTO_APPROVED":return"Auto Approved";case"PARTIALLY_REFUNDED":return"Partial Refunded"}return e},E0=({status:e,variant:t=In.WARNING})=>{const{isAntistock:n}=g.useGeneralStore(),r=R8[t];return i.jsxs("div",{className:g.clx(Cr.statusIndicator,M8[t],{[Cr.antistockStatus]:n}),children:[i.jsx(r,{}),i.jsx("span",{className:Cr.statusIndicatorText,id:"md",children:O8(e)})]})},j8="_checkoutItemsContainer_1kn61_2",F8="_innerContainer_1kn61_16",B8="_headerSection_1kn61_22",H8="_header_1kn61_22",U8="_productsContainer_1kn61_47",V8="_couponContainer_1kn61_54",$8="_checkoutFooter_1kn61_58",Xn={checkoutItemsContainer:j8,innerContainer:F8,headerSection:B8,header:H8,productsContainer:U8,couponContainer:V8,checkoutFooter:$8},z8="_checkoutFooter_sum4s_1",q8="_antistock_sum4s_12",Z8="_footerBranding_sum4s_22",W8="_poweredText_sum4s_27",Y8="_antistockLink_sum4s_31",G8="_footerNav_sum4s_39",vn={checkoutFooter:z8,antistock:q8,footerBranding:Z8,poweredText:W8,antistockLink:Y8,footerNav:G8},X8="data:image/svg+xml,%3csvg%20width='100'%20height='26'%20viewBox='0%200%20100%2026'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.3996%203.39999V12.8228L16.2964%2014.1313V8.89738L7.69363%2011.587V6.87107L20.3996%203.39999Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M16.2964%2014.1313L16.2962%2018.6292L3.59961%2022.6V12.7592L7.69363%2011.587L7.69344%2016.9118L16.2964%2014.1313Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M95.6308%2022C93.4931%2022%2091.8804%2020.882%2091.4678%2019.1776L93.118%2019.0676C93.4181%2019.984%2094.0931%2020.5338%2095.6308%2020.5338C97.4311%2020.5338%2098.4249%2019.8373%2098.4249%2018.4078V16.8316C97.9374%2017.858%2096.8122%2018.5178%2095.5183%2018.5178C92.9868%2018.5178%2091.1865%2016.575%2091.1865%2013.8076C91.1865%2011.0401%2092.9492%209.09737%2095.4433%209.09737C96.831%209.09737%2098.0499%209.77549%2098.5%2010.8568V9.3173H100V18.3711C100%2020.6438%2098.3687%2022%2095.6308%2022ZM95.5933%2017.0515C97.2998%2017.0515%2098.4062%2015.8053%2098.4249%2013.8076C98.4624%2011.8099%2097.3186%2010.5636%2095.5933%2010.5636C93.8494%2010.5636%2092.8367%2011.8099%2092.8367%2013.8076C92.8367%2015.8053%2093.8869%2017.0515%2095.5933%2017.0515Z'%20fill='%23252525'/%3e%3cpath%20d='M81.1836%2019.0309V9.3173H82.6275L82.665%2011.0584C83.1901%209.72051%2084.3527%209.09737%2085.7217%209.09737C87.9907%209.09737%2089.0783%2010.7285%2089.0783%2012.7812V19.0309H87.5031V13.2211C87.5031%2011.425%2086.8843%2010.4536%2085.3841%2010.4536C83.8464%2010.4536%2082.7588%2011.425%2082.7588%2013.2211V19.0309H81.1836Z'%20fill='%23252525'/%3e%3cpath%20d='M73.3176%2019.2509C71.2549%2019.2509%2069.9609%2018.2795%2069.9609%2016.6117C69.9609%2014.9622%2070.9173%2014.0458%2073.0926%2013.6426L76.618%2013.0011C76.618%2011.37%2075.8304%2010.5636%2074.2552%2010.5636C72.8676%2010.5636%2072.0987%2011.1867%2071.7987%2012.3047L70.1297%2012.1764C70.5048%2010.3436%2072.0049%209.09737%2074.2552%209.09737C76.8056%209.09737%2078.1932%2010.6002%2078.1932%2013.0561V17.0699C78.1932%2017.5097%2078.3433%2017.6747%2078.7183%2017.6747H79.1121V19.0309C78.9996%2019.0493%2078.7558%2019.0676%2078.512%2019.0676C77.3119%2019.0676%2076.7681%2018.6094%2076.6368%2017.5281C76.1492%2018.5361%2074.7803%2019.2509%2073.3176%2019.2509ZM73.4676%2017.8946C75.4554%2017.8946%2076.618%2016.6483%2076.618%2015.0355V14.3391L73.3926%2014.9255C72.0425%2015.1638%2071.6111%2015.6586%2071.6111%2016.4651C71.6111%2017.3814%2072.305%2017.8946%2073.4676%2017.8946Z'%20fill='%23252525'/%3e%3cpath%20d='M63.2168%2022C61.079%2022%2059.4663%2020.882%2059.0537%2019.1776L60.704%2019.0676C61.004%2019.984%2061.6791%2020.5338%2063.2168%2020.5338C65.017%2020.5338%2066.0109%2019.8373%2066.0109%2018.4078V16.8316C65.5233%2017.858%2064.3982%2018.5178%2063.1043%2018.5178C60.5727%2018.5178%2058.7725%2016.575%2058.7725%2013.8076C58.7725%2011.0401%2060.5352%209.09737%2063.0293%209.09737C64.4169%209.09737%2065.6358%209.77549%2066.0859%2010.8568V9.3173H67.5861V18.3711C67.5861%2020.6438%2065.9546%2022%2063.2168%2022ZM63.1793%2017.0515C64.8857%2017.0515%2065.9921%2015.8053%2066.0109%2013.8076C66.0484%2011.8099%2064.9045%2010.5636%2063.1793%2010.5636C61.4353%2010.5636%2060.4227%2011.8099%2060.4227%2013.8076C60.4227%2015.8053%2061.4728%2017.0515%2063.1793%2017.0515Z'%20fill='%23252525'/%3e%3cpath%20d='M56.2141%2019.0309C55.0515%2019.0309%2054.2451%2018.4811%2054.2451%2017.1982L54.2639%206.01834H55.8391V17.0699C55.8391%2017.4731%2056.0453%2017.6747%2056.4579%2017.6747H57.3205V19.0309H56.2141Z'%20fill='%23252525'/%3e%3cpath%20d='M51.0686%2019.0309C49.906%2019.0309%2049.0996%2018.4811%2049.0996%2017.1982L49.1184%206.01834H50.6936V17.0699C50.6936%2017.4731%2050.8998%2017.6747%2051.3124%2017.6747H52.175V19.0309H51.0686Z'%20fill='%23252525'/%3e%3cpath%20d='M44.5209%2019.0309V9.3173H46.0961V19.0309H44.5209ZM44.4834%207.79611V6H46.1336V7.79611H44.4834Z'%20fill='%23252525'/%3e%3cpath%20d='M32%2019.0309V6.01834H36.5756C39.726%206.01834%2041.3012%207.09967%2041.3012%209.51891C41.3012%2010.9851%2040.4198%2012.0481%2038.9384%2012.3047C40.7574%2012.5613%2041.8638%2013.7709%2041.8638%2015.4571C41.8638%2017.8213%2040.2323%2019.0309%2037.3257%2019.0309H32ZM37.3257%2017.4914C39.1447%2017.4914%2040.176%2016.74%2040.176%2015.3654C40.176%2013.9908%2039.1447%2013.1844%2037.3257%2013.1844H33.6127V17.4914H37.3257ZM36.5756%2011.6449C38.5258%2011.6449%2039.6135%2010.8935%2039.6135%209.59222C39.6135%208.21765%2038.6008%207.55786%2036.5756%207.55786H33.6127V11.6449H36.5756Z'%20fill='%23252525'/%3e%3c/svg%3e",qn=({className:e})=>{const{shopTerms:t,shopPrivacyPolicy:n,shopRefundPolicy:r,shopLogo:u}=g.useStorefrontStore(),{isAntistock:a}=g.useGeneralStore(),{settings:s}=g.useSettingsStore();return i.jsxs("footer",{className:`${vn.checkoutFooter} ${e} ${a?vn.antistock:""}`,children:[a&&(s==null?void 0:s.showPoweredBy)&&i.jsxs("div",{className:vn.footerBranding,children:[i.jsx("p",{className:vn.poweredText,id:"md",style:{color:"var(--text-action)"},children:"Powered by"}),i.jsxs("a",{className:vn.antistockLink,href:"https://antistock.io",target:"_blank",rel:"noopener noreferrer",children:[i.jsx(n0,{width:14,height:18}),"Antistock"]})]}),!a&&i.jsxs("div",{className:vn.footerBranding,children:[i.jsx("p",{className:vn.poweredText,id:"md",children:"Powered by"}),u||i.jsx("img",{src:X8,alt:"Billgang"})]}),i.jsx("nav",{children:i.jsxs("ul",{className:vn.footerNav,children:[(t==null?void 0:t.showTermsOfServiceOnProduct)&&!a&&i.jsx("li",{children:i.jsx("a",{href:"/terms",children:"Terms"})}),(n==null?void 0:n.showPrivacyPolicyOnProduct)&&i.jsx("li",{children:i.jsx("a",{href:n.privacyPolicy,target:"_blank",rel:"noopener noreferrer",children:"Privacy"})}),(r==null?void 0:r.showRefundPolicyOnProduct)&&i.jsx("li",{children:i.jsx("a",{href:r.refundPolicy,target:"_blank",rel:"noopener noreferrer",children:"Refund"})})]})})]})},K8="_checkoutHeader_1stm3_1",Q8="_leftContainer_1stm3_20",J8="_backArrow_1stm3_26",e7="_logoContainer_1stm3_38",t7="_logo_1stm3_38",n7="_antistockLink_1stm3_48",hr={checkoutHeader:K8,leftContainer:Q8,backArrow:J8,logoContainer:e7,logo:t7,antistockLink:n7},r7="_activeBadge_1yb5i_1",u7="_activeBadgeText_1yb5i_12",Po={activeBadge:r7,activeBadgeText:u7},a7=({className:e})=>i.jsxs("div",{className:g.clx(Po.activeBadge,e),children:[i.jsx(N.Icon,{name:"Check",width:20,height:20}),i.jsx("p",{className:Po.activeBadgeText,children:"Active"})]}),s7="_timerContainer_rh66p_2",i7="_timerText_rh66p_12",o7="_timerContainerAntistock_rh66p_16",Qa={timerContainer:s7,timerText:i7,timerContainerAntistock:o7},c7=({expiresAt:e})=>{const[t,n]=L.useState(u()),{isAntistock:r}=g.useGeneralStore();function u(){const a=new Date,s=new Date(e).getTime()-a.getTime();if(s<=0)return{hours:"00",minutes:"00",seconds:"00"};const o=Math.floor(s/(1e3*60*60)),c=Math.floor(s%(1e3*60*60)/(1e3*60)),l=Math.floor(s%(1e3*60)/1e3);return{hours:String(o).padStart(2,"0"),minutes:String(c).padStart(2,"0"),seconds:String(l).padStart(2,"0")}}return L.useEffect(()=>{const a=setInterval(()=>{n(u())},1e3);return()=>clearInterval(a)},[e]),t.hours==="00"&&t.minutes==="00"&&t.seconds==="00"?null:r?i.jsxs("div",{className:Qa.timerContainerAntistock,children:[i.jsxs("span",{children:[t.hours,":",t.minutes,":",t.seconds]}),i.jsx("span",{children:"remaining"})]}):i.jsxs("div",{className:Qa.timerContainer,children:[i.jsx(N.Icon,{name:"Clock"}),i.jsxs("p",{className:Qa.timerText,id:"md",children:[t.hours,":",t.minutes,":",t.seconds]})]})},l7="_progressBar_18ijf_4",d7="_progressBarLabel_18ijf_12",f7="_progressBarTrack_18ijf_18",h7="_progressBarFill_18ijf_29",Lu={progressBar:l7,progressBarLabel:d7,progressBarTrack:f7,progressBarFill:h7},hi=({color:e,percent:t,disablePercentLabel:n})=>i.jsxs("div",{className:Lu.progressBar,children:[!n&&i.jsxs("p",{className:Lu.progressBarLabel,children:[t,"%"]}),i.jsx("div",{className:Lu.progressBarTrack,children:i.jsx("div",{style:{width:`${t}%`,background:e||void 0},className:Lu.progressBarFill})})]}),p7="_rating_1bpps_4",m7="_disabled_1bpps_9",g7="_ratingStar_1bpps_14",b7="_inactive_1bpps_22",Pu={rating:p7,disabled:m7,ratingStar:g7,inactive:b7},_7=({setRating:e,rating:t,disabled:n})=>{const[r,u]=L.useState(0),a=o=>{n||u(+o.currentTarget.id)},s=o=>{n||e(o)};return i.jsx("div",{className:g.clx(Pu.rating,{[Pu.disabled]:n}),onMouseLeave:()=>u(0),children:[1,2,3,4,5].map(o=>i.jsx("div",{id:o.toString(),className:g.clx(Pu.ratingStar,{[Pu.inactive]:!(t>=o||r>=o)}),onMouseEnter:a,onClick:()=>s(o),children:t>=o||r>=o?i.jsx(lm,{}):i.jsx(N.Icon,{name:"Star",fill:"var(--text-secondary)",width:22,height:21})},o))})},x7="_inputRange_iv6ow_4",C7="_inputRangeLabel_iv6ow_14",E7="_progressBar_iv6ow_22",y7="_progressBarFill_iv6ow_29",T7="_stepsContainer_iv6ow_40",k7="_step_iv6ow_40",A7="_stepDot_iv6ow_57",S7="_current_iv6ow_61",I7="_active_iv6ow_69",N7="_inactive_iv6ow_72",v7="_tooltip_iv6ow_77",Zt={inputRange:x7,inputRangeLabel:C7,progressBar:E7,progressBarFill:y7,stepsContainer:T7,step:k7,stepDot:A7,current:S7,default:"_default_iv6ow_65",active:I7,inactive:N7,tooltip:v7},w7=({totalSteps:e,step:t,onStepChange:n,label:r})=>{const[u,a]=L.useState(t),s=u===1?0:(u-1)/(e-1)*100,o=c=>{a(c),n(c)};return i.jsxs("div",{className:Zt.inputRange,children:[r&&i.jsx("div",{className:Zt.inputRangeLabel,children:r}),i.jsxs("div",{className:Zt.progressBar,children:[i.jsx("div",{className:Zt.progressBarFill,style:{width:`${Math.ceil(s)}%`}}),i.jsx("div",{className:Zt.stepsContainer,children:[...Array(e)].map((c,l)=>{const h=l+1,f=h<=u,m=h===u;return i.jsxs("div",{className:Zt.step,onClick:()=>o(h),children:[i.jsx("div",{className:g.clx(Zt.stepDot,m?Zt.current:Zt.default,f?Zt.active:Zt.inactive)}),m&&i.jsxs("div",{className:Zt.tooltip,style:{transform:`translateX(calc(50% - ${s<99?"40px":"70px"}))`},children:[i.jsx("span",{children:u}),i.jsx("span",{children:u===1?"month":"months"})]})]},h)})})]})]})},_a=({className:e,expiresAt:t})=>{const{shopGeneral:n}=g.useStorefrontStore(),r=g.useNavigate(),{isAntistock:u}=g.useGeneralStore();return i.jsxs("header",{className:`${hr.checkoutHeader} ${e}`,children:[i.jsxs("div",{className:hr.leftContainer,children:[i.jsx("div",{className:hr.backArrow,onClick:()=>{window.history.length>2?r(-1):r("/")},children:i.jsx(N.Icon,{name:"ArrowUp"})}),(n==null?void 0:n.info.logo)&&i.jsx("div",{className:hr.logoContainer,children:u?i.jsx("a",{className:hr.antistockLink,href:"https://antistock.io",target:"_blank",rel:"noopener noreferrer",children:"Antistock"}):i.jsx("img",{className:hr.logo,src:g.convertCfImageIdToUrl(n.info.logo.cfId,"200")})})]}),t&&i.jsx(c7,{expiresAt:t})]})},D7="_checkoutPrices_7fn88_1",L7="_priceRow_7fn88_12",P7="_label_7fn88_22",R7="_labelContainer_7fn88_26",M7="_tooltipContainer_7fn88_34",O7="_infoIcon_7fn88_40",j7="_tooltip_7fn88_34",F7="_totalRow_7fn88_94",B7="_totalLabel_7fn88_105",H7="_totalValue_7fn88_110",Ge={checkoutPrices:D7,priceRow:L7,label:P7,labelContainer:R7,tooltipContainer:M7,infoIcon:O7,tooltip:j7,totalRow:F7,totalLabel:B7,totalValue:H7},wr=({formatter:e,coupon:t,discount:n,totalWithDiscount:r,total:u,className:a,isShowSubtotal:s=!0,feeOrDiscount:o,serviceFeeAmount:c,replacementLabel:l,replacementAmount:h})=>{const f=Math.max(0,n),[m,p]=L.useState(!1),[b,_]=L.useState(!1),{priceAdjustment:E}=g.useCartStore(),{isAntistock:x}=g.useGeneralStore(),{settings:k}=g.useSettingsStore(),y={isDiscount:!1,fixedAmount:10,percentage:10},S=(()=>{const I=r!==void 0?r:u-f;if((!E||o===null||o===void 0)&&h==null&&(!y||c===null||c===void 0))return Math.max(I,0);let M=I;return E&&o!==null&&o!==void 0&&(E.isDiscount?M=Math.max(M-o,0):M=Math.max(M+o,0)),h!=null&&(M=Math.max(M+h,0)),y&&c!==null&&c!==void 0&&(y.isDiscount?M=Math.max(M-c,0):M=Math.max(M+c,0)),M})();return i.jsxs("div",{className:`${Ge.checkoutPrices} ${a||""}`,style:{border:x?"1px solid var(--border-secondary)":void 0},children:[s&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsx("p",{className:Ge.label,id:"md",children:"Subtotal"}),i.jsx("p",{id:"md",children:e.format(u)})]}),(t||f>0)&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsxs("p",{className:Ge.label,id:"md",children:["Discount ",t&&!(t!=null&&t.isFixed)&&`(${t==null?void 0:t.discount}%)`]}),i.jsx("p",{id:"md",children:t&&!(t!=null&&t.isFixed)&&(t==null?void 0:t.discount)===100?`-${e.format(u)}`:`-${e.format(f)}`})]}),o!=null&&o!==0&&E&&(E.fixedAmount!==0||E.percentage!==0)&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsx("p",{className:Ge.label,id:"md",children:E.isDiscount?"Gateway Discount":"Gateway Fee"}),i.jsx("p",{id:"md",children:e.format(o)})]}),h!=null&&h!==0&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsxs("div",{className:Ge.labelContainer,children:[i.jsx("p",{className:Ge.label,id:"md",children:l||"Priority Replacement"}),x&&i.jsxs("div",{className:Ge.tooltipContainer,children:[i.jsx("div",{className:Ge.infoIcon,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:i.jsx(N.Icon,{name:"Info",fill:"var(--text-secondary)"})}),m&&i.jsx("div",{className:Ge.tooltip,children:"This is an optional add-on you enabled to protect your checkout."})]})]}),i.jsx("p",{id:"md",children:e.format(h)})]}),c!=null&&c!==0&&y&&(y.fixedAmount!==0||y.percentage!==0)&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsxs("div",{className:Ge.labelContainer,children:[i.jsx("p",{className:Ge.label,id:"md",children:y.isDiscount?"Platform Discount":"Platform Fee"}),x&&i.jsxs("div",{className:Ge.tooltipContainer,children:[i.jsx("div",{className:Ge.infoIcon,onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1),children:i.jsx(N.Icon,{name:"Info",fill:"var(--text-secondary)"})}),b&&i.jsxs("div",{className:Ge.tooltip,children:["Platform ",y.isDiscount?"discount":"fee",(k==null?void 0:k.showPoweredBy)&&" charged by Antistock"," for processing your payment."]})]})]}),i.jsx("p",{id:"md",children:e.format(c)})]}),i.jsxs("div",{className:Ge.totalRow,children:[i.jsx("p",{className:Ge.totalLabel,id:"md-bold",children:"Total Due"}),i.jsx("p",{className:Ge.totalValue,id:"md-bold",children:e.format(S)})]})]})},U7="_checkoutProduct_8yrle_1",V7="_isOrder_8yrle_1",$7="_productDetails_8yrle_14",z7="_productImage_8yrle_20",q7="_isOrderImage_8yrle_30",Z7="_productImageAntistock_8yrle_34",W7="_image_8yrle_39",Y7="_productInfo_8yrle_44",G7="_productInfoOverrodePrice_8yrle_51",X7="_productHeader_8yrle_55",K7="_quantityBadge_8yrle_61",Q7="_productPrice_8yrle_79",J7="_priceContainer_8yrle_88",e9="_originalPrice_8yrle_97",t9="_overridePrice_8yrle_103",n9="_deliveryCategories_8yrle_107",r9="_customerNote_8yrle_115",u9="_noteHeader_8yrle_122",a9="_logoContainer_8yrle_128",s9="_shopName_8yrle_140",i9="_noteContent_8yrle_144",o9="_productName_8yrle_150",c9="_replacementRequests_8yrle_165",l9="_replacementRequestsTitle_8yrle_175",d9="_replacementButton_8yrle_182",f9="_replacementButtonText_8yrle_186",h9="_replacementRequestsList_8yrle_190",je={checkoutProduct:U7,isOrder:V7,productDetails:$7,productImage:z7,isOrderImage:q7,productImageAntistock:Z7,image:W7,productInfo:Y7,productInfoOverrodePrice:G7,productHeader:X7,quantityBadge:K7,productPrice:Q7,priceContainer:J7,originalPrice:e9,overridePrice:t9,deliveryCategories:n9,customerNote:r9,noteHeader:u9,logoContainer:a9,shopName:s9,noteContent:i9,productName:o9,replacementRequests:c9,replacementRequestsTitle:l9,replacementButton:d9,replacementButtonText:f9,replacementRequestsList:h9},p9="_deliveryItem_1x3fg_1",m9="_deliveryItemText_1x3fg_10",Wr={deliveryItem:p9,deliveryItemText:m9},Ps={[Pe.Text]:"View",[Pe.Serial]:"View",[Pe.Ebook]:"View",[Pe.Link]:"Visit",[Pe.Download]:"",[Pe.Custom]:"View",[Pe.Discord]:"Access",[Pe.Telegram]:"Telegram"},Rs={[Pe.Text]:"Content",[Pe.Serial]:"Content",[Pe.Ebook]:"Ebook",[Pe.Link]:"Link",[Pe.Download]:"Download",[Pe.Custom]:"Content",[Pe.Discord]:"Discord",[Pe.Telegram]:"Telegram"},y0=()=>({[Pe.Text]:i.jsx(N.Icon,{name:"FileText",fill:"var(--text-secondary)"}),[Pe.Serial]:i.jsx(N.Icon,{name:"FileText",fill:"var(--text-secondary)"}),[Pe.Ebook]:i.jsx(N.Icon,{name:"BookOpen",fill:"var(--text-secondary)"}),[Pe.Link]:i.jsx(N.Icon,{name:"ArrowLineUpRight",fill:"var(--text-secondary)"}),[Pe.Download]:i.jsx(N.Icon,{name:"DownloadSimple",fill:"var(--text-secondary)"}),[Pe.Custom]:i.jsx(N.Icon,{name:"FileText",fill:"var(--text-secondary)"}),[Pe.Discord]:i.jsx(N.Icon,{name:"DiscordLogo",fill:"var(--text-secondary)"}),[Pe.Telegram]:i.jsx(N.Icon,{name:"TelegramLogo",fill:"var(--text-secondary)"})}),g9=({deliveryConfiguration:e})=>{const t=e.type;return t===Pe.Text||t===Pe.Custom||t===Pe.Serial||t===Pe.Discord?i.jsx(b9,{deliveryConfiguration:e}):i.jsx(_9,{deliveryConfiguration:e})},b9=({deliveryConfiguration:e})=>{const t=e.type,[n,r]=L.useState(!1),{setIsOpen:u}=g.useModalStore(),{isAntistock:a}=g.useGeneralStore(),s=()=>{u(!0),r(!0)};return i.jsxs(i.Fragment,{children:[a?i.jsx(N.Button,{type:"Secondary",onClick:o=>{o.stopPropagation(),s()},children:i.jsx("p",{className:Wr.deliveryItemText,children:e.customName??`${Ps[t]} ${Rs[t]}`})}):i.jsxs(N.Button,{type:"Secondary",className:Wr.deliveryItem,onClick:o=>{o.stopPropagation(),s()},children:[y0()[t],i.jsx("p",{className:Wr.deliveryItemText,children:e.customName??`${Ps[t]} ${Rs[t]}`})]}),n&&i.jsx(N.Modal,{close:()=>r(!1),withAnimation:!a,children:i.jsx(vd,{deliveryConfiguration:e,setIsOpen:r})})]})},_9=({deliveryConfiguration:e})=>{const t=e.type;return i.jsxs(N.Button,{type:"Secondary",className:Wr.deliveryItem,style:{display:"flex",alignItems:"center",gap:"0.5rem"},onClick:()=>window.open(e.deliveryItems[0].textData,"_blank"),children:[y0()[t],i.jsx("p",{className:Wr.deliveryItemText,children:e.customName??`${Ps[t]} ${Rs[t]}`})]})},x9="_replacementRequestItem_1sd2r_1",C9="_replacementRequestHeader_1sd2r_11",E9="_replacementRequestId_1sd2r_18",y9="_replacementRequestDescription_1sd2r_24",T9="_statusBadge_1sd2r_30",k9="_statusPending_1sd2r_38",A9="_statusApproved_1sd2r_43",S9="_statusDeclined_1sd2r_48",I9="_statusCancelled_1sd2r_53",N9="_replacementModal_1sd2r_58",v9="_replacementModalAntistock_1sd2r_68",w9="_replacementModalHeader_1sd2r_73",D9="_closeButton_1sd2r_87",L9="_replacementModalContent_1sd2r_101",P9="_statusSection_1sd2r_110",R9="_statusTitle_1sd2r_116",M9="_statusDescription_1sd2r_123",O9="_actionButtons_1sd2r_130",j9="_productsSection_1sd2r_137",F9="_productsList_1sd2r_151",B9="_productItem_1sd2r_157",H9="_noProducts_1sd2r_164",U9="_previouslyDeliveredSection_1sd2r_171",V9="_previouslyDeliveredHeader_1sd2r_179",$9="_previouslyDeliveredTitle_1sd2r_186",z9="_caretIcon_1sd2r_192",q9="_caretIconRotated_1sd2r_196",Z9="_previouslyDeliveredContent_1sd2r_200",W9="_previouslyDeliveredProductItem_1sd2r_209",Le={replacementRequestItem:x9,replacementRequestHeader:C9,replacementRequestId:E9,replacementRequestDescription:y9,statusBadge:T9,statusPending:k9,statusApproved:A9,statusDeclined:S9,statusCancelled:I9,replacementModal:N9,replacementModalAntistock:v9,replacementModalHeader:w9,closeButton:D9,replacementModalContent:L9,statusSection:P9,statusTitle:R9,statusDescription:M9,actionButtons:O9,productsSection:j9,productsList:F9,productItem:B9,noProducts:H9,previouslyDeliveredSection:U9,previouslyDeliveredHeader:V9,previouslyDeliveredTitle:$9,caretIcon:z9,caretIconRotated:q9,previouslyDeliveredContent:Z9,previouslyDeliveredProductItem:W9},Y9=({item:e,orderId:t,accessToken:n,onCancel:r})=>{var D,S;const[u,a]=L.useState(!1),[s,o]=L.useState(!1),[c,l]=L.useState(!1),{setIsOpen:h}=g.useModalStore(),{isAntistock:f}=g.useGeneralStore(),{setNotifications:m,notifications:p}=g.useNotificationStore(),b=()=>{h(!0),a(!0)},_=async()=>{var I,M;if(!t||!n){m([...p,{id:g.v4(),message:"Missing order information",status:"error"}]);return}o(!0);try{const H=await E2(t,n,e.id);m([...p,{id:g.v4(),message:((I=H.data)==null?void 0:I.message)||"Replacement request cancelled successfully",status:"success"}]),r==null||r(),a(!1)}catch(H){let U="Failed to cancel replacement request",P="";const B=H;if((M=B==null?void 0:B.response)!=null&&M.data){const O=B.response.data;O.message&&O.errors&&Array.isArray(O.errors)?(P=O.message,U=O.errors.join(", ")):O.errors&&Array.isArray(O.errors)?U=O.errors.join(", "):O.message&&(U=O.message)}else H instanceof Error&&(U=H.message);m([...p,{id:g.v4(),message:U,status:"error",label:P}])}finally{o(!1)}},E=()=>{if(!e.replacementItems||e.replacementItems.length===0){m([...p,{id:g.v4(),message:"No products to copy",status:"error"}]);return}const I=e.replacementItems.map(M=>`${M.originalSerialKey} -> ${M.replacementSerialKey}`).join(`
|
|
83
|
+
}`;const H4="_authContainer_1uyf7_2",U4="_authWrapper_1uyf7_12",V4="_inModal_1uyf7_19",$4="_formHeaderTitle_1uyf7_26",z4="_formHeaderSubtitle_1uyf7_33",q4="_formLabel_1uyf7_39",Z4="_formError_1uyf7_51",W4="_submitButton_1uyf7_57",Y4="_submitButtonAntistock_1uyf7_57",G4="_backButton_1uyf7_67",X4="_otpContainer_1uyf7_78",K4="_otpSlots_1uyf7_85",Q4="_otpSlot_1uyf7_85",J4="_active_1uyf7_108",e5="_otpSlotEmpty_1uyf7_113",t5="_actionRow_1uyf7_117",n5="_authForm_1uyf7_124",r5="_formHeader_1uyf7_26",u5="_input_1uyf7_135",Ke={authContainer:H4,authWrapper:U4,inModal:V4,formHeaderTitle:$4,formHeaderSubtitle:z4,formLabel:q4,formError:Z4,submitButton:W4,submitButtonAntistock:Y4,backButton:G4,otpContainer:X4,otpSlots:K4,otpSlot:Q4,active:J4,otpSlotEmpty:e5,actionRow:t5,authForm:n5,formHeader:r5,input:u5},a5=L.forwardRef(({value:e,onChange:t,onComplete:n},r)=>i.jsx(l0,{ref:r,value:e,onChange:t,onComplete:n,maxLength:6,containerClassName:Ke.otpContainer,render:({slots:u})=>i.jsx("div",{className:Ke.otpSlots,children:u.map(a=>i.jsx(s5,{...a},crypto.randomUUID()))})}));function s5({char:e,isActive:t}){return i.jsx("div",{className:g.clx(Ke.otpSlot,{[Ke.active]:t}),children:e?i.jsx("div",{children:e}):i.jsx("div",{className:Ke.otpSlotEmpty,children:"0"})})}const i5=e=>{const t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return e.trim()?t.test(e)?null:"Please enter a valid email.":"The email field cannot be empty."},o5=e=>/^[0-9]{6}$/.test(e)?null:"Invalid verification code. The code should be a six-digit number. Please try again",d0=({title:e,subtitle:t,isAntistock:n})=>i.jsxs("div",{className:Ke.formHeader,style:{textAlign:n?"center":void 0},children:[i.jsx("h3",{id:"h3",className:Ke.formHeaderTitle,children:e}),t?i.jsx("div",{className:Ke.formHeaderSubtitle,children:t}):null]}),f0=({error:e})=>e?i.jsx("div",{className:Ke.formError,children:e}):null,h0=()=>{const[e,t]=L.useState(""),[n,r]=L.useState(null),[u,a]=L.useState(!1),{executeRecaptcha:s}=fu(),{setOtpRequest:o}=g.useCustomerDashboardStore(),{isAntistock:c}=g.useGeneralStore(),l=async h=>{h.preventDefault(),r(null);const f=i5(e);if(f){r(f);return}a(!0);try{const m=await s();if(!m)throw new Error("ReCaptcha verification failed");await ol({email:e,recaptcha:m,tsId:g.useGetTsId()}),o({requested:!0,email:e})}catch{r("Failed to request OTP. Please try again.")}finally{a(!1)}};return i.jsxs("form",{onSubmit:l,className:Ke.authForm,children:[i.jsx(d0,{title:c?"My Account":"Sign In",subtitle:c?"":"To continue, enter your email address below.",isAntistock:c}),i.jsxs("div",{className:Ke.input,children:[i.jsx(N.Input,{label:c?"Email":"Email Address",placeholder:"your@email.com",value:e,onChange:h=>{t(h),r(null)}}),i.jsx(f0,{error:n})]}),i.jsx(N.Button,{type:"Primary",className:c?Ke.submitButtonAntistock:Ke.submitButton,disabled:u,children:u?c?i.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx(N.Loader,{}),i.jsx("span",{children:"Continue"})]}):i.jsx(N.Loader,{}):c?"Continue":"Sign In"}),i.jsx("span",{style:{color:"var(--text-secondary)",paddingTop:"8px",fontSize:"var(--font-body-md-size)",textAlign:"center"},children:"You will receive a 6-digit account code via email."})]})},p0=({onSignIn:e})=>{const{otpRequest:t,setOtpRequest:n}=g.useCustomerDashboardStore(),{isAntistock:r}=g.useGeneralStore(),[u,a]=L.useState(""),[s,o]=L.useState(null),[c,l]=L.useState(!1),{executeRecaptcha:h}=fu(),f=async()=>{o(null);const p=o5(u);if(p){o(p);return}l(!0);try{const b=await h();if(!b)throw new Error("ReCaptcha verification failed");await cl({email:t.email,otp:u,recaptcha:b||"",tsId:g.useGetTsId()}),e&&e()}catch{o("Invalid OTP. Please try again.")}finally{l(!1)}},m=()=>n({requested:!1,email:""});return i.jsxs("form",{onSubmit:f,className:Ke.authForm,children:[i.jsx(d0,{title:"Check Your Email",subtitle:`Enter the 6-digit code we sent to ${t.email}`,isAntistock:r}),i.jsxs("label",{className:Ke.formLabel,children:["Code",i.jsx(a5,{onChange:p=>{a(p),o(null)},value:u,onComplete:f})]}),i.jsx(f0,{error:s}),i.jsxs("div",{className:Ke.actionRow,children:[i.jsx(N.Button,{onClick:m,type:"Secondary",className:Ke.backButton,children:"Back"}),i.jsx(N.Button,{type:"Primary",className:r?Ke.submitButtonAntistock:Ke.submitButton,disabled:c,children:c?i.jsx(N.Loader,{}):r?"Continue":"Sign In"})]})]})},ma=({inModal:e,onSignIn:t})=>{const{otpRequest:n,setOtpRequest:r}=g.useCustomerDashboardStore();return L.useEffect(()=>{n.requested&&r({requested:!1,email:""})},[]),i.jsx("div",{className:Ke.authContainer,children:n?i.jsx("div",{className:g.clx(Ke.authWrapper,e&&Ke.inModal),children:n.requested?i.jsx(p0,{onSignIn:t}):i.jsx(h0,{})}):i.jsx(N.Loader,{})})};function c5(){const e=new URL(window.location.href);window.history.replaceState(null,"",e.pathname+e.hash)}var fi=(e=>(e.ADD_BALANCE="AddBalance",e))(fi||{});function l5(){const e=new URLSearchParams(document.location.search),t=e.get("page"),n=e.get("action");return{page:t,action:n}}function d5(){const{page:e,action:t}=l5(),{setRoute:n,setAction:r}=g.useCustomerDashboardStore.getState();e&&Object.values(g.Routes).includes(e)&&n(e),t&&Object.values(fi).includes(t)&&r(t),c5()}const f5=()=>typeof g.Routes>"u"?(console.warn("Routes not available for RouteToRouteComponent"),{}):{[g.Routes.Home]:u0,[g.Routes.Orders]:ul.Orders,[g.Routes.Rewards]:a0,[g.Routes.Balance]:n0,[g.Routes.Subscriptions]:t2.Subscriptions,[g.Routes.Api]:s0,[g.Routes.Tickets]:rl.Tickets},h5=()=>typeof g.AntistockRoutes>"u"?(console.warn("AntistockRoutes not available for RouteToAntistockRouteComponent"),{}):{[g.AntistockRoutes.Home]:u0,[g.AntistockRoutes.Orders]:ul.Orders,[g.AntistockRoutes.Rewards]:a0,[g.AntistockRoutes.Balance]:n0,[g.AntistockRoutes.Api]:s0,[g.AntistockRoutes.Tickets]:rl.Tickets},p5=()=>{var l;const{route:e,action:t,setRoute:n,setIsBalanceModalOpen:r}=g.useCustomerDashboardStore(),{resetPage:u}=g.usePaginationPagesStore(),{token:a}=g.useStorefrontStore(),{isAntistock:s,general:o}=g.useGeneralStore(),c=s?h5()[e]:f5()[e];return L.useEffect(()=>{u(),d5()},[a,e,u]),L.useEffect(()=>{t===fi.ADD_BALANCE&&e===g.Routes.Balance&&r(!0)},[e,t]),L.useEffect(()=>{window.location.pathname.includes("/ticket")&&n(g.Routes.Tickets)},[window.location.pathname]),(l=o==null?void 0:o.info)!=null&&l.customerAccountSettings&&(o.info.customerAccountSettings??"OPTIONAL")==="DISABLED"?i.jsx(g.Navigate,{to:"/",replace:!0}):a?i.jsx("div",{style:{maxWidth:"var(--max-width-store)",margin:"0 auto",height:"100%"},children:i.jsx(N.Wrapper,{notPadding:!0,style:{height:"100%"},maxWidth:"var(--max-width-store)",children:h=>i.jsxs("main",{className:g.clx(Gn.appContainer,{[Gn.mobile]:h!=="desktop",[Gn.noAnimation]:s,[Gn.appContainerAntistock]:s}),children:[i.jsx(Wl,{adaptiveStyles:h}),i.jsx("div",{className:g.clx(Gn.contentContainer,{[Gn.mobile]:h!=="desktop",[Gn.contentContainerAntistock]:s}),children:i.jsx(c,{adaptiveStyles:h})})]})})}):i.jsx(ma,{})},m5=()=>i.jsx(ni,{children:i.jsx(p5,{})}),g5="_referralBlock_kla2r_2",b5="_skeleton_kla2r_3",_5="_mobile_kla2r_13",x5="_referralContainer_kla2r_18",C5="_title_kla2r_30",E5="_description_kla2r_36",y5="_linkContainer_kla2r_56",T5="_modalContainer_kla2r_77",k5="_steps_kla2r_86",A5="_joinButton_kla2r_92",S5="_stepItem_kla2r_97",I5="_iconContainer_kla2r_103",N5="_index_kla2r_111",v5="_bar_kla2r_123",w5="_content_kla2r_130",D5="_caption_kla2r_135",L5="_descriptionStep_kla2r_141",P5="_error_kla2r_151",R5="_infoBlock_kla2r_155",M5="_infoIcon_kla2r_164",O5="_infoText_kla2r_173",j5="_actions_kla2r_178",F5="_cancelButton_kla2r_183",B5="_referralStats_kla2r_187",H5="_referralInfo_kla2r_204",U5="_referralStatsItem_kla2r_210",V5="_referralStatsItemValue_kla2r_220",$5="_referralStatsItemLabel_kla2r_225",z5="_referral_kla2r_2",q5="_header_kla2r_244",Z5="_contentModal_kla2r_254",Ce={referralBlock:g5,skeleton:b5,mobile:_5,referralContainer:x5,title:C5,description:E5,linkContainer:y5,modalContainer:T5,steps:k5,joinButton:A5,stepItem:S5,iconContainer:I5,index:N5,bar:v5,content:w5,caption:D5,descriptionStep:L5,error:P5,infoBlock:R5,infoIcon:M5,infoText:O5,actions:j5,cancelButton:F5,referralStats:B5,referralInfo:H5,referralStatsItem:U5,referralStatsItemValue:V5,referralStatsItemLabel:$5,referral:z5,header:q5,contentModal:Z5},W5=({caption:e,description:t,index:n,bar:r=!0})=>i.jsxs("div",{className:Ce.stepItem,children:[i.jsxs("div",{className:Ce.iconContainer,children:[i.jsx("div",{className:Ce.index,children:n}),r&&i.jsx("div",{className:Ce.bar})]}),i.jsxs("div",{className:Ce.content,children:[i.jsx("div",{className:Ce.caption,children:e}),i.jsx("div",{className:Ce.descriptionStep,children:t})]})]}),Y5=({setIsOpen:e,setIsLoading:t})=>{const[n,r]=L.useState(""),[u,a]=L.useState(""),{notifications:s,setNotifications:o}=g.useNotificationStore(),{setIsOpen:c}=g.useModalStore(),l=async f=>{if(f.preventDefault(),n.length<3){a("Referral Code should have minimum length of 3");return}t(!0),h();try{await V2({referralCode:n}),o([...s,{message:"Referral Code has been applied",status:"success",id:g.v4()}])}catch(m){const p=m;o([...s,{message:p.message,status:"error",id:g.v4()}])}t(!1),e(!1),r(""),a("")},h=()=>{c(!1),setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{onClick:f=>f.stopPropagation(),className:Ce.modalContainer,children:[i.jsxs("div",{className:Ce.header,children:[i.jsx("div",{id:"h3",children:"Create an affiliate code"}),i.jsx(N.Icon,{name:"X",onClick:h,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Ce.contentModal,children:[i.jsx(N.Input,{value:n,onChange:f=>r(f),placeholder:"Enter code here (e.g., Join)",label:"Affiliate Code"}),u&&i.jsx("div",{className:Ce.error,children:u}),i.jsxs("div",{className:Ce.infoBlock,children:[i.jsx("div",{className:Ce.infoIcon,children:i.jsx(N.Icon,{name:"Info"})}),i.jsx("div",{className:Ce.infoText,children:"Once you join our referral program, you'll gain access to special deals, rewards, and potentially earn a percentage (%) of revenue."})]}),i.jsxs("div",{className:Ce.actions,children:[i.jsx(N.Button,{type:"Secondary",className:Ce.cancelButton,onClick:h,children:"Cancel"}),i.jsx(N.Button,{type:"Primary",onClick:l,children:"Create"})]})]})]})},Du=()=>i.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:i.jsxs("svg",{width:"100%",height:"64",viewBox:"0 0 208 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsxs("g",{clipPath:"url(#clip0_2098_5511)",children:[i.jsx("mask",{id:"path-1-inside-1_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 0H208V16H0V0Z"})}),i.jsx("path",{d:"M208 16.5C208.276 16.5 208.5 16.2761 208.5 16C208.5 15.7239 208.276 15.5 208 15.5V16.5ZM0 15.5C-0.276142 15.5 -0.5 15.7239 -0.5 16C-0.5 16.2761 -0.276142 16.5 0 16.5V15.5ZM4 16.5C4.27614 16.5 4.5 16.2761 4.5 16C4.5 15.7239 4.27614 15.5 4 15.5V16.5ZM12 15.5C11.7239 15.5 11.5 15.7239 11.5 16C11.5 16.2761 11.7239 16.5 12 16.5V15.5ZM20 16.5C20.2761 16.5 20.5 16.2761 20.5 16C20.5 15.7239 20.2761 15.5 20 15.5V16.5ZM28 15.5C27.7239 15.5 27.5 15.7239 27.5 16C27.5 16.2761 27.7239 16.5 28 16.5V15.5ZM36 16.5C36.2761 16.5 36.5 16.2761 36.5 16C36.5 15.7239 36.2761 15.5 36 15.5V16.5ZM44 15.5C43.7239 15.5 43.5 15.7239 43.5 16C43.5 16.2761 43.7239 16.5 44 16.5V15.5ZM52 16.5C52.2761 16.5 52.5 16.2761 52.5 16C52.5 15.7239 52.2761 15.5 52 15.5V16.5ZM60 15.5C59.7239 15.5 59.5 15.7239 59.5 16C59.5 16.2761 59.7239 16.5 60 16.5V15.5ZM68 16.5C68.2761 16.5 68.5 16.2761 68.5 16C68.5 15.7239 68.2761 15.5 68 15.5V16.5ZM76 15.5C75.7239 15.5 75.5 15.7239 75.5 16C75.5 16.2761 75.7239 16.5 76 16.5V15.5ZM84 16.5C84.2761 16.5 84.5 16.2761 84.5 16C84.5 15.7239 84.2761 15.5 84 15.5V16.5ZM92 15.5C91.7239 15.5 91.5 15.7239 91.5 16C91.5 16.2761 91.7239 16.5 92 16.5V15.5ZM100 16.5C100.276 16.5 100.5 16.2761 100.5 16C100.5 15.7239 100.276 15.5 100 15.5V16.5ZM108 15.5C107.724 15.5 107.5 15.7239 107.5 16C107.5 16.2761 107.724 16.5 108 16.5V15.5ZM116 16.5C116.276 16.5 116.5 16.2761 116.5 16C116.5 15.7239 116.276 15.5 116 15.5V16.5ZM124 15.5C123.724 15.5 123.5 15.7239 123.5 16C123.5 16.2761 123.724 16.5 124 16.5V15.5ZM132 16.5C132.276 16.5 132.5 16.2761 132.5 16C132.5 15.7239 132.276 15.5 132 15.5V16.5ZM140 15.5C139.724 15.5 139.5 15.7239 139.5 16C139.5 16.2761 139.724 16.5 140 16.5V15.5ZM148 16.5C148.276 16.5 148.5 16.2761 148.5 16C148.5 15.7239 148.276 15.5 148 15.5V16.5ZM156 15.5C155.724 15.5 155.5 15.7239 155.5 16C155.5 16.2761 155.724 16.5 156 16.5V15.5ZM164 16.5C164.276 16.5 164.5 16.2761 164.5 16C164.5 15.7239 164.276 15.5 164 15.5V16.5ZM172 15.5C171.724 15.5 171.5 15.7239 171.5 16C171.5 16.2761 171.724 16.5 172 16.5V15.5ZM180 16.5C180.276 16.5 180.5 16.2761 180.5 16C180.5 15.7239 180.276 15.5 180 15.5V16.5ZM188 15.5C187.724 15.5 187.5 15.7239 187.5 16C187.5 16.2761 187.724 16.5 188 16.5V15.5ZM196 16.5C196.276 16.5 196.5 16.2761 196.5 16C196.5 15.7239 196.276 15.5 196 15.5V16.5ZM204 15.5C203.724 15.5 203.5 15.7239 203.5 16C203.5 16.2761 203.724 16.5 204 16.5V15.5ZM0 16.5H4V15.5H0V16.5ZM12 16.5H20V15.5H12V16.5ZM28 16.5H36V15.5H28V16.5ZM44 16.5H52V15.5H44V16.5ZM60 16.5H68V15.5H60V16.5ZM76 16.5H84V15.5H76V16.5ZM92 16.5H100V15.5H92V16.5ZM108 16.5H116V15.5H108V16.5ZM124 16.5H132V15.5H124V16.5ZM140 16.5H148V15.5H140V16.5ZM156 16.5H164V15.5H156V16.5ZM172 16.5H180V15.5H172V16.5ZM188 16.5H196V15.5H188V16.5ZM204 16.5H208V15.5H204V16.5ZM208 17C208.552 17 209 16.5523 209 16C209 15.4477 208.552 15 208 15V17ZM0 15C-0.552285 15 -1 15.4477 -1 16C-1 16.5523 -0.552285 17 0 17V15ZM4 17C4.55228 17 5 16.5523 5 16C5 15.4477 4.55228 15 4 15V17ZM12 15C11.4477 15 11 15.4477 11 16C11 16.5523 11.4477 17 12 17V15ZM20 17C20.5523 17 21 16.5523 21 16C21 15.4477 20.5523 15 20 15V17ZM28 15C27.4477 15 27 15.4477 27 16C27 16.5523 27.4477 17 28 17V15ZM36 17C36.5523 17 37 16.5523 37 16C37 15.4477 36.5523 15 36 15V17ZM44 15C43.4477 15 43 15.4477 43 16C43 16.5523 43.4477 17 44 17V15ZM52 17C52.5523 17 53 16.5523 53 16C53 15.4477 52.5523 15 52 15V17ZM60 15C59.4477 15 59 15.4477 59 16C59 16.5523 59.4477 17 60 17V15ZM68 17C68.5523 17 69 16.5523 69 16C69 15.4477 68.5523 15 68 15V17ZM76 15C75.4477 15 75 15.4477 75 16C75 16.5523 75.4477 17 76 17V15ZM84 17C84.5523 17 85 16.5523 85 16C85 15.4477 84.5523 15 84 15V17ZM92 15C91.4477 15 91 15.4477 91 16C91 16.5523 91.4477 17 92 17V15ZM100 17C100.552 17 101 16.5523 101 16C101 15.4477 100.552 15 100 15V17ZM108 15C107.448 15 107 15.4477 107 16C107 16.5523 107.448 17 108 17V15ZM116 17C116.552 17 117 16.5523 117 16C117 15.4477 116.552 15 116 15V17ZM124 15C123.448 15 123 15.4477 123 16C123 16.5523 123.448 17 124 17V15ZM132 17C132.552 17 133 16.5523 133 16C133 15.4477 132.552 15 132 15V17ZM140 15C139.448 15 139 15.4477 139 16C139 16.5523 139.448 17 140 17V15ZM148 17C148.552 17 149 16.5523 149 16C149 15.4477 148.552 15 148 15V17ZM156 15C155.448 15 155 15.4477 155 16C155 16.5523 155.448 17 156 17V15ZM164 17C164.552 17 165 16.5523 165 16C165 15.4477 164.552 15 164 15V17ZM172 15C171.448 15 171 15.4477 171 16C171 16.5523 171.448 17 172 17V15ZM180 17C180.552 17 181 16.5523 181 16C181 15.4477 180.552 15 180 15V17ZM188 15C187.448 15 187 15.4477 187 16C187 16.5523 187.448 17 188 17V15ZM196 17C196.552 17 197 16.5523 197 16C197 15.4477 196.552 15 196 15V17ZM204 15C203.448 15 203 15.4477 203 16C203 16.5523 203.448 17 204 17V15ZM0 17H4V15H0V17ZM12 17H20V15H12V17ZM28 17H36V15H28V17ZM44 17H52V15H44V17ZM60 17H68V15H60V17ZM76 17H84V15H76V17ZM92 17H100V15H92V17ZM108 17H116V15H108V17ZM124 17H132V15H124V17ZM140 17H148V15H140V17ZM156 17H164V15H156V17ZM172 17H180V15H172V17ZM188 17H196V15H188V17ZM204 17H208V15H204V17Z",fill:"#F8F8F8",mask:"url(#path-1-inside-1_2098_5511)"}),i.jsx("mask",{id:"path-3-inside-2_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 16H208V32H0V16Z"})}),i.jsx("path",{d:"M208 32.5C208.276 32.5 208.5 32.2761 208.5 32C208.5 31.7239 208.276 31.5 208 31.5V32.5ZM0 31.5C-0.276142 31.5 -0.5 31.7239 -0.5 32C-0.5 32.2761 -0.276142 32.5 0 32.5V31.5ZM4 32.5C4.27614 32.5 4.5 32.2761 4.5 32C4.5 31.7239 4.27614 31.5 4 31.5V32.5ZM12 31.5C11.7239 31.5 11.5 31.7239 11.5 32C11.5 32.2761 11.7239 32.5 12 32.5V31.5ZM20 32.5C20.2761 32.5 20.5 32.2761 20.5 32C20.5 31.7239 20.2761 31.5 20 31.5V32.5ZM28 31.5C27.7239 31.5 27.5 31.7239 27.5 32C27.5 32.2761 27.7239 32.5 28 32.5V31.5ZM36 32.5C36.2761 32.5 36.5 32.2761 36.5 32C36.5 31.7239 36.2761 31.5 36 31.5V32.5ZM44 31.5C43.7239 31.5 43.5 31.7239 43.5 32C43.5 32.2761 43.7239 32.5 44 32.5V31.5ZM52 32.5C52.2761 32.5 52.5 32.2761 52.5 32C52.5 31.7239 52.2761 31.5 52 31.5V32.5ZM60 31.5C59.7239 31.5 59.5 31.7239 59.5 32C59.5 32.2761 59.7239 32.5 60 32.5V31.5ZM68 32.5C68.2761 32.5 68.5 32.2761 68.5 32C68.5 31.7239 68.2761 31.5 68 31.5V32.5ZM76 31.5C75.7239 31.5 75.5 31.7239 75.5 32C75.5 32.2761 75.7239 32.5 76 32.5V31.5ZM84 32.5C84.2761 32.5 84.5 32.2761 84.5 32C84.5 31.7239 84.2761 31.5 84 31.5V32.5ZM92 31.5C91.7239 31.5 91.5 31.7239 91.5 32C91.5 32.2761 91.7239 32.5 92 32.5V31.5ZM100 32.5C100.276 32.5 100.5 32.2761 100.5 32C100.5 31.7239 100.276 31.5 100 31.5V32.5ZM108 31.5C107.724 31.5 107.5 31.7239 107.5 32C107.5 32.2761 107.724 32.5 108 32.5V31.5ZM116 32.5C116.276 32.5 116.5 32.2761 116.5 32C116.5 31.7239 116.276 31.5 116 31.5V32.5ZM124 31.5C123.724 31.5 123.5 31.7239 123.5 32C123.5 32.2761 123.724 32.5 124 32.5V31.5ZM132 32.5C132.276 32.5 132.5 32.2761 132.5 32C132.5 31.7239 132.276 31.5 132 31.5V32.5ZM140 31.5C139.724 31.5 139.5 31.7239 139.5 32C139.5 32.2761 139.724 32.5 140 32.5V31.5ZM148 32.5C148.276 32.5 148.5 32.2761 148.5 32C148.5 31.7239 148.276 31.5 148 31.5V32.5ZM156 31.5C155.724 31.5 155.5 31.7239 155.5 32C155.5 32.2761 155.724 32.5 156 32.5V31.5ZM164 32.5C164.276 32.5 164.5 32.2761 164.5 32C164.5 31.7239 164.276 31.5 164 31.5V32.5ZM172 31.5C171.724 31.5 171.5 31.7239 171.5 32C171.5 32.2761 171.724 32.5 172 32.5V31.5ZM180 32.5C180.276 32.5 180.5 32.2761 180.5 32C180.5 31.7239 180.276 31.5 180 31.5V32.5ZM188 31.5C187.724 31.5 187.5 31.7239 187.5 32C187.5 32.2761 187.724 32.5 188 32.5V31.5ZM196 32.5C196.276 32.5 196.5 32.2761 196.5 32C196.5 31.7239 196.276 31.5 196 31.5V32.5ZM204 31.5C203.724 31.5 203.5 31.7239 203.5 32C203.5 32.2761 203.724 32.5 204 32.5V31.5ZM0 32.5H4V31.5H0V32.5ZM12 32.5H20V31.5H12V32.5ZM28 32.5H36V31.5H28V32.5ZM44 32.5H52V31.5H44V32.5ZM60 32.5H68V31.5H60V32.5ZM76 32.5H84V31.5H76V32.5ZM92 32.5H100V31.5H92V32.5ZM108 32.5H116V31.5H108V32.5ZM124 32.5H132V31.5H124V32.5ZM140 32.5H148V31.5H140V32.5ZM156 32.5H164V31.5H156V32.5ZM172 32.5H180V31.5H172V32.5ZM188 32.5H196V31.5H188V32.5ZM204 32.5H208V31.5H204V32.5ZM208 33C208.552 33 209 32.5523 209 32C209 31.4477 208.552 31 208 31V33ZM0 31C-0.552285 31 -1 31.4477 -1 32C-1 32.5523 -0.552285 33 0 33V31ZM4 33C4.55228 33 5 32.5523 5 32C5 31.4477 4.55228 31 4 31V33ZM12 31C11.4477 31 11 31.4477 11 32C11 32.5523 11.4477 33 12 33V31ZM20 33C20.5523 33 21 32.5523 21 32C21 31.4477 20.5523 31 20 31V33ZM28 31C27.4477 31 27 31.4477 27 32C27 32.5523 27.4477 33 28 33V31ZM36 33C36.5523 33 37 32.5523 37 32C37 31.4477 36.5523 31 36 31V33ZM44 31C43.4477 31 43 31.4477 43 32C43 32.5523 43.4477 33 44 33V31ZM52 33C52.5523 33 53 32.5523 53 32C53 31.4477 52.5523 31 52 31V33ZM60 31C59.4477 31 59 31.4477 59 32C59 32.5523 59.4477 33 60 33V31ZM68 33C68.5523 33 69 32.5523 69 32C69 31.4477 68.5523 31 68 31V33ZM76 31C75.4477 31 75 31.4477 75 32C75 32.5523 75.4477 33 76 33V31ZM84 33C84.5523 33 85 32.5523 85 32C85 31.4477 84.5523 31 84 31V33ZM92 31C91.4477 31 91 31.4477 91 32C91 32.5523 91.4477 33 92 33V31ZM100 33C100.552 33 101 32.5523 101 32C101 31.4477 100.552 31 100 31V33ZM108 31C107.448 31 107 31.4477 107 32C107 32.5523 107.448 33 108 33V31ZM116 33C116.552 33 117 32.5523 117 32C117 31.4477 116.552 31 116 31V33ZM124 31C123.448 31 123 31.4477 123 32C123 32.5523 123.448 33 124 33V31ZM132 33C132.552 33 133 32.5523 133 32C133 31.4477 132.552 31 132 31V33ZM140 31C139.448 31 139 31.4477 139 32C139 32.5523 139.448 33 140 33V31ZM148 33C148.552 33 149 32.5523 149 32C149 31.4477 148.552 31 148 31V33ZM156 31C155.448 31 155 31.4477 155 32C155 32.5523 155.448 33 156 33V31ZM164 33C164.552 33 165 32.5523 165 32C165 31.4477 164.552 31 164 31V33ZM172 31C171.448 31 171 31.4477 171 32C171 32.5523 171.448 33 172 33V31ZM180 33C180.552 33 181 32.5523 181 32C181 31.4477 180.552 31 180 31V33ZM188 31C187.448 31 187 31.4477 187 32C187 32.5523 187.448 33 188 33V31ZM196 33C196.552 33 197 32.5523 197 32C197 31.4477 196.552 31 196 31V33ZM204 31C203.448 31 203 31.4477 203 32C203 32.5523 203.448 33 204 33V31ZM0 33H4V31H0V33ZM12 33H20V31H12V33ZM28 33H36V31H28V33ZM44 33H52V31H44V33ZM60 33H68V31H60V33ZM76 33H84V31H76V33ZM92 33H100V31H92V33ZM108 33H116V31H108V33ZM124 33H132V31H124V33ZM140 33H148V31H140V33ZM156 33H164V31H156V33ZM172 33H180V31H172V33ZM188 33H196V31H188V33ZM204 33H208V31H204V33Z",fill:"#F8F8F8",mask:"url(#path-3-inside-2_2098_5511)"}),i.jsx("mask",{id:"path-5-inside-3_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 32H208V48H0V32Z"})}),i.jsx("path",{d:"M208 48.5C208.276 48.5 208.5 48.2761 208.5 48C208.5 47.7239 208.276 47.5 208 47.5V48.5ZM0 47.5C-0.276142 47.5 -0.5 47.7239 -0.5 48C-0.5 48.2761 -0.276142 48.5 0 48.5V47.5ZM4 48.5C4.27614 48.5 4.5 48.2761 4.5 48C4.5 47.7239 4.27614 47.5 4 47.5V48.5ZM12 47.5C11.7239 47.5 11.5 47.7239 11.5 48C11.5 48.2761 11.7239 48.5 12 48.5V47.5ZM20 48.5C20.2761 48.5 20.5 48.2761 20.5 48C20.5 47.7239 20.2761 47.5 20 47.5V48.5ZM28 47.5C27.7239 47.5 27.5 47.7239 27.5 48C27.5 48.2761 27.7239 48.5 28 48.5V47.5ZM36 48.5C36.2761 48.5 36.5 48.2761 36.5 48C36.5 47.7239 36.2761 47.5 36 47.5V48.5ZM44 47.5C43.7239 47.5 43.5 47.7239 43.5 48C43.5 48.2761 43.7239 48.5 44 48.5V47.5ZM52 48.5C52.2761 48.5 52.5 48.2761 52.5 48C52.5 47.7239 52.2761 47.5 52 47.5V48.5ZM60 47.5C59.7239 47.5 59.5 47.7239 59.5 48C59.5 48.2761 59.7239 48.5 60 48.5V47.5ZM68 48.5C68.2761 48.5 68.5 48.2761 68.5 48C68.5 47.7239 68.2761 47.5 68 47.5V48.5ZM76 47.5C75.7239 47.5 75.5 47.7239 75.5 48C75.5 48.2761 75.7239 48.5 76 48.5V47.5ZM84 48.5C84.2761 48.5 84.5 48.2761 84.5 48C84.5 47.7239 84.2761 47.5 84 47.5V48.5ZM92 47.5C91.7239 47.5 91.5 47.7239 91.5 48C91.5 48.2761 91.7239 48.5 92 48.5V47.5ZM100 48.5C100.276 48.5 100.5 48.2761 100.5 48C100.5 47.7239 100.276 47.5 100 47.5V48.5ZM108 47.5C107.724 47.5 107.5 47.7239 107.5 48C107.5 48.2761 107.724 48.5 108 48.5V47.5ZM116 48.5C116.276 48.5 116.5 48.2761 116.5 48C116.5 47.7239 116.276 47.5 116 47.5V48.5ZM124 47.5C123.724 47.5 123.5 47.7239 123.5 48C123.5 48.2761 123.724 48.5 124 48.5V47.5ZM132 48.5C132.276 48.5 132.5 48.2761 132.5 48C132.5 47.7239 132.276 47.5 132 47.5V48.5ZM140 47.5C139.724 47.5 139.5 47.7239 139.5 48C139.5 48.2761 139.724 48.5 140 48.5V47.5ZM148 48.5C148.276 48.5 148.5 48.2761 148.5 48C148.5 47.7239 148.276 47.5 148 47.5V48.5ZM156 47.5C155.724 47.5 155.5 47.7239 155.5 48C155.5 48.2761 155.724 48.5 156 48.5V47.5ZM164 48.5C164.276 48.5 164.5 48.2761 164.5 48C164.5 47.7239 164.276 47.5 164 47.5V48.5ZM172 47.5C171.724 47.5 171.5 47.7239 171.5 48C171.5 48.2761 171.724 48.5 172 48.5V47.5ZM180 48.5C180.276 48.5 180.5 48.2761 180.5 48C180.5 47.7239 180.276 47.5 180 47.5V48.5ZM188 47.5C187.724 47.5 187.5 47.7239 187.5 48C187.5 48.2761 187.724 48.5 188 48.5V47.5ZM196 48.5C196.276 48.5 196.5 48.2761 196.5 48C196.5 47.7239 196.276 47.5 196 47.5V48.5ZM204 47.5C203.724 47.5 203.5 47.7239 203.5 48C203.5 48.2761 203.724 48.5 204 48.5V47.5ZM0 48.5H4V47.5H0V48.5ZM12 48.5H20V47.5H12V48.5ZM28 48.5H36V47.5H28V48.5ZM44 48.5H52V47.5H44V48.5ZM60 48.5H68V47.5H60V48.5ZM76 48.5H84V47.5H76V48.5ZM92 48.5H100V47.5H92V48.5ZM108 48.5H116V47.5H108V48.5ZM124 48.5H132V47.5H124V48.5ZM140 48.5H148V47.5H140V48.5ZM156 48.5H164V47.5H156V48.5ZM172 48.5H180V47.5H172V48.5ZM188 48.5H196V47.5H188V48.5ZM204 48.5H208V47.5H204V48.5ZM208 49C208.552 49 209 48.5523 209 48C209 47.4477 208.552 47 208 47V49ZM0 47C-0.552285 47 -1 47.4477 -1 48C-1 48.5523 -0.552285 49 0 49V47ZM4 49C4.55228 49 5 48.5523 5 48C5 47.4477 4.55228 47 4 47V49ZM12 47C11.4477 47 11 47.4477 11 48C11 48.5523 11.4477 49 12 49V47ZM20 49C20.5523 49 21 48.5523 21 48C21 47.4477 20.5523 47 20 47V49ZM28 47C27.4477 47 27 47.4477 27 48C27 48.5523 27.4477 49 28 49V47ZM36 49C36.5523 49 37 48.5523 37 48C37 47.4477 36.5523 47 36 47V49ZM44 47C43.4477 47 43 47.4477 43 48C43 48.5523 43.4477 49 44 49V47ZM52 49C52.5523 49 53 48.5523 53 48C53 47.4477 52.5523 47 52 47V49ZM60 47C59.4477 47 59 47.4477 59 48C59 48.5523 59.4477 49 60 49V47ZM68 49C68.5523 49 69 48.5523 69 48C69 47.4477 68.5523 47 68 47V49ZM76 47C75.4477 47 75 47.4477 75 48C75 48.5523 75.4477 49 76 49V47ZM84 49C84.5523 49 85 48.5523 85 48C85 47.4477 84.5523 47 84 47V49ZM92 47C91.4477 47 91 47.4477 91 48C91 48.5523 91.4477 49 92 49V47ZM100 49C100.552 49 101 48.5523 101 48C101 47.4477 100.552 47 100 47V49ZM108 47C107.448 47 107 47.4477 107 48C107 48.5523 107.448 49 108 49V47ZM116 49C116.552 49 117 48.5523 117 48C117 47.4477 116.552 47 116 47V49ZM124 47C123.448 47 123 47.4477 123 48C123 48.5523 123.448 49 124 49V47ZM132 49C132.552 49 133 48.5523 133 48C133 47.4477 132.552 47 132 47V49ZM140 47C139.448 47 139 47.4477 139 48C139 48.5523 139.448 49 140 49V47ZM148 49C148.552 49 149 48.5523 149 48C149 47.4477 148.552 47 148 47V49ZM156 47C155.448 47 155 47.4477 155 48C155 48.5523 155.448 49 156 49V47ZM164 49C164.552 49 165 48.5523 165 48C165 47.4477 164.552 47 164 47V49ZM172 47C171.448 47 171 47.4477 171 48C171 48.5523 171.448 49 172 49V47ZM180 49C180.552 49 181 48.5523 181 48C181 47.4477 180.552 47 180 47V49ZM188 47C187.448 47 187 47.4477 187 48C187 48.5523 187.448 49 188 49V47ZM196 49C196.552 49 197 48.5523 197 48C197 47.4477 196.552 47 196 47V49ZM204 47C203.448 47 203 47.4477 203 48C203 48.5523 203.448 49 204 49V47ZM0 49H4V47H0V49ZM12 49H20V47H12V49ZM28 49H36V47H28V49ZM44 49H52V47H44V49ZM60 49H68V47H60V49ZM76 49H84V47H76V49ZM92 49H100V47H92V49ZM108 49H116V47H108V49ZM124 49H132V47H124V49ZM140 49H148V47H140V49ZM156 49H164V47H156V49ZM172 49H180V47H172V49ZM188 49H196V47H188V49ZM204 49H208V47H204V49Z",fill:"#F8F8F8",mask:"url(#path-5-inside-3_2098_5511)"}),i.jsx("mask",{id:"path-7-inside-4_2098_5511",fill:"white",children:i.jsx("path",{d:"M0 48H208V64H0V48Z"})}),i.jsx("path",{d:"M208 64.5C208.276 64.5 208.5 64.2761 208.5 64C208.5 63.7239 208.276 63.5 208 63.5V64.5ZM0 63.5C-0.276142 63.5 -0.5 63.7239 -0.5 64C-0.5 64.2761 -0.276142 64.5 0 64.5V63.5ZM4 64.5C4.27614 64.5 4.5 64.2761 4.5 64C4.5 63.7239 4.27614 63.5 4 63.5V64.5ZM12 63.5C11.7239 63.5 11.5 63.7239 11.5 64C11.5 64.2761 11.7239 64.5 12 64.5V63.5ZM20 64.5C20.2761 64.5 20.5 64.2761 20.5 64C20.5 63.7239 20.2761 63.5 20 63.5V64.5ZM28 63.5C27.7239 63.5 27.5 63.7239 27.5 64C27.5 64.2761 27.7239 64.5 28 64.5V63.5ZM36 64.5C36.2761 64.5 36.5 64.2761 36.5 64C36.5 63.7239 36.2761 63.5 36 63.5V64.5ZM44 63.5C43.7239 63.5 43.5 63.7239 43.5 64C43.5 64.2761 43.7239 64.5 44 64.5V63.5ZM52 64.5C52.2761 64.5 52.5 64.2761 52.5 64C52.5 63.7239 52.2761 63.5 52 63.5V64.5ZM60 63.5C59.7239 63.5 59.5 63.7239 59.5 64C59.5 64.2761 59.7239 64.5 60 64.5V63.5ZM68 64.5C68.2761 64.5 68.5 64.2761 68.5 64C68.5 63.7239 68.2761 63.5 68 63.5V64.5ZM76 63.5C75.7239 63.5 75.5 63.7239 75.5 64C75.5 64.2761 75.7239 64.5 76 64.5V63.5ZM84 64.5C84.2761 64.5 84.5 64.2761 84.5 64C84.5 63.7239 84.2761 63.5 84 63.5V64.5ZM92 63.5C91.7239 63.5 91.5 63.7239 91.5 64C91.5 64.2761 91.7239 64.5 92 64.5V63.5ZM100 64.5C100.276 64.5 100.5 64.2761 100.5 64C100.5 63.7239 100.276 63.5 100 63.5V64.5ZM108 63.5C107.724 63.5 107.5 63.7239 107.5 64C107.5 64.2761 107.724 64.5 108 64.5V63.5ZM116 64.5C116.276 64.5 116.5 64.2761 116.5 64C116.5 63.7239 116.276 63.5 116 63.5V64.5ZM124 63.5C123.724 63.5 123.5 63.7239 123.5 64C123.5 64.2761 123.724 64.5 124 64.5V63.5ZM132 64.5C132.276 64.5 132.5 64.2761 132.5 64C132.5 63.7239 132.276 63.5 132 63.5V64.5ZM140 63.5C139.724 63.5 139.5 63.7239 139.5 64C139.5 64.2761 139.724 64.5 140 64.5V63.5ZM148 64.5C148.276 64.5 148.5 64.2761 148.5 64C148.5 63.7239 148.276 63.5 148 63.5V64.5ZM156 63.5C155.724 63.5 155.5 63.7239 155.5 64C155.5 64.2761 155.724 64.5 156 64.5V63.5ZM164 64.5C164.276 64.5 164.5 64.2761 164.5 64C164.5 63.7239 164.276 63.5 164 63.5V64.5ZM172 63.5C171.724 63.5 171.5 63.7239 171.5 64C171.5 64.2761 171.724 64.5 172 64.5V63.5ZM180 64.5C180.276 64.5 180.5 64.2761 180.5 64C180.5 63.7239 180.276 63.5 180 63.5V64.5ZM188 63.5C187.724 63.5 187.5 63.7239 187.5 64C187.5 64.2761 187.724 64.5 188 64.5V63.5ZM196 64.5C196.276 64.5 196.5 64.2761 196.5 64C196.5 63.7239 196.276 63.5 196 63.5V64.5ZM204 63.5C203.724 63.5 203.5 63.7239 203.5 64C203.5 64.2761 203.724 64.5 204 64.5V63.5ZM0 64.5H4V63.5H0V64.5ZM12 64.5H20V63.5H12V64.5ZM28 64.5H36V63.5H28V64.5ZM44 64.5H52V63.5H44V64.5ZM60 64.5H68V63.5H60V64.5ZM76 64.5H84V63.5H76V64.5ZM92 64.5H100V63.5H92V64.5ZM108 64.5H116V63.5H108V64.5ZM124 64.5H132V63.5H124V64.5ZM140 64.5H148V63.5H140V64.5ZM156 64.5H164V63.5H156V64.5ZM172 64.5H180V63.5H172V64.5ZM188 64.5H196V63.5H188V64.5ZM204 64.5H208V63.5H204V64.5ZM208 65C208.552 65 209 64.5523 209 64C209 63.4477 208.552 63 208 63V65ZM0 63C-0.552285 63 -1 63.4477 -1 64C-1 64.5523 -0.552285 65 0 65V63ZM4 65C4.55228 65 5 64.5523 5 64C5 63.4477 4.55228 63 4 63V65ZM12 63C11.4477 63 11 63.4477 11 64C11 64.5523 11.4477 65 12 65V63ZM20 65C20.5523 65 21 64.5523 21 64C21 63.4477 20.5523 63 20 63V65ZM28 63C27.4477 63 27 63.4477 27 64C27 64.5523 27.4477 65 28 65V63ZM36 65C36.5523 65 37 64.5523 37 64C37 63.4477 36.5523 63 36 63V65ZM44 63C43.4477 63 43 63.4477 43 64C43 64.5523 43.4477 65 44 65V63ZM52 65C52.5523 65 53 64.5523 53 64C53 63.4477 52.5523 63 52 63V65ZM60 63C59.4477 63 59 63.4477 59 64C59 64.5523 59.4477 65 60 65V63ZM68 65C68.5523 65 69 64.5523 69 64C69 63.4477 68.5523 63 68 63V65ZM76 63C75.4477 63 75 63.4477 75 64C75 64.5523 75.4477 65 76 65V63ZM84 65C84.5523 65 85 64.5523 85 64C85 63.4477 84.5523 63 84 63V65ZM92 63C91.4477 63 91 63.4477 91 64C91 64.5523 91.4477 65 92 65V63ZM100 65C100.552 65 101 64.5523 101 64C101 63.4477 100.552 63 100 63V65ZM108 63C107.448 63 107 63.4477 107 64C107 64.5523 107.448 65 108 65V63ZM116 65C116.552 65 117 64.5523 117 64C117 63.4477 116.552 63 116 63V65ZM124 63C123.448 63 123 63.4477 123 64C123 64.5523 123.448 65 124 65V63ZM132 65C132.552 65 133 64.5523 133 64C133 63.4477 132.552 63 132 63V65ZM140 63C139.448 63 139 63.4477 139 64C139 64.5523 139.448 65 140 65V63ZM148 65C148.552 65 149 64.5523 149 64C149 63.4477 148.552 63 148 63V65ZM156 63C155.448 63 155 63.4477 155 64C155 64.5523 155.448 65 156 65V63ZM164 65C164.552 65 165 64.5523 165 64C165 63.4477 164.552 63 164 63V65ZM172 63C171.448 63 171 63.4477 171 64C171 64.5523 171.448 65 172 65V63ZM180 65C180.552 65 181 64.5523 181 64C181 63.4477 180.552 63 180 63V65ZM188 63C187.448 63 187 63.4477 187 64C187 64.5523 187.448 65 188 65V63ZM196 65C196.552 65 197 64.5523 197 64C197 63.4477 196.552 63 196 63V65ZM204 63C203.448 63 203 63.4477 203 64C203 64.5523 203.448 65 204 65V63ZM0 65H4V63H0V65ZM12 65H20V63H12V65ZM28 65H36V63H28V65ZM44 65H52V63H44V65ZM60 65H68V63H60V65ZM76 65H84V63H76V65ZM92 65H100V63H92V65ZM108 65H116V63H108V65ZM124 65H132V63H124V65ZM140 65H148V63H140V65ZM156 65H164V63H156V65ZM172 65H180V63H172V65ZM188 65H196V63H188V65ZM204 65H208V63H204V65Z",fill:"#F8F8F8",mask:"url(#path-7-inside-4_2098_5511)"}),i.jsx("path",{opacity:"0.25",d:"M188.216 21.8308L192.267 33.3363C192.984 35.3729 195.553 36.0079 197.136 34.5401L200.346 31.5644C200.704 31.2324 200.976 30.8179 201.137 30.357L202.893 25.3492L207.891 8.63898C207.962 8.40249 207.998 8.15696 207.998 7.91011V61C207.998 62.6569 206.655 64 204.998 64H2.99805C1.34119 64 -0.00195312 62.6569 -0.00195312 61V38.199C-0.00195312 37.5477 0.209976 36.9142 0.601822 36.394L4.07924 31.7775C5.46086 29.9434 8.30679 30.2781 9.22513 32.3828L13.7407 42.7321C14.1196 43.6005 14.8865 44.2389 15.8092 44.454L20.4905 45.5454C21.1539 45.7 21.8501 45.6244 22.4647 45.3308L27.6593 42.8495C28.3218 42.533 28.8452 41.9846 29.1305 41.3081L33.0958 31.9045C34.1272 29.4587 37.593 29.4587 38.6244 31.9045L39.704 34.4648C40.8065 37.0793 44.5863 36.8438 45.3559 34.1128L49.5889 19.0897C49.9533 17.7966 51.133 16.9033 52.4765 16.9033H56.4941C57.0707 16.9033 57.6351 16.7372 58.1197 16.4247L61.1576 14.466C62.8476 13.3764 65.11 14.2251 65.6662 16.1575L70.599 33.2936C71.1572 35.2328 73.4323 36.079 75.122 34.9758L75.9273 34.45C77.4802 33.4361 79.5719 34.0601 80.3156 35.7591L84.8676 46.1586C85.5306 47.6733 87.2942 48.366 88.8108 47.7074L91.9453 46.3462C92.765 45.9903 93.3833 45.2875 93.632 44.4292L99.0729 25.6458C99.6874 23.5244 102.321 22.7938 103.941 24.2955C105.587 25.8222 108.267 25.0377 108.831 22.864L112.541 8.54954C113.26 5.77543 117.087 5.49227 118.207 8.13037L120.305 13.0767C121.105 14.9603 123.513 15.5086 125.049 14.1567L125.58 13.6896C127.224 12.2425 129.814 12.9875 130.438 15.0869L134.329 28.1818C135.073 30.6853 138.439 31.1086 139.779 28.8673L142.671 24.0333C143.159 23.2175 144.004 22.6813 144.95 22.5878L149.822 22.1065C150.344 22.0549 150.843 21.8672 151.271 21.5621L154.984 18.9089C156.467 17.8494 158.544 18.346 159.388 19.9617L161.285 23.5972C162.565 26.0491 166.199 25.6102 166.858 22.9241L169.511 12.1165C170.239 9.14844 174.421 9.04274 175.298 11.9702L177.723 20.0592C178.406 22.3382 181.343 22.9532 182.883 21.1398L183.099 20.8852C184.598 19.1202 187.447 19.6467 188.216 21.8308Z",fill:"url(#paint0_linear_2098_5511)"}),i.jsx("path",{d:"M207.998 8.42336L201.106 31.2146C200.924 31.8169 200.557 32.3467 200.057 32.729L196.94 35.1136C195.319 36.3534 192.96 35.6482 192.286 33.7223L188.181 22.0024C187.422 19.8338 184.606 19.289 183.092 21.0179L182.846 21.2991C181.3 23.0654 178.416 22.4516 177.723 20.2087L175.29 12.336C174.395 9.4396 170.259 9.54691 169.515 12.4858L166.857 22.9946C166.185 25.6477 162.603 26.0903 161.306 23.6803L159.382 20.1042C158.534 18.5278 156.503 18.0404 155.031 19.0601L151.262 21.6725C150.84 21.9649 150.35 22.1442 149.839 22.1931L144.931 22.6636C143.996 22.7532 143.157 23.2757 142.664 24.0754L139.754 28.7942C138.4 30.9907 135.088 30.5657 134.332 28.0982L130.441 15.3948C129.808 13.3298 127.267 12.5895 125.624 13.9921L125.005 14.5209C123.474 15.8283 121.115 15.2863 120.308 13.4417L118.191 8.60225C117.054 6.00226 113.277 6.28847 112.544 9.03014L108.848 22.8647C108.27 25.0292 105.606 25.8158 103.94 24.3175V24.3175C102.303 22.8447 99.6856 23.5762 99.0555 25.6864L93.6445 43.8072C93.388 44.6663 92.7608 45.3656 91.9346 45.7136L88.763 47.0496C87.2632 47.6814 85.5332 47.0022 84.8638 45.5188L80.3156 35.4387C79.5653 33.7759 77.517 33.1621 75.9758 34.1381L75.0745 34.709C73.393 35.774 71.1595 34.9362 70.5933 33.028L65.672 16.4433C65.1078 14.5419 62.8867 13.7015 61.2051 14.7533L58.1073 16.6909C57.6303 16.9892 57.079 17.1474 56.5164 17.1474H52.4575C51.123 17.1474 49.9489 18.029 49.5766 19.3106L45.3511 33.8582C44.5676 36.5556 40.8386 36.7934 39.7188 34.2174L38.6114 31.6698C37.5658 29.2644 34.1544 29.2644 33.1088 31.6698L29.1425 40.7941C28.8495 41.4681 28.3193 42.0111 27.6525 42.3201L22.4421 44.7345C21.8411 45.0129 21.165 45.0847 20.519 44.9386L15.803 43.872C14.8836 43.6641 14.1154 43.0362 13.7288 42.1765L9.21662 32.1447C8.28874 30.0817 5.49845 29.7487 4.11113 31.5353L-0.00196201 36.8322",stroke:"#FF3F19"})]}),i.jsxs("defs",{children:[i.jsxs("linearGradient",{id:"paint0_linear_2098_5511",x1:"103.998",y1:"0",x2:"103.998",y2:"64",gradientUnits:"userSpaceOnUse",children:[i.jsx("stop",{stopColor:"#FF3F19"}),i.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),i.jsx("clipPath",{id:"clip0_2098_5511",children:i.jsx("rect",{width:"208",height:"64",fill:"white"})})]})]})}),m0=({adaptiveStyles:e})=>{const[t,n]=L.useState(null),[r,u]=L.useState(!1),[a,s]=L.useState(!1),[o,c]=L.useState(!1);if(L.useEffect(()=>{u(!0),s(!0),(async()=>{const p=await U2();n(p)})(),u(!1),s(!1)},[]),!t)return i.jsx(N.Loader,{});const{isAvailable:l,isActivated:h,info:f}=t.data;return l?i.jsxs("div",{children:[i.jsxs("div",{className:g.clx(Ce.referral,{[Ce.mobile]:e!=="desktop"}),children:[i.jsx("div",{className:g.clx(Ce.referralBlock,{[Ce.mobile]:e!=="desktop"}),children:r?i.jsx(_0,{adaptiveStyles:e}):i.jsxs("div",{className:Ce.referralContainer,children:[i.jsx("div",{id:"h2",className:Ce.title,children:"Refer friends"}),i.jsx("div",{className:Ce.description,id:"lg",children:"Refer friends. Earn rewards. Make bank."}),h?i.jsx(i.Fragment,{children:i.jsx(b0,{referral:t})}):i.jsx(i.Fragment,{children:i.jsx(g0,{setIsOpen:c})})]})}),a?i.jsx("div",{className:Ce.referralStats}):i.jsxs("div",{className:g.clx(Ce.referralStats,{[Ce.mobile]:e!=="desktop"}),children:[i.jsxs("div",{className:Ce.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ce.referralStatsItemLabel,children:"Referrals"}),i.jsx("div",{id:"h2",className:Ce.referralStatsItemValue,children:f!=null&&f.totalReferrals?`${f.totalReferrals} person`:"-"}),i.jsx(Du,{})]}),i.jsxs("div",{className:Ce.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ce.referralStatsItemLabel,children:"Earned"}),i.jsx("div",{id:"h2",className:Ce.referralStatsItemValue,children:"-"}),i.jsx(Du,{})]}),i.jsxs("div",{className:Ce.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ce.referralStatsItemLabel,children:"Total Revenue"}),i.jsx("div",{id:"h2",className:Ce.referralStatsItemValue,children:g.formatPrice({amount:(f==null?void 0:f.totalRevenueUsd)||0})}),i.jsx(Du,{})]}),i.jsxs("div",{className:Ce.referralStatsItem,children:[i.jsx("div",{id:"lg",className:Ce.referralStatsItemLabel,children:"Earn Procent"}),i.jsx("div",{id:"h2",className:Ce.referralStatsItemValue,children:`${t.data.earnPercent}%`||"-"}),i.jsx(Du,{})]})]})]}),o&&i.jsx(N.Modal,{close:()=>c(!1),children:i.jsx(Y5,{setIsOpen:c,setIsLoading:u})})]}):null},g0=({setIsOpen:e})=>{const{setIsOpen:t}=g.useModalStore();return i.jsxs("div",{className:Ce.steps,onClick:n=>n.stopPropagation(),children:[i.jsx(N.Button,{type:"Primary",className:Ce.joinButton,onClick:()=>{e(!0),t(!0)},children:"Join the referral Program"}),i.jsx("div",{children:g.referralSteps.map(({caption:n,description:r},u,a)=>i.jsx(W5,{caption:n,description:r,index:u+1,bar:u+1!==a.length},n))})]})},b0=({referral:e})=>{var a,s;const{shopDomain:t}=g.useStorefrontStore(),n=`https://${t}/?r=${(a=e.data.info)==null?void 0:a.referralCode}`,{notifications:r,setNotifications:u}=g.useNotificationStore();return i.jsxs("div",{className:Ce.referralInfo,children:[i.jsx(N.Input,{onChange:()=>{},label:"Affiliate Code",value:((s=e.data.info)==null?void 0:s.referralCode)||"",disabled:!0}),i.jsx("div",{className:Ce.linkContainer,children:i.jsx(N.Input,{onChange:()=>{},label:"Affiliate Link",value:n,disabled:!0,rightIcon:i.jsx(N.Icon,{name:"Copy",fill:"var(--text-action)",onClick:()=>{navigator.clipboard.writeText(n),u([...r,{message:"Link copied to clipboard",status:"success",id:g.v4()}])},hoverable:!0})})})]})},_0=({adaptiveStyles:e})=>i.jsxs(ir,{speed:2,width:500,height:"100%",viewBox:"0 0 500 305",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",className:g.clx(Ce.skeleton,{[Ce.mobile]:e!=="desktop"}),style:{borderRadius:"var(--border-radius)"},children:[i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"264",height:"40"}),i.jsx("rect",{x:"0",y:"45",rx:"10",ry:"10",width:"160",height:"24"}),i.jsx("rect",{x:"0",y:"100",rx:"10",ry:"10",width:"100",height:"40"}),i.jsx("rect",{x:"0",y:"150",rx:"10",ry:"10",width:"476",height:"40"}),i.jsx("rect",{x:"0",y:"220",rx:"10",ry:"10",width:"428",height:"50"})]}),G5="_title_u8oqs_1",X5="_heading_u8oqs_10",K5="_description_u8oqs_15",Qa={title:G5,heading:X5,description:K5},ga=({title:e,description:t})=>i.jsxs("div",{className:Qa.title,children:[i.jsx("div",{id:"h3",className:Qa.heading,children:e}),t&&i.jsx("div",{className:Qa.description,id:"lg",children:t})]}),Q5="_noItemsBlock_yefnm_4",J5="_noItemsBlockIcon_yefnm_13",e8="_noItemsBlockTitle_yefnm_21",t8="_noItemsBlockDescription_yefnm_31",n8="_centered_yefnm_37",Br={noItemsBlock:Q5,noItemsBlockIcon:J5,noItemsBlockTitle:e8,noItemsBlockDescription:t8,centered:n8},ba=({title:e,description:t,className:n,centered:r=!1})=>i.jsxs("div",{className:g.clx(Br.noItemsBlock,n,{[Br.centered]:r}),children:[i.jsx("div",{className:Br.noItemsBlockIcon,children:i.jsx(N.Icon,{name:"Info",fill:"var(--text-secondary)"})}),i.jsx("div",{className:Br.noItemsBlockTitle,id:"h4",children:e}),i.jsx("div",{className:Br.noItemsBlockDescription,id:"md",children:t})]}),r8="_ordersTable_1btyq_2",u8="_gatewayItem_1btyq_10",a8="_gatewayIcon_1btyq_15",s8="_orderTime_1btyq_20",i8="_reviewContainer_1btyq_25",o8="_reviewRating_1btyq_35",c8="_tableLoader_1btyq_39",l8="_tableItem_1btyq_48",Vt={ordersTable:r8,gatewayItem:u8,gatewayIcon:a8,orderTime:s8,reviewContainer:i8,reviewRating:o8,tableLoader:c8,tableItem:l8};var In=(e=>(e[e.SUCCESS=1]="SUCCESS",e[e.WARNING=2]="WARNING",e[e.ERROR=3]="ERROR",e))(In||{});const d8={[be.New]:2,[be.Pending]:2,[be.Processing]:2,[be.Completed]:1,[be.Cancelled]:3,[be.Expired]:3,[be.FullDeliveryFailure]:3,[be.PartiallyDelivered]:2,[be.Refunded]:2,[be.Failed]:3,[be.PartiallyRefunded]:2},f8=(e,t)=>{const n=t.find(r=>r.name===e);return n?i.jsxs("div",{className:Vt.gatewayItem,children:[(n==null?void 0:n.name)==="ForebitPayments"?i.jsx(Gl,{}):n.name==="Balance"?i.jsx(N.Icon,{name:"Wallet",fill:"var(--text-primary)",width:20,height:20,style:{marginRight:"0.25rem"}}):i.jsx("img",{alt:n.displayName,src:g.convertCfImageIdToUrl(n.logoCfImageId,"100"),className:Vt.gatewayIcon}),i.jsx("div",{id:"md",children:n.displayName})]}):null},h8=({item:e,gatewaysDetail:t})=>{const[n,r]=g.extractDateAndTime(e.time),{isAntistock:u}=g.useGeneralStore();return i.jsxs(L.Fragment,{children:[i.jsx(ot,{copyText:e.id,children:i.jsx(g.NavLink,{to:`/orders/${e.id}/${e.accessToken}`,id:"md",children:e.id})}),i.jsx(ot,{children:i.jsx(g.NavLink,{to:`/orders/${e.id}/${e.accessToken}`,children:i.jsx(y0,{status:e.status,variant:d8[e.status]})})}),i.jsx(ot,{children:g.formatPrice(e.price)}),i.jsx(ot,{children:f8(e.gatewayName,t)}),i.jsx(ot,{children:i.jsxs("div",{children:[i.jsx("div",{id:"md",children:n}),i.jsx("div",{className:Vt.orderTime,id:"md",children:r})]})}),!u&&i.jsx(ot,{children:e.review?i.jsxs("div",{className:Vt.reviewContainer,children:[i.jsx(N.Icon,{name:"Star",fill:"var(--text-secondary)"}),i.jsx("div",{className:Vt.reviewRating,id:"md",children:e.review.rating})]}):i.jsx("span",{id:"md",children:"None"})})]},e.id)},x0=({orders:e,gatewaysDetail:t,totalCount:n,isLoading:r})=>{const{page:u,setPage:a}=g.usePaginationPagesStore(),{isAntistock:s}=g.useGeneralStore(),c=!(!(e!=null&&e.length)||!t)&&e.length>0;return i.jsxs("div",{className:Vt.ordersTable,children:[i.jsxs(_a,{children:[i.jsx(Pt,{className:Vt.tableItem,children:"Invoice ID"}),i.jsx(Pt,{className:Vt.tableItem,children:"Status"}),i.jsx(Pt,{className:Vt.tableItem,children:"Value"}),i.jsx(Pt,{className:Vt.tableItem,children:"Payment"}),i.jsx(Pt,{className:Vt.tableItem,children:"Date"}),!s&&i.jsx(Pt,{className:Vt.tableItem,children:"Review"}),c&&!r&&e.map(l=>i.jsx(h8,{item:l,gatewaysDetail:t},l.id))]}),(!c||r)&&i.jsx("div",{className:Vt.tableLoader,children:i.jsx(N.Loader,{})}),c&&!r&&i.jsx(bu,{currentPage:u,totalCount:n,onPageChange:a})]})},p8="_ticketsTable_1m2oy_4",m8="_antistockTable_1m2oy_4",g8="_table_1m2oy_4",b8="_tableItem_1m2oy_22",_8="_text_1m2oy_47",x8="_tableItemTitle_1m2oy_54",C8="_copyIcon_1m2oy_85",ur={ticketsTable:p8,antistockTable:m8,table:g8,tableItem:b8,text:_8,tableItemTitle:x8,copyIcon:C8},ot=({children:e,className:t,onClick:n,copyText:r,id:u})=>{const a=Zn();return i.jsxs("div",{className:g.clx(ur.tableItem,t),onClick:n,style:{cursor:n?"pointer":"default"},children:[i.jsx("span",{className:ur.text,id:u||"md",children:e})," ",r&&i.jsx("div",{className:ur.copyIcon,children:i.jsx(N.Icon,{name:"Copy",onClick:()=>a(r),width:20,height:20})})]})},Pt=({children:e,className:t})=>i.jsx(ot,{className:g.clx(ur.tableItemTitle,t),id:"lg",children:e}),_a=({children:e,className:t})=>{const{isAntistock:n}=g.useGeneralStore(),r=t==null?void 0:t.includes("ticketsTable");return i.jsx("div",{className:g.clx(t,r?ur.ticketsTable:n?ur.antistockTable:ur.table),children:e})},E8="_paginationContainer_pt4l5_4",y8="_paginationWithRange_pt4l5_16",T8="_paginationWithRangeText_pt4l5_33",k8="_paginationWithRangePagination_pt4l5_45",$u={paginationContainer:E8,paginationWithRange:y8,paginationWithRangeText:T8,paginationWithRangePagination:k8},Lu=(e,t)=>Array.from({length:t-e+1},(n,r)=>e+r),A8=(e,t,n)=>{const r=n*2+3+2;if(t<=r)return Lu(1,t);const u=Math.max(e-n,1),a=Math.min(e+n,t),s=u>2,o=a<t-2;return!s&&o?[...Lu(1,3+2*n),"right-ellipsis",t]:s&&!o?[1,"left-ellipsis",...Lu(t-(3+2*n)+1,t)]:[1,"left-ellipsis",...Lu(u,a),"right-ellipsis",t]},C0=({currentPage:e,totalPages:t,onPageChange:n,siblingCount:r=1})=>{const u=c=>{const l=r*2+1;n(c?Math.max(e-l,1):Math.min(e+l,t))},a=e===1,s=e===t,o=c=>i.jsx(N.Button,{type:typeof c=="number"&&c===e?"Primary":"Secondary",onClick:()=>typeof c=="string"?u(c==="left-ellipsis"):n(c),"aria-current":typeof c=="number"&&c===e?"page":void 0,children:typeof c=="string"?"…":c},c);return i.jsxs("div",{className:$u.paginationContainer,children:[i.jsx(N.Button,{type:"Secondary",onClick:()=>!a&&n(e-1),disabled:a,children:i.jsx(N.Icon,{name:"ArrowLeft"})}),A8(e,t,r).map(o),i.jsx(N.Button,{type:"Secondary",onClick:()=>!s&&n(e+1),disabled:s,children:i.jsx(N.Icon,{name:"ArrowRight"})})]})},E0=(e,t,n)=>{const r=(e-1)*n+1,u=Math.min(e*n,t);return`Showing ${r}-${u} entries of ${t}`},bu=({className:e,totalCount:t,...n})=>{const r=Math.ceil(t/Es);return r<2?null:i.jsxs("div",{className:`${$u.paginationWithRange} ${e}`,children:[i.jsx("div",{className:$u.paginationWithRangeText,id:"md",children:E0(n.currentPage,t,Es)}),i.jsx("div",{className:$u.paginationWithRangePagination,children:i.jsx(C0,{...n,totalPages:r})})]})},S8="_statusIndicator_1gt2z_4",I8="_antistockStatus_1gt2z_11",N8="_statusIndicatorSuccess_1gt2z_16",v8="_statusIndicatorWarning_1gt2z_20",w8="_statusIndicatorError_1gt2z_24",D8="_statusIndicatorText_1gt2z_28",Cr={statusIndicator:S8,antistockStatus:I8,statusIndicatorSuccess:N8,statusIndicatorWarning:v8,statusIndicatorError:w8,statusIndicatorText:D8},L8=()=>i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M11.2105 5.91453C11.2628 5.96677 11.3043 6.02881 11.3326 6.0971C11.3609 6.16538 11.3754 6.23858 11.3754 6.3125C11.3754 6.38642 11.3609 6.45962 11.3326 6.5279C11.3043 6.59619 11.2628 6.65823 11.2105 6.71047L7.27297 10.648C7.22073 10.7003 7.15869 10.7418 7.09041 10.7701C7.02212 10.7984 6.94892 10.8129 6.875 10.8129C6.80108 10.8129 6.72789 10.7984 6.6596 10.7701C6.59131 10.7418 6.52928 10.7003 6.47703 10.648L4.78953 8.96047C4.68399 8.85492 4.62469 8.71177 4.62469 8.5625C4.62469 8.41323 4.68399 8.27008 4.78953 8.16453C4.89508 8.05898 5.03824 7.99969 5.1875 7.99969C5.33677 7.99969 5.47992 8.05898 5.58547 8.16453L6.875 9.45477L10.4145 5.91453C10.4668 5.86223 10.5288 5.82074 10.5971 5.79244C10.6654 5.76413 10.7386 5.74956 10.8125 5.74956C10.8864 5.74956 10.9596 5.76413 11.0279 5.79244C11.0962 5.82074 11.1582 5.86223 11.2105 5.91453ZM15.3125 8C15.3125 9.44628 14.8836 10.8601 14.0801 12.0626C13.2766 13.2651 12.1346 14.2024 10.7984 14.7559C9.46219 15.3093 7.99189 15.4541 6.57341 15.172C5.15492 14.8898 3.85196 14.1934 2.82928 13.1707C1.80661 12.148 1.11017 10.8451 0.828011 9.4266C0.545857 8.00811 0.690668 6.53781 1.24413 5.20163C1.7976 3.86544 2.73486 2.72339 3.9374 1.91988C5.13993 1.11637 6.55373 0.6875 8 0.6875C9.93877 0.689547 11.7975 1.46063 13.1685 2.83154C14.5394 4.20246 15.3105 6.06123 15.3125 8ZM14.1875 8C14.1875 6.77623 13.8246 5.57994 13.1447 4.56241C12.4648 3.54488 11.4985 2.75181 10.3679 2.2835C9.23724 1.81518 7.99314 1.69264 6.79288 1.93139C5.59262 2.17014 4.49012 2.75944 3.62478 3.62478C2.75944 4.49011 2.17014 5.59262 1.93139 6.79288C1.69265 7.99314 1.81518 9.23724 2.2835 10.3679C2.75182 11.4985 3.54488 12.4648 4.56241 13.1447C5.57994 13.8246 6.77623 14.1875 8 14.1875C9.64046 14.1856 11.2132 13.5331 12.3732 12.3732C13.5331 11.2132 14.1856 9.64046 14.1875 8Z",fill:"#338B13"})}),P8=()=>i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M8 0.6875C6.55373 0.6875 5.13993 1.11637 3.9374 1.91988C2.73486 2.72339 1.7976 3.86544 1.24413 5.20163C0.690668 6.53781 0.545857 8.00811 0.828011 9.4266C1.11017 10.8451 1.80661 12.148 2.82928 13.1707C3.85196 14.1934 5.15492 14.8898 6.57341 15.172C7.99189 15.4541 9.46219 15.3093 10.7984 14.7559C12.1346 14.2024 13.2766 13.2651 14.0801 12.0626C14.8836 10.8601 15.3125 9.44628 15.3125 8C15.3105 6.06123 14.5394 4.20246 13.1685 2.83154C11.7975 1.46063 9.93877 0.689547 8 0.6875ZM8 14.1875C6.77623 14.1875 5.57994 13.8246 4.56241 13.1447C3.54488 12.4648 2.75182 11.4985 2.2835 10.3679C1.81518 9.23724 1.69265 7.99314 1.93139 6.79288C2.17014 5.59262 2.75944 4.49011 3.62478 3.62478C4.49012 2.75944 5.59262 2.17014 6.79288 1.93139C7.99314 1.69264 9.23724 1.81518 10.3679 2.2835C11.4985 2.75181 12.4648 3.54488 13.1447 4.56241C13.8246 5.57994 14.1875 6.77623 14.1875 8C14.1856 9.64046 13.5331 11.2132 12.3732 12.3732C11.2132 13.5331 9.64046 14.1856 8 14.1875ZM12.5 8C12.5 8.14918 12.4407 8.29226 12.3353 8.39775C12.2298 8.50324 12.0867 8.5625 11.9375 8.5625H8C7.85082 8.5625 7.70775 8.50324 7.60226 8.39775C7.49677 8.29226 7.4375 8.14918 7.4375 8V4.0625C7.4375 3.91332 7.49677 3.77024 7.60226 3.66475C7.70775 3.55926 7.85082 3.5 8 3.5C8.14919 3.5 8.29226 3.55926 8.39775 3.66475C8.50324 3.77024 8.5625 3.91332 8.5625 4.0625V7.4375H11.9375C12.0867 7.4375 12.2298 7.49676 12.3353 7.60225C12.4407 7.70774 12.5 7.85082 12.5 8Z",fill:"#C1972A"})}),R8=()=>i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[i.jsx("path",{d:"M9 17.0625C4.5525 17.0625 0.9375 13.4475 0.9375 9C0.9375 4.5525 4.5525 0.9375 9 0.9375C13.4475 0.9375 17.0625 4.5525 17.0625 9C17.0625 13.4475 13.4475 17.0625 9 17.0625ZM9 2.0625C5.175 2.0625 2.0625 5.175 2.0625 9C2.0625 12.825 5.175 15.9375 9 15.9375C12.825 15.9375 15.9375 12.825 15.9375 9C15.9375 5.175 12.825 2.0625 9 2.0625Z",fill:"#C12A2A"}),i.jsx("path",{d:"M6.87752 11.685C6.73502 11.685 6.59252 11.6325 6.48002 11.52C6.26252 11.3025 6.26252 10.9425 6.48002 10.725L10.725 6.48C10.9425 6.2625 11.3025 6.2625 11.52 6.48C11.7375 6.6975 11.7375 7.0575 11.52 7.275L7.27502 11.52C7.17002 11.6325 7.02002 11.685 6.87752 11.685Z",fill:"#C12A2A"}),i.jsx("path",{d:"M11.1225 11.685C10.98 11.685 10.8375 11.6325 10.725 11.52L6.48002 7.275C6.26252 7.0575 6.26252 6.6975 6.48002 6.48C6.69752 6.2625 7.05752 6.2625 7.27502 6.48L11.52 10.725C11.7375 10.9425 11.7375 11.3025 11.52 11.52C11.4075 11.6325 11.265 11.685 11.1225 11.685Z",fill:"#C12A2A"})]}),M8={[In.SUCCESS]:L8,[In.WARNING]:P8,[In.ERROR]:R8},O8={[In.SUCCESS]:Cr.statusIndicatorSuccess,[In.WARNING]:Cr.statusIndicatorWarning,[In.ERROR]:Cr.statusIndicatorError},j8=e=>{switch(e){case"NEW":return"New";case"COMPLETED":return"Completed";case"CANCELLED":return"Cancelled";case"EXPIRED":return"Expired";case"FAILED":return"Failed";case"FULL_DELIVERY_FAILURE":return"Delivery Failed";case"PARTIALLY_DELIVERED":return"Partial Delivery Failed";case"REFUNDED":return"Refunded";case"PENDING":return"Pending";case"PROCESSING":return"Processing";case"APPROVED":return"Approved";case"DECLINED":return"Declined";case"AUTO_APPROVED":return"Auto Approved";case"PARTIALLY_REFUNDED":return"Partial Refunded"}return e},y0=({status:e,variant:t=In.WARNING})=>{const{isAntistock:n}=g.useGeneralStore(),r=M8[t];return i.jsxs("div",{className:g.clx(Cr.statusIndicator,O8[t],{[Cr.antistockStatus]:n}),children:[i.jsx(r,{}),i.jsx("span",{className:Cr.statusIndicatorText,id:"md",children:j8(e)})]})},F8="_checkoutItemsContainer_1kn61_2",B8="_innerContainer_1kn61_16",H8="_headerSection_1kn61_22",U8="_header_1kn61_22",V8="_productsContainer_1kn61_47",$8="_couponContainer_1kn61_54",z8="_checkoutFooter_1kn61_58",Xn={checkoutItemsContainer:F8,innerContainer:B8,headerSection:H8,header:U8,productsContainer:V8,couponContainer:$8,checkoutFooter:z8},q8="_checkoutFooter_sum4s_1",Z8="_antistock_sum4s_12",W8="_footerBranding_sum4s_22",Y8="_poweredText_sum4s_27",G8="_antistockLink_sum4s_31",X8="_footerNav_sum4s_39",vn={checkoutFooter:q8,antistock:Z8,footerBranding:W8,poweredText:Y8,antistockLink:G8,footerNav:X8},K8="data:image/svg+xml,%3csvg%20width='100'%20height='26'%20viewBox='0%200%20100%2026'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.3996%203.39999V12.8228L16.2964%2014.1313V8.89738L7.69363%2011.587V6.87107L20.3996%203.39999Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M16.2964%2014.1313L16.2962%2018.6292L3.59961%2022.6V12.7592L7.69363%2011.587L7.69344%2016.9118L16.2964%2014.1313Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M95.6308%2022C93.4931%2022%2091.8804%2020.882%2091.4678%2019.1776L93.118%2019.0676C93.4181%2019.984%2094.0931%2020.5338%2095.6308%2020.5338C97.4311%2020.5338%2098.4249%2019.8373%2098.4249%2018.4078V16.8316C97.9374%2017.858%2096.8122%2018.5178%2095.5183%2018.5178C92.9868%2018.5178%2091.1865%2016.575%2091.1865%2013.8076C91.1865%2011.0401%2092.9492%209.09737%2095.4433%209.09737C96.831%209.09737%2098.0499%209.77549%2098.5%2010.8568V9.3173H100V18.3711C100%2020.6438%2098.3687%2022%2095.6308%2022ZM95.5933%2017.0515C97.2998%2017.0515%2098.4062%2015.8053%2098.4249%2013.8076C98.4624%2011.8099%2097.3186%2010.5636%2095.5933%2010.5636C93.8494%2010.5636%2092.8367%2011.8099%2092.8367%2013.8076C92.8367%2015.8053%2093.8869%2017.0515%2095.5933%2017.0515Z'%20fill='%23252525'/%3e%3cpath%20d='M81.1836%2019.0309V9.3173H82.6275L82.665%2011.0584C83.1901%209.72051%2084.3527%209.09737%2085.7217%209.09737C87.9907%209.09737%2089.0783%2010.7285%2089.0783%2012.7812V19.0309H87.5031V13.2211C87.5031%2011.425%2086.8843%2010.4536%2085.3841%2010.4536C83.8464%2010.4536%2082.7588%2011.425%2082.7588%2013.2211V19.0309H81.1836Z'%20fill='%23252525'/%3e%3cpath%20d='M73.3176%2019.2509C71.2549%2019.2509%2069.9609%2018.2795%2069.9609%2016.6117C69.9609%2014.9622%2070.9173%2014.0458%2073.0926%2013.6426L76.618%2013.0011C76.618%2011.37%2075.8304%2010.5636%2074.2552%2010.5636C72.8676%2010.5636%2072.0987%2011.1867%2071.7987%2012.3047L70.1297%2012.1764C70.5048%2010.3436%2072.0049%209.09737%2074.2552%209.09737C76.8056%209.09737%2078.1932%2010.6002%2078.1932%2013.0561V17.0699C78.1932%2017.5097%2078.3433%2017.6747%2078.7183%2017.6747H79.1121V19.0309C78.9996%2019.0493%2078.7558%2019.0676%2078.512%2019.0676C77.3119%2019.0676%2076.7681%2018.6094%2076.6368%2017.5281C76.1492%2018.5361%2074.7803%2019.2509%2073.3176%2019.2509ZM73.4676%2017.8946C75.4554%2017.8946%2076.618%2016.6483%2076.618%2015.0355V14.3391L73.3926%2014.9255C72.0425%2015.1638%2071.6111%2015.6586%2071.6111%2016.4651C71.6111%2017.3814%2072.305%2017.8946%2073.4676%2017.8946Z'%20fill='%23252525'/%3e%3cpath%20d='M63.2168%2022C61.079%2022%2059.4663%2020.882%2059.0537%2019.1776L60.704%2019.0676C61.004%2019.984%2061.6791%2020.5338%2063.2168%2020.5338C65.017%2020.5338%2066.0109%2019.8373%2066.0109%2018.4078V16.8316C65.5233%2017.858%2064.3982%2018.5178%2063.1043%2018.5178C60.5727%2018.5178%2058.7725%2016.575%2058.7725%2013.8076C58.7725%2011.0401%2060.5352%209.09737%2063.0293%209.09737C64.4169%209.09737%2065.6358%209.77549%2066.0859%2010.8568V9.3173H67.5861V18.3711C67.5861%2020.6438%2065.9546%2022%2063.2168%2022ZM63.1793%2017.0515C64.8857%2017.0515%2065.9921%2015.8053%2066.0109%2013.8076C66.0484%2011.8099%2064.9045%2010.5636%2063.1793%2010.5636C61.4353%2010.5636%2060.4227%2011.8099%2060.4227%2013.8076C60.4227%2015.8053%2061.4728%2017.0515%2063.1793%2017.0515Z'%20fill='%23252525'/%3e%3cpath%20d='M56.2141%2019.0309C55.0515%2019.0309%2054.2451%2018.4811%2054.2451%2017.1982L54.2639%206.01834H55.8391V17.0699C55.8391%2017.4731%2056.0453%2017.6747%2056.4579%2017.6747H57.3205V19.0309H56.2141Z'%20fill='%23252525'/%3e%3cpath%20d='M51.0686%2019.0309C49.906%2019.0309%2049.0996%2018.4811%2049.0996%2017.1982L49.1184%206.01834H50.6936V17.0699C50.6936%2017.4731%2050.8998%2017.6747%2051.3124%2017.6747H52.175V19.0309H51.0686Z'%20fill='%23252525'/%3e%3cpath%20d='M44.5209%2019.0309V9.3173H46.0961V19.0309H44.5209ZM44.4834%207.79611V6H46.1336V7.79611H44.4834Z'%20fill='%23252525'/%3e%3cpath%20d='M32%2019.0309V6.01834H36.5756C39.726%206.01834%2041.3012%207.09967%2041.3012%209.51891C41.3012%2010.9851%2040.4198%2012.0481%2038.9384%2012.3047C40.7574%2012.5613%2041.8638%2013.7709%2041.8638%2015.4571C41.8638%2017.8213%2040.2323%2019.0309%2037.3257%2019.0309H32ZM37.3257%2017.4914C39.1447%2017.4914%2040.176%2016.74%2040.176%2015.3654C40.176%2013.9908%2039.1447%2013.1844%2037.3257%2013.1844H33.6127V17.4914H37.3257ZM36.5756%2011.6449C38.5258%2011.6449%2039.6135%2010.8935%2039.6135%209.59222C39.6135%208.21765%2038.6008%207.55786%2036.5756%207.55786H33.6127V11.6449H36.5756Z'%20fill='%23252525'/%3e%3c/svg%3e",qn=({className:e})=>{const{shopTerms:t,shopPrivacyPolicy:n,shopRefundPolicy:r,shopLogo:u}=g.useStorefrontStore(),{isAntistock:a}=g.useGeneralStore(),{settings:s}=g.useSettingsStore();return i.jsxs("footer",{className:`${vn.checkoutFooter} ${e} ${a?vn.antistock:""}`,children:[a&&(s==null?void 0:s.showPoweredBy)&&i.jsxs("div",{className:vn.footerBranding,children:[i.jsx("p",{className:vn.poweredText,id:"md",style:{color:"var(--text-action)"},children:"Powered by"}),i.jsxs("a",{className:vn.antistockLink,href:"https://antistock.io",target:"_blank",rel:"noopener noreferrer",children:[i.jsx(r0,{width:14,height:18}),"Antistock"]})]}),!a&&i.jsxs("div",{className:vn.footerBranding,children:[i.jsx("p",{className:vn.poweredText,id:"md",children:"Powered by"}),u||i.jsx("img",{src:K8,alt:"Billgang"})]}),i.jsx("nav",{children:i.jsxs("ul",{className:vn.footerNav,children:[(t==null?void 0:t.showTermsOfServiceOnProduct)&&!a&&i.jsx("li",{children:i.jsx("a",{href:"/terms",children:"Terms"})}),(n==null?void 0:n.showPrivacyPolicyOnProduct)&&i.jsx("li",{children:i.jsx("a",{href:n.privacyPolicy,target:"_blank",rel:"noopener noreferrer",children:"Privacy"})}),(r==null?void 0:r.showRefundPolicyOnProduct)&&i.jsx("li",{children:i.jsx("a",{href:r.refundPolicy,target:"_blank",rel:"noopener noreferrer",children:"Refund"})})]})})]})},Q8="_checkoutHeader_1stm3_1",J8="_leftContainer_1stm3_20",e7="_backArrow_1stm3_26",t7="_logoContainer_1stm3_38",n7="_logo_1stm3_38",r7="_antistockLink_1stm3_48",hr={checkoutHeader:Q8,leftContainer:J8,backArrow:e7,logoContainer:t7,logo:n7,antistockLink:r7},u7="_activeBadge_1yb5i_1",a7="_activeBadgeText_1yb5i_12",Ro={activeBadge:u7,activeBadgeText:a7},s7=({className:e})=>i.jsxs("div",{className:g.clx(Ro.activeBadge,e),children:[i.jsx(N.Icon,{name:"Check",width:20,height:20}),i.jsx("p",{className:Ro.activeBadgeText,children:"Active"})]}),i7="_timerContainer_rh66p_2",o7="_timerText_rh66p_12",c7="_timerContainerAntistock_rh66p_16",Ja={timerContainer:i7,timerText:o7,timerContainerAntistock:c7},l7=({expiresAt:e})=>{const[t,n]=L.useState(u()),{isAntistock:r}=g.useGeneralStore();function u(){const a=new Date,s=new Date(e).getTime()-a.getTime();if(s<=0)return{hours:"00",minutes:"00",seconds:"00"};const o=Math.floor(s/(1e3*60*60)),c=Math.floor(s%(1e3*60*60)/(1e3*60)),l=Math.floor(s%(1e3*60)/1e3);return{hours:String(o).padStart(2,"0"),minutes:String(c).padStart(2,"0"),seconds:String(l).padStart(2,"0")}}return L.useEffect(()=>{const a=setInterval(()=>{n(u())},1e3);return()=>clearInterval(a)},[e]),t.hours==="00"&&t.minutes==="00"&&t.seconds==="00"?null:r?i.jsxs("div",{className:Ja.timerContainerAntistock,children:[i.jsxs("span",{children:[t.hours,":",t.minutes,":",t.seconds]}),i.jsx("span",{children:"remaining"})]}):i.jsxs("div",{className:Ja.timerContainer,children:[i.jsx(N.Icon,{name:"Clock"}),i.jsxs("p",{className:Ja.timerText,id:"md",children:[t.hours,":",t.minutes,":",t.seconds]})]})},d7="_progressBar_18ijf_4",f7="_progressBarLabel_18ijf_12",h7="_progressBarTrack_18ijf_18",p7="_progressBarFill_18ijf_29",Pu={progressBar:d7,progressBarLabel:f7,progressBarTrack:h7,progressBarFill:p7},hi=({color:e,percent:t,disablePercentLabel:n})=>i.jsxs("div",{className:Pu.progressBar,children:[!n&&i.jsxs("p",{className:Pu.progressBarLabel,children:[t,"%"]}),i.jsx("div",{className:Pu.progressBarTrack,children:i.jsx("div",{style:{width:`${t}%`,background:e||void 0},className:Pu.progressBarFill})})]}),m7="_rating_1bpps_4",g7="_disabled_1bpps_9",b7="_ratingStar_1bpps_14",_7="_inactive_1bpps_22",Ru={rating:m7,disabled:g7,ratingStar:b7,inactive:_7},x7=({setRating:e,rating:t,disabled:n})=>{const[r,u]=L.useState(0),a=o=>{n||u(+o.currentTarget.id)},s=o=>{n||e(o)};return i.jsx("div",{className:g.clx(Ru.rating,{[Ru.disabled]:n}),onMouseLeave:()=>u(0),children:[1,2,3,4,5].map(o=>i.jsx("div",{id:o.toString(),className:g.clx(Ru.ratingStar,{[Ru.inactive]:!(t>=o||r>=o)}),onMouseEnter:a,onClick:()=>s(o),children:t>=o||r>=o?i.jsx(dm,{}):i.jsx(N.Icon,{name:"Star",fill:"var(--text-secondary)",width:22,height:21})},o))})},C7="_inputRange_iv6ow_4",E7="_inputRangeLabel_iv6ow_14",y7="_progressBar_iv6ow_22",T7="_progressBarFill_iv6ow_29",k7="_stepsContainer_iv6ow_40",A7="_step_iv6ow_40",S7="_stepDot_iv6ow_57",I7="_current_iv6ow_61",N7="_active_iv6ow_69",v7="_inactive_iv6ow_72",w7="_tooltip_iv6ow_77",Zt={inputRange:C7,inputRangeLabel:E7,progressBar:y7,progressBarFill:T7,stepsContainer:k7,step:A7,stepDot:S7,current:I7,default:"_default_iv6ow_65",active:N7,inactive:v7,tooltip:w7},D7=({totalSteps:e,step:t,onStepChange:n,label:r})=>{const[u,a]=L.useState(t),s=u===1?0:(u-1)/(e-1)*100,o=c=>{a(c),n(c)};return i.jsxs("div",{className:Zt.inputRange,children:[r&&i.jsx("div",{className:Zt.inputRangeLabel,children:r}),i.jsxs("div",{className:Zt.progressBar,children:[i.jsx("div",{className:Zt.progressBarFill,style:{width:`${Math.ceil(s)}%`}}),i.jsx("div",{className:Zt.stepsContainer,children:[...Array(e)].map((c,l)=>{const h=l+1,f=h<=u,m=h===u;return i.jsxs("div",{className:Zt.step,onClick:()=>o(h),children:[i.jsx("div",{className:g.clx(Zt.stepDot,m?Zt.current:Zt.default,f?Zt.active:Zt.inactive)}),m&&i.jsxs("div",{className:Zt.tooltip,style:{transform:`translateX(calc(50% - ${s<99?"40px":"70px"}))`},children:[i.jsx("span",{children:u}),i.jsx("span",{children:u===1?"month":"months"})]})]},h)})})]})]})},xa=({className:e,expiresAt:t})=>{const{shopGeneral:n}=g.useStorefrontStore(),r=g.useNavigate(),{isAntistock:u}=g.useGeneralStore();return i.jsxs("header",{className:`${hr.checkoutHeader} ${e}`,children:[i.jsxs("div",{className:hr.leftContainer,children:[i.jsx("div",{className:hr.backArrow,onClick:()=>{window.history.length>2?r(-1):r("/")},children:i.jsx(N.Icon,{name:"ArrowUp"})}),(n==null?void 0:n.info.logo)&&i.jsx("div",{className:hr.logoContainer,children:u?i.jsx("a",{className:hr.antistockLink,href:"https://antistock.io",target:"_blank",rel:"noopener noreferrer",children:"Antistock"}):i.jsx("img",{className:hr.logo,src:g.convertCfImageIdToUrl(n.info.logo.cfId,"200")})})]}),t&&i.jsx(l7,{expiresAt:t})]})},L7="_checkoutPrices_7fn88_1",P7="_priceRow_7fn88_12",R7="_label_7fn88_22",M7="_labelContainer_7fn88_26",O7="_tooltipContainer_7fn88_34",j7="_infoIcon_7fn88_40",F7="_tooltip_7fn88_34",B7="_totalRow_7fn88_94",H7="_totalLabel_7fn88_105",U7="_totalValue_7fn88_110",Ge={checkoutPrices:L7,priceRow:P7,label:R7,labelContainer:M7,tooltipContainer:O7,infoIcon:j7,tooltip:F7,totalRow:B7,totalLabel:H7,totalValue:U7},wr=({formatter:e,coupon:t,discount:n,totalWithDiscount:r,total:u,className:a,isShowSubtotal:s=!0,feeOrDiscount:o,serviceFeeAmount:c,replacementLabel:l,replacementAmount:h})=>{const f=Math.max(0,n),[m,p]=L.useState(!1),[b,_]=L.useState(!1),{priceAdjustment:E}=g.useCartStore(),{isAntistock:x}=g.useGeneralStore(),{settings:k}=g.useSettingsStore(),y={isDiscount:!1,fixedAmount:10,percentage:10},S=(()=>{const I=r!==void 0?r:u-f;if((!E||o===null||o===void 0)&&h==null&&(!y||c===null||c===void 0))return Math.max(I,0);let M=I;return E&&o!==null&&o!==void 0&&(E.isDiscount?M=Math.max(M-o,0):M=Math.max(M+o,0)),h!=null&&(M=Math.max(M+h,0)),y&&c!==null&&c!==void 0&&(y.isDiscount?M=Math.max(M-c,0):M=Math.max(M+c,0)),M})();return i.jsxs("div",{className:`${Ge.checkoutPrices} ${a||""}`,style:{border:x?"1px solid var(--border-secondary)":void 0},children:[s&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsx("p",{className:Ge.label,id:"md",children:"Subtotal"}),i.jsx("p",{id:"md",children:e.format(u)})]}),(t||f>0)&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsxs("p",{className:Ge.label,id:"md",children:["Discount ",t&&!(t!=null&&t.isFixed)&&`(${t==null?void 0:t.discount}%)`]}),i.jsx("p",{id:"md",children:t&&!(t!=null&&t.isFixed)&&(t==null?void 0:t.discount)===100?`-${e.format(u)}`:`-${e.format(f)}`})]}),o!=null&&o!==0&&E&&(E.fixedAmount!==0||E.percentage!==0)&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsx("p",{className:Ge.label,id:"md",children:E.isDiscount?"Gateway Discount":"Gateway Fee"}),i.jsx("p",{id:"md",children:e.format(o)})]}),h!=null&&h!==0&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsxs("div",{className:Ge.labelContainer,children:[i.jsx("p",{className:Ge.label,id:"md",children:l||"Priority Replacement"}),x&&i.jsxs("div",{className:Ge.tooltipContainer,children:[i.jsx("div",{className:Ge.infoIcon,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:i.jsx(N.Icon,{name:"Info",fill:"var(--text-secondary)"})}),m&&i.jsx("div",{className:Ge.tooltip,children:"This is an optional add-on you enabled to protect your checkout."})]})]}),i.jsx("p",{id:"md",children:e.format(h)})]}),c!=null&&c!==0&&y&&(y.fixedAmount!==0||y.percentage!==0)&&i.jsxs("div",{className:Ge.priceRow,children:[i.jsxs("div",{className:Ge.labelContainer,children:[i.jsx("p",{className:Ge.label,id:"md",children:y.isDiscount?"Platform Discount":"Platform Fee"}),x&&i.jsxs("div",{className:Ge.tooltipContainer,children:[i.jsx("div",{className:Ge.infoIcon,onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1),children:i.jsx(N.Icon,{name:"Info",fill:"var(--text-secondary)"})}),b&&i.jsxs("div",{className:Ge.tooltip,children:["Platform ",y.isDiscount?"discount":"fee",(k==null?void 0:k.showPoweredBy)&&" charged by Antistock"," for processing your payment."]})]})]}),i.jsx("p",{id:"md",children:e.format(c)})]}),i.jsxs("div",{className:Ge.totalRow,children:[i.jsx("p",{className:Ge.totalLabel,id:"md-bold",children:"Total Due"}),i.jsx("p",{className:Ge.totalValue,id:"md-bold",children:e.format(S)})]})]})},V7="_checkoutProduct_8yrle_1",$7="_isOrder_8yrle_1",z7="_productDetails_8yrle_14",q7="_productImage_8yrle_20",Z7="_isOrderImage_8yrle_30",W7="_productImageAntistock_8yrle_34",Y7="_image_8yrle_39",G7="_productInfo_8yrle_44",X7="_productInfoOverrodePrice_8yrle_51",K7="_productHeader_8yrle_55",Q7="_quantityBadge_8yrle_61",J7="_productPrice_8yrle_79",e9="_priceContainer_8yrle_88",t9="_originalPrice_8yrle_97",n9="_overridePrice_8yrle_103",r9="_deliveryCategories_8yrle_107",u9="_customerNote_8yrle_115",a9="_noteHeader_8yrle_122",s9="_logoContainer_8yrle_128",i9="_shopName_8yrle_140",o9="_noteContent_8yrle_144",c9="_productName_8yrle_150",l9="_replacementRequests_8yrle_165",d9="_replacementRequestsTitle_8yrle_175",f9="_replacementButton_8yrle_182",h9="_replacementButtonText_8yrle_186",p9="_replacementRequestsList_8yrle_190",je={checkoutProduct:V7,isOrder:$7,productDetails:z7,productImage:q7,isOrderImage:Z7,productImageAntistock:W7,image:Y7,productInfo:G7,productInfoOverrodePrice:X7,productHeader:K7,quantityBadge:Q7,productPrice:J7,priceContainer:e9,originalPrice:t9,overridePrice:n9,deliveryCategories:r9,customerNote:u9,noteHeader:a9,logoContainer:s9,shopName:i9,noteContent:o9,productName:c9,replacementRequests:l9,replacementRequestsTitle:d9,replacementButton:f9,replacementButtonText:h9,replacementRequestsList:p9},m9="_deliveryItem_1x3fg_1",g9="_deliveryItemText_1x3fg_10",Wr={deliveryItem:m9,deliveryItemText:g9},Ps={[Pe.Text]:"View",[Pe.Serial]:"View",[Pe.Ebook]:"View",[Pe.Link]:"Visit",[Pe.Download]:"",[Pe.Custom]:"View",[Pe.Discord]:"Access",[Pe.Telegram]:"Telegram"},Rs={[Pe.Text]:"Content",[Pe.Serial]:"Content",[Pe.Ebook]:"Ebook",[Pe.Link]:"Link",[Pe.Download]:"Download",[Pe.Custom]:"Content",[Pe.Discord]:"Discord",[Pe.Telegram]:"Telegram"},T0=()=>({[Pe.Text]:i.jsx(N.Icon,{name:"FileText",fill:"var(--text-secondary)"}),[Pe.Serial]:i.jsx(N.Icon,{name:"FileText",fill:"var(--text-secondary)"}),[Pe.Ebook]:i.jsx(N.Icon,{name:"BookOpen",fill:"var(--text-secondary)"}),[Pe.Link]:i.jsx(N.Icon,{name:"ArrowLineUpRight",fill:"var(--text-secondary)"}),[Pe.Download]:i.jsx(N.Icon,{name:"DownloadSimple",fill:"var(--text-secondary)"}),[Pe.Custom]:i.jsx(N.Icon,{name:"FileText",fill:"var(--text-secondary)"}),[Pe.Discord]:i.jsx(N.Icon,{name:"DiscordLogo",fill:"var(--text-secondary)"}),[Pe.Telegram]:i.jsx(N.Icon,{name:"TelegramLogo",fill:"var(--text-secondary)"})}),b9=({deliveryConfiguration:e})=>{const t=e.type;return t===Pe.Text||t===Pe.Custom||t===Pe.Serial||t===Pe.Discord?i.jsx(_9,{deliveryConfiguration:e}):i.jsx(x9,{deliveryConfiguration:e})},_9=({deliveryConfiguration:e})=>{const t=e.type,[n,r]=L.useState(!1),{setIsOpen:u}=g.useModalStore(),{isAntistock:a}=g.useGeneralStore(),s=()=>{u(!0),r(!0)};return i.jsxs(i.Fragment,{children:[a?i.jsx(N.Button,{type:"Secondary",onClick:o=>{o.stopPropagation(),s()},children:i.jsx("p",{className:Wr.deliveryItemText,children:e.customName??`${Ps[t]} ${Rs[t]}`})}):i.jsxs(N.Button,{type:"Secondary",className:Wr.deliveryItem,onClick:o=>{o.stopPropagation(),s()},children:[T0()[t],i.jsx("p",{className:Wr.deliveryItemText,children:e.customName??`${Ps[t]} ${Rs[t]}`})]}),n&&i.jsx(N.Modal,{close:()=>r(!1),withAnimation:!a,children:i.jsx(wd,{deliveryConfiguration:e,setIsOpen:r})})]})},x9=({deliveryConfiguration:e})=>{const t=e.type;return i.jsxs(N.Button,{type:"Secondary",className:Wr.deliveryItem,style:{display:"flex",alignItems:"center",gap:"0.5rem"},onClick:()=>window.open(e.deliveryItems[0].textData,"_blank"),children:[T0()[t],i.jsx("p",{className:Wr.deliveryItemText,children:e.customName??`${Ps[t]} ${Rs[t]}`})]})},C9="_replacementRequestItem_1sd2r_1",E9="_replacementRequestHeader_1sd2r_11",y9="_replacementRequestId_1sd2r_18",T9="_replacementRequestDescription_1sd2r_24",k9="_statusBadge_1sd2r_30",A9="_statusPending_1sd2r_38",S9="_statusApproved_1sd2r_43",I9="_statusDeclined_1sd2r_48",N9="_statusCancelled_1sd2r_53",v9="_replacementModal_1sd2r_58",w9="_replacementModalAntistock_1sd2r_68",D9="_replacementModalHeader_1sd2r_73",L9="_closeButton_1sd2r_87",P9="_replacementModalContent_1sd2r_101",R9="_statusSection_1sd2r_110",M9="_statusTitle_1sd2r_116",O9="_statusDescription_1sd2r_123",j9="_actionButtons_1sd2r_130",F9="_productsSection_1sd2r_137",B9="_productsList_1sd2r_151",H9="_productItem_1sd2r_157",U9="_noProducts_1sd2r_164",V9="_previouslyDeliveredSection_1sd2r_171",$9="_previouslyDeliveredHeader_1sd2r_179",z9="_previouslyDeliveredTitle_1sd2r_186",q9="_caretIcon_1sd2r_192",Z9="_caretIconRotated_1sd2r_196",W9="_previouslyDeliveredContent_1sd2r_200",Y9="_previouslyDeliveredProductItem_1sd2r_209",Le={replacementRequestItem:C9,replacementRequestHeader:E9,replacementRequestId:y9,replacementRequestDescription:T9,statusBadge:k9,statusPending:A9,statusApproved:S9,statusDeclined:I9,statusCancelled:N9,replacementModal:v9,replacementModalAntistock:w9,replacementModalHeader:D9,closeButton:L9,replacementModalContent:P9,statusSection:R9,statusTitle:M9,statusDescription:O9,actionButtons:j9,productsSection:F9,productsList:B9,productItem:H9,noProducts:U9,previouslyDeliveredSection:V9,previouslyDeliveredHeader:$9,previouslyDeliveredTitle:z9,caretIcon:q9,caretIconRotated:Z9,previouslyDeliveredContent:W9,previouslyDeliveredProductItem:Y9},G9=({item:e,orderId:t,accessToken:n,onCancel:r})=>{var D,S;const[u,a]=L.useState(!1),[s,o]=L.useState(!1),[c,l]=L.useState(!1),{setIsOpen:h}=g.useModalStore(),{isAntistock:f}=g.useGeneralStore(),{setNotifications:m,notifications:p}=g.useNotificationStore(),b=()=>{h(!0),a(!0)},_=async()=>{var I,M;if(!t||!n){m([...p,{id:g.v4(),message:"Missing order information",status:"error"}]);return}o(!0);try{const H=await y2(t,n,e.id);m([...p,{id:g.v4(),message:((I=H.data)==null?void 0:I.message)||"Replacement request cancelled successfully",status:"success"}]),r==null||r(),a(!1)}catch(H){let U="Failed to cancel replacement request",P="";const B=H;if((M=B==null?void 0:B.response)!=null&&M.data){const O=B.response.data;O.message&&O.errors&&Array.isArray(O.errors)?(P=O.message,U=O.errors.join(", ")):O.errors&&Array.isArray(O.errors)?U=O.errors.join(", "):O.message&&(U=O.message)}else H instanceof Error&&(U=H.message);m([...p,{id:g.v4(),message:U,status:"error",label:P}])}finally{o(!1)}},E=()=>{if(!e.replacementItems||e.replacementItems.length===0){m([...p,{id:g.v4(),message:"No products to copy",status:"error"}]);return}const I=e.replacementItems.map(M=>`${M.originalSerialKey} -> ${M.replacementSerialKey}`).join(`
|
|
84
84
|
`);navigator.clipboard.writeText(I).then(()=>{m([...p,{id:g.v4(),message:"Copied to clipboard",status:"success"}])})},x=()=>{if(!e.replacementItems||e.replacementItems.length===0){m([...p,{id:g.v4(),message:"No products to download",status:"error"}]);return}const I=e.replacementItems.map(P=>`${P.originalSerialKey} -> ${P.replacementSerialKey}`).join(`
|
|
85
|
-
`),M=new Blob([I],{type:"text/plain"}),H=URL.createObjectURL(M),U=document.createElement("a");U.href=H,U.download=`replacement-request-${e.id}.txt`,document.body.appendChild(U),U.click(),document.body.removeChild(U),URL.revokeObjectURL(H)},k=I=>{switch(I){case he.PENDING:case he.PROCESSING:return Le.statusPending;case he.APPROVED:case he.AUTO_APPROVED:case he.COMPLETED:return Le.statusApproved;case he.DECLINED:case he.FAILED:return Le.statusDeclined;case he.CANCELLED:case he.EXPIRED:return Le.statusCancelled;default:return Le.statusPending}},y=I=>{switch(I){case he.PENDING:case he.PROCESSING:return"In Progress";case he.APPROVED:case he.AUTO_APPROVED:case he.COMPLETED:return"Approved";case he.DECLINED:return"Denied";case he.FAILED:return"Failed";case he.CANCELLED:case he.EXPIRED:return"Cancelled";default:return"In Progress"}};return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Le.replacementRequestItem,onClick:I=>{I.stopPropagation(),b()},children:[i.jsxs("div",{className:Le.replacementRequestHeader,children:[i.jsxs("span",{className:Le.replacementRequestId,children:["ID: ",e.id]}),i.jsx("span",{className:g.clx(Le.statusBadge,k(e.status)),children:y(e.status)})]}),i.jsxs("div",{className:Le.replacementRequestDescription,children:[(e.status===he.PENDING||e.status===he.PROCESSING)&&"We're currently investigating your replacement. It may take a minimum of 24-48 hours for our team to get back to you.",(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&"We've approved your replacement request. Your replaced products are attached to this section.",e.status===he.DECLINED&&"We've denied your replacement request. You will not be able to request a replacement for these products in the future.",(e.status===he.CANCELLED||e.status===he.EXPIRED)&&"Your replacement request has been cancelled."]})]}),u&&i.jsx(N.Modal,{close:()=>a(!1),withAnimation:!f,children:i.jsxs("div",{className:g.clx(Le.replacementModal,{[Le.replacementModalAntistock]:f}),onClick:I=>I.stopPropagation(),children:[i.jsxs("div",{className:Le.replacementModalHeader,children:[i.jsx("h3",{id:"h3",children:"Replacement Request"}),i.jsx("button",{className:Le.closeButton,onClick:()=>a(!1),children:i.jsx(N.Icon,{name:"X"})})]}),i.jsxs("div",{className:Le.replacementModalContent,children:[i.jsxs("div",{className:Le.statusSection,children:[i.jsx("span",{className:g.clx(Le.statusBadge,k(e.status)),children:y(e.status)}),i.jsxs("h4",{className:Le.statusTitle,children:[(e.status===he.PENDING||e.status===he.PROCESSING)&&"Your Replacement Is In Progress",(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&"Your Replacement Was Approved",e.status===he.DECLINED&&"Your Replacement Was Denied",e.status===he.FAILED&&"Your Replacement Was Failed",(e.status===he.CANCELLED||e.status===he.EXPIRED)&&"Your Replacement Was Cancelled"]}),i.jsxs("p",{className:Le.statusDescription,children:[(e.status===he.PENDING||e.status===he.PROCESSING)&&"We're currently investigating your request. It may take a minimum of 24-48 hours for our team to get back to you.",(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&"We've approved your replacement request. Your replaced products are attached below.",e.status===he.DECLINED&&"We've denied your replacement request. You will not be able to request a replacement for these products in the future.",e.status===he.FAILED&&"We've failed your replacement request. You will not be able to request a replacement for these products in the future.",(e.status===he.CANCELLED||e.status===he.EXPIRED)&&"Your replacement request has been cancelled."]})]}),(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Le.productsSection,children:[i.jsxs("div",{className:Le.actionButtons,children:[i.jsxs(N.Button,{type:"Secondary",onClick:E,style:{display:"flex",alignItems:"center",gap:"5px",height:"32px"},children:[i.jsx(N.Icon,{name:"Copy"}),"Copy"]}),i.jsxs(N.Button,{type:"Secondary",onClick:x,style:{display:"flex",alignItems:"center",gap:"5px",height:"32px"},children:[i.jsx(N.Icon,{name:"ArrowLineDown"}),"Download"]})]}),i.jsx("div",{className:Le.productsList,children:(D=e.replacementItems)==null?void 0:D.map((I,M)=>i.jsx("div",{className:Le.productItem,children:i.jsx("span",{children:I.replacementSerialKey})},M))})]}),i.jsxs("div",{className:Le.previouslyDeliveredSection,children:[i.jsxs("div",{className:Le.previouslyDeliveredHeader,onClick:()=>l(!c),children:[i.jsx("span",{className:Le.previouslyDeliveredTitle,children:"Previously Delivered Products"}),i.jsx(N.Icon,{name:"CaretDown",width:16,height:16,fill:"var(--text-secondary)",className:g.clx(Le.caretIcon,{[Le.caretIconRotated]:c})})]}),c&&i.jsx("div",{className:Le.previouslyDeliveredContent,children:((S=e.replacementItems)==null?void 0:S.map((I,M)=>i.jsx("div",{className:Le.previouslyDeliveredProductItem,children:i.jsx("span",{children:I.originalSerialKey})},M)))||i.jsx("div",{className:Le.noProducts,children:"No products found"})})]})]})]}),i.jsx("div",{className:Le.replacementModalFooter,children:e.status===he.PENDING&&i.jsx(N.Button,{type:"Secondary",onClick:_,disabled:s,style:{width:"fit-content",margin:"0 auto 8px"},children:s?"CANCELLING...":"CANCEL REPLACEMENT REQUEST"})})]})})]})},G9="_replacementModal_1f8b8_1",X9="_replacementModalAntistock_1f8b8_12",K9="_replacementModalHeader_1f8b8_17",Q9="_title_1f8b8_25",J9="_closeButton_1f8b8_32",eg="_replacementModalContent_1f8b8_46",tg="_bottomSheet_1f8b8_53",ng="_content_1f8b8_61",rg="_productReplaceContainer_1f8b8_65",ug="_scrollableBox_1f8b8_76",ag="_searchContainer_1f8b8_90",sg="_productItem_1f8b8_94",ig="_productItemError_1f8b8_125",og="_scrollIndicator_1f8b8_129",cg="_noResults_1f8b8_138",lg="_replacementForm_1f8b8_148",dg="_formField_1f8b8_155",fg="_replacementModalFooter_1f8b8_355",hg="_fieldError_1f8b8_361",pg="_requestButton_1f8b8_367",Ze={replacementModal:G9,replacementModalAntistock:X9,replacementModalHeader:K9,title:Q9,closeButton:J9,replacementModalContent:eg,bottomSheet:tg,content:ng,productReplaceContainer:rg,scrollableBox:ug,searchContainer:ag,productItem:sg,productItemError:ig,scrollIndicator:og,noResults:cg,replacementForm:lg,formField:dg,replacementModalFooter:fg,fieldError:hg,requestButton:pg},mg=({isOpen:e,onClose:t,product:n,orderId:r,accessToken:u,onSuccess:a,allowedReplacementReasons:s})=>{const{isAntistock:o}=g.useGeneralStore(),{setNotifications:c,notifications:l}=g.useNotificationStore(),[h,f]=L.useState(null),[m,p]=L.useState((s==null?void 0:s[0])||""),[b,_]=L.useState(""),[E,x]=L.useState(""),[k,y]=L.useState([]),[D,S]=L.useState(!1),[I,M]=L.useState({}),H=L.useRef(null),U=L.useRef(null),P=L.useRef(null),B=L.useMemo(()=>{var C;return((C=n.deliveryCategories)==null?void 0:C.filter(V=>V.type==="SERIALS").flatMap(V=>V.deliveryItems))||[]},[n.deliveryCategories]),O=L.useMemo(()=>n.replacementRequests?new Set(n.replacementRequests.flatMap(C=>C.replacementItems||[]).map(C=>C.originalSerialKey)):new Set,[n.replacementRequests]),X=L.useMemo(()=>B.filter(C=>!O.has(C.serialKey)),[B,O]),Y=L.useMemo(()=>new tl.Fuse(X,{keys:["serialKey"],threshold:.4}),[X]),K=L.useMemo(()=>E.trim()?Y.search(E).map(C=>C.item):X,[E,Y,X]),ue=C=>{y(V=>V.includes(C)?V.filter(te=>te!==C):[...V,C]),I.selectedItems&&M(V=>({...V,selectedItems:void 0}))},ae=()=>{y([]),f(null),p((s==null?void 0:s[0])||""),_(""),x(""),M({})},se=()=>{ae(),t()},_e=async()=>{var V,te,v,J;M({});const C={};if(k.length===0&&(C.selectedItems="Please select at least one item to replace"),(!h||h.length===0)&&(C.images="Please add at least one image"),m.trim()||(C.reason="Please select a reason for replacement"),Object.keys(C).length>0){M(C),setTimeout(()=>{C.selectedItems&&H.current?H.current.scrollIntoView({behavior:"smooth",block:"center"}):C.images&&U.current?U.current.scrollIntoView({behavior:"smooth",block:"center"}):C.reason&&P.current&&P.current.scrollIntoView({behavior:"smooth",block:"center"})},100);return}if(!r||!u){c([...l,{id:g.v4(),message:"Missing order information",status:"error"}]);return}S(!0);try{if(!n.partOrderId){c([...l,{id:g.v4(),message:"Part order ID is required",status:"error"}]);return}const ne=await x2(r,u,{partOrderId:n.partOrderId,deliveryItemIds:k,imageIds:(h==null?void 0:h.map(Q=>Q.id))||[],reason:m,message:b});c([...l,{id:g.v4(),message:((V=ne.data)==null?void 0:V.message)||"Replacement request submitted successfully",status:"success"}]),(te=ne.data)!=null&&te.id&&((v=ne.data)!=null&&v.status)&&(a==null||a({id:ne.data.id,status:ne.data.status})),se()}catch(ne){console.log({error:ne});let Q="Failed to submit replacement request",de="";const le=ne;if((J=le==null?void 0:le.response)!=null&&J.data){const ie=le.response.data;ie.message&&ie.errors&&Array.isArray(ie.errors)?(de=ie.message,Q=ie.errors.join(", ")):ie.errors&&Array.isArray(ie.errors)?Q=ie.errors.join(", "):ie.message&&(Q=ie.message)}else ne instanceof Error&&(Q=ne.message);c([...l,{id:g.v4(),message:Q,status:"error",label:de}])}finally{S(!1)}};return!e||X.length===0?null:i.jsx(N.Modal,{close:se,withAnimation:!o,children:i.jsxs("div",{className:g.clx(Ze.replacementModal,{[Ze.replacementModalAntistock]:o}),onClick:C=>C.stopPropagation(),children:[i.jsxs("div",{className:Ze.replacementModalHeader,children:[i.jsx("h3",{id:"h3 ",className:Ze.title,children:"Request Replacement"}),i.jsx("button",{className:Ze.closeButton,onClick:se,children:i.jsx(N.Icon,{name:"X"})})]}),i.jsx("div",{className:Ze.replacementModalContent,children:i.jsx("div",{className:Ze.bottomSheet,children:i.jsxs("div",{className:Ze.content,children:[i.jsx(N.Tip,{type:"info",message:"Info: Based on your replacement policy, it may take up to 24-48 hours for our team to review your request.",showCloseButton:!1,style:{marginBottom:"16px"}}),i.jsxs("div",{className:Ze.productReplaceContainer,children:[i.jsx("div",{className:Ze.searchContainer,children:i.jsx(N.Input,{onChange:C=>{x(C)},isSearch:!0,value:E,placeholder:"Search for delivered stock",label:"Product Replace List *"})}),i.jsx("div",{ref:H,className:g.clx(Ze.scrollableBox,{[Ze.scrollableBoxAntistock]:o}),children:K.length>0?K.map(C=>i.jsxs("div",{className:g.clx(Ze.productItem,{[Ze.productItemError]:I.selectedItems&&!k.includes(C.id)}),onClick:()=>ue(C.id),children:[i.jsx(N.Checkbox,{value:k.includes(C.id),onChange:()=>ue(C.id)}),i.jsx("span",{children:C.serialKey})]},C.id)):i.jsx("div",{className:Ze.noResults,children:i.jsxs("p",{children:['No items found matching "',E,'"']})})}),I.selectedItems&&i.jsx("div",{className:Ze.fieldError,children:I.selectedItems}),i.jsx("div",{className:Ze.scrollIndicator,children:i.jsx("p",{children:"To continue with your replacement request, scroll down."})})]}),i.jsxs("div",{className:Ze.replacementForm,children:[i.jsx("div",{className:Ze.formField,ref:U,children:i.jsx(N.ImagesLoader,{images:h,onChange:C=>{f(C),I.images&&M(V=>({...V,images:void 0}))},multiple:!0,label:"Images",required:!0,enablePaste:e})}),i.jsx("div",{className:Ze.formField,ref:P,children:i.jsx(N.Select,{options:(s==null?void 0:s.filter(C=>C!==m))||[],onChange:C=>{p(C),I.reason&&M(V=>({...V,reason:void 0}))},value:m,isSearch:!1,label:"Reason *",isMaxLength:!1,error:I.reason})}),i.jsx("div",{className:Ze.formField,children:i.jsx(N.Textarea,{placeholder:"Use this space to provide our team with additional details regarding your replacement request.",onChange:_,label:"Your Message (Optional)",value:b})})]})]})})}),i.jsx("div",{className:Ze.replacementModalFooter,children:i.jsx(N.Button,{type:"Primary",className:Ze.requestButton,onClick:_e,disabled:D,children:D?"SUBMITTING...":"REQUEST REPLACEMENT"})})]})})},xa=({isOrder:e,product:t,isApplicableForReplacement:n,orderId:r,accessToken:u,allowedReplacementReasons:a})=>{var M;const{shopGeneral:s}=g.useStorefrontStore(),o=t.subscriptionSettings,{cart:c}=du(),{isAntistock:l}=g.useGeneralStore(),[h,f]=L.useState(!1),{setIsOpen:m}=g.useModalStore(),p=L.useMemo(()=>t.replacementRequests?new Set(t.replacementRequests.flatMap(H=>H.replacementItems||[]).map(H=>H.originalSerialKey)):new Set,[t.replacementRequests]),b=L.useMemo(()=>{var U;return(((U=t.deliveryCategories)==null?void 0:U.filter(P=>P.type==="SERIALS").flatMap(P=>P.deliveryItems))||[]).filter(P=>!p.has(P.serialKey)).length},[t.deliveryCategories,p]),_=t.processingInfo,[E,x]=L.useState(null),[k,y]=L.useState(!1),[D,S]=L.useState(null);L.useEffect(()=>{if(!_){x(null),y(!1),S(null);return}const H=()=>{const P=Date.now(),B=new Date(_.processingStartTime).getTime(),O=P-B,X=_.expectedProcessingMs;if(S(O>0?O:0),O<=0||X<=0){x(0),y(!1);return}if(O<X){const Y=Math.min(100,Math.max(0,O/X*100));x(Math.round(Y)),y(!1)}else x(100),y(!0)};H();const U=window.setInterval(H,1e3);return()=>{window.clearInterval(U)}},[_]);const I=()=>{m(!0),f(!0)};return i.jsxs("div",{className:`${je.checkoutProduct} ${e?je.isOrder:""}`,children:[i.jsxs("div",{className:je.productDetails,children:[i.jsx("div",{className:`${je.productImage} ${e?je.isOrderImage:""} ${l?je.productImageAntistock:""}`,children:t!=null&&t.image?i.jsx("img",{className:je.image,src:g.convertCfImageIdToUrl(t.image.cfId,"100")}):i.jsx(N.Icon,{name:"Image",fill:"var(--text-secondary)"})}),i.jsx("div",{className:g.clx(je.productInfo,{[je.productInfoOverrodePrice]:t.variantsGateways&&c.gateway&&t.variantsGateways.some(H=>H.name===c.gateway&&H.overrodePrice)}),children:i.jsxs("div",{className:je.productHeader,children:[i.jsx("h2",{className:je.productName,id:"h5",children:t.name}),i.jsxs("span",{className:je.quantityBadge,id:"md",children:[t.price.quantity,"x"]})]})}),t.chargeType==="RECURRING"&&i.jsx("p",{className:je.productPrice,id:"md",children:o&&`${g.formatPrice(o.price)} / ${g.normalizeInterval(o.recurringIntervalDays||0)}${o.entryFee?" + "+g.formatPrice(o.entryFee):""}`}),t.chargeType==="ONE_TIME"&&i.jsx(i.Fragment,{children:t.variantsGateways&&c.gateway&&t.variantsGateways.some(H=>H.name===c.gateway&&H.overrodePrice)?i.jsxs("div",{className:je.priceContainer,children:[i.jsx("span",{className:je.originalPrice,id:"md",children:g.formatPrice(t.price)}),i.jsx("span",{className:je.overridePrice,id:"md",children:g.formatPrice(((M=t.variantsGateways.find(H=>H.name===c.gateway))==null?void 0:M.overrodePrice)||t.price)})]}):i.jsx("p",{className:je.productPrice,id:"md",children:g.formatPrice(t.price)})})]}),_&&i.jsx("div",{style:{marginTop:"1.5rem",marginBottom:"0.5rem",width:"100%"},children:!k&&E!==null?i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",color:"var(--text-secondary)",fontSize:"var(--font-size-sm)"},children:[i.jsx("span",{children:"Processing..."}),i.jsxs("span",{children:["Time Passed:"," ",(()=>{if(D===null||D<0)return"00:00:00";const H=Math.floor(D/1e3),U=Math.floor(H/3600).toString().padStart(2,"0"),P=Math.floor(H%3600/60).toString().padStart(2,"0"),B=(H%60).toString().padStart(2,"0");return`${U}:${P}:${B}`})()]})]}),i.jsx(hi,{percent:E})]}):i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[i.jsx(N.Loader,{style:{color:"var(--text-primary)"}}),i.jsx(N.Tip,{id:"processing-tip",type:"info",padding:0,showCloseButton:!1,message:`This order is taking longer than expected, but we are still working on your delivery. If it is not processed before ${_.processingExpiresAt?new Date(_.processingExpiresAt).toLocaleString():""}, your payment will be automatically refunded.`})]})}),t.deliveryCategories&&i.jsx("div",{className:je.deliveryCategories,children:t.deliveryCategories.map(H=>i.jsx(g9,{deliveryConfiguration:H},H.id))}),t.customerNote&&i.jsxs("div",{className:je.customerNote,style:l?{border:"1px solid var(--border-secondary)"}:void 0,children:[i.jsxs("div",{className:je.noteHeader,children:[(s==null?void 0:s.info.logo)&&i.jsx("div",{className:je.logoContainer,children:i.jsx("img",{src:g.convertCfImageIdToUrl(s==null?void 0:s.info.logo.cfId,"200")})}),i.jsx("p",{className:je.shopName,id:"md",children:s==null?void 0:s.info.name})]}),i.jsx("p",{className:je.noteContent,id:"md",children:t.customerNote})]}),t.replacementRequests&&t.replacementRequests.length===0&&n&&b>0&&i.jsx(N.Button,{type:"Secondary",className:je.replacementButton,onClick:H=>{H.stopPropagation(),I()},children:i.jsx("p",{className:je.replacementButtonText,children:"Request Replacement"})}),t.replacementRequests&&t.replacementRequests.length>0&&n&&i.jsxs("div",{className:je.replacementRequests,children:[i.jsx("h4",{className:je.replacementRequestsTitle,children:"Replacements"}),i.jsx("div",{className:je.replacementRequestsList,children:t.replacementRequests.map(H=>i.jsx(Y9,{item:H,orderId:r,accessToken:u,onCancel:()=>{}},H.id))}),b>0&&i.jsx(N.Button,{type:"Secondary",onClick:H=>{H.stopPropagation(),I()},children:i.jsx("p",{className:je.replacementButtonText,children:"Request New Replacement"})})]}),i.jsx(mg,{isOpen:h,onClose:()=>f(!1),product:t,orderId:r,accessToken:u,allowedReplacementReasons:a})]})},gg="_coupon_dkjzv_1",bg="_couponApplied_dkjzv_7",_g="_discount_dkjzv_17",xg="_removeButton_dkjzv_23",Cg="_removeButtonText_dkjzv_27",Eg="_couponInput_dkjzv_31",yg="_couponInputContainer_dkjzv_37",wn={coupon:gg,couponApplied:bg,discount:_g,removeButton:xg,removeButtonText:Cg,couponInput:Eg,couponInputContainer:yg},Tg=({applyCoupon:e,couponData:t,discount:n,removeCoupon:r,gateway:u})=>{const[a,s]=L.useState(null),[o,c]=L.useState(!1),{isAntistock:l}=g.useGeneralStore();return i.jsxs("div",{className:wn.coupon,children:[o&&i.jsx(ir,{speed:2,width:500,height:48,viewBox:"0 0 500 48",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",className:wn.skeleton,style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"100%",height:"48"})}),!o&&(t?i.jsxs("div",{className:wn.couponApplied,style:l?{border:"1px solid var(--border-secondary)"}:void 0,children:[i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"}),i.jsxs("p",{id:"md",style:{color:l?"var(--text-primary)":void 0},children:[a," is applied"," ",i.jsxs("span",{className:wn.discount,children:["-",n," ",!t.isFixed&&`(${t.discount}%)`]})]}),i.jsx("button",{className:wn.removeButton,onClick:r,children:i.jsx("span",{className:wn.removeButtonText,children:"Remove"})})]}):i.jsxs("div",{className:wn.couponInput,children:[i.jsxs("div",{className:wn.couponInputContainer,children:[i.jsx(N.Input,{placeholder:"Enter a discount code",value:a||"",onChange:h=>{s(h===""?null:h)}}),i.jsx(N.Button,{onClick:async()=>{c(!0),a&&await e(a),c(!1)},disabled:!u||!a,type:"Primary",children:"Apply"})]}),!l&&!u&&i.jsx(N.Tip,{type:"warning",message:"The discount is related to the method of payment. Select to enter.",id:"md"})]}))]})},T0=({cart:e,products:t,applyCoupon:n,applyCouponPending:r,coupon:u,totalAndDiscount:a,removeCoupon:s})=>{const{priceAdjustment:o,serviceFee:c,replacementConfig:l}=g.useCartStore(),[h,f]=L.useState(!1),m=L.useMemo(()=>e.parts.map(y=>{const D=t.find(I=>I.id===y.productId),S=D==null?void 0:D.variants.find(I=>I.id===y.productVariantId);return y.chargeType==="RECURRING"&&f(!0),{id:(D==null?void 0:D.id)||0,image:D==null?void 0:D.images[0],name:(()=>{const I=(D==null?void 0:D.name)||"",M=(S==null?void 0:S.name)||"";return!I&&!M?"":!M||I===M?I:I?`${I} (${M})`:M})(),description:"",price:{quantity:y.quantity,amount:(S==null?void 0:S.price.amount)||0,currency:S==null?void 0:S.price.currency},subscriptionSettings:S==null?void 0:S.subscriptionSettings,chargeType:y.chargeType,variantsGateways:S==null?void 0:S.gateways}}),[e,t]),p=L.useMemo(()=>{const y=m[0];if(y!=null&&y.variantsGateways&&e.gateway){const D=y.variantsGateways.find(S=>S.name===e.gateway&&S.overrodePrice);if(D!=null&&D.overrodePrice)return D.overrodePrice.currency}return(y==null?void 0:y.price.currency)||"USD"},[m,e.gateway]),b=new Intl.NumberFormat("en-US",{style:"currency",currency:p}),_=L.useMemo(()=>u&&!u.isFixed&&u.discount===100||u&&u.isFixed&&u.discount&&u.discount>=a.total?a.total:a.totalWithDiscount?a.total-a.totalWithDiscount:0,[a,u]),E=o?(o==null?void 0:o.fixedAmount)+Math.round((a.totalWithDiscount!==void 0?a.totalWithDiscount:a.total-_)*((o==null?void 0:o.percentage)/100)):null,x=L.useMemo(()=>{const y=e.usePriorityReplacement===!0,D=y?l==null?void 0:l.priorityReplacement:null;if(!y||!(D!=null&&D.enabled))return{label:"",amount:null};const S=a.totalWithDiscount!==void 0?a.totalWithDiscount:a.total-_,I=(D.fixedFee||0)+S*(D.feePercentage||0)/100;return{label:D.name||"Priority Replacement",amount:I}},[e.usePriorityReplacement,l,a,_]),k=L.useMemo(()=>{if(!c)return null;const y=a.totalWithDiscount!==void 0?a.totalWithDiscount:a.total-_,I=((o&&E!==null&&E!==void 0?o.isDiscount?y-E:y+E:y)+(x.amount||0))*(c.percentage/100);return c.fixedAmount+I},[c,a,_,o,E,x]);return i.jsx("div",{className:Xn.checkoutItemsContainer,children:i.jsxs("div",{className:Xn.innerContainer,children:[i.jsx(_a,{}),i.jsxs("div",{className:Xn.headerSection,children:[i.jsx("header",{className:Xn.header,children:i.jsx("h1",{id:"h3",children:"Checkout"})}),i.jsx("div",{className:Xn.productsContainer,children:m.map(y=>i.jsx(xa,{product:y},y.id))}),i.jsx("div",{className:Xn.couponContainer,children:i.jsx(Tg,{applyCoupon:n,applyCouponPending:r,couponData:u,discount:b.format(_),removeCoupon:s,gateway:e.gateway})}),i.jsx(wr,{formatter:b,coupon:u,total:a.total,discount:_,totalWithDiscount:a.totalWithDiscount,feeOrDiscount:h?null:E,serviceFeeAmount:h?null:k,replacementLabel:x.amount?x.label:"",replacementAmount:h?null:x.amount})]}),i.jsx("div",{className:Xn.checkoutFooter,children:i.jsx(qn,{})})]})})},kg="_checkoutOperational_a8jyy_1",Ag="_innerContainer_a8jyy_16",Sg="_innerContainerAntistock_a8jyy_26",Ig="_paymentMethodsSectionAntistock_a8jyy_38",Ng="_continueButtonAntistock_a8jyy_48",vg="_checkoutFooterAntistock_a8jyy_58",wg="_antistock_a8jyy_69",Dg="_checkoutOperationalAntistock_a8jyy_74",Lg="_loginSection_a8jyy_85",Pg="_paymentMethodsSection_a8jyy_38",Rg="_socialConnectSection_a8jyy_99",Mg="_socialConnectLabel_a8jyy_102",Og="_socialConnectContent_a8jyy_106",jg="_continueButton_a8jyy_48",Fg="_button_a8jyy_114",Bg="_checkoutFooter_a8jyy_58",ft={checkoutOperational:kg,innerContainer:Ag,innerContainerAntistock:Sg,paymentMethodsSectionAntistock:Ig,continueButtonAntistock:Ng,checkoutFooterAntistock:vg,antistock:wg,checkoutOperationalAntistock:Dg,loginSection:Lg,paymentMethodsSection:Pg,socialConnectSection:Rg,socialConnectLabel:Mg,socialConnectContent:Og,continueButton:jg,button:Fg,checkoutFooter:Bg},Hg="_customFields_uhcib_2",Ug="_checkboxWrapper_uhcib_9",Vg="_textareaWrapper_uhcib_16",$g="_inputWrapper_uhcib_17",zg="_requiredStar_uhcib_27",gr={customFields:Hg,checkboxWrapper:Ug,textareaWrapper:Vg,inputWrapper:$g,requiredStar:zg},k0=({customFields:e,setCustomFields:t})=>{if(e.length===0)return null;const n=e.map(r=>i.jsx(A0,{customField:r,setCustomFields:t},r.name));return i.jsx("div",{className:gr.customFields,children:n})},A0=({customField:e,setCustomFields:t})=>{const n=r=>{t(u=>u.map(a=>a.name===e.name?{...a,value:r}:a))};return i.jsx(qg,{value:e.value??"",placeholder:e.placeholder,required:e.required,defaultValue:e.defaultValue,type:e.type,onValueChange:n,label:e.name,regex:e.regex})},qg=({label:e,type:t,defaultValue:n,value:r,placeholder:u,regex:a,required:s,onValueChange:o})=>{if(L.useEffect(()=>{r===""&&n!==void 0&&o(String(n))},[]),t===jn.Checkbox)return i.jsxs("label",{className:gr.checkboxWrapper,children:[i.jsx(N.CheckboxSettings,{value:r==="true",onChange:l=>o(l?"true":"false")}),i.jsxs("p",{className:gr.checkboxLabel,children:[e,s&&i.jsx("span",{className:gr.requiredStar,children:"*"})]})]});if(t===jn.Hidden)return i.jsx("input",{type:"hidden",value:String(n??""),required:s});const c=l=>{let h;if(t===jn.Number)h=/^\d*$/;else if(a)try{h=new RegExp(a)}catch(f){console.error("Invalid regex pattern:",a,f),h=/.*/}else h=/.*/;h.test(l)&&o(l)};return t===jn.Textarea?i.jsx("div",{className:gr.textareaWrapper,children:i.jsx(N.Textarea,{label:e,value:r,placeholder:u,onChange:c,required:s})}):i.jsx("div",{className:gr.inputWrapper,children:i.jsx(N.Input,{type:t===jn.Number?"number":"text",placeholder:t===jn.Number?"Type something number...":u,label:e,value:r,required:s,onChange:c})})},Zg="_connectedContainer_1rxr8_1",Wg="_userInfo_1rxr8_10",Yg="_avatar_1rxr8_16",Gg="_avatarImage_1rxr8_26",Ru={connectedContainer:Zg,userInfo:Wg,avatar:Yg,avatarImage:Gg},S0=({customerEmail:e})=>{const{discordInfo:t,setDiscordInfo:n}=g.useDiscordStore(),{notifications:r,setNotifications:u}=g.useNotificationStore(),[a,s]=L.useState(!1),[o,c]=L.useState(0),[l,h]=L.useState(null),f=20,m=_=>{var E,x,k,y;return(x=(E=_==null?void 0:_.response)==null?void 0:E.data)!=null&&x.error?_.response.data.error:(y=(k=_==null?void 0:_.response)==null?void 0:k.data)!=null&&y.message?_.response.data.message:_!=null&&_.message?_.message:"Failed to connect to Discord. Please try again later."},p=(_,E)=>{u([...r,{id:g.v4(),message:_,status:E}])};L.useEffect(()=>{if(l&&a){const _=setInterval(()=>{l.closed&&(clearInterval(_),s(!1),h(null))},1e3);return()=>clearInterval(_)}},[l,a]);const b=()=>{e.trim()!==""&&(s(!0),c(0),V2({customerEmail:e,tsId:g.useGetTsId()}).then(({data:_})=>{const E=window.open(_.redirectUrl);h(E),(!E||E.closed||typeof E.closed>"u")&&setTimeout(()=>{const y=document.createElement("a");y.href=_.redirectUrl,y.target="_blank",y.click()});let x;const k=()=>{if(c(y=>y+1),o>=f||E&&E.closed){o>=f&&p("Authorization timeout. Please try again.","error"),s(!1),clearTimeout(x);return}$2({id:_.id,customerEmail:e}).then(({data:y})=>{n({authorized:!0,id:_.id,avatar:y.avatar,username:y.username}),E&&E.close(),s(!1),h(null),p("Discord successfully connected!","success"),clearTimeout(x)}).catch(y=>{var D;if(console.log("Waiting for authorization...",y,{newWindow:E}),E&&E.closed){s(!1),clearTimeout(x);return}if((D=y==null?void 0:y.response)!=null&&D.status&&y.response.status!==404&&y.response.status>=400){p(m(y),"error"),s(!1),clearTimeout(x);return}clearTimeout(x),x=setTimeout(k,1500)})};k()}).catch(_=>{console.log("Could not initiate Discord authorization",_),p(m(_),"error"),s(!1)}))};return t!=null&&t.authorized?i.jsxs("div",{className:Ru.connectedContainer,children:[i.jsxs("div",{className:Ru.userInfo,children:[i.jsx("div",{className:Ru.avatar,children:t.avatar?i.jsx("img",{className:Ru.avatarImage,src:`https://cdn.discordapp.com/avatars/${t.id}/${t.avatar}.png?size=256`}):i.jsx(N.Icon,{name:"UserCircle"})}),i.jsx("p",{children:t.username}),i.jsx(a7,{})]}),i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Reconnect"})]}):i.jsx(N.Button,{type:"Secondary",onClick:b,style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:"10px"},disabled:a,children:a?i.jsx(N.Loader,{}):i.jsxs(i.Fragment,{children:[i.jsx(N.Icon,{name:"DiscordLogo"}),i.jsx(ul,{children:"Connect Your Discord"})]})})},Xg="_paymentMethodsContainer_1pfqr_2",Kg="_antistock_1pfqr_15",Ro={paymentMethodsContainer:Xg,antistock:Kg},Qg="_paymentMethod_1it0n_3",Jg="_selected_1it0n_16",eb="_alignColumn_1it0n_19",tb="_reversed_1it0n_25",nb="_antistock_1it0n_29",rb="_paymentText_1it0n_36",ub="_balanceText_1it0n_50",ab="_signInLink_1it0n_54",sb="_iconContainer_1it0n_63",ib="_gatewayLogo_1it0n_76",ob="_poweredByLogo_1it0n_77",cb="_logo_1it0n_82",De={paymentMethod:Qg,selected:Jg,alignColumn:eb,reversed:tb,antistock:nb,paymentText:rb,balanceText:ub,signInLink:ab,iconContainer:sb,gatewayLogo:ib,poweredByLogo:ob,logo:cb},lb="_bottomSheet_1x8kc_1",db="_content_1x8kc_8",fb="_description_1x8kc_11",hb="_title_1x8kc_15",pb="_buttonGroup_1x8kc_19",mb="_buttonWrapper_1x8kc_29",gb="_fullWidthButton_1x8kc_32",bb="_modal_1x8kc_36",_b="_header_1x8kc_43",yn={bottomSheet:lb,content:db,description:fb,title:hb,buttonGroup:pb,buttonWrapper:mb,fullWidthButton:gb,modal:bb,header:_b},xb=({setIsOpen:e,balance:t})=>{const n=g.useNavigate(),{setIsOpen:r}=g.useModalStore(),u=()=>{n("/top-up?redirectRoute=checkout")};function a(){r(!1),setTimeout(()=>{e(!1)},300)}return i.jsxs("div",{className:yn.modal,onClick:s=>s.stopPropagation(),children:[i.jsxs("div",{className:yn.header,children:[i.jsx("h3",{id:"h3",className:yn.title,children:"Insufficient Customer Balance"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:a,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:yn.bottomSheet,children:[i.jsx("div",{className:yn.content,children:i.jsxs("p",{className:yn.description,children:["You currently have ",t&&g.formatPrice(t)," in your balance. After topping up the required amount, you can continue to checkout."]})}),i.jsxs("div",{className:yn.buttonGroup,children:[i.jsx("div",{className:yn.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:a,children:"Cancel"})}),i.jsx("div",{className:yn.fullWidthButton,children:i.jsx(N.Button,{type:"Primary",onClick:u,children:"Add Balance"})})]})]})]})},pi=({align:e,gateway:t,gatewayDisplayName:n,selected:r,onSelect:u,total:a,onSignInClick:s,reversed:o,isAntistock:c=!1})=>{const{token:l}=g.useStorefrontStore(),{balance:h}=g.useCustomerDashboardStore(),[f,m]=L.useState(!1),{setIsOpen:p}=g.useModalStore(),b=_=>{_.stopPropagation(),u==null||u(t),h&&h.amount<a&&(m(!0),p(!0))};return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:g.clx(De.paymentMethod,{[De.selected]:r,[De.alignColumn]:e==="column",[De.reversed]:o&&!c,[De.antistock]:c}),onClick:b,children:c?i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:De.paymentText,id:"md",children:[n," ",i.jsxs("span",{className:De.balanceText,id:"md",children:["(",l?h&&g.formatPrice(h):i.jsx("a",{className:De.signInLink,onClick:s,id:"md",children:"Sign in"}),")"]})]}),i.jsx("div",{className:De.iconContainer,children:i.jsx(N.Icon,{name:"Wallet",fill:"var(--text-primary)",width:20,height:20})})]}):i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:De.paymentText,id:"md",children:[n," ",i.jsxs("span",{className:De.balanceText,id:"md",children:["(",l?h&&g.formatPrice(h):i.jsx("a",{className:De.signInLink,onClick:s,id:"md",children:"Sign in"}),")"]})]}),i.jsx("div",{className:De.iconContainer,children:i.jsx(N.Icon,{name:"Wallet",fill:"var(--text-primary)",width:20,height:20})})]})}),f&&i.jsx(N.Modal,{close:()=>m(!1),children:i.jsx(xb,{setIsOpen:m,balance:h})})]})};var Ye=(e=>(e.BankCard="BANK_CARD",e.BankTransfer="BANK_TRANSFER",e.PayPal="PAYPAL",e.CashApp="CASHAPP",e.Crypto="CRYPTO",e.AppleGooglePay="APPLE_AND_GOOGLE_PAY",e.Custom="CUSTOM",e))(Ye||{});const Cb={[Ye.CashApp]:i.jsx(Xl,{}),[Ye.AppleGooglePay]:i.jsx(Ql,{}),[Ye.BankCard]:i.jsx(Gl,{}),[Ye.Crypto]:i.jsx(Wl,{}),[Ye.PayPal]:i.jsx(Kl,{}),[Ye.Custom]:i.jsx("div",{}),[Ye.BankTransfer]:i.jsx(Jl,{})},Eb={[Ye.CashApp]:i.jsx(Xl,{isAntistock:!0}),[Ye.AppleGooglePay]:i.jsx(Ql,{isAntistock:!0}),[Ye.BankCard]:i.jsx(Gl,{isAntistock:!0}),[Ye.Crypto]:i.jsx(Wl,{isAntistock:!0}),[Ye.PayPal]:i.jsx(Kl,{isAntistock:!0}),[Ye.Custom]:i.jsx("div",{}),[Ye.BankTransfer]:i.jsx(Jl,{isAntistock:!0})},Mo={[Ye.CashApp]:"Cash App",[Ye.AppleGooglePay]:"Apple Pay / Google Pay",[Ye.BankCard]:"Debit / Credit Card",[Ye.Crypto]:"Cryptocurrency",[Ye.PayPal]:"PayPal",[Ye.Custom]:"",[Ye.BankTransfer]:"Bank Transfer"},mi=({align:e,paymentMethod:t,gatewayDisplayName:n,gatewayLogoCfId:r,poweredByLogoCfId:u,selected:a,onSelect:s,className:o,isAntistock:c=!1})=>{const l=t===Ye.Custom;return t?i.jsx("div",{className:g.clx(De.paymentMethod,{[De.selected]:a,[De.alignColumn]:e==="column",[De.antistock]:c},o),onClick:()=>s&&s(t),children:c?i.jsxs(i.Fragment,{children:[i.jsx("p",{className:De.paymentText,id:"md",children:l?n:Mo[t]}),i.jsxs("div",{className:De.iconContainer,children:[l?i.jsx("div",{className:De.gatewayLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(r,"100"),alt:n})}):Eb[t],u&&i.jsx("div",{className:De.poweredByLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(u,"100"),alt:n})})]})]}):i.jsxs(i.Fragment,{children:[i.jsx("p",{className:De.paymentText,id:"md",children:l?n:Mo[t]}),i.jsxs("div",{className:De.iconContainer,children:[l?i.jsx("div",{className:De.gatewayLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(r,"100"),alt:n})}):Cb[t],u&&i.jsx("div",{className:De.poweredByLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(u,"100"),alt:n})})]})]})}):i.jsxs("div",{className:g.clx(De.paymentMethod,o),children:[i.jsx("div",{className:De.gatewayLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(r,"100"),alt:n})}),i.jsx("p",{className:De.paymentText,children:n})]})},gi=({possibleGateways:e,setGateway:t,totalAndDiscount:n,onSignInClick:r,setPaymentMethod:u,isAntistock:a=!1,hideBalance:s=!1})=>{const[o,c]=L.useState(),[l,h]=L.useState(),{setPriceAdjustment:f,setServiceFee:m}=g.useCartStore(),[p,b]=L.useState(null),_=L.useMemo(()=>p?s?p.filter(k=>k.name!=="Balance"):p:null,[p,s]),E=k=>{t(k);const y=p==null?void 0:p.find(D=>D.name===k);f((y==null?void 0:y.priceAdjustment)||null),m((y==null?void 0:y.serviceFee)||null)},x=(k,y)=>{l!==y&&E(y),u(k),c(k),h(y)};return L.useEffect(()=>{if(_&&_.length>0){const k=_[0];if(k.name==="Balance")h(k.name),t(k.name),f(k.priceAdjustment||null),m(k.serviceFee||null);else if(k.paymentMethods&&k.paymentMethods.length>0){const y=k.paymentMethods[0];c(y),h(k.name),t(k.name),u(y),f(k.priceAdjustment||null),m(k.serviceFee||null)}}},[_]),L.useEffect(()=>{const k=async()=>{const{data:y}=await sl([...e.availableGateways,...e.requiresSignInGateways]),D=Array.isArray(y)?y:y.gateways;b(D)};(e.availableGateways.length||e.requiresSignInGateways.length)&&k()},[]),L.useLayoutEffect(()=>{f(null),m(null)},[]),i.jsxs(i.Fragment,{children:[_&&i.jsx("div",{className:g.clx(Ro.paymentMethodsContainer,{[Ro.antistock]:a}),children:_==null?void 0:_.map(k=>k.name==="Balance"?i.jsx(pi,{gateway:k.name,gatewayDisplayName:k.displayName,onSelect:y=>{h(y),l!==y&&E(y)},selected:k.name===l,total:n.totalWithDiscount??n.total,onSignInClick:r,reversed:!0,isAntistock:a},k.name):k.paymentMethods.map(y=>i.jsx(mi,{paymentMethod:y,gateway:k.name,gatewayDisplayName:k.displayName,gatewayLogoCfId:k.logoCfImageId,poweredByLogoCfId:k.poweredByImageCfImageId,onSelect:D=>x(D,k.name),selected:o===y&&l===k.name,isAntistock:a},`${k.name}-${y}`)))}),!p&&(a?i.jsx(N.Loader,{}):i.jsx(ir,{speed:2,width:"100%",height:"220px",viewBox:"0 0 600 220",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"100%",height:"100%"})}))]})},yb="_modal_1htd8_1",Tb={modal:yb},I0=({setIsOpen:e})=>{const{token:t}=g.useStorefrontStore(),{setIsOpen:n}=g.useModalStore();L.useEffect(()=>{t&&r()},[t]);const r=()=>{n(!1),setTimeout(()=>{e(!1)},300)};return i.jsx("div",{className:Tb.modal,onClick:u=>u.stopPropagation(),children:i.jsx(pa,{inModal:!0})})},kb="_container_r8mpd_1",Ab="_text_r8mpd_9",Sb="_link_r8mpd_14",Kn={container:kb,text:Ab,link:Sb};function Oo(e){const t=[],n=String(e||"");let r=n.indexOf(","),u=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(u,r).trim();(s||!a)&&t.push(s),u=r+1,r=n.indexOf(",",u)}return t}function N0(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ib=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Nb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vb={};function jo(e,t){return(vb.jsx?Nb:Ib).test(e)}const wb=/[ \t\n\f\r]/g;function Db(e){return typeof e=="object"?e.type==="text"?Fo(e.value):!1:Fo(e)}function Fo(e){return e.replace(wb,"")===""}let _u=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};_u.prototype.normal={};_u.prototype.property={};_u.prototype.space=void 0;function v0(e,t){const n={},r={};for(const u of e)Object.assign(n,u.property),Object.assign(r,u.normal);return new _u(n,r,t)}function iu(e){return e.toLowerCase()}let Mt=class{constructor(t,n){this.attribute=n,this.property=t}};Mt.prototype.attribute="";Mt.prototype.booleanish=!1;Mt.prototype.boolean=!1;Mt.prototype.commaOrSpaceSeparated=!1;Mt.prototype.commaSeparated=!1;Mt.prototype.defined=!1;Mt.prototype.mustUseProperty=!1;Mt.prototype.number=!1;Mt.prototype.overloadedBoolean=!1;Mt.prototype.property="";Mt.prototype.spaceSeparated=!1;Mt.prototype.space=void 0;let Lb=0;const ye=or(),tt=or(),w0=or(),q=or(),Be=or(),Er=or(),Bt=or();function or(){return 2**++Lb}const Ms=Object.freeze(Object.defineProperty({__proto__:null,boolean:ye,booleanish:tt,commaOrSpaceSeparated:Bt,commaSeparated:Er,number:q,overloadedBoolean:w0,spaceSeparated:Be},Symbol.toStringTag,{value:"Module"})),Ja=Object.keys(Ms);let bi=class extends Mt{constructor(t,n,r,u){let a=-1;if(super(t,n),Bo(this,"space",u),typeof r=="number")for(;++a<Ja.length;){const s=Ja[a];Bo(this,Ja[a],(r&Ms[s])===Ms[s])}}};bi.prototype.defined=!0;function Bo(e,t,n){n&&(e[t]=n)}function Dr(e){const t={},n={};for(const[r,u]of Object.entries(e.properties)){const a=new bi(r,e.transform(e.attributes||{},r),u,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[iu(r)]=r,n[iu(a.attribute)]=r}return new _u(t,n,e.space)}const D0=Dr({properties:{ariaActiveDescendant:null,ariaAtomic:tt,ariaAutoComplete:null,ariaBusy:tt,ariaChecked:tt,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:Be,ariaCurrent:null,ariaDescribedBy:Be,ariaDetails:null,ariaDisabled:tt,ariaDropEffect:Be,ariaErrorMessage:null,ariaExpanded:tt,ariaFlowTo:Be,ariaGrabbed:tt,ariaHasPopup:null,ariaHidden:tt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Be,ariaLevel:q,ariaLive:null,ariaModal:tt,ariaMultiLine:tt,ariaMultiSelectable:tt,ariaOrientation:null,ariaOwns:Be,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:tt,ariaReadOnly:tt,ariaRelevant:null,ariaRequired:tt,ariaRoleDescription:Be,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:tt,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function L0(e,t){return t in e?e[t]:t}function P0(e,t){return L0(e,t.toLowerCase())}const Pb=Dr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Er,acceptCharset:Be,accessKey:Be,action:null,allow:null,allowFullScreen:ye,allowPaymentRequest:ye,allowUserMedia:ye,alt:null,as:null,async:ye,autoCapitalize:null,autoComplete:Be,autoFocus:ye,autoPlay:ye,blocking:Be,capture:null,charSet:null,checked:ye,cite:null,className:Be,cols:q,colSpan:null,content:null,contentEditable:tt,controls:ye,controlsList:Be,coords:q|Er,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ye,defer:ye,dir:null,dirName:null,disabled:ye,download:w0,draggable:tt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ye,formTarget:null,headers:Be,height:q,hidden:ye,high:q,href:null,hrefLang:null,htmlFor:Be,httpEquiv:Be,id:null,imageSizes:null,imageSrcSet:null,inert:ye,inputMode:null,integrity:null,is:null,isMap:ye,itemId:null,itemProp:Be,itemRef:Be,itemScope:ye,itemType:Be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ye,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:ye,muted:ye,name:null,nonce:null,noModule:ye,noValidate:ye,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ye,optimum:q,pattern:null,ping:Be,placeholder:null,playsInline:ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ye,referrerPolicy:null,rel:Be,required:ye,reversed:ye,rows:q,rowSpan:q,sandbox:Be,scope:null,scoped:ye,seamless:ye,selected:ye,shadowRootClonable:ye,shadowRootDelegatesFocus:ye,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:tt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:ye,useMap:null,value:tt,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Be,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ye,declare:ye,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:ye,noHref:ye,noShade:ye,noWrap:ye,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:tt,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ye,disableRemotePlayback:ye,prefix:null,property:null,results:q,security:null,unselectable:null},space:"html",transform:P0}),Rb=Dr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Bt,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:Be,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Er,g2:Er,glyphName:Er,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:Bt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bt,rev:Bt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bt,requiredFeatures:Bt,requiredFonts:Bt,requiredFormats:Bt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:Bt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bt,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:L0}),R0=Dr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),M0=Dr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:P0}),O0=Dr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Mb={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ob=/[A-Z]/g,Ho=/-[a-z]/g,jb=/^data[-\w.:]+$/i;function _i(e,t){const n=iu(t);let r=t,u=Mt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&jb.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Ho,Bb);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Ho.test(a)){let s=a.replace(Ob,Fb);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}u=bi}return new u(r,t)}function Fb(e){return"-"+e.toLowerCase()}function Bb(e){return e.charAt(1).toUpperCase()}const Ca=v0([D0,Pb,R0,M0,O0],"html"),Lr=v0([D0,Rb,R0,M0,O0],"svg");function Uo(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function j0(e){return e.join(" ").trim()}var F0={},Vo=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Hb=/\n/g,Ub=/^\s*/,Vb=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$b=/^:\s*/,zb=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,qb=/^[;\s]*/,Zb=/^\s+|\s+$/g,Wb=`
|
|
86
|
-
`,$o="/",zo="*",tr="",Yb="comment",Gb="declaration",Xb=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function u(b){var _=b.match(Hb);_&&(n+=_.length);var E=b.lastIndexOf(Wb);r=~E?b.length-E:r+b.length}function a(){var b={line:n,column:r};return function(_){return _.position=new s(b),l(),_}}function s(b){this.start=b,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(b){var _=new Error(t.source+":"+n+":"+r+": "+b);if(_.reason=b,_.filename=t.source,_.line=n,_.column=r,_.source=e,!t.silent)throw _}function c(b){var _=b.exec(e);if(_){var E=_[0];return u(E),e=e.slice(E.length),_}}function l(){c(Ub)}function h(b){var _;for(b=b||[];_=f();)_!==!1&&b.push(_);return b}function f(){var b=a();if(!($o!=e.charAt(0)||zo!=e.charAt(1))){for(var _=2;tr!=e.charAt(_)&&(zo!=e.charAt(_)||$o!=e.charAt(_+1));)++_;if(_+=2,tr===e.charAt(_-1))return o("End of comment missing");var E=e.slice(2,_-2);return r+=2,u(E),e=e.slice(_),r+=2,b({type:Yb,comment:E})}}function m(){var b=a(),_=c(Vb);if(_){if(f(),!c($b))return o("property missing ':'");var E=c(zb),x=b({type:Gb,property:qo(_[0].replace(Vo,tr)),value:E?qo(E[0].replace(Vo,tr)):tr});return c(qb),x}}function p(){var b=[];h(b);for(var _;_=m();)_!==!1&&(b.push(_),h(b));return b}return l(),p()};function qo(e){return e?e.replace(Zb,tr):tr}var Kb=g.commonjsGlobal&&g.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(F0,"__esModule",{value:!0});var Zo=F0.default=Jb,Qb=Kb(Xb);function Jb(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Qb.default)(e),u=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var s=a.property,o=a.value;u?t(s,o,a):o&&(n=n||{},n[s]=o)}}),n}const e_=Zo.default||Zo,Ea=B0("end"),gn=B0("start");function B0(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function t_(e){const t=gn(e),n=Ea(e);if(t&&n)return{start:t,end:n}}function Yr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Wo(e.position):"start"in e||"end"in e?Wo(e):"line"in e||"column"in e?Os(e):""}function Os(e){return Yo(e&&e.line)+":"+Yo(e&&e.column)}function Wo(e){return Os(e&&e.start)+"-"+Os(e&&e.end)}function Yo(e){return e&&typeof e=="number"?e:1}class Ct extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let u="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?u=t:!a.cause&&t&&(s=!0,u=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?a.ruleId=r:(a.source=r.slice(0,c),a.ruleId=r.slice(c+1))}if(!a.place&&a.ancestors&&a.ancestors){const c=a.ancestors[a.ancestors.length-1];c&&(a.place=c.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=u,this.line=o?o.line:void 0,this.name=Yr(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ct.prototype.file="";Ct.prototype.name="";Ct.prototype.reason="";Ct.prototype.message="";Ct.prototype.stack="";Ct.prototype.column=void 0;Ct.prototype.line=void 0;Ct.prototype.ancestors=void 0;Ct.prototype.cause=void 0;Ct.prototype.fatal=void 0;Ct.prototype.place=void 0;Ct.prototype.ruleId=void 0;Ct.prototype.source=void 0;const xi={}.hasOwnProperty,n_=new Map,r_=/[A-Z]/g,u_=/-([a-z])/g,a_=new Set(["table","tbody","thead","tfoot","tr"]),s_=new Set(["td","th"]),H0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function i_(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=m_(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=p_(n,t.jsx,t.jsxs)}const u={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Lr:Ca,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=U0(u,e,void 0);return a&&typeof a!="string"?a:u.create(e,u.Fragment,{children:a||void 0},void 0)}function U0(e,t,n){if(t.type==="element")return o_(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return c_(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return d_(e,t,n);if(t.type==="mdxjsEsm")return l_(e,t);if(t.type==="root")return f_(e,t,n);if(t.type==="text")return h_(e,t)}function o_(e,t,n){const r=e.schema;let u=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(u=Lr,e.schema=u),e.ancestors.push(t);const a=$0(e,t.tagName,!1),s=g_(e,t);let o=Ei(e,t);return a_.has(t.tagName)&&(o=o.filter(function(c){return typeof c=="string"?!Db(c):!0})),V0(e,s,a,t),Ci(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function c_(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ou(e,t.position)}function l_(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ou(e,t.position)}function d_(e,t,n){const r=e.schema;let u=r;t.name==="svg"&&r.space==="html"&&(u=Lr,e.schema=u),e.ancestors.push(t);const a=t.name===null?e.Fragment:$0(e,t.name,!0),s=b_(e,t),o=Ei(e,t);return V0(e,s,a,t),Ci(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function f_(e,t,n){const r={};return Ci(r,Ei(e,t)),e.create(t,e.Fragment,r,n)}function h_(e,t){return t.value}function V0(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ci(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function p_(e,t,n){return r;function r(u,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function m_(e,t){return n;function n(r,u,a,s){const o=Array.isArray(a.children),c=gn(r);return t(u,a,s,o,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function g_(e,t){const n={};let r,u;for(u in t.properties)if(u!=="children"&&xi.call(t.properties,u)){const a=__(e,u,t.properties[u]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&s_.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function b_(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ou(e,t.position);else{const u=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else ou(e,t.position);else a=r.value===null?!0:r.value;n[u]=a}return n}function Ei(e,t){const n=[];let r=-1;const u=e.passKeys?new Map:n_;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const c=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(c){const l=u.get(c)||0;s=c+"-"+l,u.set(c,l+1)}}const o=U0(e,a,s);o!==void 0&&n.push(o)}return n}function __(e,t,n){const r=_i(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?N0(n):j0(n)),r.property==="style"){let u=typeof n=="object"?n:x_(e,String(n));return e.stylePropertyNameCase==="css"&&(u=C_(u)),["style",u]}return[e.elementAttributeNameCase==="react"&&r.space?Mb[r.property]||r.property:r.attribute,n]}}function x_(e,t){const n={};try{e_(t,r)}catch(u){if(!e.ignoreInvalidStyle){const a=u,s=new Ct("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=H0+"#cannot-parse-style-attribute",s}}return n;function r(u,a){let s=u;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(u_,y_)),n[s]=a}}function $0(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const u=t.split(".");let a=-1,s;for(;++a<u.length;){const o=jo(u[a])?{type:"Identifier",name:u[a]}:{type:"Literal",value:u[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}r=s}else r=jo(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const u=r.value;return xi.call(e.components,u)?e.components[u]:u}if(e.evaluater)return e.evaluater.evaluateExpression(r);ou(e)}function ou(e,t){const n=new Ct("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=H0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function C_(e){const t={};let n;for(n in e)xi.call(e,n)&&(t[E_(n)]=e[n]);return t}function E_(e){let t=e.replace(r_,T_);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function y_(e,t){return t.toUpperCase()}function T_(e){return"-"+e.toLowerCase()}const es={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},k_={};function yi(e,t){const n=k_,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,u=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return z0(e,r,u)}function z0(e,t,n){if(A_(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Go(e.children,t,n)}return Array.isArray(e)?Go(e,t,n):""}function Go(e,t,n){const r=[];let u=-1;for(;++u<e.length;)r[u]=z0(e[u],t,n);return r.join("")}function A_(e){return!!(e&&typeof e=="object")}const Xo=document.createElement("i");function Ti(e){const t="&"+e+";";Xo.innerHTML=t;const n=Xo.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function $t(e,t,n,r){const u=e.length;let a=0,s;if(t<0?t=-t>u?0:u+t:t=t>u?u:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function Gt(e,t){return e.length>0?($t(e,e.length,0,t),e):t}const Ko={}.hasOwnProperty;function q0(e){const t={};let n=-1;for(;++n<e.length;)S_(t,e[n]);return t}function S_(e,t){let n;for(n in t){const u=(Ko.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){Ko.call(u,s)||(u[s]=[]);const o=a[s];I_(u[s],Array.isArray(o)?o:o?[o]:[])}}}function I_(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);$t(e,0,0,r)}function Z0(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function nn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const kt=Wn(/[A-Za-z]/),xt=Wn(/[\dA-Za-z]/),N_=Wn(/[#-'*+\--9=?A-Z^-~]/);function Ku(e){return e!==null&&(e<32||e===127)}const js=Wn(/\d/),v_=Wn(/[\dA-Fa-f]/),w_=Wn(/[!-/:-@[-`{-~]/);function ce(e){return e!==null&&e<-2}function Fe(e){return e!==null&&(e<0||e===32)}function ve(e){return e===-2||e===-1||e===32}const ya=Wn(new RegExp("\\p{P}|\\p{S}","u")),sr=Wn(/\s/);function Wn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Pr(e){const t=[];let n=-1,r=0,u=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&xt(e.charCodeAt(n+1))&&xt(e.charCodeAt(n+2)))u=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),u=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+u+1,s=""),u&&(n+=u,u=0)}return t.join("")+e.slice(r)}function we(e,t,n,r){const u=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(c){return ve(c)?(e.enter(n),o(c)):t(c)}function o(c){return ve(c)&&a++<u?(e.consume(c),o):(e.exit(n),t(c))}}const D_={tokenize:L_};function L_(e){const t=e.attempt(this.parser.constructs.contentInitial,r,u);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),we(e,t,"linePrefix")}function u(o){return e.enter("paragraph"),a(o)}function a(o){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ce(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const P_={tokenize:R_},Qo={tokenize:M_};function R_(e){const t=this,n=[];let r=0,u,a,s;return o;function o(y){if(r<n.length){const D=n[r];return t.containerState=D[1],e.attempt(D[0].continuation,c,l)(y)}return l(y)}function c(y){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,u&&k();const D=t.events.length;let S=D,I;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){I=t.events[S][1].end;break}x(r);let M=D;for(;M<t.events.length;)t.events[M][1].end={...I},M++;return $t(t.events,S+1,0,t.events.slice(D)),t.events.length=M,l(y)}return o(y)}function l(y){if(r===n.length){if(!u)return m(y);if(u.currentConstruct&&u.currentConstruct.concrete)return b(y);t.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Qo,h,f)(y)}function h(y){return u&&k(),x(r),m(y)}function f(y){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,b(y)}function m(y){return t.containerState={},e.attempt(Qo,p,b)(y)}function p(y){return r++,n.push([t.currentConstruct,t.containerState]),m(y)}function b(y){if(y===null){u&&k(),x(0),e.consume(y);return}return u=u||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:a}),_(y)}function _(y){if(y===null){E(e.exit("chunkFlow"),!0),x(0),e.consume(y);return}return ce(y)?(e.consume(y),E(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(y),_)}function E(y,D){const S=t.sliceStream(y);if(D&&S.push(null),y.previous=a,a&&(a.next=y),a=y,u.defineSkip(y.start),u.write(S),t.parser.lazy[y.start.line]){let I=u.events.length;for(;I--;)if(u.events[I][1].start.offset<s&&(!u.events[I][1].end||u.events[I][1].end.offset>s))return;const M=t.events.length;let H=M,U,P;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(U){P=t.events[H][1].end;break}U=!0}for(x(r),I=M;I<t.events.length;)t.events[I][1].end={...P},I++;$t(t.events,H+1,0,t.events.slice(M)),t.events.length=I}}function x(y){let D=n.length;for(;D-- >y;){const S=n[D];t.containerState=S[1],S[0].exit.call(t,e)}n.length=y}function k(){u.write([null]),a=void 0,u=void 0,t.containerState._closeFlow=void 0}}function M_(e,t,n){return we(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ar(e){if(e===null||Fe(e)||sr(e))return 1;if(ya(e))return 2}function Ta(e,t,n){const r=[];let u=-1;for(;++u<e.length;){const a=e[u].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const Fs={name:"attention",resolveAll:O_,tokenize:j_};function O_(e,t){let n=-1,r,u,a,s,o,c,l,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},m={...e[n][1].start};Jo(f,-c),Jo(m,c),s={type:c>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},o={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},a={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},u={type:c>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Gt(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Gt(l,[["enter",u,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=Gt(l,Ta(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Gt(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",u,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,l=Gt(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,$t(e,r-1,n-r+3,l),n=r+l.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function j_(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,u=Ar(r);let a;return s;function s(c){return a=c,e.enter("attentionSequence"),o(c)}function o(c){if(c===a)return e.consume(c),o;const l=e.exit("attentionSequence"),h=Ar(c),f=!h||h===2&&u||n.includes(c),m=!u||u===2&&h||n.includes(r);return l._open=!!(a===42?f:f&&(u||!m)),l._close=!!(a===42?m:m&&(h||!f)),t(c)}}function Jo(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const F_={name:"autolink",tokenize:B_};function B_(e,t,n){let r=0;return u;function u(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return kt(p)?(e.consume(p),s):p===64?n(p):l(p)}function s(p){return p===43||p===45||p===46||xt(p)?(r=1,o(p)):l(p)}function o(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||xt(p))&&r++<32?(e.consume(p),o):(r=0,l(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Ku(p)?n(p):(e.consume(p),c)}function l(p){return p===64?(e.consume(p),h):N_(p)?(e.consume(p),l):n(p)}function h(p){return xt(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),r=0,h):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):m(p)}function m(p){if((p===45||xt(p))&&r++<63){const b=p===45?m:f;return e.consume(p),b}return n(p)}}const xu={partial:!0,tokenize:H_};function H_(e,t,n){return r;function r(a){return ve(a)?we(e,u,"linePrefix")(a):u(a)}function u(a){return a===null||ce(a)?t(a):n(a)}}const W0={continuation:{tokenize:V_},exit:$_,name:"blockQuote",tokenize:U_};function U_(e,t,n){const r=this;return u;function u(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return ve(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function V_(e,t,n){const r=this;return u;function u(s){return ve(s)?we(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(W0,t,n)(s)}}function $_(e){e.exit("blockQuote")}const Y0={name:"characterEscape",tokenize:z_};function z_(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),u}function u(a){return w_(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const G0={name:"characterReference",tokenize:q_};function q_(e,t,n){const r=this;let u=0,a,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,s=xt,h(f))}function l(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=v_,h):(e.enter("characterReferenceValue"),a=7,s=js,h(f))}function h(f){if(f===59&&u){const m=e.exit("characterReferenceValue");return s===xt&&!Ti(r.sliceSerialize(m))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&u++<a?(e.consume(f),h):n(f)}}const ec={partial:!0,tokenize:W_},tc={concrete:!0,name:"codeFenced",tokenize:Z_};function Z_(e,t,n){const r=this,u={partial:!0,tokenize:S};let a=0,s=0,o;return c;function c(I){return l(I)}function l(I){const M=r.events[r.events.length-1];return a=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,o=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(I)}function h(I){return I===o?(s++,e.consume(I),h):s<3?n(I):(e.exit("codeFencedFenceSequence"),ve(I)?we(e,f,"whitespace")(I):f(I))}function f(I){return I===null||ce(I)?(e.exit("codeFencedFence"),r.interrupt?t(I):e.check(ec,_,D)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(I))}function m(I){return I===null||ce(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(I)):ve(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),we(e,p,"whitespace")(I)):I===96&&I===o?n(I):(e.consume(I),m)}function p(I){return I===null||ce(I)?f(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(I))}function b(I){return I===null||ce(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(I)):I===96&&I===o?n(I):(e.consume(I),b)}function _(I){return e.attempt(u,D,E)(I)}function E(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),x}function x(I){return a>0&&ve(I)?we(e,k,"linePrefix",a+1)(I):k(I)}function k(I){return I===null||ce(I)?e.check(ec,_,D)(I):(e.enter("codeFlowValue"),y(I))}function y(I){return I===null||ce(I)?(e.exit("codeFlowValue"),k(I)):(e.consume(I),y)}function D(I){return e.exit("codeFenced"),t(I)}function S(I,M,H){let U=0;return P;function P(K){return I.enter("lineEnding"),I.consume(K),I.exit("lineEnding"),B}function B(K){return I.enter("codeFencedFence"),ve(K)?we(I,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):O(K)}function O(K){return K===o?(I.enter("codeFencedFenceSequence"),X(K)):H(K)}function X(K){return K===o?(U++,I.consume(K),X):U>=s?(I.exit("codeFencedFenceSequence"),ve(K)?we(I,Y,"whitespace")(K):Y(K)):H(K)}function Y(K){return K===null||ce(K)?(I.exit("codeFencedFence"),M(K)):H(K)}}}function W_(e,t,n){const r=this;return u;function u(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const ts={name:"codeIndented",tokenize:G_},Y_={partial:!0,tokenize:X_};function G_(e,t,n){const r=this;return u;function u(l){return e.enter("codeIndented"),we(e,a,"linePrefix",5)(l)}function a(l){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?c(l):ce(l)?e.attempt(Y_,s,c)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||ce(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function c(l){return e.exit("codeIndented"),t(l)}}function X_(e,t,n){const r=this;return u;function u(s){return r.parser.lazy[r.now().line]?n(s):ce(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),u):we(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):ce(s)?u(s):n(s)}}const K_={name:"codeText",previous:J_,resolve:Q_,tokenize:ex};function Q_(e){let t=e.length-4,n=3,r,u;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)u===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(u=r):(r===t||e[r][1].type==="lineEnding")&&(e[u][1].type="codeTextData",r!==u+2&&(e[u][1].end=e[r-1][1].end,e.splice(u+2,r-u-2),t-=r-u-2,r=u+2),u=void 0);return e}function J_(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ex(e,t,n){let r=0,u,a;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),r++,o):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(a=e.enter("codeTextSequence"),u=0,h(f)):ce(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),l(f))}function l(f){return f===null||f===32||f===96||ce(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),l)}function h(f){return f===96?(e.consume(f),u++,h):u===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",l(f))}}class tx{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const u=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return r&&Hr(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Hr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Hr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Hr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Hr(this.left,n.reverse())}}}function Hr(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function X0(e){const t={};let n=-1,r,u,a,s,o,c,l;const h=new tx(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type==="lineEndingBlank"&&(a+=2),a<c.length&&c[a][1].type==="content"))for(;++a<c.length&&c[a][1].type!=="content";)c[a][1].type==="chunkText"&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,nx(h,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,u=void 0;a--;)if(s=h.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(u&&(h.get(u)[1].type="lineEndingBlank"),s[1].type="lineEnding",u=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;u&&(r[1].end={...h.get(u)[1].start},o=h.slice(u,n),o.unshift(r),h.splice(u,n-u+1,o))}}return $t(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!l}function nx(e,t){const n=e.get(t)[1],r=e.get(t)[2];let u=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,c=[],l={};let h,f,m=-1,p=n,b=0,_=0;const E=[_];for(;p;){for(;e.get(++u)[1]!==p;);a.push(u),p._tokenizer||(h=r.sliceStream(p),p.next||h.push(null),f&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(h),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(_=m+1,E.push(_),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):E.pop(),m=E.length;m--;){const x=o.slice(E[m],E[m+1]),k=a.pop();c.push([k,k+x.length-1]),e.splice(k,2,x)}for(c.reverse(),m=-1;++m<c.length;)l[b+c[m][0]]=b+c[m][1],b+=c[m][1]-c[m][0]-1;return l}const rx={resolve:ax,tokenize:sx},ux={partial:!0,tokenize:ix};function ax(e){return X0(e),e}function sx(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),u(o)}function u(o){return o===null?a(o):ce(o)?e.check(ux,s,a)(o):(e.consume(o),u)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,u}}function ix(e,t,n){const r=this;return u;function u(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),we(e,a,"linePrefix")}function a(s){if(s===null||ce(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function K0(e,t,n,r,u,a,s,o,c){const l=c||Number.POSITIVE_INFINITY;let h=0;return f;function f(x){return x===60?(e.enter(r),e.enter(u),e.enter(a),e.consume(x),e.exit(a),m):x===null||x===32||x===41||Ku(x)?n(x):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),_(x))}function m(x){return x===62?(e.enter(a),e.consume(x),e.exit(a),e.exit(u),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(o),m(x)):x===null||x===60||ce(x)?n(x):(e.consume(x),x===92?b:p)}function b(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function _(x){return!h&&(x===null||x===41||Fe(x))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(x)):h<l&&x===40?(e.consume(x),h++,_):x===41?(e.consume(x),h--,_):x===null||x===32||x===40||Ku(x)?n(x):(e.consume(x),x===92?E:_)}function E(x){return x===40||x===41||x===92?(e.consume(x),_):_(x)}}function Q0(e,t,n,r,u,a){const s=this;let o=0,c;return l;function l(p){return e.enter(r),e.enter(u),e.consume(p),e.exit(u),e.enter(a),h}function h(p){return o>999||p===null||p===91||p===93&&!c||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(a),e.enter(u),e.consume(p),e.exit(u),e.exit(r),t):ce(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||ce(p)||o++>999?(e.exit("chunkString"),h(p)):(e.consume(p),c||(c=!ve(p)),p===92?m:f)}function m(p){return p===91||p===92||p===93?(e.consume(p),o++,f):f(p)}}function J0(e,t,n,r,u,a){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(r),e.enter(u),e.consume(m),e.exit(u),s=m===40?41:m,c):n(m)}function c(m){return m===s?(e.enter(u),e.consume(m),e.exit(u),e.exit(r),t):(e.enter(a),l(m))}function l(m){return m===s?(e.exit(a),c(s)):m===null?n(m):ce(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),we(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===s||m===null||ce(m)?(e.exit("chunkString"),l(m)):(e.consume(m),m===92?f:h)}function f(m){return m===s||m===92?(e.consume(m),h):h(m)}}function Gr(e,t){let n;return r;function r(u){return ce(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),n=!0,r):ve(u)?we(e,r,n?"linePrefix":"lineSuffix")(u):t(u)}}const ox={name:"definition",tokenize:lx},cx={partial:!0,tokenize:dx};function lx(e,t,n){const r=this;let u;return a;function a(p){return e.enter("definition"),s(p)}function s(p){return Q0.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return u=nn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):n(p)}function c(p){return Fe(p)?Gr(e,l)(p):l(p)}function l(p){return K0(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function h(p){return e.attempt(cx,f,f)(p)}function f(p){return ve(p)?we(e,m,"whitespace")(p):m(p)}function m(p){return p===null||ce(p)?(e.exit("definition"),r.parser.defined.push(u),t(p)):n(p)}}function dx(e,t,n){return r;function r(o){return Fe(o)?Gr(e,u)(o):n(o)}function u(o){return J0(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return ve(o)?we(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ce(o)?t(o):n(o)}}const fx={name:"hardBreakEscape",tokenize:hx};function hx(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),u}function u(a){return ce(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const px={name:"headingAtx",resolve:mx,tokenize:gx};function mx(e,t){let n=e.length-2,r=3,u,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(u={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},$t(e,r,n-r+1,[["enter",u,t],["enter",a,t],["exit",a,t],["exit",u,t]])),e}function gx(e,t,n){let r=0;return u;function u(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),s(h)}function s(h){return h===35&&r++<6?(e.consume(h),s):h===null||Fe(h)?(e.exit("atxHeadingSequence"),o(h)):n(h)}function o(h){return h===35?(e.enter("atxHeadingSequence"),c(h)):h===null||ce(h)?(e.exit("atxHeading"),t(h)):ve(h)?we(e,o,"whitespace")(h):(e.enter("atxHeadingText"),l(h))}function c(h){return h===35?(e.consume(h),c):(e.exit("atxHeadingSequence"),o(h))}function l(h){return h===null||h===35||Fe(h)?(e.exit("atxHeadingText"),o(h)):(e.consume(h),l)}}const bx=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],nc=["pre","script","style","textarea"],_x={concrete:!0,name:"htmlFlow",resolveTo:Ex,tokenize:yx},xx={partial:!0,tokenize:kx},Cx={partial:!0,tokenize:Tx};function Ex(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function yx(e,t,n){const r=this;let u,a,s,o,c;return l;function l(v){return h(v)}function h(v){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(v),f}function f(v){return v===33?(e.consume(v),m):v===47?(e.consume(v),a=!0,_):v===63?(e.consume(v),u=3,r.interrupt?t:C):kt(v)?(e.consume(v),s=String.fromCharCode(v),E):n(v)}function m(v){return v===45?(e.consume(v),u=2,p):v===91?(e.consume(v),u=5,o=0,b):kt(v)?(e.consume(v),u=4,r.interrupt?t:C):n(v)}function p(v){return v===45?(e.consume(v),r.interrupt?t:C):n(v)}function b(v){const J="CDATA[";return v===J.charCodeAt(o++)?(e.consume(v),o===J.length?r.interrupt?t:O:b):n(v)}function _(v){return kt(v)?(e.consume(v),s=String.fromCharCode(v),E):n(v)}function E(v){if(v===null||v===47||v===62||Fe(v)){const J=v===47,ne=s.toLowerCase();return!J&&!a&&nc.includes(ne)?(u=1,r.interrupt?t(v):O(v)):bx.includes(s.toLowerCase())?(u=6,J?(e.consume(v),x):r.interrupt?t(v):O(v)):(u=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(v):a?k(v):y(v))}return v===45||xt(v)?(e.consume(v),s+=String.fromCharCode(v),E):n(v)}function x(v){return v===62?(e.consume(v),r.interrupt?t:O):n(v)}function k(v){return ve(v)?(e.consume(v),k):P(v)}function y(v){return v===47?(e.consume(v),P):v===58||v===95||kt(v)?(e.consume(v),D):ve(v)?(e.consume(v),y):P(v)}function D(v){return v===45||v===46||v===58||v===95||xt(v)?(e.consume(v),D):S(v)}function S(v){return v===61?(e.consume(v),I):ve(v)?(e.consume(v),S):y(v)}function I(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(e.consume(v),c=v,M):ve(v)?(e.consume(v),I):H(v)}function M(v){return v===c?(e.consume(v),c=null,U):v===null||ce(v)?n(v):(e.consume(v),M)}function H(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||Fe(v)?S(v):(e.consume(v),H)}function U(v){return v===47||v===62||ve(v)?y(v):n(v)}function P(v){return v===62?(e.consume(v),B):n(v)}function B(v){return v===null||ce(v)?O(v):ve(v)?(e.consume(v),B):n(v)}function O(v){return v===45&&u===2?(e.consume(v),ue):v===60&&u===1?(e.consume(v),ae):v===62&&u===4?(e.consume(v),V):v===63&&u===3?(e.consume(v),C):v===93&&u===5?(e.consume(v),_e):ce(v)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(xx,te,X)(v)):v===null||ce(v)?(e.exit("htmlFlowData"),X(v)):(e.consume(v),O)}function X(v){return e.check(Cx,Y,te)(v)}function Y(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),K}function K(v){return v===null||ce(v)?X(v):(e.enter("htmlFlowData"),O(v))}function ue(v){return v===45?(e.consume(v),C):O(v)}function ae(v){return v===47?(e.consume(v),s="",se):O(v)}function se(v){if(v===62){const J=s.toLowerCase();return nc.includes(J)?(e.consume(v),V):O(v)}return kt(v)&&s.length<8?(e.consume(v),s+=String.fromCharCode(v),se):O(v)}function _e(v){return v===93?(e.consume(v),C):O(v)}function C(v){return v===62?(e.consume(v),V):v===45&&u===2?(e.consume(v),C):O(v)}function V(v){return v===null||ce(v)?(e.exit("htmlFlowData"),te(v)):(e.consume(v),V)}function te(v){return e.exit("htmlFlow"),t(v)}}function Tx(e,t,n){const r=this;return u;function u(s){return ce(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function kx(e,t,n){return r;function r(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(xu,t,n)}}const Ax={name:"htmlText",tokenize:Sx};function Sx(e,t,n){const r=this;let u,a,s;return o;function o(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),c}function c(C){return C===33?(e.consume(C),l):C===47?(e.consume(C),S):C===63?(e.consume(C),y):kt(C)?(e.consume(C),H):n(C)}function l(C){return C===45?(e.consume(C),h):C===91?(e.consume(C),a=0,b):kt(C)?(e.consume(C),k):n(C)}function h(C){return C===45?(e.consume(C),p):n(C)}function f(C){return C===null?n(C):C===45?(e.consume(C),m):ce(C)?(s=f,ae(C)):(e.consume(C),f)}function m(C){return C===45?(e.consume(C),p):f(C)}function p(C){return C===62?ue(C):C===45?m(C):f(C)}function b(C){const V="CDATA[";return C===V.charCodeAt(a++)?(e.consume(C),a===V.length?_:b):n(C)}function _(C){return C===null?n(C):C===93?(e.consume(C),E):ce(C)?(s=_,ae(C)):(e.consume(C),_)}function E(C){return C===93?(e.consume(C),x):_(C)}function x(C){return C===62?ue(C):C===93?(e.consume(C),x):_(C)}function k(C){return C===null||C===62?ue(C):ce(C)?(s=k,ae(C)):(e.consume(C),k)}function y(C){return C===null?n(C):C===63?(e.consume(C),D):ce(C)?(s=y,ae(C)):(e.consume(C),y)}function D(C){return C===62?ue(C):y(C)}function S(C){return kt(C)?(e.consume(C),I):n(C)}function I(C){return C===45||xt(C)?(e.consume(C),I):M(C)}function M(C){return ce(C)?(s=M,ae(C)):ve(C)?(e.consume(C),M):ue(C)}function H(C){return C===45||xt(C)?(e.consume(C),H):C===47||C===62||Fe(C)?U(C):n(C)}function U(C){return C===47?(e.consume(C),ue):C===58||C===95||kt(C)?(e.consume(C),P):ce(C)?(s=U,ae(C)):ve(C)?(e.consume(C),U):ue(C)}function P(C){return C===45||C===46||C===58||C===95||xt(C)?(e.consume(C),P):B(C)}function B(C){return C===61?(e.consume(C),O):ce(C)?(s=B,ae(C)):ve(C)?(e.consume(C),B):U(C)}function O(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),u=C,X):ce(C)?(s=O,ae(C)):ve(C)?(e.consume(C),O):(e.consume(C),Y)}function X(C){return C===u?(e.consume(C),u=void 0,K):C===null?n(C):ce(C)?(s=X,ae(C)):(e.consume(C),X)}function Y(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===47||C===62||Fe(C)?U(C):(e.consume(C),Y)}function K(C){return C===47||C===62||Fe(C)?U(C):n(C)}function ue(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):n(C)}function ae(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),se}function se(C){return ve(C)?we(e,_e,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):_e(C)}function _e(C){return e.enter("htmlTextData"),s(C)}}const ki={name:"labelEnd",resolveAll:wx,resolveTo:Dx,tokenize:Lx},Ix={tokenize:Px},Nx={tokenize:Rx},vx={tokenize:Mx};function wx(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const u=r.type==="labelImage"?4:2;r.type="data",t+=u}}return e.length!==n.length&&$t(e,0,e.length,n),e}function Dx(e,t){let n=e.length,r=0,u,a,s,o;for(;n--;)if(u=e[n][1],a){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[n][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(a=n,u.type!=="labelLink")){r=2;break}}else u.type==="labelEnd"&&(s=n);const c={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},h={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",c,t],["enter",l,t]],o=Gt(o,e.slice(a+1,a+r+3)),o=Gt(o,[["enter",h,t]]),o=Gt(o,Ta(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),o=Gt(o,[["exit",h,t],e[s-2],e[s-1],["exit",l,t]]),o=Gt(o,e.slice(s+1)),o=Gt(o,[["exit",c,t]]),$t(e,a,e.length,o),e}function Lx(e,t,n){const r=this;let u=r.events.length,a,s;for(;u--;)if((r.events[u][1].type==="labelImage"||r.events[u][1].type==="labelLink")&&!r.events[u][1]._balanced){a=r.events[u][1];break}return o;function o(m){return a?a._inactive?f(m):(s=r.parser.defined.includes(nn(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):n(m)}function c(m){return m===40?e.attempt(Ix,h,s?h:f)(m):m===91?e.attempt(Nx,h,s?l:f)(m):s?h(m):f(m)}function l(m){return e.attempt(vx,h,f)(m)}function h(m){return t(m)}function f(m){return a._balanced=!0,n(m)}}function Px(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),u}function u(f){return Fe(f)?Gr(e,a)(f):a(f)}function a(f){return f===41?h(f):K0(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Fe(f)?Gr(e,c)(f):h(f)}function o(f){return n(f)}function c(f){return f===34||f===39||f===40?J0(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):h(f)}function l(f){return Fe(f)?Gr(e,h)(f):h(f)}function h(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Rx(e,t,n){const r=this;return u;function u(o){return Q0.call(r,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return r.parser.defined.includes(nn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function Mx(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),u}function u(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const Ox={name:"labelStartImage",resolveAll:ki.resolveAll,tokenize:jx};function jx(e,t,n){const r=this;return u;function u(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Fx={name:"labelStartLink",resolveAll:ki.resolveAll,tokenize:Bx};function Bx(e,t,n){const r=this;return u;function u(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const ns={name:"lineEnding",tokenize:Hx};function Hx(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),we(e,t,"linePrefix")}}const $u={name:"thematicBreak",tokenize:Ux};function Ux(e,t,n){let r=0,u;return a;function a(l){return e.enter("thematicBreak"),s(l)}function s(l){return u=l,o(l)}function o(l){return l===u?(e.enter("thematicBreakSequence"),c(l)):r>=3&&(l===null||ce(l))?(e.exit("thematicBreak"),t(l)):n(l)}function c(l){return l===u?(e.consume(l),r++,c):(e.exit("thematicBreakSequence"),ve(l)?we(e,o,"whitespace")(l):o(l))}}const Dt={continuation:{tokenize:qx},exit:Wx,name:"list",tokenize:zx},Vx={partial:!0,tokenize:Yx},$x={partial:!0,tokenize:Zx};function zx(e,t,n){const r=this,u=r.events[r.events.length-1];let a=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,s=0;return o;function o(p){const b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:js(p)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check($u,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return n(p)}function c(p){return js(p)&&++s<10?(e.consume(p),c):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(xu,r.interrupt?n:h,e.attempt(Vx,m,f))}function h(p){return r.containerState.initialBlankLine=!0,a++,m(p)}function f(p){return ve(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function qx(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(xu,u,a);function u(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,we(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!ve(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($x,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,we(e,e.attempt(Dt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Zx(e,t,n){const r=this;return we(e,u,"listItemIndent",r.containerState.size+1);function u(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function Wx(e){e.exit(this.containerState.type)}function Yx(e,t,n){const r=this;return we(e,u,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(a){const s=r.events[r.events.length-1];return!ve(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const rc={name:"setextUnderline",resolveTo:Gx,tokenize:Xx};function Gx(e,t){let n=e.length,r,u,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(u=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[u][1].type="setextHeadingText",a?(e.splice(u,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function Xx(e,t,n){const r=this;let u;return a;function a(l){let h=r.events.length,f;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){f=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),u=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===u?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),ve(l)?we(e,c,"lineSuffix")(l):c(l))}function c(l){return l===null||ce(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const Kx={tokenize:Qx};function Qx(e){const t=this,n=e.attempt(xu,r,e.attempt(this.parser.constructs.flowInitial,u,we(e,e.attempt(this.parser.constructs.flow,u,e.attempt(rx,u)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function u(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Jx={resolveAll:t1()},eC=e1("string"),tC=e1("text");function e1(e){return{resolveAll:t1(e==="text"?nC:void 0),tokenize:t};function t(n){const r=this,u=this.parser.constructs[e],a=n.attempt(u,s,o);return s;function s(h){return l(h)?a(h):o(h)}function o(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),c}function c(h){return l(h)?(n.exit("data"),a(h)):(n.consume(h),c)}function l(h){if(h===null)return!0;const f=u[h];let m=-1;if(f)for(;++m<f.length;){const p=f[m];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function t1(e){return t;function t(n,r){let u=-1,a;for(;++u<=n.length;)a===void 0?n[u]&&n[u][1].type==="data"&&(a=u,u++):(!n[u]||n[u][1].type!=="data")&&(u!==a+2&&(n[a][1].end=n[u-1][1].end,n.splice(a+2,u-a-2),u=a+2),a=void 0);return e?e(n,r):n}}function nC(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],u=t.sliceStream(r);let a=u.length,s=-1,o=0,c;for(;a--;){const l=u[a];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(l===-2)c=!0,o++;else if(l!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const l={type:n===e.length||c||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const rC={42:Dt,43:Dt,45:Dt,48:Dt,49:Dt,50:Dt,51:Dt,52:Dt,53:Dt,54:Dt,55:Dt,56:Dt,57:Dt,62:W0},uC={91:ox},aC={[-2]:ts,[-1]:ts,32:ts},sC={35:px,42:$u,45:[rc,$u],60:_x,61:rc,95:$u,96:tc,126:tc},iC={38:G0,92:Y0},oC={[-5]:ns,[-4]:ns,[-3]:ns,33:Ox,38:G0,42:Fs,60:[F_,Ax],91:Fx,92:[fx,Y0],93:ki,95:Fs,96:K_},cC={null:[Fs,Jx]},lC={null:[42,95]},dC={null:[]},fC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:lC,contentInitial:uC,disable:dC,document:rC,flow:sC,flowInitial:aC,insideSpan:cC,string:iC,text:oC},Symbol.toStringTag,{value:"Module"}));function hC(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const u={},a=[];let s=[],o=[];const c={attempt:M(S),check:M(I),consume:k,enter:y,exit:D,interrupt:M(I,{interrupt:!0})},l={code:null,containerState:{},defineSkip:_,events:[],now:b,parser:e,previous:null,sliceSerialize:m,sliceStream:p,write:f};let h=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function f(B){return s=Gt(s,B),E(),s[s.length-1]!==null?[]:(H(t,0),l.events=Ta(a,l.events,l),l.events)}function m(B,O){return mC(p(B),O)}function p(B){return pC(s,B)}function b(){const{_bufferIndex:B,_index:O,line:X,column:Y,offset:K}=r;return{_bufferIndex:B,_index:O,line:X,column:Y,offset:K}}function _(B){u[B.line]=B.column,P()}function E(){let B;for(;r._index<s.length;){const O=s[r._index];if(typeof O=="string")for(B=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<O.length;)x(O.charCodeAt(r._bufferIndex));else x(O)}}function x(B){h=h(B)}function k(B){ce(B)?(r.line++,r.column=1,r.offset+=B===-3?2:1,P()):B!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=B}function y(B,O){const X=O||{};return X.type=B,X.start=b(),l.events.push(["enter",X,l]),o.push(X),X}function D(B){const O=o.pop();return O.end=b(),l.events.push(["exit",O,l]),O}function S(B,O){H(B,O.from)}function I(B,O){O.restore()}function M(B,O){return X;function X(Y,K,ue){let ae,se,_e,C;return Array.isArray(Y)?te(Y):"tokenize"in Y?te([Y]):V(Y);function V(Q){return de;function de(le){const ie=le!==null&&Q[le],xe=le!==null&&Q.null,$e=[...Array.isArray(ie)?ie:ie?[ie]:[],...Array.isArray(xe)?xe:xe?[xe]:[]];return te($e)(le)}}function te(Q){return ae=Q,se=0,Q.length===0?ue:v(Q[se])}function v(Q){return de;function de(le){return C=U(),_e=Q,Q.partial||(l.currentConstruct=Q),Q.name&&l.parser.constructs.disable.null.includes(Q.name)?ne():Q.tokenize.call(O?Object.assign(Object.create(l),O):l,c,J,ne)(le)}}function J(Q){return B(_e,C),K}function ne(Q){return C.restore(),++se<ae.length?v(ae[se]):ue}}}function H(B,O){B.resolveAll&&!a.includes(B)&&a.push(B),B.resolve&&$t(l.events,O,l.events.length-O,B.resolve(l.events.slice(O),l)),B.resolveTo&&(l.events=B.resolveTo(l.events,l))}function U(){const B=b(),O=l.previous,X=l.currentConstruct,Y=l.events.length,K=Array.from(o);return{from:Y,restore:ue};function ue(){r=B,l.previous=O,l.currentConstruct=X,l.events.length=Y,o=K,P()}}function P(){r.line in u&&r.column<2&&(r.column=u[r.line],r.offset+=u[r.line]-1)}}function pC(e,t){const n=t.start._index,r=t.start._bufferIndex,u=t.end._index,a=t.end._bufferIndex;let s;if(n===u)s=[e[n].slice(r,a)];else{if(s=e.slice(n,u),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[u].slice(0,a))}return s}function mC(e,t){let n=-1;const r=[];let u;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
|
|
85
|
+
`),M=new Blob([I],{type:"text/plain"}),H=URL.createObjectURL(M),U=document.createElement("a");U.href=H,U.download=`replacement-request-${e.id}.txt`,document.body.appendChild(U),U.click(),document.body.removeChild(U),URL.revokeObjectURL(H)},k=I=>{switch(I){case he.PENDING:case he.PROCESSING:return Le.statusPending;case he.APPROVED:case he.AUTO_APPROVED:case he.COMPLETED:return Le.statusApproved;case he.DECLINED:case he.FAILED:return Le.statusDeclined;case he.CANCELLED:case he.EXPIRED:return Le.statusCancelled;default:return Le.statusPending}},y=I=>{switch(I){case he.PENDING:case he.PROCESSING:return"In Progress";case he.APPROVED:case he.AUTO_APPROVED:case he.COMPLETED:return"Approved";case he.DECLINED:return"Denied";case he.FAILED:return"Failed";case he.CANCELLED:case he.EXPIRED:return"Cancelled";default:return"In Progress"}};return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Le.replacementRequestItem,onClick:I=>{I.stopPropagation(),b()},children:[i.jsxs("div",{className:Le.replacementRequestHeader,children:[i.jsxs("span",{className:Le.replacementRequestId,children:["ID: ",e.id]}),i.jsx("span",{className:g.clx(Le.statusBadge,k(e.status)),children:y(e.status)})]}),i.jsxs("div",{className:Le.replacementRequestDescription,children:[(e.status===he.PENDING||e.status===he.PROCESSING)&&"We're currently investigating your replacement. It may take a minimum of 24-48 hours for our team to get back to you.",(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&"We've approved your replacement request. Your replaced products are attached to this section.",e.status===he.DECLINED&&"We've denied your replacement request. You will not be able to request a replacement for these products in the future.",(e.status===he.CANCELLED||e.status===he.EXPIRED)&&"Your replacement request has been cancelled."]})]}),u&&i.jsx(N.Modal,{close:()=>a(!1),withAnimation:!f,children:i.jsxs("div",{className:g.clx(Le.replacementModal,{[Le.replacementModalAntistock]:f}),onClick:I=>I.stopPropagation(),children:[i.jsxs("div",{className:Le.replacementModalHeader,children:[i.jsx("h3",{id:"h3",children:"Replacement Request"}),i.jsx("button",{className:Le.closeButton,onClick:()=>a(!1),children:i.jsx(N.Icon,{name:"X"})})]}),i.jsxs("div",{className:Le.replacementModalContent,children:[i.jsxs("div",{className:Le.statusSection,children:[i.jsx("span",{className:g.clx(Le.statusBadge,k(e.status)),children:y(e.status)}),i.jsxs("h4",{className:Le.statusTitle,children:[(e.status===he.PENDING||e.status===he.PROCESSING)&&"Your Replacement Is In Progress",(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&"Your Replacement Was Approved",e.status===he.DECLINED&&"Your Replacement Was Denied",e.status===he.FAILED&&"Your Replacement Was Failed",(e.status===he.CANCELLED||e.status===he.EXPIRED)&&"Your Replacement Was Cancelled"]}),i.jsxs("p",{className:Le.statusDescription,children:[(e.status===he.PENDING||e.status===he.PROCESSING)&&"We're currently investigating your request. It may take a minimum of 24-48 hours for our team to get back to you.",(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&"We've approved your replacement request. Your replaced products are attached below.",e.status===he.DECLINED&&"We've denied your replacement request. You will not be able to request a replacement for these products in the future.",e.status===he.FAILED&&"We've failed your replacement request. You will not be able to request a replacement for these products in the future.",(e.status===he.CANCELLED||e.status===he.EXPIRED)&&"Your replacement request has been cancelled."]})]}),(e.status===he.APPROVED||e.status===he.AUTO_APPROVED||e.status===he.COMPLETED)&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Le.productsSection,children:[i.jsxs("div",{className:Le.actionButtons,children:[i.jsxs(N.Button,{type:"Secondary",onClick:E,style:{display:"flex",alignItems:"center",gap:"5px",height:"32px"},children:[i.jsx(N.Icon,{name:"Copy"}),"Copy"]}),i.jsxs(N.Button,{type:"Secondary",onClick:x,style:{display:"flex",alignItems:"center",gap:"5px",height:"32px"},children:[i.jsx(N.Icon,{name:"ArrowLineDown"}),"Download"]})]}),i.jsx("div",{className:Le.productsList,children:(D=e.replacementItems)==null?void 0:D.map((I,M)=>i.jsx("div",{className:Le.productItem,children:i.jsx("span",{children:I.replacementSerialKey})},M))})]}),i.jsxs("div",{className:Le.previouslyDeliveredSection,children:[i.jsxs("div",{className:Le.previouslyDeliveredHeader,onClick:()=>l(!c),children:[i.jsx("span",{className:Le.previouslyDeliveredTitle,children:"Previously Delivered Products"}),i.jsx(N.Icon,{name:"CaretDown",width:16,height:16,fill:"var(--text-secondary)",className:g.clx(Le.caretIcon,{[Le.caretIconRotated]:c})})]}),c&&i.jsx("div",{className:Le.previouslyDeliveredContent,children:((S=e.replacementItems)==null?void 0:S.map((I,M)=>i.jsx("div",{className:Le.previouslyDeliveredProductItem,children:i.jsx("span",{children:I.originalSerialKey})},M)))||i.jsx("div",{className:Le.noProducts,children:"No products found"})})]})]})]}),i.jsx("div",{className:Le.replacementModalFooter,children:e.status===he.PENDING&&i.jsx(N.Button,{type:"Secondary",onClick:_,disabled:s,style:{width:"fit-content",margin:"0 auto 8px"},children:s?"CANCELLING...":"CANCEL REPLACEMENT REQUEST"})})]})})]})},X9="_replacementModal_1f8b8_1",K9="_replacementModalAntistock_1f8b8_12",Q9="_replacementModalHeader_1f8b8_17",J9="_title_1f8b8_25",eg="_closeButton_1f8b8_32",tg="_replacementModalContent_1f8b8_46",ng="_bottomSheet_1f8b8_53",rg="_content_1f8b8_61",ug="_productReplaceContainer_1f8b8_65",ag="_scrollableBox_1f8b8_76",sg="_searchContainer_1f8b8_90",ig="_productItem_1f8b8_94",og="_productItemError_1f8b8_125",cg="_scrollIndicator_1f8b8_129",lg="_noResults_1f8b8_138",dg="_replacementForm_1f8b8_148",fg="_formField_1f8b8_155",hg="_replacementModalFooter_1f8b8_355",pg="_fieldError_1f8b8_361",mg="_requestButton_1f8b8_367",Ze={replacementModal:X9,replacementModalAntistock:K9,replacementModalHeader:Q9,title:J9,closeButton:eg,replacementModalContent:tg,bottomSheet:ng,content:rg,productReplaceContainer:ug,scrollableBox:ag,searchContainer:sg,productItem:ig,productItemError:og,scrollIndicator:cg,noResults:lg,replacementForm:dg,formField:fg,replacementModalFooter:hg,fieldError:pg,requestButton:mg},gg=({isOpen:e,onClose:t,product:n,orderId:r,accessToken:u,onSuccess:a,allowedReplacementReasons:s})=>{const{isAntistock:o}=g.useGeneralStore(),{setNotifications:c,notifications:l}=g.useNotificationStore(),[h,f]=L.useState(null),[m,p]=L.useState((s==null?void 0:s[0])||""),[b,_]=L.useState(""),[E,x]=L.useState(""),[k,y]=L.useState([]),[D,S]=L.useState(!1),[I,M]=L.useState({}),H=L.useRef(null),U=L.useRef(null),P=L.useRef(null),B=L.useMemo(()=>{var C;return((C=n.deliveryCategories)==null?void 0:C.filter(V=>V.type==="SERIALS").flatMap(V=>V.deliveryItems))||[]},[n.deliveryCategories]),O=L.useMemo(()=>n.replacementRequests?new Set(n.replacementRequests.flatMap(C=>C.replacementItems||[]).map(C=>C.originalSerialKey)):new Set,[n.replacementRequests]),X=L.useMemo(()=>B.filter(C=>!O.has(C.serialKey)),[B,O]),Y=L.useMemo(()=>new nl.Fuse(X,{keys:["serialKey"],threshold:.4}),[X]),K=L.useMemo(()=>E.trim()?Y.search(E).map(C=>C.item):X,[E,Y,X]),ue=C=>{y(V=>V.includes(C)?V.filter(te=>te!==C):[...V,C]),I.selectedItems&&M(V=>({...V,selectedItems:void 0}))},ae=()=>{y([]),f(null),p((s==null?void 0:s[0])||""),_(""),x(""),M({})},se=()=>{ae(),t()},_e=async()=>{var V,te,v,J;M({});const C={};if(k.length===0&&(C.selectedItems="Please select at least one item to replace"),(!h||h.length===0)&&(C.images="Please add at least one image"),m.trim()||(C.reason="Please select a reason for replacement"),Object.keys(C).length>0){M(C),setTimeout(()=>{C.selectedItems&&H.current?H.current.scrollIntoView({behavior:"smooth",block:"center"}):C.images&&U.current?U.current.scrollIntoView({behavior:"smooth",block:"center"}):C.reason&&P.current&&P.current.scrollIntoView({behavior:"smooth",block:"center"})},100);return}if(!r||!u){c([...l,{id:g.v4(),message:"Missing order information",status:"error"}]);return}S(!0);try{if(!n.partOrderId){c([...l,{id:g.v4(),message:"Part order ID is required",status:"error"}]);return}const ne=await C2(r,u,{partOrderId:n.partOrderId,deliveryItemIds:k,imageIds:(h==null?void 0:h.map(Q=>Q.id))||[],reason:m,message:b});c([...l,{id:g.v4(),message:((V=ne.data)==null?void 0:V.message)||"Replacement request submitted successfully",status:"success"}]),(te=ne.data)!=null&&te.id&&((v=ne.data)!=null&&v.status)&&(a==null||a({id:ne.data.id,status:ne.data.status})),se()}catch(ne){console.log({error:ne});let Q="Failed to submit replacement request",de="";const le=ne;if((J=le==null?void 0:le.response)!=null&&J.data){const ie=le.response.data;ie.message&&ie.errors&&Array.isArray(ie.errors)?(de=ie.message,Q=ie.errors.join(", ")):ie.errors&&Array.isArray(ie.errors)?Q=ie.errors.join(", "):ie.message&&(Q=ie.message)}else ne instanceof Error&&(Q=ne.message);c([...l,{id:g.v4(),message:Q,status:"error",label:de}])}finally{S(!1)}};return!e||X.length===0?null:i.jsx(N.Modal,{close:se,withAnimation:!o,children:i.jsxs("div",{className:g.clx(Ze.replacementModal,{[Ze.replacementModalAntistock]:o}),onClick:C=>C.stopPropagation(),children:[i.jsxs("div",{className:Ze.replacementModalHeader,children:[i.jsx("h3",{id:"h3 ",className:Ze.title,children:"Request Replacement"}),i.jsx("button",{className:Ze.closeButton,onClick:se,children:i.jsx(N.Icon,{name:"X"})})]}),i.jsx("div",{className:Ze.replacementModalContent,children:i.jsx("div",{className:Ze.bottomSheet,children:i.jsxs("div",{className:Ze.content,children:[i.jsx(N.Tip,{type:"info",message:"Info: Based on your replacement policy, it may take up to 24-48 hours for our team to review your request.",showCloseButton:!1,style:{marginBottom:"16px"}}),i.jsxs("div",{className:Ze.productReplaceContainer,children:[i.jsx("div",{className:Ze.searchContainer,children:i.jsx(N.Input,{onChange:C=>{x(C)},isSearch:!0,value:E,placeholder:"Search for delivered stock",label:"Product Replace List *"})}),i.jsx("div",{ref:H,className:g.clx(Ze.scrollableBox,{[Ze.scrollableBoxAntistock]:o}),children:K.length>0?K.map(C=>i.jsxs("div",{className:g.clx(Ze.productItem,{[Ze.productItemError]:I.selectedItems&&!k.includes(C.id)}),onClick:()=>ue(C.id),children:[i.jsx(N.Checkbox,{value:k.includes(C.id),onChange:()=>ue(C.id)}),i.jsx("span",{children:C.serialKey})]},C.id)):i.jsx("div",{className:Ze.noResults,children:i.jsxs("p",{children:['No items found matching "',E,'"']})})}),I.selectedItems&&i.jsx("div",{className:Ze.fieldError,children:I.selectedItems}),i.jsx("div",{className:Ze.scrollIndicator,children:i.jsx("p",{children:"To continue with your replacement request, scroll down."})})]}),i.jsxs("div",{className:Ze.replacementForm,children:[i.jsx("div",{className:Ze.formField,ref:U,children:i.jsx(N.ImagesLoader,{images:h,onChange:C=>{f(C),I.images&&M(V=>({...V,images:void 0}))},multiple:!0,label:"Images",required:!0,enablePaste:e})}),i.jsx("div",{className:Ze.formField,ref:P,children:i.jsx(N.Select,{options:(s==null?void 0:s.filter(C=>C!==m))||[],onChange:C=>{p(C),I.reason&&M(V=>({...V,reason:void 0}))},value:m,isSearch:!1,label:"Reason *",isMaxLength:!1,error:I.reason})}),i.jsx("div",{className:Ze.formField,children:i.jsx(N.Textarea,{placeholder:"Use this space to provide our team with additional details regarding your replacement request.",onChange:_,label:"Your Message (Optional)",value:b})})]})]})})}),i.jsx("div",{className:Ze.replacementModalFooter,children:i.jsx(N.Button,{type:"Primary",className:Ze.requestButton,onClick:_e,disabled:D,children:D?"SUBMITTING...":"REQUEST REPLACEMENT"})})]})})},Ca=({isOrder:e,product:t,isApplicableForReplacement:n,orderId:r,accessToken:u,allowedReplacementReasons:a})=>{var M;const{shopGeneral:s}=g.useStorefrontStore(),o=t.subscriptionSettings,{cart:c}=du(),{isAntistock:l}=g.useGeneralStore(),[h,f]=L.useState(!1),{setIsOpen:m}=g.useModalStore(),p=L.useMemo(()=>t.replacementRequests?new Set(t.replacementRequests.flatMap(H=>H.replacementItems||[]).map(H=>H.originalSerialKey)):new Set,[t.replacementRequests]),b=L.useMemo(()=>{var U;return(((U=t.deliveryCategories)==null?void 0:U.filter(P=>P.type==="SERIALS").flatMap(P=>P.deliveryItems))||[]).filter(P=>!p.has(P.serialKey)).length},[t.deliveryCategories,p]),_=t.processingInfo,[E,x]=L.useState(null),[k,y]=L.useState(!1),[D,S]=L.useState(null);L.useEffect(()=>{if(!_){x(null),y(!1),S(null);return}const H=()=>{const P=Date.now(),B=new Date(_.processingStartTime).getTime(),O=P-B,X=_.expectedProcessingMs;if(S(O>0?O:0),O<=0||X<=0){x(0),y(!1);return}if(O<X){const Y=Math.min(100,Math.max(0,O/X*100));x(Math.round(Y)),y(!1)}else x(100),y(!0)};H();const U=window.setInterval(H,1e3);return()=>{window.clearInterval(U)}},[_]);const I=()=>{m(!0),f(!0)};return i.jsxs("div",{className:`${je.checkoutProduct} ${e?je.isOrder:""}`,children:[i.jsxs("div",{className:je.productDetails,children:[i.jsx("div",{className:`${je.productImage} ${e?je.isOrderImage:""} ${l?je.productImageAntistock:""}`,children:t!=null&&t.image?i.jsx("img",{className:je.image,src:g.convertCfImageIdToUrl(t.image.cfId,"100")}):i.jsx(N.Icon,{name:"Image",fill:"var(--text-secondary)"})}),i.jsx("div",{className:g.clx(je.productInfo,{[je.productInfoOverrodePrice]:t.variantsGateways&&c.gateway&&t.variantsGateways.some(H=>H.name===c.gateway&&H.overrodePrice)}),children:i.jsxs("div",{className:je.productHeader,children:[i.jsx("h2",{className:je.productName,id:"h5",children:t.name}),i.jsxs("span",{className:je.quantityBadge,id:"md",children:[t.price.quantity,"x"]})]})}),t.chargeType==="RECURRING"&&i.jsx("p",{className:je.productPrice,id:"md",children:o&&`${g.formatPrice(o.price)} / ${g.normalizeInterval(o.recurringIntervalDays||0)}${o.entryFee?" + "+g.formatPrice(o.entryFee):""}`}),t.chargeType==="ONE_TIME"&&i.jsx(i.Fragment,{children:t.variantsGateways&&c.gateway&&t.variantsGateways.some(H=>H.name===c.gateway&&H.overrodePrice)?i.jsxs("div",{className:je.priceContainer,children:[i.jsx("span",{className:je.originalPrice,id:"md",children:g.formatPrice(t.price)}),i.jsx("span",{className:je.overridePrice,id:"md",children:g.formatPrice(((M=t.variantsGateways.find(H=>H.name===c.gateway))==null?void 0:M.overrodePrice)||t.price)})]}):i.jsx("p",{className:je.productPrice,id:"md",children:g.formatPrice(t.price)})})]}),_&&i.jsx("div",{style:{marginTop:"1.5rem",marginBottom:"0.5rem",width:"100%"},children:!k&&E!==null?i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[i.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",color:"var(--text-secondary)",fontSize:"var(--font-size-sm)"},children:[i.jsx("span",{children:"Processing..."}),i.jsxs("span",{children:["Time Passed:"," ",(()=>{if(D===null||D<0)return"00:00:00";const H=Math.floor(D/1e3),U=Math.floor(H/3600).toString().padStart(2,"0"),P=Math.floor(H%3600/60).toString().padStart(2,"0"),B=(H%60).toString().padStart(2,"0");return`${U}:${P}:${B}`})()]})]}),i.jsx(hi,{percent:E})]}):i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[i.jsx(N.Loader,{style:{color:"var(--text-primary)"}}),i.jsx(N.Tip,{id:"processing-tip",type:"info",padding:0,showCloseButton:!1,message:`This order is taking longer than expected, but we are still working on your delivery. If it is not processed before ${_.processingExpiresAt?new Date(_.processingExpiresAt).toLocaleString():""}, your payment will be automatically refunded.`})]})}),t.deliveryCategories&&i.jsx("div",{className:je.deliveryCategories,children:t.deliveryCategories.map(H=>i.jsx(b9,{deliveryConfiguration:H},H.id))}),t.customerNote&&i.jsxs("div",{className:je.customerNote,style:l?{border:"1px solid var(--border-secondary)"}:void 0,children:[i.jsxs("div",{className:je.noteHeader,children:[(s==null?void 0:s.info.logo)&&i.jsx("div",{className:je.logoContainer,children:i.jsx("img",{src:g.convertCfImageIdToUrl(s==null?void 0:s.info.logo.cfId,"200")})}),i.jsx("p",{className:je.shopName,id:"md",children:s==null?void 0:s.info.name})]}),i.jsx("p",{className:je.noteContent,id:"md",children:t.customerNote})]}),t.replacementRequests&&t.replacementRequests.length===0&&n&&b>0&&i.jsx(N.Button,{type:"Secondary",className:je.replacementButton,onClick:H=>{H.stopPropagation(),I()},children:i.jsx("p",{className:je.replacementButtonText,children:"Request Replacement"})}),t.replacementRequests&&t.replacementRequests.length>0&&n&&i.jsxs("div",{className:je.replacementRequests,children:[i.jsx("h4",{className:je.replacementRequestsTitle,children:"Replacements"}),i.jsx("div",{className:je.replacementRequestsList,children:t.replacementRequests.map(H=>i.jsx(G9,{item:H,orderId:r,accessToken:u,onCancel:()=>{}},H.id))}),b>0&&i.jsx(N.Button,{type:"Secondary",onClick:H=>{H.stopPropagation(),I()},children:i.jsx("p",{className:je.replacementButtonText,children:"Request New Replacement"})})]}),i.jsx(gg,{isOpen:h,onClose:()=>f(!1),product:t,orderId:r,accessToken:u,allowedReplacementReasons:a})]})},bg="_coupon_dkjzv_1",_g="_couponApplied_dkjzv_7",xg="_discount_dkjzv_17",Cg="_removeButton_dkjzv_23",Eg="_removeButtonText_dkjzv_27",yg="_couponInput_dkjzv_31",Tg="_couponInputContainer_dkjzv_37",wn={coupon:bg,couponApplied:_g,discount:xg,removeButton:Cg,removeButtonText:Eg,couponInput:yg,couponInputContainer:Tg},kg=({applyCoupon:e,couponData:t,discount:n,removeCoupon:r,gateway:u})=>{const[a,s]=L.useState(null),[o,c]=L.useState(!1),{isAntistock:l}=g.useGeneralStore();return i.jsxs("div",{className:wn.coupon,children:[o&&i.jsx(ir,{speed:2,width:500,height:48,viewBox:"0 0 500 48",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",className:wn.skeleton,style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"10",ry:"10",width:"100%",height:"48"})}),!o&&(t?i.jsxs("div",{className:wn.couponApplied,style:l?{border:"1px solid var(--border-secondary)"}:void 0,children:[i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"}),i.jsxs("p",{id:"md",style:{color:l?"var(--text-primary)":void 0},children:[a," is applied"," ",i.jsxs("span",{className:wn.discount,children:["-",n," ",!t.isFixed&&`(${t.discount}%)`]})]}),i.jsx("button",{className:wn.removeButton,onClick:r,children:i.jsx("span",{className:wn.removeButtonText,children:"Remove"})})]}):i.jsxs("div",{className:wn.couponInput,children:[i.jsxs("div",{className:wn.couponInputContainer,children:[i.jsx(N.Input,{placeholder:"Enter a discount code",value:a||"",onChange:h=>{s(h===""?null:h)}}),i.jsx(N.Button,{onClick:async()=>{c(!0),a&&await e(a),c(!1)},disabled:!u||!a,type:"Primary",children:"Apply"})]}),!l&&!u&&i.jsx(N.Tip,{type:"warning",message:"The discount is related to the method of payment. Select to enter.",id:"md"})]}))]})},k0=({cart:e,products:t,applyCoupon:n,applyCouponPending:r,coupon:u,totalAndDiscount:a,removeCoupon:s})=>{const{priceAdjustment:o,serviceFee:c,replacementConfig:l}=g.useCartStore(),[h,f]=L.useState(!1),m=L.useMemo(()=>e.parts.map(y=>{const D=t.find(I=>I.id===y.productId),S=D==null?void 0:D.variants.find(I=>I.id===y.productVariantId);return y.chargeType==="RECURRING"&&f(!0),{id:(D==null?void 0:D.id)||0,image:D==null?void 0:D.images[0],name:(()=>{const I=(D==null?void 0:D.name)||"",M=(S==null?void 0:S.name)||"";return!I&&!M?"":!M||I===M?I:I?`${I} (${M})`:M})(),description:"",price:{quantity:y.quantity,amount:(S==null?void 0:S.price.amount)||0,currency:S==null?void 0:S.price.currency},subscriptionSettings:S==null?void 0:S.subscriptionSettings,chargeType:y.chargeType,variantsGateways:S==null?void 0:S.gateways}}),[e,t]),p=L.useMemo(()=>{const y=m[0];if(y!=null&&y.variantsGateways&&e.gateway){const D=y.variantsGateways.find(S=>S.name===e.gateway&&S.overrodePrice);if(D!=null&&D.overrodePrice)return D.overrodePrice.currency}return(y==null?void 0:y.price.currency)||"USD"},[m,e.gateway]),b=new Intl.NumberFormat("en-US",{style:"currency",currency:p}),_=L.useMemo(()=>u&&!u.isFixed&&u.discount===100||u&&u.isFixed&&u.discount&&u.discount>=a.total?a.total:a.totalWithDiscount?a.total-a.totalWithDiscount:0,[a,u]),E=o?(o==null?void 0:o.fixedAmount)+Math.round((a.totalWithDiscount!==void 0?a.totalWithDiscount:a.total-_)*((o==null?void 0:o.percentage)/100)):null,x=L.useMemo(()=>{const y=e.usePriorityReplacement===!0,D=y?l==null?void 0:l.priorityReplacement:null;if(!y||!(D!=null&&D.enabled))return{label:"",amount:null};const S=a.totalWithDiscount!==void 0?a.totalWithDiscount:a.total-_,I=(D.fixedFee||0)+S*(D.feePercentage||0)/100;return{label:D.name||"Priority Replacement",amount:I}},[e.usePriorityReplacement,l,a,_]),k=L.useMemo(()=>{if(!c)return null;const y=a.totalWithDiscount!==void 0?a.totalWithDiscount:a.total-_,I=((o&&E!==null&&E!==void 0?o.isDiscount?y-E:y+E:y)+(x.amount||0))*(c.percentage/100);return c.fixedAmount+I},[c,a,_,o,E,x]);return i.jsx("div",{className:Xn.checkoutItemsContainer,children:i.jsxs("div",{className:Xn.innerContainer,children:[i.jsx(xa,{}),i.jsxs("div",{className:Xn.headerSection,children:[i.jsx("header",{className:Xn.header,children:i.jsx("h1",{id:"h3",children:"Checkout"})}),i.jsx("div",{className:Xn.productsContainer,children:m.map(y=>i.jsx(Ca,{product:y},y.id))}),i.jsx("div",{className:Xn.couponContainer,children:i.jsx(kg,{applyCoupon:n,applyCouponPending:r,couponData:u,discount:b.format(_),removeCoupon:s,gateway:e.gateway})}),i.jsx(wr,{formatter:b,coupon:u,total:a.total,discount:_,totalWithDiscount:a.totalWithDiscount,feeOrDiscount:h?null:E,serviceFeeAmount:h?null:k,replacementLabel:x.amount?x.label:"",replacementAmount:h?null:x.amount})]}),i.jsx("div",{className:Xn.checkoutFooter,children:i.jsx(qn,{})})]})})},Ag="_checkoutOperational_a8jyy_1",Sg="_innerContainer_a8jyy_16",Ig="_innerContainerAntistock_a8jyy_26",Ng="_paymentMethodsSectionAntistock_a8jyy_38",vg="_continueButtonAntistock_a8jyy_48",wg="_checkoutFooterAntistock_a8jyy_58",Dg="_antistock_a8jyy_69",Lg="_checkoutOperationalAntistock_a8jyy_74",Pg="_loginSection_a8jyy_85",Rg="_paymentMethodsSection_a8jyy_38",Mg="_socialConnectSection_a8jyy_99",Og="_socialConnectLabel_a8jyy_102",jg="_socialConnectContent_a8jyy_106",Fg="_continueButton_a8jyy_48",Bg="_button_a8jyy_114",Hg="_checkoutFooter_a8jyy_58",ft={checkoutOperational:Ag,innerContainer:Sg,innerContainerAntistock:Ig,paymentMethodsSectionAntistock:Ng,continueButtonAntistock:vg,checkoutFooterAntistock:wg,antistock:Dg,checkoutOperationalAntistock:Lg,loginSection:Pg,paymentMethodsSection:Rg,socialConnectSection:Mg,socialConnectLabel:Og,socialConnectContent:jg,continueButton:Fg,button:Bg,checkoutFooter:Hg},Ug="_customFields_uhcib_2",Vg="_checkboxWrapper_uhcib_9",$g="_textareaWrapper_uhcib_16",zg="_inputWrapper_uhcib_17",qg="_requiredStar_uhcib_27",gr={customFields:Ug,checkboxWrapper:Vg,textareaWrapper:$g,inputWrapper:zg,requiredStar:qg},A0=({customFields:e,setCustomFields:t})=>{if(e.length===0)return null;const n=e.map(r=>i.jsx(S0,{customField:r,setCustomFields:t},r.name));return i.jsx("div",{className:gr.customFields,children:n})},S0=({customField:e,setCustomFields:t})=>{const n=r=>{t(u=>u.map(a=>a.name===e.name?{...a,value:r}:a))};return i.jsx(Zg,{value:e.value??"",placeholder:e.placeholder,required:e.required,defaultValue:e.defaultValue,type:e.type,onValueChange:n,label:e.name,regex:e.regex})},Zg=({label:e,type:t,defaultValue:n,value:r,placeholder:u,regex:a,required:s,onValueChange:o})=>{if(L.useEffect(()=>{r===""&&n!==void 0&&o(String(n))},[]),t===jn.Checkbox)return i.jsxs("label",{className:gr.checkboxWrapper,children:[i.jsx(N.CheckboxSettings,{value:r==="true",onChange:l=>o(l?"true":"false")}),i.jsxs("p",{className:gr.checkboxLabel,children:[e,s&&i.jsx("span",{className:gr.requiredStar,children:"*"})]})]});if(t===jn.Hidden)return i.jsx("input",{type:"hidden",value:String(n??""),required:s});const c=l=>{let h;if(t===jn.Number)h=/^\d*$/;else if(a)try{h=new RegExp(a)}catch(f){console.error("Invalid regex pattern:",a,f),h=/.*/}else h=/.*/;h.test(l)&&o(l)};return t===jn.Textarea?i.jsx("div",{className:gr.textareaWrapper,children:i.jsx(N.Textarea,{label:e,value:r,placeholder:u,onChange:c,required:s})}):i.jsx("div",{className:gr.inputWrapper,children:i.jsx(N.Input,{type:t===jn.Number?"number":"text",placeholder:t===jn.Number?"Type something number...":u,label:e,value:r,required:s,onChange:c})})},Wg="_connectedContainer_1rxr8_1",Yg="_userInfo_1rxr8_10",Gg="_avatar_1rxr8_16",Xg="_avatarImage_1rxr8_26",Mu={connectedContainer:Wg,userInfo:Yg,avatar:Gg,avatarImage:Xg},I0=({customerEmail:e})=>{const{discordInfo:t,setDiscordInfo:n}=g.useDiscordStore(),{notifications:r,setNotifications:u}=g.useNotificationStore(),[a,s]=L.useState(!1),[o,c]=L.useState(0),[l,h]=L.useState(null),f=20,m=_=>{var E,x,k,y;return(x=(E=_==null?void 0:_.response)==null?void 0:E.data)!=null&&x.error?_.response.data.error:(y=(k=_==null?void 0:_.response)==null?void 0:k.data)!=null&&y.message?_.response.data.message:_!=null&&_.message?_.message:"Failed to connect to Discord. Please try again later."},p=(_,E)=>{u([...r,{id:g.v4(),message:_,status:E}])};L.useEffect(()=>{if(l&&a){const _=setInterval(()=>{l.closed&&(clearInterval(_),s(!1),h(null))},1e3);return()=>clearInterval(_)}},[l,a]);const b=()=>{e.trim()!==""&&(s(!0),c(0),$2({customerEmail:e,tsId:g.useGetTsId()}).then(({data:_})=>{const E=window.open(_.redirectUrl);h(E),(!E||E.closed||typeof E.closed>"u")&&setTimeout(()=>{const y=document.createElement("a");y.href=_.redirectUrl,y.target="_blank",y.click()});let x;const k=()=>{if(c(y=>y+1),o>=f||E&&E.closed){o>=f&&p("Authorization timeout. Please try again.","error"),s(!1),clearTimeout(x);return}z2({id:_.id,customerEmail:e}).then(({data:y})=>{n({authorized:!0,id:_.id,avatar:y.avatar,username:y.username}),E&&E.close(),s(!1),h(null),p("Discord successfully connected!","success"),clearTimeout(x)}).catch(y=>{var D;if(console.log("Waiting for authorization...",y,{newWindow:E}),E&&E.closed){s(!1),clearTimeout(x);return}if((D=y==null?void 0:y.response)!=null&&D.status&&y.response.status!==404&&y.response.status>=400){p(m(y),"error"),s(!1),clearTimeout(x);return}clearTimeout(x),x=setTimeout(k,1500)})};k()}).catch(_=>{console.log("Could not initiate Discord authorization",_),p(m(_),"error"),s(!1)}))};return t!=null&&t.authorized?i.jsxs("div",{className:Mu.connectedContainer,children:[i.jsxs("div",{className:Mu.userInfo,children:[i.jsx("div",{className:Mu.avatar,children:t.avatar?i.jsx("img",{className:Mu.avatarImage,src:`https://cdn.discordapp.com/avatars/${t.id}/${t.avatar}.png?size=256`}):i.jsx(N.Icon,{name:"UserCircle"})}),i.jsx("p",{children:t.username}),i.jsx(s7,{})]}),i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Reconnect"})]}):i.jsx(N.Button,{type:"Secondary",onClick:b,style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:"10px"},disabled:a,children:a?i.jsx(N.Loader,{}):i.jsxs(i.Fragment,{children:[i.jsx(N.Icon,{name:"DiscordLogo"}),i.jsx(al,{children:"Connect Your Discord"})]})})},Kg="_paymentMethodsContainer_1pfqr_2",Qg="_antistock_1pfqr_15",Mo={paymentMethodsContainer:Kg,antistock:Qg},Jg="_paymentMethod_1it0n_3",eb="_selected_1it0n_16",tb="_alignColumn_1it0n_19",nb="_reversed_1it0n_25",rb="_antistock_1it0n_29",ub="_paymentText_1it0n_36",ab="_balanceText_1it0n_50",sb="_signInLink_1it0n_54",ib="_iconContainer_1it0n_63",ob="_gatewayLogo_1it0n_76",cb="_poweredByLogo_1it0n_77",lb="_logo_1it0n_82",De={paymentMethod:Jg,selected:eb,alignColumn:tb,reversed:nb,antistock:rb,paymentText:ub,balanceText:ab,signInLink:sb,iconContainer:ib,gatewayLogo:ob,poweredByLogo:cb,logo:lb},db="_bottomSheet_1x8kc_1",fb="_content_1x8kc_8",hb="_description_1x8kc_11",pb="_title_1x8kc_15",mb="_buttonGroup_1x8kc_19",gb="_buttonWrapper_1x8kc_29",bb="_fullWidthButton_1x8kc_32",_b="_modal_1x8kc_36",xb="_header_1x8kc_43",yn={bottomSheet:db,content:fb,description:hb,title:pb,buttonGroup:mb,buttonWrapper:gb,fullWidthButton:bb,modal:_b,header:xb},Cb=({setIsOpen:e,balance:t})=>{const n=g.useNavigate(),{setIsOpen:r}=g.useModalStore(),u=()=>{n("/top-up?redirectRoute=checkout")};function a(){r(!1),setTimeout(()=>{e(!1)},300)}return i.jsxs("div",{className:yn.modal,onClick:s=>s.stopPropagation(),children:[i.jsxs("div",{className:yn.header,children:[i.jsx("h3",{id:"h3",className:yn.title,children:"Insufficient Customer Balance"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:a,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:yn.bottomSheet,children:[i.jsx("div",{className:yn.content,children:i.jsxs("p",{className:yn.description,children:["You currently have ",t&&g.formatPrice(t)," in your balance. After topping up the required amount, you can continue to checkout."]})}),i.jsxs("div",{className:yn.buttonGroup,children:[i.jsx("div",{className:yn.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:a,children:"Cancel"})}),i.jsx("div",{className:yn.fullWidthButton,children:i.jsx(N.Button,{type:"Primary",onClick:u,children:"Add Balance"})})]})]})]})},pi=({align:e,gateway:t,gatewayDisplayName:n,selected:r,onSelect:u,total:a,onSignInClick:s,reversed:o,isAntistock:c=!1})=>{const{token:l}=g.useStorefrontStore(),{balance:h}=g.useCustomerDashboardStore(),[f,m]=L.useState(!1),{setIsOpen:p}=g.useModalStore(),b=_=>{_.stopPropagation(),u==null||u(t),h&&h.amount<a&&(m(!0),p(!0))};return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:g.clx(De.paymentMethod,{[De.selected]:r,[De.alignColumn]:e==="column",[De.reversed]:o&&!c,[De.antistock]:c}),onClick:b,children:c?i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:De.paymentText,id:"md",children:[n," ",i.jsxs("span",{className:De.balanceText,id:"md",children:["(",l?h&&g.formatPrice(h):i.jsx("a",{className:De.signInLink,onClick:s,id:"md",children:"Sign in"}),")"]})]}),i.jsx("div",{className:De.iconContainer,children:i.jsx(N.Icon,{name:"Wallet",fill:"var(--text-primary)",width:20,height:20})})]}):i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:De.paymentText,id:"md",children:[n," ",i.jsxs("span",{className:De.balanceText,id:"md",children:["(",l?h&&g.formatPrice(h):i.jsx("a",{className:De.signInLink,onClick:s,id:"md",children:"Sign in"}),")"]})]}),i.jsx("div",{className:De.iconContainer,children:i.jsx(N.Icon,{name:"Wallet",fill:"var(--text-primary)",width:20,height:20})})]})}),f&&i.jsx(N.Modal,{close:()=>m(!1),children:i.jsx(Cb,{setIsOpen:m,balance:h})})]})};var Ye=(e=>(e.BankCard="BANK_CARD",e.BankTransfer="BANK_TRANSFER",e.PayPal="PAYPAL",e.CashApp="CASHAPP",e.Crypto="CRYPTO",e.AppleGooglePay="APPLE_AND_GOOGLE_PAY",e.Custom="CUSTOM",e))(Ye||{});const Eb={[Ye.CashApp]:i.jsx(Kl,{}),[Ye.AppleGooglePay]:i.jsx(Jl,{}),[Ye.BankCard]:i.jsx(Xl,{}),[Ye.Crypto]:i.jsx(Yl,{}),[Ye.PayPal]:i.jsx(Ql,{}),[Ye.Custom]:i.jsx("div",{}),[Ye.BankTransfer]:i.jsx(e0,{})},yb={[Ye.CashApp]:i.jsx(Kl,{isAntistock:!0}),[Ye.AppleGooglePay]:i.jsx(Jl,{isAntistock:!0}),[Ye.BankCard]:i.jsx(Xl,{isAntistock:!0}),[Ye.Crypto]:i.jsx(Yl,{isAntistock:!0}),[Ye.PayPal]:i.jsx(Ql,{isAntistock:!0}),[Ye.Custom]:i.jsx("div",{}),[Ye.BankTransfer]:i.jsx(e0,{isAntistock:!0})},Oo={[Ye.CashApp]:"Cash App",[Ye.AppleGooglePay]:"Apple Pay / Google Pay",[Ye.BankCard]:"Debit / Credit Card",[Ye.Crypto]:"Cryptocurrency",[Ye.PayPal]:"PayPal",[Ye.Custom]:"",[Ye.BankTransfer]:"Bank Transfer"},mi=({align:e,paymentMethod:t,gatewayDisplayName:n,gatewayLogoCfId:r,poweredByLogoCfId:u,selected:a,onSelect:s,className:o,isAntistock:c=!1})=>{const l=t===Ye.Custom;return t?i.jsx("div",{className:g.clx(De.paymentMethod,{[De.selected]:a,[De.alignColumn]:e==="column",[De.antistock]:c},o),onClick:()=>s&&s(t),children:c?i.jsxs(i.Fragment,{children:[i.jsx("p",{className:De.paymentText,id:"md",children:l?n:Oo[t]}),i.jsxs("div",{className:De.iconContainer,children:[l?i.jsx("div",{className:De.gatewayLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(r,"100"),alt:n})}):yb[t],u&&i.jsx("div",{className:De.poweredByLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(u,"100"),alt:n})})]})]}):i.jsxs(i.Fragment,{children:[i.jsx("p",{className:De.paymentText,id:"md",children:l?n:Oo[t]}),i.jsxs("div",{className:De.iconContainer,children:[l?i.jsx("div",{className:De.gatewayLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(r,"100"),alt:n})}):Eb[t],u&&i.jsx("div",{className:De.poweredByLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(u,"100"),alt:n})})]})]})}):i.jsxs("div",{className:g.clx(De.paymentMethod,o),children:[i.jsx("div",{className:De.gatewayLogo,children:i.jsx("img",{className:De.logo,src:g.convertCfImageIdToUrl(r,"100"),alt:n})}),i.jsx("p",{className:De.paymentText,children:n})]})},gi=({possibleGateways:e,setGateway:t,totalAndDiscount:n,onSignInClick:r,setPaymentMethod:u,isAntistock:a=!1,hideBalance:s=!1})=>{const[o,c]=L.useState(),[l,h]=L.useState(),{setPriceAdjustment:f,setServiceFee:m}=g.useCartStore(),[p,b]=L.useState(null),_=L.useMemo(()=>p?s?p.filter(k=>k.name!=="Balance"):p:null,[p,s]),E=k=>{t(k);const y=p==null?void 0:p.find(D=>D.name===k);f((y==null?void 0:y.priceAdjustment)||null),m((y==null?void 0:y.serviceFee)||null)},x=(k,y)=>{l!==y&&E(y),u(k),c(k),h(y)};return L.useEffect(()=>{if(_&&_.length>0){const k=_[0];if(k.name==="Balance")h(k.name),t(k.name),f(k.priceAdjustment||null),m(k.serviceFee||null);else if(k.paymentMethods&&k.paymentMethods.length>0){const y=k.paymentMethods[0];c(y),h(k.name),t(k.name),u(y),f(k.priceAdjustment||null),m(k.serviceFee||null)}}},[_]),L.useEffect(()=>{const k=async()=>{const{data:y}=await il([...e.availableGateways,...e.requiresSignInGateways]),D=Array.isArray(y)?y:y.gateways;b(D)};(e.availableGateways.length||e.requiresSignInGateways.length)&&k()},[]),L.useLayoutEffect(()=>{f(null),m(null)},[]),i.jsxs(i.Fragment,{children:[_&&i.jsx("div",{className:g.clx(Mo.paymentMethodsContainer,{[Mo.antistock]:a}),children:_==null?void 0:_.map(k=>k.name==="Balance"?i.jsx(pi,{gateway:k.name,gatewayDisplayName:k.displayName,onSelect:y=>{h(y),l!==y&&E(y)},selected:k.name===l,total:n.totalWithDiscount??n.total,onSignInClick:r,reversed:!0,isAntistock:a},k.name):k.paymentMethods.map(y=>i.jsx(mi,{paymentMethod:y,gateway:k.name,gatewayDisplayName:k.displayName,gatewayLogoCfId:k.logoCfImageId,poweredByLogoCfId:k.poweredByImageCfImageId,onSelect:D=>x(D,k.name),selected:o===y&&l===k.name,isAntistock:a},`${k.name}-${y}`)))}),!p&&(a?i.jsx(N.Loader,{}):i.jsx(ir,{speed:2,width:"100%",height:"220px",viewBox:"0 0 600 220",backgroundColor:"var(--surface-secondary)",foregroundColor:"var(--surface-disabled)",style:{borderRadius:"var(--border-radius)"},children:i.jsx("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"100%",height:"100%"})}))]})},Tb="_modal_1htd8_1",kb={modal:Tb},N0=({setIsOpen:e})=>{const{token:t}=g.useStorefrontStore(),{setIsOpen:n}=g.useModalStore();L.useEffect(()=>{t&&r()},[t]);const r=()=>{n(!1),setTimeout(()=>{e(!1)},300)};return i.jsx("div",{className:kb.modal,onClick:u=>u.stopPropagation(),children:i.jsx(ma,{inModal:!0})})},Ab="_container_r8mpd_1",Sb="_text_r8mpd_9",Ib="_link_r8mpd_14",Kn={container:Ab,text:Sb,link:Ib};function jo(e){const t=[],n=String(e||"");let r=n.indexOf(","),u=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(u,r).trim();(s||!a)&&t.push(s),u=r+1,r=n.indexOf(",",u)}return t}function v0(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Nb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wb={};function Fo(e,t){return(wb.jsx?vb:Nb).test(e)}const Db=/[ \t\n\f\r]/g;function Lb(e){return typeof e=="object"?e.type==="text"?Bo(e.value):!1:Bo(e)}function Bo(e){return e.replace(Db,"")===""}let _u=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};_u.prototype.normal={};_u.prototype.property={};_u.prototype.space=void 0;function w0(e,t){const n={},r={};for(const u of e)Object.assign(n,u.property),Object.assign(r,u.normal);return new _u(n,r,t)}function iu(e){return e.toLowerCase()}let Mt=class{constructor(t,n){this.attribute=n,this.property=t}};Mt.prototype.attribute="";Mt.prototype.booleanish=!1;Mt.prototype.boolean=!1;Mt.prototype.commaOrSpaceSeparated=!1;Mt.prototype.commaSeparated=!1;Mt.prototype.defined=!1;Mt.prototype.mustUseProperty=!1;Mt.prototype.number=!1;Mt.prototype.overloadedBoolean=!1;Mt.prototype.property="";Mt.prototype.spaceSeparated=!1;Mt.prototype.space=void 0;let Pb=0;const ye=or(),tt=or(),D0=or(),q=or(),Be=or(),Er=or(),Bt=or();function or(){return 2**++Pb}const Ms=Object.freeze(Object.defineProperty({__proto__:null,boolean:ye,booleanish:tt,commaOrSpaceSeparated:Bt,commaSeparated:Er,number:q,overloadedBoolean:D0,spaceSeparated:Be},Symbol.toStringTag,{value:"Module"})),es=Object.keys(Ms);let bi=class extends Mt{constructor(t,n,r,u){let a=-1;if(super(t,n),Ho(this,"space",u),typeof r=="number")for(;++a<es.length;){const s=es[a];Ho(this,es[a],(r&Ms[s])===Ms[s])}}};bi.prototype.defined=!0;function Ho(e,t,n){n&&(e[t]=n)}function Dr(e){const t={},n={};for(const[r,u]of Object.entries(e.properties)){const a=new bi(r,e.transform(e.attributes||{},r),u,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[iu(r)]=r,n[iu(a.attribute)]=r}return new _u(t,n,e.space)}const L0=Dr({properties:{ariaActiveDescendant:null,ariaAtomic:tt,ariaAutoComplete:null,ariaBusy:tt,ariaChecked:tt,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:Be,ariaCurrent:null,ariaDescribedBy:Be,ariaDetails:null,ariaDisabled:tt,ariaDropEffect:Be,ariaErrorMessage:null,ariaExpanded:tt,ariaFlowTo:Be,ariaGrabbed:tt,ariaHasPopup:null,ariaHidden:tt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Be,ariaLevel:q,ariaLive:null,ariaModal:tt,ariaMultiLine:tt,ariaMultiSelectable:tt,ariaOrientation:null,ariaOwns:Be,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:tt,ariaReadOnly:tt,ariaRelevant:null,ariaRequired:tt,ariaRoleDescription:Be,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:tt,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function P0(e,t){return t in e?e[t]:t}function R0(e,t){return P0(e,t.toLowerCase())}const Rb=Dr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Er,acceptCharset:Be,accessKey:Be,action:null,allow:null,allowFullScreen:ye,allowPaymentRequest:ye,allowUserMedia:ye,alt:null,as:null,async:ye,autoCapitalize:null,autoComplete:Be,autoFocus:ye,autoPlay:ye,blocking:Be,capture:null,charSet:null,checked:ye,cite:null,className:Be,cols:q,colSpan:null,content:null,contentEditable:tt,controls:ye,controlsList:Be,coords:q|Er,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ye,defer:ye,dir:null,dirName:null,disabled:ye,download:D0,draggable:tt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ye,formTarget:null,headers:Be,height:q,hidden:ye,high:q,href:null,hrefLang:null,htmlFor:Be,httpEquiv:Be,id:null,imageSizes:null,imageSrcSet:null,inert:ye,inputMode:null,integrity:null,is:null,isMap:ye,itemId:null,itemProp:Be,itemRef:Be,itemScope:ye,itemType:Be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ye,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:ye,muted:ye,name:null,nonce:null,noModule:ye,noValidate:ye,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ye,optimum:q,pattern:null,ping:Be,placeholder:null,playsInline:ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ye,referrerPolicy:null,rel:Be,required:ye,reversed:ye,rows:q,rowSpan:q,sandbox:Be,scope:null,scoped:ye,seamless:ye,selected:ye,shadowRootClonable:ye,shadowRootDelegatesFocus:ye,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:tt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:ye,useMap:null,value:tt,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Be,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ye,declare:ye,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:ye,noHref:ye,noShade:ye,noWrap:ye,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:tt,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ye,disableRemotePlayback:ye,prefix:null,property:null,results:q,security:null,unselectable:null},space:"html",transform:R0}),Mb=Dr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Bt,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:Be,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Er,g2:Er,glyphName:Er,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:Bt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bt,rev:Bt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bt,requiredFeatures:Bt,requiredFonts:Bt,requiredFormats:Bt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:Bt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bt,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:P0}),M0=Dr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),O0=Dr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:R0}),j0=Dr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ob={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},jb=/[A-Z]/g,Uo=/-[a-z]/g,Fb=/^data[-\w.:]+$/i;function _i(e,t){const n=iu(t);let r=t,u=Mt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Fb.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Uo,Hb);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Uo.test(a)){let s=a.replace(jb,Bb);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}u=bi}return new u(r,t)}function Bb(e){return"-"+e.toLowerCase()}function Hb(e){return e.charAt(1).toUpperCase()}const Ea=w0([L0,Rb,M0,O0,j0],"html"),Lr=w0([L0,Mb,M0,O0,j0],"svg");function Vo(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function F0(e){return e.join(" ").trim()}var B0={},$o=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ub=/\n/g,Vb=/^\s*/,$b=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,zb=/^:\s*/,qb=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Zb=/^[;\s]*/,Wb=/^\s+|\s+$/g,Yb=`
|
|
86
|
+
`,zo="/",qo="*",tr="",Gb="comment",Xb="declaration",Kb=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function u(b){var _=b.match(Ub);_&&(n+=_.length);var E=b.lastIndexOf(Yb);r=~E?b.length-E:r+b.length}function a(){var b={line:n,column:r};return function(_){return _.position=new s(b),l(),_}}function s(b){this.start=b,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(b){var _=new Error(t.source+":"+n+":"+r+": "+b);if(_.reason=b,_.filename=t.source,_.line=n,_.column=r,_.source=e,!t.silent)throw _}function c(b){var _=b.exec(e);if(_){var E=_[0];return u(E),e=e.slice(E.length),_}}function l(){c(Vb)}function h(b){var _;for(b=b||[];_=f();)_!==!1&&b.push(_);return b}function f(){var b=a();if(!(zo!=e.charAt(0)||qo!=e.charAt(1))){for(var _=2;tr!=e.charAt(_)&&(qo!=e.charAt(_)||zo!=e.charAt(_+1));)++_;if(_+=2,tr===e.charAt(_-1))return o("End of comment missing");var E=e.slice(2,_-2);return r+=2,u(E),e=e.slice(_),r+=2,b({type:Gb,comment:E})}}function m(){var b=a(),_=c($b);if(_){if(f(),!c(zb))return o("property missing ':'");var E=c(qb),x=b({type:Xb,property:Zo(_[0].replace($o,tr)),value:E?Zo(E[0].replace($o,tr)):tr});return c(Zb),x}}function p(){var b=[];h(b);for(var _;_=m();)_!==!1&&(b.push(_),h(b));return b}return l(),p()};function Zo(e){return e?e.replace(Wb,tr):tr}var Qb=g.commonjsGlobal&&g.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(B0,"__esModule",{value:!0});var Wo=B0.default=e_,Jb=Qb(Kb);function e_(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Jb.default)(e),u=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var s=a.property,o=a.value;u?t(s,o,a):o&&(n=n||{},n[s]=o)}}),n}const t_=Wo.default||Wo,ya=H0("end"),gn=H0("start");function H0(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function n_(e){const t=gn(e),n=ya(e);if(t&&n)return{start:t,end:n}}function Yr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Yo(e.position):"start"in e||"end"in e?Yo(e):"line"in e||"column"in e?Os(e):""}function Os(e){return Go(e&&e.line)+":"+Go(e&&e.column)}function Yo(e){return Os(e&&e.start)+"-"+Os(e&&e.end)}function Go(e){return e&&typeof e=="number"?e:1}class Ct extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let u="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?u=t:!a.cause&&t&&(s=!0,u=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?a.ruleId=r:(a.source=r.slice(0,c),a.ruleId=r.slice(c+1))}if(!a.place&&a.ancestors&&a.ancestors){const c=a.ancestors[a.ancestors.length-1];c&&(a.place=c.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=u,this.line=o?o.line:void 0,this.name=Yr(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ct.prototype.file="";Ct.prototype.name="";Ct.prototype.reason="";Ct.prototype.message="";Ct.prototype.stack="";Ct.prototype.column=void 0;Ct.prototype.line=void 0;Ct.prototype.ancestors=void 0;Ct.prototype.cause=void 0;Ct.prototype.fatal=void 0;Ct.prototype.place=void 0;Ct.prototype.ruleId=void 0;Ct.prototype.source=void 0;const xi={}.hasOwnProperty,r_=new Map,u_=/[A-Z]/g,a_=/-([a-z])/g,s_=new Set(["table","tbody","thead","tfoot","tr"]),i_=new Set(["td","th"]),U0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function o_(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=g_(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=m_(n,t.jsx,t.jsxs)}const u={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Lr:Ea,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=V0(u,e,void 0);return a&&typeof a!="string"?a:u.create(e,u.Fragment,{children:a||void 0},void 0)}function V0(e,t,n){if(t.type==="element")return c_(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return l_(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return f_(e,t,n);if(t.type==="mdxjsEsm")return d_(e,t);if(t.type==="root")return h_(e,t,n);if(t.type==="text")return p_(e,t)}function c_(e,t,n){const r=e.schema;let u=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(u=Lr,e.schema=u),e.ancestors.push(t);const a=z0(e,t.tagName,!1),s=b_(e,t);let o=Ei(e,t);return s_.has(t.tagName)&&(o=o.filter(function(c){return typeof c=="string"?!Lb(c):!0})),$0(e,s,a,t),Ci(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function l_(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ou(e,t.position)}function d_(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ou(e,t.position)}function f_(e,t,n){const r=e.schema;let u=r;t.name==="svg"&&r.space==="html"&&(u=Lr,e.schema=u),e.ancestors.push(t);const a=t.name===null?e.Fragment:z0(e,t.name,!0),s=__(e,t),o=Ei(e,t);return $0(e,s,a,t),Ci(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function h_(e,t,n){const r={};return Ci(r,Ei(e,t)),e.create(t,e.Fragment,r,n)}function p_(e,t){return t.value}function $0(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ci(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function m_(e,t,n){return r;function r(u,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function g_(e,t){return n;function n(r,u,a,s){const o=Array.isArray(a.children),c=gn(r);return t(u,a,s,o,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function b_(e,t){const n={};let r,u;for(u in t.properties)if(u!=="children"&&xi.call(t.properties,u)){const a=x_(e,u,t.properties[u]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&i_.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function __(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ou(e,t.position);else{const u=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else ou(e,t.position);else a=r.value===null?!0:r.value;n[u]=a}return n}function Ei(e,t){const n=[];let r=-1;const u=e.passKeys?new Map:r_;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const c=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(c){const l=u.get(c)||0;s=c+"-"+l,u.set(c,l+1)}}const o=V0(e,a,s);o!==void 0&&n.push(o)}return n}function x_(e,t,n){const r=_i(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?v0(n):F0(n)),r.property==="style"){let u=typeof n=="object"?n:C_(e,String(n));return e.stylePropertyNameCase==="css"&&(u=E_(u)),["style",u]}return[e.elementAttributeNameCase==="react"&&r.space?Ob[r.property]||r.property:r.attribute,n]}}function C_(e,t){const n={};try{t_(t,r)}catch(u){if(!e.ignoreInvalidStyle){const a=u,s=new Ct("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=U0+"#cannot-parse-style-attribute",s}}return n;function r(u,a){let s=u;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(a_,T_)),n[s]=a}}function z0(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const u=t.split(".");let a=-1,s;for(;++a<u.length;){const o=Fo(u[a])?{type:"Identifier",name:u[a]}:{type:"Literal",value:u[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}r=s}else r=Fo(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const u=r.value;return xi.call(e.components,u)?e.components[u]:u}if(e.evaluater)return e.evaluater.evaluateExpression(r);ou(e)}function ou(e,t){const n=new Ct("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=U0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function E_(e){const t={};let n;for(n in e)xi.call(e,n)&&(t[y_(n)]=e[n]);return t}function y_(e){let t=e.replace(u_,k_);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function T_(e,t){return t.toUpperCase()}function k_(e){return"-"+e.toLowerCase()}const ts={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},A_={};function yi(e,t){const n=A_,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,u=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return q0(e,r,u)}function q0(e,t,n){if(S_(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Xo(e.children,t,n)}return Array.isArray(e)?Xo(e,t,n):""}function Xo(e,t,n){const r=[];let u=-1;for(;++u<e.length;)r[u]=q0(e[u],t,n);return r.join("")}function S_(e){return!!(e&&typeof e=="object")}const Ko=document.createElement("i");function Ti(e){const t="&"+e+";";Ko.innerHTML=t;const n=Ko.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function $t(e,t,n,r){const u=e.length;let a=0,s;if(t<0?t=-t>u?0:u+t:t=t>u?u:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function Gt(e,t){return e.length>0?($t(e,e.length,0,t),e):t}const Qo={}.hasOwnProperty;function Z0(e){const t={};let n=-1;for(;++n<e.length;)I_(t,e[n]);return t}function I_(e,t){let n;for(n in t){const u=(Qo.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){Qo.call(u,s)||(u[s]=[]);const o=a[s];N_(u[s],Array.isArray(o)?o:o?[o]:[])}}}function N_(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);$t(e,0,0,r)}function W0(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function nn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const kt=Wn(/[A-Za-z]/),xt=Wn(/[\dA-Za-z]/),v_=Wn(/[#-'*+\--9=?A-Z^-~]/);function Qu(e){return e!==null&&(e<32||e===127)}const js=Wn(/\d/),w_=Wn(/[\dA-Fa-f]/),D_=Wn(/[!-/:-@[-`{-~]/);function ce(e){return e!==null&&e<-2}function Fe(e){return e!==null&&(e<0||e===32)}function ve(e){return e===-2||e===-1||e===32}const Ta=Wn(new RegExp("\\p{P}|\\p{S}","u")),sr=Wn(/\s/);function Wn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Pr(e){const t=[];let n=-1,r=0,u=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&xt(e.charCodeAt(n+1))&&xt(e.charCodeAt(n+2)))u=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),u=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+u+1,s=""),u&&(n+=u,u=0)}return t.join("")+e.slice(r)}function we(e,t,n,r){const u=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(c){return ve(c)?(e.enter(n),o(c)):t(c)}function o(c){return ve(c)&&a++<u?(e.consume(c),o):(e.exit(n),t(c))}}const L_={tokenize:P_};function P_(e){const t=e.attempt(this.parser.constructs.contentInitial,r,u);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),we(e,t,"linePrefix")}function u(o){return e.enter("paragraph"),a(o)}function a(o){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ce(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const R_={tokenize:M_},Jo={tokenize:O_};function M_(e){const t=this,n=[];let r=0,u,a,s;return o;function o(y){if(r<n.length){const D=n[r];return t.containerState=D[1],e.attempt(D[0].continuation,c,l)(y)}return l(y)}function c(y){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,u&&k();const D=t.events.length;let S=D,I;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){I=t.events[S][1].end;break}x(r);let M=D;for(;M<t.events.length;)t.events[M][1].end={...I},M++;return $t(t.events,S+1,0,t.events.slice(D)),t.events.length=M,l(y)}return o(y)}function l(y){if(r===n.length){if(!u)return m(y);if(u.currentConstruct&&u.currentConstruct.concrete)return b(y);t.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Jo,h,f)(y)}function h(y){return u&&k(),x(r),m(y)}function f(y){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,b(y)}function m(y){return t.containerState={},e.attempt(Jo,p,b)(y)}function p(y){return r++,n.push([t.currentConstruct,t.containerState]),m(y)}function b(y){if(y===null){u&&k(),x(0),e.consume(y);return}return u=u||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:a}),_(y)}function _(y){if(y===null){E(e.exit("chunkFlow"),!0),x(0),e.consume(y);return}return ce(y)?(e.consume(y),E(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(y),_)}function E(y,D){const S=t.sliceStream(y);if(D&&S.push(null),y.previous=a,a&&(a.next=y),a=y,u.defineSkip(y.start),u.write(S),t.parser.lazy[y.start.line]){let I=u.events.length;for(;I--;)if(u.events[I][1].start.offset<s&&(!u.events[I][1].end||u.events[I][1].end.offset>s))return;const M=t.events.length;let H=M,U,P;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(U){P=t.events[H][1].end;break}U=!0}for(x(r),I=M;I<t.events.length;)t.events[I][1].end={...P},I++;$t(t.events,H+1,0,t.events.slice(M)),t.events.length=I}}function x(y){let D=n.length;for(;D-- >y;){const S=n[D];t.containerState=S[1],S[0].exit.call(t,e)}n.length=y}function k(){u.write([null]),a=void 0,u=void 0,t.containerState._closeFlow=void 0}}function O_(e,t,n){return we(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ar(e){if(e===null||Fe(e)||sr(e))return 1;if(Ta(e))return 2}function ka(e,t,n){const r=[];let u=-1;for(;++u<e.length;){const a=e[u].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const Fs={name:"attention",resolveAll:j_,tokenize:F_};function j_(e,t){let n=-1,r,u,a,s,o,c,l,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},m={...e[n][1].start};ec(f,-c),ec(m,c),s={type:c>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},o={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},a={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},u={type:c>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Gt(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Gt(l,[["enter",u,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=Gt(l,ka(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Gt(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",u,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,l=Gt(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,$t(e,r-1,n-r+3,l),n=r+l.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function F_(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,u=Ar(r);let a;return s;function s(c){return a=c,e.enter("attentionSequence"),o(c)}function o(c){if(c===a)return e.consume(c),o;const l=e.exit("attentionSequence"),h=Ar(c),f=!h||h===2&&u||n.includes(c),m=!u||u===2&&h||n.includes(r);return l._open=!!(a===42?f:f&&(u||!m)),l._close=!!(a===42?m:m&&(h||!f)),t(c)}}function ec(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const B_={name:"autolink",tokenize:H_};function H_(e,t,n){let r=0;return u;function u(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return kt(p)?(e.consume(p),s):p===64?n(p):l(p)}function s(p){return p===43||p===45||p===46||xt(p)?(r=1,o(p)):l(p)}function o(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||xt(p))&&r++<32?(e.consume(p),o):(r=0,l(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Qu(p)?n(p):(e.consume(p),c)}function l(p){return p===64?(e.consume(p),h):v_(p)?(e.consume(p),l):n(p)}function h(p){return xt(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),r=0,h):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):m(p)}function m(p){if((p===45||xt(p))&&r++<63){const b=p===45?m:f;return e.consume(p),b}return n(p)}}const xu={partial:!0,tokenize:U_};function U_(e,t,n){return r;function r(a){return ve(a)?we(e,u,"linePrefix")(a):u(a)}function u(a){return a===null||ce(a)?t(a):n(a)}}const Y0={continuation:{tokenize:$_},exit:z_,name:"blockQuote",tokenize:V_};function V_(e,t,n){const r=this;return u;function u(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return ve(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function $_(e,t,n){const r=this;return u;function u(s){return ve(s)?we(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(Y0,t,n)(s)}}function z_(e){e.exit("blockQuote")}const G0={name:"characterEscape",tokenize:q_};function q_(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),u}function u(a){return D_(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const X0={name:"characterReference",tokenize:Z_};function Z_(e,t,n){const r=this;let u=0,a,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,s=xt,h(f))}function l(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=w_,h):(e.enter("characterReferenceValue"),a=7,s=js,h(f))}function h(f){if(f===59&&u){const m=e.exit("characterReferenceValue");return s===xt&&!Ti(r.sliceSerialize(m))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&u++<a?(e.consume(f),h):n(f)}}const tc={partial:!0,tokenize:Y_},nc={concrete:!0,name:"codeFenced",tokenize:W_};function W_(e,t,n){const r=this,u={partial:!0,tokenize:S};let a=0,s=0,o;return c;function c(I){return l(I)}function l(I){const M=r.events[r.events.length-1];return a=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,o=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(I)}function h(I){return I===o?(s++,e.consume(I),h):s<3?n(I):(e.exit("codeFencedFenceSequence"),ve(I)?we(e,f,"whitespace")(I):f(I))}function f(I){return I===null||ce(I)?(e.exit("codeFencedFence"),r.interrupt?t(I):e.check(tc,_,D)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(I))}function m(I){return I===null||ce(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(I)):ve(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),we(e,p,"whitespace")(I)):I===96&&I===o?n(I):(e.consume(I),m)}function p(I){return I===null||ce(I)?f(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(I))}function b(I){return I===null||ce(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(I)):I===96&&I===o?n(I):(e.consume(I),b)}function _(I){return e.attempt(u,D,E)(I)}function E(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),x}function x(I){return a>0&&ve(I)?we(e,k,"linePrefix",a+1)(I):k(I)}function k(I){return I===null||ce(I)?e.check(tc,_,D)(I):(e.enter("codeFlowValue"),y(I))}function y(I){return I===null||ce(I)?(e.exit("codeFlowValue"),k(I)):(e.consume(I),y)}function D(I){return e.exit("codeFenced"),t(I)}function S(I,M,H){let U=0;return P;function P(K){return I.enter("lineEnding"),I.consume(K),I.exit("lineEnding"),B}function B(K){return I.enter("codeFencedFence"),ve(K)?we(I,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):O(K)}function O(K){return K===o?(I.enter("codeFencedFenceSequence"),X(K)):H(K)}function X(K){return K===o?(U++,I.consume(K),X):U>=s?(I.exit("codeFencedFenceSequence"),ve(K)?we(I,Y,"whitespace")(K):Y(K)):H(K)}function Y(K){return K===null||ce(K)?(I.exit("codeFencedFence"),M(K)):H(K)}}}function Y_(e,t,n){const r=this;return u;function u(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const ns={name:"codeIndented",tokenize:X_},G_={partial:!0,tokenize:K_};function X_(e,t,n){const r=this;return u;function u(l){return e.enter("codeIndented"),we(e,a,"linePrefix",5)(l)}function a(l){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?c(l):ce(l)?e.attempt(G_,s,c)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||ce(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function c(l){return e.exit("codeIndented"),t(l)}}function K_(e,t,n){const r=this;return u;function u(s){return r.parser.lazy[r.now().line]?n(s):ce(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),u):we(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):ce(s)?u(s):n(s)}}const Q_={name:"codeText",previous:ex,resolve:J_,tokenize:tx};function J_(e){let t=e.length-4,n=3,r,u;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)u===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(u=r):(r===t||e[r][1].type==="lineEnding")&&(e[u][1].type="codeTextData",r!==u+2&&(e[u][1].end=e[r-1][1].end,e.splice(u+2,r-u-2),t-=r-u-2,r=u+2),u=void 0);return e}function ex(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tx(e,t,n){let r=0,u,a;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),r++,o):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(a=e.enter("codeTextSequence"),u=0,h(f)):ce(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),l(f))}function l(f){return f===null||f===32||f===96||ce(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),l)}function h(f){return f===96?(e.consume(f),u++,h):u===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",l(f))}}class nx{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const u=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return r&&Hr(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Hr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Hr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Hr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Hr(this.left,n.reverse())}}}function Hr(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function K0(e){const t={};let n=-1,r,u,a,s,o,c,l;const h=new nx(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type==="lineEndingBlank"&&(a+=2),a<c.length&&c[a][1].type==="content"))for(;++a<c.length&&c[a][1].type!=="content";)c[a][1].type==="chunkText"&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,rx(h,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,u=void 0;a--;)if(s=h.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(u&&(h.get(u)[1].type="lineEndingBlank"),s[1].type="lineEnding",u=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;u&&(r[1].end={...h.get(u)[1].start},o=h.slice(u,n),o.unshift(r),h.splice(u,n-u+1,o))}}return $t(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!l}function rx(e,t){const n=e.get(t)[1],r=e.get(t)[2];let u=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,c=[],l={};let h,f,m=-1,p=n,b=0,_=0;const E=[_];for(;p;){for(;e.get(++u)[1]!==p;);a.push(u),p._tokenizer||(h=r.sliceStream(p),p.next||h.push(null),f&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(h),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(_=m+1,E.push(_),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):E.pop(),m=E.length;m--;){const x=o.slice(E[m],E[m+1]),k=a.pop();c.push([k,k+x.length-1]),e.splice(k,2,x)}for(c.reverse(),m=-1;++m<c.length;)l[b+c[m][0]]=b+c[m][1],b+=c[m][1]-c[m][0]-1;return l}const ux={resolve:sx,tokenize:ix},ax={partial:!0,tokenize:ox};function sx(e){return K0(e),e}function ix(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),u(o)}function u(o){return o===null?a(o):ce(o)?e.check(ax,s,a)(o):(e.consume(o),u)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,u}}function ox(e,t,n){const r=this;return u;function u(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),we(e,a,"linePrefix")}function a(s){if(s===null||ce(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Q0(e,t,n,r,u,a,s,o,c){const l=c||Number.POSITIVE_INFINITY;let h=0;return f;function f(x){return x===60?(e.enter(r),e.enter(u),e.enter(a),e.consume(x),e.exit(a),m):x===null||x===32||x===41||Qu(x)?n(x):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),_(x))}function m(x){return x===62?(e.enter(a),e.consume(x),e.exit(a),e.exit(u),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(o),m(x)):x===null||x===60||ce(x)?n(x):(e.consume(x),x===92?b:p)}function b(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function _(x){return!h&&(x===null||x===41||Fe(x))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(x)):h<l&&x===40?(e.consume(x),h++,_):x===41?(e.consume(x),h--,_):x===null||x===32||x===40||Qu(x)?n(x):(e.consume(x),x===92?E:_)}function E(x){return x===40||x===41||x===92?(e.consume(x),_):_(x)}}function J0(e,t,n,r,u,a){const s=this;let o=0,c;return l;function l(p){return e.enter(r),e.enter(u),e.consume(p),e.exit(u),e.enter(a),h}function h(p){return o>999||p===null||p===91||p===93&&!c||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(a),e.enter(u),e.consume(p),e.exit(u),e.exit(r),t):ce(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||ce(p)||o++>999?(e.exit("chunkString"),h(p)):(e.consume(p),c||(c=!ve(p)),p===92?m:f)}function m(p){return p===91||p===92||p===93?(e.consume(p),o++,f):f(p)}}function e1(e,t,n,r,u,a){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(r),e.enter(u),e.consume(m),e.exit(u),s=m===40?41:m,c):n(m)}function c(m){return m===s?(e.enter(u),e.consume(m),e.exit(u),e.exit(r),t):(e.enter(a),l(m))}function l(m){return m===s?(e.exit(a),c(s)):m===null?n(m):ce(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),we(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===s||m===null||ce(m)?(e.exit("chunkString"),l(m)):(e.consume(m),m===92?f:h)}function f(m){return m===s||m===92?(e.consume(m),h):h(m)}}function Gr(e,t){let n;return r;function r(u){return ce(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),n=!0,r):ve(u)?we(e,r,n?"linePrefix":"lineSuffix")(u):t(u)}}const cx={name:"definition",tokenize:dx},lx={partial:!0,tokenize:fx};function dx(e,t,n){const r=this;let u;return a;function a(p){return e.enter("definition"),s(p)}function s(p){return J0.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return u=nn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):n(p)}function c(p){return Fe(p)?Gr(e,l)(p):l(p)}function l(p){return Q0(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function h(p){return e.attempt(lx,f,f)(p)}function f(p){return ve(p)?we(e,m,"whitespace")(p):m(p)}function m(p){return p===null||ce(p)?(e.exit("definition"),r.parser.defined.push(u),t(p)):n(p)}}function fx(e,t,n){return r;function r(o){return Fe(o)?Gr(e,u)(o):n(o)}function u(o){return e1(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return ve(o)?we(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ce(o)?t(o):n(o)}}const hx={name:"hardBreakEscape",tokenize:px};function px(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),u}function u(a){return ce(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const mx={name:"headingAtx",resolve:gx,tokenize:bx};function gx(e,t){let n=e.length-2,r=3,u,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(u={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},$t(e,r,n-r+1,[["enter",u,t],["enter",a,t],["exit",a,t],["exit",u,t]])),e}function bx(e,t,n){let r=0;return u;function u(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),s(h)}function s(h){return h===35&&r++<6?(e.consume(h),s):h===null||Fe(h)?(e.exit("atxHeadingSequence"),o(h)):n(h)}function o(h){return h===35?(e.enter("atxHeadingSequence"),c(h)):h===null||ce(h)?(e.exit("atxHeading"),t(h)):ve(h)?we(e,o,"whitespace")(h):(e.enter("atxHeadingText"),l(h))}function c(h){return h===35?(e.consume(h),c):(e.exit("atxHeadingSequence"),o(h))}function l(h){return h===null||h===35||Fe(h)?(e.exit("atxHeadingText"),o(h)):(e.consume(h),l)}}const _x=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rc=["pre","script","style","textarea"],xx={concrete:!0,name:"htmlFlow",resolveTo:yx,tokenize:Tx},Cx={partial:!0,tokenize:Ax},Ex={partial:!0,tokenize:kx};function yx(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Tx(e,t,n){const r=this;let u,a,s,o,c;return l;function l(v){return h(v)}function h(v){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(v),f}function f(v){return v===33?(e.consume(v),m):v===47?(e.consume(v),a=!0,_):v===63?(e.consume(v),u=3,r.interrupt?t:C):kt(v)?(e.consume(v),s=String.fromCharCode(v),E):n(v)}function m(v){return v===45?(e.consume(v),u=2,p):v===91?(e.consume(v),u=5,o=0,b):kt(v)?(e.consume(v),u=4,r.interrupt?t:C):n(v)}function p(v){return v===45?(e.consume(v),r.interrupt?t:C):n(v)}function b(v){const J="CDATA[";return v===J.charCodeAt(o++)?(e.consume(v),o===J.length?r.interrupt?t:O:b):n(v)}function _(v){return kt(v)?(e.consume(v),s=String.fromCharCode(v),E):n(v)}function E(v){if(v===null||v===47||v===62||Fe(v)){const J=v===47,ne=s.toLowerCase();return!J&&!a&&rc.includes(ne)?(u=1,r.interrupt?t(v):O(v)):_x.includes(s.toLowerCase())?(u=6,J?(e.consume(v),x):r.interrupt?t(v):O(v)):(u=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(v):a?k(v):y(v))}return v===45||xt(v)?(e.consume(v),s+=String.fromCharCode(v),E):n(v)}function x(v){return v===62?(e.consume(v),r.interrupt?t:O):n(v)}function k(v){return ve(v)?(e.consume(v),k):P(v)}function y(v){return v===47?(e.consume(v),P):v===58||v===95||kt(v)?(e.consume(v),D):ve(v)?(e.consume(v),y):P(v)}function D(v){return v===45||v===46||v===58||v===95||xt(v)?(e.consume(v),D):S(v)}function S(v){return v===61?(e.consume(v),I):ve(v)?(e.consume(v),S):y(v)}function I(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(e.consume(v),c=v,M):ve(v)?(e.consume(v),I):H(v)}function M(v){return v===c?(e.consume(v),c=null,U):v===null||ce(v)?n(v):(e.consume(v),M)}function H(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||Fe(v)?S(v):(e.consume(v),H)}function U(v){return v===47||v===62||ve(v)?y(v):n(v)}function P(v){return v===62?(e.consume(v),B):n(v)}function B(v){return v===null||ce(v)?O(v):ve(v)?(e.consume(v),B):n(v)}function O(v){return v===45&&u===2?(e.consume(v),ue):v===60&&u===1?(e.consume(v),ae):v===62&&u===4?(e.consume(v),V):v===63&&u===3?(e.consume(v),C):v===93&&u===5?(e.consume(v),_e):ce(v)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(Cx,te,X)(v)):v===null||ce(v)?(e.exit("htmlFlowData"),X(v)):(e.consume(v),O)}function X(v){return e.check(Ex,Y,te)(v)}function Y(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),K}function K(v){return v===null||ce(v)?X(v):(e.enter("htmlFlowData"),O(v))}function ue(v){return v===45?(e.consume(v),C):O(v)}function ae(v){return v===47?(e.consume(v),s="",se):O(v)}function se(v){if(v===62){const J=s.toLowerCase();return rc.includes(J)?(e.consume(v),V):O(v)}return kt(v)&&s.length<8?(e.consume(v),s+=String.fromCharCode(v),se):O(v)}function _e(v){return v===93?(e.consume(v),C):O(v)}function C(v){return v===62?(e.consume(v),V):v===45&&u===2?(e.consume(v),C):O(v)}function V(v){return v===null||ce(v)?(e.exit("htmlFlowData"),te(v)):(e.consume(v),V)}function te(v){return e.exit("htmlFlow"),t(v)}}function kx(e,t,n){const r=this;return u;function u(s){return ce(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function Ax(e,t,n){return r;function r(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(xu,t,n)}}const Sx={name:"htmlText",tokenize:Ix};function Ix(e,t,n){const r=this;let u,a,s;return o;function o(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),c}function c(C){return C===33?(e.consume(C),l):C===47?(e.consume(C),S):C===63?(e.consume(C),y):kt(C)?(e.consume(C),H):n(C)}function l(C){return C===45?(e.consume(C),h):C===91?(e.consume(C),a=0,b):kt(C)?(e.consume(C),k):n(C)}function h(C){return C===45?(e.consume(C),p):n(C)}function f(C){return C===null?n(C):C===45?(e.consume(C),m):ce(C)?(s=f,ae(C)):(e.consume(C),f)}function m(C){return C===45?(e.consume(C),p):f(C)}function p(C){return C===62?ue(C):C===45?m(C):f(C)}function b(C){const V="CDATA[";return C===V.charCodeAt(a++)?(e.consume(C),a===V.length?_:b):n(C)}function _(C){return C===null?n(C):C===93?(e.consume(C),E):ce(C)?(s=_,ae(C)):(e.consume(C),_)}function E(C){return C===93?(e.consume(C),x):_(C)}function x(C){return C===62?ue(C):C===93?(e.consume(C),x):_(C)}function k(C){return C===null||C===62?ue(C):ce(C)?(s=k,ae(C)):(e.consume(C),k)}function y(C){return C===null?n(C):C===63?(e.consume(C),D):ce(C)?(s=y,ae(C)):(e.consume(C),y)}function D(C){return C===62?ue(C):y(C)}function S(C){return kt(C)?(e.consume(C),I):n(C)}function I(C){return C===45||xt(C)?(e.consume(C),I):M(C)}function M(C){return ce(C)?(s=M,ae(C)):ve(C)?(e.consume(C),M):ue(C)}function H(C){return C===45||xt(C)?(e.consume(C),H):C===47||C===62||Fe(C)?U(C):n(C)}function U(C){return C===47?(e.consume(C),ue):C===58||C===95||kt(C)?(e.consume(C),P):ce(C)?(s=U,ae(C)):ve(C)?(e.consume(C),U):ue(C)}function P(C){return C===45||C===46||C===58||C===95||xt(C)?(e.consume(C),P):B(C)}function B(C){return C===61?(e.consume(C),O):ce(C)?(s=B,ae(C)):ve(C)?(e.consume(C),B):U(C)}function O(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),u=C,X):ce(C)?(s=O,ae(C)):ve(C)?(e.consume(C),O):(e.consume(C),Y)}function X(C){return C===u?(e.consume(C),u=void 0,K):C===null?n(C):ce(C)?(s=X,ae(C)):(e.consume(C),X)}function Y(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===47||C===62||Fe(C)?U(C):(e.consume(C),Y)}function K(C){return C===47||C===62||Fe(C)?U(C):n(C)}function ue(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):n(C)}function ae(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),se}function se(C){return ve(C)?we(e,_e,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):_e(C)}function _e(C){return e.enter("htmlTextData"),s(C)}}const ki={name:"labelEnd",resolveAll:Dx,resolveTo:Lx,tokenize:Px},Nx={tokenize:Rx},vx={tokenize:Mx},wx={tokenize:Ox};function Dx(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const u=r.type==="labelImage"?4:2;r.type="data",t+=u}}return e.length!==n.length&&$t(e,0,e.length,n),e}function Lx(e,t){let n=e.length,r=0,u,a,s,o;for(;n--;)if(u=e[n][1],a){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[n][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(a=n,u.type!=="labelLink")){r=2;break}}else u.type==="labelEnd"&&(s=n);const c={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},h={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",c,t],["enter",l,t]],o=Gt(o,e.slice(a+1,a+r+3)),o=Gt(o,[["enter",h,t]]),o=Gt(o,ka(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),o=Gt(o,[["exit",h,t],e[s-2],e[s-1],["exit",l,t]]),o=Gt(o,e.slice(s+1)),o=Gt(o,[["exit",c,t]]),$t(e,a,e.length,o),e}function Px(e,t,n){const r=this;let u=r.events.length,a,s;for(;u--;)if((r.events[u][1].type==="labelImage"||r.events[u][1].type==="labelLink")&&!r.events[u][1]._balanced){a=r.events[u][1];break}return o;function o(m){return a?a._inactive?f(m):(s=r.parser.defined.includes(nn(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):n(m)}function c(m){return m===40?e.attempt(Nx,h,s?h:f)(m):m===91?e.attempt(vx,h,s?l:f)(m):s?h(m):f(m)}function l(m){return e.attempt(wx,h,f)(m)}function h(m){return t(m)}function f(m){return a._balanced=!0,n(m)}}function Rx(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),u}function u(f){return Fe(f)?Gr(e,a)(f):a(f)}function a(f){return f===41?h(f):Q0(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Fe(f)?Gr(e,c)(f):h(f)}function o(f){return n(f)}function c(f){return f===34||f===39||f===40?e1(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):h(f)}function l(f){return Fe(f)?Gr(e,h)(f):h(f)}function h(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Mx(e,t,n){const r=this;return u;function u(o){return J0.call(r,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return r.parser.defined.includes(nn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function Ox(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),u}function u(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const jx={name:"labelStartImage",resolveAll:ki.resolveAll,tokenize:Fx};function Fx(e,t,n){const r=this;return u;function u(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Bx={name:"labelStartLink",resolveAll:ki.resolveAll,tokenize:Hx};function Hx(e,t,n){const r=this;return u;function u(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const rs={name:"lineEnding",tokenize:Ux};function Ux(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),we(e,t,"linePrefix")}}const zu={name:"thematicBreak",tokenize:Vx};function Vx(e,t,n){let r=0,u;return a;function a(l){return e.enter("thematicBreak"),s(l)}function s(l){return u=l,o(l)}function o(l){return l===u?(e.enter("thematicBreakSequence"),c(l)):r>=3&&(l===null||ce(l))?(e.exit("thematicBreak"),t(l)):n(l)}function c(l){return l===u?(e.consume(l),r++,c):(e.exit("thematicBreakSequence"),ve(l)?we(e,o,"whitespace")(l):o(l))}}const Dt={continuation:{tokenize:Zx},exit:Yx,name:"list",tokenize:qx},$x={partial:!0,tokenize:Gx},zx={partial:!0,tokenize:Wx};function qx(e,t,n){const r=this,u=r.events[r.events.length-1];let a=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,s=0;return o;function o(p){const b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:js(p)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(zu,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return n(p)}function c(p){return js(p)&&++s<10?(e.consume(p),c):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(xu,r.interrupt?n:h,e.attempt($x,m,f))}function h(p){return r.containerState.initialBlankLine=!0,a++,m(p)}function f(p){return ve(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Zx(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(xu,u,a);function u(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,we(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!ve(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(zx,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,we(e,e.attempt(Dt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Wx(e,t,n){const r=this;return we(e,u,"listItemIndent",r.containerState.size+1);function u(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function Yx(e){e.exit(this.containerState.type)}function Gx(e,t,n){const r=this;return we(e,u,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(a){const s=r.events[r.events.length-1];return!ve(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const uc={name:"setextUnderline",resolveTo:Xx,tokenize:Kx};function Xx(e,t){let n=e.length,r,u,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(u=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[u][1].type="setextHeadingText",a?(e.splice(u,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function Kx(e,t,n){const r=this;let u;return a;function a(l){let h=r.events.length,f;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){f=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),u=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===u?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),ve(l)?we(e,c,"lineSuffix")(l):c(l))}function c(l){return l===null||ce(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const Qx={tokenize:Jx};function Jx(e){const t=this,n=e.attempt(xu,r,e.attempt(this.parser.constructs.flowInitial,u,we(e,e.attempt(this.parser.constructs.flow,u,e.attempt(ux,u)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function u(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const eC={resolveAll:n1()},tC=t1("string"),nC=t1("text");function t1(e){return{resolveAll:n1(e==="text"?rC:void 0),tokenize:t};function t(n){const r=this,u=this.parser.constructs[e],a=n.attempt(u,s,o);return s;function s(h){return l(h)?a(h):o(h)}function o(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),c}function c(h){return l(h)?(n.exit("data"),a(h)):(n.consume(h),c)}function l(h){if(h===null)return!0;const f=u[h];let m=-1;if(f)for(;++m<f.length;){const p=f[m];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function n1(e){return t;function t(n,r){let u=-1,a;for(;++u<=n.length;)a===void 0?n[u]&&n[u][1].type==="data"&&(a=u,u++):(!n[u]||n[u][1].type!=="data")&&(u!==a+2&&(n[a][1].end=n[u-1][1].end,n.splice(a+2,u-a-2),u=a+2),a=void 0);return e?e(n,r):n}}function rC(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],u=t.sliceStream(r);let a=u.length,s=-1,o=0,c;for(;a--;){const l=u[a];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(l===-2)c=!0,o++;else if(l!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const l={type:n===e.length||c||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const uC={42:Dt,43:Dt,45:Dt,48:Dt,49:Dt,50:Dt,51:Dt,52:Dt,53:Dt,54:Dt,55:Dt,56:Dt,57:Dt,62:Y0},aC={91:cx},sC={[-2]:ns,[-1]:ns,32:ns},iC={35:mx,42:zu,45:[uc,zu],60:xx,61:uc,95:zu,96:nc,126:nc},oC={38:X0,92:G0},cC={[-5]:rs,[-4]:rs,[-3]:rs,33:jx,38:X0,42:Fs,60:[B_,Sx],91:Bx,92:[hx,G0],93:ki,95:Fs,96:Q_},lC={null:[Fs,eC]},dC={null:[42,95]},fC={null:[]},hC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:dC,contentInitial:aC,disable:fC,document:uC,flow:iC,flowInitial:sC,insideSpan:lC,string:oC,text:cC},Symbol.toStringTag,{value:"Module"}));function pC(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const u={},a=[];let s=[],o=[];const c={attempt:M(S),check:M(I),consume:k,enter:y,exit:D,interrupt:M(I,{interrupt:!0})},l={code:null,containerState:{},defineSkip:_,events:[],now:b,parser:e,previous:null,sliceSerialize:m,sliceStream:p,write:f};let h=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function f(B){return s=Gt(s,B),E(),s[s.length-1]!==null?[]:(H(t,0),l.events=ka(a,l.events,l),l.events)}function m(B,O){return gC(p(B),O)}function p(B){return mC(s,B)}function b(){const{_bufferIndex:B,_index:O,line:X,column:Y,offset:K}=r;return{_bufferIndex:B,_index:O,line:X,column:Y,offset:K}}function _(B){u[B.line]=B.column,P()}function E(){let B;for(;r._index<s.length;){const O=s[r._index];if(typeof O=="string")for(B=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<O.length;)x(O.charCodeAt(r._bufferIndex));else x(O)}}function x(B){h=h(B)}function k(B){ce(B)?(r.line++,r.column=1,r.offset+=B===-3?2:1,P()):B!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=B}function y(B,O){const X=O||{};return X.type=B,X.start=b(),l.events.push(["enter",X,l]),o.push(X),X}function D(B){const O=o.pop();return O.end=b(),l.events.push(["exit",O,l]),O}function S(B,O){H(B,O.from)}function I(B,O){O.restore()}function M(B,O){return X;function X(Y,K,ue){let ae,se,_e,C;return Array.isArray(Y)?te(Y):"tokenize"in Y?te([Y]):V(Y);function V(Q){return de;function de(le){const ie=le!==null&&Q[le],xe=le!==null&&Q.null,$e=[...Array.isArray(ie)?ie:ie?[ie]:[],...Array.isArray(xe)?xe:xe?[xe]:[]];return te($e)(le)}}function te(Q){return ae=Q,se=0,Q.length===0?ue:v(Q[se])}function v(Q){return de;function de(le){return C=U(),_e=Q,Q.partial||(l.currentConstruct=Q),Q.name&&l.parser.constructs.disable.null.includes(Q.name)?ne():Q.tokenize.call(O?Object.assign(Object.create(l),O):l,c,J,ne)(le)}}function J(Q){return B(_e,C),K}function ne(Q){return C.restore(),++se<ae.length?v(ae[se]):ue}}}function H(B,O){B.resolveAll&&!a.includes(B)&&a.push(B),B.resolve&&$t(l.events,O,l.events.length-O,B.resolve(l.events.slice(O),l)),B.resolveTo&&(l.events=B.resolveTo(l.events,l))}function U(){const B=b(),O=l.previous,X=l.currentConstruct,Y=l.events.length,K=Array.from(o);return{from:Y,restore:ue};function ue(){r=B,l.previous=O,l.currentConstruct=X,l.events.length=Y,o=K,P()}}function P(){r.line in u&&r.column<2&&(r.column=u[r.line],r.offset+=u[r.line]-1)}}function mC(e,t){const n=t.start._index,r=t.start._bufferIndex,u=t.end._index,a=t.end._bufferIndex;let s;if(n===u)s=[e[n].slice(r,a)];else{if(s=e.slice(n,u),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[u].slice(0,a))}return s}function gC(e,t){let n=-1;const r=[];let u;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
|
|
87
87
|
`;break}case-3:{s=`\r
|
|
88
|
-
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&u)continue;s=" ";break}default:s=String.fromCharCode(a)}u=a===-2,r.push(s)}return r.join("")}function gC(e){const r={constructs:q0([fC,...(e||{}).extensions||[]]),content:u(D_),defined:[],document:u(P_),flow:u(Kx),lazy:{},string:u(eC),text:u(tC)};return r;function u(a){return s;function s(o){return hC(r,a,o)}}}function bC(e){for(;!X0(e););return e}const uc=/[\0\t\n\r]/g;function _C(){let e=1,t="",n=!0,r;return u;function u(a,s,o){const c=[];let l,h,f,m,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),f=0,t="",n&&(a.charCodeAt(0)===65279&&f++,n=void 0);f<a.length;){if(uc.lastIndex=f,l=uc.exec(a),m=l&&l.index!==void 0?l.index:a.length,p=a.charCodeAt(m),!l){t=a.slice(f);break}if(p===10&&f===m&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),f<m&&(c.push(a.slice(f,m)),e+=m-f),p){case 0:{c.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,c.push(-2);e++<h;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}f=m+1}return o&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const xC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function CC(e){return e.replace(xC,EC)}function EC(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const u=n.charCodeAt(1),a=u===120||u===88;return Z0(n.slice(a?2:1),a?16:10)}return Ti(n)||e}const n1={}.hasOwnProperty;function yC(e,t,n){return typeof t!="string"&&(n=t,t=void 0),TC(n)(bC(gC(n).document().write(_C()(e,t,!0))))}function TC(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ee),autolinkProtocol:U,autolinkEmail:U,atxHeading:a(pe),blockQuote:a(xe),characterEscape:U,characterReference:U,codeFenced:a($e),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a($e,s),codeText:a(G,s),codeTextData:U,data:U,codeFlowValue:U,definition:a(pt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(oe),hardBreakEscape:a(Qe),hardBreakTrailing:a(Qe),htmlFlow:a(Ee,s),htmlFlowData:U,htmlText:a(Ee,s),htmlTextData:U,image:a(Ne),label:s,link:a(ee),listItem:a(mt),listItemValue:m,listOrdered:a(ge,f),listUnordered:a(ge),paragraph:a(gt),reference:v,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(pe),strong:a(qt),thematicBreak:a(Ve)},exit:{atxHeading:c(),atxHeadingSequence:S,autolink:c(),autolinkEmail:ie,autolinkProtocol:le,blockQuote:c(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:Q,characterReference:de,codeFenced:c(E),codeFencedFence:_,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:P,codeIndented:c(x),codeText:c(K),codeTextData:P,data:P,definition:c(),definitionDestinationString:D,definitionLabelString:k,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(X),htmlFlowData:P,htmlText:c(Y),htmlTextData:P,image:c(ae),label:_e,labelText:se,lineEnding:B,link:c(ue),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:J,resourceDestinationString:C,resourceTitleString:V,resource:te,setextHeading:c(H),setextHeadingLineSequence:M,setextHeadingText:I,strong:c(),thematicBreak:c()}};r1(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(j){let W={type:"root",children:[]};const fe={stack:[W],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:h,data:n},Se=[];let Oe=-1;for(;++Oe<j.length;)if(j[Oe][1].type==="listOrdered"||j[Oe][1].type==="listUnordered")if(j[Oe][0]==="enter")Se.push(Oe);else{const Ot=Se.pop();Oe=u(j,Ot,Oe)}for(Oe=-1;++Oe<j.length;){const Ot=t[j[Oe][0]];n1.call(Ot,j[Oe][1].type)&&Ot[j[Oe][1].type].call(Object.assign({sliceSerialize:j[Oe][2].sliceSerialize},fe),j[Oe][1])}if(fe.tokenStack.length>0){const Ot=fe.tokenStack[fe.tokenStack.length-1];(Ot[1]||ac).call(fe,void 0,Ot[0])}for(W.position={start:Dn(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Dn(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},Oe=-1;++Oe<t.transforms.length;)W=t.transforms[Oe](W)||W;return W}function u(j,W,fe){let Se=W-1,Oe=-1,Ot=!1,_n,dt,xn,Yn;for(;++Se<=fe;){const jt=j[Se];switch(jt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{jt[0]==="enter"?Oe++:Oe--,Yn=void 0;break}case"lineEndingBlank":{jt[0]==="enter"&&(_n&&!Yn&&!Oe&&!xn&&(xn=Se),Yn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Yn=void 0}if(!Oe&&jt[0]==="enter"&&jt[1].type==="listItemPrefix"||Oe===-1&&jt[0]==="exit"&&(jt[1].type==="listUnordered"||jt[1].type==="listOrdered")){if(_n){let dr=Se;for(dt=void 0;dr--;){const Cn=j[dr];if(Cn[1].type==="lineEnding"||Cn[1].type==="lineEndingBlank"){if(Cn[0]==="exit")continue;dt&&(j[dt][1].type="lineEndingBlank",Ot=!0),Cn[1].type="lineEnding",dt=dr}else if(!(Cn[1].type==="linePrefix"||Cn[1].type==="blockQuotePrefix"||Cn[1].type==="blockQuotePrefixWhitespace"||Cn[1].type==="blockQuoteMarker"||Cn[1].type==="listItemIndent"))break}xn&&(!dt||xn<dt)&&(_n._spread=!0),_n.end=Object.assign({},dt?j[dt][1].start:jt[1].end),j.splice(dt||Se,0,["exit",_n,jt[2]]),Se++,fe++}if(jt[1].type==="listItemPrefix"){const dr={type:"listItem",_spread:!1,start:Object.assign({},jt[1].start),end:void 0};_n=dr,j.splice(Se,0,["enter",dr,jt[2]]),Se++,fe++,xn=void 0,Yn=!0}}}return j[W][1]._spread=Ot,fe}function a(j,W){return fe;function fe(Se){o.call(this,j(Se),Se),W&&W.call(this,Se)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(j,W,fe){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([W,fe||void 0]),j.position={start:Dn(W.start),end:void 0}}function c(j){return W;function W(fe){j&&j.call(this,fe),l.call(this,fe)}}function l(j,W){const fe=this.stack.pop(),Se=this.tokenStack.pop();if(Se)Se[0].type!==j.type&&(W?W.call(this,j,Se[0]):(Se[1]||ac).call(this,j,Se[0]));else throw new Error("Cannot close `"+j.type+"` ("+Yr({start:j.start,end:j.end})+"): it’s not open");fe.position.end=Dn(j.end)}function h(){return yi(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(j){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function p(){const j=this.resume(),W=this.stack[this.stack.length-1];W.lang=j}function b(){const j=this.resume(),W=this.stack[this.stack.length-1];W.meta=j}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j.replace(/(\r?\n|\r)$/g,"")}function k(j){const W=this.resume(),fe=this.stack[this.stack.length-1];fe.label=W,fe.identifier=nn(this.sliceSerialize(j)).toLowerCase()}function y(){const j=this.resume(),W=this.stack[this.stack.length-1];W.title=j}function D(){const j=this.resume(),W=this.stack[this.stack.length-1];W.url=j}function S(j){const W=this.stack[this.stack.length-1];if(!W.depth){const fe=this.sliceSerialize(j).length;W.depth=fe}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function M(j){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function U(j){const fe=this.stack[this.stack.length-1].children;let Se=fe[fe.length-1];(!Se||Se.type!=="text")&&(Se=At(),Se.position={start:Dn(j.start),end:void 0},fe.push(Se)),this.stack.push(Se)}function P(j){const W=this.stack.pop();W.value+=this.sliceSerialize(j),W.position.end=Dn(j.end)}function B(j){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const fe=W.children[W.children.length-1];fe.position.end=Dn(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(W.type)&&(U.call(this,j),P.call(this,j))}function O(){this.data.atHardBreak=!0}function X(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j}function Y(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j}function K(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j}function ue(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=W,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function ae(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=W,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function se(j){const W=this.sliceSerialize(j),fe=this.stack[this.stack.length-2];fe.label=CC(W),fe.identifier=nn(W).toLowerCase()}function _e(){const j=this.stack[this.stack.length-1],W=this.resume(),fe=this.stack[this.stack.length-1];if(this.data.inReference=!0,fe.type==="link"){const Se=j.children;fe.children=Se}else fe.alt=W}function C(){const j=this.resume(),W=this.stack[this.stack.length-1];W.url=j}function V(){const j=this.resume(),W=this.stack[this.stack.length-1];W.title=j}function te(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function J(j){const W=this.resume(),fe=this.stack[this.stack.length-1];fe.label=W,fe.identifier=nn(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function ne(j){this.data.characterReferenceType=j.type}function Q(j){const W=this.sliceSerialize(j),fe=this.data.characterReferenceType;let Se;fe?(Se=Z0(W,fe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Se=Ti(W);const Oe=this.stack[this.stack.length-1];Oe.value+=Se}function de(j){const W=this.stack.pop();W.position.end=Dn(j.end)}function le(j){P.call(this,j);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(j)}function ie(j){P.call(this,j);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(j)}function xe(){return{type:"blockquote",children:[]}}function $e(){return{type:"code",lang:null,meta:null,value:""}}function G(){return{type:"inlineCode",value:""}}function pt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function oe(){return{type:"emphasis",children:[]}}function pe(){return{type:"heading",depth:0,children:[]}}function Qe(){return{type:"break"}}function Ee(){return{type:"html",value:""}}function Ne(){return{type:"image",title:null,url:"",alt:null}}function ee(){return{type:"link",title:null,url:"",children:[]}}function ge(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function mt(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function gt(){return{type:"paragraph",children:[]}}function qt(){return{type:"strong",children:[]}}function At(){return{type:"text",value:""}}function Ve(){return{type:"thematicBreak"}}}function Dn(e){return{line:e.line,column:e.column,offset:e.offset}}function r1(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?r1(e,r):kC(e,r)}}function kC(e,t){let n;for(n in t)if(n1.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ac(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Yr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Yr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Yr({start:t.start,end:t.end})+") is still open")}function AC(e){const t=this;t.parser=n;function n(r){return yC(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function SC(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function IC(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
89
|
-
`}]}function
|
|
90
|
-
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let u={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(u.data={meta:t.meta}),e.patch(t,u),u=e.applyData(t,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(t,u),u}function
|
|
88
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&u)continue;s=" ";break}default:s=String.fromCharCode(a)}u=a===-2,r.push(s)}return r.join("")}function bC(e){const r={constructs:Z0([hC,...(e||{}).extensions||[]]),content:u(L_),defined:[],document:u(R_),flow:u(Qx),lazy:{},string:u(tC),text:u(nC)};return r;function u(a){return s;function s(o){return pC(r,a,o)}}}function _C(e){for(;!K0(e););return e}const ac=/[\0\t\n\r]/g;function xC(){let e=1,t="",n=!0,r;return u;function u(a,s,o){const c=[];let l,h,f,m,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),f=0,t="",n&&(a.charCodeAt(0)===65279&&f++,n=void 0);f<a.length;){if(ac.lastIndex=f,l=ac.exec(a),m=l&&l.index!==void 0?l.index:a.length,p=a.charCodeAt(m),!l){t=a.slice(f);break}if(p===10&&f===m&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),f<m&&(c.push(a.slice(f,m)),e+=m-f),p){case 0:{c.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,c.push(-2);e++<h;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}f=m+1}return o&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const CC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function EC(e){return e.replace(CC,yC)}function yC(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const u=n.charCodeAt(1),a=u===120||u===88;return W0(n.slice(a?2:1),a?16:10)}return Ti(n)||e}const r1={}.hasOwnProperty;function TC(e,t,n){return typeof t!="string"&&(n=t,t=void 0),kC(n)(_C(bC(n).document().write(xC()(e,t,!0))))}function kC(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ee),autolinkProtocol:U,autolinkEmail:U,atxHeading:a(pe),blockQuote:a(xe),characterEscape:U,characterReference:U,codeFenced:a($e),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a($e,s),codeText:a(G,s),codeTextData:U,data:U,codeFlowValue:U,definition:a(pt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(oe),hardBreakEscape:a(Qe),hardBreakTrailing:a(Qe),htmlFlow:a(Ee,s),htmlFlowData:U,htmlText:a(Ee,s),htmlTextData:U,image:a(Ne),label:s,link:a(ee),listItem:a(mt),listItemValue:m,listOrdered:a(ge,f),listUnordered:a(ge),paragraph:a(gt),reference:v,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(pe),strong:a(qt),thematicBreak:a(Ve)},exit:{atxHeading:c(),atxHeadingSequence:S,autolink:c(),autolinkEmail:ie,autolinkProtocol:le,blockQuote:c(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:Q,characterReference:de,codeFenced:c(E),codeFencedFence:_,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:P,codeIndented:c(x),codeText:c(K),codeTextData:P,data:P,definition:c(),definitionDestinationString:D,definitionLabelString:k,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(X),htmlFlowData:P,htmlText:c(Y),htmlTextData:P,image:c(ae),label:_e,labelText:se,lineEnding:B,link:c(ue),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:J,resourceDestinationString:C,resourceTitleString:V,resource:te,setextHeading:c(H),setextHeadingLineSequence:M,setextHeadingText:I,strong:c(),thematicBreak:c()}};u1(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(j){let W={type:"root",children:[]};const fe={stack:[W],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:h,data:n},Se=[];let Oe=-1;for(;++Oe<j.length;)if(j[Oe][1].type==="listOrdered"||j[Oe][1].type==="listUnordered")if(j[Oe][0]==="enter")Se.push(Oe);else{const Ot=Se.pop();Oe=u(j,Ot,Oe)}for(Oe=-1;++Oe<j.length;){const Ot=t[j[Oe][0]];r1.call(Ot,j[Oe][1].type)&&Ot[j[Oe][1].type].call(Object.assign({sliceSerialize:j[Oe][2].sliceSerialize},fe),j[Oe][1])}if(fe.tokenStack.length>0){const Ot=fe.tokenStack[fe.tokenStack.length-1];(Ot[1]||sc).call(fe,void 0,Ot[0])}for(W.position={start:Dn(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Dn(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},Oe=-1;++Oe<t.transforms.length;)W=t.transforms[Oe](W)||W;return W}function u(j,W,fe){let Se=W-1,Oe=-1,Ot=!1,_n,dt,xn,Yn;for(;++Se<=fe;){const jt=j[Se];switch(jt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{jt[0]==="enter"?Oe++:Oe--,Yn=void 0;break}case"lineEndingBlank":{jt[0]==="enter"&&(_n&&!Yn&&!Oe&&!xn&&(xn=Se),Yn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Yn=void 0}if(!Oe&&jt[0]==="enter"&&jt[1].type==="listItemPrefix"||Oe===-1&&jt[0]==="exit"&&(jt[1].type==="listUnordered"||jt[1].type==="listOrdered")){if(_n){let dr=Se;for(dt=void 0;dr--;){const Cn=j[dr];if(Cn[1].type==="lineEnding"||Cn[1].type==="lineEndingBlank"){if(Cn[0]==="exit")continue;dt&&(j[dt][1].type="lineEndingBlank",Ot=!0),Cn[1].type="lineEnding",dt=dr}else if(!(Cn[1].type==="linePrefix"||Cn[1].type==="blockQuotePrefix"||Cn[1].type==="blockQuotePrefixWhitespace"||Cn[1].type==="blockQuoteMarker"||Cn[1].type==="listItemIndent"))break}xn&&(!dt||xn<dt)&&(_n._spread=!0),_n.end=Object.assign({},dt?j[dt][1].start:jt[1].end),j.splice(dt||Se,0,["exit",_n,jt[2]]),Se++,fe++}if(jt[1].type==="listItemPrefix"){const dr={type:"listItem",_spread:!1,start:Object.assign({},jt[1].start),end:void 0};_n=dr,j.splice(Se,0,["enter",dr,jt[2]]),Se++,fe++,xn=void 0,Yn=!0}}}return j[W][1]._spread=Ot,fe}function a(j,W){return fe;function fe(Se){o.call(this,j(Se),Se),W&&W.call(this,Se)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(j,W,fe){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([W,fe||void 0]),j.position={start:Dn(W.start),end:void 0}}function c(j){return W;function W(fe){j&&j.call(this,fe),l.call(this,fe)}}function l(j,W){const fe=this.stack.pop(),Se=this.tokenStack.pop();if(Se)Se[0].type!==j.type&&(W?W.call(this,j,Se[0]):(Se[1]||sc).call(this,j,Se[0]));else throw new Error("Cannot close `"+j.type+"` ("+Yr({start:j.start,end:j.end})+"): it’s not open");fe.position.end=Dn(j.end)}function h(){return yi(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(j){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function p(){const j=this.resume(),W=this.stack[this.stack.length-1];W.lang=j}function b(){const j=this.resume(),W=this.stack[this.stack.length-1];W.meta=j}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j.replace(/(\r?\n|\r)$/g,"")}function k(j){const W=this.resume(),fe=this.stack[this.stack.length-1];fe.label=W,fe.identifier=nn(this.sliceSerialize(j)).toLowerCase()}function y(){const j=this.resume(),W=this.stack[this.stack.length-1];W.title=j}function D(){const j=this.resume(),W=this.stack[this.stack.length-1];W.url=j}function S(j){const W=this.stack[this.stack.length-1];if(!W.depth){const fe=this.sliceSerialize(j).length;W.depth=fe}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function M(j){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function U(j){const fe=this.stack[this.stack.length-1].children;let Se=fe[fe.length-1];(!Se||Se.type!=="text")&&(Se=At(),Se.position={start:Dn(j.start),end:void 0},fe.push(Se)),this.stack.push(Se)}function P(j){const W=this.stack.pop();W.value+=this.sliceSerialize(j),W.position.end=Dn(j.end)}function B(j){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const fe=W.children[W.children.length-1];fe.position.end=Dn(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(W.type)&&(U.call(this,j),P.call(this,j))}function O(){this.data.atHardBreak=!0}function X(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j}function Y(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j}function K(){const j=this.resume(),W=this.stack[this.stack.length-1];W.value=j}function ue(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=W,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function ae(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=W,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function se(j){const W=this.sliceSerialize(j),fe=this.stack[this.stack.length-2];fe.label=EC(W),fe.identifier=nn(W).toLowerCase()}function _e(){const j=this.stack[this.stack.length-1],W=this.resume(),fe=this.stack[this.stack.length-1];if(this.data.inReference=!0,fe.type==="link"){const Se=j.children;fe.children=Se}else fe.alt=W}function C(){const j=this.resume(),W=this.stack[this.stack.length-1];W.url=j}function V(){const j=this.resume(),W=this.stack[this.stack.length-1];W.title=j}function te(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function J(j){const W=this.resume(),fe=this.stack[this.stack.length-1];fe.label=W,fe.identifier=nn(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function ne(j){this.data.characterReferenceType=j.type}function Q(j){const W=this.sliceSerialize(j),fe=this.data.characterReferenceType;let Se;fe?(Se=W0(W,fe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Se=Ti(W);const Oe=this.stack[this.stack.length-1];Oe.value+=Se}function de(j){const W=this.stack.pop();W.position.end=Dn(j.end)}function le(j){P.call(this,j);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(j)}function ie(j){P.call(this,j);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(j)}function xe(){return{type:"blockquote",children:[]}}function $e(){return{type:"code",lang:null,meta:null,value:""}}function G(){return{type:"inlineCode",value:""}}function pt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function oe(){return{type:"emphasis",children:[]}}function pe(){return{type:"heading",depth:0,children:[]}}function Qe(){return{type:"break"}}function Ee(){return{type:"html",value:""}}function Ne(){return{type:"image",title:null,url:"",alt:null}}function ee(){return{type:"link",title:null,url:"",children:[]}}function ge(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function mt(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function gt(){return{type:"paragraph",children:[]}}function qt(){return{type:"strong",children:[]}}function At(){return{type:"text",value:""}}function Ve(){return{type:"thematicBreak"}}}function Dn(e){return{line:e.line,column:e.column,offset:e.offset}}function u1(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?u1(e,r):AC(e,r)}}function AC(e,t){let n;for(n in t)if(r1.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function sc(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Yr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Yr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Yr({start:t.start,end:t.end})+") is still open")}function SC(e){const t=this;t.parser=n;function n(r){return TC(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function IC(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function NC(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
89
|
+
`}]}function vC(e,t){const n=t.value?t.value+`
|
|
90
|
+
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let u={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(u.data={meta:t.meta}),e.patch(t,u),u=e.applyData(t,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(t,u),u}function wC(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function DC(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function LC(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),u=Pr(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(r,o);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+u,id:n+"fnref-"+u+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,c);const l={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function PC(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function RC(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function a1(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const u=e.all(t),a=u[0];a&&a.type==="text"?a.value="["+a.value:u.unshift({type:"text",value:"["});const s=u[u.length-1];return s&&s.type==="text"?s.value+=r:u.push({type:"text",value:r}),u}function MC(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return a1(e,t);const u={src:Pr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(u.title=r.title);const a={type:"element",tagName:"img",properties:u,children:[]};return e.patch(t,a),e.applyData(t,a)}function OC(e,t){const n={src:Pr(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function jC(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function FC(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return a1(e,t);const u={href:Pr(r.url||"")};r.title!==null&&r.title!==void 0&&(u.title=r.title);const a={type:"element",tagName:"a",properties:u,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function BC(e,t){const n={href:Pr(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function HC(e,t,n){const r=e.all(t),u=n?UC(n):s1(t),a={},s=[];if(typeof t.checked=="boolean"){const h=r[0];let f;h&&h.type==="element"&&h.tagName==="p"?f=h:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const h=r[o];(u||o!==0||h.type!=="element"||h.tagName!=="p")&&s.push({type:"text",value:`
|
|
91
91
|
`}),h.type==="element"&&h.tagName==="p"&&!u?s.push(...h.children):s.push(h)}const c=r[r.length-1];c&&(u||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
92
|
-
`});const l={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,l),e.applyData(t,l)}function
|
|
92
|
+
`});const l={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,l),e.applyData(t,l)}function UC(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=s1(n[r])}return t}function s1(e){const t=e.spread;return t??e.children.length>1}function VC(e,t){const n={},r=e.all(t);let u=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++u<r.length;){const s=r[u];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function $C(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zC(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function qC(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ZC(e,t){const n=e.all(t),r=n.shift(),u=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),u.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=gn(t.children[1]),c=ya(t.children[t.children.length-1]);o&&c&&(s.position={start:o,end:c}),u.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(u,!0)};return e.patch(t,a),e.applyData(t,a)}function WC(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let c=-1;const l=[];for(;++c<o;){const f=t.children[c],m={},p=s?s[c]:void 0;p&&(m.align=p);let b={type:"element",tagName:a,properties:m,children:[]};f&&(b.children=e.all(f),e.patch(f,b),b=e.applyData(f,b)),l.push(b)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,h),e.applyData(t,h)}function YC(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const ic=9,oc=32;function GC(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),u=0;const a=[];for(;r;)a.push(cc(t.slice(u,r.index),u>0,!0),r[0]),u=r.index+r[0].length,r=n.exec(t);return a.push(cc(t.slice(u),u>0,!1)),a.join("")}function cc(e,t,n){let r=0,u=e.length;if(t){let a=e.codePointAt(r);for(;a===ic||a===oc;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(u-1);for(;a===ic||a===oc;)u--,a=e.codePointAt(u-1)}return u>r?e.slice(r,u):""}function XC(e,t){const n={type:"text",value:GC(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function KC(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const QC={blockquote:IC,break:NC,code:vC,delete:wC,emphasis:DC,footnoteReference:LC,heading:PC,html:RC,imageReference:MC,image:OC,inlineCode:jC,linkReference:FC,link:BC,listItem:HC,list:VC,paragraph:$C,root:zC,strong:qC,table:ZC,tableCell:YC,tableRow:WC,text:XC,thematicBreak:KC,toml:Ou,yaml:Ou,definition:Ou,footnoteDefinition:Ou};function Ou(){}const i1=-1,Aa=0,Xr=1,Ju=2,Ai=3,Si=4,Ii=5,Ni=6,o1=7,c1=8,lc=typeof self=="object"?self:globalThis,JC=(e,t)=>{const n=(u,a)=>(e.set(a,u),u),r=u=>{if(e.has(u))return e.get(u);const[a,s]=t[u];switch(a){case Aa:case i1:return n(s,u);case Xr:{const o=n([],u);for(const c of s)o.push(r(c));return o}case Ju:{const o=n({},u);for(const[c,l]of s)o[r(c)]=r(l);return o}case Ai:return n(new Date(s),u);case Si:{const{source:o,flags:c}=s;return n(new RegExp(o,c),u)}case Ii:{const o=n(new Map,u);for(const[c,l]of s)o.set(r(c),r(l));return o}case Ni:{const o=n(new Set,u);for(const c of s)o.add(r(c));return o}case o1:{const{name:o,message:c}=s;return n(new lc[o](c),u)}case c1:return n(BigInt(s),u);case"BigInt":return n(Object(BigInt(s)),u);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new lc[a](s),u)};return r},dc=e=>JC(new Map,e)(0),pr="",{toString:eE}={},{keys:tE}=Object,Ur=e=>{const t=typeof e;if(t!=="object"||!e)return[Aa,t];const n=eE.call(e).slice(8,-1);switch(n){case"Array":return[Xr,pr];case"Object":return[Ju,pr];case"Date":return[Ai,pr];case"RegExp":return[Si,pr];case"Map":return[Ii,pr];case"Set":return[Ni,pr];case"DataView":return[Xr,n]}return n.includes("Array")?[Xr,n]:n.includes("Error")?[o1,n]:[Ju,n]},ju=([e,t])=>e===Aa&&(t==="function"||t==="symbol"),nE=(e,t,n,r)=>{const u=(s,o)=>{const c=r.push(s)-1;return n.set(o,c),c},a=s=>{if(n.has(s))return n.get(s);let[o,c]=Ur(s);switch(o){case Aa:{let h=s;switch(c){case"bigint":o=c1,h=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);h=null;break;case"undefined":return u([i1],s)}return u([o,h],s)}case Xr:{if(c){let m=s;return c==="DataView"?m=new Uint8Array(s.buffer):c==="ArrayBuffer"&&(m=new Uint8Array(s)),u([c,[...m]],s)}const h=[],f=u([o,h],s);for(const m of s)h.push(a(m));return f}case Ju:{if(c)switch(c){case"BigInt":return u([c,s.toString()],s);case"Boolean":case"Number":case"String":return u([c,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const h=[],f=u([o,h],s);for(const m of tE(s))(e||!ju(Ur(s[m])))&&h.push([a(m),a(s[m])]);return f}case Ai:return u([o,s.toISOString()],s);case Si:{const{source:h,flags:f}=s;return u([o,{source:h,flags:f}],s)}case Ii:{const h=[],f=u([o,h],s);for(const[m,p]of s)(e||!(ju(Ur(m))||ju(Ur(p))))&&h.push([a(m),a(p)]);return f}case Ni:{const h=[],f=u([o,h],s);for(const m of s)(e||!ju(Ur(m)))&&h.push(a(m));return f}}const{message:l}=s;return u([o,{name:c,message:l}],s)};return a},fc=(e,{json:t,lossy:n}={})=>{const r=[];return nE(!(t||n),!!t,new Map,r)(e),r},Sr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?dc(fc(e,t)):structuredClone(e):(e,t)=>dc(fc(e,t));function rE(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function uE(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function aE(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||rE,r=e.options.footnoteBackLabel||uE,u=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let c=-1;for(;++c<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[c]);if(!l)continue;const h=e.all(l),f=String(l.identifier).toUpperCase(),m=Pr(f.toLowerCase());let p=0;const b=[],_=e.footnoteCounts.get(f);for(;_!==void 0&&++p<=_;){b.length>0&&b.push({type:"text",value:" "});let k=typeof n=="string"?n:n(c,p);typeof k=="string"&&(k={type:"text",value:k}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,p),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const E=h[h.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const k=E.children[E.children.length-1];k&&k.type==="text"?k.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...b)}else h.push(...b);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(h,!0)};e.patch(l,x),o.push(x)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Sr(s),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:`
|
|
93
93
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
94
|
-
`}]}}const
|
|
94
|
+
`}]}}const Sa=function(e){if(e==null)return cE;if(typeof e=="function")return Ia(e);if(typeof e=="object")return Array.isArray(e)?sE(e):iE(e);if(typeof e=="string")return oE(e);throw new Error("Expected function, string, or object as test")};function sE(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Sa(e[n]);return Ia(r);function r(...u){let a=-1;for(;++a<t.length;)if(t[a].apply(this,u))return!0;return!1}}function iE(e){const t=e;return Ia(n);function n(r){const u=r;let a;for(a in e)if(u[a]!==t[a])return!1;return!0}}function oE(e){return Ia(t);function t(n){return n&&n.type===e}}function Ia(e){return t;function t(n,r,u){return!!(lE(n)&&e.call(this,n,typeof r=="number"?r:void 0,u||void 0))}}function cE(){return!0}function lE(e){return e!==null&&typeof e=="object"&&"type"in e}const l1=[],dE=!0,Bs=!1,fE="skip";function d1(e,t,n,r){let u;typeof t=="function"&&typeof n!="function"?(r=n,n=t):u=t;const a=Sa(u),s=r?-1:1;o(e,void 0,[])();function o(c,l,h){const f=c&&typeof c=="object"?c:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(c.type+(p?"<"+p+">":""))+")"})}return m;function m(){let p=l1,b,_,E;if((!t||a(c,l,h[h.length-1]||void 0))&&(p=hE(n(c,h)),p[0]===Bs))return p;if("children"in c&&c.children){const x=c;if(x.children&&p[0]!==fE)for(_=(r?x.children.length:-1)+s,E=h.concat(x);_>-1&&_<x.children.length;){const k=x.children[_];if(b=o(k,_,E)(),b[0]===Bs)return b;_=typeof b[1]=="number"?b[1]:_+s}}return p}}}function hE(e){return Array.isArray(e)?e:typeof e=="number"?[dE,e]:e==null?l1:[e]}function Na(e,t,n,r){let u,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,u=n):(a=t,s=n,u=r),d1(e,a,o,u);function o(c,l){const h=l[l.length-1],f=h?h.children.indexOf(c):void 0;return s(c,f,h)}}const Hs={}.hasOwnProperty,pE={};function mE(e,t){const n=t||pE,r=new Map,u=new Map,a=new Map,s={...QC,...n.handlers},o={all:l,applyData:bE,definitionById:r,footnoteById:u,footnoteCounts:a,footnoteOrder:[],handlers:s,one:c,options:n,patch:gE,wrap:xE};return Na(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const f=h.type==="definition"?r:u,m=String(h.identifier).toUpperCase();f.has(m)||f.set(m,h)}}),o;function c(h,f){const m=h.type,p=o.handlers[m];if(Hs.call(o.handlers,m)&&p)return p(o,h,f);if(o.options.passThrough&&o.options.passThrough.includes(m)){if("children"in h){const{children:_,...E}=h,x=Sr(E);return x.children=o.all(h),x}return Sr(h)}return(o.options.unknownHandler||_E)(o,h,f)}function l(h){const f=[];if("children"in h){const m=h.children;let p=-1;for(;++p<m.length;){const b=o.one(m[p],h);if(b){if(p&&m[p-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=hc(b.value)),!Array.isArray(b)&&b.type==="element")){const _=b.children[0];_&&_.type==="text"&&(_.value=hc(_.value))}Array.isArray(b)?f.push(...b):f.push(b)}}}return f}}function gE(e,t){e.position&&(t.position=n_(e))}function bE(e,t){let n=t;if(e&&e.data){const r=e.data.hName,u=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,Sr(a)),"children"in n&&n.children&&u!==null&&u!==void 0&&(n.children=u)}return n}function _E(e,t){const n=t.data||{},r="value"in t&&!(Hs.call(n,"hProperties")||Hs.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xE(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
95
95
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
96
96
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
97
|
-
`}),n}function
|
|
98
|
-
`},u),a}function xE(e,t){return e&&"run"in e?async function(n,r){const u=hc(n,{file:r,...t});await e.run(u,r)}:function(n,r){return hc(n,{file:r,...e||t})}}function pc(e){if(e)throw e}var zu=Object.prototype.hasOwnProperty,d1=Object.prototype.toString,mc=Object.defineProperty,gc=Object.getOwnPropertyDescriptor,bc=function(t){return typeof Array.isArray=="function"?Array.isArray(t):d1.call(t)==="[object Array]"},_c=function(t){if(!t||d1.call(t)!=="[object Object]")return!1;var n=zu.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&zu.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var u;for(u in t);return typeof u>"u"||zu.call(t,u)},xc=function(t,n){mc&&n.name==="__proto__"?mc(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Cc=function(t,n){if(n==="__proto__")if(zu.call(t,n)){if(gc)return gc(t,n).value}else return;return t[n]},CE=function e(){var t,n,r,u,a,s,o=arguments[0],c=1,l=arguments.length,h=!1;for(typeof o=="boolean"&&(h=o,o=arguments[1]||{},c=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});c<l;++c)if(t=arguments[c],t!=null)for(n in t)r=Cc(o,n),u=Cc(t,n),o!==u&&(h&&u&&(_c(u)||(a=bc(u)))?(a?(a=!1,s=r&&bc(r)?r:[]):s=r&&_c(r)?r:{},xc(o,{name:n,newValue:e(h,s,u)})):typeof u<"u"&&xc(o,{name:n,newValue:u}));return o};const rs=g.getDefaultExportFromCjs(CE);function Us(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function EE(){const e=[],t={run:n,use:r};return t;function n(...u){let a=-1;const s=u.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...u);function o(c,...l){const h=e[++a];let f=-1;if(c){s(c);return}for(;++f<u.length;)(l[f]===null||l[f]===void 0)&&(l[f]=u[f]);u=l,h?yE(h,o)(...l):s(null,...l)}}function r(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return e.push(u),t}}function yE(e,t){let n;return r;function r(...s){const o=e.length>s.length;let c;o&&s.push(u);try{c=e.apply(this,s)}catch(l){const h=l;if(o&&n)throw h;return u(h)}o||(c&&c.then&&typeof c.then=="function"?c.then(a,u):c instanceof Error?u(c):a(c))}function u(s,...o){n||(n=!0,t(s,...o))}function a(s){u(null,s)}}const ln={basename:TE,dirname:kE,extname:AE,join:SE,sep:"/"};function TE(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Cu(e);let n=0,r=-1,u=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;u--;)if(e.codePointAt(u)===47){if(a){n=u+1;break}}else r<0&&(a=!0,r=u+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;u--;)if(e.codePointAt(u)===47){if(a){n=u+1;break}}else s<0&&(a=!0,s=u+1),o>-1&&(e.codePointAt(u)===t.codePointAt(o--)?o<0&&(r=u):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function kE(e){if(Cu(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function AE(e){Cu(e);let t=e.length,n=-1,r=0,u=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?u<0?u=t:a!==1&&(a=1):u>-1&&(a=-1)}return u<0||n<0||a===0||a===1&&u===n-1&&u===r+1?"":e.slice(u,n)}function SE(...e){let t=-1,n;for(;++t<e.length;)Cu(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":IE(n)}function IE(e){Cu(e);const t=e.codePointAt(0)===47;let n=NE(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function NE(e,t){let n="",r=0,u=-1,a=0,s=-1,o,c;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(u===s-1||a===1))if(u!==s-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),u=s,a=0;continue}}else if(n.length>0){n="",r=0,u=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(u+1,s):n=e.slice(u+1,s),r=s-u-1;u=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function Cu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const vE={cwd:wE};function wE(){return"/"}function Vs(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function DE(e){if(typeof e=="string")e=new URL(e);else if(!Vs(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return LE(e)}function LE(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(t)}const us=["history","path","basename","stem","extname","dirname"];class f1{constructor(t){let n;t?Vs(t)?n={path:t}:typeof t=="string"||PE(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":vE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<us.length;){const a=us[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let u;for(u in n)us.includes(u)||(this[u]=n[u])}get basename(){return typeof this.path=="string"?ln.basename(this.path):void 0}set basename(t){ss(t,"basename"),as(t,"basename"),this.path=ln.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ln.dirname(this.path):void 0}set dirname(t){Ec(this.basename,"dirname"),this.path=ln.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ln.extname(this.path):void 0}set extname(t){if(as(t,"extname"),Ec(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ln.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Vs(t)&&(t=DE(t)),ss(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ln.basename(this.path,this.extname):void 0}set stem(t){ss(t,"stem"),as(t,"stem"),this.path=ln.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const u=this.message(t,n,r);throw u.fatal=!0,u}info(t,n,r){const u=this.message(t,n,r);return u.fatal=void 0,u}message(t,n,r){const u=new Ct(t,n,r);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function as(e,t){if(e&&e.includes(ln.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ln.sep+"`")}function ss(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ec(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function PE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const RE=function(e){const r=this.constructor.prototype,u=r[e],a=function(){return u.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},ME={}.hasOwnProperty;class vi extends RE{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=EE()}copy(){const t=new vi;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(rs(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(cs("data",this.frozen),this.namespace[t]=n,this):ME.call(this.namespace,t)&&this.namespace[t]||void 0:t?(cs("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const u=n.call(t,...r);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ju(t),r=this.parser||this.Parser;return is("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),is("process",this.parser||this.Parser),os("process",this.compiler||this.Compiler),n?u(void 0,n):new Promise(u);function u(a,s){const o=ju(t),c=r.parse(o);r.run(c,o,function(h,f,m){if(h||!f||!m)return l(h);const p=f,b=r.stringify(p,m);FE(b)?m.value=b:m.result=b,l(h,m)});function l(h,f){h||!f?s(h):a?a(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),is("processSync",this.parser||this.Parser),os("processSync",this.compiler||this.Compiler),this.process(t,u),Tc("processSync","process",n),r;function u(a,s){n=!0,pc(a),r=s}}run(t,n,r){yc(t),this.freeze();const u=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,o){const c=ju(n);u.run(t,c,l);function l(h,f,m){const p=f||t;h?o(h):s?s(p):r(void 0,p,m)}}}runSync(t,n){let r=!1,u;return this.run(t,n,a),Tc("runSync","run",r),u;function a(s,o){pc(s),u=o,r=!0}}stringify(t,n){this.freeze();const r=ju(n),u=this.compiler||this.Compiler;return os("stringify",u),yc(t),u(t,r)}use(t,...n){const r=this.attachers,u=this.namespace;if(cs("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(l){if(typeof l=="function")c(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[h,...f]=l;c(h,f)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(l.plugins),l.settings&&(u.settings=rs(!0,u.settings,l.settings))}function o(l){let h=-1;if(l!=null)if(Array.isArray(l))for(;++h<l.length;){const f=l[h];a(f)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function c(l,h){let f=-1,m=-1;for(;++f<r.length;)if(r[f][0]===l){m=f;break}if(m===-1)r.push([l,...h]);else if(h.length>0){let[p,...b]=h;const _=r[m][1];Us(_)&&Us(p)&&(p=rs(!0,_,p)),r[m]=[l,p,...b]}}}}const OE=new vi().freeze();function is(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function os(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function cs(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function yc(e){if(!Us(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Tc(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ju(e){return jE(e)?e:new f1(e)}function jE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function FE(e){return typeof e=="string"||BE(e)}function BE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const HE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",kc=[],Ac={allowDangerousHtml:!0},UE=/^(https?|ircs?|mailto|xmpp)$/i,VE=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Na(e){const t=$E(e),n=zE(e);return qE(t.runSync(t.parse(n),n),e)}function $E(e){const t=e.rehypePlugins||kc,n=e.remarkPlugins||kc,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ac}:Ac;return OE().use(AC).use(n).use(xE,r).use(t)}function zE(e){const t=e.children||"",n=new f1;return typeof t=="string"&&(n.value=t),n}function qE(e,t){const n=t.allowedElements,r=t.allowElement,u=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,c=t.urlTransform||ZE;for(const h of VE)Object.hasOwn(t,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+HE+h.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Ia(e,l),i_(e,{Fragment:i.Fragment,components:u,ignoreInvalidStyle:!0,jsx:i.jsx,jsxs:i.jsxs,passKeys:!0,passNode:!0});function l(h,f,m){if(h.type==="raw"&&m&&typeof f=="number")return s?m.children.splice(f,1):m.children[f]={type:"text",value:h.value},f;if(h.type==="element"){let p;for(p in es)if(Object.hasOwn(es,p)&&Object.hasOwn(h.properties,p)){const b=h.properties[p],_=es[p];(_===null||_.includes(h.tagName))&&(h.properties[p]=c(String(b||""),p,h))}}if(h.type==="element"){let p=n?!n.includes(h.tagName):a?a.includes(h.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(h,f,m)),p&&m&&typeof f=="number")return o&&h.children?m.children.splice(f,1,...h.children):m.children.splice(f,1),f}}}function ZE(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),u=e.indexOf("/");return t===-1||u!==-1&&t>u||n!==-1&&t>n||r!==-1&&t>r||UE.test(e.slice(0,t))?e:""}function Sc(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,u=n.indexOf(t);for(;u!==-1;)r++,u=n.indexOf(t,u+t.length);return r}function WE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function YE(e,t,n){const u=Aa((n||{}).ignore||[]),a=GE(t);let s=-1;for(;++s<a.length;)l1(e,"text",o);function o(l,h){let f=-1,m;for(;++f<h.length;){const p=h[f],b=m?m.children:void 0;if(u(p,b?b.indexOf(p):void 0,m))return;m=p}if(m)return c(l,h)}function c(l,h){const f=h[h.length-1],m=a[s][0],p=a[s][1];let b=0;const E=f.children.indexOf(l);let x=!1,k=[];m.lastIndex=0;let y=m.exec(l.value);for(;y;){const D=y.index,S={index:y.index,input:y.input,stack:[...h,l]};let I=p(...y,S);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I===!1?m.lastIndex=D+1:(b!==D&&k.push({type:"text",value:l.value.slice(b,D)}),Array.isArray(I)?k.push(...I):I&&k.push(I),b=D+y[0].length,x=!0),!m.global)break;y=m.exec(l.value)}return x?(b<l.value.length&&k.push({type:"text",value:l.value.slice(b)}),f.children.splice(E,1,...k)):k=[l],E+k.length}}function GE(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const u=n[r];t.push([XE(u[0]),KE(u[1])])}return t}function XE(e){return typeof e=="string"?new RegExp(WE(e),"g"):e}function KE(e){return typeof e=="function"?e:function(){return e}}const ls="phrasing",ds=["autolink","link","image","label"];function QE(){return{transforms:[ay],enter:{literalAutolink:ey,literalAutolinkEmail:fs,literalAutolinkHttp:fs,literalAutolinkWww:fs},exit:{literalAutolink:uy,literalAutolinkEmail:ry,literalAutolinkHttp:ty,literalAutolinkWww:ny}}}function JE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ls,notInConstruct:ds},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ls,notInConstruct:ds},{character:":",before:"[ps]",after:"\\/",inConstruct:ls,notInConstruct:ds}]}}function ey(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function fs(e){this.config.enter.autolinkProtocol.call(this,e)}function ty(e){this.config.exit.autolinkProtocol.call(this,e)}function ny(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function ry(e){this.config.exit.autolinkEmail.call(this,e)}function uy(e){this.exit(e)}function ay(e){YE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,sy],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),iy]],{ignore:["link","linkReference"]})}function sy(e,t,n,r,u){let a="";if(!h1(u)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!oy(n)))return!1;const s=cy(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function iy(e,t,n,r){return!h1(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function oy(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function cy(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const u=Sc(e,"(");let a=Sc(e,")");for(;r!==-1&&u>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function h1(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||sr(n)||ya(n))&&(!t||n!==47)}p1.peek=_y;function ly(){this.buffer()}function dy(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function fy(){this.buffer()}function hy(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function py(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=nn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function my(e){this.exit(e)}function gy(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=nn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function by(e){this.exit(e)}function _y(){return"["}function p1(e,t,n,r){const u=n.createTracker(r);let a=u.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=u.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=u.move("]"),a}function xy(){return{enter:{gfmFootnoteCallString:ly,gfmFootnoteCall:dy,gfmFootnoteDefinitionLabelString:fy,gfmFootnoteDefinition:hy},exit:{gfmFootnoteCallString:py,gfmFootnoteCall:my,gfmFootnoteDefinitionLabelString:gy,gfmFootnoteDefinition:by}}}function Cy(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:p1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,u,a,s){const o=a.createTracker(s);let c=o.move("[^");const l=a.enter("footnoteDefinition"),h=a.enter("label");return c+=o.move(a.safe(a.associationId(r),{before:c,after:"]"})),h(),c+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),c+=o.move((t?`
|
|
99
|
-
`:" ")+a.indentLines(a.containerFlow(r,o.current()),t?
|
|
100
|
-
`)}function
|
|
101
|
-
`&&
|
|
102
|
-
`}function
|
|
97
|
+
`}),n}function hc(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function pc(e,t){const n=mE(e,t),r=n.one(e,void 0),u=aE(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return u&&a.children.push({type:"text",value:`
|
|
98
|
+
`},u),a}function CE(e,t){return e&&"run"in e?async function(n,r){const u=pc(n,{file:r,...t});await e.run(u,r)}:function(n,r){return pc(n,{file:r,...e||t})}}function mc(e){if(e)throw e}var qu=Object.prototype.hasOwnProperty,f1=Object.prototype.toString,gc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,_c=function(t){return typeof Array.isArray=="function"?Array.isArray(t):f1.call(t)==="[object Array]"},xc=function(t){if(!t||f1.call(t)!=="[object Object]")return!1;var n=qu.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&qu.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var u;for(u in t);return typeof u>"u"||qu.call(t,u)},Cc=function(t,n){gc&&n.name==="__proto__"?gc(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Ec=function(t,n){if(n==="__proto__")if(qu.call(t,n)){if(bc)return bc(t,n).value}else return;return t[n]},EE=function e(){var t,n,r,u,a,s,o=arguments[0],c=1,l=arguments.length,h=!1;for(typeof o=="boolean"&&(h=o,o=arguments[1]||{},c=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});c<l;++c)if(t=arguments[c],t!=null)for(n in t)r=Ec(o,n),u=Ec(t,n),o!==u&&(h&&u&&(xc(u)||(a=_c(u)))?(a?(a=!1,s=r&&_c(r)?r:[]):s=r&&xc(r)?r:{},Cc(o,{name:n,newValue:e(h,s,u)})):typeof u<"u"&&Cc(o,{name:n,newValue:u}));return o};const us=g.getDefaultExportFromCjs(EE);function Us(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function yE(){const e=[],t={run:n,use:r};return t;function n(...u){let a=-1;const s=u.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...u);function o(c,...l){const h=e[++a];let f=-1;if(c){s(c);return}for(;++f<u.length;)(l[f]===null||l[f]===void 0)&&(l[f]=u[f]);u=l,h?TE(h,o)(...l):s(null,...l)}}function r(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return e.push(u),t}}function TE(e,t){let n;return r;function r(...s){const o=e.length>s.length;let c;o&&s.push(u);try{c=e.apply(this,s)}catch(l){const h=l;if(o&&n)throw h;return u(h)}o||(c&&c.then&&typeof c.then=="function"?c.then(a,u):c instanceof Error?u(c):a(c))}function u(s,...o){n||(n=!0,t(s,...o))}function a(s){u(null,s)}}const ln={basename:kE,dirname:AE,extname:SE,join:IE,sep:"/"};function kE(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Cu(e);let n=0,r=-1,u=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;u--;)if(e.codePointAt(u)===47){if(a){n=u+1;break}}else r<0&&(a=!0,r=u+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;u--;)if(e.codePointAt(u)===47){if(a){n=u+1;break}}else s<0&&(a=!0,s=u+1),o>-1&&(e.codePointAt(u)===t.codePointAt(o--)?o<0&&(r=u):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function AE(e){if(Cu(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function SE(e){Cu(e);let t=e.length,n=-1,r=0,u=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?u<0?u=t:a!==1&&(a=1):u>-1&&(a=-1)}return u<0||n<0||a===0||a===1&&u===n-1&&u===r+1?"":e.slice(u,n)}function IE(...e){let t=-1,n;for(;++t<e.length;)Cu(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":NE(n)}function NE(e){Cu(e);const t=e.codePointAt(0)===47;let n=vE(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function vE(e,t){let n="",r=0,u=-1,a=0,s=-1,o,c;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(u===s-1||a===1))if(u!==s-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),u=s,a=0;continue}}else if(n.length>0){n="",r=0,u=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(u+1,s):n=e.slice(u+1,s),r=s-u-1;u=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function Cu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wE={cwd:DE};function DE(){return"/"}function Vs(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function LE(e){if(typeof e=="string")e=new URL(e);else if(!Vs(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return PE(e)}function PE(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(t)}const as=["history","path","basename","stem","extname","dirname"];class h1{constructor(t){let n;t?Vs(t)?n={path:t}:typeof t=="string"||RE(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":wE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<as.length;){const a=as[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let u;for(u in n)as.includes(u)||(this[u]=n[u])}get basename(){return typeof this.path=="string"?ln.basename(this.path):void 0}set basename(t){is(t,"basename"),ss(t,"basename"),this.path=ln.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ln.dirname(this.path):void 0}set dirname(t){yc(this.basename,"dirname"),this.path=ln.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ln.extname(this.path):void 0}set extname(t){if(ss(t,"extname"),yc(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ln.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Vs(t)&&(t=LE(t)),is(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ln.basename(this.path,this.extname):void 0}set stem(t){is(t,"stem"),ss(t,"stem"),this.path=ln.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const u=this.message(t,n,r);throw u.fatal=!0,u}info(t,n,r){const u=this.message(t,n,r);return u.fatal=void 0,u}message(t,n,r){const u=new Ct(t,n,r);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ss(e,t){if(e&&e.includes(ln.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ln.sep+"`")}function is(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function yc(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function RE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ME=function(e){const r=this.constructor.prototype,u=r[e],a=function(){return u.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},OE={}.hasOwnProperty;class vi extends ME{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=yE()}copy(){const t=new vi;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(us(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(ls("data",this.frozen),this.namespace[t]=n,this):OE.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ls("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const u=n.call(t,...r);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Fu(t),r=this.parser||this.Parser;return os("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),os("process",this.parser||this.Parser),cs("process",this.compiler||this.Compiler),n?u(void 0,n):new Promise(u);function u(a,s){const o=Fu(t),c=r.parse(o);r.run(c,o,function(h,f,m){if(h||!f||!m)return l(h);const p=f,b=r.stringify(p,m);BE(b)?m.value=b:m.result=b,l(h,m)});function l(h,f){h||!f?s(h):a?a(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),os("processSync",this.parser||this.Parser),cs("processSync",this.compiler||this.Compiler),this.process(t,u),kc("processSync","process",n),r;function u(a,s){n=!0,mc(a),r=s}}run(t,n,r){Tc(t),this.freeze();const u=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,o){const c=Fu(n);u.run(t,c,l);function l(h,f,m){const p=f||t;h?o(h):s?s(p):r(void 0,p,m)}}}runSync(t,n){let r=!1,u;return this.run(t,n,a),kc("runSync","run",r),u;function a(s,o){mc(s),u=o,r=!0}}stringify(t,n){this.freeze();const r=Fu(n),u=this.compiler||this.Compiler;return cs("stringify",u),Tc(t),u(t,r)}use(t,...n){const r=this.attachers,u=this.namespace;if(ls("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(l){if(typeof l=="function")c(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[h,...f]=l;c(h,f)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(l.plugins),l.settings&&(u.settings=us(!0,u.settings,l.settings))}function o(l){let h=-1;if(l!=null)if(Array.isArray(l))for(;++h<l.length;){const f=l[h];a(f)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function c(l,h){let f=-1,m=-1;for(;++f<r.length;)if(r[f][0]===l){m=f;break}if(m===-1)r.push([l,...h]);else if(h.length>0){let[p,...b]=h;const _=r[m][1];Us(_)&&Us(p)&&(p=us(!0,_,p)),r[m]=[l,p,...b]}}}}const jE=new vi().freeze();function os(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function cs(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ls(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Tc(e){if(!Us(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function kc(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Fu(e){return FE(e)?e:new h1(e)}function FE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function BE(e){return typeof e=="string"||HE(e)}function HE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const UE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ac=[],Sc={allowDangerousHtml:!0},VE=/^(https?|ircs?|mailto|xmpp)$/i,$E=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function va(e){const t=zE(e),n=qE(e);return ZE(t.runSync(t.parse(n),n),e)}function zE(e){const t=e.rehypePlugins||Ac,n=e.remarkPlugins||Ac,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Sc}:Sc;return jE().use(SC).use(n).use(CE,r).use(t)}function qE(e){const t=e.children||"",n=new h1;return typeof t=="string"&&(n.value=t),n}function ZE(e,t){const n=t.allowedElements,r=t.allowElement,u=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,c=t.urlTransform||WE;for(const h of $E)Object.hasOwn(t,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+UE+h.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Na(e,l),o_(e,{Fragment:i.Fragment,components:u,ignoreInvalidStyle:!0,jsx:i.jsx,jsxs:i.jsxs,passKeys:!0,passNode:!0});function l(h,f,m){if(h.type==="raw"&&m&&typeof f=="number")return s?m.children.splice(f,1):m.children[f]={type:"text",value:h.value},f;if(h.type==="element"){let p;for(p in ts)if(Object.hasOwn(ts,p)&&Object.hasOwn(h.properties,p)){const b=h.properties[p],_=ts[p];(_===null||_.includes(h.tagName))&&(h.properties[p]=c(String(b||""),p,h))}}if(h.type==="element"){let p=n?!n.includes(h.tagName):a?a.includes(h.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(h,f,m)),p&&m&&typeof f=="number")return o&&h.children?m.children.splice(f,1,...h.children):m.children.splice(f,1),f}}}function WE(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),u=e.indexOf("/");return t===-1||u!==-1&&t>u||n!==-1&&t>n||r!==-1&&t>r||VE.test(e.slice(0,t))?e:""}function Ic(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,u=n.indexOf(t);for(;u!==-1;)r++,u=n.indexOf(t,u+t.length);return r}function YE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function GE(e,t,n){const u=Sa((n||{}).ignore||[]),a=XE(t);let s=-1;for(;++s<a.length;)d1(e,"text",o);function o(l,h){let f=-1,m;for(;++f<h.length;){const p=h[f],b=m?m.children:void 0;if(u(p,b?b.indexOf(p):void 0,m))return;m=p}if(m)return c(l,h)}function c(l,h){const f=h[h.length-1],m=a[s][0],p=a[s][1];let b=0;const E=f.children.indexOf(l);let x=!1,k=[];m.lastIndex=0;let y=m.exec(l.value);for(;y;){const D=y.index,S={index:y.index,input:y.input,stack:[...h,l]};let I=p(...y,S);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I===!1?m.lastIndex=D+1:(b!==D&&k.push({type:"text",value:l.value.slice(b,D)}),Array.isArray(I)?k.push(...I):I&&k.push(I),b=D+y[0].length,x=!0),!m.global)break;y=m.exec(l.value)}return x?(b<l.value.length&&k.push({type:"text",value:l.value.slice(b)}),f.children.splice(E,1,...k)):k=[l],E+k.length}}function XE(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const u=n[r];t.push([KE(u[0]),QE(u[1])])}return t}function KE(e){return typeof e=="string"?new RegExp(YE(e),"g"):e}function QE(e){return typeof e=="function"?e:function(){return e}}const ds="phrasing",fs=["autolink","link","image","label"];function JE(){return{transforms:[sy],enter:{literalAutolink:ty,literalAutolinkEmail:hs,literalAutolinkHttp:hs,literalAutolinkWww:hs},exit:{literalAutolink:ay,literalAutolinkEmail:uy,literalAutolinkHttp:ny,literalAutolinkWww:ry}}}function ey(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ds,notInConstruct:fs},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ds,notInConstruct:fs},{character:":",before:"[ps]",after:"\\/",inConstruct:ds,notInConstruct:fs}]}}function ty(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function hs(e){this.config.enter.autolinkProtocol.call(this,e)}function ny(e){this.config.exit.autolinkProtocol.call(this,e)}function ry(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function uy(e){this.config.exit.autolinkEmail.call(this,e)}function ay(e){this.exit(e)}function sy(e){GE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,iy],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),oy]],{ignore:["link","linkReference"]})}function iy(e,t,n,r,u){let a="";if(!p1(u)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!cy(n)))return!1;const s=ly(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function oy(e,t,n,r){return!p1(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function cy(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function ly(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const u=Ic(e,"(");let a=Ic(e,")");for(;r!==-1&&u>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function p1(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||sr(n)||Ta(n))&&(!t||n!==47)}m1.peek=xy;function dy(){this.buffer()}function fy(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function hy(){this.buffer()}function py(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function my(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=nn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function gy(e){this.exit(e)}function by(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=nn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function _y(e){this.exit(e)}function xy(){return"["}function m1(e,t,n,r){const u=n.createTracker(r);let a=u.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=u.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=u.move("]"),a}function Cy(){return{enter:{gfmFootnoteCallString:dy,gfmFootnoteCall:fy,gfmFootnoteDefinitionLabelString:hy,gfmFootnoteDefinition:py},exit:{gfmFootnoteCallString:my,gfmFootnoteCall:gy,gfmFootnoteDefinitionLabelString:by,gfmFootnoteDefinition:_y}}}function Ey(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:m1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,u,a,s){const o=a.createTracker(s);let c=o.move("[^");const l=a.enter("footnoteDefinition"),h=a.enter("label");return c+=o.move(a.safe(a.associationId(r),{before:c,after:"]"})),h(),c+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),c+=o.move((t?`
|
|
99
|
+
`:" ")+a.indentLines(a.containerFlow(r,o.current()),t?g1:yy))),l(),c}}function yy(e,t,n){return t===0?e:g1(e,t,n)}function g1(e,t,n){return(n?"":" ")+e}const Ty=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];b1.peek=Ny;function ky(){return{canContainEols:["delete"],enter:{strikethrough:Sy},exit:{strikethrough:Iy}}}function Ay(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ty}],handlers:{delete:b1}}}function Sy(e){this.enter({type:"delete",children:[]},e)}function Iy(e){this.exit(e)}function b1(e,t,n,r){const u=n.createTracker(r),a=n.enter("strikethrough");let s=u.move("~~");return s+=n.containerPhrasing(e,{...u.current(),before:s,after:"~"}),s+=u.move("~~"),a(),s}function Ny(){return"~"}function vy(e){return e.length}function wy(e,t){const n=t||{},r=(n.align||[]).concat(),u=n.stringLength||vy,a=[],s=[],o=[],c=[];let l=0,h=-1;for(;++h<e.length;){const _=[],E=[];let x=-1;for(e[h].length>l&&(l=e[h].length);++x<e[h].length;){const k=Dy(e[h][x]);if(n.alignDelimiters!==!1){const y=u(k);E[x]=y,(c[x]===void 0||y>c[x])&&(c[x]=y)}_.push(k)}s[h]=_,o[h]=E}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<l;)a[f]=Nc(r[f]);else{const _=Nc(r);for(;++f<l;)a[f]=_}f=-1;const m=[],p=[];for(;++f<l;){const _=a[f];let E="",x="";_===99?(E=":",x=":"):_===108?E=":":_===114&&(x=":");let k=n.alignDelimiters===!1?1:Math.max(1,c[f]-E.length-x.length);const y=E+"-".repeat(k)+x;n.alignDelimiters!==!1&&(k=E.length+k+x.length,k>c[f]&&(c[f]=k),p[f]=k),m[f]=y}s.splice(1,0,m),o.splice(1,0,p),h=-1;const b=[];for(;++h<s.length;){const _=s[h],E=o[h];f=-1;const x=[];for(;++f<l;){const k=_[f]||"";let y="",D="";if(n.alignDelimiters!==!1){const S=c[f]-(E[f]||0),I=a[f];I===114?y=" ".repeat(S):I===99?S%2?(y=" ".repeat(S/2+.5),D=" ".repeat(S/2-.5)):(y=" ".repeat(S/2),D=y):D=" ".repeat(S)}n.delimiterStart!==!1&&!f&&x.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&k==="")&&(n.delimiterStart!==!1||f)&&x.push(" "),n.alignDelimiters!==!1&&x.push(y),x.push(k),n.alignDelimiters!==!1&&x.push(D),n.padding!==!1&&x.push(" "),(n.delimiterEnd!==!1||f!==l-1)&&x.push("|")}b.push(n.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return b.join(`
|
|
100
|
+
`)}function Dy(e){return e==null?"":String(e)}function Nc(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const vc={}.hasOwnProperty;function _1(e,t){const n=t||{};function r(u,...a){let s=r.invalid;const o=r.handlers;if(u&&vc.call(u,e)){const c=String(u[e]);s=vc.call(o,c)?o[c]:r.unknown}if(s)return s.call(this,u,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function Ly(e,t,n,r){const u=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),Py);return u(),s}function Py(e,t,n){return">"+(n?"":" ")+e}function Ry(e,t){return wc(e,t.inConstruct,!0)&&!wc(e,t.notInConstruct,!1)}function wc(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Dc(e,t,n,r){let u=-1;for(;++u<n.unsafe.length;)if(n.unsafe[u].character===`
|
|
101
|
+
`&&Ry(n.stack,n.unsafe[u]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
102
|
+
`}function My(e,t){const n=String(e);let r=n.indexOf(t),u=r,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===u?++a>s&&(s=a):a=1,u=r+t.length,r=n.indexOf(t,u);return s}function Oy(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function jy(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Fy(e,t,n,r){const u=jy(n),a=e.value||"",s=u==="`"?"GraveAccent":"Tilde";if(Oy(e,n)){const f=n.enter("codeIndented"),m=n.indentLines(a,By);return f(),m}const o=n.createTracker(r),c=u.repeat(Math.max(My(a,u)+1,3)),l=n.enter("codeFenced");let h=o.move(c);if(e.lang){const f=n.enter(`codeFencedLang${s}`);h+=o.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);h+=o.move(" "),h+=o.move(n.safe(e.meta,{before:h,after:`
|
|
103
103
|
`,encode:["`"],...o.current()})),f()}return h+=o.move(`
|
|
104
104
|
`),a&&(h+=o.move(a+`
|
|
105
|
-
`)),h+=o.move(c),l(),h}function
|
|
106
|
-
`,...c.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=c.move(" "+u),l+=c.move(n.safe(e.title,{before:l,after:u,...c.current()})),l+=c.move(u),o()),s(),l}function
|
|
105
|
+
`)),h+=o.move(c),l(),h}function By(e,t,n){return(n?"":" ")+e}function wi(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Hy(e,t,n,r){const u=wi(n),a=u==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const c=n.createTracker(r);let l=c.move("[");return l+=c.move(n.safe(n.associationId(e),{before:l,after:"]",...c.current()})),l+=c.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(o=n.enter("destinationRaw"),l+=c.move(n.safe(e.url,{before:l,after:e.title?" ":`
|
|
106
|
+
`,...c.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=c.move(" "+u),l+=c.move(n.safe(e.title,{before:l,after:u,...c.current()})),l+=c.move(u),o()),s(),l}function Uy(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function cu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ea(e,t,n){const r=Ar(e),u=Ar(t);return r===void 0?u===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}x1.peek=Vy;function x1(e,t,n,r){const u=Uy(n),a=n.enter("emphasis"),s=n.createTracker(r),o=s.move(u);let c=s.move(n.containerPhrasing(e,{after:u,before:o,...s.current()}));const l=c.charCodeAt(0),h=ea(r.before.charCodeAt(r.before.length-1),l,u);h.inside&&(c=cu(l)+c.slice(1));const f=c.charCodeAt(c.length-1),m=ea(r.after.charCodeAt(0),f,u);m.inside&&(c=c.slice(0,-1)+cu(f));const p=s.move(u);return a(),n.attentionEncodeSurroundingInfo={after:m.outside,before:h.outside},o+c+p}function Vy(e,t,n){return n.options.emphasis||"*"}function $y(e,t){let n=!1;return Na(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Bs}),!!((!e.depth||e.depth<3)&&yi(e)&&(t.options.setext||n))}function zy(e,t,n,r){const u=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if($y(e,n)){const h=n.enter("headingSetext"),f=n.enter("phrasing"),m=n.containerPhrasing(e,{...a.current(),before:`
|
|
107
107
|
`,after:`
|
|
108
108
|
`});return f(),h(),m+`
|
|
109
109
|
`+(u===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
|
|
110
110
|
`))+1))}const s="#".repeat(u),o=n.enter("headingAtx"),c=n.enter("phrasing");a.move(s+" ");let l=n.containerPhrasing(e,{before:"# ",after:`
|
|
111
|
-
`,...a.current()});return/^[\t ]/.test(l)&&(l=cu(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),c(),o(),l}
|
|
111
|
+
`,...a.current()});return/^[\t ]/.test(l)&&(l=cu(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),c(),o(),l}C1.peek=qy;function C1(e){return e.value||""}function qy(){return"<"}E1.peek=Zy;function E1(e,t,n,r){const u=wi(n),a=u==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const c=n.createTracker(r);let l=c.move("![");return l+=c.move(n.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(o=n.enter("destinationRaw"),l+=c.move(n.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=c.move(" "+u),l+=c.move(n.safe(e.title,{before:l,after:u,...c.current()})),l+=c.move(u),o()),l+=c.move(")"),s(),l}function Zy(){return"!"}y1.peek=Wy;function y1(e,t,n,r){const u=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let c=o.move("![");const l=n.safe(e.alt,{before:c,after:"]",...o.current()});c+=o.move(l+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:c,after:"]",...o.current()});return s(),n.stack=h,a(),u==="full"||!l||l!==f?c+=o.move(f+"]"):u==="shortcut"?c=c.slice(0,-1):c+=o.move("]"),c}function Wy(){return"!"}T1.peek=Yy;function T1(e,t,n){let r=e.value||"",u="`",a=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(r);)u+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const s=n.unsafe[a],o=n.compilePattern(s);let c;if(s.atBreak)for(;c=o.exec(r);){let l=c.index;r.charCodeAt(l)===10&&r.charCodeAt(l-1)===13&&l--,r=r.slice(0,l)+" "+r.slice(c.index+1)}}return u+r+u}function Yy(){return"`"}function k1(e,t){const n=yi(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}A1.peek=Gy;function A1(e,t,n,r){const u=wi(n),a=u==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,c;if(k1(e,n)){const h=n.stack;n.stack=[],o=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),n.stack=h,f}o=n.enter("link"),c=n.enter("label");let l=s.move("[");return l+=s.move(n.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(c=n.enter("destinationRaw"),l+=s.move(n.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=s.move(" "+u),l+=s.move(n.safe(e.title,{before:l,after:u,...s.current()})),l+=s.move(u),c()),l+=s.move(")"),o(),l}function Gy(e,t,n){return k1(e,n)?"<":"["}S1.peek=Xy;function S1(e,t,n,r){const u=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let c=o.move("[");const l=n.containerPhrasing(e,{before:c,after:"]",...o.current()});c+=o.move(l+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:c,after:"]",...o.current()});return s(),n.stack=h,a(),u==="full"||!l||l!==f?c+=o.move(f+"]"):u==="shortcut"?c=c.slice(0,-1):c+=o.move("]"),c}function Xy(){return"["}function Di(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Ky(e){const t=Di(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Qy(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function I1(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Jy(e,t,n,r){const u=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?Qy(n):Di(n);const o=e.ordered?s==="."?")":".":Ky(n);let c=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),I1(n)===s&&h){let f=-1;for(;++f<e.children.length;){const m=e.children[f];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(s=o),n.bulletCurrent=s;const l=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,u(),l}function eT(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function tT(e,t,n,r){const u=eT(n);let a=n.bulletCurrent||Di(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(u==="tab"||u==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const c=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,o.current()),h);return c(),l;function h(f,m,p){return m?(p?"":" ".repeat(s))+f:(p?a:a+" ".repeat(s-a.length))+f}}function nT(e,t,n,r){const u=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),u(),s}const rT=Sa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function uT(e,t,n,r){return(e.children.some(function(s){return rT(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function aT(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}N1.peek=sT;function N1(e,t,n,r){const u=aT(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(u+u);let c=s.move(n.containerPhrasing(e,{after:u,before:o,...s.current()}));const l=c.charCodeAt(0),h=ea(r.before.charCodeAt(r.before.length-1),l,u);h.inside&&(c=cu(l)+c.slice(1));const f=c.charCodeAt(c.length-1),m=ea(r.after.charCodeAt(0),f,u);m.inside&&(c=c.slice(0,-1)+cu(f));const p=s.move(u+u);return a(),n.attentionEncodeSurroundingInfo={after:m.outside,before:h.outside},o+c+p}function sT(e,t,n){return n.options.strong||"*"}function iT(e,t,n,r){return n.safe(e.value,r)}function oT(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function cT(e,t,n){const r=(I1(n)+(n.options.ruleSpaces?" ":"")).repeat(oT(n));return n.options.ruleSpaces?r.slice(0,-1):r}const v1={blockquote:Ly,break:Dc,code:Fy,definition:Hy,emphasis:x1,hardBreak:Dc,heading:zy,html:C1,image:E1,imageReference:y1,inlineCode:T1,link:A1,linkReference:S1,list:Jy,listItem:tT,paragraph:nT,root:uT,strong:N1,text:iT,thematicBreak:cT};function lT(){return{enter:{table:dT,tableData:Lc,tableHeader:Lc,tableRow:hT},exit:{codeText:pT,table:fT,tableData:ps,tableHeader:ps,tableRow:ps}}}function dT(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function fT(e){this.exit(e),this.data.inTable=void 0}function hT(e){this.enter({type:"tableRow",children:[]},e)}function ps(e){this.exit(e)}function Lc(e){this.enter({type:"tableCell",children:[]},e)}function pT(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,mT));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function mT(e,t){return t==="|"?t:e}function gT(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,u=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
112
112
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:s,tableCell:c,tableRow:o}};function s(p,b,_,E){return l(h(p,_,E),p.align)}function o(p,b,_,E){const x=f(p,_,E),k=l([x]);return k.slice(0,k.indexOf(`
|
|
113
|
-
`))}function c(p,b,_,E){const x=_.enter("tableCell"),k=_.enter("phrasing"),y=_.containerPhrasing(p,{...E,before:a,after:a});return k(),x(),y}function l(p,b){return vy(p,{align:b,alignDelimiters:r,padding:n,stringLength:u})}function h(p,b,_){const E=p.children;let x=-1;const k=[],y=b.enter("table");for(;++x<E.length;)k[x]=f(E[x],b,_);return y(),k}function f(p,b,_){const E=p.children;let x=-1;const k=[],y=b.enter("tableRow");for(;++x<E.length;)k[x]=c(E[x],p,b,_);return y(),k}function m(p,b,_){let E=N1.inlineCode(p,b,_);return _.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function gT(){return{exit:{taskListCheckValueChecked:Lc,taskListCheckValueUnchecked:Lc,paragraph:_T}}}function bT(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:xT}}}function Lc(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function _T(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const u=t.children;let a=-1,s;for(;++a<u.length;){const o=u[a];if(o.type==="paragraph"){s=o;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function xT(e,t,n,r){const u=e.children[0],a=typeof e.checked=="boolean"&&u&&u.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(s);let c=N1.listItem(e,t,n,{...r,...o.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(h){return h+s}}function CT(){return[QE(),xy(),Ty(),cT(),gT()]}function ET(e){return{extensions:[JE(),Cy(e),ky(),mT(e),bT()]}}const yT={tokenize:NT,partial:!0},v1={tokenize:vT,partial:!0},w1={tokenize:wT,partial:!0},D1={tokenize:DT,partial:!0},TT={tokenize:LT,partial:!0},L1={name:"wwwAutolink",tokenize:ST,previous:R1},P1={name:"protocolAutolink",tokenize:IT,previous:M1},Nn={name:"emailAutolink",tokenize:AT,previous:O1},bn={};function kT(){return{text:bn}}let Qn=48;for(;Qn<123;)bn[Qn]=Nn,Qn++,Qn===58?Qn=65:Qn===91&&(Qn=97);bn[43]=Nn;bn[45]=Nn;bn[46]=Nn;bn[95]=Nn;bn[72]=[Nn,P1];bn[104]=[Nn,P1];bn[87]=[Nn,L1];bn[119]=[Nn,L1];function AT(e,t,n){const r=this;let u,a;return s;function s(f){return!$s(f)||!O1.call(r,r.previous)||Li(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return $s(f)?(e.consume(f),o):f===64?(e.consume(f),c):n(f)}function c(f){return f===46?e.check(TT,h,l)(f):f===45||f===95||xt(f)?(a=!0,e.consume(f),c):h(f)}function l(f){return e.consume(f),u=!0,c}function h(f){return a&&u&&kt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function ST(e,t,n){const r=this;return u;function u(s){return s!==87&&s!==119||!R1.call(r,r.previous)||Li(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(yT,e.attempt(v1,e.attempt(w1,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function IT(e,t,n){const r=this;let u="",a=!1;return s;function s(f){return(f===72||f===104)&&M1.call(r,r.previous)&&!Li(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),u+=String.fromCodePoint(f),e.consume(f),o):n(f)}function o(f){if(kt(f)&&u.length<5)return u+=String.fromCodePoint(f),e.consume(f),o;if(f===58){const m=u.toLowerCase();if(m==="http"||m==="https")return e.consume(f),c}return n(f)}function c(f){return f===47?(e.consume(f),a?l:(a=!0,c)):n(f)}function l(f){return f===null||Ku(f)||Fe(f)||sr(f)||ya(f)?n(f):e.attempt(v1,e.attempt(w1,h),n)(f)}function h(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function NT(e,t,n){let r=0;return u;function u(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),u):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function vT(e,t,n){let r,u,a;return s;function s(l){return l===46||l===95?e.check(D1,c,o)(l):l===null||Fe(l)||sr(l)||l!==45&&ya(l)?c(l):(a=!0,e.consume(l),s)}function o(l){return l===95?r=!0:(u=r,r=void 0),e.consume(l),s}function c(l){return u||r||!a?n(l):t(l)}}function wT(e,t){let n=0,r=0;return u;function u(s){return s===40?(n++,e.consume(s),u):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(D1,t,a)(s):s===null||Fe(s)||sr(s)?t(s):(e.consume(s),u)}function a(s){return s===41&&r++,e.consume(s),u}}function DT(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),u):o===60||o===null||Fe(o)||sr(o)?t(o):n(o)}function u(o){return o===null||o===40||o===91||Fe(o)||sr(o)?t(o):r(o)}function a(o){return kt(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):kt(o)?(e.consume(o),s):n(o)}}function LT(e,t,n){return r;function r(a){return e.consume(a),u}function u(a){return xt(a)?n(a):t(a)}}function R1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Fe(e)}function M1(e){return!kt(e)}function O1(e){return!(e===47||$s(e))}function $s(e){return e===43||e===45||e===46||e===95||xt(e)}function Li(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const PT={tokenize:UT,partial:!0};function RT(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:FT,continuation:{tokenize:BT},exit:HT}},text:{91:{name:"gfmFootnoteCall",tokenize:jT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:MT,resolveTo:OT}}}}function MT(e,t,n){const r=this;let u=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;u--;){const c=r.events[u][1];if(c.type==="labelImage"){s=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return o;function o(c){if(!s||!s._balanced)return n(c);const l=nn(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function OT(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},u.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",u,t],["exit",u,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function jT(e,t,n){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),c}function c(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(f){if(a>999||f===93&&!s||f===null||f===91||Fe(f))return n(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return u.includes(nn(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Fe(f)||(s=!0),a++,e.consume(f),f===92?h:l}function h(f){return f===91||f===92||f===93?(e.consume(f),a++,l):l(f)}}function FT(e,t,n){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return c;function c(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(b)}function h(b){if(s>999||b===93&&!o||b===null||b===91||Fe(b))return n(b);if(b===93){e.exit("chunkString");const _=e.exit("gfmFootnoteDefinitionLabelString");return a=nn(r.sliceSerialize(_)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return Fe(b)||(o=!0),s++,e.consume(b),b===92?f:h}function f(b){return b===91||b===92||b===93?(e.consume(b),s++,h):h(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),u.includes(a)||u.push(a),we(e,p,"gfmFootnoteDefinitionWhitespace")):n(b)}function p(b){return t(b)}}function BT(e,t,n){return e.check(xu,t,e.attempt(PT,t,n))}function HT(e){e.exit("gfmFootnoteDefinition")}function UT(e,t,n){const r=this;return we(e,u,"gfmFootnoteDefinitionIndent",5);function u(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function VT(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:u};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function u(s,o){let c=-1;for(;++c<s.length;)if(s[c][0]==="enter"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._close){let l=c;for(;l--;)if(s[l][0]==="exit"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._open&&s[c][1].end.offset-s[c][1].start.offset===s[l][1].end.offset-s[l][1].start.offset){s[c][1].type="strikethroughSequence",s[l][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[l][1].start),end:Object.assign({},s[c][1].end)},f={type:"strikethroughText",start:Object.assign({},s[l][1].end),end:Object.assign({},s[c][1].start)},m=[["enter",h,o],["enter",s[l][1],o],["exit",s[l][1],o],["enter",f,o]],p=o.parser.constructs.insideSpan.null;p&&$t(m,m.length,0,Ta(p,s.slice(l+1,c),o)),$t(m,m.length,0,[["exit",f,o],["enter",s[c][1],o],["exit",s[c][1],o],["exit",h,o]]),$t(s,l-1,c-l+3,m),c=l+m.length-2;break}}for(c=-1;++c<s.length;)s[c][1].type==="strikethroughSequenceTemporary"&&(s[c][1].type="data");return s}function a(s,o,c){const l=this.previous,h=this.events;let f=0;return m;function m(b){return l===126&&h[h.length-1][1].type!=="characterEscape"?c(b):(s.enter("strikethroughSequenceTemporary"),p(b))}function p(b){const _=Ar(l);if(b===126)return f>1?c(b):(s.consume(b),f++,p);if(f<2&&!n)return c(b);const E=s.exit("strikethroughSequenceTemporary"),x=Ar(b);return E._open=!x||x===2&&!!_,E._close=!_||_===2&&!!x,o(b)}}}class $T{constructor(){this.map=[]}add(t,n,r){zT(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let u=r.pop();for(;u;){for(const a of u)t.push(a);u=r.pop()}this.map.length=0}}function zT(e,t,n,r){let u=0;if(!(n===0&&r.length===0)){for(;u<e.map.length;){if(e.map[u][0]===t){e.map[u][1]+=n,e.map[u][2].push(...r);return}u+=1}e.map.push([t,n,r])}}function qT(e,t){let n=!1;const r=[];for(;t<e.length;){const u=e[t];if(n){if(u[0]==="enter")u[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function ZT(){return{flow:{null:{name:"table",tokenize:WT,resolveAll:YT}}}}function WT(e,t,n){const r=this;let u=0,a=0,s;return o;function o(P){let B=r.events.length-1;for(;B>-1;){const Y=r.events[B][1].type;if(Y==="lineEnding"||Y==="linePrefix")B--;else break}const O=B>-1?r.events[B][1].type:null,X=O==="tableHead"||O==="tableRow"?I:c;return X===I&&r.parser.lazy[r.now().line]?n(P):X(P)}function c(P){return e.enter("tableHead"),e.enter("tableRow"),l(P)}function l(P){return P===124||(s=!0,a+=1),h(P)}function h(P){return P===null?n(P):ce(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),p):n(P):ve(P)?we(e,h,"whitespace")(P):(a+=1,s&&(s=!1,u+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),s=!0,h):(e.enter("data"),f(P)))}function f(P){return P===null||P===124||Fe(P)?(e.exit("data"),h(P)):(e.consume(P),P===92?m:f)}function m(P){return P===92||P===124?(e.consume(P),f):f(P)}function p(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),s=!1,ve(P)?we(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?E(P):P===124?(s=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),_):S(P)}function _(P){return ve(P)?we(e,E,"whitespace")(P):E(P)}function E(P){return P===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),x):P===45?(a+=1,x(P)):P===null||ce(P)?D(P):S(P)}function x(P){return P===45?(e.enter("tableDelimiterFiller"),k(P)):S(P)}function k(P){return P===45?(e.consume(P),k):P===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(P))}function y(P){return ve(P)?we(e,D,"whitespace")(P):D(P)}function D(P){return P===124?b(P):P===null||ce(P)?!s||u!==a?S(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):S(P)}function S(P){return n(P)}function I(P){return e.enter("tableRow"),M(P)}function M(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),M):P===null||ce(P)?(e.exit("tableRow"),t(P)):ve(P)?we(e,M,"whitespace")(P):(e.enter("data"),H(P))}function H(P){return P===null||P===124||Fe(P)?(e.exit("data"),M(P)):(e.consume(P),P===92?U:H)}function U(P){return P===92||P===124?(e.consume(P),H):H(P)}}function YT(e,t){let n=-1,r=!0,u=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,c=0,l,h,f;const m=new $T;for(;++n<e.length;){const p=e[n],b=p[1];p[0]==="enter"?b.type==="tableHead"?(o=!1,c!==0&&(Pc(m,t,c,l,h),h=void 0,c=0),l={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},m.add(n,0,[["enter",l,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,f=void 0,a=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,h={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},m.add(n,0,[["enter",h,t]])),u=b.type==="tableDelimiterRow"?2:h?3:1):u&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],f=Fu(m,t,a,u,void 0,f),a=[0,0,0,0]),s[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],f=Fu(m,t,a,u,void 0,f)),a=s,s=[a[1],n,0,0])):b.type==="tableHead"?(o=!0,c=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(c=n,a[1]!==0?(s[0]=s[1],f=Fu(m,t,a,u,n,f)):s[1]!==0&&(f=Fu(m,t,s,u,n,f)),u=0):u&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(s[3]=n)}for(c!==0&&Pc(m,t,c,l,h),m.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=qT(t.events,n))}return e}function Fu(e,t,n,r,u,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},br(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const c=br(t.events,n[1]);if(a={type:s,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const l=br(t.events,n[2]),h=br(t.events,n[3]),f={type:o,start:Object.assign({},l),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const m=t.events[n[2]],p=t.events[n[3]];if(m[1].end=Object.assign({},p[1].end),m[1].type="chunkText",m[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,_=n[3]-n[2]-1;e.add(b,_,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return u!==void 0&&(a.end=Object.assign({},br(t.events,u)),e.add(u,0,[["exit",a,t]]),a=void 0),a}function Pc(e,t,n,r,u){const a=[],s=br(t.events,n);u&&(u.end=Object.assign({},s),a.push(["exit",u,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function br(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const GT={name:"tasklistCheck",tokenize:KT};function XT(){return{text:{91:GT}}}function KT(e,t,n){const r=this;return u;function u(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return Fe(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),s):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),s):n(c)}function s(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(c)}function o(c){return ce(c)?t(c):ve(c)?e.check({tokenize:QT},t,n)(c):n(c)}}function QT(e,t,n){return we(e,r,"whitespace");function r(u){return u===null?n(u):t(u)}}function JT(e){return q0([kT(),RT(),VT(e),ZT(),XT()])}const ek={};function Pi(e){const t=this,n=e||ek,r=t.data(),u=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);u.push(JT(n)),a.push(CT()),s.push(ET(n))}const Rc=/[#.]/g;function tk(e,t){const n=e||"",r={};let u=0,a,s;for(;u<n.length;){Rc.lastIndex=u;const o=Rc.exec(n),c=n.slice(u,o?o.index:n.length);c&&(a?a==="#"?r.id=c:Array.isArray(r.className)?r.className.push(c):r.className=[c]:s=c,u+=c.length),o&&(a=o[0],u++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function j1(e,t,n){const r=n?ak(n):void 0;function u(a,s,...o){let c;if(a==null){c={type:"root",children:[]};const l=s;o.unshift(l)}else{c=tk(a,t);const l=c.tagName.toLowerCase(),h=r?r.get(l):void 0;if(c.tagName=h||l,nk(s))o.unshift(s);else for(const[f,m]of Object.entries(s))rk(e,c.properties,f,m)}for(const l of o)zs(c.children,l);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return u}function nk(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const u=t[r];if(u&&typeof u=="object"){if(!Array.isArray(u))return!0;const a=u;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function rk(e,t,n,r){const u=_i(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?u.spaceSeparated?a=Uo(r):u.commaSeparated?a=Oo(r):u.commaOrSpaceSeparated?a=Uo(Oo(r).join(" ")):a=Mc(u,u.property,r):Array.isArray(r)?a=[...r]:a=u.property==="style"?uk(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(Mc(u,u.property,o));a=s}u.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[u.property]=a}}function zs(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)zs(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?zs(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Mc(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||iu(n)===iu(t)))return!0}return n}function uk(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function ak(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const sk=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],ik=j1(Ca,"div"),ok=j1(Lr,"g",sk);function ck(e){const t=String(e),n=[];return{toOffset:u,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const c=Oc(t,n[s-1]);o=c===-1?t.length+1:c+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function u(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],c=Oc(t,o),l=c===-1?t.length+1:c+1;if(o===l)break;n.push(l)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function Oc(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
114
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const rr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},F1={}.hasOwnProperty,lk=Object.prototype;function dk(e,t){const n=t||{};return Ri({file:n.file||void 0,location:!1,schema:n.space==="svg"?Lr:Ca,verbose:n.verbose||!1},e)}function Ri(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},qu(e,r,n),n}case"#document":case"#document-fragment":{const r=t,u="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:B1(e,t.childNodes),data:{quirksMode:u}},e.file&&e.location){const a=String(e.file),s=ck(a),o=s.toPoint(0),c=s.toPoint(a.length);n.position={start:o,end:c}}return n}case"#documentType":{const r=t;return n={type:"doctype"},qu(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},qu(e,r,n),n}default:return n=fk(e,t),n}}function B1(e,t){let n=-1;const r=[];for(;++n<t.length;){const u=Ri(e,t[n]);r.push(u)}return r}function fk(e,t){const n=e.schema;e.schema=t.namespaceURI===rr.svg?Lr:Ca;let r=-1;const u={};for(;++r<t.attrs.length;){const o=t.attrs[r],c=(o.prefix?o.prefix+":":"")+o.name;F1.call(lk,c)||(u[c]=o.value)}const s=(e.schema.space==="svg"?ok:ik)(t.tagName,u,B1(e,t.childNodes));if(qu(e,t,s),s.tagName==="template"){const o=t,c=o.sourceCodeLocation,l=c&&c.startTag&&_r(c.startTag),h=c&&c.endTag&&_r(c.endTag),f=Ri(e,o.content);l&&h&&e.file&&(f.position={start:l.end,end:h.start}),s.content=f}return e.schema=n,s}function qu(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=hk(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function hk(e,t,n){const r=_r(n);if(t.type==="element"){const u=t.children[t.children.length-1];if(r&&!n.endTag&&u&&u.position&&u.position.end&&(r.end=Object.assign({},u.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)F1.call(n.attrs,s)&&(a[_i(e.schema,s).property]=_r(n.attrs[s]));n.startTag;const o=_r(n.startTag),c=n.endTag?_r(n.endTag):void 0,l={opening:o};c&&(l.closing=c),l.properties=a,t.data={position:l}}}return r}function _r(e){const t=jc({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=jc({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function jc(e){return e.line&&e.column?e:void 0}class Eu{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Eu.prototype.property={};Eu.prototype.normal={};Eu.prototype.space=null;function H1(e,t){const n={},r={};let u=-1;for(;++u<e.length;)Object.assign(n,e[u].property),Object.assign(r,e[u].normal);return new Eu(n,r,t)}function qs(e){return e.toLowerCase()}class Jt{constructor(t,n){this.property=t,this.attribute=n}}Jt.prototype.space=null;Jt.prototype.boolean=!1;Jt.prototype.booleanish=!1;Jt.prototype.overloadedBoolean=!1;Jt.prototype.number=!1;Jt.prototype.commaSeparated=!1;Jt.prototype.spaceSeparated=!1;Jt.prototype.commaOrSpaceSeparated=!1;Jt.prototype.mustUseProperty=!1;Jt.prototype.defined=!1;let pk=0;const Te=cr(),nt=cr(),U1=cr(),Z=cr(),He=cr(),yr=cr(),Ht=cr();function cr(){return 2**++pk}const Zs=Object.freeze(Object.defineProperty({__proto__:null,boolean:Te,booleanish:nt,commaOrSpaceSeparated:Ht,commaSeparated:yr,number:Z,overloadedBoolean:U1,spaceSeparated:He},Symbol.toStringTag,{value:"Module"})),ps=Object.keys(Zs);class Mi extends Jt{constructor(t,n,r,u){let a=-1;if(super(t,n),Fc(this,"space",u),typeof r=="number")for(;++a<ps.length;){const s=ps[a];Fc(this,ps[a],(r&Zs[s])===Zs[s])}}}Mi.prototype.defined=!0;function Fc(e,t,n){n&&(e[t]=n)}const mk={}.hasOwnProperty;function Rr(e){const t={},n={};let r;for(r in e.properties)if(mk.call(e.properties,r)){const u=e.properties[r],a=new Mi(r,e.transform(e.attributes||{},r),u,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[qs(r)]=r,n[qs(a.attribute)]=r}return new Eu(t,n,e.space)}const V1=Rr({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),$1=Rr({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function z1(e,t){return t in e?e[t]:t}function q1(e,t){return z1(e,t.toLowerCase())}const Z1=Rr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:q1,properties:{xmlns:null,xmlnsXLink:null}}),W1=Rr({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:nt,ariaAutoComplete:null,ariaBusy:nt,ariaChecked:nt,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:He,ariaCurrent:null,ariaDescribedBy:He,ariaDetails:null,ariaDisabled:nt,ariaDropEffect:He,ariaErrorMessage:null,ariaExpanded:nt,ariaFlowTo:He,ariaGrabbed:nt,ariaHasPopup:null,ariaHidden:nt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:He,ariaLevel:Z,ariaLive:null,ariaModal:nt,ariaMultiLine:nt,ariaMultiSelectable:nt,ariaOrientation:null,ariaOwns:He,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:nt,ariaReadOnly:nt,ariaRelevant:null,ariaRequired:nt,ariaRoleDescription:He,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:nt,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null}}),gk=Rr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:q1,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:yr,acceptCharset:He,accessKey:He,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:He,autoFocus:Te,autoPlay:Te,blocking:He,capture:null,charSet:null,checked:Te,cite:null,className:He,cols:Z,colSpan:null,content:null,contentEditable:nt,controls:Te,controlsList:He,coords:Z|yr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te,defer:Te,dir:null,dirName:null,disabled:Te,download:U1,draggable:nt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:He,height:Z,hidden:Te,high:Z,href:null,hrefLang:null,htmlFor:He,httpEquiv:He,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:He,itemRef:He,itemScope:Te,itemType:He,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Te,optimum:Z,pattern:null,ping:He,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:He,required:Te,reversed:Te,rows:Z,rowSpan:Z,sandbox:He,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootClonable:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:nt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:nt,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:He,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:nt,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:Z,security:null,unselectable:null}}),bk=Rr({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:z1,properties:{about:Ht,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:He,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:yr,g2:yr,glyphName:yr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:Ht,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:He,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ht,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ht,rev:Ht,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ht,requiredFeatures:Ht,requiredFonts:Ht,requiredFormats:Ht,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:Ht,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ht,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ht,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),_k=/^data[-\w.:]+$/i,Bc=/-[a-z]/g,xk=/[A-Z]/g;function Ck(e,t){const n=qs(t);let r=t,u=Jt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&_k.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Bc,yk);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Bc.test(a)){let s=a.replace(xk,Ek);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}u=Mi}return new u(r,t)}function Ek(e){return"-"+e.toLowerCase()}function yk(e){return e.charAt(1).toUpperCase()}const Tk=H1([$1,V1,Z1,W1,gk],"html"),Y1=H1([$1,V1,Z1,W1,bk],"svg"),kk={},Ak={}.hasOwnProperty,G1=b1("type",{handlers:{root:Ik,element:Lk,text:wk,comment:Dk,doctype:vk}});function Sk(e,t){const r=(t||kk).space;return G1(e,r==="svg"?Y1:Tk)}function Ik(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Oi(e.children,n,t),Mr(e,n),n}function Nk(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Oi(e.children,n,t),Mr(e,n),n}function vk(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Mr(e,t),t}function wk(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Mr(e,t),t}function Dk(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Mr(e,t),t}function Lk(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Y1);const u=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&Ak.call(e.properties,a)){const c=Pk(r,a,e.properties[a]);c&&u.push(c)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:u,namespaceURI:rr[s],childNodes:[],parentNode:null};return o.childNodes=Oi(e.children,o,r),Mr(e,o),e.tagName==="template"&&e.content&&(o.content=Nk(e.content,r)),o}function Pk(e,t,n){const r=Ck(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?N0(n):j0(n));const u={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=u.name.indexOf(":");a<0?u.prefix="":(u.name=u.name.slice(a+1),u.prefix=r.attribute.slice(0,a)),u.namespace=rr[r.space]}return u}function Oi(e,t,n){let r=-1;const u=[];if(e)for(;++r<e.length;){const a=G1(e[r],n);a.parentNode=t,u.push(a)}return u}function Mr(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Rk=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Mk=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ze="�";var T;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(T||(T={}));const St={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function X1(e){return e>=55296&&e<=57343}function Ok(e){return e>=56320&&e<=57343}function jk(e,t){return(e-55296)*1024+9216+t}function K1(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Q1(e){return e>=64976&&e<=65007||Mk.has(e)}var F;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(F||(F={}));const Fk=65536;class Bk{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Fk,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:u,offset:a}=this,s=u+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Ok(n))return this.pos++,this._addGap(),jk(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,T.EOF;return this._err(F.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,T.EOF;const r=this.html.charCodeAt(n);return r===T.CARRIAGE_RETURN?T.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,T.EOF;let t=this.html.charCodeAt(this.pos);return t===T.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,T.LINE_FEED):t===T.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,X1(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===T.LINE_FEED||t===T.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){K1(t)?this._err(F.controlCharacterInInputStream):Q1(t)&&this._err(F.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ie;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ie||(Ie={}));function J1(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const Hk=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Uk=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Vk(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Uk.get(e))!==null&&t!==void 0?t:e}var lt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(lt||(lt={}));const $k=32;var Vn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Vn||(Vn={}));function Ws(e){return e>=lt.ZERO&&e<=lt.NINE}function zk(e){return e>=lt.UPPER_A&&e<=lt.UPPER_F||e>=lt.LOWER_A&&e<=lt.LOWER_F}function qk(e){return e>=lt.UPPER_A&&e<=lt.UPPER_Z||e>=lt.LOWER_A&&e<=lt.LOWER_Z||Ws(e)}function Zk(e){return e===lt.EQUALS||qk(e)}var it;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(it||(it={}));var Sn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Sn||(Sn={}));class Wk{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=it.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Sn.Strict}startEntity(t){this.decodeMode=t,this.state=it.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case it.EntityStart:return t.charCodeAt(n)===lt.NUM?(this.state=it.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=it.NamedEntity,this.stateNamedEntity(t,n));case it.NumericStart:return this.stateNumericStart(t,n);case it.NumericDecimal:return this.stateNumericDecimal(t,n);case it.NumericHex:return this.stateNumericHex(t,n);case it.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|$k)===lt.LOWER_X?(this.state=it.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=it.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,u){if(n!==r){const a=r-n;this.result=this.result*Math.pow(u,a)+Number.parseInt(t.substr(n,a),u),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(Ws(u)||zk(u))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(Ws(u))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(u,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===lt.SEMI)this.consumed+=1;else if(this.decodeMode===Sn.Strict)return 0;return this.emitCodePoint(Vk(this.result),this.consumed),this.errors&&(t!==lt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let u=r[this.treeIndex],a=(u&Vn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Yk(r,u,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Sn.Attribute&&(a===0||Zk(s))?0:this.emitNotTerminatedNamedEntity();if(u=r[this.treeIndex],a=(u&Vn.VALUE_LENGTH)>>14,a!==0){if(s===lt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Sn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,u=(r[n]&Vn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[t]&~Vn.VALUE_LENGTH:u[t+1],r),n===3&&this.emitCodePoint(u[t+2],r),r}end(){var t;switch(this.state){case it.NamedEntity:return this.result!==0&&(this.decodeMode!==Sn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case it.NumericDecimal:return this.emitNumericEntity(0,2);case it.NumericHex:return this.emitNumericEntity(0,3);case it.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case it.EntityStart:return 0}}}function Yk(e,t,n,r){const u=(t&Vn.BRANCH_LENGTH)>>7,a=t&Vn.JUMP_TABLE;if(u===0)return a!==0&&r===a?n:-1;if(a){const c=r-a;return c<0||c>=u?-1:e[n+c]-1}let s=n,o=s+u-1;for(;s<=o;){const c=s+o>>>1,l=e[c];if(l<r)s=c+1;else if(l>r)o=c-1;else return e[c+u]}return-1}var $;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})($||($={}));var ar;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ar||(ar={}));var Xt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Xt||(Xt={}));var R;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(R||(R={}));var d;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(d||(d={}));const Gk=new Map([[R.A,d.A],[R.ADDRESS,d.ADDRESS],[R.ANNOTATION_XML,d.ANNOTATION_XML],[R.APPLET,d.APPLET],[R.AREA,d.AREA],[R.ARTICLE,d.ARTICLE],[R.ASIDE,d.ASIDE],[R.B,d.B],[R.BASE,d.BASE],[R.BASEFONT,d.BASEFONT],[R.BGSOUND,d.BGSOUND],[R.BIG,d.BIG],[R.BLOCKQUOTE,d.BLOCKQUOTE],[R.BODY,d.BODY],[R.BR,d.BR],[R.BUTTON,d.BUTTON],[R.CAPTION,d.CAPTION],[R.CENTER,d.CENTER],[R.CODE,d.CODE],[R.COL,d.COL],[R.COLGROUP,d.COLGROUP],[R.DD,d.DD],[R.DESC,d.DESC],[R.DETAILS,d.DETAILS],[R.DIALOG,d.DIALOG],[R.DIR,d.DIR],[R.DIV,d.DIV],[R.DL,d.DL],[R.DT,d.DT],[R.EM,d.EM],[R.EMBED,d.EMBED],[R.FIELDSET,d.FIELDSET],[R.FIGCAPTION,d.FIGCAPTION],[R.FIGURE,d.FIGURE],[R.FONT,d.FONT],[R.FOOTER,d.FOOTER],[R.FOREIGN_OBJECT,d.FOREIGN_OBJECT],[R.FORM,d.FORM],[R.FRAME,d.FRAME],[R.FRAMESET,d.FRAMESET],[R.H1,d.H1],[R.H2,d.H2],[R.H3,d.H3],[R.H4,d.H4],[R.H5,d.H5],[R.H6,d.H6],[R.HEAD,d.HEAD],[R.HEADER,d.HEADER],[R.HGROUP,d.HGROUP],[R.HR,d.HR],[R.HTML,d.HTML],[R.I,d.I],[R.IMG,d.IMG],[R.IMAGE,d.IMAGE],[R.INPUT,d.INPUT],[R.IFRAME,d.IFRAME],[R.KEYGEN,d.KEYGEN],[R.LABEL,d.LABEL],[R.LI,d.LI],[R.LINK,d.LINK],[R.LISTING,d.LISTING],[R.MAIN,d.MAIN],[R.MALIGNMARK,d.MALIGNMARK],[R.MARQUEE,d.MARQUEE],[R.MATH,d.MATH],[R.MENU,d.MENU],[R.META,d.META],[R.MGLYPH,d.MGLYPH],[R.MI,d.MI],[R.MO,d.MO],[R.MN,d.MN],[R.MS,d.MS],[R.MTEXT,d.MTEXT],[R.NAV,d.NAV],[R.NOBR,d.NOBR],[R.NOFRAMES,d.NOFRAMES],[R.NOEMBED,d.NOEMBED],[R.NOSCRIPT,d.NOSCRIPT],[R.OBJECT,d.OBJECT],[R.OL,d.OL],[R.OPTGROUP,d.OPTGROUP],[R.OPTION,d.OPTION],[R.P,d.P],[R.PARAM,d.PARAM],[R.PLAINTEXT,d.PLAINTEXT],[R.PRE,d.PRE],[R.RB,d.RB],[R.RP,d.RP],[R.RT,d.RT],[R.RTC,d.RTC],[R.RUBY,d.RUBY],[R.S,d.S],[R.SCRIPT,d.SCRIPT],[R.SEARCH,d.SEARCH],[R.SECTION,d.SECTION],[R.SELECT,d.SELECT],[R.SOURCE,d.SOURCE],[R.SMALL,d.SMALL],[R.SPAN,d.SPAN],[R.STRIKE,d.STRIKE],[R.STRONG,d.STRONG],[R.STYLE,d.STYLE],[R.SUB,d.SUB],[R.SUMMARY,d.SUMMARY],[R.SUP,d.SUP],[R.TABLE,d.TABLE],[R.TBODY,d.TBODY],[R.TEMPLATE,d.TEMPLATE],[R.TEXTAREA,d.TEXTAREA],[R.TFOOT,d.TFOOT],[R.TD,d.TD],[R.TH,d.TH],[R.THEAD,d.THEAD],[R.TITLE,d.TITLE],[R.TR,d.TR],[R.TRACK,d.TRACK],[R.TT,d.TT],[R.U,d.U],[R.UL,d.UL],[R.SVG,d.SVG],[R.VAR,d.VAR],[R.WBR,d.WBR],[R.XMP,d.XMP]]);function Or(e){var t;return(t=Gk.get(e))!==null&&t!==void 0?t:d.UNKNOWN}const z=d,Xk={[$.HTML]:new Set([z.ADDRESS,z.APPLET,z.AREA,z.ARTICLE,z.ASIDE,z.BASE,z.BASEFONT,z.BGSOUND,z.BLOCKQUOTE,z.BODY,z.BR,z.BUTTON,z.CAPTION,z.CENTER,z.COL,z.COLGROUP,z.DD,z.DETAILS,z.DIR,z.DIV,z.DL,z.DT,z.EMBED,z.FIELDSET,z.FIGCAPTION,z.FIGURE,z.FOOTER,z.FORM,z.FRAME,z.FRAMESET,z.H1,z.H2,z.H3,z.H4,z.H5,z.H6,z.HEAD,z.HEADER,z.HGROUP,z.HR,z.HTML,z.IFRAME,z.IMG,z.INPUT,z.LI,z.LINK,z.LISTING,z.MAIN,z.MARQUEE,z.MENU,z.META,z.NAV,z.NOEMBED,z.NOFRAMES,z.NOSCRIPT,z.OBJECT,z.OL,z.P,z.PARAM,z.PLAINTEXT,z.PRE,z.SCRIPT,z.SECTION,z.SELECT,z.SOURCE,z.STYLE,z.SUMMARY,z.TABLE,z.TBODY,z.TD,z.TEMPLATE,z.TEXTAREA,z.TFOOT,z.TH,z.THEAD,z.TITLE,z.TR,z.TRACK,z.UL,z.WBR,z.XMP]),[$.MATHML]:new Set([z.MI,z.MO,z.MN,z.MS,z.MTEXT,z.ANNOTATION_XML]),[$.SVG]:new Set([z.TITLE,z.FOREIGN_OBJECT,z.DESC]),[$.XLINK]:new Set,[$.XML]:new Set,[$.XMLNS]:new Set},Ys=new Set([z.H1,z.H2,z.H3,z.H4,z.H5,z.H6]);R.STYLE,R.SCRIPT,R.XMP,R.IFRAME,R.NOEMBED,R.NOFRAMES,R.PLAINTEXT;var A;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(A||(A={}));const Je={DATA:A.DATA,RCDATA:A.RCDATA,RAWTEXT:A.RAWTEXT,SCRIPT_DATA:A.SCRIPT_DATA,PLAINTEXT:A.PLAINTEXT,CDATA_SECTION:A.CDATA_SECTION};function Kk(e){return e>=T.DIGIT_0&&e<=T.DIGIT_9}function Zr(e){return e>=T.LATIN_CAPITAL_A&&e<=T.LATIN_CAPITAL_Z}function Qk(e){return e>=T.LATIN_SMALL_A&&e<=T.LATIN_SMALL_Z}function Mn(e){return Qk(e)||Zr(e)}function Hc(e){return Mn(e)||Kk(e)}function Bu(e){return e+32}function ed(e){return e===T.SPACE||e===T.LINE_FEED||e===T.TABULATION||e===T.FORM_FEED}function Uc(e){return ed(e)||e===T.SOLIDUS||e===T.GREATER_THAN_SIGN}function Jk(e){return e===T.NULL?F.nullCharacterReference:e>1114111?F.characterReferenceOutsideUnicodeRange:X1(e)?F.surrogateCharacterReference:Q1(e)?F.noncharacterCharacterReference:K1(e)||e===T.CARRIAGE_RETURN?F.controlCharacterReference:null}class eA{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=A.DATA,this.returnState=A.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Bk(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Wk(Hk,(r,u)=>{this.preprocessor.pos=this.entityStartPos+u-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(F.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(F.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const u=Jk(r);u&&this._err(u,1)}}:void 0)}_err(t,n=0){var r,u;(u=(r=this.handler).onParseError)===null||u===void 0||u.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ie.START_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ie.END_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ie.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ie.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(J1(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const u=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);u[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(F.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Or(t.tagName),t.type===Ie.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(F.endTagWithAttributes),t.selfClosing&&this._err(F.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ie.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ie.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ie.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ie.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=ed(t)?Ie.WHITESPACE_CHARACTER:t===T.NULL?Ie.NULL_CHARACTER:Ie.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ie.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=A.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Sn.Attribute:Sn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===A.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case A.DATA:{this._stateData(t);break}case A.RCDATA:{this._stateRcdata(t);break}case A.RAWTEXT:{this._stateRawtext(t);break}case A.SCRIPT_DATA:{this._stateScriptData(t);break}case A.PLAINTEXT:{this._statePlaintext(t);break}case A.TAG_OPEN:{this._stateTagOpen(t);break}case A.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case A.TAG_NAME:{this._stateTagName(t);break}case A.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case A.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case A.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case A.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case A.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case A.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case A.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case A.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case A.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case A.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case A.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case A.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case A.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case A.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case A.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case A.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case A.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case A.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case A.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case A.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case A.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case A.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case A.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case A.BOGUS_COMMENT:{this._stateBogusComment(t);break}case A.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case A.COMMENT_START:{this._stateCommentStart(t);break}case A.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case A.COMMENT:{this._stateComment(t);break}case A.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case A.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case A.COMMENT_END:{this._stateCommentEnd(t);break}case A.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case A.DOCTYPE:{this._stateDoctype(t);break}case A.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case A.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case A.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case A.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case A.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case A.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case A.CDATA_SECTION:{this._stateCdataSection(t);break}case A.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case A.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case A.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case A.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case T.LESS_THAN_SIGN:{this.state=A.TAG_OPEN;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitCodePoint(t);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case T.AMPERSAND:{this._startCharacterReference();break}case T.LESS_THAN_SIGN:{this.state=A.RCDATA_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ze);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case T.LESS_THAN_SIGN:{this.state=A.RAWTEXT_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ze);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ze);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ze);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Mn(t))this._createStartTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case T.EXCLAMATION_MARK:{this.state=A.MARKUP_DECLARATION_OPEN;break}case T.SOLIDUS:{this.state=A.END_TAG_OPEN;break}case T.QUESTION_MARK:{this._err(F.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t);break}case T.EOF:{this._err(F.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(F.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=A.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Mn(t))this._createEndTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case T.GREATER_THAN_SIGN:{this._err(F.missingEndTagName),this.state=A.DATA;break}case T.EOF:{this._err(F.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(F.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_ATTRIBUTE_NAME;break}case T.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.tagName+=ze;break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Zr(t)?Bu(t):t)}}_stateRcdataLessThanSign(t){t===T.SOLIDUS?this.state=A.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Mn(t)?(this.state=A.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=A.BEFORE_ATTRIBUTE_NAME,!1;case T.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=A.SELF_CLOSING_START_TAG,!1;case T.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=A.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===T.SOLIDUS?this.state=A.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Mn(t)?(this.state=A.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case T.SOLIDUS:{this.state=A.SCRIPT_DATA_END_TAG_OPEN;break}case T.EXCLAMATION_MARK:{this.state=A.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=A.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Mn(t)?(this.state=A.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===T.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===T.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ze);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(ze);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case T.HYPHEN_MINUS:{this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(ze);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===T.SOLIDUS?this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Mn(t)?(this._emitChars("<"),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Mn(t)?(this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(St.SCRIPT,!1)&&Uc(this.preprocessor.peek(St.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<St.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ze);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ze);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case T.HYPHEN_MINUS:{this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ze);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===T.SOLIDUS?(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(St.SCRIPT,!1)&&Uc(this.preprocessor.peek(St.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<St.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.SOLIDUS:case T.GREATER_THAN_SIGN:case T.EOF:{this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case T.EQUALS_SIGN:{this._err(F.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=A.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:case T.SOLIDUS:case T.GREATER_THAN_SIGN:case T.EOF:{this._leaveAttrName(),this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case T.EQUALS_SIGN:{this._leaveAttrName(),this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case T.QUOTATION_MARK:case T.APOSTROPHE:case T.LESS_THAN_SIGN:{this._err(F.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.name+=ze;break}default:this.currentAttr.name+=String.fromCodePoint(Zr(t)?Bu(t):t)}}_stateAfterAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case T.EQUALS_SIGN:{this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{this.state=A.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this.state=A.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingAttributeValue),this.state=A.DATA,this.emitCurrentTagToken();break}default:this.state=A.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case T.QUOTATION_MARK:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=ze;break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case T.APOSTROPHE:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=ze;break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=ze;break}case T.QUOTATION_MARK:case T.APOSTROPHE:case T.LESS_THAN_SIGN:case T.EQUALS_SIGN:case T.GRAVE_ACCENT:{this._err(F.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case T.SOLIDUS:{this._leaveAttrValue(),this.state=A.SELF_CLOSING_START_TAG;break}case T.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._err(F.missingWhitespaceBetweenAttributes),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case T.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=A.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._err(F.unexpectedSolidusInTag),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(n);break}case T.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.data+=ze;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(St.DASH_DASH,!0)?(this._createCommentToken(St.DASH_DASH.length+1),this.state=A.COMMENT_START):this._consumeSequenceIfMatch(St.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(St.DOCTYPE.length+1),this.state=A.DOCTYPE):this._consumeSequenceIfMatch(St.CDATA_START,!0)?this.inForeignNode?this.state=A.CDATA_SECTION:(this._err(F.cdataInHtmlContent),this._createCommentToken(St.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=A.BOGUS_COMMENT):this._ensureHibernation()||(this._err(F.incorrectlyOpenedComment),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_START_DASH;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptClosingOfEmptyComment),this.state=A.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptClosingOfEmptyComment),this.state=A.DATA,this.emitCurrentComment(n);break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_END_DASH;break}case T.LESS_THAN_SIGN:{n.data+="<",this.state=A.COMMENT_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.data+=ze;break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case T.EXCLAMATION_MARK:{n.data+="!",this.state=A.COMMENT_LESS_THAN_SIGN_BANG;break}case T.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===T.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=A.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===T.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=A.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==T.GREATER_THAN_SIGN&&t!==T.EOF&&this._err(F.nestedComment),this.state=A.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(n);break}case T.EXCLAMATION_MARK:{this.state=A.COMMENT_END_BANG;break}case T.HYPHEN_MINUS:{n.data+="-";break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{n.data+="--!",this.state=A.COMMENT_END_DASH;break}case T.GREATER_THAN_SIGN:{this._err(F.incorrectlyClosedComment),this.state=A.DATA,this.emitCurrentComment(n);break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=A.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case T.EOF:{this._err(F.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingWhitespaceBeforeDoctypeName),this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Zr(t))this._createDoctypeToken(String.fromCharCode(Bu(t))),this.state=A.DOCTYPE_NAME;else switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.NULL:{this._err(F.unexpectedNullCharacter),this._createDoctypeToken(ze),this.state=A.DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=A.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.AFTER_DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.name+=ze;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Zr(t)?Bu(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(St.PUBLIC,!1)?this.state=A.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(St.SYSTEM,!1)?this.state=A.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(F.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.QUOTATION_MARK:{this._err(F.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(F.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case T.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.publicId+=ze;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case T.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.publicId+=ze;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.QUOTATION_MARK:{this._err(F.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(F.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.QUOTATION_MARK:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.QUOTATION_MARK:{this._err(F.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(F.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case T.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.systemId+=ze;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case T.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.systemId+=ze;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.NULL:{this._err(F.unexpectedNullCharacter);break}case T.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case T.RIGHT_SQUARE_BRACKET:{this.state=A.CDATA_SECTION_BRACKET;break}case T.EOF:{this._err(F.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===T.RIGHT_SQUARE_BRACKET?this.state=A.CDATA_SECTION_END:(this._emitChars("]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case T.GREATER_THAN_SIGN:{this.state=A.DATA;break}case T.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(T.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Hc(this.preprocessor.peek(1))?A.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Hc(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===T.SEMICOLON&&this._err(F.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const td=new Set([d.DD,d.DT,d.LI,d.OPTGROUP,d.OPTION,d.P,d.RB,d.RP,d.RT,d.RTC]),Vc=new Set([...td,d.CAPTION,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]),ea=new Set([d.APPLET,d.CAPTION,d.HTML,d.MARQUEE,d.OBJECT,d.TABLE,d.TD,d.TEMPLATE,d.TH]),tA=new Set([...ea,d.OL,d.UL]),nA=new Set([...ea,d.BUTTON]),$c=new Set([d.ANNOTATION_XML,d.MI,d.MN,d.MO,d.MS,d.MTEXT]),zc=new Set([d.DESC,d.FOREIGN_OBJECT,d.TITLE]),rA=new Set([d.TR,d.TEMPLATE,d.HTML]),uA=new Set([d.TBODY,d.TFOOT,d.THEAD,d.TEMPLATE,d.HTML]),aA=new Set([d.TABLE,d.TEMPLATE,d.HTML]),sA=new Set([d.TD,d.TH]);class iA{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=d.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===d.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===$.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const u=this._indexOf(t)+1;this.items.splice(u,0,n),this.tagIDs.splice(u,0,r),this.stackTop++,u===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,u===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==$.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Ys,$.HTML)}popUntilTableCellPopped(){this.popUntilPopped(sA,$.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(aA,$.HTML)}clearBackToTableBodyContext(){this.clearBackTo(uA,$.HTML)}clearBackToTableRowContext(){this.clearBackTo(rA,$.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===d.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===d.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const u=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case $.HTML:{if(u===t)return!0;if(n.has(u))return!1;break}case $.SVG:{if(zc.has(u))return!1;break}case $.MATHML:{if($c.has(u))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,ea)}hasInListItemScope(t){return this.hasInDynamicScope(t,tA)}hasInButtonScope(t){return this.hasInDynamicScope(t,nA)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case $.HTML:{if(Ys.has(n))return!0;if(ea.has(n))return!1;break}case $.SVG:{if(zc.has(n))return!1;break}case $.MATHML:{if($c.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===$.HTML)switch(this.tagIDs[n]){case t:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===$.HTML)switch(this.tagIDs[t]){case d.TBODY:case d.THEAD:case d.TFOOT:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===$.HTML)switch(this.tagIDs[n]){case t:return!0;case d.OPTION:case d.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&td.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Vc.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Vc.has(this.currentTagId);)this.pop()}}const ms=3;var dn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(dn||(dn={}));const qc={type:dn.Marker};class oA{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],u=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const c=this.entries[o];if(c.type===dn.Marker)break;const{element:l}=c;if(this.treeAdapter.getTagName(l)===a&&this.treeAdapter.getNamespaceURI(l)===s){const h=this.treeAdapter.getAttrList(l);h.length===u&&r.push({idx:o,attrs:h})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<ms)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<ms)return;const u=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(c=>u.get(c.name)===c.value)&&(a+=1,a>=ms&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(qc)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:dn.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:dn.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(qc);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===dn.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===dn.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===dn.Element&&n.element===t)}}const On={createDocument(){return{nodeName:"#document",mode:Xt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const u=e.childNodes.find(a=>a.nodeName==="#documentType");if(u)u.name=t,u.publicId=n,u.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};On.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(On.isTextNode(n)){n.value+=t;return}}On.appendChild(e,On.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&On.isTextNode(r)?r.value+=t:On.insertBefore(e,On.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},nd="html",cA="about:legacy-compat",lA="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",rd=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],dA=[...rd,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],fA=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),ud=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],hA=[...ud,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Zc(e,t){return t.some(n=>e.startsWith(n))}function pA(e){return e.name===nd&&e.publicId===null&&(e.systemId===null||e.systemId===cA)}function mA(e){if(e.name!==nd)return Xt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===lA)return Xt.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),fA.has(n))return Xt.QUIRKS;let r=t===null?dA:rd;if(Zc(n,r))return Xt.QUIRKS;if(r=t===null?ud:hA,Zc(n,r))return Xt.LIMITED_QUIRKS}return Xt.NO_QUIRKS}const Wc={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},gA="definitionurl",bA="definitionURL",_A=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),xA=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:$.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:$.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:$.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:$.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:$.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:$.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:$.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:$.XML}],["xml:space",{prefix:"xml",name:"space",namespace:$.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:$.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:$.XMLNS}]]),CA=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),EA=new Set([d.B,d.BIG,d.BLOCKQUOTE,d.BODY,d.BR,d.CENTER,d.CODE,d.DD,d.DIV,d.DL,d.DT,d.EM,d.EMBED,d.H1,d.H2,d.H3,d.H4,d.H5,d.H6,d.HEAD,d.HR,d.I,d.IMG,d.LI,d.LISTING,d.MENU,d.META,d.NOBR,d.OL,d.P,d.PRE,d.RUBY,d.S,d.SMALL,d.SPAN,d.STRONG,d.STRIKE,d.SUB,d.SUP,d.TABLE,d.TT,d.U,d.UL,d.VAR]);function yA(e){const t=e.tagID;return t===d.FONT&&e.attrs.some(({name:r})=>r===ar.COLOR||r===ar.SIZE||r===ar.FACE)||EA.has(t)}function ad(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===gA){e.attrs[t].name=bA;break}}function sd(e){for(let t=0;t<e.attrs.length;t++){const n=_A.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function ji(e){for(let t=0;t<e.attrs.length;t++){const n=xA.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function TA(e){const t=CA.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Or(e.tagName))}function kA(e,t){return t===$.MATHML&&(e===d.MI||e===d.MO||e===d.MN||e===d.MS||e===d.MTEXT)}function AA(e,t,n){if(t===$.MATHML&&e===d.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ar.ENCODING){const u=n[r].value.toLowerCase();return u===Wc.TEXT_HTML||u===Wc.APPLICATION_XML}}return t===$.SVG&&(e===d.FOREIGN_OBJECT||e===d.DESC||e===d.TITLE)}function SA(e,t,n,r){return(!r||r===$.HTML)&&AA(e,t,n)||(!r||r===$.MATHML)&&kA(e,t)}const IA="hidden",NA=8,vA=3;var w;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(w||(w={}));const wA={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},id=new Set([d.TABLE,d.TBODY,d.TFOOT,d.THEAD,d.TR]),Yc={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:On,onParseError:null};class Gc{constructor(t,n,r=null,u=null){this.fragmentContext=r,this.scriptHandler=u,this.currentToken=null,this.stopped=!1,this.insertionMode=w.INITIAL,this.originalInsertionMode=w.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Yc,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new eA(this.options,this),this.activeFormattingElements=new oA(this.treeAdapter),this.fragmentContextID=r?Or(this.treeAdapter.getTagName(r)):d.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new iA(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Yc,...n};t??(t=r.treeAdapter.createElement(R.TEMPLATE,$.HTML,[]));const u=r.treeAdapter.createElement("documentmock",$.HTML,[]),a=new this(r,u,t);return a.fragmentContextID===d.TEMPLATE&&a.tmplInsertionModeStack.unshift(w.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var u;if(!this.onParseError)return;const a=(u=t.location)!==null&&u!==void 0?u:wA,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var u,a;(a=(u=this.treeAdapter).onItemPush)===null||a===void 0||a.call(u,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,u;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(u=(r=this.treeAdapter).onItemPop)===null||u===void 0||u.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===$.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,$.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=w.TEXT}switchToPlaintextParsing(){this.insertionMode=w.TEXT,this.originalInsertionMode=w.IN_BODY,this.tokenizer.state=Je.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===R.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==$.HTML))switch(this.fragmentContextID){case d.TITLE:case d.TEXTAREA:{this.tokenizer.state=Je.RCDATA;break}case d.STYLE:case d.XMP:case d.IFRAME:case d.NOEMBED:case d.NOFRAMES:case d.NOSCRIPT:{this.tokenizer.state=Je.RAWTEXT;break}case d.SCRIPT:{this.tokenizer.state=Je.SCRIPT_DATA;break}case d.PLAINTEXT:{this.tokenizer.state=Je.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",u=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,u),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,$.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,$.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(R.HTML,$.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,d.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const u=this.treeAdapter.getChildNodes(n),a=r?u.lastIndexOf(r):u.length,s=u[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:c,endCol:l,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:c,endCol:l,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,u=this.treeAdapter.getTagName(t),a=n.type===Ie.END_TAG&&u===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===d.SVG&&this.treeAdapter.getTagName(n)===R.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===$.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===d.MGLYPH||t.tagID===d.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,$.HTML)}_processToken(t){switch(t.type){case Ie.CHARACTER:{this.onCharacter(t);break}case Ie.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ie.COMMENT:{this.onComment(t);break}case Ie.DOCTYPE:{this.onDoctype(t);break}case Ie.START_TAG:{this._processStartTag(t);break}case Ie.END_TAG:{this.onEndTag(t);break}case Ie.EOF:{this.onEof(t);break}case Ie.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const u=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return SA(t,u,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(u=>u.type===dn.Marker||this.openElements.contains(u.element)),r=n===-1?t-1:n-1;for(let u=r;u>=0;u--){const a=this.activeFormattingElements.entries[u];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=w.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(d.P),this.openElements.popUntilTagNamePopped(d.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case d.TR:{this.insertionMode=w.IN_ROW;return}case d.TBODY:case d.THEAD:case d.TFOOT:{this.insertionMode=w.IN_TABLE_BODY;return}case d.CAPTION:{this.insertionMode=w.IN_CAPTION;return}case d.COLGROUP:{this.insertionMode=w.IN_COLUMN_GROUP;return}case d.TABLE:{this.insertionMode=w.IN_TABLE;return}case d.BODY:{this.insertionMode=w.IN_BODY;return}case d.FRAMESET:{this.insertionMode=w.IN_FRAMESET;return}case d.SELECT:{this._resetInsertionModeForSelect(t);return}case d.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case d.HTML:{this.insertionMode=this.headElement?w.AFTER_HEAD:w.BEFORE_HEAD;return}case d.TD:case d.TH:{if(t>0){this.insertionMode=w.IN_CELL;return}break}case d.HEAD:{if(t>0){this.insertionMode=w.IN_HEAD;return}break}}this.insertionMode=w.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===d.TEMPLATE)break;if(r===d.TABLE){this.insertionMode=w.IN_SELECT_IN_TABLE;return}}this.insertionMode=w.IN_SELECT}_isElementCausesFosterParenting(t){return id.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case d.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===$.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case d.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Xk[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){sI(this,t);return}switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Kr(this,t);break}case w.BEFORE_HEAD:{Qr(this,t);break}case w.IN_HEAD:{Jr(this,t);break}case w.IN_HEAD_NO_SCRIPT:{eu(this,t);break}case w.AFTER_HEAD:{tu(this,t);break}case w.IN_BODY:case w.IN_CAPTION:case w.IN_CELL:case w.IN_TEMPLATE:{cd(this,t);break}case w.TEXT:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{gs(this,t);break}case w.IN_TABLE_TEXT:{md(this,t);break}case w.IN_COLUMN_GROUP:{ta(this,t);break}case w.AFTER_BODY:{na(this,t);break}case w.AFTER_AFTER_BODY:{Zu(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){aI(this,t);return}switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Kr(this,t);break}case w.BEFORE_HEAD:{Qr(this,t);break}case w.IN_HEAD:{Jr(this,t);break}case w.IN_HEAD_NO_SCRIPT:{eu(this,t);break}case w.AFTER_HEAD:{tu(this,t);break}case w.TEXT:{this._insertCharacters(t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{gs(this,t);break}case w.IN_COLUMN_GROUP:{ta(this,t);break}case w.AFTER_BODY:{na(this,t);break}case w.AFTER_AFTER_BODY:{Zu(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Gs(this,t);return}switch(this.insertionMode){case w.INITIAL:case w.BEFORE_HTML:case w.BEFORE_HEAD:case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:case w.IN_BODY:case w.IN_TABLE:case w.IN_CAPTION:case w.IN_COLUMN_GROUP:case w.IN_TABLE_BODY:case w.IN_ROW:case w.IN_CELL:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:case w.IN_TEMPLATE:case w.IN_FRAMESET:case w.AFTER_FRAMESET:{Gs(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.AFTER_BODY:{jA(this,t);break}case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{FA(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case w.INITIAL:{BA(this,t);break}case w.BEFORE_HEAD:case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:{this._err(t,F.misplacedDoctype);break}case w.IN_TABLE_TEXT:{$r(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,F.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?iI(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{HA(this,t);break}case w.BEFORE_HEAD:{VA(this,t);break}case w.IN_HEAD:{an(this,t);break}case w.IN_HEAD_NO_SCRIPT:{qA(this,t);break}case w.AFTER_HEAD:{WA(this,t);break}case w.IN_BODY:{Et(this,t);break}case w.IN_TABLE:{Ir(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.IN_CAPTION:{$S(this,t);break}case w.IN_COLUMN_GROUP:{Hi(this,t);break}case w.IN_TABLE_BODY:{Da(this,t);break}case w.IN_ROW:{La(this,t);break}case w.IN_CELL:{ZS(this,t);break}case w.IN_SELECT:{_d(this,t);break}case w.IN_SELECT_IN_TABLE:{YS(this,t);break}case w.IN_TEMPLATE:{XS(this,t);break}case w.AFTER_BODY:{QS(this,t);break}case w.IN_FRAMESET:{JS(this,t);break}case w.AFTER_FRAMESET:{tI(this,t);break}case w.AFTER_AFTER_BODY:{rI(this,t);break}case w.AFTER_AFTER_FRAMESET:{uI(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?oI(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{UA(this,t);break}case w.BEFORE_HEAD:{$A(this,t);break}case w.IN_HEAD:{zA(this,t);break}case w.IN_HEAD_NO_SCRIPT:{ZA(this,t);break}case w.AFTER_HEAD:{YA(this,t);break}case w.IN_BODY:{wa(this,t);break}case w.TEXT:{PS(this,t);break}case w.IN_TABLE:{lu(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.IN_CAPTION:{zS(this,t);break}case w.IN_COLUMN_GROUP:{qS(this,t);break}case w.IN_TABLE_BODY:{Xs(this,t);break}case w.IN_ROW:{bd(this,t);break}case w.IN_CELL:{WS(this,t);break}case w.IN_SELECT:{xd(this,t);break}case w.IN_SELECT_IN_TABLE:{GS(this,t);break}case w.IN_TEMPLATE:{KS(this,t);break}case w.AFTER_BODY:{Ed(this,t);break}case w.IN_FRAMESET:{eI(this,t);break}case w.AFTER_FRAMESET:{nI(this,t);break}case w.AFTER_AFTER_BODY:{Zu(this,t);break}}}onEof(t){switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Kr(this,t);break}case w.BEFORE_HEAD:{Qr(this,t);break}case w.IN_HEAD:{Jr(this,t);break}case w.IN_HEAD_NO_SCRIPT:{eu(this,t);break}case w.AFTER_HEAD:{tu(this,t);break}case w.IN_BODY:case w.IN_TABLE:case w.IN_CAPTION:case w.IN_COLUMN_GROUP:case w.IN_TABLE_BODY:case w.IN_ROW:case w.IN_CELL:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:{hd(this,t);break}case w.TEXT:{RS(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.IN_TEMPLATE:{Cd(this,t);break}case w.AFTER_BODY:case w.IN_FRAMESET:case w.AFTER_FRAMESET:case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{Bi(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===T.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:case w.TEXT:case w.IN_COLUMN_GROUP:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:case w.IN_FRAMESET:case w.AFTER_FRAMESET:{this._insertCharacters(t);break}case w.IN_BODY:case w.IN_CAPTION:case w.IN_CELL:case w.IN_TEMPLATE:case w.AFTER_BODY:case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{od(this,t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{gs(this,t);break}case w.IN_TABLE_TEXT:{pd(this,t);break}}}}function DA(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):fd(e,t),n}function LA(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const u=e.openElements.items[r];if(u===t.element)break;e._isSpecialElement(u,e.openElements.tagIDs[r])&&(n=u)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function PA(e,t,n){let r=t,u=e.openElements.getCommonAncestor(t);for(let a=0,s=u;s!==n;a++,s=u){u=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),c=o&&a>=vA;!o||c?(c&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=RA(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function RA(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function MA(e,t,n){const r=e.treeAdapter.getTagName(t),u=Or(r);if(e._isElementCausesFosterParenting(u))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);u===d.TEMPLATE&&a===$.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function OA(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:u}=n,a=e.treeAdapter.createElement(u.tagName,r,u.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,u),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,u.tagID)}function Fi(e,t){for(let n=0;n<NA;n++){const r=DA(e,t);if(!r)break;const u=LA(e,r);if(!u)break;e.activeFormattingElements.bookmark=r;const a=PA(e,u,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&MA(e,s,a),OA(e,u,r)}}function Gs(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function jA(e,t){e._appendCommentNode(t,e.openElements.items[0])}function FA(e,t){e._appendCommentNode(t,e.document)}function Bi(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],u=e.treeAdapter.getNodeSourceCodeLocation(r);if(u&&!u.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function BA(e,t){e._setDocumentType(t);const n=t.forceQuirks?Xt.QUIRKS:mA(t);pA(t)||e._err(t,F.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=w.BEFORE_HTML}function Vr(e,t){e._err(t,F.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Xt.QUIRKS),e.insertionMode=w.BEFORE_HTML,e._processToken(t)}function HA(e,t){t.tagID===d.HTML?(e._insertElement(t,$.HTML),e.insertionMode=w.BEFORE_HEAD):Kr(e,t)}function UA(e,t){const n=t.tagID;(n===d.HTML||n===d.HEAD||n===d.BODY||n===d.BR)&&Kr(e,t)}function Kr(e,t){e._insertFakeRootElement(),e.insertionMode=w.BEFORE_HEAD,e._processToken(t)}function VA(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.HEAD:{e._insertElement(t,$.HTML),e.headElement=e.openElements.current,e.insertionMode=w.IN_HEAD;break}default:Qr(e,t)}}function $A(e,t){const n=t.tagID;n===d.HEAD||n===d.BODY||n===d.HTML||n===d.BR?Qr(e,t):e._err(t,F.endTagWithoutMatchingOpenElement)}function Qr(e,t){e._insertFakeElement(R.HEAD,d.HEAD),e.headElement=e.openElements.current,e.insertionMode=w.IN_HEAD,e._processToken(t)}function an(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:{e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.TITLE:{e._switchToTextParsing(t,Je.RCDATA);break}case d.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Je.RAWTEXT):(e._insertElement(t,$.HTML),e.insertionMode=w.IN_HEAD_NO_SCRIPT);break}case d.NOFRAMES:case d.STYLE:{e._switchToTextParsing(t,Je.RAWTEXT);break}case d.SCRIPT:{e._switchToTextParsing(t,Je.SCRIPT_DATA);break}case d.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=w.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(w.IN_TEMPLATE);break}case d.HEAD:{e._err(t,F.misplacedStartTagForHeadElement);break}default:Jr(e,t)}}function zA(e,t){switch(t.tagID){case d.HEAD:{e.openElements.pop(),e.insertionMode=w.AFTER_HEAD;break}case d.BODY:case d.BR:case d.HTML:{Jr(e,t);break}case d.TEMPLATE:{lr(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function lr(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==d.TEMPLATE&&e._err(t,F.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,F.endTagWithoutMatchingOpenElement)}function Jr(e,t){e.openElements.pop(),e.insertionMode=w.AFTER_HEAD,e._processToken(t)}function qA(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.BASEFONT:case d.BGSOUND:case d.HEAD:case d.LINK:case d.META:case d.NOFRAMES:case d.STYLE:{an(e,t);break}case d.NOSCRIPT:{e._err(t,F.nestedNoscriptInHead);break}default:eu(e,t)}}function ZA(e,t){switch(t.tagID){case d.NOSCRIPT:{e.openElements.pop(),e.insertionMode=w.IN_HEAD;break}case d.BR:{eu(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function eu(e,t){const n=t.type===Ie.EOF?F.openElementsLeftAfterEof:F.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=w.IN_HEAD,e._processToken(t)}function WA(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.BODY:{e._insertElement(t,$.HTML),e.framesetOk=!1,e.insertionMode=w.IN_BODY;break}case d.FRAMESET:{e._insertElement(t,$.HTML),e.insertionMode=w.IN_FRAMESET;break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{e._err(t,F.abandonedHeadElementChild),e.openElements.push(e.headElement,d.HEAD),an(e,t),e.openElements.remove(e.headElement);break}case d.HEAD:{e._err(t,F.misplacedStartTagForHeadElement);break}default:tu(e,t)}}function YA(e,t){switch(t.tagID){case d.BODY:case d.HTML:case d.BR:{tu(e,t);break}case d.TEMPLATE:{lr(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function tu(e,t){e._insertFakeElement(R.BODY,d.BODY),e.insertionMode=w.IN_BODY,va(e,t)}function va(e,t){switch(t.type){case Ie.CHARACTER:{cd(e,t);break}case Ie.WHITESPACE_CHARACTER:{od(e,t);break}case Ie.COMMENT:{Gs(e,t);break}case Ie.START_TAG:{Et(e,t);break}case Ie.END_TAG:{wa(e,t);break}case Ie.EOF:{hd(e,t);break}}}function od(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function cd(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function GA(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function XA(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function KA(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_FRAMESET)}function QA(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML)}function JA(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Ys.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,$.HTML)}function eS(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function tS(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),n||(e.formElement=e.openElements.current))}function nS(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const u=e.openElements.tagIDs[r];if(n===d.LI&&u===d.LI||(n===d.DD||n===d.DT)&&(u===d.DD||u===d.DT)){e.openElements.generateImpliedEndTagsWithExclusion(u),e.openElements.popUntilTagNamePopped(u);break}if(u!==d.ADDRESS&&u!==d.DIV&&u!==d.P&&e._isSpecialElement(e.openElements.items[r],u))break}e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML)}function rS(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),e.tokenizer.state=Je.PLAINTEXT}function uS(e,t){e.openElements.hasInScope(d.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.framesetOk=!1}function aS(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(R.A);n&&(Fi(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function sS(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function iS(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(d.NOBR)&&(Fi(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,$.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function oS(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function cS(e,t){e.treeAdapter.getDocumentMode(e.document)!==Xt.QUIRKS&&e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),e.framesetOk=!1,e.insertionMode=w.IN_TABLE}function ld(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function dd(e){const t=J1(e,ar.TYPE);return t!=null&&t.toLowerCase()===IA}function lS(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$.HTML),dd(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function dS(e,t){e._appendElement(t,$.HTML),t.ackSelfClosing=!0}function fS(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._appendElement(t,$.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function hS(e,t){t.tagName=R.IMG,t.tagID=d.IMG,ld(e,t)}function pS(e,t){e._insertElement(t,$.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Je.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=w.TEXT}function mS(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Je.RAWTEXT)}function gS(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Je.RAWTEXT)}function Xc(e,t){e._switchToTextParsing(t,Je.RAWTEXT)}function bS(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===w.IN_TABLE||e.insertionMode===w.IN_CAPTION||e.insertionMode===w.IN_TABLE_BODY||e.insertionMode===w.IN_ROW||e.insertionMode===w.IN_CELL?w.IN_SELECT_IN_TABLE:w.IN_SELECT}function _S(e,t){e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML)}function xS(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,$.HTML)}function CS(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(d.RTC),e._insertElement(t,$.HTML)}function ES(e,t){e._reconstructActiveFormattingElements(),ad(t),ji(t),t.selfClosing?e._appendElement(t,$.MATHML):e._insertElement(t,$.MATHML),t.ackSelfClosing=!0}function yS(e,t){e._reconstructActiveFormattingElements(),sd(t),ji(t),t.selfClosing?e._appendElement(t,$.SVG):e._insertElement(t,$.SVG),t.ackSelfClosing=!0}function Kc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML)}function Et(e,t){switch(t.tagID){case d.I:case d.S:case d.B:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.SMALL:case d.STRIKE:case d.STRONG:{sS(e,t);break}case d.A:{aS(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{JA(e,t);break}case d.P:case d.DL:case d.OL:case d.UL:case d.DIV:case d.DIR:case d.NAV:case d.MAIN:case d.MENU:case d.ASIDE:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.DETAILS:case d.ADDRESS:case d.ARTICLE:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{QA(e,t);break}case d.LI:case d.DD:case d.DT:{nS(e,t);break}case d.BR:case d.IMG:case d.WBR:case d.AREA:case d.EMBED:case d.KEYGEN:{ld(e,t);break}case d.HR:{fS(e,t);break}case d.RB:case d.RTC:{xS(e,t);break}case d.RT:case d.RP:{CS(e,t);break}case d.PRE:case d.LISTING:{eS(e,t);break}case d.XMP:{mS(e,t);break}case d.SVG:{yS(e,t);break}case d.HTML:{GA(e,t);break}case d.BASE:case d.LINK:case d.META:case d.STYLE:case d.TITLE:case d.SCRIPT:case d.BGSOUND:case d.BASEFONT:case d.TEMPLATE:{an(e,t);break}case d.BODY:{XA(e,t);break}case d.FORM:{tS(e,t);break}case d.NOBR:{iS(e,t);break}case d.MATH:{ES(e,t);break}case d.TABLE:{cS(e,t);break}case d.INPUT:{lS(e,t);break}case d.PARAM:case d.TRACK:case d.SOURCE:{dS(e,t);break}case d.IMAGE:{hS(e,t);break}case d.BUTTON:{uS(e,t);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{oS(e,t);break}case d.IFRAME:{gS(e,t);break}case d.SELECT:{bS(e,t);break}case d.OPTION:case d.OPTGROUP:{_S(e,t);break}case d.NOEMBED:case d.NOFRAMES:{Xc(e,t);break}case d.FRAMESET:{KA(e,t);break}case d.TEXTAREA:{pS(e,t);break}case d.NOSCRIPT:{e.options.scriptingEnabled?Xc(e,t):Kc(e,t);break}case d.PLAINTEXT:{rS(e,t);break}case d.COL:case d.TH:case d.TD:case d.TR:case d.HEAD:case d.FRAME:case d.TBODY:case d.TFOOT:case d.THEAD:case d.CAPTION:case d.COLGROUP:break;default:Kc(e,t)}}function TS(e,t){if(e.openElements.hasInScope(d.BODY)&&(e.insertionMode=w.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function kS(e,t){e.openElements.hasInScope(d.BODY)&&(e.insertionMode=w.AFTER_BODY,Ed(e,t))}function AS(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function SS(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(d.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(d.FORM):n&&e.openElements.remove(n))}function IS(e){e.openElements.hasInButtonScope(d.P)||e._insertFakeElement(R.P,d.P),e._closePElement()}function NS(e){e.openElements.hasInListItemScope(d.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(d.LI),e.openElements.popUntilTagNamePopped(d.LI))}function vS(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function wS(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function DS(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function LS(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(R.BR,d.BR),e.openElements.pop(),e.framesetOk=!1}function fd(e,t){const n=t.tagName,r=t.tagID;for(let u=e.openElements.stackTop;u>0;u--){const a=e.openElements.items[u],s=e.openElements.tagIDs[u];if(r===s&&(r!==d.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=u&&e.openElements.shortenToLength(u);break}if(e._isSpecialElement(a,s))break}}function wa(e,t){switch(t.tagID){case d.A:case d.B:case d.I:case d.S:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.NOBR:case d.SMALL:case d.STRIKE:case d.STRONG:{Fi(e,t);break}case d.P:{IS(e);break}case d.DL:case d.UL:case d.OL:case d.DIR:case d.DIV:case d.NAV:case d.PRE:case d.MAIN:case d.MENU:case d.ASIDE:case d.BUTTON:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.ADDRESS:case d.ARTICLE:case d.DETAILS:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.LISTING:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{AS(e,t);break}case d.LI:{NS(e);break}case d.DD:case d.DT:{vS(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{wS(e);break}case d.BR:{LS(e);break}case d.BODY:{TS(e,t);break}case d.HTML:{kS(e,t);break}case d.FORM:{SS(e);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{DS(e,t);break}case d.TEMPLATE:{lr(e,t);break}default:fd(e,t)}}function hd(e,t){e.tmplInsertionModeStack.length>0?Cd(e,t):Bi(e,t)}function PS(e,t){var n;t.tagID===d.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function RS(e,t){e._err(t,F.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function gs(e,t){if(e.openElements.currentTagId!==void 0&&id.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=w.IN_TABLE_TEXT,t.type){case Ie.CHARACTER:{md(e,t);break}case Ie.WHITESPACE_CHARACTER:{pd(e,t);break}}else yu(e,t)}function MS(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_CAPTION}function OS(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_COLUMN_GROUP}function jS(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.COLGROUP,d.COLGROUP),e.insertionMode=w.IN_COLUMN_GROUP,Hi(e,t)}function FS(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_TABLE_BODY}function BS(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.TBODY,d.TBODY),e.insertionMode=w.IN_TABLE_BODY,Da(e,t)}function HS(e,t){e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function US(e,t){dd(t)?e._appendElement(t,$.HTML):yu(e,t),t.ackSelfClosing=!0}function VS(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,$.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ir(e,t){switch(t.tagID){case d.TD:case d.TH:case d.TR:{BS(e,t);break}case d.STYLE:case d.SCRIPT:case d.TEMPLATE:{an(e,t);break}case d.COL:{jS(e,t);break}case d.FORM:{VS(e,t);break}case d.TABLE:{HS(e,t);break}case d.TBODY:case d.TFOOT:case d.THEAD:{FS(e,t);break}case d.INPUT:{US(e,t);break}case d.CAPTION:{MS(e,t);break}case d.COLGROUP:{OS(e,t);break}default:yu(e,t)}}function lu(e,t){switch(t.tagID){case d.TABLE:{e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode());break}case d.TEMPLATE:{lr(e,t);break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:yu(e,t)}}function yu(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,va(e,t),e.fosterParentingEnabled=n}function pd(e,t){e.pendingCharacterTokens.push(t)}function md(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function $r(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)yu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const gd=new Set([d.CAPTION,d.COL,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]);function $S(e,t){const n=t.tagID;gd.has(n)?e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_TABLE,Ir(e,t)):Et(e,t)}function zS(e,t){const n=t.tagID;switch(n){case d.CAPTION:case d.TABLE:{e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_TABLE,n===d.TABLE&&lu(e,t));break}case d.BODY:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:wa(e,t)}}function Hi(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.COL:{e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.TEMPLATE:{an(e,t);break}default:ta(e,t)}}function qS(e,t){switch(t.tagID){case d.COLGROUP:{e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=w.IN_TABLE);break}case d.TEMPLATE:{lr(e,t);break}case d.COL:break;default:ta(e,t)}}function ta(e,t){e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=w.IN_TABLE,e._processToken(t))}function Da(e,t){switch(t.tagID){case d.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_ROW;break}case d.TH:case d.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(R.TR,d.TR),e.insertionMode=w.IN_ROW,La(e,t);break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE,Ir(e,t));break}default:Ir(e,t)}}function Xs(e,t){const n=t.tagID;switch(t.tagID){case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE);break}case d.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE,lu(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:case d.TR:break;default:lu(e,t)}}function La(e,t){switch(t.tagID){case d.TH:case d.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_CELL,e.activeFormattingElements.insertMarker();break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Da(e,t));break}default:Ir(e,t)}}function bd(e,t){switch(t.tagID){case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY);break}case d.TABLE:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Xs(e,t));break}case d.TBODY:case d.TFOOT:case d.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(d.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Xs(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:break;default:lu(e,t)}}function ZS(e,t){const n=t.tagID;gd.has(n)?(e.openElements.hasInTableScope(d.TD)||e.openElements.hasInTableScope(d.TH))&&(e._closeTableCell(),La(e,t)):Et(e,t)}function WS(e,t){const n=t.tagID;switch(n){case d.TD:case d.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_ROW);break}case d.TABLE:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),bd(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:break;default:wa(e,t)}}function _d(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._insertElement(t,$.HTML);break}case d.OPTGROUP:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._insertElement(t,$.HTML);break}case d.HR:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.INPUT:case d.KEYGEN:case d.TEXTAREA:case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),t.tagID!==d.SELECT&&e._processStartTag(t));break}case d.SCRIPT:case d.TEMPLATE:{an(e,t);break}}}function xd(e,t){switch(t.tagID){case d.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===d.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===d.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop();break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop();break}case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode());break}case d.TEMPLATE:{lr(e,t);break}}}function YS(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e._processStartTag(t)):_d(e,t)}function GS(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e.onEndTag(t)):xd(e,t)}function XS(e,t){switch(t.tagID){case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{an(e,t);break}case d.CAPTION:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.tmplInsertionModeStack[0]=w.IN_TABLE,e.insertionMode=w.IN_TABLE,Ir(e,t);break}case d.COL:{e.tmplInsertionModeStack[0]=w.IN_COLUMN_GROUP,e.insertionMode=w.IN_COLUMN_GROUP,Hi(e,t);break}case d.TR:{e.tmplInsertionModeStack[0]=w.IN_TABLE_BODY,e.insertionMode=w.IN_TABLE_BODY,Da(e,t);break}case d.TD:case d.TH:{e.tmplInsertionModeStack[0]=w.IN_ROW,e.insertionMode=w.IN_ROW,La(e,t);break}default:e.tmplInsertionModeStack[0]=w.IN_BODY,e.insertionMode=w.IN_BODY,Et(e,t)}}function KS(e,t){t.tagID===d.TEMPLATE&&lr(e,t)}function Cd(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Bi(e,t)}function QS(e,t){t.tagID===d.HTML?Et(e,t):na(e,t)}function Ed(e,t){var n;if(t.tagID===d.HTML){if(e.fragmentContext||(e.insertionMode=w.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===d.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else na(e,t)}function na(e,t){e.insertionMode=w.IN_BODY,va(e,t)}function JS(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.FRAMESET:{e._insertElement(t,$.HTML);break}case d.FRAME:{e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.NOFRAMES:{an(e,t);break}}}function eI(e,t){t.tagID===d.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==d.FRAMESET&&(e.insertionMode=w.AFTER_FRAMESET))}function tI(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.NOFRAMES:{an(e,t);break}}}function nI(e,t){t.tagID===d.HTML&&(e.insertionMode=w.AFTER_AFTER_FRAMESET)}function rI(e,t){t.tagID===d.HTML?Et(e,t):Zu(e,t)}function Zu(e,t){e.insertionMode=w.IN_BODY,va(e,t)}function uI(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.NOFRAMES:{an(e,t);break}}}function aI(e,t){t.chars=ze,e._insertCharacters(t)}function sI(e,t){e._insertCharacters(t),e.framesetOk=!1}function yd(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==$.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function iI(e,t){if(yA(t))yd(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===$.MATHML?ad(t):r===$.SVG&&(TA(t),sd(t)),ji(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function oI(e,t){if(t.tagID===d.P||t.tagID===d.BR){yd(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===$.HTML){e._endTagOutsideForeignContent(t);break}const u=e.treeAdapter.getTagName(r);if(u.toLowerCase()===t.tagName){t.tagName=u,e.openElements.shortenToLength(n);break}}}R.AREA,R.BASE,R.BASEFONT,R.BGSOUND,R.BR,R.COL,R.EMBED,R.FRAME,R.HR,R.IMG,R.INPUT,R.KEYGEN,R.LINK,R.META,R.PARAM,R.SOURCE,R.TRACK,R.WBR;const cI=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,lI=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Qc={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Td(e,t){const n=CI(e),r=b1("type",{handlers:{root:dI,element:fI,text:hI,comment:Ad,doctype:pI,raw:gI},unknown:bI}),u={parser:n?new Gc(Qc):Gc.getFragmentParser(void 0,Qc),handle(o){r(o,u)},stitches:!1,options:t||{}};r(e,u),jr(u,gn());const a=n?u.parser.document:u.parser.getFragment(),s=dk(a,{file:u.options.file});return u.stitches&&Ia(s,"comment",function(o,c,l){const h=o;if(h.value.stitch&&l&&c!==void 0){const f=l.children;return f[c]=h.value.stitch,c}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function kd(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function dI(e,t){kd(e.children,t)}function fI(e,t){_I(e,t),kd(e.children,t),xI(e,t)}function hI(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Ie.CHARACTER,chars:e.value,location:Tu(e)};jr(t,gn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function pI(e,t){const n={type:Ie.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Tu(e)};jr(t,gn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function mI(e,t){t.stitches=!0;const n=EI(e);if("children"in e&&"children"in n){const r=Td({type:"root",children:e.children},t.options);n.children=r.children}Ad({type:"comment",value:{stitch:n}},t)}function Ad(e,t){const n=e.value,r={type:Ie.COMMENT,data:n,location:Tu(e)};jr(t,gn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function gI(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Sd(t,gn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(cI,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function bI(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))mI(n,t);else{let r="";throw lI.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function jr(e,t){Sd(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Je.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Sd(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function _I(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Je.PLAINTEXT)return;jr(t,gn(e));const r=t.parser.openElements.current;let u="namespaceURI"in r?r.namespaceURI:rr.html;u===rr.html&&n==="svg"&&(u=rr.svg);const a=Sk({...e,children:[]},{space:u===rr.svg?"svg":"html"}),s={type:Ie.START_TAG,tagName:n,tagID:Or(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Tu(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function xI(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Rk.includes(n)||t.parser.tokenizer.state===Je.PLAINTEXT)return;jr(t,Ea(e));const r={type:Ie.END_TAG,tagName:n,tagID:Or(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Tu(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Je.RCDATA||t.parser.tokenizer.state===Je.RAWTEXT||t.parser.tokenizer.state===Je.SCRIPT_DATA)&&(t.parser.tokenizer.state=Je.DATA)}function CI(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Tu(e){const t=gn(e)||{line:void 0,column:void 0,offset:void 0},n=Ea(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function EI(e){return"children"in e?Sr({...e,children:[]}):Sr(e)}function Ui(e){return function(t,n){return Td(t,{...e,file:n})}}const Vi=()=>{const{shopTerms:e}=g.useStorefrontStore(),{isAntistock:t}=g.useGeneralStore();return!(e!=null&&e.showTermsOfServiceOnProduct)||!(e!=null&&e.termsOfService)?null:i.jsxs("div",{className:Kn.container,children:[i.jsx("div",{className:Kn.icon,children:i.jsx(N.Icon,{name:"FileCloud",fill:"var(--text-secondary)"})}),t?i.jsx("p",{className:Kn.text,id:"md",children:i.jsx("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:Kn.link,children:"Terms Of Service"})}):i.jsx(Na,{remarkPlugins:[Pi],rehypePlugins:[Ui],className:Kn.text,components:{a:({node:n,...r})=>i.jsx("a",{...r,target:"_blank",rel:"noopener noreferrer",className:Kn.link,id:"md"}),p:({node:n,...r})=>i.jsx("p",{...r,className:Kn.text,id:"md"})},children:e==null?void 0:e.termsOfService})]})},yI="_securedBySsl_1ng38_2",TI="_text_1ng38_9",bs={securedBySsl:yI,text:TI},$i=({isAntistock:e})=>i.jsxs("div",{className:bs.securedBySsl,children:[i.jsx("div",{className:bs.iconWrapper,children:i.jsx(N.Icon,{name:"ShieldCheck",fill:"var(--text-secondary)"})}),i.jsx("p",{className:bs.text,id:"md",children:e?"Your data is secured by extended validation SSL certificates (256-bit encryption).":"Your data is secured by extended validation SSL certificates (256-bit encryption). This complies with the strongest payment security standard available today."})]}),kI="_container_152ix_1",AI="_header_152ix_7",SI="_backButton_152ix_13",II="_title_152ix_22",NI="_cards_152ix_28",vI="_card_152ix_28",wI="_selected_152ix_46",DI="_prioritySelected_152ix_50",LI="_price_152ix_51",PI="_description_152ix_61",Wt={container:kI,header:AI,backButton:SI,title:II,cards:NI,card:vI,selected:wI,prioritySelected:DI,price:LI,description:PI},Jc=(e,t,n)=>e+n*t/100,RI=e=>{if(!e)return!0;try{const t=JSON.parse(e);if(t.blocks&&Array.isArray(t.blocks))return!t.blocks.some(n=>n.text?n.text.replace(/[\s\u00A0\u2000-\u200F\u2028-\u202F\u205F-\u206F\u3000\u3164]/g,"").length>0:!1)}catch{return e.replace(/[\s\u00A0\u2000-\u200F\u2028-\u202F\u205F-\u206F\u3000\u3164]/g,"").length===0}return!1},Id=({config:e,totalAmount:t,selected:n,onSelect:r,onBack:u,formatter:a})=>{if(!e)return null;const{priorityReplacement:s,standardReplacement:o}=e,c=!!(s!=null&&s.enabled),l=!!(o!=null&&o.enabled),f=[{key:"PRIORITY",title:(s==null?void 0:s.name)||"Priority Replacement",desc:(s==null?void 0:s.description)||"",price:Jc((s==null?void 0:s.fixedFee)||0,(s==null?void 0:s.feePercentage)||0,t),isPriority:!0,visible:c&&(!l||l)},{key:"STANDARD",title:(o==null?void 0:o.name)||"Standard Replacement",desc:(o==null?void 0:o.description)||"",price:Jc((o==null?void 0:o.fixedFee)||0,(o==null?void 0:o.feePercentage)||0,t),isPriority:!1,visible:c&&l?!0:l},{key:"NONE",title:"No Replacements",desc:i.jsxs(i.Fragment,{children:[i.jsx("p",{children:"• No guaranteed refunds or replacements."}),i.jsx("p",{children:"• No priority support."}),i.jsx("p",{children:"• No dedicated buyer resolution team."})]}),price:0,isPriority:!1,visible:c&&!l}].filter(m=>m.visible);return i.jsxs("div",{className:Wt.container,children:[i.jsxs("div",{className:Wt.header,children:[i.jsx("button",{type:"button",className:Wt.backButton,onClick:u,"aria-label":"Back to payment methods",children:"←"}),i.jsx("h4",{className:Wt.title,children:"Protect Your Checkout"})]}),i.jsx("div",{className:Wt.cards,children:f.map(m=>i.jsxs("div",{className:g.clx(Wt.card,{[Wt.selected]:n===m.key,[Wt.prioritySelected]:n==="PRIORITY"&&m.isPriority}),onClick:()=>r(m.key),role:"button",tabIndex:0,onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&r(m.key)},children:[i.jsx("div",{className:Wt.title,children:m.title}),i.jsx("div",{className:Wt.price,children:a.format(m.price)}),typeof m.desc=="string"?!RI(m.desc)&&i.jsx("div",{className:Wt.description,children:i.jsx(di,{text:m.desc})}):i.jsx("div",{className:Wt.description,children:m.desc})]},m.key))})]})},Nd=({getPossibleGateways:e,setGateway:t,getDiscordSettings:n,cart:r,products:u,submitCart:a,reset:s,setCustomFieldsToCart:o,totalAndDiscount:c,setDiscordSocialConnectId:l,setPaymentMethod:h,isAntistock:f})=>{var pe,Qe;const m=L.useMemo(()=>n(),[]),[p,b]=L.useState([]),{balance:_,setBalance:E}=g.useCustomerDashboardStore(),{token:x}=g.useStorefrontStore(),{general:k}=g.useGeneralStore(),{executeRecaptcha:y}=fu(),{discordInfo:D}=g.useDiscordStore(),{customerEmail:S,setCustomerEmail:I,setUsePriorityReplacement:M,setReplacementConfig:H}=g.useCartStore(),U=D!=null&&D.authorized?D.id:void 0,P=g.useNavigate(),B=L.useMemo(()=>e(),[r.parts]),[O,X]=L.useState(null),[Y,K]=L.useState(!1),[ue,ae]=L.useState(null),se=!!((pe=O==null?void 0:O.priorityReplacement)!=null&&pe.enabled),_e=Y&&se,[C,V]=L.useState(!1),{setIsOpen:te}=g.useModalStore(),{notifications:v,setNotifications:J}=g.useNotificationStore();L.useEffect(()=>{const Ne=Xi(r.parts,u).map(ee=>ee.type===jn.Checkbox?{...ee,value:String(ee.defaultValue)}:ee);b([...Ne])},[]),L.useEffect(()=>{const Ee=Xi(r.parts,u);b(Ne=>{const ee=new Map(Ne.map(ge=>[ge.name,ge]));return Ee.map(ge=>{const mt=ee.get(ge.name);return mt&&mt.value?{...ge,value:mt.value}:ge.type===jn.Checkbox?{...ge,value:String(ge.defaultValue)}:ge})})},[r.parts,u]),L.useEffect(()=>{x&&(async()=>{const Ne=await oa();E(Ne)})()},[x]);function ne(Ee){return Ee&&/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(Ee)}const Q=()=>{const Ee=[];return p.forEach(Ne=>{var ee;Ne.required&&!((ee=Ne.value)!=null&&ee.toString().trim())&&Ee.push({message:`Field "${Ne.name}" is required.`,status:"error",id:g.v4()})}),Ee.length>0?(J([...v,...Ee]),!1):!0},de=async Ee=>{var mt,gt,qt,At;if(Ee.stopPropagation(),r.gateway==="Balance"&&!x){te(!0),V(!0);return}if(!Q())return;const Ne=!!(O&&((mt=O.priorityReplacement)!=null&&mt.enabled));if(Ne&&!_e){K(!0),ue===null&&((gt=O==null?void 0:O.priorityReplacement)!=null&>.enabled)&&(ae("PRIORITY"),M(!0));return}Ne||(qt=O==null?void 0:O.standardReplacement)!=null&&qt.enabled&&!((At=O==null?void 0:O.priorityReplacement)!=null&&At.enabled)&&(ue===null&&ae("STANDARD"),M(!1));const ee=Object.fromEntries(p.map(Ve=>[Ve.name,Ve.value||""]));o({...ee}),U&&m.isEnabled&&l(U);const ge=await y();if(ge){const Ve=await a(ge),j=JSON.parse(localStorage.getItem("orders")||"{}");if(Object.keys(j).length>10){const W=Date.now()-864e5;Object.keys(j).forEach(fe=>{j[fe].createdAt<=W&&delete j[fe]})}"order"in Ve?j[Ve.order.id]={createdAt:Date.now(),fullAccessToken:Ve.order.fullAccessToken}:j[Ve.id]={createdAt:Date.now(),fullAccessToken:Ve.fullAccessToken},localStorage.setItem("orders",JSON.stringify(j)),P(`/orders/${"order"in Ve?Ve.order.id:Ve.id}/${"order"in Ve?Ve.order.fullAccessToken:Ve.fullAccessToken}`),setTimeout(()=>s(),2e3)}};L.useEffect(()=>{const Ee=[...B.availableGateways,...B.requiresSignInGateways];if(!Ee.length)return;let Ne=!1;return(async()=>{try{const{data:ee}=await sl(Ee);if(Ne)return;let ge=null;Array.isArray(ee)||(ee&&ee.replacement?ge=ee.replacement:((ee==null?void 0:ee.priorityReplacement)!==void 0||(ee==null?void 0:ee.standardReplacement)!==void 0)&&(ge={priorityReplacement:ee.priorityReplacement,standardReplacement:ee.standardReplacement})),X(ge),H(ge)}catch{}})(),()=>{Ne=!0}},[B.availableGateways.join(","),B.requiresSignInGateways.join(",")]),L.useEffect(()=>{var ee,ge;if(!O)return;const Ee=!!((ee=O.priorityReplacement)!=null&&ee.enabled),Ne=!!((ge=O.standardReplacement)!=null&&ge.enabled);!Ee&&Ne&&(ae("STANDARD"),M(!1),K(!1))},[O]);const le=Ee=>{ae(Ee),M(Ee==="PRIORITY"?!0:Ee==="STANDARD"?!1:void 0)},ie=L.useMemo(()=>{const Ee=r.parts[0];if(!Ee)return"USD";const Ne=u.find(ge=>ge.id===Ee.productId),ee=Ne==null?void 0:Ne.variants.find(ge=>ge.id===Ee.productVariantId);if(ee!=null&&ee.gateways&&r.gateway){const ge=ee.gateways.find(mt=>mt.name===r.gateway&&mt.overrodePrice);if(ge!=null&&ge.overrodePrice)return ge.overrodePrice.currency}return(ee==null?void 0:ee.price.currency)||"USD"},[r.parts,r.gateway,u]),xe=L.useMemo(()=>new Intl.NumberFormat("en-US",{style:"currency",currency:ie}),[ie]),$e=((Qe=k==null?void 0:k.info)==null?void 0:Qe.customerAccountSettings)??"OPTIONAL",G=$e==="REQUIRED"&&!x,pt=c.totalWithDiscount??c.total,oe=r.gateway==="Balance"&&!!_&&_.amount<pt;return i.jsxs("div",{className:g.clx(ft.checkoutOperational,{[ft.checkoutOperationalAntistock]:f}),children:[i.jsxs("div",{className:`${ft.innerContainer} ${f?ft.innerContainerAntistock:""}`,children:[f&&!_e&&!G?i.jsx("h4",{style:{fontSize:"var(--input-label-size)",color:"var(--text-secondary)",paddingBottom:"12px",fontWeight:"400"},children:"Select Payment Method"}):null,r.parts.length>0&&!_e&&(G?i.jsx("div",{className:ft.loginSection,children:i.jsx(pa,{onSignIn:()=>{}})}):i.jsx(gi,{possibleGateways:B,setGateway:t,setPaymentMethod:h,balance:_,totalAndDiscount:c,onSignInClick:()=>{V(!0),te(!0)},isAntistock:f,hideBalance:$e==="DISABLED"})),_e?i.jsx("div",{style:{marginTop:"12px"},children:i.jsx(Id,{config:O,totalAmount:c.totalWithDiscount??c.total,selected:ue,onSelect:le,onBack:()=>K(!1),formatter:xe})}):null,!_e&&!G&&i.jsx("div",{className:g.clx(ft.paymentMethodsSection,{[ft.antistock]:f,[ft.paymentMethodsSectionAntistock]:f}),children:i.jsx(N.Input,{placeholder:"your@email.com",value:S||"",onChange:Ee=>I(Ee),disabled:!!x,label:"Email Address"})}),!_e&&i.jsx(k0,{customFields:p,setCustomFields:b}),m.isEnabled&&!_e&&i.jsxs("div",{className:ft.socialConnectSection,children:[i.jsx("p",{className:ft.socialConnectLabel,id:"md",children:"Social Connect"}),i.jsx("div",{className:ft.socialConnectContent,children:i.jsx(S0,{customerEmail:S||""})})]}),G?null:i.jsxs("div",{className:`${ft.continueButton} ${f?ft.continueButtonAntistock:""}`,children:[i.jsx(N.Button,{onClick:de,disabled:G||!r.gateway||!ne(S||"")||m.isRequired&&!(D!=null&&D.authorized)||oe,className:ft.button,children:"Continue to Checkout"}),_e?i.jsxs("div",{style:{marginTop:"1rem",display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx("div",{className:ft.iconWrapper,children:i.jsx(N.Icon,{name:"Shield",fill:"var(--text-secondary)"})}),i.jsxs("p",{style:{color:"var(--text-secondary)",fontSize:"14px"},children:["Protected by ",(k==null?void 0:k.info.name)||"Shop"," Buyer Protection"]})]}):i.jsxs(i.Fragment,{children:[i.jsx(Vi,{}),i.jsx($i,{isAntistock:f})]})]}),!_e&&!G&&i.jsx(qn,{className:`${ft.checkoutFooter} ${f?ft.checkoutFooterAntistock:""}`})]}),C&&i.jsx(N.Modal,{close:()=>V(!1),children:i.jsx(I0,{setIsOpen:V})})]})},MI="_bottomSheet_1a6cu_1",OI="_title_1a6cu_8",jI="_contentTitle_1a6cu_12",FI="_contentText_1a6cu_16",BI="_discordMessageTitle_1a6cu_20",HI="_content_1a6cu_12",UI="_section_1a6cu_27",VI="_copyButton_1a6cu_32",$I="_scrollableBox_1a6cu_37",zI="_scrollableBoxAntistock_1a6cu_47",qI="_discordMessage_1a6cu_20",ZI="_link_1a6cu_61",WI="_buttonGroup_1a6cu_68",YI="_buttonWrapper_1a6cu_80",GI="_modal_1a6cu_84",XI="_modalAntistock_1a6cu_91",KI="_header_1a6cu_96",QI="_copyButtonAntistock_1a6cu_104",at={bottomSheet:MI,title:OI,contentTitle:jI,contentText:FI,discordMessageTitle:BI,content:HI,section:UI,copyButton:VI,scrollableBox:$I,scrollableBoxAntistock:zI,discordMessage:qI,link:ZI,buttonGroup:WI,buttonWrapper:YI,modal:GI,modalAntistock:XI,header:KI,copyButtonAntistock:QI},vd=({setIsOpen:e,deliveryConfiguration:t})=>{const n=Zn(),r=t.type===Pe.Discord,{setIsOpen:u}=g.useModalStore(),{isAntistock:a}=g.useGeneralStore(),s=t.type===Pe.Serial?t.deliveryItems.map(c=>c.serialKey).join(`
|
|
115
|
-
`):t.deliveryItems[0].textData,o=()=>{u(!1),a?e(!1):setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{className:g.clx(at.modal,{[at.modalAntistock]:a}),onClick:c=>c.stopPropagation(),children:[i.jsxs("div",{className:at.header,children:[i.jsx("h3",{id:"h3",className:at.title,children:a?"View Content":"Thank you for the purchase!"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:o,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:at.bottomSheet,children:[i.jsx("div",{className:at.content,children:r?i.jsx("div",{className:at.discordMessage,children:i.jsx("p",{className:at.discordMessageTitle,id:"md",children:"Discord role has been granted"})}):i.jsxs("div",{children:[i.jsxs("div",{className:at.section,children:[!a&&i.jsx("p",{className:at.contentTitle,id:"md",children:"Content"}),!a&&i.jsxs(N.Button,{className:at.copyButton,type:"Secondary",onClick:()=>n(s),children:[i.jsx(N.Icon,{name:"Copy"}),"Copy to Clipboard"]})]}),i.jsx("div",{className:g.clx(at.scrollableBox,{[at.scrollableBoxAntistock]:a}),children:i.jsx("p",{className:at.contentText,id:"md",children:a?i.jsx(di,{text:s}):i.jsx(Na,{remarkPlugins:[Pi],rehypePlugins:[Ui],components:{a:({node:c,...l})=>i.jsx("a",{...l,target:"_blank",rel:"noopener noreferrer",className:at.link})},children:s})})})]})}),a&&i.jsxs(N.Button,{className:at.copyButtonAntistock,type:"Secondary",onClick:()=>n(s),style:{display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"Copy"}),"Copy All"]}),!a&&i.jsx("div",{className:at.buttonGroup,children:i.jsx("div",{className:at.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:o,children:"Close"})})})]})]})},JI="_mt1_1l62z_1",eN="_notifyBlock_1l62z_13",tN="_notifyHeader_1l62z_19",nN="_notifyContent_1l62z_25",rN="_buttonBlock_1l62z_30",uN="_imageBlock_1l62z_34",aN="_imageContainer_1l62z_42",sN="_sectionBlock_1l62z_54",iN="_sectionTitle_1l62z_61",oN="_sectionSubtitle_1l62z_64",cN="_inputContainer_1l62z_69",rn={mt1:JI,notifyBlock:eN,notifyHeader:tN,notifyContent:nN,buttonBlock:rN,imageBlock:uN,imageContainer:aN,sectionBlock:sN,sectionTitle:iN,sectionSubtitle:oN,inputContainer:cN},lN=({props:e})=>{const t=Zn();return i.jsx("div",{className:rn.mt1,children:i.jsxs("div",{className:rn.inputContainer,children:[i.jsx(N.Input,{value:e.text,disabled:!0,onChange:()=>{}}),e.shownCopyButton&&i.jsx(N.Button,{type:"Secondary",onClick:()=>t(e.text),children:i.jsx(N.Icon,{name:"Copy"})})]})})},dN=({props:e})=>i.jsx(N.Button,{className:rn.buttonBlock,onClick:()=>window.open(e.url,"_blank","noopener"),children:e.text}),fN=({props:e})=>i.jsx("div",{className:rn.imageBlock,children:i.jsx("div",{className:rn.imageContainer,children:i.jsx("img",{src:e.src,alt:""})})}),hN=({props:e})=>i.jsxs("div",{className:rn.notifyBlock,children:[i.jsxs("div",{className:rn.notifyHeader,children:[i.jsx(N.Icon,{name:"Info",width:24,height:24,fill:"var(--text-secondary)"}),i.jsx("p",{children:e.heading})]}),i.jsx("p",{className:rn.notifyContent,children:e.content})]}),pN=({props:e})=>{var t;return i.jsxs("div",{className:rn.sectionBlock,children:[i.jsx("p",{className:rn.sectionTitle,children:e.title}),i.jsx("span",{className:rn.sectionSubtitle,children:e.subTitle}),(t=e.children)==null?void 0:t.map((n,r)=>i.jsx(ra,{block:n},r))]})},ra=({block:e})=>{switch(e.type){case"Section":return i.jsx(pN,{...e});case"ReadOnlyTextInput":return i.jsx(lN,{...e});case"Notify":return i.jsx(hN,{...e});case"Button":return i.jsx(dN,{...e});case"Image":return i.jsx(fN,{...e});default:return null}},mN="_chargeStatusBlock_12swd_4",gN="_isAntistock_12swd_13",bN="_chargeStatusIcon_12swd_19",_N="_chargeStatusTitle_12swd_27",xN="_chargeStatusDescription_12swd_33",CN="_pickUpButton_12swd_39",EN="_actionButtons_12swd_49",yN="_actionButton_12swd_49",Lt={chargeStatusBlock:mN,isAntistock:gN,chargeStatusIcon:bN,chargeStatusTitle:_N,chargeStatusDescription:xN,pickUpButton:CN,actionButtons:EN,actionButton:yN},nr={[ke.Paid]:"Payment Successful",[ke.Pending]:"Payment Pending",[ke.Expired]:"Payment Expired",[ke.Cancelled]:"Payment Cancelled",[ke.NotPaid]:"Payment Failed",[ke.Refunded]:"Payment Refunded"},wd={[ke.Paid]:"Your payment has successfully been processed. Tap on the button below to be redirected back to our website.",[ke.Pending]:"Your payment is currently pending. We recommend checking back shortly for confirmation.",[ke.Expired]:"Your payment has expired due to the payment not being sent in time. If you already sent the payment, please contact us below.",[ke.Cancelled]:"You canceled the warrant. If there are any problems, please contact support",[ke.NotPaid]:"Your payment has expired due to the payment not being sent in time. If you already sent the payment, please contact us below.",[ke.Refunded]:"Your payment has been refunded. Please check your payment method for confirmation."},Dd=()=>({[ke.Paid]:i.jsx("div",{className:`${Lt.chargeStatusIcon}`,children:i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"})}),[ke.Pending]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"})}),[ke.Expired]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"})}),[ke.Cancelled]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"})}),[ke.NotPaid]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"})}),[ke.Refunded]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-warning)"})})}),Ld=({charge:e})=>{var p,b;const t=e.status,n=g.useNavigate(),{shopDomain:r}=g.useStorefrontStore(),{isAntistock:u,general:a}=g.useGeneralStore(),s=L.useRef(),o=!!((p=a==null?void 0:a.info)!=null&&p.disableSupport),c=(b=a==null?void 0:a.info)==null?void 0:b.thirdPartySupportUrl,l=!(o&&!c),[h,f]=g.useSearchParams(),m=()=>{var E,x;if(!((E=e.order)!=null&&E.id))return;const _=h.get("redirectRoute");if((e==null?void 0:e.status)===ke.Paid&&e.redirectUrl&&!s.current){const y=JSON.parse(localStorage.getItem("orders")||"{}")[((x=e==null?void 0:e.order)==null?void 0:x.id)||""];y?window.open(y.fullAccessToken?`${e.redirectUrl}/${y.fullAccessToken}`:`${e.redirectUrl}`,"_self"):window.open(e.redirectUrl,"_self")}(e==null?void 0:e.status)===ke.Paid&&s.current&&n(s.current,{replace:!0}),_&&s&&(s.current=_,h.delete("redirectRoute"),f(h))};return i.jsxs("div",{className:g.clx(Lt.chargeStatusBlock,{[Lt.isAntistock]:u}),children:[Dd()[t],i.jsx("h2",{className:Lt.chargeStatusTitle,children:nr[t]}),i.jsx("p",{className:Lt.chargeStatusDescription,children:wd[t]}),t===ke.Paid?i.jsx("div",{className:Lt.pickUpButton,style:u?{justifyContent:"flex-start"}:void 0,children:i.jsxs(N.Button,{onClick:m,style:{width:"100%",maxWidth:"250px",display:"flex",alignItems:"center",gap:"5px"},type:"Secondary",children:[i.jsx(N.Icon,{name:"ArrowLineUpRight"}),u?"View Order":"Pick up Order"]})}):i.jsxs("div",{className:Lt.actionButtons,children:[i.jsx("div",{className:Lt.actionButton,children:i.jsxs(N.Button,{type:"Secondary",onClick:()=>window.open(`https://${r}`),style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"ArrowLineUpRight"}),"Visit Website"]})}),l&&i.jsx("div",{className:Lt.actionButton,children:i.jsxs(N.Button,{type:"Secondary",style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},onClick:()=>{o&&c?window.open(c):u?window.open(`https://${r}/support`):n("/contact")},children:[i.jsx(N.Icon,{name:"ChatsTeardrop"}),"Contact Support"]})})]})]})},TN="_bottomSheet_1x4sq_1",kN="_content_1x4sq_8",AN="_agreementList_1x4sq_11",SN="_agreementItem_1x4sq_16",IN="_warning_1x4sq_23",NN="_buttonGroup_1x4sq_31",vN="_buttonWrapper_1x4sq_41",wN="_fullWidthButton_1x4sq_44",DN="_modal_1x4sq_48",LN="_header_1x4sq_55",Yt={bottomSheet:TN,content:kN,agreementList:AN,agreementItem:SN,warning:IN,buttonGroup:NN,buttonWrapper:vN,fullWidthButton:wN,modal:DN,header:LN},Pd=({setIsOpen:e,price:t})=>{const[n,r]=L.useState({agreeToSendAsFF:!1,agreeToSend:!1,agreeToNotAddNote:!1}),{setIsOpen:u}=g.useModalStore(),a=()=>{u(!1),setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{className:Yt.modal,onClick:s=>s.stopPropagation(),children:[i.jsxs("div",{className:Yt.header,children:[i.jsx("h3",{id:"h3",children:"Note"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:a,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Yt.bottomSheet,children:[i.jsxs("div",{className:Yt.content,children:[i.jsxs("div",{className:Yt.agreementList,children:[i.jsxs("label",{className:Yt.agreementItem,children:[i.jsx(N.CheckboxSettings,{value:n.agreeToSendAsFF,onChange:s=>r({...n,agreeToSendAsFF:s})}),i.jsx("p",{children:"I agree to send the payment as friends & family"})]}),i.jsxs("label",{className:Yt.agreementItem,children:[i.jsx(N.CheckboxSettings,{value:n.agreeToSend,onChange:s=>r({...n,agreeToSend:s})}),i.jsxs("p",{children:["I agree to send the payment of ",g.formatPrice(t)," ",t.currency]})]}),i.jsxs("label",{className:Yt.agreementItem,children:[i.jsx(N.CheckboxSettings,{value:n.agreeToNotAddNote,onChange:s=>r({...n,agreeToNotAddNote:s})}),i.jsx("p",{children:"I agree to not add a note to this payment"})]})]}),i.jsx("div",{className:Yt.warning,children:i.jsxs("p",{children:["Please note that you are required to send the exact payment of ",g.formatPrice(t)," ",t.currency,". If you were to send any amount over or below, your funds will be lost."]})})]}),i.jsxs("div",{className:Yt.buttonGroup,children:[i.jsx("div",{className:Yt.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",children:i.jsx("span",{className:"text-[var(--text-secondary)]",children:"Cancel"})})}),i.jsx("div",{className:Yt.fullWidthButton,children:i.jsx(N.Button,{type:"Primary",disabled:!(n.agreeToSendAsFF&&n.agreeToNotAddNote&&n.agreeToSend),onClick:a,children:"Continue to Payment"})})]})]})]})},PN="_chargeItemsContainer_vynct_5",RN="_chargeItemsInner_vynct_18",MN="_productsContainer_vynct_25",ON="_antistockLayout_vynct_40",jN="_mainContentAntistock_vynct_53",FN="_desktopTrackPayment_vynct_64",BN="_desktopFooter_vynct_73",HN="_footerContainerAntistock_vynct_94",UN="_chargeHeader_vynct_107",VN="_chargeTitle_vynct_115",$N="_chargeDescription_vynct_121",zN="_copyButton_vynct_127",qN="_productsList_vynct_139",ZN="_footerContainer_vynct_94",It={chargeItemsContainer:PN,chargeItemsInner:RN,productsContainer:MN,antistockLayout:ON,mainContentAntistock:jN,desktopTrackPayment:FN,desktopFooter:BN,footerContainerAntistock:HN,chargeHeader:UN,chargeTitle:VN,chargeDescription:$N,copyButton:zN,productsList:qN,footerContainer:ZN},Rd=({charge:e})=>{var s;const t=Zn(),{isAntistock:n}=g.useGeneralStore(),r=(e==null?void 0:e.price.currency)||"USD",u=new Intl.NumberFormat("en-US",{style:"currency",currency:r}),a=L.useMemo(()=>{var o;return((o=e==null?void 0:e.order)==null?void 0:o.partOrders.map(c=>{var l,h,f,m;return{id:(c==null?void 0:c.id)||0,image:c.productWithVariant.image,name:(()=>{var _,E;const p=((_=c.productWithVariant)==null?void 0:_.name)||"",b=((E=c.productWithVariant)==null?void 0:E.variantName)||"";return!p&&!b?"":!b||p===b?p:p?`${p} (${b})`:b})(),description:"",price:{quantity:c.quantity,amount:((l=c.productWithVariant)==null?void 0:l.price.amount)||0,currency:(h=c.productWithVariant)==null?void 0:h.price.currency},subscriptionSettings:(f=e.order)!=null&&f.subscriptionOrderId?(m=c.productWithVariant)==null?void 0:m.subscriptionSettings:null}}))||[]},[e]);return i.jsx("div",{className:It.chargeItemsContainer,children:i.jsxs("div",{className:It.chargeItemsInner,children:[i.jsx(_a,{expiresAt:e==null?void 0:e.expiresAt}),i.jsxs("div",{className:`${It.productsContainer} ${n?It.antistockLayout:""}`,children:[(e==null?void 0:e.name)&&i.jsxs("header",{className:It.chargeHeader,children:[i.jsxs("div",{children:[i.jsx("h1",{className:It.chargeTitle,id:"h5",children:e.name}),e.description&&i.jsx("p",{className:It.chargeDescription,id:"md",children:e.description})]}),((s=e.order)==null?void 0:s.id)&&!n&&i.jsxs(N.Button,{type:"Secondary",className:It.copyButton,onClick:()=>{var o;return t(((o=e.order)==null?void 0:o.id)||"")},children:[i.jsx(N.Icon,{name:"Copy"}),"Copy Order ID"]})]}),i.jsxs("div",{className:n?It.mainContentAntistock:"",style:n?void 0:{flex:1},children:[!!a.length&&i.jsx("div",{className:It.productsList,children:a.map(o=>i.jsx(xa,{product:o},o.id))}),i.jsx(wr,{formatter:u,coupon:null,total:(e==null?void 0:e.price.amount)||0,discount:0,totalWithDiscount:(e==null?void 0:e.price.amount)||0,isShowSubtotal:!1}),n&&e&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:It.desktopTrackPayment,children:i.jsx(Pa,{timeline:e.timeline})}),i.jsx(qn,{className:It.desktopFooter})]})]}),!n&&i.jsx(qn,{className:`${It.footerContainer} ${n?It.footerContainerAntistock:""}`})]})]})})},WN="_checkoutOrderMainData_hqf60_1",YN="_orderDetailRow_hqf60_6",GN="_chargeIdRow_hqf60_16",XN="_detailLabel_hqf60_25",KN="_detailValue_hqf60_29",QN="_chargeIdContainer_hqf60_33",JN="_chargeId_hqf60_16",ev="_copyIcon_hqf60_51",et={checkoutOrderMainData:WN,orderDetailRow:YN,chargeIdRow:GN,detailLabel:XN,detailValue:KN,chargeIdContainer:QN,chargeId:JN,copyIcon:ev},zi=({lastUpdate:e,invoiceId:t,email:n,paymentType:r,orderId:u})=>{const a=Zn(),[s,o]=L.useState(null),c=s==null?void 0:s.find(h=>h.name===r);L.useEffect(()=>{s||(async()=>{if(!r)return;const m=await hu([r]);o(m)})()},[r,s]);const l=h=>{const f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],m=h.getDate().toString().padStart(2,"0"),p=f[h.getMonth()],b=h.getFullYear(),_=h.getHours(),E=h.getMinutes().toString().padStart(2,"0"),x=h.getSeconds().toString().padStart(2,"0"),k=_>=12?"PM":"AM",y=(_%12||12).toString().padStart(2,"0");return`${p} ${m}, ${b} at ${y}:${E}:${x} ${k}`};return i.jsxs("div",{className:et.checkoutOrderMainData,children:[i.jsxs("div",{className:et.orderDetailRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Last Updated"}),i.jsx("p",{className:et.detailValue,id:"md",children:l(new Date(e))})]}),r&&i.jsxs("div",{className:et.orderDetailRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Payment Type"}),i.jsx("p",{className:et.detailValue,id:"md",children:c==null?void 0:c.displayName})]}),i.jsxs("div",{className:et.orderDetailRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Email"}),i.jsx("p",{className:et.detailValue,id:"md",children:n})]}),t&&i.jsxs("div",{className:et.chargeIdRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Charge ID"}),i.jsxs("div",{className:et.chargeIdContainer,children:[i.jsx("p",{className:et.chargeId,id:"md",children:t}),i.jsx("div",{className:et.copyIcon,onClick:()=>a(t),children:i.jsx(N.Icon,{name:"Copy"})})]})]}),u&&i.jsxs("div",{className:et.chargeIdRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Order ID"}),i.jsxs("div",{className:et.chargeIdContainer,children:[i.jsx("p",{className:et.chargeId,id:"md",children:u}),i.jsx("div",{className:et.copyIcon,onClick:()=>a(u),children:i.jsx(N.Icon,{name:"Copy"})})]})]})]})},tv="_bottomSheet_1yai1_1",nv="_formContainer_1yai1_8",rv="_error_1yai1_14",uv="_buttonGroup_1yai1_18",av="_buttonWrapper_1yai1_28",sv="_fullWidthButton_1yai1_31",iv="_modal_1yai1_41",ov="_header_1yai1_48",Ln={bottomSheet:tv,formContainer:nv,error:rv,buttonGroup:uv,buttonWrapper:av,fullWidthButton:sv,modal:iv,header:ov},Md=({chargeId:e,setIsOpen:t})=>{const[n,r]=L.useState(""),[u,a]=L.useState(""),{setIsOpen:s}=g.useModalStore(),o=h=>{try{return new URL(h),!0}catch{return!1}},c=async h=>{if(h.preventDefault(),!n){a("The link field cannot be empty.");return}if(!o(n)){a("Please enter a valid URL");return}await s2({url:n},e)&&(alert("CashApp successfully verified"),t(!1))},l=()=>{s(!1),setTimeout(()=>{t(!1)},300)};return i.jsxs("div",{className:Ln.modal,onClick:h=>h.stopPropagation(),children:[i.jsxs("div",{className:Ln.header,children:[i.jsx("h3",{id:"h3",children:"CashApp Verify"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:l,fill:"var(--text-primary)"})]}),i.jsx("form",{onSubmit:c,children:i.jsxs("div",{className:Ln.bottomSheet,children:[i.jsx("div",{className:Ln.formContainer,children:i.jsxs("div",{children:[i.jsx(N.Input,{value:n,onChange:h=>{r(h),a("")},label:"Enter Cashapp Link",placeholder:"https://cash.app/payments/0000"}),u&&i.jsx("p",{className:Ln.error,children:u})]})}),i.jsxs("div",{className:Ln.buttonGroup,children:[i.jsx("div",{className:Ln.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:l,children:"Cancel"})}),i.jsx("div",{className:Ln.fullWidthButton,children:i.jsx(N.Button,{type:"Primary",children:"Verify"})})]})]})})]})},cv="_trackPaymentContainer_fk3b6_1",lv="_trackPaymentBox_fk3b6_5",dv="_trackPaymentBoxActive_fk3b6_18",fv="_trackPaymentHeader_fk3b6_23",hv="_trackPaymentTitle_fk3b6_27",pv="_trackPaymentTimeline_fk3b6_33",mv="_trackPaymentItem_fk3b6_42",gv="_itemHeader_fk3b6_48",bv="_itemDate_fk3b6_55",_v="_itemMessage_fk3b6_59",xv="_trackPaymentToggle_fk3b6_64",Cv="_trackPaymentToggleContent_fk3b6_75",Ev="_trackPaymentToggleText_fk3b6_81",yv="_antistock_fk3b6_88",yt={trackPaymentContainer:cv,trackPaymentBox:lv,trackPaymentBoxActive:dv,trackPaymentHeader:fv,trackPaymentTitle:hv,trackPaymentTimeline:pv,trackPaymentItem:mv,itemHeader:gv,itemDate:bv,itemMessage:_v,trackPaymentToggle:xv,trackPaymentToggleContent:Cv,trackPaymentToggleText:Ev,antistock:yv},el=(e,t)=>{const n=e.getDate().toString().padStart(2,"0"),r=(e.getMonth()+1).toString().padStart(2,"0"),u=e.getFullYear(),a=e.getHours(),s=e.getMinutes().toString().padStart(2,"0"),o=e.getSeconds().toString().padStart(2,"0"),c=a>=12?"PM":"AM",l=(a%12||12).toString().padStart(2,"0");return t==="dd.MM.yyyy"?`${n}.${r}.${u}`:t==="hh:mm:ss aa"?`${l}:${s}:${o} ${c}`:""},Tv={[ke.Paid]:{displayName:nr[ke.Paid],displayMessage:"The invoice has been completed and the product has been delivered.",type:"success"},[ke.Pending]:{displayName:nr[ke.Pending],displayMessage:"The invoice has been created and we are now waiting to receive the payment.",type:"warning"},[ke.Expired]:{displayName:nr[ke.Expired],displayMessage:"Your payment has expired due to the payment not being sent in time.",type:"error"},[ke.Cancelled]:{displayName:nr[ke.Cancelled],displayMessage:"The order has been canceled. The payment was not sent within the time limit.",type:"error"},[ke.NotPaid]:{displayName:"New",displayMessage:"The charge has been created and is awaiting payment.",type:"success"},[ke.Refunded]:{displayName:nr[ke.Refunded],displayMessage:"Your order was refunded. Please check your payment method for confirmation.",type:"warning"}},kv=({date:e,chargeStatus:t})=>(console.log(t),i.jsxs("div",{className:yt.trackPaymentItem,children:[i.jsxs("div",{className:yt.itemHeader,children:[i.jsx("p",{className:yt.itemDate,id:"md-bold",children:el(new Date(e),"dd.MM.yyyy")}),i.jsx("p",{className:yt.itemTime,id:"md",children:el(new Date(e),"hh:mm:ss aa")})]}),i.jsx("p",{className:yt.itemMessage,id:"md",children:Tv[t].displayMessage})]})),Pa=({timeline:e,className:t})=>{const[n,r]=L.useState(!1),{isAntistock:u}=g.useGeneralStore();return i.jsxs("div",{className:g.clx(yt.trackPaymentContainer,t,{[yt.antistock]:u}),children:[i.jsxs("div",{className:`${yt.trackPaymentBox} ${n?yt.trackPaymentBoxActive:""}`,style:u?{border:"1px solid var(--border-secondary)"}:void 0,children:[i.jsx("header",{className:yt.trackPaymentHeader,children:i.jsx("h2",{className:yt.trackPaymentTitle,id:"h4",children:"Track Payment"})}),i.jsx("div",{className:yt.trackPaymentTimeline,children:Object.keys(e).map(a=>i.jsx(kv,{date:e[a],chargeStatus:a},a))})]}),i.jsxs("div",{className:yt.trackPaymentToggle,onClick:()=>r(!n),style:u?{padding:"1.25rem",border:"1px solid var(--border-secondary)",borderRadius:"var(--border-radius)"}:void 0,children:[i.jsxs("div",{className:yt.trackPaymentToggleContent,children:[u?null:i.jsx(N.Icon,{name:"MagnifyingGlass",fill:"var(--text-secondary)"}),i.jsx("p",{className:yt.trackPaymentToggleText,id:"h5",children:"Track Payment"})]}),i.jsx(N.Icon,{name:"CaretRight",fill:"var(--text-primary)",width:16,height:16})]})]})},Av="_dateTime_1dnnn_11",Sv="_tableItem_1dnnn_25",Iv="_status_1dnnn_29",Nv="_statusInProgress_1dnnn_38",vv="_statusText_1dnnn_42",wv="_statusIcon_1dnnn_46",Dv="_statusInProgressText_1dnnn_52",Lv="_statusInProgressIcon_1dnnn_57",Pv="_message_1dnnn_63",Tt={dateTime:Av,tableItem:Sv,status:Iv,statusInProgress:Nv,statusText:vv,statusIcon:wv,statusInProgressText:Dv,statusInProgressIcon:Lv,message:Pv},Od=({item:e})=>{const[t,n]=g.extractDateAndTime(e.createdAt),r=g.useNavigate(),a=(s=>s.length>30?s.slice(0,27)+"...":s)(e.latestMessage);return i.jsxs(L.Fragment,{children:[i.jsx(ot,{className:Tt.tableItem,onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsxs("span",{id:"md",children:["#",e.id]})}),i.jsx(ot,{className:g.clx(Tt.message,Tt.tableItem),onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsx("span",{id:"md",children:a})}),i.jsx(ot,{className:Tt.tableItem,onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsxs("div",{children:[i.jsx("div",{id:"md",children:t}),i.jsx("div",{className:Tt.dateTime,id:"md",children:n})]})}),i.jsx(ot,{className:Tt.tableItem,onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsx(Rv,{status:e.status})})]},e.id)},Rv=({status:e})=>i.jsxs("div",{className:g.clx(Tt.status,{[Tt.statusClosed]:e==="CLOSED",[Tt.statusInProgress]:e!=="CLOSED"}),children:[i.jsx("div",{className:g.clx(Tt.statusIcon,{[Tt.statusInProgressIcon]:e!=="CLOSED"}),children:e==="CLOSED"?i.jsx(N.Icon,{name:"CheckCircle",className:Tt.statusIcon}):i.jsx(N.Icon,{name:"Clock",className:Tt.statusInProgressIcon})}),i.jsx("div",{className:g.clx(Tt.statusText,{[Tt.statusInProgressText]:e!=="CLOSED"}),id:"md",children:e==="CLOSED"?"Closed":"In Progress"})]}),Mv="_tableContainer_1eytq_1",Ov="_table_1eytq_1",jv="_productInfo_1eytq_19",Fv="_productImage_1eytq_26",Bv="_productName_1eytq_35",Hv="_expirationDate_1eytq_46",Uv="_overflowItem_1eytq_51",Vv="_gatewayContainer_1eytq_57",$v="_gatewayImage_1eytq_62",zv="_dateTime_1eytq_67",qv="_tableLoader_1eytq_72",Zv="_tableItem_1eytq_81",ht={tableContainer:Mv,table:Ov,productInfo:jv,productImage:Fv,productName:Bv,expirationDate:Hv,overflowItem:Uv,gatewayContainer:Vv,gatewayImage:$v,dateTime:zv,tableLoader:qv,tableItem:Zv},Wv="_badge_1oac8_1",Yv="_active_1oac8_12",Gv="_awaitingPayment_1oac8_17",Xv="_cancelled_1oac8_22",Kv="_changedGateway_1oac8_27",Qv="_expired_1oac8_32",Jv="_rial_1oac8_37",ew="_pastDue_1oac8_42",tw="_replaced_1oac8_47",An={badge:Wv,active:Yv,awaitingPayment:Gv,cancelled:Xv,changedGateway:Kv,expired:Qv,rial:Jv,pastDue:ew,replaced:tw},nw=()=>({[kn.ACTIVE]:{icon:i.jsx(N.Icon,{name:"CheckCircle"}),title:"Active",className:An.active},[kn.AWAITING_PAYMENT]:{icon:i.jsx(N.Icon,{name:"Clock"}),title:"Awaiting Payment",className:An.awaitingPayment},[kn.CANCELLED]:{icon:i.jsx(N.Icon,{name:"XCircle"}),title:"Cancelled",className:An.cancelled},[kn.CHANGED_GATEWAY]:{icon:i.jsx(N.Icon,{name:"Warning"}),title:"Upgraded",className:An.changedGateway},[kn.EXPIRED]:{icon:i.jsx(N.Icon,{name:"XCircle"}),title:"Expired",className:An.expired},[kn.RIAL]:{icon:i.jsx(N.Icon,{name:"Clock"}),title:"Active",className:An.rial},[kn.PAST_DUE]:{icon:i.jsx(N.Icon,{name:"Clock"}),title:"Trial",className:An.pastDue},[kn.REPLACED]:{icon:i.jsx(N.Icon,{name:"Warning"}),title:"Replaced",className:An.replaced}}),qi=({status:e})=>{const t=nw()[e];return i.jsxs("div",{className:`${An.badge} ${t.className}`,children:[t.icon,i.jsx("p",{id:"md",children:t.title})]})},rw=(e,t)=>{const n=t.find(r=>r.name===e);return n?i.jsxs("div",{className:ht.gatewayContainer,children:[i.jsx("img",{alt:n.displayName,src:g.convertCfImageIdToUrl(n.logoCfImageId,"100"),className:ht.gatewayImage}),i.jsx("div",{children:n.displayName})]}):null},uw=({item:e,gatewaysDetail:t})=>{const[n,r]=g.extractDateAndTime(e.createdAt),[u]=g.extractDateAndTime(e.activeTo||""),a=Zn();return i.jsxs(L.Fragment,{children:[i.jsx(ot,{children:i.jsxs("div",{className:ht.productInfo,children:[i.jsx("div",{className:ht.productImage,children:i.jsx(N.Icon,{name:"Image",width:20,height:20,fill:"var(--text-secondary)"})}),i.jsxs("div",{children:[i.jsx(g.NavLink,{to:`/subscriptions/${e.id}/${e.accessToken}`,className:ht.productName,id:"md",children:e.productName}),i.jsx("p",{className:ht.expirationDate,children:e.activeTo&&`expires at ${u}`})]})]})}),i.jsx(ot,{className:ht.overflowItem,onClick:()=>a(e.id),children:e.id}),i.jsx(ot,{children:i.jsx(qi,{status:e.status})}),i.jsx(ot,{children:g.formatPrice(e.price)}),i.jsx(ot,{children:rw(e.gatewayName,t)}),i.jsx(ot,{children:i.jsxs("div",{children:[i.jsx("div",{id:"md",children:n}),i.jsx("div",{className:ht.dateTime,id:"md",children:r})]})})]},e.id)},jd=({subscriptions:e,gatewaysDetail:t,totalCount:n,page:r,setPage:u})=>{const s=!(!(e!=null&&e.length)||!t);return i.jsxs("div",{className:ht.tableContainer,children:[i.jsxs(ba,{className:ht.table,children:[i.jsx(Pt,{className:ht.tableItem,children:"Product name"}),i.jsx(Pt,{className:ht.tableItem,children:"ID"}),i.jsx(Pt,{className:ht.tableItem,children:"Status"}),i.jsx(Pt,{className:ht.tableItem,children:"Value"}),i.jsx(Pt,{className:ht.tableItem,children:"Payment"}),i.jsx(Pt,{className:ht.tableItem,children:"Date"}),s&&(e==null?void 0:e.map(o=>i.jsx(uw,{item:o,gatewaysDetail:t},o.id)))]}),!s&&i.jsx("div",{className:ht.tableLoader,children:i.jsx(N.Loader,{})}),s&&i.jsx(bu,{currentPage:r,totalCount:n,onPageChange:u})]})},aw="_pageLoading_1rj3k_2",sw="_title_1rj3k_11",iw="_description_1rj3k_17",_s={pageLoading:aw,title:sw,description:iw},ow=({description:e,title:t})=>i.jsxs("div",{className:_s.pageLoading,children:[i.jsx("div",{children:i.jsx(N.Loader,{})}),i.jsx("h1",{className:_s.title,children:t}),i.jsx("p",{className:_s.description,children:e})]}),cw="_container_1opbn_1",lw="_productDetails_1opbn_8",dw="_imageContainer_1opbn_14",fw="_image_1opbn_14",hw="_textContainer_1opbn_32",pw="_header_1opbn_40",mw="_title_1opbn_46",gw="_price_1opbn_53",bw="_badgeContainer_1opbn_57",_w="_description_1opbn_61",sn={container:cw,productDetails:lw,imageContainer:dw,image:fw,textContainer:hw,header:pw,title:mw,price:gw,badgeContainer:bw,description:_w},Fd=({subscription:e})=>i.jsxs("div",{className:sn.container,children:[i.jsxs("div",{className:sn.productDetails,children:[i.jsx("div",{className:sn.imageContainer,children:e!=null&&e.image?i.jsx("img",{className:sn.image,src:g.convertCfImageIdToUrl(e.image.cfId),alt:e==null?void 0:e.name}):i.jsx(N.Icon,{name:"Image"})}),i.jsxs("div",{className:sn.textContainer,children:[i.jsx("div",{className:sn.header,children:i.jsx("h2",{className:sn.title,children:e.name})}),i.jsxs("p",{className:sn.price,children:[g.formatPrice(e.price)," / ",e.recurringInterval]})]}),i.jsx("div",{className:sn.badgeContainer,children:i.jsx(qi,{status:e.status})})]}),e.description&&i.jsx(Na,{className:sn.description,children:e.description})]}),xw="_card_69liy_1",Cw="_price_69liy_10",Ew="_interval_69liy_17",yw="_name_69liy_22",Tw="_description_69liy_28",kw="_currentPlan_69liy_32",Aw="_selectButton_69liy_45",Sw="_progressSection_69liy_50",Iw="_progressLabel_69liy_54",Nw="_bottomSheet_69liy_60",vw="_title_69liy_69",ww="_typeSelector_69liy_80",Dw="_typeOption_69liy_90",Lw="_active_69liy_100",Pw="_saveTag_69liy_108",Rw="_planSelector_69liy_117",Mw="_modal_69liy_127",Ow="_inactive_69liy_148",jw="_notMounted_69liy_151",Fw="_closeButton_69liy_157",Xe={card:xw,price:Cw,interval:Ew,name:yw,description:Tw,currentPlan:kw,selectButton:Aw,progressSection:Sw,progressLabel:Iw,bottomSheet:Nw,title:vw,typeSelector:ww,typeOption:Dw,active:Lw,saveTag:Pw,planSelector:Rw,modal:Mw,inactive:Ow,notMounted:jw,closeButton:Fw},Bw=({variant:e,onSelect:t,isCurrent:n})=>{const r=e.subscriptionSettings.recurringIntervalDays===30?"month":e.subscriptionSettings.recurringIntervalDays===365?"year":"period",u=e.subscriptionSettings.price.amount.toFixed(2),a=e.subscriptionSettings.recurringIntervalDays,s=10;return i.jsxs("div",{className:Xe.card,onClick:t,children:[i.jsxs("h2",{className:Xe.price,children:["$",u," ",i.jsxs("span",{className:Xe.interval,children:["/ ",r]})]}),i.jsx("h3",{className:Xe.name,children:e.name}),e.description&&i.jsx("p",{className:Xe.description,children:e.description}),n?i.jsxs("div",{className:Xe.currentPlan,children:[i.jsx(N.Icon,{name:"Check"}),"Your current Plan"]}):i.jsx(N.Button,{type:"Secondary",className:Xe.selectButton,children:"Select"}),n&&i.jsxs("div",{className:Xe.progressSection,children:[i.jsx(hi,{percent:s/a*100,disablePercentLabel:!0}),i.jsxs("p",{className:Xe.progressLabel,children:["Used: ",s," of ",a," days"]})]})]})},Bd=({isOpen:e,setIsOpen:t,subscription:n})=>{const[r,u]=L.useState(null),[a,s]=L.useState(null),[o,c]=L.useState(null),{id:l,accessToken:h}=g.useParams(),[f,m]=L.useState(!1),[p,b]=L.useState(!1),{setIsOpen:_}=g.useModalStore();L.useEffect(()=>{e&&m(!0)},[e]);const E=()=>{t(!1)},[x,k]=L.useState(null);L.useEffect(()=>{l&&h&&(async()=>{if(l&&h){const{data:I}=await N2({id:l,accessToken:h});k(I)}})()},[l,h]),L.useEffect(()=>{var S;if(x!=null&&x.data.types[0]){const I=(S=x.data.types.flatMap(M=>M.productVariants).find(M=>M.data.id===(n==null?void 0:n.variantId)))==null?void 0:S.data;I&&(c(I),s(I))}},[x,n]),L.useEffect(()=>{x!=null&&x.data.types[0]&&u(x==null?void 0:x.data.types[0])},[x==null?void 0:x.data.types]);const y=S=>{u(S),s(null)},D=S=>{s(S),_(!0),b(!0)};return i.jsxs("div",{className:g.clx(Xe.modal,{[Xe.active]:e,[Xe.inactive]:!e&&f,[Xe.notMounted]:!f}),onClick:S=>S.stopPropagation(),children:[i.jsx(N.Icon,{name:"X",onClick:E,hoverable:!0,className:Xe.closeButton,fill:"var(--text-primary)"}),i.jsxs("div",{className:Xe.bottomSheet,children:[i.jsx("h3",{id:"h3",className:Xe.title,children:"Change Plan"}),i.jsx("p",{className:Xe.description,children:x==null?void 0:x.data.description}),i.jsx("div",{className:Xe.typeSelector,children:x==null?void 0:x.data.types.map(S=>i.jsxs("div",{className:g.clx(Xe.typeOption,{[Xe.active]:(r==null?void 0:r.id)===S.id}),onClick:()=>y(S),children:[S.name,S.name==="Yearly"&&i.jsx("span",{className:Xe.saveTag,children:"Save %"})]},S.id))}),r&&i.jsx("div",{className:Xe.planSelector,children:r.productVariants.map(S=>i.jsx(Bw,{variant:S.data,isSelected:(a==null?void 0:a.id)===S.data.id,isCurrent:(o==null?void 0:o.id)===S.data.id,onSelect:()=>D(S.data)},S.data.id))})]}),p&&a&&n&&i.jsx(N.Modal,{close:()=>{b(!1)},children:i.jsx(zd,{setIsOpen:b,selectedVariant:a,subscription:n})})]})},Hw="_container_nb625_1",Uw="_title_nb625_11",Vw="_subtitle_nb625_16",$w="_info_nb625_20",Hu={container:Hw,title:Uw,subtitle:Vw,info:$w},Hd=()=>{const{subscription:e}=g.useSubscriptionStore(),[t,n]=g.extractDateAndTime((e==null?void 0:e.activeTo)||""),[r,u]=L.useState(!1),{setIsOpen:a}=g.useModalStore();return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Hu.container,children:[i.jsxs("div",{className:Hu.info,children:[i.jsx("p",{className:Hu.title,children:"Expiration Date"}),i.jsxs("p",{className:Hu.subtitle,children:[t," at ",n]})]}),i.jsx(N.Button,{type:"Special",onClick:s=>{s.stopPropagation(),a(!0),u(!0)},children:"Extend"})]}),r&&i.jsx(N.Modal,{close:()=>u(!1),children:i.jsx(Gd,{setIsOpen:u})})]})},zw="_couponContainer_1sspa_1",qw="_iconWrapper_1sspa_10",Zw="_details_1sspa_21",Ww="_title_1sspa_25",Yw="_progress_1sspa_29",Gw="_foreverText_1sspa_34",mr={couponContainer:zw,iconWrapper:qw,details:Zw,title:Ww,progress:Yw,foreverText:Gw},Ud=({coupon:e,currency:t})=>{const n=e.isFixed?g.formatPrice({amount:e.discount,currency:t}):`${e.discount}%`,r=e.initialCouponDurationForSubscriptions?g.percentageDifference(e.initialCouponDurationForSubscriptions,e.currentCouponDurationForSubscriptions||1):100;return i.jsxs("div",{className:mr.couponContainer,children:[i.jsx("div",{className:mr.iconWrapper,children:i.jsx(N.Icon,{name:"CheckCircle"})}),i.jsxs("div",{className:mr.details,children:[i.jsxs("p",{className:mr.title,children:[e.name,", ",n," discount"]}),i.jsx("div",{className:mr.progress,children:i.jsx(hi,{color:"#C2C2C2",percent:r,disablePercentLabel:!0})}),i.jsx("p",{className:mr.foreverText,children:"Forever discount code"})]})]})},Xw="_paymentMethodContainer_1g0da_4",Kw="_paymentMethodTitle_1g0da_15",Qw="_activeMethod_1g0da_20",Jw="_noMethod_1g0da_28",eD="_activeMethodPaymentMethod_1g0da_37",tD="_paymentMethodLogo_1g0da_47",nD="_paymentMethodNumber_1g0da_57",rD="_method_1g0da_61",Hn={paymentMethodContainer:Xw,paymentMethodTitle:Kw,activeMethod:Qw,noMethod:Jw,activeMethodPaymentMethod:eD,paymentMethodLogo:tD,paymentMethodNumber:nD,method:rD},uD="_paymentMethods_1gev0_1",aD="_modal_1gev0_14",sD="_header_1gev0_28",iD="_content_1gev0_37",Jn={paymentMethods:uD,modal:aD,header:sD,content:iD},oD=e=>{const{setIsLoading:t,setIsOpen:n}=e,{subscription:r,setSubscription:u}=g.useSubscriptionStore();if(!r)return null;const{id:a}=g.useParams(),s=g.useNavigate(),{notifications:o,setNotifications:c}=g.useNotificationStore(),{setPaymentMethod:l,setGateway:h,cart:f}=du(),{setIsOpen:m}=g.useModalStore();async function p(){if(b(),t(!0),a&&r){const{data:_}=await S2(a,f.gateway);_.isReconnectPaymentNeeded?s(`/charges/${_.chargeId}`):(c([...o,{status:"success",id:g.v4(),message:"Your action has been successfully completed"}]),u({...r,gatewayName:f.gateway}))}else c([...o,{status:"error",id:g.v4(),message:"Your action has been failed. Try again!"}]);t(!1)}function b(){m(!1),setTimeout(()=>{n(!1)},300)}return i.jsxs("div",{className:Jn.modal,onClick:_=>{_.stopPropagation()},children:[i.jsxs("div",{className:Jn.header,children:[i.jsx("h3",{id:"h3",className:Jn.title,children:"Choose Payment Method"}),i.jsx(N.Icon,{name:"X",onClick:b,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Jn.content,children:[(r==null?void 0:r.availableGateways)&&i.jsx(gi,{possibleGateways:{availableGateways:r.availableGateways,requiresSignInGateways:r.availableGateways},setGateway:h,setPaymentMethod:l,totalAndDiscount:{total:(r==null?void 0:r.price.amount)||0,totalWithDiscount:r==null?void 0:r.price.amount},onSignInClick:()=>s("/customer-dash")}),i.jsxs("div",{className:Jn.paymentMethods,children:[i.jsx("div",{className:Jn.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Cancel"})}),i.jsx("div",{className:Jn.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",disabled:!f.gateway,onClick:()=>p(),children:"Continue"})})]})]})]})},cD="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20131.39%2086.9'%3e%3cdefs%3e%3cstyle%3e.a{opacity:0;}.b{fill:%23fff;}.c{fill:%23ff5f00;}.d{fill:%23eb001b;}.e{fill:%23f79e1b;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%201%3c/title%3e%3cg%20class='a'%3e%3crect%20class='b'%20width='131.39'%20height='86.9'/%3e%3c/g%3e%3crect%20class='c'%20x='48.37'%20y='15.14'%20width='34.66'%20height='56.61'/%3e%3cpath%20class='d'%20d='M51.94,43.45a35.94,35.94,0,0,1,13.75-28.3,36,36,0,1,0,0,56.61A35.94,35.94,0,0,1,51.94,43.45Z'/%3e%3cpath%20class='e'%20d='M120.5,65.76V64.6H121v-.24h-1.19v.24h.47v1.16Zm2.31,0v-1.4h-.36l-.42,1-.42-1h-.36v1.4h.26V64.7l.39.91h.27l.39-.91v1.06Z'/%3e%3cpath%20class='e'%20d='M123.94,43.45a36,36,0,0,1-58.25,28.3,36,36,0,0,0,0-56.61,36,36,0,0,1,58.25,28.3Z'/%3e%3c/svg%3e",Vd=()=>{var b,_,E;const{subscription:e}=g.useSubscriptionStore(),{cart:t,setPaymentMethod:n}=du(),r=g.useNavigate(),[u,a]=L.useState(null),[s,o]=L.useState(!1),[c,l]=L.useState(!1),{setIsOpen:h}=g.useModalStore();if(!e)return null;const[f,m]=L.useState(e.gatewayName||t.gateway),p=t.paymentMethod;return L.useEffect(()=>{(async()=>{const k=await hu(e.availableGateways);a(k)})()},[]),L.useEffect(()=>{t.gateway!==f&&m(t.gateway)},[t.gateway]),i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Hn.paymentMethodContainer,children:[i.jsxs("div",{children:[i.jsx("p",{className:Hn.paymentMethodTitle,children:"Active Payment Method"}),e.gatewayInfo&&Object.keys(e.gatewayInfo).length>0&&i.jsx(lD,{gatewayInfo:e.gatewayInfo}),(!e.gatewayInfo||Object.keys(e.gatewayInfo).length===0)&&f==="Balance"&&i.jsx(pi,{gateway:f,gatewayDisplayName:f,total:(e==null?void 0:e.price.amount)||0,onSignInClick:()=>r("/customer-dash")}),(!e.gatewayInfo||Object.keys(e.gatewayInfo).length===0)&&!f&&i.jsx("span",{className:Hn.noMethod,children:"Payment method is not set"}),(!e.gatewayInfo||Object.keys(e.gatewayInfo).length===0)&&f&&i.jsx("div",{className:Hn.activeMethod,children:u&&i.jsx(mi,{align:"row",gatewayLogoCfId:(b=u.find(x=>x.name===f))==null?void 0:b.logoCfImageId,gatewayDisplayName:(_=u.find(x=>x.name===f))==null?void 0:_.displayName,gateway:f,poweredByLogoCfId:(E=u.find(x=>x.name===f))==null?void 0:E.poweredByImageCfImageId,className:Hn.activeMethodPaymentMethod,selected:p===f,onSelect:x=>{n(x)}},f)})]}),i.jsx(N.Button,{type:"Special",onClick:x=>{x.stopPropagation(),h(!0),l(!0)},children:t.gateway?"Change":"Manage"})]}),c&&i.jsx(N.Modal,{close:()=>l(!1),children:i.jsx(oD,{setIsLoading:o,setIsOpen:l})})]})},lD=({gatewayInfo:e})=>{var t,n,r,u,a;return i.jsxs("div",{className:Hn.method,children:[i.jsxs("div",{className:Hn.paymentMethodLogo,children:[((t=e.card)==null?void 0:t.brand.toLowerCase())==="visa"&&i.jsx(dm,{}),((n=e.card)==null?void 0:n.brand.toLowerCase())==="mastercard"&&i.jsx("img",{src:cD,alt:"",width:22}),((r=e.card)==null?void 0:r.brand.toLowerCase())!=="visa"&&((u=e.card)==null?void 0:u.brand.toLowerCase())!=="mastercard"&&i.jsx(N.Icon,{name:"CreditCard",width:22})]}),i.jsxs("p",{className:Hn.paymentMethodNumber,children:["•••• •••• •••• ",(a=e.card)==null?void 0:a.last4]})]})},dD="_subscriptionProductContainer_83ibx_4",fD="_subscriptionProductImage_83ibx_15",hD="_subscriptionProductInfo_83ibx_32",pD="_name_83ibx_37",mD="_price_83ibx_40",zr={subscriptionProductContainer:dD,subscriptionProductImage:fD,subscriptionProductInfo:hD,name:pD,price:mD},$d=({subscription:e,id:t,accessToken:n})=>{const[r,u]=L.useState(!1),{setIsOpen:a}=g.useModalStore();return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:zr.subscriptionProductContainer,onClick:s=>s.stopPropagation(),children:[i.jsx("div",{className:zr.subscriptionProductImage,children:e!=null&&e.image?i.jsx("img",{src:g.convertCfImageIdToUrl(e.image.cfId)}):i.jsx(N.Icon,{name:"Image"})}),i.jsxs("div",{className:zr.subscriptionProductInfo,children:[i.jsx("div",{className:"flex items-center gap-2",children:i.jsx("h2",{className:zr.name,children:e.name})}),i.jsxs("p",{className:zr.price,children:[g.formatPrice(e.price)," / ",e.recurringInterval]})]}),i.jsx(N.Button,{type:"Special",onClick:s=>{s.preventDefault(),u(!0),a(!0)},children:"Cancel"})]}),r&&i.jsx(N.Modal,{close:()=>u(!1),children:i.jsx(Xd,{accessToken:n,id:t,isOpen:r,setIsOpen:u})})]})},gD="_content_5ctxw_1",bD="_selectedPlan_5ctxw_37",_D="_planName_5ctxw_44",xD="_description_5ctxw_48",CD="_price_5ctxw_51",ED="_buttonGroup_5ctxw_79",yD="_buttonWrapper_5ctxw_84",TD="_modal_5ctxw_88",kD="_header_5ctxw_95",tn={content:gD,selectedPlan:bD,planName:_D,description:xD,price:CD,buttonGroup:ED,buttonWrapper:yD,modal:TD,header:kD},zd=({setIsOpen:e,selectedVariant:t,subscription:n})=>{if(!t)return null;const{setIsOpen:r}=g.useModalStore(),u=()=>{a()},a=()=>{r(!1),setTimeout(()=>{e(!1)},300)},s=(t.subscriptionSettings.compareAtPrice||t.subscriptionSettings.price).amount,o=t.subscriptionSettings.compareAtPrice?t.subscriptionSettings.compareAtPrice.amount-t.subscriptionSettings.price.amount:t.subscriptionSettings.price.amount,c=s-o,l=new Intl.NumberFormat("en-US",{style:"currency",currency:n.price.currency});return i.jsxs("div",{className:tn.modal,children:[i.jsxs("div",{className:tn.header,children:[i.jsx("h3",{id:"h3",children:"Choose upgrade method"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:()=>a(),fill:"var(--text-primary)"})]}),i.jsxs("div",{className:tn.bottomSheet,children:[i.jsxs("div",{className:tn.content,children:[i.jsxs("div",{className:tn.selectedPlan,children:[i.jsx("h2",{className:tn.planName,children:t.name}),i.jsx("p",{className:tn.description,children:t.description}),i.jsxs("p",{className:tn.price,children:["$",t.subscriptionSettings.price.amount.toFixed(2)," /"," ",t.subscriptionSettings.recurringIntervalDays===30?"month":"year"]})]}),i.jsx(wr,{formatter:l,coupon:null,total:c,discount:o})]}),i.jsxs("div",{className:tn.buttonGroup,children:[i.jsx("div",{className:tn.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:()=>a(),children:"Stay with us"})}),i.jsx("div",{className:tn.buttonWrapper,children:i.jsxs(N.Button,{type:"Primary",onClick:u,children:["Upgrade for $",c.toFixed(2)]})})]})]})]})},AD="_orderStatusBlock_2wo4y_2",SD="_orderStatusBlockAntistock_2wo4y_11",ID="_iconWrapper_2wo4y_16",ND="_orderStatusTitle_2wo4y_26",vD="_orderStatusDescription_2wo4y_31",wD="_actionButtons_2wo4y_36",DD="_actionButton_2wo4y_36",LD="_button_2wo4y_47",on={orderStatusBlock:AD,orderStatusBlockAntistock:SD,iconWrapper:ID,orderStatusTitle:ND,orderStatusDescription:vD,actionButtons:wD,actionButton:DD,button:LD},PD={[be.New]:"New",[be.Pending]:"Order Pending",[be.Processing]:"Order Processing",[be.Expired]:"Order Expired",[be.Cancelled]:"Order Canceled",[be.Failed]:"Order Failed",[be.FullDeliveryFailure]:"Delivery Failure",[be.PartiallyDelivered]:"Partial Delivery Failure",[be.Refunded]:"Order Refunded",[be.Completed]:"Order Completed",[be.PartiallyRefunded]:"Partial Refund"},RD={[be.New]:"Your order has been created and is awaiting payment.",[be.Pending]:"Your order is currently pending. We recommend checking back shortly for confirmation.",[be.Processing]:"Your order is currently being processed. We are preparing your delivery - this usually only takes a short while.",[be.Expired]:"Your order has expired due to the payment not being sent in time. If you already sent the payment, please contact us below.",[be.Cancelled]:"You canceled the warrant. If there are any problems, please contact support.",[be.Failed]:"Your order could not be processed due to a payment or system error. Please try again or contact support.",[be.FullDeliveryFailure]:"Your payment was successful but the product is currently out of stock. Please contact us below to get this sorted.",[be.PartiallyDelivered]:"Your payment was successful but some products were out of stock. Please contact us below to get this sorted.",[be.Refunded]:"Your order was refunded. Please check your payment method for confirmation.",[be.Completed]:"Your order has successfully been processed. View your products below or check your email for additional information.",[be.PartiallyRefunded]:"Your order was partially refunded. Please check your payment method for confirmation."},qd=()=>({[be.Completed]:i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"}),[be.Pending]:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"}),[be.Processing]:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"}),[be.New]:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"}),[be.Expired]:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"}),[be.Cancelled]:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"}),[be.Failed]:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"}),[be.FullDeliveryFailure]:i.jsx(N.Icon,{name:"Warning",fill:"var(--text-warning)"}),[be.PartiallyDelivered]:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)"}),[be.Refunded]:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)"}),[be.PartiallyRefunded]:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)"})}),Zd=({orderStatus:e,className:t})=>{var l,h;const{shopDomain:n}=g.useStorefrontStore(),{isAntistock:r,general:u}=g.useGeneralStore(),a=g.useNavigate(),s=!!((l=u==null?void 0:u.info)!=null&&l.disableSupport),o=(h=u==null?void 0:u.info)==null?void 0:h.thirdPartySupportUrl,c=!(s&&!o);return i.jsxs("div",{className:g.clx(on.orderStatusBlock,t,{[on.orderStatusBlockAntistock]:r}),children:[i.jsx("div",{className:on.iconWrapper,style:r?{background:"none"}:void 0,children:qd()[e]}),i.jsx("h2",{className:on.orderStatusTitle,children:PD[e]}),i.jsx("p",{className:on.orderStatusDescription,children:RD[e]}),i.jsxs("div",{className:on.actionButtons,children:[i.jsx("div",{className:on.actionButton,children:i.jsxs(N.Button,{type:"Secondary",className:on.button,onClick:()=>window.open(`https://${n}`),style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"ArrowLineUpRight"}),"Visit Website"]})}),c&&i.jsx("div",{className:on.actionButton,children:i.jsxs(N.Button,{type:"Secondary",className:on.button,onClick:()=>{s&&o?window.open(o):r?window.open(`https://${n}/support`):a("/contact")},style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"ChatsTeardrop"}),"Contact Support"]})})]})]})},MD="_reviewMessage_1t8u4_1",OD="_leaveReviewContainer_1t8u4_11",jD="_leaveReviewTitle_1t8u4_20",xs={reviewMessage:MD,leaveReviewContainer:OD,leaveReviewTitle:jD},Wd=({review:e,orderId:t,className:n})=>{const[r,u]=L.useState((e==null?void 0:e.rating)||0),[a,s]=L.useState(!1),{setIsOpen:o}=g.useModalStore(),{notifications:c,setNotifications:l}=g.useNotificationStore(),h=async f=>{e&&"accessToken"in e&&(await R2({comment:f,rating:r,tsId:g.useGetTsId()},t,e.accessToken),l([...c,{status:"success",id:g.v4(),message:"Review left successfully"}]),s(!1))};return L.useEffect(()=>{e&&r&&"accessToken"in e&&!e.rating&&(o(!0),s(!0))},[r]),e?e.rating&&"accessToken"in e?i.jsxs("div",{className:xs.reviewMessage,children:["You left a ",e.rating," star rating"]}):i.jsxs("div",{className:g.clx(xs.leaveReviewContainer,n),children:[i.jsx("p",{className:xs.leaveReviewTitle,children:"Leave a review"}),i.jsx(_7,{rating:r,setRating:u,disabled:!!e.rating||!("accessToken"in e)}),a&&i.jsx(N.Modal,{close:()=>s(!1),children:i.jsx(Yd,{setIsOpen:s,onSubmit:h})})]}):null},FD="_bottomSheet_1bcyj_1",BD="_content_1bcyj_7",HD="_title_1bcyj_18",UD="_buttonGroup_1bcyj_22",VD="_buttonWrapper_1bcyj_33",$D="_modal_1bcyj_37",zD="_header_1bcyj_44",Pn={bottomSheet:FD,content:BD,title:HD,buttonGroup:UD,buttonWrapper:VD,modal:$D,header:zD},Yd=({setIsOpen:e,onSubmit:t})=>{const[n,r]=L.useState(""),{setIsOpen:u}=g.useModalStore(),a=()=>{u(!1),setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{className:Pn.modal,onClick:s=>s.stopPropagation(),children:[i.jsxs("div",{className:Pn.header,children:[i.jsx("h3",{id:"h3",className:Pn.title,children:"Review Description"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:a,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Pn.bottomSheet,children:[i.jsx("div",{className:Pn.content,children:i.jsx(N.Textarea,{placeholder:"Great product and fast checkout...",value:n,onChange:s=>r(s),label:"Describe your review in detail below"})}),i.jsxs("div",{className:Pn.buttonGroup,children:[i.jsx("div",{className:Pn.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:a,children:"Cancel"})}),i.jsx("div",{className:Pn.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",disabled:!n,onClick:()=>{a(),t(n)},children:"Submit"})})]})]})]})},qD="_container_1idhv_1",ZD="_buttonGroup_1idhv_8",WD="_buttonWrapper_1idhv_15",YD="_header_1idhv_19",GD="_content_1idhv_28",er={container:qD,buttonGroup:ZD,buttonWrapper:WD,header:YD,content:GD},XD="_modal_1rkmj_1",KD="_modalPayment_1rkmj_7",QD="_title_1rkmj_15",JD="_description_1rkmj_20",Uu={modal:XD,modalPayment:KD,title:QD,description:JD},Zi=()=>i.jsxs("div",{className:g.clx(Uu.modal,Uu.modalPayment),onClick:e=>e.stopPropagation(),children:[i.jsx(N.Loader,{style:{border:"4px solid var(--surface-action1)",borderLeftColor:"var(--surface-secondary)",width:"40px",height:"40px"}}),i.jsx("h2",{id:"h3",className:Uu.title,children:"Processing Payment"}),i.jsx("p",{className:Uu.description,children:"This payment is currently being processed. If you're here, it simply means that the payment was created but not complete."})]}),Gd=({setIsOpen:e})=>{const{subscription:t}=g.useSubscriptionStore(),{getTotalAndDiscount:n,cart:r,coupon:u}=du(),[a,s]=L.useState(1),o=g.useNavigate(),{setIsOpen:c}=g.useModalStore(),{setNotifications:l,notifications:h}=g.useNotificationStore(),[f,m]=L.useState(!1),p=L.useMemo(()=>n(),[u,r]),b=L.useMemo(()=>p.totalWithDiscount?p.total-p.totalWithDiscount:0,[p]);if(f)return i.jsx(Zi,{});const _=(t==null?void 0:t.price.currency)||"USD",E=new Intl.NumberFormat("en-US",{style:"currency",currency:_});async function x(){var y;m(!0);try{const{data:D}=await v2((t==null?void 0:t.id)||"",{});l([{id:g.v4(),message:"Order created successfully",status:"success"}]),o(`/orders/${(y=D.data)==null?void 0:y.id}/${D.data.fullAccessToken}`)}catch(D){const S=D;l([...h,{id:g.v4(),message:`Order creation failed: ${S.message}`,status:"error"}]),k()}finally{m(!1)}}function k(){c(!1),setTimeout(()=>{e(!1)},300)}return i.jsxs("div",{className:er.container,onClick:y=>y.stopPropagation(),children:[i.jsxs("div",{className:er.header,children:[i.jsx("h3",{id:"h3",className:er.title,children:"Extend Subscription"}),i.jsx(N.Icon,{name:"X",onClick:k,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:er.content,children:[i.jsx(w7,{step:a,totalSteps:12,onStepChange:s,label:"How long would you like to extend your subscription for?"}),i.jsx(wr,{formatter:E,coupon:u,total:p.total,discount:b,totalWithDiscount:p.totalWithDiscount}),i.jsxs("div",{className:er.buttonGroup,children:[i.jsx("div",{className:er.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:k,children:"Cancel"})}),i.jsx("div",{className:er.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",onClick:x,children:"Extend"})})]})]})]})},eL="_bottomSheet_uw5jb_1",tL="_content_uw5jb_7",nL="_radioGroup_uw5jb_11",rL="_confirmation_uw5jb_26",uL="_iconWrapper_uw5jb_33",aL="_title_uw5jb_42",sL="_message_uw5jb_48",iL="_buttonGroup_uw5jb_54",oL="_buttonWrapper_uw5jb_64",cL="_modal_uw5jb_68",lL="_header_uw5jb_77",ut={bottomSheet:eL,content:tL,radioGroup:nL,confirmation:rL,iconWrapper:uL,title:aL,message:sL,buttonGroup:iL,buttonWrapper:oL,modal:cL,header:lL},dL={0:"Are you sure?",1:"Just making sure",2:"We're sorry to see you go"},Xd=({isOpen:e,setIsOpen:t,id:n,accessToken:r})=>{const[u,a]=L.useState(0),[s,o]=L.useState(!1),[c,l]=L.useState(""),[h,f]=L.useState(""),{setIsOpen:m}=g.useModalStore(),p=async()=>{if(!c)return;o(!0);const _=await A2(n,r,{reason:c==="Other reason"?h:c});o(!1),_&&a(2)};L.useEffect(()=>{e||(a(0),l(""),f(""))},[e]);const b=()=>{m(!1),setTimeout(()=>{t(!1)},300)};return i.jsxs("div",{className:ut.modal,onClick:_=>_.stopPropagation(),children:[i.jsxs("div",{className:ut.header,children:[i.jsx("h3",{id:"h3",children:dL[u]||""}),i.jsx(N.Icon,{name:"X",onClick:b,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:ut.content,children:[u===0&&i.jsxs("div",{className:ut.bottomSheet,children:[i.jsx("p",{children:"Before you cancel your subscription can you tell us why?"}),i.jsxs("div",{className:ut.radioGroup,children:[i.jsx(N.Radio,{defaultValue:c,onChange:_=>l(_),options:[{value:"Found another company",label:"Found another company"},{value:"Expensive",label:"Expensive"},{value:"Technical problems",label:"Technical problems"},{value:"Support problems",label:"Support problems"},{value:"Other reason",label:"Other reason"}],flexDirection:"column"}),c==="Other reason"&&i.jsx(N.Textarea,{value:h,onChange:_=>f(_),placeholder:"Describe the reason..."})]}),i.jsxs("div",{className:ut.buttonGroup,children:[i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Stay with us"})}),i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",onClick:()=>c&&a(1),disabled:!c,children:"Continue"})})]})]}),u===1&&i.jsxs("div",{className:ut.bottomSheet,children:[i.jsx("p",{children:"You'll lose access to all of the features and content available within this subscription."}),i.jsxs("div",{className:ut.buttonGroup,children:[i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Stay with us"})}),i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",onClick:p,disabled:s,children:"Cancel it anyway"})})]})]}),u===2&&i.jsxs("div",{className:ut.bottomSheet,children:[i.jsxs("div",{className:`${ut.confirmation}`,children:[i.jsx("div",{className:ut.iconWrapper,children:i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"})}),i.jsx("p",{className:ut.title,children:"Subscription Cancelled"}),i.jsx("p",{className:ut.message,children:"You'll lose access to all of the features and content available within this subscription."})]}),i.jsx("div",{className:ut.buttonGroup,children:i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Close"})})})]})]})]})},fL="_vouchCard_ntutv_1",hL="_vouchContent_ntutv_13",pL="_vouchIcon_ntutv_20",mL="_vouchText_ntutv_29",gL="_vouchTitle_ntutv_35",bL="_vouchDescription_ntutv_42",_L="_addMessageButton_ntutv_48",xL="_vouchCardSubmitted_ntutv_53",Nt={vouchCard:fL,vouchContent:hL,vouchIcon:pL,vouchText:mL,vouchTitle:gL,vouchDescription:bL,addMessageButton:_L,vouchCardSubmitted:xL},Kd=({onAddMessage:e,className:t,isVouchLeft:n=!1})=>n?i.jsx("div",{className:`${Nt.vouchCard} ${Nt.vouchCardSubmitted} ${t||""}`,children:i.jsxs("div",{className:Nt.vouchContent,children:[i.jsx("div",{className:Nt.vouchIcon,children:i.jsx(N.Icon,{name:"Check"})}),i.jsxs("div",{className:Nt.vouchText,children:[i.jsx("h3",{className:Nt.vouchTitle,children:"Thank You"}),i.jsx("p",{className:Nt.vouchDescription,children:"We appreciate you sharing your experience with your purchase."})]})]})}):i.jsxs("div",{className:`${Nt.vouchCard} ${t||""}`,children:[i.jsxs("div",{className:Nt.vouchContent,children:[i.jsx("div",{className:Nt.vouchIcon,children:i.jsx(N.Icon,{name:"Star"})}),i.jsxs("div",{className:Nt.vouchText,children:[i.jsx("h3",{className:Nt.vouchTitle,children:"Leave a Vouch"}),i.jsx("p",{className:Nt.vouchDescription,children:"Share your experience with our team."})]})]}),i.jsx(N.Button,{type:"Secondary",onClick:e,className:Nt.addMessageButton,children:"Add Message"})]}),CL="_vouchModal_19vu5_1",EL="_vouchModalAntistock_19vu5_12",yL="_vouchModalHeader_19vu5_17",TL="_title_19vu5_25",kL="_closeButton_19vu5_32",AL="_vouchModalContent_19vu5_46",SL="_bottomSheet_19vu5_53",IL="_content_19vu5_61",NL="_productContainer_19vu5_65",vL="_searchContainer_19vu5_73",wL="_scrollableBox_19vu5_77",DL="_productItem_19vu5_87",LL="_productImage_19vu5_97",PL="_productName_19vu5_119",RL="_productItemError_19vu5_125",ML="_noResults_19vu5_130",OL="_fieldError_19vu5_140",jL="_vouchForm_19vu5_145",FL="_formField_19vu5_151",BL="_vouchModalFooter_19vu5_312",HL="_submitButton_19vu5_317",We={vouchModal:CL,vouchModalAntistock:EL,vouchModalHeader:yL,title:TL,closeButton:kL,vouchModalContent:AL,bottomSheet:SL,content:IL,productContainer:NL,searchContainer:vL,scrollableBox:wL,productItem:DL,productImage:LL,productName:PL,productItemError:RL,noResults:ML,fieldError:OL,vouchForm:jL,formField:FL,vouchModalFooter:BL,submitButton:HL},Qd=({isOpen:e,onClose:t,products:n,orderId:r,accessToken:u,shopDomain:a,onSuccess:s})=>{const{isAntistock:o}=g.useGeneralStore(),{setNotifications:c,notifications:l}=g.useNotificationStore(),{setIsOpen:h}=g.useModalStore(),[f,m]=L.useState(null),[p,b]=L.useState(""),[_,E]=L.useState(""),[x,k]=L.useState(n.map(Y=>Y.id.toString())),[y,D]=L.useState(!1),[S,I]=L.useState({}),M=L.useRef(null),H=L.useRef(null),U=L.useRef(null),P=L.useMemo(()=>_.trim()?new tl.Fuse(n,{keys:["name"],threshold:.3}).search(_).map(K=>K.item):n,[n,_]),B=Y=>{k(K=>K.includes(Y)&&K.length===1?K:K.includes(Y)?K.filter(ue=>ue!==Y):[...K,Y]),I(K=>({...K,selectedProducts:void 0}))},O=async()=>{var K;I({});const Y={};if(x.length===0&&(Y.selectedProducts="Please select at least one product"),f||(Y.image="Please upload a screenshot"),p.trim()||(Y.message="Please enter a message"),Object.keys(Y).length>0){I(Y),setTimeout(()=>{Y.selectedProducts&&M.current?M.current.scrollIntoView({behavior:"smooth",block:"center"}):Y.image&&H.current?H.current.scrollIntoView({behavior:"smooth",block:"center"}):Y.message&&U.current&&U.current.scrollIntoView({behavior:"smooth",block:"center"})},100);return}if(!r||!u||!a||!f){c([...l,{id:g.v4(),message:"Missing required information",status:"error"}]);return}D(!0);try{const ue={imageId:parseInt(f.id),productIds:x.map(ae=>parseInt(ae)),comment:p.trim(),tsId:g.v4()};await q2(ue,a,r,u),c([...l,{id:g.v4(),message:"Vouch submitted successfully",status:"success"}]),s==null||s(),t()}catch(ue){console.log({error:ue});let ae="Failed to submit vouch",se="";const _e=ue;if((K=_e==null?void 0:_e.response)!=null&&K.data){const C=_e.response.data;C.message&&C.errors&&Array.isArray(C.errors)?(se=C.message,ae=C.errors.join(", ")):C.errors&&Array.isArray(C.errors)?ae=C.errors.join(", "):C.message&&(ae=C.message)}else ue instanceof Error&&(ae=ue.message);c([...l,{id:g.v4(),message:ae,status:"error",label:se}])}finally{D(!1)}},X=()=>{b(""),m(null),E(""),k(n.map(Y=>Y.id.toString())),I({}),t()};return L.useEffect(()=>{e&&k(n.map(Y=>Y.id.toString()))},[e]),L.useEffect(()=>{e&&h(!0)},[e,h]),e?i.jsx(N.Modal,{close:X,withAnimation:!o,children:i.jsxs("div",{className:g.clx(We.vouchModal,{[We.vouchModalAntistock]:o}),onClick:Y=>Y.stopPropagation(),children:[i.jsxs("div",{className:We.vouchModalHeader,children:[i.jsx("h3",{className:We.title,children:"Vouch"}),i.jsx("button",{className:We.closeButton,onClick:X,children:i.jsx(N.Icon,{name:"X"})})]}),i.jsxs("div",{className:We.vouchModalContent,children:[i.jsx("div",{className:We.bottomSheet,children:i.jsxs("div",{className:We.content,children:[i.jsxs("div",{className:We.productContainer,children:[i.jsx("div",{className:We.searchContainer,children:i.jsx(N.Input,{onChange:E,isSearch:!0,value:_,placeholder:"Search for products",label:"Products *"})}),i.jsx("div",{ref:M,className:We.scrollableBox,children:P.length>0?P.map(Y=>i.jsxs("div",{className:g.clx(We.productItem,{[We.productItemError]:S.selectedProducts&&!x.includes(Y.id.toString())}),onClick:()=>B(Y.id.toString()),children:[i.jsx("div",{className:We.productImage,children:Y.image?i.jsx("img",{src:g.convertCfImageIdToUrl(Y.image.cfId),alt:Y.name}):i.jsx(N.Icon,{name:"Image"})}),i.jsx("span",{className:We.productName,children:Y.name}),i.jsx("div",{onClick:K=>K.stopPropagation(),children:i.jsx(N.Checkbox,{value:x.includes(Y.id.toString()),onChange:()=>B(Y.id.toString()),disabled:x.length===1&&x.includes(Y.id.toString())})})]},Y.id)):i.jsx("div",{className:We.noResults,children:i.jsx("p",{children:"No products found"})})}),S.selectedProducts&&i.jsx("div",{className:We.fieldError,children:S.selectedProducts})]}),i.jsxs("div",{className:We.vouchForm,children:[i.jsx("div",{className:We.formField,ref:H,children:i.jsx(N.ImagesLoader,{images:f,onChange:Y=>{m(Y),S.image&&I(K=>({...K,image:void 0}))},multiple:!1,label:"Screenshot",required:!0,showImageLoading:!0})}),i.jsxs("div",{className:We.formField,ref:U,children:[i.jsx(N.Textarea,{label:"Message *",value:p,onChange:b,placeholder:"Instant product delivery, paid with balance...",error:S.message,maxLength:150}),S.message&&i.jsx("div",{className:We.fieldError,children:S.message})]})]})]})}),i.jsx("div",{className:We.vouchModalFooter,children:i.jsx(N.Button,{type:"Primary",onClick:O,disabled:y,className:We.submitButton,children:y?i.jsx(N.Loader,{}):"LEAVE A VOUCH"})})]})]})}):null},UL="_modalContent_1a05n_1",VL="_iconContainer_1a05n_16",$L="_warningIcon_1a05n_20",zL="_title_1a05n_25",qL="_description_1a05n_33",ZL="_buttonContainer_1a05n_40",WL="_button_1a05n_40",Tn={modalContent:UL,iconContainer:VL,warningIcon:$L,title:zL,description:qL,buttonContainer:ZL,button:WL},Jd=({isOpen:e,onClose:t,refundedAmount:n,currency:r})=>{var E,x;const u=g.useNavigate(),{token:a,shopDomain:s}=g.useStorefrontStore(),{isAntistock:o,general:c}=g.useGeneralStore(),l=!!((E=c==null?void 0:c.info)!=null&&E.disableSupport),h=(x=c==null?void 0:c.info)==null?void 0:x.thirdPartySupportUrl,f=!(l&&!h),m=new Intl.NumberFormat("en-US",{style:"currency",currency:r}),p=()=>{u(o?"/account":"/customer-dash")},b=async()=>{if(l&&h){window.open(h);return}o?window.open(`https://${s}/support`):u("/contact")},_=()=>{t()};return e?i.jsx(N.Modal,{close:t,children:i.jsxs("div",{className:Tn.modalContent,onClick:k=>k.stopPropagation(),children:[i.jsx("div",{className:Tn.iconContainer,children:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)",className:Tn.warningIcon})}),i.jsx("h2",{className:Tn.title,children:"Partial Delivery Failure Refund"}),i.jsxs("p",{className:Tn.description,children:["Your payment was successful but a few products were out of stock. We've automatically refunded the products that were out of stock, with a total of"," ",m.format(n),", to your account balance."]}),i.jsxs("div",{className:Tn.buttonContainer,children:[!a&&i.jsx(N.Button,{type:"Secondary",onClick:p,className:Tn.button,children:"Login"}),f&&i.jsx(N.Button,{type:"Secondary",onClick:b,className:Tn.button,children:"Contact Support"}),i.jsx(N.Button,{type:"Primary",onClick:_,className:Tn.button,children:"Continue"})]})]})}):null},YL=Object.freeze(Object.defineProperty({__proto__:null,ActivePaymentMethod:Vd,ActiveSubscriptionProduct:$d,Auth:pa,AuthLogin:h0,AuthModal:I0,AuthRequestOtp:f0,CHARGE_STATUS_DESCRIPTION:wd,CHARGE_STATUS_DISPLAY_NAME:nr,CancelSubscription:Xd,CashAppVerify:Md,ChangeSubscriptionPlan:Bd,ChargeBlocksRenderer:ra,ChargeItems:Rd,ChargeStatusBlock:Ld,CheckoutBalancePaymentMethod:pi,CheckoutFooter:qn,CheckoutHeader:_a,CheckoutItems:T0,CheckoutOperational:Nd,CheckoutOrderMainData:zi,CheckoutPaymentMethod:mi,CheckoutPrices:wr,CheckoutProduct:xa,ChoosePlanUpgradeMethod:zd,ConnectDiscord:S0,CustomField:A0,CustomFields:k0,CustomerDashboard:p5,LeaveAReview:Wd,NoItemsBlock:ga,OpenDelivery:vd,OrderStatusBlock:Zd,OrdersTable:_0,PageLoading:ow,PageTitle:ma,Pagination:x0,PaginationWithRange:bu,PayPalFFNote:Pd,PaymentMethods:gi,ProcessingPaymentModal:Zi,ProtectYourCheckout:Id,ReferralBlock:p0,ReferralBlockInfo:g0,ReferralBlockSteps:m0,RefundNotificationModal:Jd,SecuredBySsl:$i,Sidebar:Zl,SkeletonReferralBlock:b0,StatItem:wt,StatusIndicator:E0,StatusVariant:In,SubmitReview:Yd,SubscriptionCoupon:Ud,SubscriptionExpiration:Gd,SubscriptionExpirationDate:Hd,SubscriptionProduct:Fd,SubscriptionStatusBadge:qi,SubscriptionsTable:jd,Table:ba,TableItem:ot,TableItemTitle:Pt,TermsOfService:Vi,TicketRow:Od,TrackPayment:Pa,VouchCard:Kd,VouchModal:Qd,getChargeStatusIcon:Dd,getOrderStatusIcon:qd,getPaginationText:C0},Symbol.toStringTag,{value:"Module"})),GL="_chargePageContainer_1azbl_1",XL="_chargeItems_1azbl_14",KL="_mainContent_1azbl_25",QL="_contentWrapper_1azbl_44",JL="_antistockContent_1azbl_53",eP="_statusBlock_1azbl_58",tP="_statusBlockAntistock_1azbl_63",nP="_notPaidSection_1azbl_68",rP="_antistockPayNow_1azbl_82",uP="_antistockFooter_1azbl_86",aP="_antistockTrackPayment_1azbl_96",sP="_footer_1azbl_106",iP="_loaderContainer_1azbl_128",Ft={chargePageContainer:GL,chargeItems:XL,mainContent:KL,contentWrapper:QL,antistockContent:JL,statusBlock:eP,statusBlockAntistock:tP,notPaidSection:nP,antistockPayNow:rP,antistockFooter:uP,antistockTrackPayment:aP,footer:sP,loaderContainer:iP},oP=()=>{const{id:e}=g.useParams(),[t,n]=g.useSearchParams(),[r,u]=L.useState(!1),[a,s]=L.useState(),[o,c]=L.useState(!0),l=g.useNavigate(),h=L.useRef(),f=L.useRef(!1),{setIsOpen:m}=g.useModalStore(),{isAntistock:p}=g.useGeneralStore();return L.useEffect(()=>{const b=async(E,x=!1)=>{x||u(!0);const{data:k}=await M2(E);u(!1),s(k)},_=setInterval(()=>{e&&b(e,!0)},5e3);return e&&b(e),()=>{clearInterval(_)}},[]),L.useEffect(()=>{const b=setTimeout(()=>{var E;console.log("charge timeout",a);const _=t.get("redirectRoute");if((a==null?void 0:a.status)===ke.Paid&&a.redirectUrl&&!h.current){const k=JSON.parse(localStorage.getItem("orders")||"{}")[((E=a==null?void 0:a.order)==null?void 0:E.id)||""];k?window.open(k.fullAccessToken?`${a.redirectUrl}/${k.fullAccessToken}`:`${a.redirectUrl}`,"_self"):window.open(a.redirectUrl,"_self")}(a==null?void 0:a.status)===ke.Paid&&h.current&&(console.log("redirectRouteRef.current",h.current),l(h.current,{replace:!0})),_&&h&&(h.current=_,t.delete("redirectRoute"),n(t))},1e3);return()=>clearTimeout(b)},[a]),L.useEffect(()=>{((a==null?void 0:a.gateway)==="PayPalFF"||(a==null?void 0:a.gateway)==="Сashapp")&&m(!0)},[a]),L.useEffect(()=>{var b;if(a!=null&&a.displayPaymentInfo&&a.displayPaymentInfo.length===1&&a.status===ke.NotPaid&&!f.current){const _=a.displayPaymentInfo[0];_.type==="Button"&&((b=_.props)!=null&&b.url)&&(window.open(_.props.url,"_blank"),f.current=!0)}},[a==null?void 0:a.displayPaymentInfo,a==null?void 0:a.status]),r?i.jsx("div",{className:Ft.loaderContainer,children:i.jsx(N.Loader,{})}):i.jsxs("div",{className:Ft.chargePageContainer,children:[i.jsx("div",{className:Ft.chargeItems,children:i.jsx(Rd,{charge:a})}),i.jsx("div",{className:Ft.mainContent,style:p?{borderLeft:"1px solid var(--border-secondary)"}:void 0,children:i.jsxs("div",{className:g.clx(Ft.contentWrapper,{[Ft.antistockContent]:p}),children:[a&&(a==null?void 0:a.status)!==ke.NotPaid&&i.jsx(Ld,{charge:a}),a&&i.jsxs("div",{className:g.clx(Ft.statusBlock,{[Ft.statusBlockAntistock]:p}),children:[i.jsx(zi,{lastUpdate:a.expiresAt,email:a.customerForCharge.email,invoiceId:a.id,paymentType:a.gateway}),p&&(a==null?void 0:a.status)===ke.NotPaid&&i.jsx("div",{className:Ft.antistockPayNow,children:a==null?void 0:a.displayPaymentInfo.map((b,_)=>i.jsx(ra,{block:b},_))}),p&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:Ft.antistockTrackPayment,children:i.jsx(Pa,{timeline:a.timeline})}),i.jsx(qn,{className:Ft.antistockFooter})]})]}),!p&&(a==null?void 0:a.status)===ke.NotPaid&&i.jsx("div",{className:Ft.notPaidSection,children:a==null?void 0:a.displayPaymentInfo.map((b,_)=>i.jsx(ra,{block:b},_))}),!p&&i.jsx(qn,{className:Ft.footer})]})}),(a==null?void 0:a.gateway)==="PayPalFF"&&o&&i.jsx(N.Modal,{close:()=>c(!1),children:i.jsx(Pd,{price:a.price,setIsOpen:c})}),(a==null?void 0:a.gateway)==="Сashapp"&&o&&i.jsx(N.Modal,{close:()=>u(!1),children:i.jsx(Md,{setIsOpen:c,chargeId:a.id})})]})},cP=Object.freeze(Object.defineProperty({__proto__:null,ChargePage:oP},Symbol.toStringTag,{value:"Module"}));exports.ActivePaymentMethod=Vd;exports.ActiveSubscriptionProduct=$d;exports.BalanceModal=e0;exports.ChangeSubscriptionPlan=Bd;exports.ChargeStatus=ke;exports.CheckoutFooter=qn;exports.CheckoutHeader=_a;exports.CheckoutItems=T0;exports.CheckoutOperational=Nd;exports.CheckoutOrderMainData=zi;exports.CheckoutPrices=wr;exports.CheckoutProduct=xa;exports.LeaveAReview=Wd;exports.Markdown=Na;exports.MarkdownText=di;exports.NoItemsBlock=ga;exports.OrderStatus=be;exports.OrderStatusBlock=Zd;exports.OrdersTable=_0;exports.PageTitle=ma;exports.PaginationWithRange=bu;exports.ReCaptchaProvider=ni;exports.RefundNotificationModal=Jd;exports.StableText=ul;exports.SubscriptionCoupon=Ud;exports.SubscriptionExpirationDate=Hd;exports.SubscriptionProduct=Fd;exports.SubscriptionsTable=jd;exports.Table=ba;exports.TableItemTitle=Pt;exports.TicketRow=Od;exports.TrackPayment=Pa;exports.VouchCard=Kd;exports.VouchModal=Qd;exports.auth=j2;exports.fetchAuthorizedOrder=_2;exports.fetchGeneral=r2;exports.fetchOrder=b2;exports.fetchOrders=g2;exports.fetchPrivacyPolicy=p2;exports.fetchRefundPolicy=h2;exports.fetchSubscription=T2;exports.fetchSubscriptions=I2;exports.fetchTerms=f2;exports.fetchThemeAndSettings=u2;exports.fetchTicket=w2;exports.fetchTickets=L2;exports.getBalance=oa;exports.getBalanceSettings=xl;exports.getGatewaysDetail=hu;exports.index=YL;exports.index$1=cP;exports.parseDraftJsText=_l;exports.recapcha=vf;exports.rehypeRaw=Ui;exports.remarkGfm=Pi;exports.sendTicketMessage=D2;exports.uploadImage=C2;exports.useCart=du;exports.useCopy=Zn;exports.useGeneralInfo=hl;exports.useMarkdownIt=ql;exports.useReCaptcha=fu;
|
|
113
|
+
`))}function c(p,b,_,E){const x=_.enter("tableCell"),k=_.enter("phrasing"),y=_.containerPhrasing(p,{...E,before:a,after:a});return k(),x(),y}function l(p,b){return wy(p,{align:b,alignDelimiters:r,padding:n,stringLength:u})}function h(p,b,_){const E=p.children;let x=-1;const k=[],y=b.enter("table");for(;++x<E.length;)k[x]=f(E[x],b,_);return y(),k}function f(p,b,_){const E=p.children;let x=-1;const k=[],y=b.enter("tableRow");for(;++x<E.length;)k[x]=c(E[x],p,b,_);return y(),k}function m(p,b,_){let E=v1.inlineCode(p,b,_);return _.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function bT(){return{exit:{taskListCheckValueChecked:Pc,taskListCheckValueUnchecked:Pc,paragraph:xT}}}function _T(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:CT}}}function Pc(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function xT(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const u=t.children;let a=-1,s;for(;++a<u.length;){const o=u[a];if(o.type==="paragraph"){s=o;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function CT(e,t,n,r){const u=e.children[0],a=typeof e.checked=="boolean"&&u&&u.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(s);let c=v1.listItem(e,t,n,{...r,...o.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(h){return h+s}}function ET(){return[JE(),Cy(),ky(),lT(),bT()]}function yT(e){return{extensions:[ey(),Ey(e),Ay(),gT(e),_T()]}}const TT={tokenize:vT,partial:!0},w1={tokenize:wT,partial:!0},D1={tokenize:DT,partial:!0},L1={tokenize:LT,partial:!0},kT={tokenize:PT,partial:!0},P1={name:"wwwAutolink",tokenize:IT,previous:M1},R1={name:"protocolAutolink",tokenize:NT,previous:O1},Nn={name:"emailAutolink",tokenize:ST,previous:j1},bn={};function AT(){return{text:bn}}let Qn=48;for(;Qn<123;)bn[Qn]=Nn,Qn++,Qn===58?Qn=65:Qn===91&&(Qn=97);bn[43]=Nn;bn[45]=Nn;bn[46]=Nn;bn[95]=Nn;bn[72]=[Nn,R1];bn[104]=[Nn,R1];bn[87]=[Nn,P1];bn[119]=[Nn,P1];function ST(e,t,n){const r=this;let u,a;return s;function s(f){return!$s(f)||!j1.call(r,r.previous)||Li(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return $s(f)?(e.consume(f),o):f===64?(e.consume(f),c):n(f)}function c(f){return f===46?e.check(kT,h,l)(f):f===45||f===95||xt(f)?(a=!0,e.consume(f),c):h(f)}function l(f){return e.consume(f),u=!0,c}function h(f){return a&&u&&kt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function IT(e,t,n){const r=this;return u;function u(s){return s!==87&&s!==119||!M1.call(r,r.previous)||Li(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(TT,e.attempt(w1,e.attempt(D1,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function NT(e,t,n){const r=this;let u="",a=!1;return s;function s(f){return(f===72||f===104)&&O1.call(r,r.previous)&&!Li(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),u+=String.fromCodePoint(f),e.consume(f),o):n(f)}function o(f){if(kt(f)&&u.length<5)return u+=String.fromCodePoint(f),e.consume(f),o;if(f===58){const m=u.toLowerCase();if(m==="http"||m==="https")return e.consume(f),c}return n(f)}function c(f){return f===47?(e.consume(f),a?l:(a=!0,c)):n(f)}function l(f){return f===null||Qu(f)||Fe(f)||sr(f)||Ta(f)?n(f):e.attempt(w1,e.attempt(D1,h),n)(f)}function h(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function vT(e,t,n){let r=0;return u;function u(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),u):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function wT(e,t,n){let r,u,a;return s;function s(l){return l===46||l===95?e.check(L1,c,o)(l):l===null||Fe(l)||sr(l)||l!==45&&Ta(l)?c(l):(a=!0,e.consume(l),s)}function o(l){return l===95?r=!0:(u=r,r=void 0),e.consume(l),s}function c(l){return u||r||!a?n(l):t(l)}}function DT(e,t){let n=0,r=0;return u;function u(s){return s===40?(n++,e.consume(s),u):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(L1,t,a)(s):s===null||Fe(s)||sr(s)?t(s):(e.consume(s),u)}function a(s){return s===41&&r++,e.consume(s),u}}function LT(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),u):o===60||o===null||Fe(o)||sr(o)?t(o):n(o)}function u(o){return o===null||o===40||o===91||Fe(o)||sr(o)?t(o):r(o)}function a(o){return kt(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):kt(o)?(e.consume(o),s):n(o)}}function PT(e,t,n){return r;function r(a){return e.consume(a),u}function u(a){return xt(a)?n(a):t(a)}}function M1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Fe(e)}function O1(e){return!kt(e)}function j1(e){return!(e===47||$s(e))}function $s(e){return e===43||e===45||e===46||e===95||xt(e)}function Li(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const RT={tokenize:VT,partial:!0};function MT(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:BT,continuation:{tokenize:HT},exit:UT}},text:{91:{name:"gfmFootnoteCall",tokenize:FT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:OT,resolveTo:jT}}}}function OT(e,t,n){const r=this;let u=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;u--;){const c=r.events[u][1];if(c.type==="labelImage"){s=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return o;function o(c){if(!s||!s._balanced)return n(c);const l=nn(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function jT(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},u.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",u,t],["exit",u,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function FT(e,t,n){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),c}function c(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(f){if(a>999||f===93&&!s||f===null||f===91||Fe(f))return n(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return u.includes(nn(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Fe(f)||(s=!0),a++,e.consume(f),f===92?h:l}function h(f){return f===91||f===92||f===93?(e.consume(f),a++,l):l(f)}}function BT(e,t,n){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return c;function c(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(b)}function h(b){if(s>999||b===93&&!o||b===null||b===91||Fe(b))return n(b);if(b===93){e.exit("chunkString");const _=e.exit("gfmFootnoteDefinitionLabelString");return a=nn(r.sliceSerialize(_)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return Fe(b)||(o=!0),s++,e.consume(b),b===92?f:h}function f(b){return b===91||b===92||b===93?(e.consume(b),s++,h):h(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),u.includes(a)||u.push(a),we(e,p,"gfmFootnoteDefinitionWhitespace")):n(b)}function p(b){return t(b)}}function HT(e,t,n){return e.check(xu,t,e.attempt(RT,t,n))}function UT(e){e.exit("gfmFootnoteDefinition")}function VT(e,t,n){const r=this;return we(e,u,"gfmFootnoteDefinitionIndent",5);function u(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function $T(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:u};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function u(s,o){let c=-1;for(;++c<s.length;)if(s[c][0]==="enter"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._close){let l=c;for(;l--;)if(s[l][0]==="exit"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._open&&s[c][1].end.offset-s[c][1].start.offset===s[l][1].end.offset-s[l][1].start.offset){s[c][1].type="strikethroughSequence",s[l][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[l][1].start),end:Object.assign({},s[c][1].end)},f={type:"strikethroughText",start:Object.assign({},s[l][1].end),end:Object.assign({},s[c][1].start)},m=[["enter",h,o],["enter",s[l][1],o],["exit",s[l][1],o],["enter",f,o]],p=o.parser.constructs.insideSpan.null;p&&$t(m,m.length,0,ka(p,s.slice(l+1,c),o)),$t(m,m.length,0,[["exit",f,o],["enter",s[c][1],o],["exit",s[c][1],o],["exit",h,o]]),$t(s,l-1,c-l+3,m),c=l+m.length-2;break}}for(c=-1;++c<s.length;)s[c][1].type==="strikethroughSequenceTemporary"&&(s[c][1].type="data");return s}function a(s,o,c){const l=this.previous,h=this.events;let f=0;return m;function m(b){return l===126&&h[h.length-1][1].type!=="characterEscape"?c(b):(s.enter("strikethroughSequenceTemporary"),p(b))}function p(b){const _=Ar(l);if(b===126)return f>1?c(b):(s.consume(b),f++,p);if(f<2&&!n)return c(b);const E=s.exit("strikethroughSequenceTemporary"),x=Ar(b);return E._open=!x||x===2&&!!_,E._close=!_||_===2&&!!x,o(b)}}}class zT{constructor(){this.map=[]}add(t,n,r){qT(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let u=r.pop();for(;u;){for(const a of u)t.push(a);u=r.pop()}this.map.length=0}}function qT(e,t,n,r){let u=0;if(!(n===0&&r.length===0)){for(;u<e.map.length;){if(e.map[u][0]===t){e.map[u][1]+=n,e.map[u][2].push(...r);return}u+=1}e.map.push([t,n,r])}}function ZT(e,t){let n=!1;const r=[];for(;t<e.length;){const u=e[t];if(n){if(u[0]==="enter")u[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function WT(){return{flow:{null:{name:"table",tokenize:YT,resolveAll:GT}}}}function YT(e,t,n){const r=this;let u=0,a=0,s;return o;function o(P){let B=r.events.length-1;for(;B>-1;){const Y=r.events[B][1].type;if(Y==="lineEnding"||Y==="linePrefix")B--;else break}const O=B>-1?r.events[B][1].type:null,X=O==="tableHead"||O==="tableRow"?I:c;return X===I&&r.parser.lazy[r.now().line]?n(P):X(P)}function c(P){return e.enter("tableHead"),e.enter("tableRow"),l(P)}function l(P){return P===124||(s=!0,a+=1),h(P)}function h(P){return P===null?n(P):ce(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),p):n(P):ve(P)?we(e,h,"whitespace")(P):(a+=1,s&&(s=!1,u+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),s=!0,h):(e.enter("data"),f(P)))}function f(P){return P===null||P===124||Fe(P)?(e.exit("data"),h(P)):(e.consume(P),P===92?m:f)}function m(P){return P===92||P===124?(e.consume(P),f):f(P)}function p(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),s=!1,ve(P)?we(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?E(P):P===124?(s=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),_):S(P)}function _(P){return ve(P)?we(e,E,"whitespace")(P):E(P)}function E(P){return P===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),x):P===45?(a+=1,x(P)):P===null||ce(P)?D(P):S(P)}function x(P){return P===45?(e.enter("tableDelimiterFiller"),k(P)):S(P)}function k(P){return P===45?(e.consume(P),k):P===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(P))}function y(P){return ve(P)?we(e,D,"whitespace")(P):D(P)}function D(P){return P===124?b(P):P===null||ce(P)?!s||u!==a?S(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):S(P)}function S(P){return n(P)}function I(P){return e.enter("tableRow"),M(P)}function M(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),M):P===null||ce(P)?(e.exit("tableRow"),t(P)):ve(P)?we(e,M,"whitespace")(P):(e.enter("data"),H(P))}function H(P){return P===null||P===124||Fe(P)?(e.exit("data"),M(P)):(e.consume(P),P===92?U:H)}function U(P){return P===92||P===124?(e.consume(P),H):H(P)}}function GT(e,t){let n=-1,r=!0,u=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,c=0,l,h,f;const m=new zT;for(;++n<e.length;){const p=e[n],b=p[1];p[0]==="enter"?b.type==="tableHead"?(o=!1,c!==0&&(Rc(m,t,c,l,h),h=void 0,c=0),l={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},m.add(n,0,[["enter",l,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,f=void 0,a=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,h={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},m.add(n,0,[["enter",h,t]])),u=b.type==="tableDelimiterRow"?2:h?3:1):u&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],f=Bu(m,t,a,u,void 0,f),a=[0,0,0,0]),s[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],f=Bu(m,t,a,u,void 0,f)),a=s,s=[a[1],n,0,0])):b.type==="tableHead"?(o=!0,c=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(c=n,a[1]!==0?(s[0]=s[1],f=Bu(m,t,a,u,n,f)):s[1]!==0&&(f=Bu(m,t,s,u,n,f)),u=0):u&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(s[3]=n)}for(c!==0&&Rc(m,t,c,l,h),m.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=ZT(t.events,n))}return e}function Bu(e,t,n,r,u,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},br(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const c=br(t.events,n[1]);if(a={type:s,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const l=br(t.events,n[2]),h=br(t.events,n[3]),f={type:o,start:Object.assign({},l),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const m=t.events[n[2]],p=t.events[n[3]];if(m[1].end=Object.assign({},p[1].end),m[1].type="chunkText",m[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,_=n[3]-n[2]-1;e.add(b,_,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return u!==void 0&&(a.end=Object.assign({},br(t.events,u)),e.add(u,0,[["exit",a,t]]),a=void 0),a}function Rc(e,t,n,r,u){const a=[],s=br(t.events,n);u&&(u.end=Object.assign({},s),a.push(["exit",u,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function br(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const XT={name:"tasklistCheck",tokenize:QT};function KT(){return{text:{91:XT}}}function QT(e,t,n){const r=this;return u;function u(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return Fe(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),s):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),s):n(c)}function s(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(c)}function o(c){return ce(c)?t(c):ve(c)?e.check({tokenize:JT},t,n)(c):n(c)}}function JT(e,t,n){return we(e,r,"whitespace");function r(u){return u===null?n(u):t(u)}}function ek(e){return Z0([AT(),MT(),$T(e),WT(),KT()])}const tk={};function Pi(e){const t=this,n=e||tk,r=t.data(),u=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);u.push(ek(n)),a.push(ET()),s.push(yT(n))}const Mc=/[#.]/g;function nk(e,t){const n=e||"",r={};let u=0,a,s;for(;u<n.length;){Mc.lastIndex=u;const o=Mc.exec(n),c=n.slice(u,o?o.index:n.length);c&&(a?a==="#"?r.id=c:Array.isArray(r.className)?r.className.push(c):r.className=[c]:s=c,u+=c.length),o&&(a=o[0],u++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function F1(e,t,n){const r=n?sk(n):void 0;function u(a,s,...o){let c;if(a==null){c={type:"root",children:[]};const l=s;o.unshift(l)}else{c=nk(a,t);const l=c.tagName.toLowerCase(),h=r?r.get(l):void 0;if(c.tagName=h||l,rk(s))o.unshift(s);else for(const[f,m]of Object.entries(s))uk(e,c.properties,f,m)}for(const l of o)zs(c.children,l);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return u}function rk(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const u=t[r];if(u&&typeof u=="object"){if(!Array.isArray(u))return!0;const a=u;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function uk(e,t,n,r){const u=_i(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?u.spaceSeparated?a=Vo(r):u.commaSeparated?a=jo(r):u.commaOrSpaceSeparated?a=Vo(jo(r).join(" ")):a=Oc(u,u.property,r):Array.isArray(r)?a=[...r]:a=u.property==="style"?ak(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(Oc(u,u.property,o));a=s}u.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[u.property]=a}}function zs(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)zs(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?zs(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Oc(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||iu(n)===iu(t)))return!0}return n}function ak(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function sk(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const ik=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],ok=F1(Ea,"div"),ck=F1(Lr,"g",ik);function lk(e){const t=String(e),n=[];return{toOffset:u,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const c=jc(t,n[s-1]);o=c===-1?t.length+1:c+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function u(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],c=jc(t,o),l=c===-1?t.length+1:c+1;if(o===l)break;n.push(l)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function jc(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
114
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const rr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},B1={}.hasOwnProperty,dk=Object.prototype;function fk(e,t){const n=t||{};return Ri({file:n.file||void 0,location:!1,schema:n.space==="svg"?Lr:Ea,verbose:n.verbose||!1},e)}function Ri(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Zu(e,r,n),n}case"#document":case"#document-fragment":{const r=t,u="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:H1(e,t.childNodes),data:{quirksMode:u}},e.file&&e.location){const a=String(e.file),s=lk(a),o=s.toPoint(0),c=s.toPoint(a.length);n.position={start:o,end:c}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Zu(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Zu(e,r,n),n}default:return n=hk(e,t),n}}function H1(e,t){let n=-1;const r=[];for(;++n<t.length;){const u=Ri(e,t[n]);r.push(u)}return r}function hk(e,t){const n=e.schema;e.schema=t.namespaceURI===rr.svg?Lr:Ea;let r=-1;const u={};for(;++r<t.attrs.length;){const o=t.attrs[r],c=(o.prefix?o.prefix+":":"")+o.name;B1.call(dk,c)||(u[c]=o.value)}const s=(e.schema.space==="svg"?ck:ok)(t.tagName,u,H1(e,t.childNodes));if(Zu(e,t,s),s.tagName==="template"){const o=t,c=o.sourceCodeLocation,l=c&&c.startTag&&_r(c.startTag),h=c&&c.endTag&&_r(c.endTag),f=Ri(e,o.content);l&&h&&e.file&&(f.position={start:l.end,end:h.start}),s.content=f}return e.schema=n,s}function Zu(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=pk(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function pk(e,t,n){const r=_r(n);if(t.type==="element"){const u=t.children[t.children.length-1];if(r&&!n.endTag&&u&&u.position&&u.position.end&&(r.end=Object.assign({},u.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)B1.call(n.attrs,s)&&(a[_i(e.schema,s).property]=_r(n.attrs[s]));n.startTag;const o=_r(n.startTag),c=n.endTag?_r(n.endTag):void 0,l={opening:o};c&&(l.closing=c),l.properties=a,t.data={position:l}}}return r}function _r(e){const t=Fc({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Fc({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Fc(e){return e.line&&e.column?e:void 0}class Eu{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Eu.prototype.property={};Eu.prototype.normal={};Eu.prototype.space=null;function U1(e,t){const n={},r={};let u=-1;for(;++u<e.length;)Object.assign(n,e[u].property),Object.assign(r,e[u].normal);return new Eu(n,r,t)}function qs(e){return e.toLowerCase()}class Jt{constructor(t,n){this.property=t,this.attribute=n}}Jt.prototype.space=null;Jt.prototype.boolean=!1;Jt.prototype.booleanish=!1;Jt.prototype.overloadedBoolean=!1;Jt.prototype.number=!1;Jt.prototype.commaSeparated=!1;Jt.prototype.spaceSeparated=!1;Jt.prototype.commaOrSpaceSeparated=!1;Jt.prototype.mustUseProperty=!1;Jt.prototype.defined=!1;let mk=0;const Te=cr(),nt=cr(),V1=cr(),Z=cr(),He=cr(),yr=cr(),Ht=cr();function cr(){return 2**++mk}const Zs=Object.freeze(Object.defineProperty({__proto__:null,boolean:Te,booleanish:nt,commaOrSpaceSeparated:Ht,commaSeparated:yr,number:Z,overloadedBoolean:V1,spaceSeparated:He},Symbol.toStringTag,{value:"Module"})),ms=Object.keys(Zs);class Mi extends Jt{constructor(t,n,r,u){let a=-1;if(super(t,n),Bc(this,"space",u),typeof r=="number")for(;++a<ms.length;){const s=ms[a];Bc(this,ms[a],(r&Zs[s])===Zs[s])}}}Mi.prototype.defined=!0;function Bc(e,t,n){n&&(e[t]=n)}const gk={}.hasOwnProperty;function Rr(e){const t={},n={};let r;for(r in e.properties)if(gk.call(e.properties,r)){const u=e.properties[r],a=new Mi(r,e.transform(e.attributes||{},r),u,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[qs(r)]=r,n[qs(a.attribute)]=r}return new Eu(t,n,e.space)}const $1=Rr({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),z1=Rr({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function q1(e,t){return t in e?e[t]:t}function Z1(e,t){return q1(e,t.toLowerCase())}const W1=Rr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Z1,properties:{xmlns:null,xmlnsXLink:null}}),Y1=Rr({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:nt,ariaAutoComplete:null,ariaBusy:nt,ariaChecked:nt,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:He,ariaCurrent:null,ariaDescribedBy:He,ariaDetails:null,ariaDisabled:nt,ariaDropEffect:He,ariaErrorMessage:null,ariaExpanded:nt,ariaFlowTo:He,ariaGrabbed:nt,ariaHasPopup:null,ariaHidden:nt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:He,ariaLevel:Z,ariaLive:null,ariaModal:nt,ariaMultiLine:nt,ariaMultiSelectable:nt,ariaOrientation:null,ariaOwns:He,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:nt,ariaReadOnly:nt,ariaRelevant:null,ariaRequired:nt,ariaRoleDescription:He,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:nt,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null}}),bk=Rr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Z1,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:yr,acceptCharset:He,accessKey:He,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:He,autoFocus:Te,autoPlay:Te,blocking:He,capture:null,charSet:null,checked:Te,cite:null,className:He,cols:Z,colSpan:null,content:null,contentEditable:nt,controls:Te,controlsList:He,coords:Z|yr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te,defer:Te,dir:null,dirName:null,disabled:Te,download:V1,draggable:nt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:He,height:Z,hidden:Te,high:Z,href:null,hrefLang:null,htmlFor:He,httpEquiv:He,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:He,itemRef:He,itemScope:Te,itemType:He,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Te,optimum:Z,pattern:null,ping:He,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:He,required:Te,reversed:Te,rows:Z,rowSpan:Z,sandbox:He,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootClonable:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:nt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:nt,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:He,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:nt,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:Z,security:null,unselectable:null}}),_k=Rr({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:q1,properties:{about:Ht,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:He,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:yr,g2:yr,glyphName:yr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:Ht,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:He,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ht,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ht,rev:Ht,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ht,requiredFeatures:Ht,requiredFonts:Ht,requiredFormats:Ht,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:Ht,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ht,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ht,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),xk=/^data[-\w.:]+$/i,Hc=/-[a-z]/g,Ck=/[A-Z]/g;function Ek(e,t){const n=qs(t);let r=t,u=Jt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&xk.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Hc,Tk);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Hc.test(a)){let s=a.replace(Ck,yk);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}u=Mi}return new u(r,t)}function yk(e){return"-"+e.toLowerCase()}function Tk(e){return e.charAt(1).toUpperCase()}const kk=U1([z1,$1,W1,Y1,bk],"html"),G1=U1([z1,$1,W1,Y1,_k],"svg"),Ak={},Sk={}.hasOwnProperty,X1=_1("type",{handlers:{root:Nk,element:Pk,text:Dk,comment:Lk,doctype:wk}});function Ik(e,t){const r=(t||Ak).space;return X1(e,r==="svg"?G1:kk)}function Nk(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Oi(e.children,n,t),Mr(e,n),n}function vk(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Oi(e.children,n,t),Mr(e,n),n}function wk(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Mr(e,t),t}function Dk(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Mr(e,t),t}function Lk(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Mr(e,t),t}function Pk(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=G1);const u=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&Sk.call(e.properties,a)){const c=Rk(r,a,e.properties[a]);c&&u.push(c)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:u,namespaceURI:rr[s],childNodes:[],parentNode:null};return o.childNodes=Oi(e.children,o,r),Mr(e,o),e.tagName==="template"&&e.content&&(o.content=vk(e.content,r)),o}function Rk(e,t,n){const r=Ek(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?v0(n):F0(n));const u={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=u.name.indexOf(":");a<0?u.prefix="":(u.name=u.name.slice(a+1),u.prefix=r.attribute.slice(0,a)),u.namespace=rr[r.space]}return u}function Oi(e,t,n){let r=-1;const u=[];if(e)for(;++r<e.length;){const a=X1(e[r],n);a.parentNode=t,u.push(a)}return u}function Mr(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Mk=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Ok=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ze="�";var T;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(T||(T={}));const St={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function K1(e){return e>=55296&&e<=57343}function jk(e){return e>=56320&&e<=57343}function Fk(e,t){return(e-55296)*1024+9216+t}function Q1(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function J1(e){return e>=64976&&e<=65007||Ok.has(e)}var F;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(F||(F={}));const Bk=65536;class Hk{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Bk,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:u,offset:a}=this,s=u+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(jk(n))return this.pos++,this._addGap(),Fk(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,T.EOF;return this._err(F.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,T.EOF;const r=this.html.charCodeAt(n);return r===T.CARRIAGE_RETURN?T.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,T.EOF;let t=this.html.charCodeAt(this.pos);return t===T.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,T.LINE_FEED):t===T.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,K1(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===T.LINE_FEED||t===T.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Q1(t)?this._err(F.controlCharacterInInputStream):J1(t)&&this._err(F.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ie;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ie||(Ie={}));function ed(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const Uk=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Vk=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function $k(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Vk.get(e))!==null&&t!==void 0?t:e}var lt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(lt||(lt={}));const zk=32;var Vn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Vn||(Vn={}));function Ws(e){return e>=lt.ZERO&&e<=lt.NINE}function qk(e){return e>=lt.UPPER_A&&e<=lt.UPPER_F||e>=lt.LOWER_A&&e<=lt.LOWER_F}function Zk(e){return e>=lt.UPPER_A&&e<=lt.UPPER_Z||e>=lt.LOWER_A&&e<=lt.LOWER_Z||Ws(e)}function Wk(e){return e===lt.EQUALS||Zk(e)}var it;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(it||(it={}));var Sn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Sn||(Sn={}));class Yk{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=it.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Sn.Strict}startEntity(t){this.decodeMode=t,this.state=it.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case it.EntityStart:return t.charCodeAt(n)===lt.NUM?(this.state=it.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=it.NamedEntity,this.stateNamedEntity(t,n));case it.NumericStart:return this.stateNumericStart(t,n);case it.NumericDecimal:return this.stateNumericDecimal(t,n);case it.NumericHex:return this.stateNumericHex(t,n);case it.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|zk)===lt.LOWER_X?(this.state=it.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=it.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,u){if(n!==r){const a=r-n;this.result=this.result*Math.pow(u,a)+Number.parseInt(t.substr(n,a),u),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(Ws(u)||qk(u))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(Ws(u))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(u,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===lt.SEMI)this.consumed+=1;else if(this.decodeMode===Sn.Strict)return 0;return this.emitCodePoint($k(this.result),this.consumed),this.errors&&(t!==lt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let u=r[this.treeIndex],a=(u&Vn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Gk(r,u,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Sn.Attribute&&(a===0||Wk(s))?0:this.emitNotTerminatedNamedEntity();if(u=r[this.treeIndex],a=(u&Vn.VALUE_LENGTH)>>14,a!==0){if(s===lt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Sn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,u=(r[n]&Vn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[t]&~Vn.VALUE_LENGTH:u[t+1],r),n===3&&this.emitCodePoint(u[t+2],r),r}end(){var t;switch(this.state){case it.NamedEntity:return this.result!==0&&(this.decodeMode!==Sn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case it.NumericDecimal:return this.emitNumericEntity(0,2);case it.NumericHex:return this.emitNumericEntity(0,3);case it.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case it.EntityStart:return 0}}}function Gk(e,t,n,r){const u=(t&Vn.BRANCH_LENGTH)>>7,a=t&Vn.JUMP_TABLE;if(u===0)return a!==0&&r===a?n:-1;if(a){const c=r-a;return c<0||c>=u?-1:e[n+c]-1}let s=n,o=s+u-1;for(;s<=o;){const c=s+o>>>1,l=e[c];if(l<r)s=c+1;else if(l>r)o=c-1;else return e[c+u]}return-1}var $;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})($||($={}));var ar;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ar||(ar={}));var Xt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Xt||(Xt={}));var R;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(R||(R={}));var d;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(d||(d={}));const Xk=new Map([[R.A,d.A],[R.ADDRESS,d.ADDRESS],[R.ANNOTATION_XML,d.ANNOTATION_XML],[R.APPLET,d.APPLET],[R.AREA,d.AREA],[R.ARTICLE,d.ARTICLE],[R.ASIDE,d.ASIDE],[R.B,d.B],[R.BASE,d.BASE],[R.BASEFONT,d.BASEFONT],[R.BGSOUND,d.BGSOUND],[R.BIG,d.BIG],[R.BLOCKQUOTE,d.BLOCKQUOTE],[R.BODY,d.BODY],[R.BR,d.BR],[R.BUTTON,d.BUTTON],[R.CAPTION,d.CAPTION],[R.CENTER,d.CENTER],[R.CODE,d.CODE],[R.COL,d.COL],[R.COLGROUP,d.COLGROUP],[R.DD,d.DD],[R.DESC,d.DESC],[R.DETAILS,d.DETAILS],[R.DIALOG,d.DIALOG],[R.DIR,d.DIR],[R.DIV,d.DIV],[R.DL,d.DL],[R.DT,d.DT],[R.EM,d.EM],[R.EMBED,d.EMBED],[R.FIELDSET,d.FIELDSET],[R.FIGCAPTION,d.FIGCAPTION],[R.FIGURE,d.FIGURE],[R.FONT,d.FONT],[R.FOOTER,d.FOOTER],[R.FOREIGN_OBJECT,d.FOREIGN_OBJECT],[R.FORM,d.FORM],[R.FRAME,d.FRAME],[R.FRAMESET,d.FRAMESET],[R.H1,d.H1],[R.H2,d.H2],[R.H3,d.H3],[R.H4,d.H4],[R.H5,d.H5],[R.H6,d.H6],[R.HEAD,d.HEAD],[R.HEADER,d.HEADER],[R.HGROUP,d.HGROUP],[R.HR,d.HR],[R.HTML,d.HTML],[R.I,d.I],[R.IMG,d.IMG],[R.IMAGE,d.IMAGE],[R.INPUT,d.INPUT],[R.IFRAME,d.IFRAME],[R.KEYGEN,d.KEYGEN],[R.LABEL,d.LABEL],[R.LI,d.LI],[R.LINK,d.LINK],[R.LISTING,d.LISTING],[R.MAIN,d.MAIN],[R.MALIGNMARK,d.MALIGNMARK],[R.MARQUEE,d.MARQUEE],[R.MATH,d.MATH],[R.MENU,d.MENU],[R.META,d.META],[R.MGLYPH,d.MGLYPH],[R.MI,d.MI],[R.MO,d.MO],[R.MN,d.MN],[R.MS,d.MS],[R.MTEXT,d.MTEXT],[R.NAV,d.NAV],[R.NOBR,d.NOBR],[R.NOFRAMES,d.NOFRAMES],[R.NOEMBED,d.NOEMBED],[R.NOSCRIPT,d.NOSCRIPT],[R.OBJECT,d.OBJECT],[R.OL,d.OL],[R.OPTGROUP,d.OPTGROUP],[R.OPTION,d.OPTION],[R.P,d.P],[R.PARAM,d.PARAM],[R.PLAINTEXT,d.PLAINTEXT],[R.PRE,d.PRE],[R.RB,d.RB],[R.RP,d.RP],[R.RT,d.RT],[R.RTC,d.RTC],[R.RUBY,d.RUBY],[R.S,d.S],[R.SCRIPT,d.SCRIPT],[R.SEARCH,d.SEARCH],[R.SECTION,d.SECTION],[R.SELECT,d.SELECT],[R.SOURCE,d.SOURCE],[R.SMALL,d.SMALL],[R.SPAN,d.SPAN],[R.STRIKE,d.STRIKE],[R.STRONG,d.STRONG],[R.STYLE,d.STYLE],[R.SUB,d.SUB],[R.SUMMARY,d.SUMMARY],[R.SUP,d.SUP],[R.TABLE,d.TABLE],[R.TBODY,d.TBODY],[R.TEMPLATE,d.TEMPLATE],[R.TEXTAREA,d.TEXTAREA],[R.TFOOT,d.TFOOT],[R.TD,d.TD],[R.TH,d.TH],[R.THEAD,d.THEAD],[R.TITLE,d.TITLE],[R.TR,d.TR],[R.TRACK,d.TRACK],[R.TT,d.TT],[R.U,d.U],[R.UL,d.UL],[R.SVG,d.SVG],[R.VAR,d.VAR],[R.WBR,d.WBR],[R.XMP,d.XMP]]);function Or(e){var t;return(t=Xk.get(e))!==null&&t!==void 0?t:d.UNKNOWN}const z=d,Kk={[$.HTML]:new Set([z.ADDRESS,z.APPLET,z.AREA,z.ARTICLE,z.ASIDE,z.BASE,z.BASEFONT,z.BGSOUND,z.BLOCKQUOTE,z.BODY,z.BR,z.BUTTON,z.CAPTION,z.CENTER,z.COL,z.COLGROUP,z.DD,z.DETAILS,z.DIR,z.DIV,z.DL,z.DT,z.EMBED,z.FIELDSET,z.FIGCAPTION,z.FIGURE,z.FOOTER,z.FORM,z.FRAME,z.FRAMESET,z.H1,z.H2,z.H3,z.H4,z.H5,z.H6,z.HEAD,z.HEADER,z.HGROUP,z.HR,z.HTML,z.IFRAME,z.IMG,z.INPUT,z.LI,z.LINK,z.LISTING,z.MAIN,z.MARQUEE,z.MENU,z.META,z.NAV,z.NOEMBED,z.NOFRAMES,z.NOSCRIPT,z.OBJECT,z.OL,z.P,z.PARAM,z.PLAINTEXT,z.PRE,z.SCRIPT,z.SECTION,z.SELECT,z.SOURCE,z.STYLE,z.SUMMARY,z.TABLE,z.TBODY,z.TD,z.TEMPLATE,z.TEXTAREA,z.TFOOT,z.TH,z.THEAD,z.TITLE,z.TR,z.TRACK,z.UL,z.WBR,z.XMP]),[$.MATHML]:new Set([z.MI,z.MO,z.MN,z.MS,z.MTEXT,z.ANNOTATION_XML]),[$.SVG]:new Set([z.TITLE,z.FOREIGN_OBJECT,z.DESC]),[$.XLINK]:new Set,[$.XML]:new Set,[$.XMLNS]:new Set},Ys=new Set([z.H1,z.H2,z.H3,z.H4,z.H5,z.H6]);R.STYLE,R.SCRIPT,R.XMP,R.IFRAME,R.NOEMBED,R.NOFRAMES,R.PLAINTEXT;var A;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(A||(A={}));const Je={DATA:A.DATA,RCDATA:A.RCDATA,RAWTEXT:A.RAWTEXT,SCRIPT_DATA:A.SCRIPT_DATA,PLAINTEXT:A.PLAINTEXT,CDATA_SECTION:A.CDATA_SECTION};function Qk(e){return e>=T.DIGIT_0&&e<=T.DIGIT_9}function Zr(e){return e>=T.LATIN_CAPITAL_A&&e<=T.LATIN_CAPITAL_Z}function Jk(e){return e>=T.LATIN_SMALL_A&&e<=T.LATIN_SMALL_Z}function Mn(e){return Jk(e)||Zr(e)}function Uc(e){return Mn(e)||Qk(e)}function Hu(e){return e+32}function td(e){return e===T.SPACE||e===T.LINE_FEED||e===T.TABULATION||e===T.FORM_FEED}function Vc(e){return td(e)||e===T.SOLIDUS||e===T.GREATER_THAN_SIGN}function eA(e){return e===T.NULL?F.nullCharacterReference:e>1114111?F.characterReferenceOutsideUnicodeRange:K1(e)?F.surrogateCharacterReference:J1(e)?F.noncharacterCharacterReference:Q1(e)||e===T.CARRIAGE_RETURN?F.controlCharacterReference:null}class tA{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=A.DATA,this.returnState=A.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Hk(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Yk(Uk,(r,u)=>{this.preprocessor.pos=this.entityStartPos+u-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(F.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(F.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const u=eA(r);u&&this._err(u,1)}}:void 0)}_err(t,n=0){var r,u;(u=(r=this.handler).onParseError)===null||u===void 0||u.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ie.START_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ie.END_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ie.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ie.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(ed(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const u=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);u[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(F.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Or(t.tagName),t.type===Ie.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(F.endTagWithAttributes),t.selfClosing&&this._err(F.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ie.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ie.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ie.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ie.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=td(t)?Ie.WHITESPACE_CHARACTER:t===T.NULL?Ie.NULL_CHARACTER:Ie.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ie.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=A.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Sn.Attribute:Sn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===A.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case A.DATA:{this._stateData(t);break}case A.RCDATA:{this._stateRcdata(t);break}case A.RAWTEXT:{this._stateRawtext(t);break}case A.SCRIPT_DATA:{this._stateScriptData(t);break}case A.PLAINTEXT:{this._statePlaintext(t);break}case A.TAG_OPEN:{this._stateTagOpen(t);break}case A.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case A.TAG_NAME:{this._stateTagName(t);break}case A.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case A.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case A.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case A.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case A.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case A.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case A.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case A.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case A.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case A.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case A.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case A.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case A.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case A.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case A.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case A.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case A.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case A.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case A.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case A.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case A.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case A.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case A.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case A.BOGUS_COMMENT:{this._stateBogusComment(t);break}case A.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case A.COMMENT_START:{this._stateCommentStart(t);break}case A.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case A.COMMENT:{this._stateComment(t);break}case A.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case A.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case A.COMMENT_END:{this._stateCommentEnd(t);break}case A.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case A.DOCTYPE:{this._stateDoctype(t);break}case A.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case A.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case A.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case A.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case A.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case A.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case A.CDATA_SECTION:{this._stateCdataSection(t);break}case A.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case A.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case A.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case A.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case T.LESS_THAN_SIGN:{this.state=A.TAG_OPEN;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitCodePoint(t);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case T.AMPERSAND:{this._startCharacterReference();break}case T.LESS_THAN_SIGN:{this.state=A.RCDATA_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ze);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case T.LESS_THAN_SIGN:{this.state=A.RAWTEXT_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ze);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ze);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ze);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Mn(t))this._createStartTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case T.EXCLAMATION_MARK:{this.state=A.MARKUP_DECLARATION_OPEN;break}case T.SOLIDUS:{this.state=A.END_TAG_OPEN;break}case T.QUESTION_MARK:{this._err(F.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t);break}case T.EOF:{this._err(F.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(F.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=A.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Mn(t))this._createEndTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case T.GREATER_THAN_SIGN:{this._err(F.missingEndTagName),this.state=A.DATA;break}case T.EOF:{this._err(F.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(F.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_ATTRIBUTE_NAME;break}case T.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.tagName+=ze;break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Zr(t)?Hu(t):t)}}_stateRcdataLessThanSign(t){t===T.SOLIDUS?this.state=A.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Mn(t)?(this.state=A.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=A.BEFORE_ATTRIBUTE_NAME,!1;case T.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=A.SELF_CLOSING_START_TAG,!1;case T.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=A.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===T.SOLIDUS?this.state=A.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Mn(t)?(this.state=A.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case T.SOLIDUS:{this.state=A.SCRIPT_DATA_END_TAG_OPEN;break}case T.EXCLAMATION_MARK:{this.state=A.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=A.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Mn(t)?(this.state=A.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===T.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===T.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ze);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(ze);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case T.HYPHEN_MINUS:{this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(ze);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===T.SOLIDUS?this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Mn(t)?(this._emitChars("<"),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Mn(t)?(this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(St.SCRIPT,!1)&&Vc(this.preprocessor.peek(St.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<St.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ze);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ze);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case T.HYPHEN_MINUS:{this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ze);break}case T.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===T.SOLIDUS?(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(St.SCRIPT,!1)&&Vc(this.preprocessor.peek(St.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<St.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.SOLIDUS:case T.GREATER_THAN_SIGN:case T.EOF:{this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case T.EQUALS_SIGN:{this._err(F.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=A.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:case T.SOLIDUS:case T.GREATER_THAN_SIGN:case T.EOF:{this._leaveAttrName(),this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case T.EQUALS_SIGN:{this._leaveAttrName(),this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case T.QUOTATION_MARK:case T.APOSTROPHE:case T.LESS_THAN_SIGN:{this._err(F.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.name+=ze;break}default:this.currentAttr.name+=String.fromCodePoint(Zr(t)?Hu(t):t)}}_stateAfterAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case T.EQUALS_SIGN:{this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{this.state=A.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this.state=A.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingAttributeValue),this.state=A.DATA,this.emitCurrentTagToken();break}default:this.state=A.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case T.QUOTATION_MARK:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=ze;break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case T.APOSTROPHE:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=ze;break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case T.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=ze;break}case T.QUOTATION_MARK:case T.APOSTROPHE:case T.LESS_THAN_SIGN:case T.EQUALS_SIGN:case T.GRAVE_ACCENT:{this._err(F.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case T.SOLIDUS:{this._leaveAttrValue(),this.state=A.SELF_CLOSING_START_TAG;break}case T.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._err(F.missingWhitespaceBetweenAttributes),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case T.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=A.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._err(F.unexpectedSolidusInTag),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(n);break}case T.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.data+=ze;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(St.DASH_DASH,!0)?(this._createCommentToken(St.DASH_DASH.length+1),this.state=A.COMMENT_START):this._consumeSequenceIfMatch(St.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(St.DOCTYPE.length+1),this.state=A.DOCTYPE):this._consumeSequenceIfMatch(St.CDATA_START,!0)?this.inForeignNode?this.state=A.CDATA_SECTION:(this._err(F.cdataInHtmlContent),this._createCommentToken(St.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=A.BOGUS_COMMENT):this._ensureHibernation()||(this._err(F.incorrectlyOpenedComment),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_START_DASH;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptClosingOfEmptyComment),this.state=A.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptClosingOfEmptyComment),this.state=A.DATA,this.emitCurrentComment(n);break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_END_DASH;break}case T.LESS_THAN_SIGN:{n.data+="<",this.state=A.COMMENT_LESS_THAN_SIGN;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.data+=ze;break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case T.EXCLAMATION_MARK:{n.data+="!",this.state=A.COMMENT_LESS_THAN_SIGN_BANG;break}case T.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===T.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=A.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===T.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=A.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==T.GREATER_THAN_SIGN&&t!==T.EOF&&this._err(F.nestedComment),this.state=A.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(n);break}case T.EXCLAMATION_MARK:{this.state=A.COMMENT_END_BANG;break}case T.HYPHEN_MINUS:{n.data+="-";break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{n.data+="--!",this.state=A.COMMENT_END_DASH;break}case T.GREATER_THAN_SIGN:{this._err(F.incorrectlyClosedComment),this.state=A.DATA,this.emitCurrentComment(n);break}case T.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=A.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case T.EOF:{this._err(F.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingWhitespaceBeforeDoctypeName),this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Zr(t))this._createDoctypeToken(String.fromCharCode(Hu(t))),this.state=A.DOCTYPE_NAME;else switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.NULL:{this._err(F.unexpectedNullCharacter),this._createDoctypeToken(ze),this.state=A.DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=A.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.AFTER_DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.name+=ze;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Zr(t)?Hu(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(St.PUBLIC,!1)?this.state=A.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(St.SYSTEM,!1)?this.state=A.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(F.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.QUOTATION_MARK:{this._err(F.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(F.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case T.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.publicId+=ze;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case T.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.publicId+=ze;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case T.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.QUOTATION_MARK:{this._err(F.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(F.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.QUOTATION_MARK:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.QUOTATION_MARK:{this._err(F.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(F.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(F.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case T.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.systemId+=ze;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case T.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.NULL:{this._err(F.unexpectedNullCharacter),n.systemId+=ze;break}case T.GREATER_THAN_SIGN:{this._err(F.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case T.NULL:{this._err(F.unexpectedNullCharacter);break}case T.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case T.RIGHT_SQUARE_BRACKET:{this.state=A.CDATA_SECTION_BRACKET;break}case T.EOF:{this._err(F.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===T.RIGHT_SQUARE_BRACKET?this.state=A.CDATA_SECTION_END:(this._emitChars("]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case T.GREATER_THAN_SIGN:{this.state=A.DATA;break}case T.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(T.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Uc(this.preprocessor.peek(1))?A.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Uc(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===T.SEMICOLON&&this._err(F.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const nd=new Set([d.DD,d.DT,d.LI,d.OPTGROUP,d.OPTION,d.P,d.RB,d.RP,d.RT,d.RTC]),$c=new Set([...nd,d.CAPTION,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]),ta=new Set([d.APPLET,d.CAPTION,d.HTML,d.MARQUEE,d.OBJECT,d.TABLE,d.TD,d.TEMPLATE,d.TH]),nA=new Set([...ta,d.OL,d.UL]),rA=new Set([...ta,d.BUTTON]),zc=new Set([d.ANNOTATION_XML,d.MI,d.MN,d.MO,d.MS,d.MTEXT]),qc=new Set([d.DESC,d.FOREIGN_OBJECT,d.TITLE]),uA=new Set([d.TR,d.TEMPLATE,d.HTML]),aA=new Set([d.TBODY,d.TFOOT,d.THEAD,d.TEMPLATE,d.HTML]),sA=new Set([d.TABLE,d.TEMPLATE,d.HTML]),iA=new Set([d.TD,d.TH]);class oA{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=d.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===d.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===$.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const u=this._indexOf(t)+1;this.items.splice(u,0,n),this.tagIDs.splice(u,0,r),this.stackTop++,u===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,u===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==$.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Ys,$.HTML)}popUntilTableCellPopped(){this.popUntilPopped(iA,$.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(sA,$.HTML)}clearBackToTableBodyContext(){this.clearBackTo(aA,$.HTML)}clearBackToTableRowContext(){this.clearBackTo(uA,$.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===d.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===d.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const u=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case $.HTML:{if(u===t)return!0;if(n.has(u))return!1;break}case $.SVG:{if(qc.has(u))return!1;break}case $.MATHML:{if(zc.has(u))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,ta)}hasInListItemScope(t){return this.hasInDynamicScope(t,nA)}hasInButtonScope(t){return this.hasInDynamicScope(t,rA)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case $.HTML:{if(Ys.has(n))return!0;if(ta.has(n))return!1;break}case $.SVG:{if(qc.has(n))return!1;break}case $.MATHML:{if(zc.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===$.HTML)switch(this.tagIDs[n]){case t:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===$.HTML)switch(this.tagIDs[t]){case d.TBODY:case d.THEAD:case d.TFOOT:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===$.HTML)switch(this.tagIDs[n]){case t:return!0;case d.OPTION:case d.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&nd.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&$c.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&$c.has(this.currentTagId);)this.pop()}}const gs=3;var dn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(dn||(dn={}));const Zc={type:dn.Marker};class cA{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],u=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const c=this.entries[o];if(c.type===dn.Marker)break;const{element:l}=c;if(this.treeAdapter.getTagName(l)===a&&this.treeAdapter.getNamespaceURI(l)===s){const h=this.treeAdapter.getAttrList(l);h.length===u&&r.push({idx:o,attrs:h})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<gs)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<gs)return;const u=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(c=>u.get(c.name)===c.value)&&(a+=1,a>=gs&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Zc)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:dn.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:dn.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Zc);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===dn.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===dn.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===dn.Element&&n.element===t)}}const On={createDocument(){return{nodeName:"#document",mode:Xt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const u=e.childNodes.find(a=>a.nodeName==="#documentType");if(u)u.name=t,u.publicId=n,u.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};On.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(On.isTextNode(n)){n.value+=t;return}}On.appendChild(e,On.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&On.isTextNode(r)?r.value+=t:On.insertBefore(e,On.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},rd="html",lA="about:legacy-compat",dA="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ud=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],fA=[...ud,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],hA=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),ad=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],pA=[...ad,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Wc(e,t){return t.some(n=>e.startsWith(n))}function mA(e){return e.name===rd&&e.publicId===null&&(e.systemId===null||e.systemId===lA)}function gA(e){if(e.name!==rd)return Xt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===dA)return Xt.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),hA.has(n))return Xt.QUIRKS;let r=t===null?fA:ud;if(Wc(n,r))return Xt.QUIRKS;if(r=t===null?ad:pA,Wc(n,r))return Xt.LIMITED_QUIRKS}return Xt.NO_QUIRKS}const Yc={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},bA="definitionurl",_A="definitionURL",xA=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),CA=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:$.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:$.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:$.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:$.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:$.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:$.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:$.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:$.XML}],["xml:space",{prefix:"xml",name:"space",namespace:$.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:$.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:$.XMLNS}]]),EA=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),yA=new Set([d.B,d.BIG,d.BLOCKQUOTE,d.BODY,d.BR,d.CENTER,d.CODE,d.DD,d.DIV,d.DL,d.DT,d.EM,d.EMBED,d.H1,d.H2,d.H3,d.H4,d.H5,d.H6,d.HEAD,d.HR,d.I,d.IMG,d.LI,d.LISTING,d.MENU,d.META,d.NOBR,d.OL,d.P,d.PRE,d.RUBY,d.S,d.SMALL,d.SPAN,d.STRONG,d.STRIKE,d.SUB,d.SUP,d.TABLE,d.TT,d.U,d.UL,d.VAR]);function TA(e){const t=e.tagID;return t===d.FONT&&e.attrs.some(({name:r})=>r===ar.COLOR||r===ar.SIZE||r===ar.FACE)||yA.has(t)}function sd(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===bA){e.attrs[t].name=_A;break}}function id(e){for(let t=0;t<e.attrs.length;t++){const n=xA.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function ji(e){for(let t=0;t<e.attrs.length;t++){const n=CA.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function kA(e){const t=EA.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Or(e.tagName))}function AA(e,t){return t===$.MATHML&&(e===d.MI||e===d.MO||e===d.MN||e===d.MS||e===d.MTEXT)}function SA(e,t,n){if(t===$.MATHML&&e===d.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ar.ENCODING){const u=n[r].value.toLowerCase();return u===Yc.TEXT_HTML||u===Yc.APPLICATION_XML}}return t===$.SVG&&(e===d.FOREIGN_OBJECT||e===d.DESC||e===d.TITLE)}function IA(e,t,n,r){return(!r||r===$.HTML)&&SA(e,t,n)||(!r||r===$.MATHML)&&AA(e,t)}const NA="hidden",vA=8,wA=3;var w;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(w||(w={}));const DA={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},od=new Set([d.TABLE,d.TBODY,d.TFOOT,d.THEAD,d.TR]),Gc={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:On,onParseError:null};class Xc{constructor(t,n,r=null,u=null){this.fragmentContext=r,this.scriptHandler=u,this.currentToken=null,this.stopped=!1,this.insertionMode=w.INITIAL,this.originalInsertionMode=w.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Gc,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new tA(this.options,this),this.activeFormattingElements=new cA(this.treeAdapter),this.fragmentContextID=r?Or(this.treeAdapter.getTagName(r)):d.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new oA(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Gc,...n};t??(t=r.treeAdapter.createElement(R.TEMPLATE,$.HTML,[]));const u=r.treeAdapter.createElement("documentmock",$.HTML,[]),a=new this(r,u,t);return a.fragmentContextID===d.TEMPLATE&&a.tmplInsertionModeStack.unshift(w.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var u;if(!this.onParseError)return;const a=(u=t.location)!==null&&u!==void 0?u:DA,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var u,a;(a=(u=this.treeAdapter).onItemPush)===null||a===void 0||a.call(u,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,u;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(u=(r=this.treeAdapter).onItemPop)===null||u===void 0||u.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===$.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,$.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=w.TEXT}switchToPlaintextParsing(){this.insertionMode=w.TEXT,this.originalInsertionMode=w.IN_BODY,this.tokenizer.state=Je.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===R.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==$.HTML))switch(this.fragmentContextID){case d.TITLE:case d.TEXTAREA:{this.tokenizer.state=Je.RCDATA;break}case d.STYLE:case d.XMP:case d.IFRAME:case d.NOEMBED:case d.NOFRAMES:case d.NOSCRIPT:{this.tokenizer.state=Je.RAWTEXT;break}case d.SCRIPT:{this.tokenizer.state=Je.SCRIPT_DATA;break}case d.PLAINTEXT:{this.tokenizer.state=Je.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",u=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,u),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,$.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,$.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(R.HTML,$.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,d.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const u=this.treeAdapter.getChildNodes(n),a=r?u.lastIndexOf(r):u.length,s=u[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:c,endCol:l,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:c,endCol:l,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,u=this.treeAdapter.getTagName(t),a=n.type===Ie.END_TAG&&u===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===d.SVG&&this.treeAdapter.getTagName(n)===R.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===$.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===d.MGLYPH||t.tagID===d.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,$.HTML)}_processToken(t){switch(t.type){case Ie.CHARACTER:{this.onCharacter(t);break}case Ie.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ie.COMMENT:{this.onComment(t);break}case Ie.DOCTYPE:{this.onDoctype(t);break}case Ie.START_TAG:{this._processStartTag(t);break}case Ie.END_TAG:{this.onEndTag(t);break}case Ie.EOF:{this.onEof(t);break}case Ie.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const u=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return IA(t,u,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(u=>u.type===dn.Marker||this.openElements.contains(u.element)),r=n===-1?t-1:n-1;for(let u=r;u>=0;u--){const a=this.activeFormattingElements.entries[u];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=w.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(d.P),this.openElements.popUntilTagNamePopped(d.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case d.TR:{this.insertionMode=w.IN_ROW;return}case d.TBODY:case d.THEAD:case d.TFOOT:{this.insertionMode=w.IN_TABLE_BODY;return}case d.CAPTION:{this.insertionMode=w.IN_CAPTION;return}case d.COLGROUP:{this.insertionMode=w.IN_COLUMN_GROUP;return}case d.TABLE:{this.insertionMode=w.IN_TABLE;return}case d.BODY:{this.insertionMode=w.IN_BODY;return}case d.FRAMESET:{this.insertionMode=w.IN_FRAMESET;return}case d.SELECT:{this._resetInsertionModeForSelect(t);return}case d.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case d.HTML:{this.insertionMode=this.headElement?w.AFTER_HEAD:w.BEFORE_HEAD;return}case d.TD:case d.TH:{if(t>0){this.insertionMode=w.IN_CELL;return}break}case d.HEAD:{if(t>0){this.insertionMode=w.IN_HEAD;return}break}}this.insertionMode=w.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===d.TEMPLATE)break;if(r===d.TABLE){this.insertionMode=w.IN_SELECT_IN_TABLE;return}}this.insertionMode=w.IN_SELECT}_isElementCausesFosterParenting(t){return od.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case d.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===$.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case d.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Kk[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){iI(this,t);return}switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Kr(this,t);break}case w.BEFORE_HEAD:{Qr(this,t);break}case w.IN_HEAD:{Jr(this,t);break}case w.IN_HEAD_NO_SCRIPT:{eu(this,t);break}case w.AFTER_HEAD:{tu(this,t);break}case w.IN_BODY:case w.IN_CAPTION:case w.IN_CELL:case w.IN_TEMPLATE:{ld(this,t);break}case w.TEXT:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{bs(this,t);break}case w.IN_TABLE_TEXT:{gd(this,t);break}case w.IN_COLUMN_GROUP:{na(this,t);break}case w.AFTER_BODY:{ra(this,t);break}case w.AFTER_AFTER_BODY:{Wu(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){sI(this,t);return}switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Kr(this,t);break}case w.BEFORE_HEAD:{Qr(this,t);break}case w.IN_HEAD:{Jr(this,t);break}case w.IN_HEAD_NO_SCRIPT:{eu(this,t);break}case w.AFTER_HEAD:{tu(this,t);break}case w.TEXT:{this._insertCharacters(t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{bs(this,t);break}case w.IN_COLUMN_GROUP:{na(this,t);break}case w.AFTER_BODY:{ra(this,t);break}case w.AFTER_AFTER_BODY:{Wu(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Gs(this,t);return}switch(this.insertionMode){case w.INITIAL:case w.BEFORE_HTML:case w.BEFORE_HEAD:case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:case w.IN_BODY:case w.IN_TABLE:case w.IN_CAPTION:case w.IN_COLUMN_GROUP:case w.IN_TABLE_BODY:case w.IN_ROW:case w.IN_CELL:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:case w.IN_TEMPLATE:case w.IN_FRAMESET:case w.AFTER_FRAMESET:{Gs(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.AFTER_BODY:{FA(this,t);break}case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{BA(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case w.INITIAL:{HA(this,t);break}case w.BEFORE_HEAD:case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:{this._err(t,F.misplacedDoctype);break}case w.IN_TABLE_TEXT:{$r(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,F.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?oI(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{UA(this,t);break}case w.BEFORE_HEAD:{$A(this,t);break}case w.IN_HEAD:{an(this,t);break}case w.IN_HEAD_NO_SCRIPT:{ZA(this,t);break}case w.AFTER_HEAD:{YA(this,t);break}case w.IN_BODY:{Et(this,t);break}case w.IN_TABLE:{Ir(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.IN_CAPTION:{zS(this,t);break}case w.IN_COLUMN_GROUP:{Hi(this,t);break}case w.IN_TABLE_BODY:{La(this,t);break}case w.IN_ROW:{Pa(this,t);break}case w.IN_CELL:{WS(this,t);break}case w.IN_SELECT:{xd(this,t);break}case w.IN_SELECT_IN_TABLE:{GS(this,t);break}case w.IN_TEMPLATE:{KS(this,t);break}case w.AFTER_BODY:{JS(this,t);break}case w.IN_FRAMESET:{eI(this,t);break}case w.AFTER_FRAMESET:{nI(this,t);break}case w.AFTER_AFTER_BODY:{uI(this,t);break}case w.AFTER_AFTER_FRAMESET:{aI(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?cI(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{VA(this,t);break}case w.BEFORE_HEAD:{zA(this,t);break}case w.IN_HEAD:{qA(this,t);break}case w.IN_HEAD_NO_SCRIPT:{WA(this,t);break}case w.AFTER_HEAD:{GA(this,t);break}case w.IN_BODY:{Da(this,t);break}case w.TEXT:{RS(this,t);break}case w.IN_TABLE:{lu(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.IN_CAPTION:{qS(this,t);break}case w.IN_COLUMN_GROUP:{ZS(this,t);break}case w.IN_TABLE_BODY:{Xs(this,t);break}case w.IN_ROW:{_d(this,t);break}case w.IN_CELL:{YS(this,t);break}case w.IN_SELECT:{Cd(this,t);break}case w.IN_SELECT_IN_TABLE:{XS(this,t);break}case w.IN_TEMPLATE:{QS(this,t);break}case w.AFTER_BODY:{yd(this,t);break}case w.IN_FRAMESET:{tI(this,t);break}case w.AFTER_FRAMESET:{rI(this,t);break}case w.AFTER_AFTER_BODY:{Wu(this,t);break}}}onEof(t){switch(this.insertionMode){case w.INITIAL:{Vr(this,t);break}case w.BEFORE_HTML:{Kr(this,t);break}case w.BEFORE_HEAD:{Qr(this,t);break}case w.IN_HEAD:{Jr(this,t);break}case w.IN_HEAD_NO_SCRIPT:{eu(this,t);break}case w.AFTER_HEAD:{tu(this,t);break}case w.IN_BODY:case w.IN_TABLE:case w.IN_CAPTION:case w.IN_COLUMN_GROUP:case w.IN_TABLE_BODY:case w.IN_ROW:case w.IN_CELL:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:{pd(this,t);break}case w.TEXT:{MS(this,t);break}case w.IN_TABLE_TEXT:{$r(this,t);break}case w.IN_TEMPLATE:{Ed(this,t);break}case w.AFTER_BODY:case w.IN_FRAMESET:case w.AFTER_FRAMESET:case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{Bi(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===T.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:case w.TEXT:case w.IN_COLUMN_GROUP:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:case w.IN_FRAMESET:case w.AFTER_FRAMESET:{this._insertCharacters(t);break}case w.IN_BODY:case w.IN_CAPTION:case w.IN_CELL:case w.IN_TEMPLATE:case w.AFTER_BODY:case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{cd(this,t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{bs(this,t);break}case w.IN_TABLE_TEXT:{md(this,t);break}}}}function LA(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):hd(e,t),n}function PA(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const u=e.openElements.items[r];if(u===t.element)break;e._isSpecialElement(u,e.openElements.tagIDs[r])&&(n=u)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function RA(e,t,n){let r=t,u=e.openElements.getCommonAncestor(t);for(let a=0,s=u;s!==n;a++,s=u){u=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),c=o&&a>=wA;!o||c?(c&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=MA(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function MA(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function OA(e,t,n){const r=e.treeAdapter.getTagName(t),u=Or(r);if(e._isElementCausesFosterParenting(u))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);u===d.TEMPLATE&&a===$.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function jA(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:u}=n,a=e.treeAdapter.createElement(u.tagName,r,u.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,u),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,u.tagID)}function Fi(e,t){for(let n=0;n<vA;n++){const r=LA(e,t);if(!r)break;const u=PA(e,r);if(!u)break;e.activeFormattingElements.bookmark=r;const a=RA(e,u,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&OA(e,s,a),jA(e,u,r)}}function Gs(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function FA(e,t){e._appendCommentNode(t,e.openElements.items[0])}function BA(e,t){e._appendCommentNode(t,e.document)}function Bi(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],u=e.treeAdapter.getNodeSourceCodeLocation(r);if(u&&!u.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function HA(e,t){e._setDocumentType(t);const n=t.forceQuirks?Xt.QUIRKS:gA(t);mA(t)||e._err(t,F.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=w.BEFORE_HTML}function Vr(e,t){e._err(t,F.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Xt.QUIRKS),e.insertionMode=w.BEFORE_HTML,e._processToken(t)}function UA(e,t){t.tagID===d.HTML?(e._insertElement(t,$.HTML),e.insertionMode=w.BEFORE_HEAD):Kr(e,t)}function VA(e,t){const n=t.tagID;(n===d.HTML||n===d.HEAD||n===d.BODY||n===d.BR)&&Kr(e,t)}function Kr(e,t){e._insertFakeRootElement(),e.insertionMode=w.BEFORE_HEAD,e._processToken(t)}function $A(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.HEAD:{e._insertElement(t,$.HTML),e.headElement=e.openElements.current,e.insertionMode=w.IN_HEAD;break}default:Qr(e,t)}}function zA(e,t){const n=t.tagID;n===d.HEAD||n===d.BODY||n===d.HTML||n===d.BR?Qr(e,t):e._err(t,F.endTagWithoutMatchingOpenElement)}function Qr(e,t){e._insertFakeElement(R.HEAD,d.HEAD),e.headElement=e.openElements.current,e.insertionMode=w.IN_HEAD,e._processToken(t)}function an(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:{e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.TITLE:{e._switchToTextParsing(t,Je.RCDATA);break}case d.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Je.RAWTEXT):(e._insertElement(t,$.HTML),e.insertionMode=w.IN_HEAD_NO_SCRIPT);break}case d.NOFRAMES:case d.STYLE:{e._switchToTextParsing(t,Je.RAWTEXT);break}case d.SCRIPT:{e._switchToTextParsing(t,Je.SCRIPT_DATA);break}case d.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=w.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(w.IN_TEMPLATE);break}case d.HEAD:{e._err(t,F.misplacedStartTagForHeadElement);break}default:Jr(e,t)}}function qA(e,t){switch(t.tagID){case d.HEAD:{e.openElements.pop(),e.insertionMode=w.AFTER_HEAD;break}case d.BODY:case d.BR:case d.HTML:{Jr(e,t);break}case d.TEMPLATE:{lr(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function lr(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==d.TEMPLATE&&e._err(t,F.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,F.endTagWithoutMatchingOpenElement)}function Jr(e,t){e.openElements.pop(),e.insertionMode=w.AFTER_HEAD,e._processToken(t)}function ZA(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.BASEFONT:case d.BGSOUND:case d.HEAD:case d.LINK:case d.META:case d.NOFRAMES:case d.STYLE:{an(e,t);break}case d.NOSCRIPT:{e._err(t,F.nestedNoscriptInHead);break}default:eu(e,t)}}function WA(e,t){switch(t.tagID){case d.NOSCRIPT:{e.openElements.pop(),e.insertionMode=w.IN_HEAD;break}case d.BR:{eu(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function eu(e,t){const n=t.type===Ie.EOF?F.openElementsLeftAfterEof:F.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=w.IN_HEAD,e._processToken(t)}function YA(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.BODY:{e._insertElement(t,$.HTML),e.framesetOk=!1,e.insertionMode=w.IN_BODY;break}case d.FRAMESET:{e._insertElement(t,$.HTML),e.insertionMode=w.IN_FRAMESET;break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{e._err(t,F.abandonedHeadElementChild),e.openElements.push(e.headElement,d.HEAD),an(e,t),e.openElements.remove(e.headElement);break}case d.HEAD:{e._err(t,F.misplacedStartTagForHeadElement);break}default:tu(e,t)}}function GA(e,t){switch(t.tagID){case d.BODY:case d.HTML:case d.BR:{tu(e,t);break}case d.TEMPLATE:{lr(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function tu(e,t){e._insertFakeElement(R.BODY,d.BODY),e.insertionMode=w.IN_BODY,wa(e,t)}function wa(e,t){switch(t.type){case Ie.CHARACTER:{ld(e,t);break}case Ie.WHITESPACE_CHARACTER:{cd(e,t);break}case Ie.COMMENT:{Gs(e,t);break}case Ie.START_TAG:{Et(e,t);break}case Ie.END_TAG:{Da(e,t);break}case Ie.EOF:{pd(e,t);break}}}function cd(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ld(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function XA(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function KA(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function QA(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_FRAMESET)}function JA(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML)}function eS(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Ys.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,$.HTML)}function tS(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function nS(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),n||(e.formElement=e.openElements.current))}function rS(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const u=e.openElements.tagIDs[r];if(n===d.LI&&u===d.LI||(n===d.DD||n===d.DT)&&(u===d.DD||u===d.DT)){e.openElements.generateImpliedEndTagsWithExclusion(u),e.openElements.popUntilTagNamePopped(u);break}if(u!==d.ADDRESS&&u!==d.DIV&&u!==d.P&&e._isSpecialElement(e.openElements.items[r],u))break}e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML)}function uS(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),e.tokenizer.state=Je.PLAINTEXT}function aS(e,t){e.openElements.hasInScope(d.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.framesetOk=!1}function sS(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(R.A);n&&(Fi(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function iS(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function oS(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(d.NOBR)&&(Fi(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,$.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function cS(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function lS(e,t){e.treeAdapter.getDocumentMode(e.document)!==Xt.QUIRKS&&e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,$.HTML),e.framesetOk=!1,e.insertionMode=w.IN_TABLE}function dd(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function fd(e){const t=ed(e,ar.TYPE);return t!=null&&t.toLowerCase()===NA}function dS(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$.HTML),fd(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function fS(e,t){e._appendElement(t,$.HTML),t.ackSelfClosing=!0}function hS(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._appendElement(t,$.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function pS(e,t){t.tagName=R.IMG,t.tagID=d.IMG,dd(e,t)}function mS(e,t){e._insertElement(t,$.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Je.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=w.TEXT}function gS(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Je.RAWTEXT)}function bS(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Je.RAWTEXT)}function Kc(e,t){e._switchToTextParsing(t,Je.RAWTEXT)}function _S(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===w.IN_TABLE||e.insertionMode===w.IN_CAPTION||e.insertionMode===w.IN_TABLE_BODY||e.insertionMode===w.IN_ROW||e.insertionMode===w.IN_CELL?w.IN_SELECT_IN_TABLE:w.IN_SELECT}function xS(e,t){e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML)}function CS(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,$.HTML)}function ES(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(d.RTC),e._insertElement(t,$.HTML)}function yS(e,t){e._reconstructActiveFormattingElements(),sd(t),ji(t),t.selfClosing?e._appendElement(t,$.MATHML):e._insertElement(t,$.MATHML),t.ackSelfClosing=!0}function TS(e,t){e._reconstructActiveFormattingElements(),id(t),ji(t),t.selfClosing?e._appendElement(t,$.SVG):e._insertElement(t,$.SVG),t.ackSelfClosing=!0}function Qc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML)}function Et(e,t){switch(t.tagID){case d.I:case d.S:case d.B:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.SMALL:case d.STRIKE:case d.STRONG:{iS(e,t);break}case d.A:{sS(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{eS(e,t);break}case d.P:case d.DL:case d.OL:case d.UL:case d.DIV:case d.DIR:case d.NAV:case d.MAIN:case d.MENU:case d.ASIDE:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.DETAILS:case d.ADDRESS:case d.ARTICLE:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{JA(e,t);break}case d.LI:case d.DD:case d.DT:{rS(e,t);break}case d.BR:case d.IMG:case d.WBR:case d.AREA:case d.EMBED:case d.KEYGEN:{dd(e,t);break}case d.HR:{hS(e,t);break}case d.RB:case d.RTC:{CS(e,t);break}case d.RT:case d.RP:{ES(e,t);break}case d.PRE:case d.LISTING:{tS(e,t);break}case d.XMP:{gS(e,t);break}case d.SVG:{TS(e,t);break}case d.HTML:{XA(e,t);break}case d.BASE:case d.LINK:case d.META:case d.STYLE:case d.TITLE:case d.SCRIPT:case d.BGSOUND:case d.BASEFONT:case d.TEMPLATE:{an(e,t);break}case d.BODY:{KA(e,t);break}case d.FORM:{nS(e,t);break}case d.NOBR:{oS(e,t);break}case d.MATH:{yS(e,t);break}case d.TABLE:{lS(e,t);break}case d.INPUT:{dS(e,t);break}case d.PARAM:case d.TRACK:case d.SOURCE:{fS(e,t);break}case d.IMAGE:{pS(e,t);break}case d.BUTTON:{aS(e,t);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{cS(e,t);break}case d.IFRAME:{bS(e,t);break}case d.SELECT:{_S(e,t);break}case d.OPTION:case d.OPTGROUP:{xS(e,t);break}case d.NOEMBED:case d.NOFRAMES:{Kc(e,t);break}case d.FRAMESET:{QA(e,t);break}case d.TEXTAREA:{mS(e,t);break}case d.NOSCRIPT:{e.options.scriptingEnabled?Kc(e,t):Qc(e,t);break}case d.PLAINTEXT:{uS(e,t);break}case d.COL:case d.TH:case d.TD:case d.TR:case d.HEAD:case d.FRAME:case d.TBODY:case d.TFOOT:case d.THEAD:case d.CAPTION:case d.COLGROUP:break;default:Qc(e,t)}}function kS(e,t){if(e.openElements.hasInScope(d.BODY)&&(e.insertionMode=w.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function AS(e,t){e.openElements.hasInScope(d.BODY)&&(e.insertionMode=w.AFTER_BODY,yd(e,t))}function SS(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function IS(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(d.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(d.FORM):n&&e.openElements.remove(n))}function NS(e){e.openElements.hasInButtonScope(d.P)||e._insertFakeElement(R.P,d.P),e._closePElement()}function vS(e){e.openElements.hasInListItemScope(d.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(d.LI),e.openElements.popUntilTagNamePopped(d.LI))}function wS(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function DS(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function LS(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function PS(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(R.BR,d.BR),e.openElements.pop(),e.framesetOk=!1}function hd(e,t){const n=t.tagName,r=t.tagID;for(let u=e.openElements.stackTop;u>0;u--){const a=e.openElements.items[u],s=e.openElements.tagIDs[u];if(r===s&&(r!==d.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=u&&e.openElements.shortenToLength(u);break}if(e._isSpecialElement(a,s))break}}function Da(e,t){switch(t.tagID){case d.A:case d.B:case d.I:case d.S:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.NOBR:case d.SMALL:case d.STRIKE:case d.STRONG:{Fi(e,t);break}case d.P:{NS(e);break}case d.DL:case d.UL:case d.OL:case d.DIR:case d.DIV:case d.NAV:case d.PRE:case d.MAIN:case d.MENU:case d.ASIDE:case d.BUTTON:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.ADDRESS:case d.ARTICLE:case d.DETAILS:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.LISTING:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{SS(e,t);break}case d.LI:{vS(e);break}case d.DD:case d.DT:{wS(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{DS(e);break}case d.BR:{PS(e);break}case d.BODY:{kS(e,t);break}case d.HTML:{AS(e,t);break}case d.FORM:{IS(e);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{LS(e,t);break}case d.TEMPLATE:{lr(e,t);break}default:hd(e,t)}}function pd(e,t){e.tmplInsertionModeStack.length>0?Ed(e,t):Bi(e,t)}function RS(e,t){var n;t.tagID===d.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function MS(e,t){e._err(t,F.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function bs(e,t){if(e.openElements.currentTagId!==void 0&&od.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=w.IN_TABLE_TEXT,t.type){case Ie.CHARACTER:{gd(e,t);break}case Ie.WHITESPACE_CHARACTER:{md(e,t);break}}else yu(e,t)}function OS(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_CAPTION}function jS(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_COLUMN_GROUP}function FS(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.COLGROUP,d.COLGROUP),e.insertionMode=w.IN_COLUMN_GROUP,Hi(e,t)}function BS(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_TABLE_BODY}function HS(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.TBODY,d.TBODY),e.insertionMode=w.IN_TABLE_BODY,La(e,t)}function US(e,t){e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function VS(e,t){fd(t)?e._appendElement(t,$.HTML):yu(e,t),t.ackSelfClosing=!0}function $S(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,$.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ir(e,t){switch(t.tagID){case d.TD:case d.TH:case d.TR:{HS(e,t);break}case d.STYLE:case d.SCRIPT:case d.TEMPLATE:{an(e,t);break}case d.COL:{FS(e,t);break}case d.FORM:{$S(e,t);break}case d.TABLE:{US(e,t);break}case d.TBODY:case d.TFOOT:case d.THEAD:{BS(e,t);break}case d.INPUT:{VS(e,t);break}case d.CAPTION:{OS(e,t);break}case d.COLGROUP:{jS(e,t);break}default:yu(e,t)}}function lu(e,t){switch(t.tagID){case d.TABLE:{e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode());break}case d.TEMPLATE:{lr(e,t);break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:yu(e,t)}}function yu(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,wa(e,t),e.fosterParentingEnabled=n}function md(e,t){e.pendingCharacterTokens.push(t)}function gd(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function $r(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)yu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const bd=new Set([d.CAPTION,d.COL,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]);function zS(e,t){const n=t.tagID;bd.has(n)?e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_TABLE,Ir(e,t)):Et(e,t)}function qS(e,t){const n=t.tagID;switch(n){case d.CAPTION:case d.TABLE:{e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_TABLE,n===d.TABLE&&lu(e,t));break}case d.BODY:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:Da(e,t)}}function Hi(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.COL:{e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.TEMPLATE:{an(e,t);break}default:na(e,t)}}function ZS(e,t){switch(t.tagID){case d.COLGROUP:{e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=w.IN_TABLE);break}case d.TEMPLATE:{lr(e,t);break}case d.COL:break;default:na(e,t)}}function na(e,t){e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=w.IN_TABLE,e._processToken(t))}function La(e,t){switch(t.tagID){case d.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_ROW;break}case d.TH:case d.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(R.TR,d.TR),e.insertionMode=w.IN_ROW,Pa(e,t);break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE,Ir(e,t));break}default:Ir(e,t)}}function Xs(e,t){const n=t.tagID;switch(t.tagID){case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE);break}case d.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE,lu(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:case d.TR:break;default:lu(e,t)}}function Pa(e,t){switch(t.tagID){case d.TH:case d.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,$.HTML),e.insertionMode=w.IN_CELL,e.activeFormattingElements.insertMarker();break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,La(e,t));break}default:Ir(e,t)}}function _d(e,t){switch(t.tagID){case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY);break}case d.TABLE:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Xs(e,t));break}case d.TBODY:case d.TFOOT:case d.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(d.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Xs(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:break;default:lu(e,t)}}function WS(e,t){const n=t.tagID;bd.has(n)?(e.openElements.hasInTableScope(d.TD)||e.openElements.hasInTableScope(d.TH))&&(e._closeTableCell(),Pa(e,t)):Et(e,t)}function YS(e,t){const n=t.tagID;switch(n){case d.TD:case d.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_ROW);break}case d.TABLE:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),_d(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:break;default:Da(e,t)}}function xd(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._insertElement(t,$.HTML);break}case d.OPTGROUP:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._insertElement(t,$.HTML);break}case d.HR:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.INPUT:case d.KEYGEN:case d.TEXTAREA:case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),t.tagID!==d.SELECT&&e._processStartTag(t));break}case d.SCRIPT:case d.TEMPLATE:{an(e,t);break}}}function Cd(e,t){switch(t.tagID){case d.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===d.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===d.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop();break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop();break}case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode());break}case d.TEMPLATE:{lr(e,t);break}}}function GS(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e._processStartTag(t)):xd(e,t)}function XS(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Cd(e,t)}function KS(e,t){switch(t.tagID){case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{an(e,t);break}case d.CAPTION:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.tmplInsertionModeStack[0]=w.IN_TABLE,e.insertionMode=w.IN_TABLE,Ir(e,t);break}case d.COL:{e.tmplInsertionModeStack[0]=w.IN_COLUMN_GROUP,e.insertionMode=w.IN_COLUMN_GROUP,Hi(e,t);break}case d.TR:{e.tmplInsertionModeStack[0]=w.IN_TABLE_BODY,e.insertionMode=w.IN_TABLE_BODY,La(e,t);break}case d.TD:case d.TH:{e.tmplInsertionModeStack[0]=w.IN_ROW,e.insertionMode=w.IN_ROW,Pa(e,t);break}default:e.tmplInsertionModeStack[0]=w.IN_BODY,e.insertionMode=w.IN_BODY,Et(e,t)}}function QS(e,t){t.tagID===d.TEMPLATE&&lr(e,t)}function Ed(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Bi(e,t)}function JS(e,t){t.tagID===d.HTML?Et(e,t):ra(e,t)}function yd(e,t){var n;if(t.tagID===d.HTML){if(e.fragmentContext||(e.insertionMode=w.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===d.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else ra(e,t)}function ra(e,t){e.insertionMode=w.IN_BODY,wa(e,t)}function eI(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.FRAMESET:{e._insertElement(t,$.HTML);break}case d.FRAME:{e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case d.NOFRAMES:{an(e,t);break}}}function tI(e,t){t.tagID===d.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==d.FRAMESET&&(e.insertionMode=w.AFTER_FRAMESET))}function nI(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.NOFRAMES:{an(e,t);break}}}function rI(e,t){t.tagID===d.HTML&&(e.insertionMode=w.AFTER_AFTER_FRAMESET)}function uI(e,t){t.tagID===d.HTML?Et(e,t):Wu(e,t)}function Wu(e,t){e.insertionMode=w.IN_BODY,wa(e,t)}function aI(e,t){switch(t.tagID){case d.HTML:{Et(e,t);break}case d.NOFRAMES:{an(e,t);break}}}function sI(e,t){t.chars=ze,e._insertCharacters(t)}function iI(e,t){e._insertCharacters(t),e.framesetOk=!1}function Td(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==$.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function oI(e,t){if(TA(t))Td(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===$.MATHML?sd(t):r===$.SVG&&(kA(t),id(t)),ji(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function cI(e,t){if(t.tagID===d.P||t.tagID===d.BR){Td(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===$.HTML){e._endTagOutsideForeignContent(t);break}const u=e.treeAdapter.getTagName(r);if(u.toLowerCase()===t.tagName){t.tagName=u,e.openElements.shortenToLength(n);break}}}R.AREA,R.BASE,R.BASEFONT,R.BGSOUND,R.BR,R.COL,R.EMBED,R.FRAME,R.HR,R.IMG,R.INPUT,R.KEYGEN,R.LINK,R.META,R.PARAM,R.SOURCE,R.TRACK,R.WBR;const lI=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,dI=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Jc={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function kd(e,t){const n=EI(e),r=_1("type",{handlers:{root:fI,element:hI,text:pI,comment:Sd,doctype:mI,raw:bI},unknown:_I}),u={parser:n?new Xc(Jc):Xc.getFragmentParser(void 0,Jc),handle(o){r(o,u)},stitches:!1,options:t||{}};r(e,u),jr(u,gn());const a=n?u.parser.document:u.parser.getFragment(),s=fk(a,{file:u.options.file});return u.stitches&&Na(s,"comment",function(o,c,l){const h=o;if(h.value.stitch&&l&&c!==void 0){const f=l.children;return f[c]=h.value.stitch,c}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Ad(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function fI(e,t){Ad(e.children,t)}function hI(e,t){xI(e,t),Ad(e.children,t),CI(e,t)}function pI(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Ie.CHARACTER,chars:e.value,location:Tu(e)};jr(t,gn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function mI(e,t){const n={type:Ie.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Tu(e)};jr(t,gn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function gI(e,t){t.stitches=!0;const n=yI(e);if("children"in e&&"children"in n){const r=kd({type:"root",children:e.children},t.options);n.children=r.children}Sd({type:"comment",value:{stitch:n}},t)}function Sd(e,t){const n=e.value,r={type:Ie.COMMENT,data:n,location:Tu(e)};jr(t,gn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function bI(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Id(t,gn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(lI,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function _I(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))gI(n,t);else{let r="";throw dI.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function jr(e,t){Id(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Je.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Id(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function xI(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Je.PLAINTEXT)return;jr(t,gn(e));const r=t.parser.openElements.current;let u="namespaceURI"in r?r.namespaceURI:rr.html;u===rr.html&&n==="svg"&&(u=rr.svg);const a=Ik({...e,children:[]},{space:u===rr.svg?"svg":"html"}),s={type:Ie.START_TAG,tagName:n,tagID:Or(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Tu(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function CI(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Mk.includes(n)||t.parser.tokenizer.state===Je.PLAINTEXT)return;jr(t,ya(e));const r={type:Ie.END_TAG,tagName:n,tagID:Or(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Tu(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Je.RCDATA||t.parser.tokenizer.state===Je.RAWTEXT||t.parser.tokenizer.state===Je.SCRIPT_DATA)&&(t.parser.tokenizer.state=Je.DATA)}function EI(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Tu(e){const t=gn(e)||{line:void 0,column:void 0,offset:void 0},n=ya(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function yI(e){return"children"in e?Sr({...e,children:[]}):Sr(e)}function Ui(e){return function(t,n){return kd(t,{...e,file:n})}}const Vi=()=>{const{shopTerms:e}=g.useStorefrontStore(),{isAntistock:t}=g.useGeneralStore();return!(e!=null&&e.showTermsOfServiceOnProduct)||!(e!=null&&e.termsOfService)?null:i.jsxs("div",{className:Kn.container,children:[i.jsx("div",{className:Kn.icon,children:i.jsx(N.Icon,{name:"FileCloud",fill:"var(--text-secondary)"})}),t?i.jsx("p",{className:Kn.text,id:"md",children:i.jsx("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:Kn.link,children:"Terms Of Service"})}):i.jsx(va,{remarkPlugins:[Pi],rehypePlugins:[Ui],className:Kn.text,components:{a:({node:n,...r})=>i.jsx("a",{...r,target:"_blank",rel:"noopener noreferrer",className:Kn.link,id:"md"}),p:({node:n,...r})=>i.jsx("p",{...r,className:Kn.text,id:"md"})},children:e==null?void 0:e.termsOfService})]})},TI="_securedBySsl_1ng38_2",kI="_text_1ng38_9",_s={securedBySsl:TI,text:kI},$i=({isAntistock:e})=>i.jsxs("div",{className:_s.securedBySsl,children:[i.jsx("div",{className:_s.iconWrapper,children:i.jsx(N.Icon,{name:"ShieldCheck",fill:"var(--text-secondary)"})}),i.jsx("p",{className:_s.text,id:"md",children:e?"Your data is secured by extended validation SSL certificates (256-bit encryption).":"Your data is secured by extended validation SSL certificates (256-bit encryption). This complies with the strongest payment security standard available today."})]}),AI="_container_152ix_1",SI="_header_152ix_7",II="_backButton_152ix_13",NI="_title_152ix_22",vI="_cards_152ix_28",wI="_card_152ix_28",DI="_selected_152ix_46",LI="_prioritySelected_152ix_50",PI="_price_152ix_51",RI="_description_152ix_61",Wt={container:AI,header:SI,backButton:II,title:NI,cards:vI,card:wI,selected:DI,prioritySelected:LI,price:PI,description:RI},el=(e,t,n)=>e+n*t/100,MI=e=>{if(!e)return!0;try{const t=JSON.parse(e);if(t.blocks&&Array.isArray(t.blocks))return!t.blocks.some(n=>n.text?n.text.replace(/[\s\u00A0\u2000-\u200F\u2028-\u202F\u205F-\u206F\u3000\u3164]/g,"").length>0:!1)}catch{return e.replace(/[\s\u00A0\u2000-\u200F\u2028-\u202F\u205F-\u206F\u3000\u3164]/g,"").length===0}return!1},Nd=({config:e,totalAmount:t,selected:n,onSelect:r,onBack:u,formatter:a})=>{if(!e)return null;const{priorityReplacement:s,standardReplacement:o}=e,c=!!(s!=null&&s.enabled),l=!!(o!=null&&o.enabled),f=[{key:"PRIORITY",title:(s==null?void 0:s.name)||"Priority Replacement",desc:(s==null?void 0:s.description)||"",price:el((s==null?void 0:s.fixedFee)||0,(s==null?void 0:s.feePercentage)||0,t),isPriority:!0,visible:c&&(!l||l)},{key:"STANDARD",title:(o==null?void 0:o.name)||"Standard Replacement",desc:(o==null?void 0:o.description)||"",price:el((o==null?void 0:o.fixedFee)||0,(o==null?void 0:o.feePercentage)||0,t),isPriority:!1,visible:c&&l?!0:l},{key:"NONE",title:"No Replacements",desc:i.jsxs(i.Fragment,{children:[i.jsx("p",{children:"• No guaranteed refunds or replacements."}),i.jsx("p",{children:"• No priority support."}),i.jsx("p",{children:"• No dedicated buyer resolution team."})]}),price:0,isPriority:!1,visible:c&&!l}].filter(m=>m.visible);return i.jsxs("div",{className:Wt.container,children:[i.jsxs("div",{className:Wt.header,children:[i.jsx("button",{type:"button",className:Wt.backButton,onClick:u,"aria-label":"Back to payment methods",children:"←"}),i.jsx("h4",{className:Wt.title,children:"Protect Your Checkout"})]}),i.jsx("div",{className:Wt.cards,children:f.map(m=>i.jsxs("div",{className:g.clx(Wt.card,{[Wt.selected]:n===m.key,[Wt.prioritySelected]:n==="PRIORITY"&&m.isPriority}),onClick:()=>r(m.key),role:"button",tabIndex:0,onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&r(m.key)},children:[i.jsx("div",{className:Wt.title,children:m.title}),i.jsx("div",{className:Wt.price,children:a.format(m.price)}),typeof m.desc=="string"?!MI(m.desc)&&i.jsx("div",{className:Wt.description,children:i.jsx(di,{text:m.desc})}):i.jsx("div",{className:Wt.description,children:m.desc})]},m.key))})]})},vd=({getPossibleGateways:e,setGateway:t,getDiscordSettings:n,cart:r,products:u,submitCart:a,reset:s,setCustomFieldsToCart:o,totalAndDiscount:c,setDiscordSocialConnectId:l,setPaymentMethod:h,isAntistock:f})=>{var pe,Qe;const m=L.useMemo(()=>n(),[]),[p,b]=L.useState([]),{balance:_,setBalance:E}=g.useCustomerDashboardStore(),{token:x}=g.useStorefrontStore(),{general:k}=g.useGeneralStore(),{executeRecaptcha:y}=fu(),{discordInfo:D}=g.useDiscordStore(),{customerEmail:S,setCustomerEmail:I,setUsePriorityReplacement:M,setReplacementConfig:H}=g.useCartStore(),U=D!=null&&D.authorized?D.id:void 0,P=g.useNavigate(),B=L.useMemo(()=>e(),[r.parts]),[O,X]=L.useState(null),[Y,K]=L.useState(!1),[ue,ae]=L.useState(null),se=!!((pe=O==null?void 0:O.priorityReplacement)!=null&&pe.enabled),_e=Y&&se,[C,V]=L.useState(!1),{setIsOpen:te}=g.useModalStore(),{notifications:v,setNotifications:J}=g.useNotificationStore();L.useEffect(()=>{const Ne=Xi(r.parts,u).map(ee=>ee.type===jn.Checkbox?{...ee,value:String(ee.defaultValue)}:ee);b([...Ne])},[]),L.useEffect(()=>{const Ee=Xi(r.parts,u);b(Ne=>{const ee=new Map(Ne.map(ge=>[ge.name,ge]));return Ee.map(ge=>{const mt=ee.get(ge.name);return mt&&mt.value?{...ge,value:mt.value}:ge.type===jn.Checkbox?{...ge,value:String(ge.defaultValue)}:ge})})},[r.parts,u]),L.useEffect(()=>{x&&(async()=>{const Ne=await ca();E(Ne)})()},[x]);function ne(Ee){return Ee&&/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(Ee)}const Q=()=>{const Ee=[];return p.forEach(Ne=>{var ee;Ne.required&&!((ee=Ne.value)!=null&&ee.toString().trim())&&Ee.push({message:`Field "${Ne.name}" is required.`,status:"error",id:g.v4()})}),Ee.length>0?(J([...v,...Ee]),!1):!0},de=async Ee=>{var mt,gt,qt,At;if(Ee.stopPropagation(),r.gateway==="Balance"&&!x){te(!0),V(!0);return}if(!Q())return;const Ne=!!(O&&((mt=O.priorityReplacement)!=null&&mt.enabled));if(Ne&&!_e){K(!0),ue===null&&((gt=O==null?void 0:O.priorityReplacement)!=null&>.enabled)&&(ae("PRIORITY"),M(!0));return}Ne||(qt=O==null?void 0:O.standardReplacement)!=null&&qt.enabled&&!((At=O==null?void 0:O.priorityReplacement)!=null&&At.enabled)&&(ue===null&&ae("STANDARD"),M(!1));const ee=Object.fromEntries(p.map(Ve=>[Ve.name,Ve.value||""]));o({...ee}),U&&m.isEnabled&&l(U);const ge=await y();if(ge){const Ve=await a(ge),j=JSON.parse(localStorage.getItem("orders")||"{}");if(Object.keys(j).length>10){const W=Date.now()-864e5;Object.keys(j).forEach(fe=>{j[fe].createdAt<=W&&delete j[fe]})}"order"in Ve?j[Ve.order.id]={createdAt:Date.now(),fullAccessToken:Ve.order.fullAccessToken}:j[Ve.id]={createdAt:Date.now(),fullAccessToken:Ve.fullAccessToken},localStorage.setItem("orders",JSON.stringify(j)),P(`/orders/${"order"in Ve?Ve.order.id:Ve.id}/${"order"in Ve?Ve.order.fullAccessToken:Ve.fullAccessToken}`),setTimeout(()=>s(),2e3)}};L.useEffect(()=>{const Ee=[...B.availableGateways,...B.requiresSignInGateways];if(!Ee.length)return;let Ne=!1;return(async()=>{try{const{data:ee}=await il(Ee);if(Ne)return;let ge=null;Array.isArray(ee)||(ee&&ee.replacement?ge=ee.replacement:((ee==null?void 0:ee.priorityReplacement)!==void 0||(ee==null?void 0:ee.standardReplacement)!==void 0)&&(ge={priorityReplacement:ee.priorityReplacement,standardReplacement:ee.standardReplacement})),X(ge),H(ge)}catch{}})(),()=>{Ne=!0}},[B.availableGateways.join(","),B.requiresSignInGateways.join(",")]),L.useEffect(()=>{var ee,ge;if(!O)return;const Ee=!!((ee=O.priorityReplacement)!=null&&ee.enabled),Ne=!!((ge=O.standardReplacement)!=null&&ge.enabled);!Ee&&Ne&&(ae("STANDARD"),M(!1),K(!1))},[O]);const le=Ee=>{ae(Ee),M(Ee==="PRIORITY"?!0:Ee==="STANDARD"?!1:void 0)},ie=L.useMemo(()=>{const Ee=r.parts[0];if(!Ee)return"USD";const Ne=u.find(ge=>ge.id===Ee.productId),ee=Ne==null?void 0:Ne.variants.find(ge=>ge.id===Ee.productVariantId);if(ee!=null&&ee.gateways&&r.gateway){const ge=ee.gateways.find(mt=>mt.name===r.gateway&&mt.overrodePrice);if(ge!=null&&ge.overrodePrice)return ge.overrodePrice.currency}return(ee==null?void 0:ee.price.currency)||"USD"},[r.parts,r.gateway,u]),xe=L.useMemo(()=>new Intl.NumberFormat("en-US",{style:"currency",currency:ie}),[ie]),$e=((Qe=k==null?void 0:k.info)==null?void 0:Qe.customerAccountSettings)??"OPTIONAL",G=$e==="REQUIRED"&&!x,pt=c.totalWithDiscount??c.total,oe=r.gateway==="Balance"&&!!_&&_.amount<pt;return i.jsxs("div",{className:g.clx(ft.checkoutOperational,{[ft.checkoutOperationalAntistock]:f}),children:[i.jsxs("div",{className:`${ft.innerContainer} ${f?ft.innerContainerAntistock:""}`,children:[f&&!_e&&!G?i.jsx("h4",{style:{fontSize:"var(--input-label-size)",color:"var(--text-secondary)",paddingBottom:"12px",fontWeight:"400"},children:"Select Payment Method"}):null,r.parts.length>0&&!_e&&(G?i.jsx("div",{className:ft.loginSection,children:i.jsx(ma,{onSignIn:()=>{}})}):i.jsx(gi,{possibleGateways:B,setGateway:t,setPaymentMethod:h,balance:_,totalAndDiscount:c,onSignInClick:()=>{V(!0),te(!0)},isAntistock:f,hideBalance:$e==="DISABLED"})),_e?i.jsx("div",{style:{marginTop:"12px"},children:i.jsx(Nd,{config:O,totalAmount:c.totalWithDiscount??c.total,selected:ue,onSelect:le,onBack:()=>K(!1),formatter:xe})}):null,!_e&&!G&&i.jsx("div",{className:g.clx(ft.paymentMethodsSection,{[ft.antistock]:f,[ft.paymentMethodsSectionAntistock]:f}),children:i.jsx(N.Input,{placeholder:"your@email.com",value:S||"",onChange:Ee=>I(Ee),disabled:!!x,label:"Email Address"})}),!_e&&i.jsx(A0,{customFields:p,setCustomFields:b}),m.isEnabled&&!_e&&i.jsxs("div",{className:ft.socialConnectSection,children:[i.jsx("p",{className:ft.socialConnectLabel,id:"md",children:"Social Connect"}),i.jsx("div",{className:ft.socialConnectContent,children:i.jsx(I0,{customerEmail:S||""})})]}),G?null:i.jsxs("div",{className:`${ft.continueButton} ${f?ft.continueButtonAntistock:""}`,children:[i.jsx(N.Button,{onClick:de,disabled:G||!r.gateway||!ne(S||"")||m.isRequired&&!(D!=null&&D.authorized)||oe,className:ft.button,children:"Continue to Checkout"}),_e?i.jsxs("div",{style:{marginTop:"1rem",display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx("div",{className:ft.iconWrapper,children:i.jsx(N.Icon,{name:"Shield",fill:"var(--text-secondary)"})}),i.jsxs("p",{style:{color:"var(--text-secondary)",fontSize:"14px"},children:["Protected by ",(k==null?void 0:k.info.name)||"Shop"," Buyer Protection"]})]}):i.jsxs(i.Fragment,{children:[i.jsx(Vi,{}),i.jsx($i,{isAntistock:f})]})]}),!_e&&!G&&i.jsx(qn,{className:`${ft.checkoutFooter} ${f?ft.checkoutFooterAntistock:""}`})]}),C&&i.jsx(N.Modal,{close:()=>V(!1),children:i.jsx(N0,{setIsOpen:V})})]})},OI="_bottomSheet_1a6cu_1",jI="_title_1a6cu_8",FI="_contentTitle_1a6cu_12",BI="_contentText_1a6cu_16",HI="_discordMessageTitle_1a6cu_20",UI="_content_1a6cu_12",VI="_section_1a6cu_27",$I="_copyButton_1a6cu_32",zI="_scrollableBox_1a6cu_37",qI="_scrollableBoxAntistock_1a6cu_47",ZI="_discordMessage_1a6cu_20",WI="_link_1a6cu_61",YI="_buttonGroup_1a6cu_68",GI="_buttonWrapper_1a6cu_80",XI="_modal_1a6cu_84",KI="_modalAntistock_1a6cu_91",QI="_header_1a6cu_96",JI="_copyButtonAntistock_1a6cu_104",at={bottomSheet:OI,title:jI,contentTitle:FI,contentText:BI,discordMessageTitle:HI,content:UI,section:VI,copyButton:$I,scrollableBox:zI,scrollableBoxAntistock:qI,discordMessage:ZI,link:WI,buttonGroup:YI,buttonWrapper:GI,modal:XI,modalAntistock:KI,header:QI,copyButtonAntistock:JI},wd=({setIsOpen:e,deliveryConfiguration:t})=>{const n=Zn(),r=t.type===Pe.Discord,{setIsOpen:u}=g.useModalStore(),{isAntistock:a}=g.useGeneralStore(),s=t.type===Pe.Serial?t.deliveryItems.map(c=>c.serialKey).join(`
|
|
115
|
+
`):t.deliveryItems[0].textData,o=()=>{u(!1),a?e(!1):setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{className:g.clx(at.modal,{[at.modalAntistock]:a}),onClick:c=>c.stopPropagation(),children:[i.jsxs("div",{className:at.header,children:[i.jsx("h3",{id:"h3",className:at.title,children:a?"View Content":"Thank you for the purchase!"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:o,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:at.bottomSheet,children:[i.jsx("div",{className:at.content,children:r?i.jsx("div",{className:at.discordMessage,children:i.jsx("p",{className:at.discordMessageTitle,id:"md",children:"Discord role has been granted"})}):i.jsxs("div",{children:[i.jsxs("div",{className:at.section,children:[!a&&i.jsx("p",{className:at.contentTitle,id:"md",children:"Content"}),!a&&i.jsxs(N.Button,{className:at.copyButton,type:"Secondary",onClick:()=>n(s),children:[i.jsx(N.Icon,{name:"Copy"}),"Copy to Clipboard"]})]}),i.jsx("div",{className:g.clx(at.scrollableBox,{[at.scrollableBoxAntistock]:a}),children:i.jsx("p",{className:at.contentText,id:"md",children:a?i.jsx(di,{text:s}):i.jsx(va,{remarkPlugins:[Pi],rehypePlugins:[Ui],components:{a:({node:c,...l})=>i.jsx("a",{...l,target:"_blank",rel:"noopener noreferrer",className:at.link})},children:s})})})]})}),a&&i.jsxs(N.Button,{className:at.copyButtonAntistock,type:"Secondary",onClick:()=>n(s),style:{display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"Copy"}),"Copy All"]}),!a&&i.jsx("div",{className:at.buttonGroup,children:i.jsx("div",{className:at.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:o,children:"Close"})})})]})]})},eN="_mt1_1l62z_1",tN="_notifyBlock_1l62z_13",nN="_notifyHeader_1l62z_19",rN="_notifyContent_1l62z_25",uN="_buttonBlock_1l62z_30",aN="_imageBlock_1l62z_34",sN="_imageContainer_1l62z_42",iN="_sectionBlock_1l62z_54",oN="_sectionTitle_1l62z_61",cN="_sectionSubtitle_1l62z_64",lN="_inputContainer_1l62z_69",rn={mt1:eN,notifyBlock:tN,notifyHeader:nN,notifyContent:rN,buttonBlock:uN,imageBlock:aN,imageContainer:sN,sectionBlock:iN,sectionTitle:oN,sectionSubtitle:cN,inputContainer:lN},dN=({props:e})=>{const t=Zn();return i.jsx("div",{className:rn.mt1,children:i.jsxs("div",{className:rn.inputContainer,children:[i.jsx(N.Input,{value:e.text,disabled:!0,onChange:()=>{}}),e.shownCopyButton&&i.jsx(N.Button,{type:"Secondary",onClick:()=>t(e.text),children:i.jsx(N.Icon,{name:"Copy"})})]})})},fN=({props:e})=>i.jsx(N.Button,{className:rn.buttonBlock,onClick:()=>window.open(e.url,"_blank","noopener"),children:e.text}),hN=({props:e})=>i.jsx("div",{className:rn.imageBlock,children:i.jsx("div",{className:rn.imageContainer,children:i.jsx("img",{src:e.src,alt:""})})}),pN=({props:e})=>i.jsxs("div",{className:rn.notifyBlock,children:[i.jsxs("div",{className:rn.notifyHeader,children:[i.jsx(N.Icon,{name:"Info",width:24,height:24,fill:"var(--text-secondary)"}),i.jsx("p",{children:e.heading})]}),i.jsx("p",{className:rn.notifyContent,children:e.content})]}),mN=({props:e})=>{var t;return i.jsxs("div",{className:rn.sectionBlock,children:[i.jsx("p",{className:rn.sectionTitle,children:e.title}),i.jsx("span",{className:rn.sectionSubtitle,children:e.subTitle}),(t=e.children)==null?void 0:t.map((n,r)=>i.jsx(ua,{block:n},r))]})},ua=({block:e})=>{switch(e.type){case"Section":return i.jsx(mN,{...e});case"ReadOnlyTextInput":return i.jsx(dN,{...e});case"Notify":return i.jsx(pN,{...e});case"Button":return i.jsx(fN,{...e});case"Image":return i.jsx(hN,{...e});default:return null}},gN="_chargeStatusBlock_12swd_4",bN="_isAntistock_12swd_13",_N="_chargeStatusIcon_12swd_19",xN="_chargeStatusTitle_12swd_27",CN="_chargeStatusDescription_12swd_33",EN="_pickUpButton_12swd_39",yN="_actionButtons_12swd_49",TN="_actionButton_12swd_49",Lt={chargeStatusBlock:gN,isAntistock:bN,chargeStatusIcon:_N,chargeStatusTitle:xN,chargeStatusDescription:CN,pickUpButton:EN,actionButtons:yN,actionButton:TN},nr={[ke.Paid]:"Payment Successful",[ke.Pending]:"Payment Pending",[ke.Expired]:"Payment Expired",[ke.Cancelled]:"Payment Cancelled",[ke.NotPaid]:"Payment Failed",[ke.Refunded]:"Payment Refunded"},Dd={[ke.Paid]:"Your payment has successfully been processed. Tap on the button below to be redirected back to our website.",[ke.Pending]:"Your payment is currently pending. We recommend checking back shortly for confirmation.",[ke.Expired]:"Your payment has expired due to the payment not being sent in time. If you already sent the payment, please contact us below.",[ke.Cancelled]:"You canceled the warrant. If there are any problems, please contact support",[ke.NotPaid]:"Your payment has expired due to the payment not being sent in time. If you already sent the payment, please contact us below.",[ke.Refunded]:"Your payment has been refunded. Please check your payment method for confirmation."},Ld=()=>({[ke.Paid]:i.jsx("div",{className:`${Lt.chargeStatusIcon}`,children:i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"})}),[ke.Pending]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"})}),[ke.Expired]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"})}),[ke.Cancelled]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"})}),[ke.NotPaid]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"})}),[ke.Refunded]:i.jsx("div",{className:Lt.chargeStatusIcon,children:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-warning)"})})}),Pd=({charge:e})=>{var p,b;const t=e.status,n=g.useNavigate(),{shopDomain:r}=g.useStorefrontStore(),{isAntistock:u,general:a}=g.useGeneralStore(),s=L.useRef(),o=!!((p=a==null?void 0:a.info)!=null&&p.disableSupport),c=(b=a==null?void 0:a.info)==null?void 0:b.thirdPartySupportUrl,l=!(o&&!c),[h,f]=g.useSearchParams(),m=()=>{var E,x;if(!((E=e.order)!=null&&E.id))return;const _=h.get("redirectRoute");if((e==null?void 0:e.status)===ke.Paid&&e.redirectUrl&&!s.current){const y=JSON.parse(localStorage.getItem("orders")||"{}")[((x=e==null?void 0:e.order)==null?void 0:x.id)||""];y?window.open(y.fullAccessToken?`${e.redirectUrl}/${y.fullAccessToken}`:`${e.redirectUrl}`,"_self"):window.open(e.redirectUrl,"_self")}(e==null?void 0:e.status)===ke.Paid&&s.current&&n(s.current,{replace:!0}),_&&s&&(s.current=_,h.delete("redirectRoute"),f(h))};return i.jsxs("div",{className:g.clx(Lt.chargeStatusBlock,{[Lt.isAntistock]:u}),children:[Ld()[t],i.jsx("h2",{className:Lt.chargeStatusTitle,children:nr[t]}),i.jsx("p",{className:Lt.chargeStatusDescription,children:Dd[t]}),t===ke.Paid?i.jsx("div",{className:Lt.pickUpButton,style:u?{justifyContent:"flex-start"}:void 0,children:i.jsxs(N.Button,{onClick:m,style:{width:"100%",maxWidth:"250px",display:"flex",alignItems:"center",gap:"5px"},type:"Secondary",children:[i.jsx(N.Icon,{name:"ArrowLineUpRight"}),u?"View Order":"Pick up Order"]})}):i.jsxs("div",{className:Lt.actionButtons,children:[i.jsx("div",{className:Lt.actionButton,children:i.jsxs(N.Button,{type:"Secondary",onClick:()=>window.open(`https://${r}`),style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"ArrowLineUpRight"}),"Visit Website"]})}),l&&i.jsx("div",{className:Lt.actionButton,children:i.jsxs(N.Button,{type:"Secondary",style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},onClick:()=>{o&&c?window.open(c):u?window.open(`https://${r}/support`):n("/contact")},children:[i.jsx(N.Icon,{name:"ChatsTeardrop"}),"Contact Support"]})})]})]})},kN="_bottomSheet_1x4sq_1",AN="_content_1x4sq_8",SN="_agreementList_1x4sq_11",IN="_agreementItem_1x4sq_16",NN="_warning_1x4sq_23",vN="_buttonGroup_1x4sq_31",wN="_buttonWrapper_1x4sq_41",DN="_fullWidthButton_1x4sq_44",LN="_modal_1x4sq_48",PN="_header_1x4sq_55",Yt={bottomSheet:kN,content:AN,agreementList:SN,agreementItem:IN,warning:NN,buttonGroup:vN,buttonWrapper:wN,fullWidthButton:DN,modal:LN,header:PN},Rd=({setIsOpen:e,price:t})=>{const[n,r]=L.useState({agreeToSendAsFF:!1,agreeToSend:!1,agreeToNotAddNote:!1}),{setIsOpen:u}=g.useModalStore(),a=()=>{u(!1),setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{className:Yt.modal,onClick:s=>s.stopPropagation(),children:[i.jsxs("div",{className:Yt.header,children:[i.jsx("h3",{id:"h3",children:"Note"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:a,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Yt.bottomSheet,children:[i.jsxs("div",{className:Yt.content,children:[i.jsxs("div",{className:Yt.agreementList,children:[i.jsxs("label",{className:Yt.agreementItem,children:[i.jsx(N.CheckboxSettings,{value:n.agreeToSendAsFF,onChange:s=>r({...n,agreeToSendAsFF:s})}),i.jsx("p",{children:"I agree to send the payment as friends & family"})]}),i.jsxs("label",{className:Yt.agreementItem,children:[i.jsx(N.CheckboxSettings,{value:n.agreeToSend,onChange:s=>r({...n,agreeToSend:s})}),i.jsxs("p",{children:["I agree to send the payment of ",g.formatPrice(t)," ",t.currency]})]}),i.jsxs("label",{className:Yt.agreementItem,children:[i.jsx(N.CheckboxSettings,{value:n.agreeToNotAddNote,onChange:s=>r({...n,agreeToNotAddNote:s})}),i.jsx("p",{children:"I agree to not add a note to this payment"})]})]}),i.jsx("div",{className:Yt.warning,children:i.jsxs("p",{children:["Please note that you are required to send the exact payment of ",g.formatPrice(t)," ",t.currency,". If you were to send any amount over or below, your funds will be lost."]})})]}),i.jsxs("div",{className:Yt.buttonGroup,children:[i.jsx("div",{className:Yt.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",children:i.jsx("span",{className:"text-[var(--text-secondary)]",children:"Cancel"})})}),i.jsx("div",{className:Yt.fullWidthButton,children:i.jsx(N.Button,{type:"Primary",disabled:!(n.agreeToSendAsFF&&n.agreeToNotAddNote&&n.agreeToSend),onClick:a,children:"Continue to Payment"})})]})]})]})},RN="_chargeItemsContainer_vynct_5",MN="_chargeItemsInner_vynct_18",ON="_productsContainer_vynct_25",jN="_antistockLayout_vynct_40",FN="_mainContentAntistock_vynct_53",BN="_desktopTrackPayment_vynct_64",HN="_desktopFooter_vynct_73",UN="_footerContainerAntistock_vynct_94",VN="_chargeHeader_vynct_107",$N="_chargeTitle_vynct_115",zN="_chargeDescription_vynct_121",qN="_copyButton_vynct_127",ZN="_productsList_vynct_139",WN="_footerContainer_vynct_94",It={chargeItemsContainer:RN,chargeItemsInner:MN,productsContainer:ON,antistockLayout:jN,mainContentAntistock:FN,desktopTrackPayment:BN,desktopFooter:HN,footerContainerAntistock:UN,chargeHeader:VN,chargeTitle:$N,chargeDescription:zN,copyButton:qN,productsList:ZN,footerContainer:WN},Md=({charge:e})=>{var s;const t=Zn(),{isAntistock:n}=g.useGeneralStore(),r=(e==null?void 0:e.price.currency)||"USD",u=new Intl.NumberFormat("en-US",{style:"currency",currency:r}),a=L.useMemo(()=>{var o;return((o=e==null?void 0:e.order)==null?void 0:o.partOrders.map(c=>{var l,h,f,m;return{id:(c==null?void 0:c.id)||0,image:c.productWithVariant.image,name:(()=>{var _,E;const p=((_=c.productWithVariant)==null?void 0:_.name)||"",b=((E=c.productWithVariant)==null?void 0:E.variantName)||"";return!p&&!b?"":!b||p===b?p:p?`${p} (${b})`:b})(),description:"",price:{quantity:c.quantity,amount:((l=c.productWithVariant)==null?void 0:l.price.amount)||0,currency:(h=c.productWithVariant)==null?void 0:h.price.currency},subscriptionSettings:(f=e.order)!=null&&f.subscriptionOrderId?(m=c.productWithVariant)==null?void 0:m.subscriptionSettings:null}}))||[]},[e]);return i.jsx("div",{className:It.chargeItemsContainer,children:i.jsxs("div",{className:It.chargeItemsInner,children:[i.jsx(xa,{expiresAt:e==null?void 0:e.expiresAt}),i.jsxs("div",{className:`${It.productsContainer} ${n?It.antistockLayout:""}`,children:[(e==null?void 0:e.name)&&i.jsxs("header",{className:It.chargeHeader,children:[i.jsxs("div",{children:[i.jsx("h1",{className:It.chargeTitle,id:"h5",children:e.name}),e.description&&i.jsx("p",{className:It.chargeDescription,id:"md",children:e.description})]}),((s=e.order)==null?void 0:s.id)&&!n&&i.jsxs(N.Button,{type:"Secondary",className:It.copyButton,onClick:()=>{var o;return t(((o=e.order)==null?void 0:o.id)||"")},children:[i.jsx(N.Icon,{name:"Copy"}),"Copy Order ID"]})]}),i.jsxs("div",{className:n?It.mainContentAntistock:"",style:n?void 0:{flex:1},children:[!!a.length&&i.jsx("div",{className:It.productsList,children:a.map(o=>i.jsx(Ca,{product:o},o.id))}),i.jsx(wr,{formatter:u,coupon:null,total:(e==null?void 0:e.price.amount)||0,discount:0,totalWithDiscount:(e==null?void 0:e.price.amount)||0,isShowSubtotal:!1}),n&&e&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:It.desktopTrackPayment,children:i.jsx(Ra,{timeline:e.timeline})}),i.jsx(qn,{className:It.desktopFooter})]})]}),!n&&i.jsx(qn,{className:`${It.footerContainer} ${n?It.footerContainerAntistock:""}`})]})]})})},YN="_checkoutOrderMainData_hqf60_1",GN="_orderDetailRow_hqf60_6",XN="_chargeIdRow_hqf60_16",KN="_detailLabel_hqf60_25",QN="_detailValue_hqf60_29",JN="_chargeIdContainer_hqf60_33",ev="_chargeId_hqf60_16",tv="_copyIcon_hqf60_51",et={checkoutOrderMainData:YN,orderDetailRow:GN,chargeIdRow:XN,detailLabel:KN,detailValue:QN,chargeIdContainer:JN,chargeId:ev,copyIcon:tv},zi=({lastUpdate:e,invoiceId:t,email:n,paymentType:r,orderId:u})=>{const a=Zn(),[s,o]=L.useState(null),c=s==null?void 0:s.find(h=>h.name===r);L.useEffect(()=>{s||(async()=>{if(!r)return;const m=await hu([r]);o(m)})()},[r,s]);const l=h=>{const f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],m=h.getDate().toString().padStart(2,"0"),p=f[h.getMonth()],b=h.getFullYear(),_=h.getHours(),E=h.getMinutes().toString().padStart(2,"0"),x=h.getSeconds().toString().padStart(2,"0"),k=_>=12?"PM":"AM",y=(_%12||12).toString().padStart(2,"0");return`${p} ${m}, ${b} at ${y}:${E}:${x} ${k}`};return i.jsxs("div",{className:et.checkoutOrderMainData,children:[i.jsxs("div",{className:et.orderDetailRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Last Updated"}),i.jsx("p",{className:et.detailValue,id:"md",children:l(new Date(e))})]}),r&&i.jsxs("div",{className:et.orderDetailRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Payment Type"}),i.jsx("p",{className:et.detailValue,id:"md",children:c==null?void 0:c.displayName})]}),i.jsxs("div",{className:et.orderDetailRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Email"}),i.jsx("p",{className:et.detailValue,id:"md",children:n})]}),t&&i.jsxs("div",{className:et.chargeIdRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Charge ID"}),i.jsxs("div",{className:et.chargeIdContainer,children:[i.jsx("p",{className:et.chargeId,id:"md",children:t}),i.jsx("div",{className:et.copyIcon,onClick:()=>a(t),children:i.jsx(N.Icon,{name:"Copy"})})]})]}),u&&i.jsxs("div",{className:et.chargeIdRow,children:[i.jsx("p",{className:et.detailLabel,id:"md",children:"Order ID"}),i.jsxs("div",{className:et.chargeIdContainer,children:[i.jsx("p",{className:et.chargeId,id:"md",children:u}),i.jsx("div",{className:et.copyIcon,onClick:()=>a(u),children:i.jsx(N.Icon,{name:"Copy"})})]})]})]})},nv="_bottomSheet_1yai1_1",rv="_formContainer_1yai1_8",uv="_error_1yai1_14",av="_buttonGroup_1yai1_18",sv="_buttonWrapper_1yai1_28",iv="_fullWidthButton_1yai1_31",ov="_modal_1yai1_41",cv="_header_1yai1_48",Ln={bottomSheet:nv,formContainer:rv,error:uv,buttonGroup:av,buttonWrapper:sv,fullWidthButton:iv,modal:ov,header:cv},Od=({chargeId:e,setIsOpen:t})=>{const[n,r]=L.useState(""),[u,a]=L.useState(""),{setIsOpen:s}=g.useModalStore(),o=h=>{try{return new URL(h),!0}catch{return!1}},c=async h=>{if(h.preventDefault(),!n){a("The link field cannot be empty.");return}if(!o(n)){a("Please enter a valid URL");return}await i2({url:n},e)&&(alert("CashApp successfully verified"),t(!1))},l=()=>{s(!1),setTimeout(()=>{t(!1)},300)};return i.jsxs("div",{className:Ln.modal,onClick:h=>h.stopPropagation(),children:[i.jsxs("div",{className:Ln.header,children:[i.jsx("h3",{id:"h3",children:"CashApp Verify"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:l,fill:"var(--text-primary)"})]}),i.jsx("form",{onSubmit:c,children:i.jsxs("div",{className:Ln.bottomSheet,children:[i.jsx("div",{className:Ln.formContainer,children:i.jsxs("div",{children:[i.jsx(N.Input,{value:n,onChange:h=>{r(h),a("")},label:"Enter Cashapp Link",placeholder:"https://cash.app/payments/0000"}),u&&i.jsx("p",{className:Ln.error,children:u})]})}),i.jsxs("div",{className:Ln.buttonGroup,children:[i.jsx("div",{className:Ln.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:l,children:"Cancel"})}),i.jsx("div",{className:Ln.fullWidthButton,children:i.jsx(N.Button,{type:"Primary",children:"Verify"})})]})]})})]})},lv="_trackPaymentContainer_fk3b6_1",dv="_trackPaymentBox_fk3b6_5",fv="_trackPaymentBoxActive_fk3b6_18",hv="_trackPaymentHeader_fk3b6_23",pv="_trackPaymentTitle_fk3b6_27",mv="_trackPaymentTimeline_fk3b6_33",gv="_trackPaymentItem_fk3b6_42",bv="_itemHeader_fk3b6_48",_v="_itemDate_fk3b6_55",xv="_itemMessage_fk3b6_59",Cv="_trackPaymentToggle_fk3b6_64",Ev="_trackPaymentToggleContent_fk3b6_75",yv="_trackPaymentToggleText_fk3b6_81",Tv="_antistock_fk3b6_88",yt={trackPaymentContainer:lv,trackPaymentBox:dv,trackPaymentBoxActive:fv,trackPaymentHeader:hv,trackPaymentTitle:pv,trackPaymentTimeline:mv,trackPaymentItem:gv,itemHeader:bv,itemDate:_v,itemMessage:xv,trackPaymentToggle:Cv,trackPaymentToggleContent:Ev,trackPaymentToggleText:yv,antistock:Tv},tl=(e,t)=>{const n=e.getDate().toString().padStart(2,"0"),r=(e.getMonth()+1).toString().padStart(2,"0"),u=e.getFullYear(),a=e.getHours(),s=e.getMinutes().toString().padStart(2,"0"),o=e.getSeconds().toString().padStart(2,"0"),c=a>=12?"PM":"AM",l=(a%12||12).toString().padStart(2,"0");return t==="dd.MM.yyyy"?`${n}.${r}.${u}`:t==="hh:mm:ss aa"?`${l}:${s}:${o} ${c}`:""},kv={[ke.Paid]:{displayName:nr[ke.Paid],displayMessage:"The invoice has been completed and the product has been delivered.",type:"success"},[ke.Pending]:{displayName:nr[ke.Pending],displayMessage:"The invoice has been created and we are now waiting to receive the payment.",type:"warning"},[ke.Expired]:{displayName:nr[ke.Expired],displayMessage:"Your payment has expired due to the payment not being sent in time.",type:"error"},[ke.Cancelled]:{displayName:nr[ke.Cancelled],displayMessage:"The order has been canceled. The payment was not sent within the time limit.",type:"error"},[ke.NotPaid]:{displayName:"New",displayMessage:"The charge has been created and is awaiting payment.",type:"success"},[ke.Refunded]:{displayName:nr[ke.Refunded],displayMessage:"Your order was refunded. Please check your payment method for confirmation.",type:"warning"}},Av=({date:e,chargeStatus:t})=>(console.log(t),i.jsxs("div",{className:yt.trackPaymentItem,children:[i.jsxs("div",{className:yt.itemHeader,children:[i.jsx("p",{className:yt.itemDate,id:"md-bold",children:tl(new Date(e),"dd.MM.yyyy")}),i.jsx("p",{className:yt.itemTime,id:"md",children:tl(new Date(e),"hh:mm:ss aa")})]}),i.jsx("p",{className:yt.itemMessage,id:"md",children:kv[t].displayMessage})]})),Ra=({timeline:e,className:t})=>{const[n,r]=L.useState(!1),{isAntistock:u}=g.useGeneralStore();return i.jsxs("div",{className:g.clx(yt.trackPaymentContainer,t,{[yt.antistock]:u}),children:[i.jsxs("div",{className:`${yt.trackPaymentBox} ${n?yt.trackPaymentBoxActive:""}`,style:u?{border:"1px solid var(--border-secondary)"}:void 0,children:[i.jsx("header",{className:yt.trackPaymentHeader,children:i.jsx("h2",{className:yt.trackPaymentTitle,id:"h4",children:"Track Payment"})}),i.jsx("div",{className:yt.trackPaymentTimeline,children:Object.keys(e).map(a=>i.jsx(Av,{date:e[a],chargeStatus:a},a))})]}),i.jsxs("div",{className:yt.trackPaymentToggle,onClick:()=>r(!n),style:u?{padding:"1.25rem",border:"1px solid var(--border-secondary)",borderRadius:"var(--border-radius)"}:void 0,children:[i.jsxs("div",{className:yt.trackPaymentToggleContent,children:[u?null:i.jsx(N.Icon,{name:"MagnifyingGlass",fill:"var(--text-secondary)"}),i.jsx("p",{className:yt.trackPaymentToggleText,id:"h5",children:"Track Payment"})]}),i.jsx(N.Icon,{name:"CaretRight",fill:"var(--text-primary)",width:16,height:16})]})]})},Sv="_dateTime_1dnnn_11",Iv="_tableItem_1dnnn_25",Nv="_status_1dnnn_29",vv="_statusInProgress_1dnnn_38",wv="_statusText_1dnnn_42",Dv="_statusIcon_1dnnn_46",Lv="_statusInProgressText_1dnnn_52",Pv="_statusInProgressIcon_1dnnn_57",Rv="_message_1dnnn_63",Tt={dateTime:Sv,tableItem:Iv,status:Nv,statusInProgress:vv,statusText:wv,statusIcon:Dv,statusInProgressText:Lv,statusInProgressIcon:Pv,message:Rv},jd=({item:e})=>{const[t,n]=g.extractDateAndTime(e.createdAt),r=g.useNavigate(),a=(s=>s.length>30?s.slice(0,27)+"...":s)(e.latestMessage);return i.jsxs(L.Fragment,{children:[i.jsx(ot,{className:Tt.tableItem,onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsxs("span",{id:"md",children:["#",e.id]})}),i.jsx(ot,{className:g.clx(Tt.message,Tt.tableItem),onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsx("span",{id:"md",children:a})}),i.jsx(ot,{className:Tt.tableItem,onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsxs("div",{children:[i.jsx("div",{id:"md",children:t}),i.jsx("div",{className:Tt.dateTime,id:"md",children:n})]})}),i.jsx(ot,{className:Tt.tableItem,onClick:()=>r(`/ticket/${e.id}/${e.accessToken}`),children:i.jsx(Mv,{status:e.status})})]},e.id)},Mv=({status:e})=>i.jsxs("div",{className:g.clx(Tt.status,{[Tt.statusClosed]:e==="CLOSED",[Tt.statusInProgress]:e!=="CLOSED"}),children:[i.jsx("div",{className:g.clx(Tt.statusIcon,{[Tt.statusInProgressIcon]:e!=="CLOSED"}),children:e==="CLOSED"?i.jsx(N.Icon,{name:"CheckCircle",className:Tt.statusIcon}):i.jsx(N.Icon,{name:"Clock",className:Tt.statusInProgressIcon})}),i.jsx("div",{className:g.clx(Tt.statusText,{[Tt.statusInProgressText]:e!=="CLOSED"}),id:"md",children:e==="CLOSED"?"Closed":"In Progress"})]}),Ov="_tableContainer_1eytq_1",jv="_table_1eytq_1",Fv="_productInfo_1eytq_19",Bv="_productImage_1eytq_26",Hv="_productName_1eytq_35",Uv="_expirationDate_1eytq_46",Vv="_overflowItem_1eytq_51",$v="_gatewayContainer_1eytq_57",zv="_gatewayImage_1eytq_62",qv="_dateTime_1eytq_67",Zv="_tableLoader_1eytq_72",Wv="_tableItem_1eytq_81",ht={tableContainer:Ov,table:jv,productInfo:Fv,productImage:Bv,productName:Hv,expirationDate:Uv,overflowItem:Vv,gatewayContainer:$v,gatewayImage:zv,dateTime:qv,tableLoader:Zv,tableItem:Wv},Yv="_badge_1oac8_1",Gv="_active_1oac8_12",Xv="_awaitingPayment_1oac8_17",Kv="_cancelled_1oac8_22",Qv="_changedGateway_1oac8_27",Jv="_expired_1oac8_32",ew="_rial_1oac8_37",tw="_pastDue_1oac8_42",nw="_replaced_1oac8_47",An={badge:Yv,active:Gv,awaitingPayment:Xv,cancelled:Kv,changedGateway:Qv,expired:Jv,rial:ew,pastDue:tw,replaced:nw},rw=()=>({[kn.ACTIVE]:{icon:i.jsx(N.Icon,{name:"CheckCircle"}),title:"Active",className:An.active},[kn.AWAITING_PAYMENT]:{icon:i.jsx(N.Icon,{name:"Clock"}),title:"Awaiting Payment",className:An.awaitingPayment},[kn.CANCELLED]:{icon:i.jsx(N.Icon,{name:"XCircle"}),title:"Cancelled",className:An.cancelled},[kn.CHANGED_GATEWAY]:{icon:i.jsx(N.Icon,{name:"Warning"}),title:"Upgraded",className:An.changedGateway},[kn.EXPIRED]:{icon:i.jsx(N.Icon,{name:"XCircle"}),title:"Expired",className:An.expired},[kn.RIAL]:{icon:i.jsx(N.Icon,{name:"Clock"}),title:"Active",className:An.rial},[kn.PAST_DUE]:{icon:i.jsx(N.Icon,{name:"Clock"}),title:"Trial",className:An.pastDue},[kn.REPLACED]:{icon:i.jsx(N.Icon,{name:"Warning"}),title:"Replaced",className:An.replaced}}),qi=({status:e})=>{const t=rw()[e];return i.jsxs("div",{className:`${An.badge} ${t.className}`,children:[t.icon,i.jsx("p",{id:"md",children:t.title})]})},uw=(e,t)=>{const n=t.find(r=>r.name===e);return n?i.jsxs("div",{className:ht.gatewayContainer,children:[i.jsx("img",{alt:n.displayName,src:g.convertCfImageIdToUrl(n.logoCfImageId,"100"),className:ht.gatewayImage}),i.jsx("div",{children:n.displayName})]}):null},aw=({item:e,gatewaysDetail:t})=>{const[n,r]=g.extractDateAndTime(e.createdAt),[u]=g.extractDateAndTime(e.activeTo||""),a=Zn();return i.jsxs(L.Fragment,{children:[i.jsx(ot,{children:i.jsxs("div",{className:ht.productInfo,children:[i.jsx("div",{className:ht.productImage,children:i.jsx(N.Icon,{name:"Image",width:20,height:20,fill:"var(--text-secondary)"})}),i.jsxs("div",{children:[i.jsx(g.NavLink,{to:`/subscriptions/${e.id}/${e.accessToken}`,className:ht.productName,id:"md",children:e.productName}),i.jsx("p",{className:ht.expirationDate,children:e.activeTo&&`expires at ${u}`})]})]})}),i.jsx(ot,{className:ht.overflowItem,onClick:()=>a(e.id),children:e.id}),i.jsx(ot,{children:i.jsx(qi,{status:e.status})}),i.jsx(ot,{children:g.formatPrice(e.price)}),i.jsx(ot,{children:uw(e.gatewayName,t)}),i.jsx(ot,{children:i.jsxs("div",{children:[i.jsx("div",{id:"md",children:n}),i.jsx("div",{className:ht.dateTime,id:"md",children:r})]})})]},e.id)},Fd=({subscriptions:e,gatewaysDetail:t,totalCount:n,page:r,setPage:u})=>{const s=!(!(e!=null&&e.length)||!t);return i.jsxs("div",{className:ht.tableContainer,children:[i.jsxs(_a,{className:ht.table,children:[i.jsx(Pt,{className:ht.tableItem,children:"Product name"}),i.jsx(Pt,{className:ht.tableItem,children:"ID"}),i.jsx(Pt,{className:ht.tableItem,children:"Status"}),i.jsx(Pt,{className:ht.tableItem,children:"Value"}),i.jsx(Pt,{className:ht.tableItem,children:"Payment"}),i.jsx(Pt,{className:ht.tableItem,children:"Date"}),s&&(e==null?void 0:e.map(o=>i.jsx(aw,{item:o,gatewaysDetail:t},o.id)))]}),!s&&i.jsx("div",{className:ht.tableLoader,children:i.jsx(N.Loader,{})}),s&&i.jsx(bu,{currentPage:r,totalCount:n,onPageChange:u})]})},sw="_pageLoading_1rj3k_2",iw="_title_1rj3k_11",ow="_description_1rj3k_17",xs={pageLoading:sw,title:iw,description:ow},cw=({description:e,title:t})=>i.jsxs("div",{className:xs.pageLoading,children:[i.jsx("div",{children:i.jsx(N.Loader,{})}),i.jsx("h1",{className:xs.title,children:t}),i.jsx("p",{className:xs.description,children:e})]}),lw="_container_1opbn_1",dw="_productDetails_1opbn_8",fw="_imageContainer_1opbn_14",hw="_image_1opbn_14",pw="_textContainer_1opbn_32",mw="_header_1opbn_40",gw="_title_1opbn_46",bw="_price_1opbn_53",_w="_badgeContainer_1opbn_57",xw="_description_1opbn_61",sn={container:lw,productDetails:dw,imageContainer:fw,image:hw,textContainer:pw,header:mw,title:gw,price:bw,badgeContainer:_w,description:xw},Bd=({subscription:e})=>i.jsxs("div",{className:sn.container,children:[i.jsxs("div",{className:sn.productDetails,children:[i.jsx("div",{className:sn.imageContainer,children:e!=null&&e.image?i.jsx("img",{className:sn.image,src:g.convertCfImageIdToUrl(e.image.cfId),alt:e==null?void 0:e.name}):i.jsx(N.Icon,{name:"Image"})}),i.jsxs("div",{className:sn.textContainer,children:[i.jsx("div",{className:sn.header,children:i.jsx("h2",{className:sn.title,children:e.name})}),i.jsxs("p",{className:sn.price,children:[g.formatPrice(e.price)," / ",e.recurringInterval]})]}),i.jsx("div",{className:sn.badgeContainer,children:i.jsx(qi,{status:e.status})})]}),e.description&&i.jsx(va,{className:sn.description,children:e.description})]}),Cw="_card_69liy_1",Ew="_price_69liy_10",yw="_interval_69liy_17",Tw="_name_69liy_22",kw="_description_69liy_28",Aw="_currentPlan_69liy_32",Sw="_selectButton_69liy_45",Iw="_progressSection_69liy_50",Nw="_progressLabel_69liy_54",vw="_bottomSheet_69liy_60",ww="_title_69liy_69",Dw="_typeSelector_69liy_80",Lw="_typeOption_69liy_90",Pw="_active_69liy_100",Rw="_saveTag_69liy_108",Mw="_planSelector_69liy_117",Ow="_modal_69liy_127",jw="_inactive_69liy_148",Fw="_notMounted_69liy_151",Bw="_closeButton_69liy_157",Xe={card:Cw,price:Ew,interval:yw,name:Tw,description:kw,currentPlan:Aw,selectButton:Sw,progressSection:Iw,progressLabel:Nw,bottomSheet:vw,title:ww,typeSelector:Dw,typeOption:Lw,active:Pw,saveTag:Rw,planSelector:Mw,modal:Ow,inactive:jw,notMounted:Fw,closeButton:Bw},Hw=({variant:e,onSelect:t,isCurrent:n})=>{const r=e.subscriptionSettings.recurringIntervalDays===30?"month":e.subscriptionSettings.recurringIntervalDays===365?"year":"period",u=e.subscriptionSettings.price.amount.toFixed(2),a=e.subscriptionSettings.recurringIntervalDays,s=10;return i.jsxs("div",{className:Xe.card,onClick:t,children:[i.jsxs("h2",{className:Xe.price,children:["$",u," ",i.jsxs("span",{className:Xe.interval,children:["/ ",r]})]}),i.jsx("h3",{className:Xe.name,children:e.name}),e.description&&i.jsx("p",{className:Xe.description,children:e.description}),n?i.jsxs("div",{className:Xe.currentPlan,children:[i.jsx(N.Icon,{name:"Check"}),"Your current Plan"]}):i.jsx(N.Button,{type:"Secondary",className:Xe.selectButton,children:"Select"}),n&&i.jsxs("div",{className:Xe.progressSection,children:[i.jsx(hi,{percent:s/a*100,disablePercentLabel:!0}),i.jsxs("p",{className:Xe.progressLabel,children:["Used: ",s," of ",a," days"]})]})]})},Hd=({isOpen:e,setIsOpen:t,subscription:n})=>{const[r,u]=L.useState(null),[a,s]=L.useState(null),[o,c]=L.useState(null),{id:l,accessToken:h}=g.useParams(),[f,m]=L.useState(!1),[p,b]=L.useState(!1),{setIsOpen:_}=g.useModalStore();L.useEffect(()=>{e&&m(!0)},[e]);const E=()=>{t(!1)},[x,k]=L.useState(null);L.useEffect(()=>{l&&h&&(async()=>{if(l&&h){const{data:I}=await v2({id:l,accessToken:h});k(I)}})()},[l,h]),L.useEffect(()=>{var S;if(x!=null&&x.data.types[0]){const I=(S=x.data.types.flatMap(M=>M.productVariants).find(M=>M.data.id===(n==null?void 0:n.variantId)))==null?void 0:S.data;I&&(c(I),s(I))}},[x,n]),L.useEffect(()=>{x!=null&&x.data.types[0]&&u(x==null?void 0:x.data.types[0])},[x==null?void 0:x.data.types]);const y=S=>{u(S),s(null)},D=S=>{s(S),_(!0),b(!0)};return i.jsxs("div",{className:g.clx(Xe.modal,{[Xe.active]:e,[Xe.inactive]:!e&&f,[Xe.notMounted]:!f}),onClick:S=>S.stopPropagation(),children:[i.jsx(N.Icon,{name:"X",onClick:E,hoverable:!0,className:Xe.closeButton,fill:"var(--text-primary)"}),i.jsxs("div",{className:Xe.bottomSheet,children:[i.jsx("h3",{id:"h3",className:Xe.title,children:"Change Plan"}),i.jsx("p",{className:Xe.description,children:x==null?void 0:x.data.description}),i.jsx("div",{className:Xe.typeSelector,children:x==null?void 0:x.data.types.map(S=>i.jsxs("div",{className:g.clx(Xe.typeOption,{[Xe.active]:(r==null?void 0:r.id)===S.id}),onClick:()=>y(S),children:[S.name,S.name==="Yearly"&&i.jsx("span",{className:Xe.saveTag,children:"Save %"})]},S.id))}),r&&i.jsx("div",{className:Xe.planSelector,children:r.productVariants.map(S=>i.jsx(Hw,{variant:S.data,isSelected:(a==null?void 0:a.id)===S.data.id,isCurrent:(o==null?void 0:o.id)===S.data.id,onSelect:()=>D(S.data)},S.data.id))})]}),p&&a&&n&&i.jsx(N.Modal,{close:()=>{b(!1)},children:i.jsx(qd,{setIsOpen:b,selectedVariant:a,subscription:n})})]})},Uw="_container_nb625_1",Vw="_title_nb625_11",$w="_subtitle_nb625_16",zw="_info_nb625_20",Uu={container:Uw,title:Vw,subtitle:$w,info:zw},Ud=()=>{const{subscription:e}=g.useSubscriptionStore(),[t,n]=g.extractDateAndTime((e==null?void 0:e.activeTo)||""),[r,u]=L.useState(!1),{setIsOpen:a}=g.useModalStore();return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Uu.container,children:[i.jsxs("div",{className:Uu.info,children:[i.jsx("p",{className:Uu.title,children:"Expiration Date"}),i.jsxs("p",{className:Uu.subtitle,children:[t," at ",n]})]}),i.jsx(N.Button,{type:"Special",onClick:s=>{s.stopPropagation(),a(!0),u(!0)},children:"Extend"})]}),r&&i.jsx(N.Modal,{close:()=>u(!1),children:i.jsx(Xd,{setIsOpen:u})})]})},qw="_couponContainer_1sspa_1",Zw="_iconWrapper_1sspa_10",Ww="_details_1sspa_21",Yw="_title_1sspa_25",Gw="_progress_1sspa_29",Xw="_foreverText_1sspa_34",mr={couponContainer:qw,iconWrapper:Zw,details:Ww,title:Yw,progress:Gw,foreverText:Xw},Vd=({coupon:e,currency:t})=>{const n=e.isFixed?g.formatPrice({amount:e.discount,currency:t}):`${e.discount}%`,r=e.initialCouponDurationForSubscriptions?g.percentageDifference(e.initialCouponDurationForSubscriptions,e.currentCouponDurationForSubscriptions||1):100;return i.jsxs("div",{className:mr.couponContainer,children:[i.jsx("div",{className:mr.iconWrapper,children:i.jsx(N.Icon,{name:"CheckCircle"})}),i.jsxs("div",{className:mr.details,children:[i.jsxs("p",{className:mr.title,children:[e.name,", ",n," discount"]}),i.jsx("div",{className:mr.progress,children:i.jsx(hi,{color:"#C2C2C2",percent:r,disablePercentLabel:!0})}),i.jsx("p",{className:mr.foreverText,children:"Forever discount code"})]})]})},Kw="_paymentMethodContainer_1g0da_4",Qw="_paymentMethodTitle_1g0da_15",Jw="_activeMethod_1g0da_20",eD="_noMethod_1g0da_28",tD="_activeMethodPaymentMethod_1g0da_37",nD="_paymentMethodLogo_1g0da_47",rD="_paymentMethodNumber_1g0da_57",uD="_method_1g0da_61",Hn={paymentMethodContainer:Kw,paymentMethodTitle:Qw,activeMethod:Jw,noMethod:eD,activeMethodPaymentMethod:tD,paymentMethodLogo:nD,paymentMethodNumber:rD,method:uD},aD="_paymentMethods_1gev0_1",sD="_modal_1gev0_14",iD="_header_1gev0_28",oD="_content_1gev0_37",Jn={paymentMethods:aD,modal:sD,header:iD,content:oD},cD=e=>{const{setIsLoading:t,setIsOpen:n}=e,{subscription:r,setSubscription:u}=g.useSubscriptionStore();if(!r)return null;const{id:a}=g.useParams(),s=g.useNavigate(),{notifications:o,setNotifications:c}=g.useNotificationStore(),{setPaymentMethod:l,setGateway:h,cart:f}=du(),{setIsOpen:m}=g.useModalStore();async function p(){if(b(),t(!0),a&&r){const{data:_}=await I2(a,f.gateway);_.isReconnectPaymentNeeded?s(`/charges/${_.chargeId}`):(c([...o,{status:"success",id:g.v4(),message:"Your action has been successfully completed"}]),u({...r,gatewayName:f.gateway}))}else c([...o,{status:"error",id:g.v4(),message:"Your action has been failed. Try again!"}]);t(!1)}function b(){m(!1),setTimeout(()=>{n(!1)},300)}return i.jsxs("div",{className:Jn.modal,onClick:_=>{_.stopPropagation()},children:[i.jsxs("div",{className:Jn.header,children:[i.jsx("h3",{id:"h3",className:Jn.title,children:"Choose Payment Method"}),i.jsx(N.Icon,{name:"X",onClick:b,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Jn.content,children:[(r==null?void 0:r.availableGateways)&&i.jsx(gi,{possibleGateways:{availableGateways:r.availableGateways,requiresSignInGateways:r.availableGateways},setGateway:h,setPaymentMethod:l,totalAndDiscount:{total:(r==null?void 0:r.price.amount)||0,totalWithDiscount:r==null?void 0:r.price.amount},onSignInClick:()=>s("/customer-dash")}),i.jsxs("div",{className:Jn.paymentMethods,children:[i.jsx("div",{className:Jn.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Cancel"})}),i.jsx("div",{className:Jn.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",disabled:!f.gateway,onClick:()=>p(),children:"Continue"})})]})]})]})},lD="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20131.39%2086.9'%3e%3cdefs%3e%3cstyle%3e.a{opacity:0;}.b{fill:%23fff;}.c{fill:%23ff5f00;}.d{fill:%23eb001b;}.e{fill:%23f79e1b;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%201%3c/title%3e%3cg%20class='a'%3e%3crect%20class='b'%20width='131.39'%20height='86.9'/%3e%3c/g%3e%3crect%20class='c'%20x='48.37'%20y='15.14'%20width='34.66'%20height='56.61'/%3e%3cpath%20class='d'%20d='M51.94,43.45a35.94,35.94,0,0,1,13.75-28.3,36,36,0,1,0,0,56.61A35.94,35.94,0,0,1,51.94,43.45Z'/%3e%3cpath%20class='e'%20d='M120.5,65.76V64.6H121v-.24h-1.19v.24h.47v1.16Zm2.31,0v-1.4h-.36l-.42,1-.42-1h-.36v1.4h.26V64.7l.39.91h.27l.39-.91v1.06Z'/%3e%3cpath%20class='e'%20d='M123.94,43.45a36,36,0,0,1-58.25,28.3,36,36,0,0,0,0-56.61,36,36,0,0,1,58.25,28.3Z'/%3e%3c/svg%3e",$d=()=>{var b,_,E;const{subscription:e}=g.useSubscriptionStore(),{cart:t,setPaymentMethod:n}=du(),r=g.useNavigate(),[u,a]=L.useState(null),[s,o]=L.useState(!1),[c,l]=L.useState(!1),{setIsOpen:h}=g.useModalStore();if(!e)return null;const[f,m]=L.useState(e.gatewayName||t.gateway),p=t.paymentMethod;return L.useEffect(()=>{(async()=>{const k=await hu(e.availableGateways);a(k)})()},[]),L.useEffect(()=>{t.gateway!==f&&m(t.gateway)},[t.gateway]),i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:Hn.paymentMethodContainer,children:[i.jsxs("div",{children:[i.jsx("p",{className:Hn.paymentMethodTitle,children:"Active Payment Method"}),e.gatewayInfo&&Object.keys(e.gatewayInfo).length>0&&i.jsx(dD,{gatewayInfo:e.gatewayInfo}),(!e.gatewayInfo||Object.keys(e.gatewayInfo).length===0)&&f==="Balance"&&i.jsx(pi,{gateway:f,gatewayDisplayName:f,total:(e==null?void 0:e.price.amount)||0,onSignInClick:()=>r("/customer-dash")}),(!e.gatewayInfo||Object.keys(e.gatewayInfo).length===0)&&!f&&i.jsx("span",{className:Hn.noMethod,children:"Payment method is not set"}),(!e.gatewayInfo||Object.keys(e.gatewayInfo).length===0)&&f&&i.jsx("div",{className:Hn.activeMethod,children:u&&i.jsx(mi,{align:"row",gatewayLogoCfId:(b=u.find(x=>x.name===f))==null?void 0:b.logoCfImageId,gatewayDisplayName:(_=u.find(x=>x.name===f))==null?void 0:_.displayName,gateway:f,poweredByLogoCfId:(E=u.find(x=>x.name===f))==null?void 0:E.poweredByImageCfImageId,className:Hn.activeMethodPaymentMethod,selected:p===f,onSelect:x=>{n(x)}},f)})]}),i.jsx(N.Button,{type:"Special",onClick:x=>{x.stopPropagation(),h(!0),l(!0)},children:t.gateway?"Change":"Manage"})]}),c&&i.jsx(N.Modal,{close:()=>l(!1),children:i.jsx(cD,{setIsLoading:o,setIsOpen:l})})]})},dD=({gatewayInfo:e})=>{var t,n,r,u,a;return i.jsxs("div",{className:Hn.method,children:[i.jsxs("div",{className:Hn.paymentMethodLogo,children:[((t=e.card)==null?void 0:t.brand.toLowerCase())==="visa"&&i.jsx(fm,{}),((n=e.card)==null?void 0:n.brand.toLowerCase())==="mastercard"&&i.jsx("img",{src:lD,alt:"",width:22}),((r=e.card)==null?void 0:r.brand.toLowerCase())!=="visa"&&((u=e.card)==null?void 0:u.brand.toLowerCase())!=="mastercard"&&i.jsx(N.Icon,{name:"CreditCard",width:22})]}),i.jsxs("p",{className:Hn.paymentMethodNumber,children:["•••• •••• •••• ",(a=e.card)==null?void 0:a.last4]})]})},fD="_subscriptionProductContainer_83ibx_4",hD="_subscriptionProductImage_83ibx_15",pD="_subscriptionProductInfo_83ibx_32",mD="_name_83ibx_37",gD="_price_83ibx_40",zr={subscriptionProductContainer:fD,subscriptionProductImage:hD,subscriptionProductInfo:pD,name:mD,price:gD},zd=({subscription:e,id:t,accessToken:n})=>{const[r,u]=L.useState(!1),{setIsOpen:a}=g.useModalStore();return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:zr.subscriptionProductContainer,onClick:s=>s.stopPropagation(),children:[i.jsx("div",{className:zr.subscriptionProductImage,children:e!=null&&e.image?i.jsx("img",{src:g.convertCfImageIdToUrl(e.image.cfId)}):i.jsx(N.Icon,{name:"Image"})}),i.jsxs("div",{className:zr.subscriptionProductInfo,children:[i.jsx("div",{className:"flex items-center gap-2",children:i.jsx("h2",{className:zr.name,children:e.name})}),i.jsxs("p",{className:zr.price,children:[g.formatPrice(e.price)," / ",e.recurringInterval]})]}),i.jsx(N.Button,{type:"Special",onClick:s=>{s.preventDefault(),u(!0),a(!0)},children:"Cancel"})]}),r&&i.jsx(N.Modal,{close:()=>u(!1),children:i.jsx(Kd,{accessToken:n,id:t,isOpen:r,setIsOpen:u})})]})},bD="_content_5ctxw_1",_D="_selectedPlan_5ctxw_37",xD="_planName_5ctxw_44",CD="_description_5ctxw_48",ED="_price_5ctxw_51",yD="_buttonGroup_5ctxw_79",TD="_buttonWrapper_5ctxw_84",kD="_modal_5ctxw_88",AD="_header_5ctxw_95",tn={content:bD,selectedPlan:_D,planName:xD,description:CD,price:ED,buttonGroup:yD,buttonWrapper:TD,modal:kD,header:AD},qd=({setIsOpen:e,selectedVariant:t,subscription:n})=>{if(!t)return null;const{setIsOpen:r}=g.useModalStore(),u=()=>{a()},a=()=>{r(!1),setTimeout(()=>{e(!1)},300)},s=(t.subscriptionSettings.compareAtPrice||t.subscriptionSettings.price).amount,o=t.subscriptionSettings.compareAtPrice?t.subscriptionSettings.compareAtPrice.amount-t.subscriptionSettings.price.amount:t.subscriptionSettings.price.amount,c=s-o,l=new Intl.NumberFormat("en-US",{style:"currency",currency:n.price.currency});return i.jsxs("div",{className:tn.modal,children:[i.jsxs("div",{className:tn.header,children:[i.jsx("h3",{id:"h3",children:"Choose upgrade method"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:()=>a(),fill:"var(--text-primary)"})]}),i.jsxs("div",{className:tn.bottomSheet,children:[i.jsxs("div",{className:tn.content,children:[i.jsxs("div",{className:tn.selectedPlan,children:[i.jsx("h2",{className:tn.planName,children:t.name}),i.jsx("p",{className:tn.description,children:t.description}),i.jsxs("p",{className:tn.price,children:["$",t.subscriptionSettings.price.amount.toFixed(2)," /"," ",t.subscriptionSettings.recurringIntervalDays===30?"month":"year"]})]}),i.jsx(wr,{formatter:l,coupon:null,total:c,discount:o})]}),i.jsxs("div",{className:tn.buttonGroup,children:[i.jsx("div",{className:tn.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:()=>a(),children:"Stay with us"})}),i.jsx("div",{className:tn.buttonWrapper,children:i.jsxs(N.Button,{type:"Primary",onClick:u,children:["Upgrade for $",c.toFixed(2)]})})]})]})]})},SD="_orderStatusBlock_2wo4y_2",ID="_orderStatusBlockAntistock_2wo4y_11",ND="_iconWrapper_2wo4y_16",vD="_orderStatusTitle_2wo4y_26",wD="_orderStatusDescription_2wo4y_31",DD="_actionButtons_2wo4y_36",LD="_actionButton_2wo4y_36",PD="_button_2wo4y_47",on={orderStatusBlock:SD,orderStatusBlockAntistock:ID,iconWrapper:ND,orderStatusTitle:vD,orderStatusDescription:wD,actionButtons:DD,actionButton:LD,button:PD},RD={[be.New]:"New",[be.Pending]:"Order Pending",[be.Processing]:"Order Processing",[be.Expired]:"Order Expired",[be.Cancelled]:"Order Canceled",[be.Failed]:"Order Failed",[be.FullDeliveryFailure]:"Delivery Failure",[be.PartiallyDelivered]:"Partial Delivery Failure",[be.Refunded]:"Order Refunded",[be.Completed]:"Order Completed",[be.PartiallyRefunded]:"Partial Refund"},MD={[be.New]:"Your order has been created and is awaiting payment.",[be.Pending]:"Your order is currently pending. We recommend checking back shortly for confirmation.",[be.Processing]:"Your order is currently being processed. We are preparing your delivery - this usually only takes a short while.",[be.Expired]:"Your order has expired due to the payment not being sent in time. If you already sent the payment, please contact us below.",[be.Cancelled]:"You canceled the warrant. If there are any problems, please contact support.",[be.Failed]:"Your order could not be processed due to a payment or system error. Please try again or contact support.",[be.FullDeliveryFailure]:"Your payment was successful but the product is currently out of stock. Please contact us below to get this sorted.",[be.PartiallyDelivered]:"Your payment was successful but some products were out of stock. Please contact us below to get this sorted.",[be.Refunded]:"Your order was refunded. Please check your payment method for confirmation.",[be.Completed]:"Your order has successfully been processed. View your products below or check your email for additional information.",[be.PartiallyRefunded]:"Your order was partially refunded. Please check your payment method for confirmation."},Zd=()=>({[be.Completed]:i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"}),[be.Pending]:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"}),[be.Processing]:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"}),[be.New]:i.jsx(N.Icon,{name:"Clock",fill:"var(--text-warning)"}),[be.Expired]:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"}),[be.Cancelled]:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"}),[be.Failed]:i.jsx(N.Icon,{name:"XCircle",fill:"var(--text-action)"}),[be.FullDeliveryFailure]:i.jsx(N.Icon,{name:"Warning",fill:"var(--text-warning)"}),[be.PartiallyDelivered]:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)"}),[be.Refunded]:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)"}),[be.PartiallyRefunded]:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)"})}),Wd=({orderStatus:e,className:t})=>{var l,h;const{shopDomain:n}=g.useStorefrontStore(),{isAntistock:r,general:u}=g.useGeneralStore(),a=g.useNavigate(),s=!!((l=u==null?void 0:u.info)!=null&&l.disableSupport),o=(h=u==null?void 0:u.info)==null?void 0:h.thirdPartySupportUrl,c=!(s&&!o);return i.jsxs("div",{className:g.clx(on.orderStatusBlock,t,{[on.orderStatusBlockAntistock]:r}),children:[i.jsx("div",{className:on.iconWrapper,style:r?{background:"none"}:void 0,children:Zd()[e]}),i.jsx("h2",{className:on.orderStatusTitle,children:RD[e]}),i.jsx("p",{className:on.orderStatusDescription,children:MD[e]}),i.jsxs("div",{className:on.actionButtons,children:[i.jsx("div",{className:on.actionButton,children:i.jsxs(N.Button,{type:"Secondary",className:on.button,onClick:()=>window.open(`https://${n}`),style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"ArrowLineUpRight"}),"Visit Website"]})}),c&&i.jsx("div",{className:on.actionButton,children:i.jsxs(N.Button,{type:"Secondary",className:on.button,onClick:()=>{s&&o?window.open(o):r?window.open(`https://${n}/support`):a("/contact")},style:{width:"100%",display:"flex",alignItems:"center",gap:"5px"},children:[i.jsx(N.Icon,{name:"ChatsTeardrop"}),"Contact Support"]})})]})]})},OD="_reviewMessage_1t8u4_1",jD="_leaveReviewContainer_1t8u4_11",FD="_leaveReviewTitle_1t8u4_20",Cs={reviewMessage:OD,leaveReviewContainer:jD,leaveReviewTitle:FD},Yd=({review:e,orderId:t,className:n})=>{const[r,u]=L.useState((e==null?void 0:e.rating)||0),[a,s]=L.useState(!1),{setIsOpen:o}=g.useModalStore(),{notifications:c,setNotifications:l}=g.useNotificationStore(),h=async f=>{e&&"accessToken"in e&&(await M2({comment:f,rating:r,tsId:g.useGetTsId()},t,e.accessToken),l([...c,{status:"success",id:g.v4(),message:"Review left successfully"}]),s(!1))};return L.useEffect(()=>{e&&r&&"accessToken"in e&&!e.rating&&(o(!0),s(!0))},[r]),e?e.rating&&"accessToken"in e?i.jsxs("div",{className:Cs.reviewMessage,children:["You left a ",e.rating," star rating"]}):i.jsxs("div",{className:g.clx(Cs.leaveReviewContainer,n),children:[i.jsx("p",{className:Cs.leaveReviewTitle,children:"Leave a review"}),i.jsx(x7,{rating:r,setRating:u,disabled:!!e.rating||!("accessToken"in e)}),a&&i.jsx(N.Modal,{close:()=>s(!1),children:i.jsx(Gd,{setIsOpen:s,onSubmit:h})})]}):null},BD="_bottomSheet_1bcyj_1",HD="_content_1bcyj_7",UD="_title_1bcyj_18",VD="_buttonGroup_1bcyj_22",$D="_buttonWrapper_1bcyj_33",zD="_modal_1bcyj_37",qD="_header_1bcyj_44",Pn={bottomSheet:BD,content:HD,title:UD,buttonGroup:VD,buttonWrapper:$D,modal:zD,header:qD},Gd=({setIsOpen:e,onSubmit:t})=>{const[n,r]=L.useState(""),{setIsOpen:u}=g.useModalStore(),a=()=>{u(!1),setTimeout(()=>{e(!1)},300)};return i.jsxs("div",{className:Pn.modal,onClick:s=>s.stopPropagation(),children:[i.jsxs("div",{className:Pn.header,children:[i.jsx("h3",{id:"h3",className:Pn.title,children:"Review Description"}),i.jsx(N.Icon,{name:"X",hoverable:!0,onClick:a,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:Pn.bottomSheet,children:[i.jsx("div",{className:Pn.content,children:i.jsx(N.Textarea,{placeholder:"Great product and fast checkout...",value:n,onChange:s=>r(s),label:"Describe your review in detail below"})}),i.jsxs("div",{className:Pn.buttonGroup,children:[i.jsx("div",{className:Pn.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:a,children:"Cancel"})}),i.jsx("div",{className:Pn.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",disabled:!n,onClick:()=>{a(),t(n)},children:"Submit"})})]})]})]})},ZD="_container_1idhv_1",WD="_buttonGroup_1idhv_8",YD="_buttonWrapper_1idhv_15",GD="_header_1idhv_19",XD="_content_1idhv_28",er={container:ZD,buttonGroup:WD,buttonWrapper:YD,header:GD,content:XD},KD="_modal_1rkmj_1",QD="_modalPayment_1rkmj_7",JD="_title_1rkmj_15",eL="_description_1rkmj_20",Vu={modal:KD,modalPayment:QD,title:JD,description:eL},Zi=()=>i.jsxs("div",{className:g.clx(Vu.modal,Vu.modalPayment),onClick:e=>e.stopPropagation(),children:[i.jsx(N.Loader,{style:{border:"4px solid var(--surface-action1)",borderLeftColor:"var(--surface-secondary)",width:"40px",height:"40px"}}),i.jsx("h2",{id:"h3",className:Vu.title,children:"Processing Payment"}),i.jsx("p",{className:Vu.description,children:"This payment is currently being processed. If you're here, it simply means that the payment was created but not complete."})]}),Xd=({setIsOpen:e})=>{const{subscription:t}=g.useSubscriptionStore(),{getTotalAndDiscount:n,cart:r,coupon:u}=du(),[a,s]=L.useState(1),o=g.useNavigate(),{setIsOpen:c}=g.useModalStore(),{setNotifications:l,notifications:h}=g.useNotificationStore(),[f,m]=L.useState(!1),p=L.useMemo(()=>n(),[u,r]),b=L.useMemo(()=>p.totalWithDiscount?p.total-p.totalWithDiscount:0,[p]);if(f)return i.jsx(Zi,{});const _=(t==null?void 0:t.price.currency)||"USD",E=new Intl.NumberFormat("en-US",{style:"currency",currency:_});async function x(){var y;m(!0);try{const{data:D}=await w2((t==null?void 0:t.id)||"",{});l([{id:g.v4(),message:"Order created successfully",status:"success"}]),o(`/orders/${(y=D.data)==null?void 0:y.id}/${D.data.fullAccessToken}`)}catch(D){const S=D;l([...h,{id:g.v4(),message:`Order creation failed: ${S.message}`,status:"error"}]),k()}finally{m(!1)}}function k(){c(!1),setTimeout(()=>{e(!1)},300)}return i.jsxs("div",{className:er.container,onClick:y=>y.stopPropagation(),children:[i.jsxs("div",{className:er.header,children:[i.jsx("h3",{id:"h3",className:er.title,children:"Extend Subscription"}),i.jsx(N.Icon,{name:"X",onClick:k,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:er.content,children:[i.jsx(D7,{step:a,totalSteps:12,onStepChange:s,label:"How long would you like to extend your subscription for?"}),i.jsx(wr,{formatter:E,coupon:u,total:p.total,discount:b,totalWithDiscount:p.totalWithDiscount}),i.jsxs("div",{className:er.buttonGroup,children:[i.jsx("div",{className:er.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:k,children:"Cancel"})}),i.jsx("div",{className:er.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",onClick:x,children:"Extend"})})]})]})]})},tL="_bottomSheet_uw5jb_1",nL="_content_uw5jb_7",rL="_radioGroup_uw5jb_11",uL="_confirmation_uw5jb_26",aL="_iconWrapper_uw5jb_33",sL="_title_uw5jb_42",iL="_message_uw5jb_48",oL="_buttonGroup_uw5jb_54",cL="_buttonWrapper_uw5jb_64",lL="_modal_uw5jb_68",dL="_header_uw5jb_77",ut={bottomSheet:tL,content:nL,radioGroup:rL,confirmation:uL,iconWrapper:aL,title:sL,message:iL,buttonGroup:oL,buttonWrapper:cL,modal:lL,header:dL},fL={0:"Are you sure?",1:"Just making sure",2:"We're sorry to see you go"},Kd=({isOpen:e,setIsOpen:t,id:n,accessToken:r})=>{const[u,a]=L.useState(0),[s,o]=L.useState(!1),[c,l]=L.useState(""),[h,f]=L.useState(""),{setIsOpen:m}=g.useModalStore(),p=async()=>{if(!c)return;o(!0);const _=await S2(n,r,{reason:c==="Other reason"?h:c});o(!1),_&&a(2)};L.useEffect(()=>{e||(a(0),l(""),f(""))},[e]);const b=()=>{m(!1),setTimeout(()=>{t(!1)},300)};return i.jsxs("div",{className:ut.modal,onClick:_=>_.stopPropagation(),children:[i.jsxs("div",{className:ut.header,children:[i.jsx("h3",{id:"h3",children:fL[u]||""}),i.jsx(N.Icon,{name:"X",onClick:b,hoverable:!0,fill:"var(--text-primary)"})]}),i.jsxs("div",{className:ut.content,children:[u===0&&i.jsxs("div",{className:ut.bottomSheet,children:[i.jsx("p",{children:"Before you cancel your subscription can you tell us why?"}),i.jsxs("div",{className:ut.radioGroup,children:[i.jsx(N.Radio,{defaultValue:c,onChange:_=>l(_),options:[{value:"Found another company",label:"Found another company"},{value:"Expensive",label:"Expensive"},{value:"Technical problems",label:"Technical problems"},{value:"Support problems",label:"Support problems"},{value:"Other reason",label:"Other reason"}],flexDirection:"column"}),c==="Other reason"&&i.jsx(N.Textarea,{value:h,onChange:_=>f(_),placeholder:"Describe the reason..."})]}),i.jsxs("div",{className:ut.buttonGroup,children:[i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Stay with us"})}),i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",onClick:()=>c&&a(1),disabled:!c,children:"Continue"})})]})]}),u===1&&i.jsxs("div",{className:ut.bottomSheet,children:[i.jsx("p",{children:"You'll lose access to all of the features and content available within this subscription."}),i.jsxs("div",{className:ut.buttonGroup,children:[i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Stay with us"})}),i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Primary",onClick:p,disabled:s,children:"Cancel it anyway"})})]})]}),u===2&&i.jsxs("div",{className:ut.bottomSheet,children:[i.jsxs("div",{className:`${ut.confirmation}`,children:[i.jsx("div",{className:ut.iconWrapper,children:i.jsx(N.Icon,{name:"Check",fill:"var(--text-success)"})}),i.jsx("p",{className:ut.title,children:"Subscription Cancelled"}),i.jsx("p",{className:ut.message,children:"You'll lose access to all of the features and content available within this subscription."})]}),i.jsx("div",{className:ut.buttonGroup,children:i.jsx("div",{className:ut.buttonWrapper,children:i.jsx(N.Button,{type:"Secondary",onClick:b,children:"Close"})})})]})]})]})},hL="_vouchCard_ntutv_1",pL="_vouchContent_ntutv_13",mL="_vouchIcon_ntutv_20",gL="_vouchText_ntutv_29",bL="_vouchTitle_ntutv_35",_L="_vouchDescription_ntutv_42",xL="_addMessageButton_ntutv_48",CL="_vouchCardSubmitted_ntutv_53",Nt={vouchCard:hL,vouchContent:pL,vouchIcon:mL,vouchText:gL,vouchTitle:bL,vouchDescription:_L,addMessageButton:xL,vouchCardSubmitted:CL},Qd=({onAddMessage:e,className:t,isVouchLeft:n=!1})=>n?i.jsx("div",{className:`${Nt.vouchCard} ${Nt.vouchCardSubmitted} ${t||""}`,children:i.jsxs("div",{className:Nt.vouchContent,children:[i.jsx("div",{className:Nt.vouchIcon,children:i.jsx(N.Icon,{name:"Check"})}),i.jsxs("div",{className:Nt.vouchText,children:[i.jsx("h3",{className:Nt.vouchTitle,children:"Thank You"}),i.jsx("p",{className:Nt.vouchDescription,children:"We appreciate you sharing your experience with your purchase."})]})]})}):i.jsxs("div",{className:`${Nt.vouchCard} ${t||""}`,children:[i.jsxs("div",{className:Nt.vouchContent,children:[i.jsx("div",{className:Nt.vouchIcon,children:i.jsx(N.Icon,{name:"Star"})}),i.jsxs("div",{className:Nt.vouchText,children:[i.jsx("h3",{className:Nt.vouchTitle,children:"Leave a Vouch"}),i.jsx("p",{className:Nt.vouchDescription,children:"Share your experience with our team."})]})]}),i.jsx(N.Button,{type:"Secondary",onClick:e,className:Nt.addMessageButton,children:"Add Message"})]}),EL="_vouchModal_19vu5_1",yL="_vouchModalAntistock_19vu5_12",TL="_vouchModalHeader_19vu5_17",kL="_title_19vu5_25",AL="_closeButton_19vu5_32",SL="_vouchModalContent_19vu5_46",IL="_bottomSheet_19vu5_53",NL="_content_19vu5_61",vL="_productContainer_19vu5_65",wL="_searchContainer_19vu5_73",DL="_scrollableBox_19vu5_77",LL="_productItem_19vu5_87",PL="_productImage_19vu5_97",RL="_productName_19vu5_119",ML="_productItemError_19vu5_125",OL="_noResults_19vu5_130",jL="_fieldError_19vu5_140",FL="_vouchForm_19vu5_145",BL="_formField_19vu5_151",HL="_vouchModalFooter_19vu5_312",UL="_submitButton_19vu5_317",We={vouchModal:EL,vouchModalAntistock:yL,vouchModalHeader:TL,title:kL,closeButton:AL,vouchModalContent:SL,bottomSheet:IL,content:NL,productContainer:vL,searchContainer:wL,scrollableBox:DL,productItem:LL,productImage:PL,productName:RL,productItemError:ML,noResults:OL,fieldError:jL,vouchForm:FL,formField:BL,vouchModalFooter:HL,submitButton:UL},Jd=({isOpen:e,onClose:t,products:n,orderId:r,accessToken:u,shopDomain:a,onSuccess:s})=>{const{isAntistock:o}=g.useGeneralStore(),{setNotifications:c,notifications:l}=g.useNotificationStore(),{setIsOpen:h}=g.useModalStore(),[f,m]=L.useState(null),[p,b]=L.useState(""),[_,E]=L.useState(""),[x,k]=L.useState(n.map(Y=>Y.id.toString())),[y,D]=L.useState(!1),[S,I]=L.useState({}),M=L.useRef(null),H=L.useRef(null),U=L.useRef(null),P=L.useMemo(()=>_.trim()?new nl.Fuse(n,{keys:["name"],threshold:.3}).search(_).map(K=>K.item):n,[n,_]),B=Y=>{k(K=>K.includes(Y)&&K.length===1?K:K.includes(Y)?K.filter(ue=>ue!==Y):[...K,Y]),I(K=>({...K,selectedProducts:void 0}))},O=async()=>{var K;I({});const Y={};if(x.length===0&&(Y.selectedProducts="Please select at least one product"),f||(Y.image="Please upload a screenshot"),p.trim()||(Y.message="Please enter a message"),Object.keys(Y).length>0){I(Y),setTimeout(()=>{Y.selectedProducts&&M.current?M.current.scrollIntoView({behavior:"smooth",block:"center"}):Y.image&&H.current?H.current.scrollIntoView({behavior:"smooth",block:"center"}):Y.message&&U.current&&U.current.scrollIntoView({behavior:"smooth",block:"center"})},100);return}if(!r||!u||!a||!f){c([...l,{id:g.v4(),message:"Missing required information",status:"error"}]);return}D(!0);try{const ue={imageId:parseInt(f.id),productIds:x.map(ae=>parseInt(ae)),comment:p.trim(),tsId:g.v4()};await Z2(ue,a,r,u),c([...l,{id:g.v4(),message:"Vouch submitted successfully",status:"success"}]),s==null||s(),t()}catch(ue){console.log({error:ue});let ae="Failed to submit vouch",se="";const _e=ue;if((K=_e==null?void 0:_e.response)!=null&&K.data){const C=_e.response.data;C.message&&C.errors&&Array.isArray(C.errors)?(se=C.message,ae=C.errors.join(", ")):C.errors&&Array.isArray(C.errors)?ae=C.errors.join(", "):C.message&&(ae=C.message)}else ue instanceof Error&&(ae=ue.message);c([...l,{id:g.v4(),message:ae,status:"error",label:se}])}finally{D(!1)}},X=()=>{b(""),m(null),E(""),k(n.map(Y=>Y.id.toString())),I({}),t()};return L.useEffect(()=>{e&&k(n.map(Y=>Y.id.toString()))},[e]),L.useEffect(()=>{e&&h(!0)},[e,h]),e?i.jsx(N.Modal,{close:X,withAnimation:!o,children:i.jsxs("div",{className:g.clx(We.vouchModal,{[We.vouchModalAntistock]:o}),onClick:Y=>Y.stopPropagation(),children:[i.jsxs("div",{className:We.vouchModalHeader,children:[i.jsx("h3",{className:We.title,children:"Vouch"}),i.jsx("button",{className:We.closeButton,onClick:X,children:i.jsx(N.Icon,{name:"X"})})]}),i.jsxs("div",{className:We.vouchModalContent,children:[i.jsx("div",{className:We.bottomSheet,children:i.jsxs("div",{className:We.content,children:[i.jsxs("div",{className:We.productContainer,children:[i.jsx("div",{className:We.searchContainer,children:i.jsx(N.Input,{onChange:E,isSearch:!0,value:_,placeholder:"Search for products",label:"Products *"})}),i.jsx("div",{ref:M,className:We.scrollableBox,children:P.length>0?P.map(Y=>i.jsxs("div",{className:g.clx(We.productItem,{[We.productItemError]:S.selectedProducts&&!x.includes(Y.id.toString())}),onClick:()=>B(Y.id.toString()),children:[i.jsx("div",{className:We.productImage,children:Y.image?i.jsx("img",{src:g.convertCfImageIdToUrl(Y.image.cfId),alt:Y.name}):i.jsx(N.Icon,{name:"Image"})}),i.jsx("span",{className:We.productName,children:Y.name}),i.jsx("div",{onClick:K=>K.stopPropagation(),children:i.jsx(N.Checkbox,{value:x.includes(Y.id.toString()),onChange:()=>B(Y.id.toString()),disabled:x.length===1&&x.includes(Y.id.toString())})})]},Y.id)):i.jsx("div",{className:We.noResults,children:i.jsx("p",{children:"No products found"})})}),S.selectedProducts&&i.jsx("div",{className:We.fieldError,children:S.selectedProducts})]}),i.jsxs("div",{className:We.vouchForm,children:[i.jsx("div",{className:We.formField,ref:H,children:i.jsx(N.ImagesLoader,{images:f,onChange:Y=>{m(Y),S.image&&I(K=>({...K,image:void 0}))},multiple:!1,label:"Screenshot",required:!0,showImageLoading:!0})}),i.jsxs("div",{className:We.formField,ref:U,children:[i.jsx(N.Textarea,{label:"Message *",value:p,onChange:b,placeholder:"Instant product delivery, paid with balance...",error:S.message,maxLength:150}),S.message&&i.jsx("div",{className:We.fieldError,children:S.message})]})]})]})}),i.jsx("div",{className:We.vouchModalFooter,children:i.jsx(N.Button,{type:"Primary",onClick:O,disabled:y,className:We.submitButton,children:y?i.jsx(N.Loader,{}):"LEAVE A VOUCH"})})]})]})}):null},VL="_modalContent_1a05n_1",$L="_iconContainer_1a05n_16",zL="_warningIcon_1a05n_20",qL="_title_1a05n_25",ZL="_description_1a05n_33",WL="_buttonContainer_1a05n_40",YL="_button_1a05n_40",Tn={modalContent:VL,iconContainer:$L,warningIcon:zL,title:qL,description:ZL,buttonContainer:WL,button:YL},e2=({isOpen:e,onClose:t,refundedAmount:n,currency:r})=>{var E,x;const u=g.useNavigate(),{token:a,shopDomain:s}=g.useStorefrontStore(),{isAntistock:o,general:c}=g.useGeneralStore(),l=!!((E=c==null?void 0:c.info)!=null&&E.disableSupport),h=(x=c==null?void 0:c.info)==null?void 0:x.thirdPartySupportUrl,f=!(l&&!h),m=new Intl.NumberFormat("en-US",{style:"currency",currency:r}),p=()=>{u(o?"/account":"/customer-dash")},b=async()=>{if(l&&h){window.open(h);return}o?window.open(`https://${s}/support`):u("/contact")},_=()=>{t()};return e?i.jsx(N.Modal,{close:t,children:i.jsxs("div",{className:Tn.modalContent,onClick:k=>k.stopPropagation(),children:[i.jsx("div",{className:Tn.iconContainer,children:i.jsx(N.Icon,{name:"WarningDiamond",fill:"var(--text-warning)",className:Tn.warningIcon})}),i.jsx("h2",{className:Tn.title,children:"Partial Delivery Failure Refund"}),i.jsxs("p",{className:Tn.description,children:["Your payment was successful but a few products were out of stock. We've automatically refunded the products that were out of stock, with a total of"," ",m.format(n),", to your account balance."]}),i.jsxs("div",{className:Tn.buttonContainer,children:[!a&&i.jsx(N.Button,{type:"Secondary",onClick:p,className:Tn.button,children:"Login"}),f&&i.jsx(N.Button,{type:"Secondary",onClick:b,className:Tn.button,children:"Contact Support"}),i.jsx(N.Button,{type:"Primary",onClick:_,className:Tn.button,children:"Continue"})]})]})}):null},GL=Object.freeze(Object.defineProperty({__proto__:null,ActivePaymentMethod:$d,ActiveSubscriptionProduct:zd,Auth:ma,AuthLogin:p0,AuthModal:N0,AuthRequestOtp:h0,CHARGE_STATUS_DESCRIPTION:Dd,CHARGE_STATUS_DISPLAY_NAME:nr,CancelSubscription:Kd,CashAppVerify:Od,ChangeSubscriptionPlan:Hd,ChargeBlocksRenderer:ua,ChargeItems:Md,ChargeStatusBlock:Pd,CheckoutBalancePaymentMethod:pi,CheckoutFooter:qn,CheckoutHeader:xa,CheckoutItems:k0,CheckoutOperational:vd,CheckoutOrderMainData:zi,CheckoutPaymentMethod:mi,CheckoutPrices:wr,CheckoutProduct:Ca,ChoosePlanUpgradeMethod:qd,ConnectDiscord:I0,CustomField:S0,CustomFields:A0,CustomerDashboard:m5,LeaveAReview:Yd,NoItemsBlock:ba,OpenDelivery:wd,OrderStatusBlock:Wd,OrdersTable:x0,PageLoading:cw,PageTitle:ga,Pagination:C0,PaginationWithRange:bu,PayPalFFNote:Rd,PaymentMethods:gi,ProcessingPaymentModal:Zi,ProtectYourCheckout:Nd,ReferralBlock:m0,ReferralBlockInfo:b0,ReferralBlockSteps:g0,RefundNotificationModal:e2,SecuredBySsl:$i,Sidebar:Wl,SkeletonReferralBlock:_0,StatItem:wt,StatusIndicator:y0,StatusVariant:In,SubmitReview:Gd,SubscriptionCoupon:Vd,SubscriptionExpiration:Xd,SubscriptionExpirationDate:Ud,SubscriptionProduct:Bd,SubscriptionStatusBadge:qi,SubscriptionsTable:Fd,Table:_a,TableItem:ot,TableItemTitle:Pt,TermsOfService:Vi,TicketRow:jd,TrackPayment:Ra,VouchCard:Qd,VouchModal:Jd,getChargeStatusIcon:Ld,getOrderStatusIcon:Zd,getPaginationText:E0},Symbol.toStringTag,{value:"Module"})),XL="_chargePageContainer_1azbl_1",KL="_chargeItems_1azbl_14",QL="_mainContent_1azbl_25",JL="_contentWrapper_1azbl_44",eP="_antistockContent_1azbl_53",tP="_statusBlock_1azbl_58",nP="_statusBlockAntistock_1azbl_63",rP="_notPaidSection_1azbl_68",uP="_antistockPayNow_1azbl_82",aP="_antistockFooter_1azbl_86",sP="_antistockTrackPayment_1azbl_96",iP="_footer_1azbl_106",oP="_loaderContainer_1azbl_128",Ft={chargePageContainer:XL,chargeItems:KL,mainContent:QL,contentWrapper:JL,antistockContent:eP,statusBlock:tP,statusBlockAntistock:nP,notPaidSection:rP,antistockPayNow:uP,antistockFooter:aP,antistockTrackPayment:sP,footer:iP,loaderContainer:oP},cP=()=>{const{id:e}=g.useParams(),[t,n]=g.useSearchParams(),[r,u]=L.useState(!1),[a,s]=L.useState(),[o,c]=L.useState(!0),l=g.useNavigate(),h=L.useRef(),f=L.useRef(!1),{setIsOpen:m}=g.useModalStore(),{isAntistock:p}=g.useGeneralStore();return L.useEffect(()=>{const b=async(E,x=!1)=>{x||u(!0);const{data:k}=await O2(E);u(!1),s(k)},_=setInterval(()=>{e&&b(e,!0)},5e3);return e&&b(e),()=>{clearInterval(_)}},[]),L.useEffect(()=>{const b=setTimeout(()=>{var E;console.log("charge timeout",a);const _=t.get("redirectRoute");if((a==null?void 0:a.status)===ke.Paid&&a.redirectUrl&&!h.current){const k=JSON.parse(localStorage.getItem("orders")||"{}")[((E=a==null?void 0:a.order)==null?void 0:E.id)||""];k?window.open(k.fullAccessToken?`${a.redirectUrl}/${k.fullAccessToken}`:`${a.redirectUrl}`,"_self"):window.open(a.redirectUrl,"_self")}(a==null?void 0:a.status)===ke.Paid&&h.current&&(console.log("redirectRouteRef.current",h.current),l(h.current,{replace:!0})),_&&h&&(h.current=_,t.delete("redirectRoute"),n(t))},1e3);return()=>clearTimeout(b)},[a]),L.useEffect(()=>{((a==null?void 0:a.gateway)==="PayPalFF"||(a==null?void 0:a.gateway)==="Сashapp")&&m(!0)},[a]),L.useEffect(()=>{var b;if(a!=null&&a.displayPaymentInfo&&a.displayPaymentInfo.length===1&&a.status===ke.NotPaid&&!f.current){const _=a.displayPaymentInfo[0];_.type==="Button"&&((b=_.props)!=null&&b.url)&&(window.open(_.props.url,"_blank"),f.current=!0)}},[a==null?void 0:a.displayPaymentInfo,a==null?void 0:a.status]),r?i.jsx("div",{className:Ft.loaderContainer,children:i.jsx(N.Loader,{})}):i.jsxs("div",{className:Ft.chargePageContainer,children:[i.jsx("div",{className:Ft.chargeItems,children:i.jsx(Md,{charge:a})}),i.jsx("div",{className:Ft.mainContent,style:p?{borderLeft:"1px solid var(--border-secondary)"}:void 0,children:i.jsxs("div",{className:g.clx(Ft.contentWrapper,{[Ft.antistockContent]:p}),children:[a&&(a==null?void 0:a.status)!==ke.NotPaid&&i.jsx(Pd,{charge:a}),a&&i.jsxs("div",{className:g.clx(Ft.statusBlock,{[Ft.statusBlockAntistock]:p}),children:[i.jsx(zi,{lastUpdate:a.expiresAt,email:a.customerForCharge.email,invoiceId:a.id,paymentType:a.gateway}),p&&(a==null?void 0:a.status)===ke.NotPaid&&i.jsx("div",{className:Ft.antistockPayNow,children:a==null?void 0:a.displayPaymentInfo.map((b,_)=>i.jsx(ua,{block:b},_))}),p&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:Ft.antistockTrackPayment,children:i.jsx(Ra,{timeline:a.timeline})}),i.jsx(qn,{className:Ft.antistockFooter})]})]}),!p&&(a==null?void 0:a.status)===ke.NotPaid&&i.jsx("div",{className:Ft.notPaidSection,children:a==null?void 0:a.displayPaymentInfo.map((b,_)=>i.jsx(ua,{block:b},_))}),!p&&i.jsx(qn,{className:Ft.footer})]})}),(a==null?void 0:a.gateway)==="PayPalFF"&&o&&i.jsx(N.Modal,{close:()=>c(!1),children:i.jsx(Rd,{price:a.price,setIsOpen:c})}),(a==null?void 0:a.gateway)==="Сashapp"&&o&&i.jsx(N.Modal,{close:()=>u(!1),children:i.jsx(Od,{setIsOpen:c,chargeId:a.id})})]})},lP=Object.freeze(Object.defineProperty({__proto__:null,ChargePage:cP},Symbol.toStringTag,{value:"Module"}));exports.ActivePaymentMethod=$d;exports.ActiveSubscriptionProduct=zd;exports.BalanceModal=t0;exports.ChangeSubscriptionPlan=Hd;exports.ChargeStatus=ke;exports.CheckoutFooter=qn;exports.CheckoutHeader=xa;exports.CheckoutItems=k0;exports.CheckoutOperational=vd;exports.CheckoutOrderMainData=zi;exports.CheckoutPrices=wr;exports.CheckoutProduct=Ca;exports.LeaveAReview=Yd;exports.Markdown=va;exports.MarkdownText=di;exports.NoItemsBlock=ba;exports.OrderStatus=be;exports.OrderStatusBlock=Wd;exports.OrdersTable=x0;exports.PageTitle=ga;exports.PaginationWithRange=bu;exports.ReCaptchaProvider=ni;exports.RefundNotificationModal=e2;exports.StableText=al;exports.SubscriptionCoupon=Vd;exports.SubscriptionExpirationDate=Ud;exports.SubscriptionProduct=Bd;exports.SubscriptionsTable=Fd;exports.Table=_a;exports.TableItemTitle=Pt;exports.TicketRow=jd;exports.TrackPayment=Ra;exports.VouchCard=Qd;exports.VouchModal=Jd;exports.auth=F2;exports.fetchAuthorizedOrder=x2;exports.fetchGeneral=u2;exports.fetchOrder=_2;exports.fetchOrders=b2;exports.fetchPrivacyPolicy=m2;exports.fetchRefundPolicy=p2;exports.fetchSubscription=k2;exports.fetchSubscriptions=N2;exports.fetchTerms=h2;exports.fetchThemeAndSettings=a2;exports.fetchTicket=D2;exports.fetchTickets=P2;exports.getBalance=ca;exports.getBalanceSettings=Cl;exports.getGatewaysDetail=hu;exports.index=GL;exports.index$1=lP;exports.parseDraftJsText=xl;exports.recapcha=wf;exports.rehypeRaw=Ui;exports.remarkGfm=Pi;exports.sendTicketMessage=L2;exports.uploadImage=E2;exports.useCart=du;exports.useCopy=Zn;exports.useGeneralInfo=pl;exports.useMarkdownIt=Zl;exports.useReCaptcha=fu;
|