strapi-plugin-comments 3.0.9 → 3.0.10

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.
Files changed (30) hide show
  1. package/README.md +1 -1
  2. package/dist/_chunks/fr-Bh0tVDIQ.js +1 -0
  3. package/dist/_chunks/{fr-Dx7zbWW0.mjs → fr-n-k7Rsq9.mjs} +105 -56
  4. package/dist/_chunks/index-3aTvO9o4.js +2221 -0
  5. package/dist/_chunks/{index-Bi2NddA5.mjs → index-B3sOw8of.mjs} +10295 -10019
  6. package/dist/_chunks/{index-DiQHdq_2.js → index-BkeaCrYD.js} +1 -1
  7. package/dist/_chunks/{index-BbHOeszY.mjs → index-BmZpl8oj.mjs} +8017 -7982
  8. package/dist/_chunks/{index-gJOowHIB.js → index-C1iG6Vvf.js} +44 -44
  9. package/dist/_chunks/{index-Bfn0RC18.js → index-CdurBq-v.js} +1 -1
  10. package/dist/_chunks/{index-B8Jogmi4.mjs → index-CzOGwAt4.mjs} +1 -1
  11. package/dist/_chunks/{index-D56DrIq3.mjs → index-DG6A3YTl.mjs} +2 -2
  12. package/dist/admin/index.js +1 -1
  13. package/dist/admin/index.mjs +1 -1
  14. package/dist/admin/src/api/schemas.d.ts +16 -16
  15. package/dist/admin/src/components/ActionButton/index.d.ts +4 -2
  16. package/dist/admin/src/components/DiscussionThreadItem/DiscussionThreadItemFooter.d.ts +1 -1
  17. package/dist/admin/src/components/DiscussionThreadItem/index.d.ts +2 -2
  18. package/dist/admin/src/components/IconButtonGroup/index.d.ts +5 -2
  19. package/dist/admin/src/components/StatusBadge/index.d.ts +1 -1
  20. package/dist/admin/src/components/Wysiwyg/EditorLayout.d.ts +1 -1
  21. package/dist/admin/src/components/Wysiwyg/WysiwygStyles.d.ts +4 -4
  22. package/dist/admin/src/translations/fr.d.ts +50 -0
  23. package/dist/server/index.js +20 -20
  24. package/dist/server/index.mjs +435 -438
  25. package/dist/server/src/validators/api/controllers/admin.controller.validator.d.ts +6 -10
  26. package/dist/server/src/validators/repositories/comment.validator.d.ts +57 -57
  27. package/dist/server/src/validators/utils.d.ts +8 -8
  28. package/package.json +9 -9
  29. package/dist/_chunks/fr-BIrOYxvf.js +0 -1
  30. package/dist/_chunks/index-BNZz69rC.js +0 -2175
@@ -1,4 +1,4 @@
1
- "use strict";const z=require("react/jsx-runtime"),b=require("./index-BNZz69rC.js"),dr=require("@tanstack/react-query"),oe=require("react"),rt=require("@strapi/strapi/admin"),a=require("zod");function Xt(r){if(r&&r.__esModule)return r;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const ae=Xt(oe);var ce=TypeError;const Zt={},en=Object.freeze(Object.defineProperty({__proto__:null,default:Zt},Symbol.toStringTag,{value:"Module"})),rn=b.getAugmentedNamespace(en);var mr=typeof Map=="function"&&Map.prototype,De=Object.getOwnPropertyDescriptor&&mr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Re=mr&&De&&typeof De.get=="function"?De.get:null,$r=mr&&Map.prototype.forEach,vr=typeof Set=="function"&&Set.prototype,Le=Object.getOwnPropertyDescriptor&&vr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,we=vr&&Le&&typeof Le.get=="function"?Le.get:null,Rr=vr&&Set.prototype.forEach,tn=typeof WeakMap=="function"&&WeakMap.prototype,fe=tn?WeakMap.prototype.has:null,nn=typeof WeakSet=="function"&&WeakSet.prototype,pe=nn?WeakSet.prototype.has:null,on=typeof WeakRef=="function"&&WeakRef.prototype,wr=on?WeakRef.prototype.deref:null,an=Boolean.prototype.valueOf,ln=Object.prototype.toString,un=Function.prototype.toString,cn=String.prototype.match,gr=String.prototype.slice,H=String.prototype.replace,sn=String.prototype.toUpperCase,zr=String.prototype.toLowerCase,tt=RegExp.prototype.test,Tr=Array.prototype.concat,L=Array.prototype.join,fn=Array.prototype.slice,_r=Math.floor,or=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Be=Object.getOwnPropertySymbols,ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ye=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ie||!0)?Symbol.toStringTag:null,nt=Object.prototype.propertyIsEnumerable,Cr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function xr(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||tt.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-_r(-r):_r(r);if(n!==r){var o=String(n),i=gr.call(e,o.length+1);return H.call(o,t,"$&_")+"."+H.call(H.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return H.call(e,t,"$&_")}var ir=rn,Ir=ir.custom,Nr=it(Ir)?Ir:null,ot={__proto__:null,double:'"',single:"'"},pn={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Ce=function r(e,t,n,o){var i=t||{};if(j(i,"quoteStyle")&&!j(ot,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(j(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=j(i,"customInspect")?i.customInspect:!0;if(typeof c!="boolean"&&c!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(j(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(j(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ut(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var s=String(e);return l?xr(e,s):s}if(typeof e=="bigint"){var u=String(e)+"n";return l?xr(e,u):u}var p=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=p&&p>0&&typeof e=="object")return lr(e)?"[Array]":"[Object]";var y=_n(i,n);if(typeof o>"u")o=[];else if(lt(o,e)>=0)return"[Circular]";function m(N,G,Z){if(G&&(o=fn.call(o),o.push(G)),Z){var V={depth:i.depth};return j(i,"quoteStyle")&&(V.quoteStyle=i.quoteStyle),r(N,V,n+1,o)}return r(N,i,n+1,o)}if(typeof e=="function"&&!Mr(e)){var h=An(e),v=Ae(e,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(v.length>0?" { "+L.call(v,", ")+" }":"")}if(it(e)){var $=ie?H.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):ar.call(e);return typeof e=="object"&&!ie?se($):$}if(wn(e)){for(var _="<"+zr.call(String(e.nodeName)),g=e.attributes||[],x=0;x<g.length;x++)_+=" "+g[x].name+"="+at(yn(g[x].value),"double",i);return _+=">",e.childNodes&&e.childNodes.length&&(_+="..."),_+="</"+zr.call(String(e.nodeName))+">",_}if(lr(e)){if(e.length===0)return"[]";var P=Ae(e,m);return y&&!Tn(P)?"["+ur(P,y)+"]":"[ "+L.call(P,", ")+" ]"}if(mn(e)){var R=Ae(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!nt.call(e,"cause")?"{ ["+String(e)+"] "+L.call(Tr.call("[cause]: "+m(e.cause),R),", ")+" }":R.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+L.call(R,", ")+" }"}if(typeof e=="object"&&c){if(Nr&&typeof e[Nr]=="function"&&ir)return ir(e,{depth:p-n});if(c!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(En(e)){var f=[];return $r&&$r.call(e,function(N,G){f.push(m(G,e,!0)+" => "+m(N,e))}),Fr("Map",Re.call(e),f,y)}if($n(e)){var M=[];return Rr&&Rr.call(e,function(N){M.push(m(N,e))}),Fr("Set",we.call(e),M,y)}if(On(e))return Ue("WeakMap");if(Rn(e))return Ue("WeakSet");if(Pn(e))return Ue("WeakRef");if(gn(e))return se(m(Number(e)));if(Sn(e))return se(m(or.call(e)));if(hn(e))return se(an.call(e));if(vn(e))return se(m(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof b.commonjsGlobal<"u"&&e===b.commonjsGlobal)return"{ [object globalThis] }";if(!dn(e)&&!Mr(e)){var B=Ae(e,m),F=Cr?Cr(e)===Object.prototype:e instanceof Object||e.constructor===Object,W=e instanceof Object?"":"null prototype",k=!F&&ye&&Object(e)===e&&ye in e?gr.call(Y(e),8,-1):W?"Object":"",K=F||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",I=K+(k||W?"["+L.call(Tr.call([],k||[],W||[]),": ")+"] ":"");return B.length===0?I+"{}":y?I+"{"+ur(B,y)+"}":I+"{ "+L.call(B,", ")+" }"}return String(e)};function at(r,e,t){var n=t.quoteStyle||e,o=ot[n];return o+r+o}function yn(r){return H.call(String(r),/"/g,"&quot;")}function X(r){return!ye||!(typeof r=="object"&&(ye in r||typeof r[ye]<"u"))}function lr(r){return Y(r)==="[object Array]"&&X(r)}function dn(r){return Y(r)==="[object Date]"&&X(r)}function Mr(r){return Y(r)==="[object RegExp]"&&X(r)}function mn(r){return Y(r)==="[object Error]"&&X(r)}function vn(r){return Y(r)==="[object String]"&&X(r)}function gn(r){return Y(r)==="[object Number]"&&X(r)}function hn(r){return Y(r)==="[object Boolean]"&&X(r)}function it(r){if(ie)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!ar)return!1;try{return ar.call(r),!0}catch{}return!1}function Sn(r){if(!r||typeof r!="object"||!or)return!1;try{return or.call(r),!0}catch{}return!1}var bn=Object.prototype.hasOwnProperty||function(r){return r in this};function j(r,e){return bn.call(r,e)}function Y(r){return ln.call(r)}function An(r){if(r.name)return r.name;var e=cn.call(un.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function lt(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function En(r){if(!Re||!r||typeof r!="object")return!1;try{Re.call(r);try{we.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function On(r){if(!fe||!r||typeof r!="object")return!1;try{fe.call(r,fe);try{pe.call(r,pe)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function Pn(r){if(!wr||!r||typeof r!="object")return!1;try{return wr.call(r),!0}catch{}return!1}function $n(r){if(!we||!r||typeof r!="object")return!1;try{we.call(r);try{Re.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function Rn(r){if(!pe||!r||typeof r!="object")return!1;try{pe.call(r,pe);try{fe.call(r,fe)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function wn(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function ut(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return ut(gr.call(r,0,e.maxStringLength),e)+n}var o=pn[e.quoteStyle||"single"];o.lastIndex=0;var i=H.call(H.call(r,o,"\\$1"),/[\x00-\x1f]/g,zn);return at(i,"single",e)}function zn(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+sn.call(e.toString(16))}function se(r){return"Object("+r+")"}function Ue(r){return r+" { ? }"}function Fr(r,e,t,n){var o=n?ur(t,n):L.call(t,", ");return r+" ("+e+") {"+o+"}"}function Tn(r){for(var e=0;e<r.length;e++)if(lt(r[e],`
1
+ "use strict";const z=require("react/jsx-runtime"),b=require("./index-3aTvO9o4.js"),dr=require("@tanstack/react-query"),oe=require("react"),rt=require("@strapi/strapi/admin"),a=require("zod");function Xt(r){if(r&&r.__esModule)return r;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const ae=Xt(oe);var ce=TypeError;const Zt={},en=Object.freeze(Object.defineProperty({__proto__:null,default:Zt},Symbol.toStringTag,{value:"Module"})),rn=b.getAugmentedNamespace(en);var mr=typeof Map=="function"&&Map.prototype,De=Object.getOwnPropertyDescriptor&&mr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Re=mr&&De&&typeof De.get=="function"?De.get:null,$r=mr&&Map.prototype.forEach,vr=typeof Set=="function"&&Set.prototype,Le=Object.getOwnPropertyDescriptor&&vr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,we=vr&&Le&&typeof Le.get=="function"?Le.get:null,Rr=vr&&Set.prototype.forEach,tn=typeof WeakMap=="function"&&WeakMap.prototype,fe=tn?WeakMap.prototype.has:null,nn=typeof WeakSet=="function"&&WeakSet.prototype,pe=nn?WeakSet.prototype.has:null,on=typeof WeakRef=="function"&&WeakRef.prototype,wr=on?WeakRef.prototype.deref:null,an=Boolean.prototype.valueOf,ln=Object.prototype.toString,un=Function.prototype.toString,cn=String.prototype.match,gr=String.prototype.slice,H=String.prototype.replace,sn=String.prototype.toUpperCase,zr=String.prototype.toLowerCase,tt=RegExp.prototype.test,Tr=Array.prototype.concat,L=Array.prototype.join,fn=Array.prototype.slice,_r=Math.floor,or=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Be=Object.getOwnPropertySymbols,ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ye=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ie||!0)?Symbol.toStringTag:null,nt=Object.prototype.propertyIsEnumerable,Cr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function xr(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||tt.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-_r(-r):_r(r);if(n!==r){var o=String(n),i=gr.call(e,o.length+1);return H.call(o,t,"$&_")+"."+H.call(H.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return H.call(e,t,"$&_")}var ir=rn,Ir=ir.custom,Nr=it(Ir)?Ir:null,ot={__proto__:null,double:'"',single:"'"},pn={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Ce=function r(e,t,n,o){var i=t||{};if(j(i,"quoteStyle")&&!j(ot,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(j(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=j(i,"customInspect")?i.customInspect:!0;if(typeof c!="boolean"&&c!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(j(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(j(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ut(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var s=String(e);return l?xr(e,s):s}if(typeof e=="bigint"){var u=String(e)+"n";return l?xr(e,u):u}var p=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=p&&p>0&&typeof e=="object")return lr(e)?"[Array]":"[Object]";var y=_n(i,n);if(typeof o>"u")o=[];else if(lt(o,e)>=0)return"[Circular]";function m(N,G,Z){if(G&&(o=fn.call(o),o.push(G)),Z){var V={depth:i.depth};return j(i,"quoteStyle")&&(V.quoteStyle=i.quoteStyle),r(N,V,n+1,o)}return r(N,i,n+1,o)}if(typeof e=="function"&&!Mr(e)){var h=An(e),v=Ae(e,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(v.length>0?" { "+L.call(v,", ")+" }":"")}if(it(e)){var $=ie?H.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):ar.call(e);return typeof e=="object"&&!ie?se($):$}if(wn(e)){for(var _="<"+zr.call(String(e.nodeName)),g=e.attributes||[],x=0;x<g.length;x++)_+=" "+g[x].name+"="+at(yn(g[x].value),"double",i);return _+=">",e.childNodes&&e.childNodes.length&&(_+="..."),_+="</"+zr.call(String(e.nodeName))+">",_}if(lr(e)){if(e.length===0)return"[]";var P=Ae(e,m);return y&&!Tn(P)?"["+ur(P,y)+"]":"[ "+L.call(P,", ")+" ]"}if(mn(e)){var R=Ae(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!nt.call(e,"cause")?"{ ["+String(e)+"] "+L.call(Tr.call("[cause]: "+m(e.cause),R),", ")+" }":R.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+L.call(R,", ")+" }"}if(typeof e=="object"&&c){if(Nr&&typeof e[Nr]=="function"&&ir)return ir(e,{depth:p-n});if(c!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(En(e)){var f=[];return $r&&$r.call(e,function(N,G){f.push(m(G,e,!0)+" => "+m(N,e))}),Fr("Map",Re.call(e),f,y)}if($n(e)){var M=[];return Rr&&Rr.call(e,function(N){M.push(m(N,e))}),Fr("Set",we.call(e),M,y)}if(On(e))return Ue("WeakMap");if(Rn(e))return Ue("WeakSet");if(Pn(e))return Ue("WeakRef");if(gn(e))return se(m(Number(e)));if(Sn(e))return se(m(or.call(e)));if(hn(e))return se(an.call(e));if(vn(e))return se(m(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof b.commonjsGlobal<"u"&&e===b.commonjsGlobal)return"{ [object globalThis] }";if(!dn(e)&&!Mr(e)){var B=Ae(e,m),F=Cr?Cr(e)===Object.prototype:e instanceof Object||e.constructor===Object,W=e instanceof Object?"":"null prototype",k=!F&&ye&&Object(e)===e&&ye in e?gr.call(Y(e),8,-1):W?"Object":"",K=F||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",I=K+(k||W?"["+L.call(Tr.call([],k||[],W||[]),": ")+"] ":"");return B.length===0?I+"{}":y?I+"{"+ur(B,y)+"}":I+"{ "+L.call(B,", ")+" }"}return String(e)};function at(r,e,t){var n=t.quoteStyle||e,o=ot[n];return o+r+o}function yn(r){return H.call(String(r),/"/g,"&quot;")}function X(r){return!ye||!(typeof r=="object"&&(ye in r||typeof r[ye]<"u"))}function lr(r){return Y(r)==="[object Array]"&&X(r)}function dn(r){return Y(r)==="[object Date]"&&X(r)}function Mr(r){return Y(r)==="[object RegExp]"&&X(r)}function mn(r){return Y(r)==="[object Error]"&&X(r)}function vn(r){return Y(r)==="[object String]"&&X(r)}function gn(r){return Y(r)==="[object Number]"&&X(r)}function hn(r){return Y(r)==="[object Boolean]"&&X(r)}function it(r){if(ie)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!ar)return!1;try{return ar.call(r),!0}catch{}return!1}function Sn(r){if(!r||typeof r!="object"||!or)return!1;try{return or.call(r),!0}catch{}return!1}var bn=Object.prototype.hasOwnProperty||function(r){return r in this};function j(r,e){return bn.call(r,e)}function Y(r){return ln.call(r)}function An(r){if(r.name)return r.name;var e=cn.call(un.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function lt(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function En(r){if(!Re||!r||typeof r!="object")return!1;try{Re.call(r);try{we.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function On(r){if(!fe||!r||typeof r!="object")return!1;try{fe.call(r,fe);try{pe.call(r,pe)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function Pn(r){if(!wr||!r||typeof r!="object")return!1;try{return wr.call(r),!0}catch{}return!1}function $n(r){if(!we||!r||typeof r!="object")return!1;try{we.call(r);try{Re.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function Rn(r){if(!pe||!r||typeof r!="object")return!1;try{pe.call(r,pe);try{fe.call(r,fe)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function wn(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function ut(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return ut(gr.call(r,0,e.maxStringLength),e)+n}var o=pn[e.quoteStyle||"single"];o.lastIndex=0;var i=H.call(H.call(r,o,"\\$1"),/[\x00-\x1f]/g,zn);return at(i,"single",e)}function zn(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+sn.call(e.toString(16))}function se(r){return"Object("+r+")"}function Ue(r){return r+" { ? }"}function Fr(r,e,t,n){var o=n?ur(t,n):L.call(t,", ");return r+" ("+e+") {"+o+"}"}function Tn(r){for(var e=0;e<r.length;e++)if(lt(r[e],`
2
2
  `)>=0)return!1;return!0}function _n(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=L.call(Array(r.indent+1)," ");else return null;return{base:t,prev:L.call(Array(e+1),t)}}function ur(r,e){if(r.length===0)return"";var t=`
3
3
  `+e.prev+e.base;return t+L.call(r,","+t)+`
4
4
  `+e.prev}function Ae(r,e){var t=lr(r),n=[];if(t){n.length=r.length;for(var o=0;o<r.length;o++)n[o]=j(r,o)?e(r[o],r):""}var i=typeof Be=="function"?Be(r):[],c;if(ie){c={};for(var l=0;l<i.length;l++)c["$"+i[l]]=i[l]}for(var s in r)j(r,s)&&(t&&String(Number(s))===s&&s<r.length||ie&&c["$"+s]instanceof Symbol||(tt.call(/[^\w$]/,s)?n.push(e(s,r)+": "+e(r[s],r)):n.push(s+": "+e(r[s],r))));if(typeof Be=="function")for(var u=0;u<i.length;u++)nt.call(r,i[u])&&n.push("["+e(i[u])+"]: "+e(r[i[u]],r));return n}var Cn=Ce,xn=ce,xe=function(r,e,t){for(var n=r,o;(o=n.next)!=null;n=o)if(o.key===e)return n.next=o.next,t||(o.next=r.next,r.next=o),o},In=function(r,e){if(r){var t=xe(r,e);return t&&t.value}},Nn=function(r,e,t){var n=xe(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},Mn=function(r,e){return r?!!xe(r,e):!1},Fn=function(r,e){if(r)return xe(r,e,!0)},Dn=function(){var e,t={assert:function(n){if(!t.has(n))throw new xn("Side channel does not contain "+Cn(n))},delete:function(n){var o=e&&e.next,i=Fn(e,n);return i&&o&&o===i&&(e=void 0),!!i},get:function(n){return In(e,n)},has:function(n){return Mn(e,n)},set:function(n,o){e||(e={next:void 0}),Nn(e,n,o)}};return t},ct=Object,Ln=Error,Bn=EvalError,Un=RangeError,jn=ReferenceError,qn=SyntaxError,Wn=URIError,kn=Math.abs,Gn=Math.floor,Vn=Math.max,Hn=Math.min,Yn=Math.pow,Kn=Math.round,Qn=Number.isNaN||function(e){return e!==e},Jn=Qn,Xn=function(e){return Jn(e)||e===0?e:e<0?-1:1},Zn=Object.getOwnPropertyDescriptor,Oe=Zn;if(Oe)try{Oe([],"length")}catch{Oe=null}var st=Oe,Pe=Object.defineProperty||!1;if(Pe)try{Pe({},"a",{value:1})}catch{Pe=!1}var eo=Pe,je,Dr;function ro(){return Dr||(Dr=1,je=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[t]=o;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var c=Object.getOwnPropertySymbols(e);if(c.length!==1||c[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,t);if(l.value!==o||l.enumerable!==!0)return!1}return!0}),je}var qe,Lr;function to(){if(Lr)return qe;Lr=1;var r=typeof Symbol<"u"&&Symbol,e=ro();return qe=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},qe}var We,Br;function ft(){return Br||(Br=1,We=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),We}var ke,Ur;function pt(){if(Ur)return ke;Ur=1;var r=ct;return ke=r.getPrototypeOf||null,ke}var Ge,jr;function no(){if(jr)return Ge;jr=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",o=function(s,u){for(var p=[],y=0;y<s.length;y+=1)p[y]=s[y];for(var m=0;m<u.length;m+=1)p[m+s.length]=u[m];return p},i=function(s,u){for(var p=[],y=u,m=0;y<s.length;y+=1,m+=1)p[m]=s[y];return p},c=function(l,s){for(var u="",p=0;p<l.length;p+=1)u+=l[p],p+1<l.length&&(u+=s);return u};return Ge=function(s){var u=this;if(typeof u!="function"||e.apply(u)!==n)throw new TypeError(r+u);for(var p=i(arguments,1),y,m=function(){if(this instanceof y){var g=u.apply(this,o(p,arguments));return Object(g)===g?g:this}return u.apply(s,o(p,arguments))},h=t(0,u.length-p.length),v=[],$=0;$<h;$++)v[$]="$"+$;if(y=Function("binder","return function ("+c(v,",")+"){ return binder.apply(this,arguments); }")(m),u.prototype){var _=function(){};_.prototype=u.prototype,y.prototype=new _,_.prototype=null}return y},Ge}var Ve,qr;function Ie(){if(qr)return Ve;qr=1;var r=no();return Ve=Function.prototype.bind||r,Ve}var He,Wr;function hr(){return Wr||(Wr=1,He=Function.prototype.call),He}var Ye,kr;function yt(){return kr||(kr=1,Ye=Function.prototype.apply),Ye}var oo=typeof Reflect<"u"&&Reflect&&Reflect.apply,ao=Ie(),io=yt(),lo=hr(),uo=oo,co=uo||ao.call(lo,io),so=Ie(),fo=ce,po=hr(),yo=co,dt=function(e){if(e.length<1||typeof e[0]!="function")throw new fo("a function is required");return yo(so,po,e)},Ke,Gr;function mo(){if(Gr)return Ke;Gr=1;var r=dt,e=st,t;try{t=[].__proto__===Array.prototype}catch(c){if(!c||typeof c!="object"||!("code"in c)||c.code!=="ERR_PROTO_ACCESS")throw c}var n=!!t&&e&&e(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return Ke=n&&typeof n.get=="function"?r([n.get]):typeof i=="function"?function(l){return i(l==null?l:o(l))}:!1,Ke}var Qe,Vr;function vo(){if(Vr)return Qe;Vr=1;var r=ft(),e=pt(),t=mo();return Qe=r?function(o){return r(o)}:e?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return e(o)}:t?function(o){return t(o)}:null,Qe}var Je,Hr;function go(){if(Hr)return Je;Hr=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Ie();return Je=t.call(r,e),Je}var S,ho=ct,So=Ln,bo=Bn,Ao=Un,Eo=jn,le=qn,ne=ce,Oo=Wn,Po=kn,$o=Gn,Ro=Vn,wo=Hn,zo=Yn,To=Kn,_o=Xn,mt=Function,Xe=function(r){try{return mt('"use strict"; return ('+r+").constructor;")()}catch{}},me=st,Co=eo,Ze=function(){throw new ne},xo=me?function(){try{return arguments.callee,Ze}catch{try{return me(arguments,"callee").get}catch{return Ze}}}():Ze,ee=to()(),T=vo(),Io=pt(),No=ft(),vt=yt(),ve=hr(),te={},Mo=typeof Uint8Array>"u"||!T?S:T(Uint8Array),J={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?S:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?S:ArrayBuffer,"%ArrayIteratorPrototype%":ee&&T?T([][Symbol.iterator]()):S,"%AsyncFromSyncIteratorPrototype%":S,"%AsyncFunction%":te,"%AsyncGenerator%":te,"%AsyncGeneratorFunction%":te,"%AsyncIteratorPrototype%":te,"%Atomics%":typeof Atomics>"u"?S:Atomics,"%BigInt%":typeof BigInt>"u"?S:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?S:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?S:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?S:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":So,"%eval%":eval,"%EvalError%":bo,"%Float16Array%":typeof Float16Array>"u"?S:Float16Array,"%Float32Array%":typeof Float32Array>"u"?S:Float32Array,"%Float64Array%":typeof Float64Array>"u"?S:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?S:FinalizationRegistry,"%Function%":mt,"%GeneratorFunction%":te,"%Int8Array%":typeof Int8Array>"u"?S:Int8Array,"%Int16Array%":typeof Int16Array>"u"?S:Int16Array,"%Int32Array%":typeof Int32Array>"u"?S:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ee&&T?T(T([][Symbol.iterator]())):S,"%JSON%":typeof JSON=="object"?JSON:S,"%Map%":typeof Map>"u"?S:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ee||!T?S:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ho,"%Object.getOwnPropertyDescriptor%":me,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?S:Promise,"%Proxy%":typeof Proxy>"u"?S:Proxy,"%RangeError%":Ao,"%ReferenceError%":Eo,"%Reflect%":typeof Reflect>"u"?S:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?S:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ee||!T?S:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?S:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ee&&T?T(""[Symbol.iterator]()):S,"%Symbol%":ee?Symbol:S,"%SyntaxError%":le,"%ThrowTypeError%":xo,"%TypedArray%":Mo,"%TypeError%":ne,"%Uint8Array%":typeof Uint8Array>"u"?S:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?S:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?S:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?S:Uint32Array,"%URIError%":Oo,"%WeakMap%":typeof WeakMap>"u"?S:WeakMap,"%WeakRef%":typeof WeakRef>"u"?S:WeakRef,"%WeakSet%":typeof WeakSet>"u"?S:WeakSet,"%Function.prototype.call%":ve,"%Function.prototype.apply%":vt,"%Object.defineProperty%":Co,"%Object.getPrototypeOf%":Io,"%Math.abs%":Po,"%Math.floor%":$o,"%Math.max%":Ro,"%Math.min%":wo,"%Math.pow%":zo,"%Math.round%":To,"%Math.sign%":_o,"%Reflect.getPrototypeOf%":No};if(T)try{null.error}catch(r){var Fo=T(T(r));J["%Error.prototype%"]=Fo}var Do=function r(e){var t;if(e==="%AsyncFunction%")t=Xe("async function () {}");else if(e==="%GeneratorFunction%")t=Xe("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Xe("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=r("%AsyncGenerator%");o&&T&&(t=T(o.prototype))}return J[e]=t,t},Yr={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ge=Ie(),ze=go(),Lo=ge.call(ve,Array.prototype.concat),Bo=ge.call(vt,Array.prototype.splice),Kr=ge.call(ve,String.prototype.replace),Te=ge.call(ve,String.prototype.slice),Uo=ge.call(ve,RegExp.prototype.exec),jo=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,qo=/\\(\\)?/g,Wo=function(e){var t=Te(e,0,1),n=Te(e,-1);if(t==="%"&&n!=="%")throw new le("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new le("invalid intrinsic syntax, expected opening `%`");var o=[];return Kr(e,jo,function(i,c,l,s){o[o.length]=l?Kr(s,qo,"$1"):c||i}),o},ko=function(e,t){var n=e,o;if(ze(Yr,n)&&(o=Yr[n],n="%"+o[0]+"%"),ze(J,n)){var i=J[n];if(i===te&&(i=Do(n)),typeof i>"u"&&!t)throw new ne("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new le("intrinsic "+e+" does not exist!")},Sr=function(e,t){if(typeof e!="string"||e.length===0)throw new ne("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new ne('"allowMissing" argument must be a boolean');if(Uo(/^%?[^%]*%?$/,e)===null)throw new le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Wo(e),o=n.length>0?n[0]:"",i=ko("%"+o+"%",t),c=i.name,l=i.value,s=!1,u=i.alias;u&&(o=u[0],Bo(n,Lo([0,1],u)));for(var p=1,y=!0;p<n.length;p+=1){var m=n[p],h=Te(m,0,1),v=Te(m,-1);if((h==='"'||h==="'"||h==="`"||v==='"'||v==="'"||v==="`")&&h!==v)throw new le("property names with quotes must have matching quotes");if((m==="constructor"||!y)&&(s=!0),o+="."+m,c="%"+o+"%",ze(J,c))l=J[c];else if(l!=null){if(!(m in l)){if(!t)throw new ne("base intrinsic for "+e+" exists, but the property is not available.");return}if(me&&p+1>=n.length){var $=me(l,m);y=!!$,y&&"get"in $&&!("originalValue"in $.get)?l=$.get:l=l[m]}else y=ze(l,m),l=l[m];y&&!s&&(J[c]=l)}}return l},gt=Sr,ht=dt,Go=ht([gt("%String.prototype.indexOf%")]),St=function(e,t){var n=gt(e,!!t);return typeof n=="function"&&Go(e,".prototype.")>-1?ht([n]):n},Vo=Sr,he=St,Ho=Ce,Yo=ce,Qr=Vo("%Map%",!0),Ko=he("Map.prototype.get",!0),Qo=he("Map.prototype.set",!0),Jo=he("Map.prototype.has",!0),Xo=he("Map.prototype.delete",!0),Zo=he("Map.prototype.size",!0),bt=!!Qr&&function(){var e,t={assert:function(n){if(!t.has(n))throw new Yo("Side channel does not contain "+Ho(n))},delete:function(n){if(e){var o=Xo(e,n);return Zo(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return Ko(e,n)},has:function(n){return e?Jo(e,n):!1},set:function(n,o){e||(e=new Qr),Qo(e,n,o)}};return t},ea=Sr,Ne=St,ra=Ce,Ee=bt,ta=ce,re=ea("%WeakMap%",!0),na=Ne("WeakMap.prototype.get",!0),oa=Ne("WeakMap.prototype.set",!0),aa=Ne("WeakMap.prototype.has",!0),ia=Ne("WeakMap.prototype.delete",!0),la=re?function(){var e,t,n={assert:function(o){if(!n.has(o))throw new ta("Side channel does not contain "+ra(o))},delete:function(o){if(re&&o&&(typeof o=="object"||typeof o=="function")){if(e)return ia(e,o)}else if(Ee&&t)return t.delete(o);return!1},get:function(o){return re&&o&&(typeof o=="object"||typeof o=="function")&&e?na(e,o):t&&t.get(o)},has:function(o){return re&&o&&(typeof o=="object"||typeof o=="function")&&e?aa(e,o):!!t&&t.has(o)},set:function(o,i){re&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new re),oa(e,o,i)):Ee&&(t||(t=Ee()),t.set(o,i))}};return n}:Ee,ua=ce,ca=Ce,sa=Dn,fa=bt,pa=la,ya=pa||fa||sa,da=function(){var e,t={assert:function(n){if(!t.has(n))throw new ua("Side channel does not contain "+ca(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,o){e||(e=ya()),e.set(n,o)}};return t},ma=String.prototype.replace,va=/%20/g,er={RFC1738:"RFC1738",RFC3986:"RFC3986"},br={default:er.RFC3986,formatters:{RFC1738:function(r){return ma.call(r,va,"+")},RFC3986:function(r){return String(r)}},RFC1738:er.RFC1738,RFC3986:er.RFC3986},ga=br,rr=Object.prototype.hasOwnProperty,Q=Array.isArray,D=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),ha=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Q(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);t.obj[t.prop]=o}}},At=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},Sa=function r(e,t,n){if(!t)return e;if(typeof t!="object"){if(Q(e))e.push(t);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!rr.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var o=e;return Q(e)&&!Q(t)&&(o=At(e,n)),Q(e)&&Q(t)?(t.forEach(function(i,c){if(rr.call(e,c)){var l=e[c];l&&typeof l=="object"&&i&&typeof i=="object"?e[c]=r(l,i,n):e.push(i)}else e[c]=i}),e):Object.keys(t).reduce(function(i,c){var l=t[c];return rr.call(i,c)?i[c]=r(i[c],l,n):i[c]=l,i},o)},ba=function(e,t){return Object.keys(t).reduce(function(n,o){return n[o]=t[o],n},e)},Aa=function(r,e,t){var n=r.replace(/\+/g," ");if(t==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Ea=function(e,t,n,o,i){if(e.length===0)return e;var c=e;if(typeof e=="symbol"?c=Symbol.prototype.toString.call(e):typeof e!="string"&&(c=String(e)),n==="iso-8859-1")return escape(c).replace(/%u[0-9a-f]{4}/gi,function(p){return"%26%23"+parseInt(p.slice(2),16)+"%3B"});for(var l="",s=0;s<c.length;++s){var u=c.charCodeAt(s);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===ga.RFC1738&&(u===40||u===41)){l+=c.charAt(s);continue}if(u<128){l=l+D[u];continue}if(u<2048){l=l+(D[192|u>>6]+D[128|u&63]);continue}if(u<55296||u>=57344){l=l+(D[224|u>>12]+D[128|u>>6&63]+D[128|u&63]);continue}s+=1,u=65536+((u&1023)<<10|c.charCodeAt(s)&1023),l+=D[240|u>>18]+D[128|u>>12&63]+D[128|u>>6&63]+D[128|u&63]}return l},Oa=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var i=t[o],c=i.obj[i.prop],l=Object.keys(c),s=0;s<l.length;++s){var u=l[s],p=c[u];typeof p=="object"&&p!==null&&n.indexOf(p)===-1&&(t.push({obj:c,prop:u}),n.push(p))}return ha(t),e},Pa=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},$a=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Ra=function(e,t){return[].concat(e,t)},wa=function(e,t){if(Q(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},Et={arrayToObject:At,assign:ba,combine:Ra,compact:Oa,decode:Aa,encode:Ea,isBuffer:$a,isRegExp:Pa,maybeMap:wa,merge:Sa},Ot=da,$e=Et,de=br,za=Object.prototype.hasOwnProperty,Jr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},q=Array.isArray,Ta=Array.prototype.push,Pt=function(r,e){Ta.apply(r,q(e)?e:[e])},_a=Date.prototype.toISOString,Xr=de.default,C={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:$e.encode,encodeValuesOnly:!1,format:Xr,formatter:de.formatters[Xr],indices:!1,serializeDate:function(e){return _a.call(e)},skipNulls:!1,strictNullHandling:!1},Ca=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},tr={},xa=function r(e,t,n,o,i,c,l,s,u,p,y,m,h,v,$,_){for(var g=e,x=_,P=0,R=!1;(x=x.get(tr))!==void 0&&!R;){var f=x.get(e);if(P+=1,typeof f<"u"){if(f===P)throw new RangeError("Cyclic object value");R=!0}typeof x.get(tr)>"u"&&(P=0)}if(typeof s=="function"?g=s(t,g):g instanceof Date?g=y(g):n==="comma"&&q(g)&&(g=$e.maybeMap(g,function(V){return V instanceof Date?y(V):V})),g===null){if(i)return l&&!v?l(t,C.encoder,$,"key",m):t;g=""}if(Ca(g)||$e.isBuffer(g)){if(l){var M=v?t:l(t,C.encoder,$,"key",m);return[h(M)+"="+h(l(g,C.encoder,$,"value",m))]}return[h(t)+"="+h(String(g))]}var B=[];if(typeof g>"u")return B;var F;if(n==="comma"&&q(g))v&&l&&(g=$e.maybeMap(g,l)),F=[{value:g.length>0?g.join(",")||null:void 0}];else if(q(s))F=s;else{var W=Object.keys(g);F=u?W.sort(u):W}for(var k=o&&q(g)&&g.length===1?t+"[]":t,K=0;K<F.length;++K){var I=F[K],N=typeof I=="object"&&typeof I.value<"u"?I.value:g[I];if(!(c&&N===null)){var G=q(g)?typeof n=="function"?n(k,I):k:k+(p?"."+I:"["+I+"]");_.set(e,P);var Z=Ot();Z.set(tr,_),Pt(B,r(N,G,n,o,i,c,n==="comma"&&v&&q(g)?null:l,s,u,p,y,m,h,v,$,Z))}}return B},Ia=function(e){if(!e)return C;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||C.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=de.default;if(typeof e.format<"u"){if(!za.call(de.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=de.formatters[n],i=C.filter;return(typeof e.filter=="function"||q(e.filter))&&(i=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:C.addQueryPrefix,allowDots:typeof e.allowDots>"u"?C.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:C.charsetSentinel,delimiter:typeof e.delimiter>"u"?C.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:C.encode,encoder:typeof e.encoder=="function"?e.encoder:C.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:C.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:C.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:C.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:C.strictNullHandling}},Na=function(r,e){var t=r,n=Ia(e),o,i;typeof n.filter=="function"?(i=n.filter,t=i("",t)):q(n.filter)&&(i=n.filter,o=i);var c=[];if(typeof t!="object"||t===null)return"";var l;e&&e.arrayFormat in Jr?l=e.arrayFormat:e&&"indices"in e?l=e.indices?"indices":"repeat":l="indices";var s=Jr[l];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=s==="comma"&&e&&e.commaRoundTrip;o||(o=Object.keys(t)),n.sort&&o.sort(n.sort);for(var p=Ot(),y=0;y<o.length;++y){var m=o[y];n.skipNulls&&t[m]===null||Pt(c,xa(t[m],m,s,u,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,p))}var h=c.join(n.delimiter),v=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),h.length>0?v+h:""},ue=Et,cr=Object.prototype.hasOwnProperty,Ma=Array.isArray,w={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ue.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Fa=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},$t=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},Da="utf8=%26%2310003%3B",La="utf8=%E2%9C%93",Ba=function(e,t){var n={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,c=o.split(t.delimiter,i),l=-1,s,u=t.charset;if(t.charsetSentinel)for(s=0;s<c.length;++s)c[s].indexOf("utf8=")===0&&(c[s]===La?u="utf-8":c[s]===Da&&(u="iso-8859-1"),l=s,s=c.length);for(s=0;s<c.length;++s)if(s!==l){var p=c[s],y=p.indexOf("]="),m=y===-1?p.indexOf("="):y+1,h,v;m===-1?(h=t.decoder(p,w.decoder,u,"key"),v=t.strictNullHandling?null:""):(h=t.decoder(p.slice(0,m),w.decoder,u,"key"),v=ue.maybeMap($t(p.slice(m+1),t),function($){return t.decoder($,w.decoder,u,"value")})),v&&t.interpretNumericEntities&&u==="iso-8859-1"&&(v=Fa(v)),p.indexOf("[]=")>-1&&(v=Ma(v)?[v]:v),cr.call(n,h)?n[h]=ue.combine(n[h],v):n[h]=v}return n},Ua=function(r,e,t,n){for(var o=n?e:$t(e,t),i=r.length-1;i>=0;--i){var c,l=r[i];if(l==="[]"&&t.parseArrays)c=[].concat(o);else{c=t.plainObjects?Object.create(null):{};var s=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,u=parseInt(s,10);!t.parseArrays&&s===""?c={0:o}:!isNaN(u)&&l!==s&&String(u)===s&&u>=0&&t.parseArrays&&u<=t.arrayLimit?(c=[],c[u]=o):s!=="__proto__"&&(c[s]=o)}o=c}return o},ja=function(e,t,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,c=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=n.depth>0&&c.exec(i),u=s?i.slice(0,s.index):i,p=[];if(u){if(!n.plainObjects&&cr.call(Object.prototype,u)&&!n.allowPrototypes)return;p.push(u)}for(var y=0;n.depth>0&&(s=l.exec(i))!==null&&y<n.depth;){if(y+=1,!n.plainObjects&&cr.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;p.push(s[1])}return s&&p.push("["+i.slice(s.index)+"]"),Ua(p,t,n,o)}},qa=function(e){if(!e)return w;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof e.charset>"u"?w.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?w.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:w.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:w.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:w.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:w.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:w.comma,decoder:typeof e.decoder=="function"?e.decoder:w.decoder,delimiter:typeof e.delimiter=="string"||ue.isRegExp(e.delimiter)?e.delimiter:w.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:w.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:w.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:w.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:w.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:w.strictNullHandling}},Wa=function(r,e){var t=qa(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?Ba(r,t):r,o=t.plainObjects?Object.create(null):{},i=Object.keys(n),c=0;c<i.length;++c){var l=i[c],s=ja(l,n[l],t,typeof r=="string");o=ue.merge(o,s,t)}return t.allowSparse===!0?o:ue.compact(o)},ka=Na,Ga=Wa,Va=br,nr={formats:Va,parse:Ga,stringify:ka};const Rt={PENDING:"PENDING",APPROVED:"APPROVED",REJECTED:"REJECTED"},Ha={...Rt,BLOCKED:"BLOCKED",OPEN:"OPEN",RESOLVED:"RESOLVED"};var wt=(r=>(r.BAD_LANGUAGE="BAD_LANGUAGE",r.DISCRIMINATION="DISCRIMINATION",r.OTHER="OTHER",r))(wt||{});const U={...Rt,BLOCKED:"BLOCKED",OPEN:"OPEN",REMOVED:"REMOVED",TO_REVIEW:"TO_REVIEW",UNKNOWN:"UNKNOWN"},Ya=a.z.object({entryLabel:a.z.record(a.z.array(a.z.string())),approvalFlow:a.z.array(a.z.string()),blockedAuthorProps:a.z.array(a.z.string()),reportReasons:a.z.object({BAD_LANGUAGE:a.z.literal("BAD_LANGUAGE"),DISCRIMINATION:a.z.literal("DISCRIMINATION"),OTHER:a.z.literal("OTHER")}),regex:a.z.object({uid:a.z.string(),relatedUid:a.z.string(),email:a.z.string(),sorting:a.z.string()}),enabledCollections:a.z.array(a.z.string()),moderatorRoles:a.z.array(a.z.string()),isGQLPluginEnabled:a.z.boolean(),badWords:a.z.boolean().nullable().optional(),gql:a.z.object({auth:a.z.boolean().nullable()}).optional(),client:a.z.object({url:a.z.string().nullable(),contactEmail:a.z.string().nullable()}).default({url:null,contactEmail:null})}),zt=a.z.intersection(a.z.object({id:a.z.number(),uid:a.z.string(),documentId:a.z.string(),createdAt:a.z.string(),updatedAt:a.z.string(),publishedAt:a.z.string().nullable(),locale:a.z.string().nullable().optional()}),a.z.record(a.z.unknown())),Ka=a.z.object({id:a.z.union([a.z.number(),a.z.string()]),name:a.z.string().optional().nullable(),email:a.z.string(),avatar:a.z.union([a.z.object({url:a.z.string()}),a.z.object({url:a.z.string(),formats:a.z.object({thumbnail:a.z.object({url:a.z.string()}).nullable()})}),a.z.string()]).nullable().optional()}),Tt=a.z.union([a.z.literal(U.PENDING),a.z.literal(U.APPROVED),a.z.literal(U.REJECTED),a.z.literal(U.BLOCKED),a.z.literal(U.OPEN),a.z.literal(U.REMOVED),a.z.literal(U.TO_REVIEW),a.z.literal(U.UNKNOWN)]),_t=a.z.union([a.z.literal("BAD_LANGUAGE"),a.z.literal("DISCRIMINATION"),a.z.literal("OTHER")]),Qa=a.z.object({id:a.z.number(),reason:_t,content:a.z.string(),resolved:a.z.boolean(),createdAt:a.z.string(),updatedAt:a.z.string().nullable()}),_e=a.z.object({id:a.z.number(),content:a.z.string(),blocked:a.z.boolean().nullable(),blockedThread:a.z.boolean().nullable(),blockReason:a.z.string().nullable(),isAdminComment:a.z.boolean().nullable(),removed:a.z.boolean().nullable(),approvalStatus:Tt.nullable(),createdAt:a.z.string(),updatedAt:a.z.string(),reports:a.z.array(Qa).nullable().optional(),author:Ka,gotThread:a.z.boolean().nullable().optional(),threadFirstItemId:a.z.number().nullable().optional()}),Ct=a.z.object({page:a.z.number(),pageSize:a.z.number(),pageCount:a.z.number(),total:a.z.number()});function sr(){return _e.extend({related:zt.optional(),documentId:a.z.string(),threadOf:a.z.lazy(()=>_e.merge(a.z.object({related:a.z.string(),threadOf:xt.nullable().optional(),documentId:a.z.string().optional()}))).nullable().optional()})}const xt=sr(),Ja=a.z.object({pagination:Ct,result:a.z.array(xt)}),Xa=a.z.object({entity:zt,selected:_e.merge(a.z.object({related:a.z.string(),threadOf:sr().omit({related:!0}).merge(a.z.object({related:a.z.string()})).nullable().optional()})).nullable(),level:a.z.array(sr().omit({threadOf:!0,related:!0}))}),It=a.z.object({apiID:a.z.string(),uid:a.z.string(),schema:a.z.object({attributes:a.z.record(a.z.object({type:a.z.union([a.z.literal("string"),a.z.string()])})),collectionName:a.z.string(),description:a.z.string(),displayName:a.z.string(),draftAndPublish:a.z.boolean(),kind:a.z.string(),pluralName:a.z.string(),singularName:a.z.string(),visible:a.z.boolean()})}),Za=a.z.object({data:It}),ei=a.z.object({data:a.z.array(It)}),ri=a.z.object({author:a.z.unknown(),content:a.z.string(),id:a.z.number(),approvalStatus:Tt.nullable().optional(),reason:_t,reports:a.z.array(a.z.unknown()),resolved:a.z.boolean().optional(),updatedAt:a.z.string().nullable(),createdAt:a.z.string(),related:_e}),ti=a.z.object({pagination:Ct,result:a.z.array(ri)}),ni=a.z.object({id:a.z.number(),documentId:a.z.string(),name:a.z.string(),code:a.z.string(),description:a.z.string(),createdAt:a.z.string(),updatedAt:a.z.string(),publishedAt:a.z.string(),locale:a.z.string().nullable(),usersCount:a.z.number()}),oi=a.z.object({data:a.z.array(ni)}),ai=a.z.object({data:a.z.object({id:a.z.number(),documentId:a.z.string(),firstname:a.z.string(),lastname:a.z.string(),username:a.z.string().nullable(),email:a.z.string(),isActive:a.z.boolean(),blocked:a.z.boolean(),preferedLanguage:a.z.string().nullable(),createdAt:a.z.string(),updatedAt:a.z.string(),publishedAt:a.z.string(),locale:a.z.null(),roles:a.z.array(a.z.object({id:a.z.number(),name:a.z.string(),description:a.z.string(),code:a.z.string()}))})}),O="comments",ii=b.lodashExports.once(r=>({config:{getKey(){return[O,"config"]},async query(){const e=await r.get(`/${O}/settings/config`);return Ya.parseAsync(e.data)}},contentTypeBuilder:{single:{getKey(e,t){return[O,"moderate","content-type",t,e]},async query(e){const t=await r.get(`/content-type-builder/content-types/${e}`);return Za.parseAsync(t.data).then(n=>n.data)}},all:{getKey(){return[O,"moderate","content-types"]},async query(){const e=await r.get("/content-type-builder/content-types");return ei.parseAsync(e.data).then(t=>t.data)}}},roles:{getKey(){return[O,"moderate","roles"]},async query(){const e=await r.get("/admin/roles");return oi.parseAsync(e.data).then(t=>t.data)}},user:{getKey(){return[O,"moderate","user"]},async query(){const e=await r.get("/admin/users/me");return ai.parseAsync(e.data).then(t=>t.data)}},comments:{findAll:{getKey(e){return[O,"moderate","all",e?JSON.stringify(e):void 0].filter(Boolean)},async query(e){const t=await r.get(`/${O}/moderate/all?${nr.stringify(e,{encode:!1})}`);return Ja.parseAsync(t.data)}},findOne:{getKey(e,t){return[O,"details",e?.toString(),t?JSON.stringify(t):void 0].filter(Boolean)},async query(e,t){const n=b.lodashExports.isEmpty(t)?"":`?${nr.stringify(t,{encode:!1})}`,o=await r.get(`/${O}/moderate/single/${e}${n}`);return Xa.parseAsync(o.data)}},approve(e){return r.put(`/${O}/moderate/single/${e}/approve`)},reject(e){return r.put(`/${O}/moderate/single/${e}/reject`)},block(e){return r.put(`/${O}/moderate/single/${e}/block`)},unblock(e){return r.put(`/${O}/moderate/single/${e}/unblock`)},blockThread(e){return r.put(`/${O}/moderate/thread/${e}/block`)},unBlockThread(e){return r.put(`/${O}/moderate/thread/${e}/unblock`)},delete(e){return r.del(`/${O}/moderate/single/${e}/delete`)},postComment({id:e,content:t,author:n}){return r.post(`/${O}/moderate/thread/${e}/postComment`,{content:t,author:n})},updateComment({id:e,content:t}){return r.put(`/${O}/moderate/single/${e}/update`,{content:t})}},reports:{findAll:{getKey(e){return[O,"moderate","reports",e?JSON.stringify(e):void 0].filter(Boolean)},async query(e){const t=await r.get(`/${O}/moderate/reports${e?`?${nr.stringify(e,{encode:!1})}`:""}`);return ti.parseAsync(t.data)}},resolve({id:e,reportId:t}){return r.put(`/${O}/moderate/single/${e}/report/${t}/resolve`)},resolveMultipleReports({reportIds:e}){return r.put(`/${O}/moderate/multiple/report/resolve`,{reportIds:e})},resolveCommentMultipleReports({id:e,reportIds:t}){return r.put(`/${O}/moderate/single/${e}/report/resolve`,{reportIds:t})},resolveAllAbuseReportsForComment(e){return r.put(`/${O}/moderate/all/${e}/report/resolve`)},resolveAllAbuseReportsForThread(e){return r.put(`/${O}/moderate/thread/${e}/report/resolve-thread`)}},settings:{update(e){return r.put(`/${O}/settings/config`,e)},restore(){return r.del(`/${O}/settings/config`)},restart(){return r.post(`/${O}/settings/restart`)}}})),Nt=()=>{const r=rt.getFetchClient();return oe.useMemo(()=>ii(r),[r])},Mt=oe.createContext(null),li=({children:r})=>{const e=Nt(),{data:t}=dr.useQuery({queryKey:e.user.getKey(),queryFn:e.user.query});return t?z.jsx(Mt.Provider,{value:t,children:r}):null};console.log("!!darkTheme",!!b.darkTheme);console.log("!!lightTheme",!!b.lightTheme);const ui=new dr.QueryClient({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}}),ci=({children:r})=>z.jsx(dr.QueryClientProvider,{client:ui,children:z.jsx(b.DesignSystemProvider,{theme:{theme:b.darkTheme,themeName:"light"},children:z.jsx(li,{children:r})})}),si=()=>{const r=oe.useMemo(()=>({access:b.pluginPermissions.access,moderate:b.pluginPermissions.moderate,accessReports:b.pluginPermissions.reports,reviewReports:b.pluginPermissions.reportsReview,settings:b.pluginPermissions.settings,settingsChange:b.pluginPermissions.settingsChange}),[]),{isLoading:e,allowedActions:{canCommentsModerate:t,canCommentsRead:n,canReportsRead:o,canSettingsChange:i,canSettingsRead:c,canReportsReview:l}}=rt.useRBAC(r);return{isLoadingForPermissions:e,canAccess:n||o||c,canModerate:t,canAccessReports:o,canReviewReports:l,canSettings:c,canSettingsChange:i}};var fr={exports:{}},A={};/** @license React v16.13.1
@@ -1,5 +1,5 @@
1
1
  import { jsx as _, jsxs as Ae } from "react/jsx-runtime";
2
- import { ab as tn, ac as $r, l as wr, ad as nn, ae as it, af as an, ag as ee, ah as Rr, ai as lt, p as on, aj as V, F as ln, ak as un, T as cn, e as Cr } from "./index-Bi2NddA5.mjs";
2
+ import { ab as tn, ac as $r, l as wr, ad as nn, ae as it, af as an, ag as ee, ah as Rr, ai as lt, p as on, aj as V, F as ln, ak as un, T as cn, e as Cr } from "./index-B3sOw8of.mjs";
3
3
  import { useQuery as fn, QueryClientProvider as sn, QueryClient as pn } from "@tanstack/react-query";
4
4
  import * as oe from "react";
5
5
  import { useMemo as ut, createContext as yn, useState as Tr } from "react";
@@ -1,10 +1,10 @@
1
1
  import { jsx as e, Fragment as O, jsxs as i } from "react/jsx-runtime";
2
- import { l as j, e as L, f as ae, B as p, a3 as re, F as q, T as m, $ as r, o as n, a4 as T, a5 as x, a6 as f, a7 as se, a8 as N, a9 as Q, aa as le } from "./index-Bi2NddA5.mjs";
2
+ import { l as j, e as L, f as ae, B as p, a3 as re, F as q, T as m, $ as r, o as n, a4 as T, a5 as x, a6 as f, a7 as se, a8 as N, a9 as Q, aa as le } from "./index-B3sOw8of.mjs";
3
3
  import { useTracking as ce, useNotification as de, Page as W, Layouts as D, Form as ge } from "@strapi/strapi/admin";
4
4
  import { useMutation as A, useQuery as M, useQueryClient as he, QueryClient as pe } from "@tanstack/react-query";
5
5
  import { useMemo as me, useRef as ue, useState as be, useCallback as $ } from "react";
6
6
  import fe from "styled-components";
7
- import { u as U, e as ye, a as Se, g as t, d as we } from "./index-B8Jogmi4.mjs";
7
+ import { u as U, e as ye, a as Se, g as t, d as we } from "./index-CzOGwAt4.mjs";
8
8
  const P = ({
9
9
  children: d,
10
10
  condition: l
@@ -1 +1 @@
1
- "use strict";const e=require("../_chunks/index-BNZz69rC.js");require("react");module.exports=e.index;
1
+ "use strict";const e=require("../_chunks/index-3aTvO9o4.js");require("react");module.exports=e.index;
@@ -1,4 +1,4 @@
1
- import { al as t } from "../_chunks/index-Bi2NddA5.mjs";
1
+ import { al as t } from "../_chunks/index-B3sOw8of.mjs";
2
2
  import "react";
3
3
  export {
4
4
  t as default
@@ -477,7 +477,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
477
477
  publishedAt: string | null;
478
478
  locale?: string | null | undefined;
479
479
  }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
480
- selected: z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
480
+ selected: z.ZodNullable<z.ZodObject<{
481
481
  id: z.ZodNumber;
482
482
  content: z.ZodString;
483
483
  blocked: z.ZodNullable<z.ZodBoolean>;
@@ -585,9 +585,9 @@ export declare const commentDetailsSchema: z.ZodObject<{
585
585
  }>;
586
586
  gotThread: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
587
587
  threadFirstItemId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
588
- }, {
588
+ } & {
589
589
  related: z.ZodString;
590
- threadOf: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<{
590
+ threadOf: z.ZodOptional<z.ZodNullable<z.ZodObject<Omit<{
591
591
  id: z.ZodNumber;
592
592
  content: z.ZodString;
593
593
  blocked: z.ZodNullable<z.ZodBoolean>;
@@ -695,7 +695,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
695
695
  }>;
696
696
  gotThread: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
697
697
  threadFirstItemId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
698
- }, {
698
+ } & {
699
699
  related: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
700
700
  id: z.ZodNumber;
701
701
  uid: z.ZodString;
@@ -722,7 +722,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
722
722
  locale?: string | null | undefined;
723
723
  }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
724
724
  documentId: z.ZodString;
725
- threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
725
+ threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
726
726
  id: z.ZodNumber;
727
727
  content: z.ZodString;
728
728
  blocked: z.ZodNullable<z.ZodBoolean>;
@@ -830,11 +830,11 @@ export declare const commentDetailsSchema: z.ZodObject<{
830
830
  }>;
831
831
  gotThread: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
832
832
  threadFirstItemId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
833
- }, {
833
+ } & {
834
834
  related: z.ZodString;
835
835
  threadOf: z.ZodOptional<z.ZodNullable<z.ZodType<Comment, z.ZodTypeDef, Comment>>>;
836
836
  documentId: z.ZodOptional<z.ZodString>;
837
- }>, "strip", z.ZodTypeAny, {
837
+ }, "strip", z.ZodTypeAny, {
838
838
  id: number;
839
839
  createdAt: string;
840
840
  updatedAt: string;
@@ -913,9 +913,9 @@ export declare const commentDetailsSchema: z.ZodObject<{
913
913
  threadFirstItemId?: number | null | undefined;
914
914
  threadOf?: Comment | null | undefined;
915
915
  }>>>>;
916
- }>, "related">, {
916
+ }, "related"> & {
917
917
  related: z.ZodString;
918
- }>, "strip", z.ZodTypeAny, {
918
+ }, "strip", z.ZodTypeAny, {
919
919
  id: number;
920
920
  documentId: string;
921
921
  createdAt: string;
@@ -1072,7 +1072,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
1072
1072
  threadOf?: Comment | null | undefined;
1073
1073
  } | null | undefined;
1074
1074
  }>>>;
1075
- }>, "strip", z.ZodTypeAny, {
1075
+ }, "strip", z.ZodTypeAny, {
1076
1076
  id: number;
1077
1077
  createdAt: string;
1078
1078
  updatedAt: string;
@@ -1305,7 +1305,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
1305
1305
  } | null | undefined;
1306
1306
  } | null | undefined;
1307
1307
  }>>;
1308
- level: z.ZodArray<z.ZodObject<Omit<z.objectUtil.extendShape<{
1308
+ level: z.ZodArray<z.ZodObject<Omit<{
1309
1309
  id: z.ZodNumber;
1310
1310
  content: z.ZodString;
1311
1311
  blocked: z.ZodNullable<z.ZodBoolean>;
@@ -1413,7 +1413,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
1413
1413
  }>;
1414
1414
  gotThread: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1415
1415
  threadFirstItemId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1416
- }, {
1416
+ } & {
1417
1417
  related: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
1418
1418
  id: z.ZodNumber;
1419
1419
  uid: z.ZodString;
@@ -1440,7 +1440,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
1440
1440
  locale?: string | null | undefined;
1441
1441
  }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1442
1442
  documentId: z.ZodString;
1443
- threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
1443
+ threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
1444
1444
  id: z.ZodNumber;
1445
1445
  content: z.ZodString;
1446
1446
  blocked: z.ZodNullable<z.ZodBoolean>;
@@ -1548,11 +1548,11 @@ export declare const commentDetailsSchema: z.ZodObject<{
1548
1548
  }>;
1549
1549
  gotThread: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1550
1550
  threadFirstItemId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1551
- }, {
1551
+ } & {
1552
1552
  related: z.ZodString;
1553
1553
  threadOf: z.ZodOptional<z.ZodNullable<z.ZodType<Comment, z.ZodTypeDef, Comment>>>;
1554
1554
  documentId: z.ZodOptional<z.ZodString>;
1555
- }>, "strip", z.ZodTypeAny, {
1555
+ }, "strip", z.ZodTypeAny, {
1556
1556
  id: number;
1557
1557
  createdAt: string;
1558
1558
  updatedAt: string;
@@ -1631,7 +1631,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
1631
1631
  threadFirstItemId?: number | null | undefined;
1632
1632
  threadOf?: Comment | null | undefined;
1633
1633
  }>>>>;
1634
- }>, "related" | "threadOf">, "strip", z.ZodTypeAny, {
1634
+ }, "related" | "threadOf">, "strip", z.ZodTypeAny, {
1635
1635
  id: number;
1636
1636
  documentId: string;
1637
1637
  createdAt: string;
@@ -1,4 +1,6 @@
1
1
  /// <reference types="react" />
2
- export declare const ActionButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<any, {
2
+ export declare const ActionButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<any, {
3
3
  isSingle?: boolean | undefined;
4
- }>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
4
+ }>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<any, {
5
+ isSingle?: boolean | undefined;
6
+ }>> & Omit<any, keyof import("react").Component<any, {}, any>>);
@@ -1,4 +1,4 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
2
  import { DiscussionThreadItemProps } from './props';
3
- export declare const DiscussionThreadItemFooterMeta: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
3
+ export declare const DiscussionThreadItemFooterMeta: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
4
4
  export declare const DiscussionThreadItemFooter: FC<PropsWithChildren<DiscussionThreadItemProps>>;
@@ -1,6 +1,6 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
2
  import { DiscussionThreadItemProps } from './props';
3
- export declare const DiscussionThreadItemContentTypographyRenderer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ export declare const DiscussionThreadItemContentTypographyRenderer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
4
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
5
- }, never>> & string;
5
+ }, never>>;
6
6
  export declare const DiscussionThreadItem: FC<PropsWithChildren<DiscussionThreadItemProps>>;
@@ -1,5 +1,8 @@
1
1
  /// <reference types="react" />
2
- export declare const IconButtonGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<any, {
2
+ export declare const IconButtonGroup: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<any, {
3
3
  isSingle?: boolean | undefined;
4
4
  withMargin?: boolean | undefined;
5
- }>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
5
+ }>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<any, {
6
+ isSingle?: boolean | undefined;
7
+ withMargin?: boolean | undefined;
8
+ }>> & Omit<any, keyof import("react").Component<any, {}, any>>);
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare const StatusBadgeStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
2
+ export declare const StatusBadgeStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
3
3
  export declare const StatusBadge: ({ children, textColor, ...rest }: any) => import("react/jsx-runtime").JSX.Element;
@@ -7,6 +7,6 @@ interface EditorLayoutProps {
7
7
  onCollapse: () => void;
8
8
  }
9
9
  declare const EditorLayout: ({ children, isExpandMode, error, previewContent, onCollapse, }: EditorLayoutProps) => import("react/jsx-runtime").JSX.Element;
10
- declare const ExpandButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof React.Component<any, {}, any>>);
10
+ declare const ExpandButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof React.Component<any, {}, any>>);
11
11
  export { EditorLayout, ExpandButton };
12
12
  export type { EditorLayoutProps };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const MainButtons: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
3
- export declare const MoreButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
4
- export declare const IconButtonGroupMargin: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
5
- export declare const ExpandButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
2
+ export declare const MainButtons: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
3
+ export declare const MoreButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
4
+ export declare const IconButtonGroupMargin: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
5
+ export declare const ExpandButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
@@ -9,10 +9,13 @@ declare const _default: {
9
9
  'nav.item.discover': string;
10
10
  'nav.item.reports': string;
11
11
  'nav.item.settings': string;
12
+ 'page.auth.noAccess': string;
13
+ 'page.auth.not.allowed': string;
12
14
  'page.common.item.status.OPEN': string;
13
15
  'page.common.item.status.PENDING': string;
14
16
  'page.common.item.status.BLOCKED': string;
15
17
  'page.common.item.status.APPROVED': string;
18
+ 'page.common.item.status.RESOLVED': string;
16
19
  'page.common.item.status.TO_REVIEW': string;
17
20
  'page.common.item.status.REJECTED': string;
18
21
  'page.common.item.status.REMOVED': string;
@@ -35,6 +38,18 @@ declare const _default: {
35
38
  'page.discover.table.empty.search': string;
36
39
  'page.discover.table.filters': string;
37
40
  'page.discover.table.reports.review': string;
41
+ 'page.reports.header': string;
42
+ 'page.reports.table.empty': string;
43
+ 'page.reports.table.empty.search': string;
44
+ 'page.reports.table.header.id': string;
45
+ 'page.reports.table.header.reason': string;
46
+ 'page.reports.table.header.content': string;
47
+ 'page.reports.table.header.status': string;
48
+ 'page.reports.table.header.issueDate': string;
49
+ 'page.reports.table.header.relatedComment': string;
50
+ 'page.reports.table.header.actions': string;
51
+ 'page.reports.table.cell.action.resolve': string;
52
+ 'page.reports.table.cell.action.block': string;
38
53
  'page.details.header': string;
39
54
  'page.details.header.description': string;
40
55
  'page.details.header.description.empty': string;
@@ -61,7 +76,13 @@ declare const _default: {
61
76
  'page.details.panel.discussion.warnings.reports.dialog.actions.resolve.selected': string;
62
77
  'page.details.panel.discussion.warnings.reports.dialog.confirmation.success': string;
63
78
  'page.details.panel.discussion.warnings.reports.selected.dialog.confirmation.success': string;
79
+ 'page.details.panel.discussion.warnings.comments.header': string;
64
80
  'page.details.panel.discussion.status.blocked': string;
81
+ 'page.details.panel.discussion.reply': string;
82
+ 'page.details.panel.discussion.reopen': string;
83
+ 'page.details.panel.discussion.send': string;
84
+ 'page.details.actions.comment.post.confirmation': string;
85
+ 'page.details.actions.comment.update.confirmation': string;
65
86
  'page.details.panel.entity': string;
66
87
  'page.details.panel.status': string;
67
88
  'page.details.panel.status.open': string;
@@ -75,6 +96,8 @@ declare const _default: {
75
96
  'page.details.actions.comment.block.confirmation.success': string;
76
97
  'page.details.actions.comment.unblock': string;
77
98
  'page.details.actions.comment.unblock.confirmation.success': string;
99
+ 'page.details.actions.comment.delete': string;
100
+ 'page.details.actions.comment.delete.confirmation.success': string;
78
101
  'page.details.actions.comment.reports.review': string;
79
102
  'page.details.actions.thread.block': string;
80
103
  'page.details.actions.thread.block.confirmation.header': string;
@@ -83,6 +106,8 @@ declare const _default: {
83
106
  'page.details.actions.thread.block.confirmation.success': string;
84
107
  'page.details.actions.thread.unblock': string;
85
108
  'page.details.actions.thread.unblock.confirmation.success': string;
109
+ 'page.details.actions.thread.modal.start.thread': string;
110
+ 'page.details.actions.thread.modal.update.comment': string;
86
111
  'page.details.actions.comment.approve.confirmation.success': string;
87
112
  'page.details.actions.comment.reject.confirmation.success': string;
88
113
  'page.details.filters.label': string;
@@ -134,6 +159,8 @@ declare const _default: {
134
159
  'page.settings.notification.restart.success': string;
135
160
  'page.settings.notification.restart.error': string;
136
161
  'page.settings.loading': string;
162
+ 'page.settings.form.author.blockedProps.label': string;
163
+ 'page.settings.form.author.blockedProps.hint': string;
137
164
  'components.confirmation.dialog.header': string;
138
165
  'components.confirmation.dialog.description': string;
139
166
  'components.confirmation.dialog.button.confirm': string;
@@ -141,5 +168,28 @@ declare const _default: {
141
168
  'components.toogle.enabled': string;
142
169
  'components.toogle.disabled': string;
143
170
  'components.author.unknown': string;
171
+ 'components.reason.unknown': string;
172
+ 'components.content.unknown': string;
173
+ 'components.notAccessPage.back': string;
174
+ 'customField.comments.label': string;
175
+ 'customField.comments.description': string;
176
+ 'customField.comments.input.commentsNumber.label': string;
177
+ 'customField.comments.input.renderType.label': string;
178
+ 'customField.comments.input.renderType.option.tree.label': string;
179
+ 'customField.comments.input.renderType.option.flat.label': string;
180
+ 'customField.comments.input.sortByDate.label': string;
181
+ 'customField.comments.input.sortByDate.option.asc.label': string;
182
+ 'customField.comments.input.sortByDate.option.desc.label': string;
183
+ 'customField.comments.input.filterBy.label': string;
184
+ 'customField.comments.input.filterBy.option.dateCreated.label': string;
185
+ 'customField.comments.input.filterBy.option.dateCreated.label.details.label': string;
186
+ 'customField.comments.input.filterBy.option.approvalStatus.label': string;
187
+ 'customField.comments.input.filterBy.option.approvalStatus.label.details.label': string;
188
+ 'customField.comments.input.filterBy.option.approvalStatus.option.pending.label': string;
189
+ 'customField.comments.input.filterBy.option.approvalStatus.option.approved.label': string;
190
+ 'customField.comments.input.filterBy.option.approvalStatus.option.rejected.label': string;
191
+ 'customField.comments.input.populate.label': string;
192
+ 'customField.comments.input.populate.author.label': string;
193
+ 'customField.comments.input.populate.avatar.label': string;
144
194
  };
145
195
  export default _default;