strapi-plugin-comments 3.1.2 → 3.1.3

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.
@@ -1 +1 @@
1
- "use strict";const e=require("../_chunks/index-CQcJlyLz.js");require("react");module.exports=e.index;
1
+ "use strict";const e=require("../_chunks/index-BL18_3Ha.js");require("react");module.exports=e.index;
@@ -1,4 +1,4 @@
1
- import { an as t } from "../_chunks/index-C4yRw0kg.mjs";
1
+ import { an as t } from "../_chunks/index-BUf3iTvC.mjs";
2
2
  import "react";
3
3
  export {
4
4
  t as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-comments",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "Strapi - Comments plugin",
5
5
  "strapi": {
6
6
  "name": "comments",
@@ -1,18 +0,0 @@
1
- "use strict";const b=require("./index-CQcJlyLz.js"),Y=require("react"),z=require("react/jsx-runtime"),dr=require("@tanstack/react-query"),rt=require("@strapi/strapi/admin"),a=require("zod");function Jt(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=Jt(Y),Xt=()=>{const r=()=>window.matchMedia("(prefers-color-scheme: dark)").matches,[e,t]=Y.useState();return Y.useEffect(()=>{const o=r()?"dark":"light",i=window.localStorage?.STRAPI_THEME;t(i==="system"?o:i)},[]),{theme:e==="dark"?b.darkTheme:b.lightTheme,themeName:e}};var or={exports:{}},E={};/** @license React v16.13.1
2
- * react-is.production.min.js
3
- *
4
- * Copyright (c) Facebook, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */var $r;function Zt(){if($r)return E;$r=1;var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,s=r?Symbol.for("react.async_mode"):60111,u=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,y=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,$=r?Symbol.for("react.block"):60121,_=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function O(f){if(typeof f=="object"&&f!==null){var M=f.$$typeof;switch(M){case e:switch(f=f.type,f){case s:case u:case n:case i:case o:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case p:case v:case h:case c:return f;default:return M}}case t:return M}}}function w(f){return O(f)===u}return E.AsyncMode=s,E.ConcurrentMode=u,E.ContextConsumer=l,E.ContextProvider=c,E.Element=e,E.ForwardRef=p,E.Fragment=n,E.Lazy=v,E.Memo=h,E.Portal=t,E.Profiler=i,E.StrictMode=o,E.Suspense=y,E.isAsyncMode=function(f){return w(f)||O(f)===s},E.isConcurrentMode=w,E.isContextConsumer=function(f){return O(f)===l},E.isContextProvider=function(f){return O(f)===c},E.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},E.isForwardRef=function(f){return O(f)===p},E.isFragment=function(f){return O(f)===n},E.isLazy=function(f){return O(f)===v},E.isMemo=function(f){return O(f)===h},E.isPortal=function(f){return O(f)===t},E.isProfiler=function(f){return O(f)===i},E.isStrictMode=function(f){return O(f)===o},E.isSuspense=function(f){return O(f)===y},E.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===u||f===i||f===o||f===y||f===m||typeof f=="object"&&f!==null&&(f.$$typeof===v||f.$$typeof===h||f.$$typeof===c||f.$$typeof===l||f.$$typeof===p||f.$$typeof===_||f.$$typeof===g||f.$$typeof===x||f.$$typeof===$)},E.typeOf=O,E}var A={};/** @license React v16.13.1
9
- * react-is.development.js
10
- *
11
- * Copyright (c) Facebook, Inc. and its affiliates.
12
- *
13
- * This source code is licensed under the MIT license found in the
14
- * LICENSE file in the root directory of this source tree.
15
- */var wr;function en(){return wr||(wr=1,process.env.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,s=r?Symbol.for("react.async_mode"):60111,u=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,y=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,$=r?Symbol.for("react.block"):60121,_=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function O(d){return typeof d=="string"||typeof d=="function"||d===n||d===u||d===i||d===o||d===y||d===m||typeof d=="object"&&d!==null&&(d.$$typeof===v||d.$$typeof===h||d.$$typeof===c||d.$$typeof===l||d.$$typeof===p||d.$$typeof===_||d.$$typeof===g||d.$$typeof===x||d.$$typeof===$)}function w(d){if(typeof d=="object"&&d!==null){var Fe=d.$$typeof;switch(Fe){case e:var be=d.type;switch(be){case s:case u:case n:case i:case o:case y:return be;default:var Or=be&&be.$$typeof;switch(Or){case l:case p:case v:case h:case c:return Or;default:return Fe}}case t:return Fe}}}var f=s,M=u,B=l,F=c,k=e,W=p,Q=n,I=v,N=h,G=t,ee=i,V=o,Lt=y,Ar=!1;function Bt(d){return Ar||(Ar=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Pr(d)||w(d)===s}function Pr(d){return w(d)===u}function jt(d){return w(d)===l}function Ut(d){return w(d)===c}function qt(d){return typeof d=="object"&&d!==null&&d.$$typeof===e}function kt(d){return w(d)===p}function Wt(d){return w(d)===n}function Gt(d){return w(d)===v}function Vt(d){return w(d)===h}function Ht(d){return w(d)===t}function Yt(d){return w(d)===i}function Kt(d){return w(d)===o}function Qt(d){return w(d)===y}A.AsyncMode=f,A.ConcurrentMode=M,A.ContextConsumer=B,A.ContextProvider=F,A.Element=k,A.ForwardRef=W,A.Fragment=Q,A.Lazy=I,A.Memo=N,A.Portal=G,A.Profiler=ee,A.StrictMode=V,A.Suspense=Lt,A.isAsyncMode=Bt,A.isConcurrentMode=Pr,A.isContextConsumer=jt,A.isContextProvider=Ut,A.isElement=qt,A.isForwardRef=kt,A.isFragment=Wt,A.isLazy=Gt,A.isMemo=Vt,A.isPortal=Ht,A.isProfiler=Yt,A.isStrictMode=Kt,A.isSuspense=Qt,A.isValidElementType=O,A.typeOf=w}()),A}process.env.NODE_ENV==="production"?or.exports=Zt():or.exports=en();var rn=or.exports,tt=rn,tn={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},nt={};nt[tt.ForwardRef]=tn;nt[tt.Memo]=nn;function on(r,e,t){if(t===void 0&&(t=Error),!r)throw new t(e)}var an=function(r){process.env.NODE_ENV!=="production"&&console.error(r)},ln=function(r){process.env.NODE_ENV!=="production"&&console.warn(r)},un={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:an,onWarn:ln};function cn(r){on(r,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}b.__assign(b.__assign({},un),{textComponent:ae.Fragment});var mr=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=ae.createContext(null)):ae.createContext(null);mr.Consumer;mr.Provider;var sn=mr;function Ce(){var r=ae.useContext(sn);return cn(r),r}var ar;(function(r){r.formatDate="FormattedDate",r.formatTime="FormattedTime",r.formatNumber="FormattedNumber",r.formatList="FormattedList",r.formatDisplayName="FormattedDisplayName"})(ar||(ar={}));var ir;(function(r){r.formatDate="FormattedDateParts",r.formatTime="FormattedTimeParts",r.formatNumber="FormattedNumberParts",r.formatList="FormattedListParts"})(ir||(ir={}));function ot(r){var e=function(t){var n=Ce(),o=t.value,i=t.children,c=b.__rest(t,["value","children"]),l=typeof o=="string"?new Date(o||0):o,s=r==="formatDate"?n.formatDateToParts(l,c):n.formatTimeToParts(l,c);return i(s)};return e.displayName=ir[r],e}function ve(r){var e=function(t){var n=Ce(),o=t.value,i=t.children,c=b.__rest(t,["value","children"]),l=n[r](o,c);if(typeof i=="function")return i(l);var s=n.textComponent||ae.Fragment;return ae.createElement(s,null,l)};return e.displayName=ar[r],e}ve("formatDate");ve("formatTime");ve("formatNumber");ve("formatList");ve("formatDisplayName");ot("formatDate");ot("formatTime");const fn=(r,e="",t=!0)=>{const{formatMessage:n}=Ce();let o="";return typeof r=="string"?o=r:o=r?.id.toString()||o,n({id:`${t?b.pluginId:"app.components"}.${o}`,defaultMessage:e},typeof r=="string"?void 0:r?.props)},at={PENDING:"PENDING",APPROVED:"APPROVED",REJECTED:"REJECTED"},pn={...at,BLOCKED:"BLOCKED",OPEN:"OPEN",RESOLVED:"RESOLVED"};var it=(r=>(r.BAD_LANGUAGE="BAD_LANGUAGE",r.DISCRIMINATION="DISCRIMINATION",r.OTHER="OTHER",r))(it||{});const j={...at,BLOCKED:"BLOCKED",OPEN:"OPEN",REMOVED:"REMOVED",TO_REVIEW:"TO_REVIEW",UNKNOWN:"UNKNOWN"};var ce=TypeError;const yn={},dn=Object.freeze(Object.defineProperty({__proto__:null,default:yn},Symbol.toStringTag,{value:"Module"})),mn=b.getAugmentedNamespace(dn);var vr=typeof Map=="function"&&Map.prototype,De=Object.getOwnPropertyDescriptor&&vr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,we=vr&&De&&typeof De.get=="function"?De.get:null,Rr=vr&&Map.prototype.forEach,gr=typeof Set=="function"&&Set.prototype,Le=Object.getOwnPropertyDescriptor&&gr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Re=gr&&Le&&typeof Le.get=="function"?Le.get:null,zr=gr&&Set.prototype.forEach,vn=typeof WeakMap=="function"&&WeakMap.prototype,fe=vn?WeakMap.prototype.has:null,gn=typeof WeakSet=="function"&&WeakSet.prototype,pe=gn?WeakSet.prototype.has:null,hn=typeof WeakRef=="function"&&WeakRef.prototype,Tr=hn?WeakRef.prototype.deref:null,Sn=Boolean.prototype.valueOf,bn=Object.prototype.toString,En=Function.prototype.toString,An=String.prototype.match,hr=String.prototype.slice,H=String.prototype.replace,Pn=String.prototype.toUpperCase,_r=String.prototype.toLowerCase,lt=RegExp.prototype.test,Cr=Array.prototype.concat,L=Array.prototype.join,On=Array.prototype.slice,xr=Math.floor,lr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Be=Object.getOwnPropertySymbols,ur=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,ut=Object.prototype.propertyIsEnumerable,Ir=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Nr(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||lt.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-xr(-r):xr(r);if(n!==r){var o=String(n),i=hr.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 cr=mn,Mr=cr.custom,Fr=ft(Mr)?Mr:null,ct={__proto__:null,double:'"',single:"'"},$n={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},xe=function r(e,t,n,o){var i=t||{};if(U(i,"quoteStyle")&&!U(ct,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(U(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=U(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(U(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(U(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 yt(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var s=String(e);return l?Nr(e,s):s}if(typeof e=="bigint"){var u=String(e)+"n";return l?Nr(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 sr(e)?"[Array]":"[Object]";var y=kn(i,n);if(typeof o>"u")o=[];else if(pt(o,e)>=0)return"[Circular]";function m(N,G,ee){if(G&&(o=On.call(o),o.push(G)),ee){var V={depth:i.depth};return U(i,"quoteStyle")&&(V.quoteStyle=i.quoteStyle),r(N,V,n+1,o)}return r(N,i,n+1,o)}if(typeof e=="function"&&!Dr(e)){var h=Nn(e),v=Ee(e,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(v.length>0?" { "+L.call(v,", ")+" }":"")}if(ft(e)){var $=ie?H.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):ur.call(e);return typeof e=="object"&&!ie?se($):$}if(jn(e)){for(var _="<"+_r.call(String(e.nodeName)),g=e.attributes||[],x=0;x<g.length;x++)_+=" "+g[x].name+"="+st(wn(g[x].value),"double",i);return _+=">",e.childNodes&&e.childNodes.length&&(_+="..."),_+="</"+_r.call(String(e.nodeName))+">",_}if(sr(e)){if(e.length===0)return"[]";var O=Ee(e,m);return y&&!qn(O)?"["+fr(O,y)+"]":"[ "+L.call(O,", ")+" ]"}if(zn(e)){var w=Ee(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!ut.call(e,"cause")?"{ ["+String(e)+"] "+L.call(Cr.call("[cause]: "+m(e.cause),w),", ")+" }":w.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+L.call(w,", ")+" }"}if(typeof e=="object"&&c){if(Fr&&typeof e[Fr]=="function"&&cr)return cr(e,{depth:p-n});if(c!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Mn(e)){var f=[];return Rr&&Rr.call(e,function(N,G){f.push(m(G,e,!0)+" => "+m(N,e))}),Lr("Map",we.call(e),f,y)}if(Ln(e)){var M=[];return zr&&zr.call(e,function(N){M.push(m(N,e))}),Lr("Set",Re.call(e),M,y)}if(Fn(e))return je("WeakMap");if(Bn(e))return je("WeakSet");if(Dn(e))return je("WeakRef");if(_n(e))return se(m(Number(e)));if(xn(e))return se(m(lr.call(e)));if(Cn(e))return se(Sn.call(e));if(Tn(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(!Rn(e)&&!Dr(e)){var B=Ee(e,m),F=Ir?Ir(e)===Object.prototype:e instanceof Object||e.constructor===Object,k=e instanceof Object?"":"null prototype",W=!F&&ye&&Object(e)===e&&ye in e?hr.call(K(e),8,-1):k?"Object":"",Q=F||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",I=Q+(W||k?"["+L.call(Cr.call([],W||[],k||[]),": ")+"] ":"");return B.length===0?I+"{}":y?I+"{"+fr(B,y)+"}":I+"{ "+L.call(B,", ")+" }"}return String(e)};function st(r,e,t){var n=t.quoteStyle||e,o=ct[n];return o+r+o}function wn(r){return H.call(String(r),/"/g,"&quot;")}function Z(r){return!ye||!(typeof r=="object"&&(ye in r||typeof r[ye]<"u"))}function sr(r){return K(r)==="[object Array]"&&Z(r)}function Rn(r){return K(r)==="[object Date]"&&Z(r)}function Dr(r){return K(r)==="[object RegExp]"&&Z(r)}function zn(r){return K(r)==="[object Error]"&&Z(r)}function Tn(r){return K(r)==="[object String]"&&Z(r)}function _n(r){return K(r)==="[object Number]"&&Z(r)}function Cn(r){return K(r)==="[object Boolean]"&&Z(r)}function ft(r){if(ie)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!ur)return!1;try{return ur.call(r),!0}catch{}return!1}function xn(r){if(!r||typeof r!="object"||!lr)return!1;try{return lr.call(r),!0}catch{}return!1}var In=Object.prototype.hasOwnProperty||function(r){return r in this};function U(r,e){return In.call(r,e)}function K(r){return bn.call(r)}function Nn(r){if(r.name)return r.name;var e=An.call(En.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function pt(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 Mn(r){if(!we||!r||typeof r!="object")return!1;try{we.call(r);try{Re.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function Fn(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 Dn(r){if(!Tr||!r||typeof r!="object")return!1;try{return Tr.call(r),!0}catch{}return!1}function Ln(r){if(!Re||!r||typeof r!="object")return!1;try{Re.call(r);try{we.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function Bn(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 jn(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function yt(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return yt(hr.call(r,0,e.maxStringLength),e)+n}var o=$n[e.quoteStyle||"single"];o.lastIndex=0;var i=H.call(H.call(r,o,"\\$1"),/[\x00-\x1f]/g,Un);return st(i,"single",e)}function Un(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":"")+Pn.call(e.toString(16))}function se(r){return"Object("+r+")"}function je(r){return r+" { ? }"}function Lr(r,e,t,n){var o=n?fr(t,n):L.call(t,", ");return r+" ("+e+") {"+o+"}"}function qn(r){for(var e=0;e<r.length;e++)if(pt(r[e],`
16
- `)>=0)return!1;return!0}function kn(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 fr(r,e){if(r.length===0)return"";var t=`
17
- `+e.prev+e.base;return t+L.call(r,","+t)+`
18
- `+e.prev}function Ee(r,e){var t=sr(r),n=[];if(t){n.length=r.length;for(var o=0;o<r.length;o++)n[o]=U(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)U(r,s)&&(t&&String(Number(s))===s&&s<r.length||ie&&c["$"+s]instanceof Symbol||(lt.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++)ut.call(r,i[u])&&n.push("["+e(i[u])+"]: "+e(r[i[u]],r));return n}var Wn=xe,Gn=ce,Ie=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},Vn=function(r,e){if(r){var t=Ie(r,e);return t&&t.value}},Hn=function(r,e,t){var n=Ie(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},Yn=function(r,e){return r?!!Ie(r,e):!1},Kn=function(r,e){if(r)return Ie(r,e,!0)},Qn=function(){var e,t={assert:function(n){if(!t.has(n))throw new Gn("Side channel does not contain "+Wn(n))},delete:function(n){var o=e&&e.next,i=Kn(e,n);return i&&o&&o===i&&(e=void 0),!!i},get:function(n){return Vn(e,n)},has:function(n){return Yn(e,n)},set:function(n,o){e||(e={next:void 0}),Hn(e,n,o)}};return t},dt=Object,Jn=Error,Xn=EvalError,Zn=RangeError,eo=ReferenceError,ro=SyntaxError,to=URIError,no=Math.abs,oo=Math.floor,ao=Math.max,io=Math.min,lo=Math.pow,uo=Math.round,co=Number.isNaN||function(e){return e!==e},so=co,fo=function(e){return so(e)||e===0?e:e<0?-1:1},po=Object.getOwnPropertyDescriptor,Pe=po;if(Pe)try{Pe([],"length")}catch{Pe=null}var mt=Pe,Oe=Object.defineProperty||!1;if(Oe)try{Oe({},"a",{value:1})}catch{Oe=!1}var yo=Oe,Ue,Br;function mo(){return Br||(Br=1,Ue=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}),Ue}var qe,jr;function vo(){if(jr)return qe;jr=1;var r=typeof Symbol<"u"&&Symbol,e=mo();return qe=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},qe}var ke,Ur;function vt(){return Ur||(Ur=1,ke=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ke}var We,qr;function gt(){if(qr)return We;qr=1;var r=dt;return We=r.getPrototypeOf||null,We}var Ge,kr;function go(){if(kr)return Ge;kr=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,Wr;function Ne(){if(Wr)return Ve;Wr=1;var r=go();return Ve=Function.prototype.bind||r,Ve}var He,Gr;function Sr(){return Gr||(Gr=1,He=Function.prototype.call),He}var Ye,Vr;function ht(){return Vr||(Vr=1,Ye=Function.prototype.apply),Ye}var ho=typeof Reflect<"u"&&Reflect&&Reflect.apply,So=Ne(),bo=ht(),Eo=Sr(),Ao=ho,Po=Ao||So.call(Eo,bo),Oo=Ne(),$o=ce,wo=Sr(),Ro=Po,St=function(e){if(e.length<1||typeof e[0]!="function")throw new $o("a function is required");return Ro(Oo,wo,e)},Ke,Hr;function zo(){if(Hr)return Ke;Hr=1;var r=St,e=mt,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,Yr;function To(){if(Yr)return Qe;Yr=1;var r=vt(),e=gt(),t=zo();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,Kr;function _o(){if(Kr)return Je;Kr=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Ne();return Je=t.call(r,e),Je}var S,Co=dt,xo=Jn,Io=Xn,No=Zn,Mo=eo,le=ro,oe=ce,Fo=to,Do=no,Lo=oo,Bo=ao,jo=io,Uo=lo,qo=uo,ko=fo,bt=Function,Xe=function(r){try{return bt('"use strict"; return ('+r+").constructor;")()}catch{}},me=mt,Wo=yo,Ze=function(){throw new oe},Go=me?function(){try{return arguments.callee,Ze}catch{try{return me(arguments,"callee").get}catch{return Ze}}}():Ze,re=vo()(),T=To(),Vo=gt(),Ho=vt(),Et=ht(),ge=Sr(),ne={},Yo=typeof Uint8Array>"u"||!T?S:T(Uint8Array),X={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?S:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?S:ArrayBuffer,"%ArrayIteratorPrototype%":re&&T?T([][Symbol.iterator]()):S,"%AsyncFromSyncIteratorPrototype%":S,"%AsyncFunction%":ne,"%AsyncGenerator%":ne,"%AsyncGeneratorFunction%":ne,"%AsyncIteratorPrototype%":ne,"%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%":xo,"%eval%":eval,"%EvalError%":Io,"%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%":bt,"%GeneratorFunction%":ne,"%Int8Array%":typeof Int8Array>"u"?S:Int8Array,"%Int16Array%":typeof Int16Array>"u"?S:Int16Array,"%Int32Array%":typeof Int32Array>"u"?S:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":re&&T?T(T([][Symbol.iterator]())):S,"%JSON%":typeof JSON=="object"?JSON:S,"%Map%":typeof Map>"u"?S:Map,"%MapIteratorPrototype%":typeof Map>"u"||!re||!T?S:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Co,"%Object.getOwnPropertyDescriptor%":me,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?S:Promise,"%Proxy%":typeof Proxy>"u"?S:Proxy,"%RangeError%":No,"%ReferenceError%":Mo,"%Reflect%":typeof Reflect>"u"?S:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?S:Set,"%SetIteratorPrototype%":typeof Set>"u"||!re||!T?S:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?S:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re&&T?T(""[Symbol.iterator]()):S,"%Symbol%":re?Symbol:S,"%SyntaxError%":le,"%ThrowTypeError%":Go,"%TypedArray%":Yo,"%TypeError%":oe,"%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%":Fo,"%WeakMap%":typeof WeakMap>"u"?S:WeakMap,"%WeakRef%":typeof WeakRef>"u"?S:WeakRef,"%WeakSet%":typeof WeakSet>"u"?S:WeakSet,"%Function.prototype.call%":ge,"%Function.prototype.apply%":Et,"%Object.defineProperty%":Wo,"%Object.getPrototypeOf%":Vo,"%Math.abs%":Do,"%Math.floor%":Lo,"%Math.max%":Bo,"%Math.min%":jo,"%Math.pow%":Uo,"%Math.round%":qo,"%Math.sign%":ko,"%Reflect.getPrototypeOf%":Ho};if(T)try{null.error}catch(r){var Ko=T(T(r));X["%Error.prototype%"]=Ko}var Qo=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 X[e]=t,t},Qr={__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"]},he=Ne(),ze=_o(),Jo=he.call(ge,Array.prototype.concat),Xo=he.call(Et,Array.prototype.splice),Jr=he.call(ge,String.prototype.replace),Te=he.call(ge,String.prototype.slice),Zo=he.call(ge,RegExp.prototype.exec),ea=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ra=/\\(\\)?/g,ta=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 Jr(e,ea,function(i,c,l,s){o[o.length]=l?Jr(s,ra,"$1"):c||i}),o},na=function(e,t){var n=e,o;if(ze(Qr,n)&&(o=Qr[n],n="%"+o[0]+"%"),ze(X,n)){var i=X[n];if(i===ne&&(i=Qo(n)),typeof i>"u"&&!t)throw new oe("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!")},br=function(e,t){if(typeof e!="string"||e.length===0)throw new oe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new oe('"allowMissing" argument must be a boolean');if(Zo(/^%?[^%]*%?$/,e)===null)throw new le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ta(e),o=n.length>0?n[0]:"",i=na("%"+o+"%",t),c=i.name,l=i.value,s=!1,u=i.alias;u&&(o=u[0],Xo(n,Jo([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(X,c))l=X[c];else if(l!=null){if(!(m in l)){if(!t)throw new oe("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&&(X[c]=l)}}return l},At=br,Pt=St,oa=Pt([At("%String.prototype.indexOf%")]),Ot=function(e,t){var n=At(e,!!t);return typeof n=="function"&&oa(e,".prototype.")>-1?Pt([n]):n},aa=br,Se=Ot,ia=xe,la=ce,Xr=aa("%Map%",!0),ua=Se("Map.prototype.get",!0),ca=Se("Map.prototype.set",!0),sa=Se("Map.prototype.has",!0),fa=Se("Map.prototype.delete",!0),pa=Se("Map.prototype.size",!0),$t=!!Xr&&function(){var e,t={assert:function(n){if(!t.has(n))throw new la("Side channel does not contain "+ia(n))},delete:function(n){if(e){var o=fa(e,n);return pa(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return ua(e,n)},has:function(n){return e?sa(e,n):!1},set:function(n,o){e||(e=new Xr),ca(e,n,o)}};return t},ya=br,Me=Ot,da=xe,Ae=$t,ma=ce,te=ya("%WeakMap%",!0),va=Me("WeakMap.prototype.get",!0),ga=Me("WeakMap.prototype.set",!0),ha=Me("WeakMap.prototype.has",!0),Sa=Me("WeakMap.prototype.delete",!0),ba=te?function(){var e,t,n={assert:function(o){if(!n.has(o))throw new ma("Side channel does not contain "+da(o))},delete:function(o){if(te&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Sa(e,o)}else if(Ae&&t)return t.delete(o);return!1},get:function(o){return te&&o&&(typeof o=="object"||typeof o=="function")&&e?va(e,o):t&&t.get(o)},has:function(o){return te&&o&&(typeof o=="object"||typeof o=="function")&&e?ha(e,o):!!t&&t.has(o)},set:function(o,i){te&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new te),ga(e,o,i)):Ae&&(t||(t=Ae()),t.set(o,i))}};return n}:Ae,Ea=ce,Aa=xe,Pa=Qn,Oa=$t,$a=ba,wa=$a||Oa||Pa,Ra=function(){var e,t={assert:function(n){if(!t.has(n))throw new Ea("Side channel does not contain "+Aa(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=wa()),e.set(n,o)}};return t},za=String.prototype.replace,Ta=/%20/g,er={RFC1738:"RFC1738",RFC3986:"RFC3986"},Er={default:er.RFC3986,formatters:{RFC1738:function(r){return za.call(r,Ta,"+")},RFC3986:function(r){return String(r)}},RFC1738:er.RFC1738,RFC3986:er.RFC3986},_a=Er,rr=Object.prototype.hasOwnProperty,J=Array.isArray,D=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),Ca=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(J(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);t.obj[t.prop]=o}}},wt=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},xa=function r(e,t,n){if(!t)return e;if(typeof t!="object"){if(J(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 J(e)&&!J(t)&&(o=wt(e,n)),J(e)&&J(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)},Ia=function(e,t){return Object.keys(t).reduce(function(n,o){return n[o]=t[o],n},e)},Na=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}},Ma=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===_a.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},Fa=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 Ca(t),e},Da=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},La=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Ba=function(e,t){return[].concat(e,t)},ja=function(e,t){if(J(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},Rt={arrayToObject:wt,assign:Ia,combine:Ba,compact:Fa,decode:Na,encode:Ma,isBuffer:La,isRegExp:Da,maybeMap:ja,merge:xa},zt=Ra,$e=Rt,de=Er,Ua=Object.prototype.hasOwnProperty,Zr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},q=Array.isArray,qa=Array.prototype.push,Tt=function(r,e){qa.apply(r,q(e)?e:[e])},ka=Date.prototype.toISOString,et=de.default,C={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:$e.encode,encodeValuesOnly:!1,format:et,formatter:de.formatters[et],indices:!1,serializeDate:function(e){return ka.call(e)},skipNulls:!1,strictNullHandling:!1},Wa=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},tr={},Ga=function r(e,t,n,o,i,c,l,s,u,p,y,m,h,v,$,_){for(var g=e,x=_,O=0,w=!1;(x=x.get(tr))!==void 0&&!w;){var f=x.get(e);if(O+=1,typeof f<"u"){if(f===O)throw new RangeError("Cyclic object value");w=!0}typeof x.get(tr)>"u"&&(O=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(Wa(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 k=Object.keys(g);F=u?k.sort(u):k}for(var W=o&&q(g)&&g.length===1?t+"[]":t,Q=0;Q<F.length;++Q){var I=F[Q],N=typeof I=="object"&&typeof I.value<"u"?I.value:g[I];if(!(c&&N===null)){var G=q(g)?typeof n=="function"?n(W,I):W:W+(p?"."+I:"["+I+"]");_.set(e,O);var ee=zt();ee.set(tr,_),Tt(B,r(N,G,n,o,i,c,n==="comma"&&v&&q(g)?null:l,s,u,p,y,m,h,v,$,ee))}}return B},Va=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(!Ua.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}},Ha=function(r,e){var t=r,n=Va(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 Zr?l=e.arrayFormat:e&&"indices"in e?l=e.indices?"indices":"repeat":l="indices";var s=Zr[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=zt(),y=0;y<o.length;++y){var m=o[y];n.skipNulls&&t[m]===null||Tt(c,Ga(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=Rt,pr=Object.prototype.hasOwnProperty,Ya=Array.isArray,R={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},Ka=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},Qa="utf8=%26%2310003%3B",Ja="utf8=%E2%9C%93",Xa=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]===Ja?u="utf-8":c[s]===Qa&&(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,R.decoder,u,"key"),v=t.strictNullHandling?null:""):(h=t.decoder(p.slice(0,m),R.decoder,u,"key"),v=ue.maybeMap(_t(p.slice(m+1),t),function($){return t.decoder($,R.decoder,u,"value")})),v&&t.interpretNumericEntities&&u==="iso-8859-1"&&(v=Ka(v)),p.indexOf("[]=")>-1&&(v=Ya(v)?[v]:v),pr.call(n,h)?n[h]=ue.combine(n[h],v):n[h]=v}return n},Za=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},ei=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&&pr.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&&pr.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;p.push(s[1])}return s&&p.push("["+i.slice(s.index)+"]"),Za(p,t,n,o)}},ri=function(e){if(!e)return R;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"?R.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?R.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:R.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:R.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:R.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:R.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:R.comma,decoder:typeof e.decoder=="function"?e.decoder:R.decoder,delimiter:typeof e.delimiter=="string"||ue.isRegExp(e.delimiter)?e.delimiter:R.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:R.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:R.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:R.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:R.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:R.strictNullHandling}},ti=function(r,e){var t=ri(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?Xa(r,t):r,o=t.plainObjects?Object.create(null):{},i=Object.keys(n),c=0;c<i.length;++c){var l=i[c],s=ei(l,n[l],t,typeof r=="string");o=ue.merge(o,s,t)}return t.allowSparse===!0?o:ue.compact(o)},ni=Ha,oi=ti,ai=Er,nr={formats:ai,parse:oi,stringify:ni};const ii=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.record(a.z.string()),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})}),Ct=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())),li=a.z.object({id:a.z.union([a.z.number(),a.z.string()]).optional().nullable(),name:a.z.string().optional().nullable(),email:a.z.string().optional().nullable(),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()}),xt=a.z.union([a.z.literal(j.PENDING),a.z.literal(j.APPROVED),a.z.literal(j.REJECTED),a.z.literal(j.BLOCKED),a.z.literal(j.OPEN),a.z.literal(j.REMOVED),a.z.literal(j.TO_REVIEW),a.z.literal(j.UNKNOWN)]),ui=a.z.object({id:a.z.number(),reason:a.z.string().optional().nullable(),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:xt.nullable(),createdAt:a.z.string(),updatedAt:a.z.string(),reports:a.z.array(ui).nullable().optional(),author:li.nullable().optional(),gotThread:a.z.boolean().nullable().optional(),threadFirstItemId:a.z.number().nullable().optional()}),It=a.z.object({page:a.z.number(),pageSize:a.z.number(),pageCount:a.z.number(),total:a.z.number()});function yr(){return _e.extend({related:Ct.optional(),documentId:a.z.string(),threadOf:a.z.lazy(()=>_e.merge(a.z.object({related:a.z.string(),threadOf:Nt.nullable().optional(),documentId:a.z.string().optional()}))).nullable().optional()})}const Nt=yr(),ci=a.z.object({pagination:It,result:a.z.array(Nt)}),si=a.z.object({entity:Ct,selected:_e.merge(a.z.object({related:a.z.string(),threadOf:yr().omit({related:!0}).merge(a.z.object({related:a.z.string()})).nullable().optional()})).nullable(),level:a.z.array(yr().omit({threadOf:!0,related:!0}))}),Mt=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()})}),fi=a.z.object({data:Mt}),pi=a.z.object({data:a.z.array(Mt)}),yi=a.z.object({author:a.z.unknown(),content:a.z.string(),id:a.z.number(),approvalStatus:xt.nullable().optional(),reason:a.z.string().optional().nullable(),reports:a.z.array(a.z.unknown()),resolved:a.z.boolean().optional(),updatedAt:a.z.string().nullable(),createdAt:a.z.string(),related:_e}),di=a.z.object({pagination:It,result:a.z.array(yi)}),mi=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()}),vi=a.z.object({data:a.z.array(mi)}),gi=a.z.object({data:a.z.object({id:a.z.number(),documentId:a.z.string(),firstname:a.z.string(),lastname:a.z.string().nullable(),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()}))})}),P="comments",hi=b.lodashExports.once(r=>({config:{getKey(){return[P,"config"]},async query(){const e=await r.get(`/${P}/settings/config`);return ii.parseAsync(e.data)}},contentTypeBuilder:{single:{getKey(e,t){return[P,"moderate","content-type",t,e]},async query(e){const t=await r.get(`/content-type-builder/content-types/${e}`);return fi.parseAsync(t.data).then(n=>n.data)}},all:{getKey(){return[P,"moderate","content-types"]},async query(){const e=await r.get("/content-type-builder/content-types");return pi.parseAsync(e.data).then(t=>t.data)}}},roles:{getKey(){return[P,"moderate","roles"]},async query(){const e=await r.get("/admin/roles");return vi.parseAsync(e.data).then(t=>t.data)}},user:{getKey(){return[P,"moderate","user"]},async query(){const e=await r.get("/admin/users/me");return gi.parseAsync(e.data).then(t=>t.data)}},comments:{findAll:{getKey(e){return[P,"moderate","all",e?JSON.stringify(e):void 0].filter(Boolean)},async query(e){const t=await r.get(`/${P}/moderate/all?${nr.stringify(e,{encode:!1})}`);return ci.parseAsync(t.data)}},findOne:{getKey(e,t){return[P,"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(`/${P}/moderate/single/${e}${n}`);return si.parseAsync(o.data)}},approve(e){return r.put(`/${P}/moderate/single/${e}/approve`)},reject(e){return r.put(`/${P}/moderate/single/${e}/reject`)},block(e){return r.put(`/${P}/moderate/single/${e}/block`)},unblock(e){return r.put(`/${P}/moderate/single/${e}/unblock`)},blockThread(e){return r.put(`/${P}/moderate/thread/${e}/block`)},unBlockThread(e){return r.put(`/${P}/moderate/thread/${e}/unblock`)},delete(e){return r.del(`/${P}/moderate/single/${e}/delete`)},postComment({id:e,content:t,author:n}){return r.post(`/${P}/moderate/thread/${e}/postComment`,{content:t,author:n})},updateComment({id:e,content:t}){return r.put(`/${P}/moderate/single/${e}/update`,{content:t})}},reports:{findAll:{getKey(e){return[P,"moderate","reports",e?JSON.stringify(e):void 0].filter(Boolean)},async query(e){const t=await r.get(`/${P}/moderate/reports${e?`?${nr.stringify(e,{encode:!1})}`:""}`);return di.parseAsync(t.data)}},resolve({id:e,reportId:t}){return r.put(`/${P}/moderate/single/${e}/report/${t}/resolve`)},resolveMultipleReports({reportIds:e}){return r.put(`/${P}/moderate/multiple/report/resolve`,{reportIds:e})},resolveCommentMultipleReports({id:e,reportIds:t}){return r.put(`/${P}/moderate/single/${e}/report/resolve`,{reportIds:t})},resolveAllAbuseReportsForComment(e){return r.put(`/${P}/moderate/all/${e}/report/resolve`)},resolveAllAbuseReportsForThread(e){return r.put(`/${P}/moderate/thread/${e}/report/resolve-thread`)}},settings:{update(e){return r.put(`/${P}/settings/config`,e)},restore(){return r.del(`/${P}/settings/config`)},restart(){return r.post(`/${P}/settings/restart`)}}})),Ft=()=>{const r=rt.getFetchClient();return Y.useMemo(()=>hi(r),[r])},Dt=Y.createContext(null),Si=({children:r})=>{const e=Ft(),{data:t}=dr.useQuery({queryKey:e.user.getKey(),queryFn:e.user.query});return t?z.jsx(Dt.Provider,{value:t,children:r}):null},bi=new dr.QueryClient({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}}),Ei=({children:r})=>{const{theme:e}=Xt();return z.jsx(dr.QueryClientProvider,{client:bi,children:z.jsx(b.DesignSystemProvider,{theme:e,children:z.jsx(Si,{children:r})})})},Ai=()=>{const r=Y.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}},Pi=({title:r,onConfirm:e,Trigger:t,labelConfirm:n,iconConfirm:o,labelCancel:i,children:c})=>{const[l,s]=Y.useState(!1),[u,p]=Y.useState(!1),y=()=>s(h=>!h),m=async()=>{p(!0),await e(),p(!1),y()};return z.jsxs(b.Dialog.Root,{open:l,children:[z.jsx(b.Dialog.Trigger,{children:z.jsx(t,{onClick:y})}),z.jsxs(b.Dialog.Content,{children:[z.jsx(b.Dialog.Header,{children:r}),z.jsx(b.Dialog.Body,{children:z.jsxs(b.Flex,{justifyContent:"center",direction:"column",children:[z.jsx(b.ForwardRef$5,{fill:"danger500",stroke:"danger500",height:"24",width:"24"}),z.jsx(b.Typography,{id:"confirm-description",children:c})]})}),z.jsxs(b.Dialog.Footer,{children:[z.jsx(b.Dialog.Cancel,{children:z.jsx(b.Button,{onClick:y,disabled:u,variant:"tertiary",children:i||"Cancel"})}),z.jsx(b.Dialog.Action,{children:z.jsx(b.Button,{onClick:m,variant:"danger-light",loading:u,disabled:u,startIcon:o,children:n})})]})]})]})};exports.COMMENT_STATUS=j;exports.CommonProviders=Ei;exports.ConfirmationDialog=Pi;exports.REPORT_REASON=it;exports.REPORT_STATUS=pn;exports.UserContext=Dt;exports.getMessage=fn;exports.useAPI=Ft;exports.useIntl=Ce;exports.usePermissions=Ai;