strapi-plugin-comments 3.2.2 → 3.2.3-beta.2

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.
@@ -2,4 +2,4 @@
2
2
  &>* {
3
3
  width: 100%;
4
4
  }
5
- `;const h="strapi-plugin-comments",v={displayName:"Comments"},f=576,q=({width:e=24,height:r=24})=>o.jsx("svg",{viewBox:`0 0 ${e} ${r}`,xmlns:"http://www.w3.org/2000/svg",height:`${r}px`,children:o.jsx("g",{style:{transform:`scale(${e/f})`},fill:"currentColor",children:o.jsx("path",{d:"M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"})})}),P=o.jsx(q,{}),$=()=>P,t={render:e=>`plugin::comments.${e}`,comments:{read:"comments-read",moderate:"comments-moderate"},reports:{read:"reports-read",review:"reports-review"},settings:{read:"settings-read",change:"settings-change"}},a={access:[{action:t.render(t.comments.read),subject:null},{action:t.render(t.reports.read),subject:null},{action:t.render(t.settings.read),subject:null}],moderate:[{action:t.render(t.comments.moderate),subject:null}],reports:[{action:t.render(t.reports.read),subject:null}],reportsReview:[{action:t.render(t.reports.review),subject:null}],settings:[{action:t.render(t.settings.read),subject:null}],settingsChange:[{action:t.render(t.settings.change),subject:null}]},s=h.replace(/^strapi-plugin-/i,""),d={en:()=>Promise.resolve().then(()=>require("./en-nurIIakL.js")),fr:()=>Promise.resolve().then(()=>require("./fr-JAoXWyAN.js")),"pt-BR":()=>Promise.resolve().then(()=>require("./pt-BR-BXuFBSgm.js")),tr:()=>Promise.resolve().then(()=>require("./tr-B2Tw9kcB.js")),ru:()=>Promise.resolve().then(()=>require("./ru-B7jFc-n7.js")),"zh-Hans":()=>Promise.resolve().then(()=>require("./zh-Hans-Cp3JcN8q.js")),pl:()=>Promise.resolve().then(()=>require("./pl-DUaDM2d3.js"))},{displayName:m}=v,b={register(e){e.addMenuLink({to:`/plugins/${s}`,badgeContent:1,icon:$,intlLabel:{id:`${s}.plugin.name`,defaultMessage:m},Component:()=>Promise.resolve().then(()=>require("./index-D_8HT5__.js")),permissions:a.access}),e.createSettingSection({id:s,intlLabel:{id:`${s}.plugin.section`,defaultMessage:`${m} plugin`}},[{intlLabel:{id:`${s}.plugin.section.item`,defaultMessage:"Configuration"},id:"comments",to:`/settings/${s}`,Component:()=>Promise.resolve().then(()=>require("./index-C4g76XDn.js")),permissions:a.settings}])},registerTrads:async function({locales:e=[]}){return Promise.all(e.map(async r=>r in d?d[r]().then(({default:n})=>({data:u(c(n),s),locale:r})):{data:u(c({}),s),locale:r}))}};exports.index=b;exports.pluginId=s;exports.pluginPermissions=a;
5
+ `;const h="strapi-plugin-comments",v={displayName:"Comments"},f=576,q=({width:e=24,height:r=24})=>o.jsx("svg",{viewBox:`0 0 ${e} ${r}`,xmlns:"http://www.w3.org/2000/svg",height:`${r}px`,children:o.jsx("g",{style:{transform:`scale(${e/f})`},fill:"currentColor",children:o.jsx("path",{d:"M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"})})}),P=o.jsx(q,{}),$=()=>P,t={render:e=>`plugin::comments.${e}`,comments:{read:"comments-read",moderate:"comments-moderate"},reports:{read:"reports-read",review:"reports-review"},settings:{read:"settings-read",change:"settings-change"}},a={access:[{action:t.render(t.comments.read),subject:null},{action:t.render(t.reports.read),subject:null},{action:t.render(t.settings.read),subject:null}],moderate:[{action:t.render(t.comments.moderate),subject:null}],reports:[{action:t.render(t.reports.read),subject:null}],reportsReview:[{action:t.render(t.reports.review),subject:null}],settings:[{action:t.render(t.settings.read),subject:null}],settingsChange:[{action:t.render(t.settings.change),subject:null}]},s=h.replace(/^strapi-plugin-/i,""),d={en:()=>Promise.resolve().then(()=>require("./en-nurIIakL.js")),fr:()=>Promise.resolve().then(()=>require("./fr-JAoXWyAN.js")),"pt-BR":()=>Promise.resolve().then(()=>require("./pt-BR-BXuFBSgm.js")),tr:()=>Promise.resolve().then(()=>require("./tr-B2Tw9kcB.js")),ru:()=>Promise.resolve().then(()=>require("./ru-B7jFc-n7.js")),"zh-Hans":()=>Promise.resolve().then(()=>require("./zh-Hans-Cp3JcN8q.js")),pl:()=>Promise.resolve().then(()=>require("./pl-DUaDM2d3.js"))},{displayName:m}=v,b={register(e){e.addMenuLink({to:`/plugins/${s}`,badgeContent:1,icon:$,intlLabel:{id:`${s}.plugin.name`,defaultMessage:m},Component:()=>Promise.resolve().then(()=>require("./index-QQjHUmZX.js")),permissions:a.access}),e.createSettingSection({id:s,intlLabel:{id:`${s}.plugin.section`,defaultMessage:`${m} plugin`}},[{intlLabel:{id:`${s}.plugin.section.item`,defaultMessage:"Configuration"},id:"comments",to:`/settings/${s}`,Component:()=>Promise.resolve().then(()=>require("./index-BR27qalE.js")),permissions:a.settings}])},registerTrads:async function({locales:e=[]}){return Promise.all(e.map(async r=>r in d?d[r]().then(({default:n})=>({data:u(c(n),s),locale:r})):{data:u(c({}),s),locale:r}))}};exports.index=b;exports.pluginId=s;exports.pluginPermissions=a;
@@ -3,7 +3,7 @@ import { Button as F, Box as p, Flex as q, Typography as m, Grid as s, Field as
3
3
  import { Check as se, Play as le, ArrowClockwise as N } from "@strapi/icons";
4
4
  import { useNotification as ae, Page as W, Layouts as j, Form as ce } from "@strapi/strapi/admin";
5
5
  import { useMutation as T, useQuery as P, useQueryClient as de } from "@tanstack/react-query";
6
- import { u as U, f as ge, a as he, g as t, l as D, e as pe } from "./index-CWULkNp0.mjs";
6
+ import { u as U, f as ge, a as he, g as t, l as D, e as pe } from "./index-T4wQaxSs.mjs";
7
7
  import { useMemo as me, useRef as ue, useState as be, useCallback as Q } from "react";
8
8
  import fe from "styled-components";
9
9
  const M = ({
@@ -1,4 +1,4 @@
1
- "use strict";const Mr=require("react"),tr=require("./index-BIcDaXS9.js"),be=require("react/jsx-runtime"),Ru=require("@tanstack/react-query"),Ul=require("@strapi/strapi/admin"),v=require("zod"),on=require("@strapi/design-system"),f_=require("@strapi/icons");function l_(a){if(a&&a.__esModule)return a;const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const o in a)if(o!=="default"){const c=Object.getOwnPropertyDescriptor(a,o);Object.defineProperty(i,o,c.get?c:{enumerable:!0,get:()=>a[o]})}}return i.default=a,Object.freeze(i)}const Fr=l_(Mr);var li=function(){return li=Object.assign||function(i){for(var o,c=1,h=arguments.length;c<h;c++){o=arguments[c];for(var m in o)Object.prototype.hasOwnProperty.call(o,m)&&(i[m]=o[m])}return i},li.apply(this,arguments)};function ql(a,i){var o={};for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&i.indexOf(c)<0&&(o[c]=a[c]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,c=Object.getOwnPropertySymbols(a);h<c.length;h++)i.indexOf(c[h])<0&&Object.prototype.propertyIsEnumerable.call(a,c[h])&&(o[c[h]]=a[c[h]]);return o}var ir=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function s_(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function c_(a){if(a.__esModule)return a;var i=a.default;if(typeof i=="function"){var o=function c(){return this instanceof c?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};o.prototype=i.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(a).forEach(function(c){var h=Object.getOwnPropertyDescriptor(a,c);Object.defineProperty(o,c,h.get?h:{enumerable:!0,get:function(){return a[c]}})}),o}var vu={exports:{}},re={};/** @license React v16.13.1
1
+ "use strict";const Mr=require("react"),tr=require("./index-DMbK1qUe.js"),be=require("react/jsx-runtime"),Ru=require("@tanstack/react-query"),Ul=require("@strapi/strapi/admin"),v=require("zod"),on=require("@strapi/design-system"),f_=require("@strapi/icons");function l_(a){if(a&&a.__esModule)return a;const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const o in a)if(o!=="default"){const c=Object.getOwnPropertyDescriptor(a,o);Object.defineProperty(i,o,c.get?c:{enumerable:!0,get:()=>a[o]})}}return i.default=a,Object.freeze(i)}const Fr=l_(Mr);var li=function(){return li=Object.assign||function(i){for(var o,c=1,h=arguments.length;c<h;c++){o=arguments[c];for(var m in o)Object.prototype.hasOwnProperty.call(o,m)&&(i[m]=o[m])}return i},li.apply(this,arguments)};function ql(a,i){var o={};for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&i.indexOf(c)<0&&(o[c]=a[c]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,c=Object.getOwnPropertySymbols(a);h<c.length;h++)i.indexOf(c[h])<0&&Object.prototype.propertyIsEnumerable.call(a,c[h])&&(o[c[h]]=a[c[h]]);return o}var ir=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function s_(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function c_(a){if(a.__esModule)return a;var i=a.default;if(typeof i=="function"){var o=function c(){return this instanceof c?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};o.prototype=i.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(a).forEach(function(c){var h=Object.getOwnPropertyDescriptor(a,c);Object.defineProperty(o,c,h.get?h:{enumerable:!0,get:function(){return a[c]}})}),o}var vu={exports:{}},re={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -41,4 +41,4 @@ function print() { __p += __j.call(arguments, '') }
41
41
  }`;var H=fl(function(){return j(l,M+"return "+w).apply(o,s)});if(H.source=w,No(H))throw H;return H}function dy(e){return ne(e).toLowerCase()}function vy(e){return ne(e).toUpperCase()}function yy(e,n,r){if(e=ne(e),e&&(r||n===o))return va(e);if(!e||!(n=Ge(n)))return e;var t=fn(e),u=fn(n),l=ya(t,u),s=_a(t,u)+1;return qn(t,l,s).join("")}function _y(e,n,r){if(e=ne(e),e&&(r||n===o))return e.slice(0,Sa(e)+1);if(!e||!(n=Ge(n)))return e;var t=fn(e),u=_a(t,fn(n))+1;return qn(t,0,u).join("")}function my(e,n,r){if(e=ne(e),e&&(r||n===o))return e.replace(Di,"");if(!e||!(n=Ge(n)))return e;var t=fn(e),u=ya(t,fn(n));return qn(t,u).join("")}function Sy(e,n){var r=Ze,t=$n;if(se(n)){var u="separator"in n?n.separator:u;r="length"in n?G(n.length):r,t="omission"in n?Ge(n.omission):t}e=ne(e);var l=e.length;if(vr(e)){var s=fn(e);l=s.length}if(r>=l)return e;var p=r-yr(t);if(p<1)return t;var d=s?qn(s,0,p).join(""):e.slice(0,p);if(u===o)return d+t;if(s&&(p+=d.length-p),Bo(u)){if(e.slice(p).search(u)){var S,A=d;for(u.global||(u=eo(u.source,ne(Nu.exec(u))+"g")),u.lastIndex=0;S=u.exec(A);)var w=S.index;d=d.slice(0,w===o?p:w)}}else if(e.indexOf(Ge(u),p)!=p){var R=d.lastIndexOf(u);R>-1&&(d=d.slice(0,R))}return d+t}function Ay(e){return e=ne(e),e&&$s.test(e)?e.replace(zu,Qc):e}var wy=Er(function(e,n,r){return e+(r?" ":"")+n.toUpperCase()}),qo=lf("toUpperCase");function al(e,n,r){return e=ne(e),n=r?o:n,n===o?Kc(e)?jc(e):Lc(e):e.match(n)||[]}var fl=K(function(e,n){try{return Ue(e,o,n)}catch(r){return No(r)?r:new W(r)}}),by=xn(function(e,n){return Ve(n,function(r){r=dn(r),bn(e,r,Lo(e[r],e))}),e});function Ey(e){var n=e==null?0:e.length,r=L();return e=n?le(e,function(t){if(typeof t[1]!="function")throw new ke(E);return[r(t[0]),t[1]]}):[],K(function(t){for(var u=-1;++u<n;){var l=e[u];if(Ue(l[0],this,t))return Ue(l[1],this,t)}})}function xy(e){return Qp(en(e,$))}function Go(e){return function(){return e}}function Oy(e,n){return e==null||e!==e?n:e}var Ry=cf(),Py=cf(!0);function ze(e){return e}function Ho(e){return Wa(typeof e=="function"?e:en(e,$))}function Ty(e){return qa(en(e,$))}function Cy(e,n){return Ga(e,en(n,$))}var Iy=K(function(e,n){return function(r){return Qr(r,e,n)}}),$y=K(function(e,n){return function(r){return Qr(e,r,n)}});function Ko(e,n,r){var t=_e(n),u=Nt(n,t);r==null&&!(se(n)&&(u.length||!t.length))&&(r=n,n=e,e=this,u=Nt(n,_e(n)));var l=!(se(r)&&"chain"in r)||!!r.chain,s=Rn(e);return Ve(u,function(p){var d=n[p];e[p]=d,s&&(e.prototype[p]=function(){var S=this.__chain__;if(l||S){var A=e(this.__wrapped__),w=A.__actions__=$e(this.__actions__);return w.push({func:d,args:arguments,thisArg:e}),A.__chain__=S,A}return d.apply(e,Ln([this.value()],arguments))})}),e}function My(){return Ae._===this&&(Ae._=op),this}function Yo(){}function Fy(e){return e=G(e),K(function(n){return Ha(n,e)})}var zy=bo(le),Ly=bo(ca),Dy=bo(Ji);function ll(e){return Co(e)?Zi(dn(e)):hh(e)}function Ny(e){return function(n){return e==null?o:jn(e,n)}}var By=hf(),Wy=hf(!0);function Jo(){return[]}function Zo(){return!1}function Uy(){return{}}function qy(){return""}function Gy(){return!0}function Hy(e,n){if(e=G(e),e<1||e>We)return[];var r=Xe,t=xe(e,Xe);n=L(n),e-=Xe;for(var u=Vi(t,n);++r<e;)n(r);return u}function Ky(e){return q(e)?le(e,dn):He(e)?[e]:$e(Tf(ne(e)))}function Yy(e){var n=++tp;return ne(e)+n}var Jy=Ht(function(e,n){return e+n},0),Zy=Eo("ceil"),Xy=Ht(function(e,n){return e/n},1),Qy=Eo("floor");function Vy(e){return e&&e.length?Dt(e,ze,fo):o}function ky(e,n){return e&&e.length?Dt(e,L(n,2),fo):o}function jy(e){return ga(e,ze)}function e_(e,n){return ga(e,L(n,2))}function n_(e){return e&&e.length?Dt(e,ze,po):o}function r_(e,n){return e&&e.length?Dt(e,L(n,2),po):o}var t_=Ht(function(e,n){return e*n},1),i_=Eo("round"),o_=Ht(function(e,n){return e-n},0);function u_(e){return e&&e.length?Qi(e,ze):0}function a_(e,n){return e&&e.length?Qi(e,L(n,2)):0}return f.after=Td,f.ary=Wf,f.assign=vv,f.assignIn=el,f.assignInWith=ti,f.assignWith=yv,f.at=_v,f.before=Uf,f.bind=Lo,f.bindAll=by,f.bindKey=qf,f.castArray=Ud,f.chain=Df,f.chunk=Qh,f.compact=Vh,f.concat=kh,f.cond=Ey,f.conforms=xy,f.constant=Go,f.countBy=ud,f.create=mv,f.curry=Gf,f.curryRight=Hf,f.debounce=Kf,f.defaults=Sv,f.defaultsDeep=Av,f.defer=Cd,f.delay=Id,f.difference=jh,f.differenceBy=eg,f.differenceWith=ng,f.drop=rg,f.dropRight=tg,f.dropRightWhile=ig,f.dropWhile=og,f.fill=ug,f.filter=fd,f.flatMap=cd,f.flatMapDeep=pd,f.flatMapDepth=hd,f.flatten=Mf,f.flattenDeep=ag,f.flattenDepth=fg,f.flip=$d,f.flow=Ry,f.flowRight=Py,f.fromPairs=lg,f.functions=Pv,f.functionsIn=Tv,f.groupBy=gd,f.initial=cg,f.intersection=pg,f.intersectionBy=hg,f.intersectionWith=gg,f.invert=Iv,f.invertBy=$v,f.invokeMap=vd,f.iteratee=Ho,f.keyBy=yd,f.keys=_e,f.keysIn=Fe,f.map=Vt,f.mapKeys=Fv,f.mapValues=zv,f.matches=Ty,f.matchesProperty=Cy,f.memoize=jt,f.merge=Lv,f.mergeWith=nl,f.method=Iy,f.methodOf=$y,f.mixin=Ko,f.negate=ei,f.nthArg=Fy,f.omit=Dv,f.omitBy=Nv,f.once=Md,f.orderBy=_d,f.over=zy,f.overArgs=Fd,f.overEvery=Ly,f.overSome=Dy,f.partial=Do,f.partialRight=Yf,f.partition=md,f.pick=Bv,f.pickBy=rl,f.property=ll,f.propertyOf=Ny,f.pull=_g,f.pullAll=zf,f.pullAllBy=mg,f.pullAllWith=Sg,f.pullAt=Ag,f.range=By,f.rangeRight=Wy,f.rearg=zd,f.reject=wd,f.remove=wg,f.rest=Ld,f.reverse=Fo,f.sampleSize=Ed,f.set=Uv,f.setWith=qv,f.shuffle=xd,f.slice=bg,f.sortBy=Pd,f.sortedUniq=Cg,f.sortedUniqBy=Ig,f.split=cy,f.spread=Dd,f.tail=$g,f.take=Mg,f.takeRight=Fg,f.takeRightWhile=zg,f.takeWhile=Lg,f.tap=Vg,f.throttle=Nd,f.thru=Qt,f.toArray=Vf,f.toPairs=tl,f.toPairsIn=il,f.toPath=Ky,f.toPlainObject=jf,f.transform=Gv,f.unary=Bd,f.union=Dg,f.unionBy=Ng,f.unionWith=Bg,f.uniq=Wg,f.uniqBy=Ug,f.uniqWith=qg,f.unset=Hv,f.unzip=zo,f.unzipWith=Lf,f.update=Kv,f.updateWith=Yv,f.values=Rr,f.valuesIn=Jv,f.without=Gg,f.words=al,f.wrap=Wd,f.xor=Hg,f.xorBy=Kg,f.xorWith=Yg,f.zip=Jg,f.zipObject=Zg,f.zipObjectDeep=Xg,f.zipWith=Qg,f.entries=tl,f.entriesIn=il,f.extend=el,f.extendWith=ti,Ko(f,f),f.add=Jy,f.attempt=fl,f.camelCase=Vv,f.capitalize=ol,f.ceil=Zy,f.clamp=Zv,f.clone=qd,f.cloneDeep=Hd,f.cloneDeepWith=Kd,f.cloneWith=Gd,f.conformsTo=Yd,f.deburr=ul,f.defaultTo=Oy,f.divide=Xy,f.endsWith=kv,f.eq=sn,f.escape=jv,f.escapeRegExp=ey,f.every=ad,f.find=ld,f.findIndex=If,f.findKey=wv,f.findLast=sd,f.findLastIndex=$f,f.findLastKey=bv,f.floor=Qy,f.forEach=Nf,f.forEachRight=Bf,f.forIn=Ev,f.forInRight=xv,f.forOwn=Ov,f.forOwnRight=Rv,f.get=Wo,f.gt=Jd,f.gte=Zd,f.has=Cv,f.hasIn=Uo,f.head=Ff,f.identity=ze,f.includes=dd,f.indexOf=sg,f.inRange=Xv,f.invoke=Mv,f.isArguments=rr,f.isArray=q,f.isArrayBuffer=Xd,f.isArrayLike=Me,f.isArrayLikeObject=pe,f.isBoolean=Qd,f.isBuffer=Gn,f.isDate=Vd,f.isElement=kd,f.isEmpty=jd,f.isEqual=ev,f.isEqualWith=nv,f.isError=No,f.isFinite=rv,f.isFunction=Rn,f.isInteger=Jf,f.isLength=ni,f.isMap=Zf,f.isMatch=tv,f.isMatchWith=iv,f.isNaN=ov,f.isNative=uv,f.isNil=fv,f.isNull=av,f.isNumber=Xf,f.isObject=se,f.isObjectLike=ce,f.isPlainObject=rt,f.isRegExp=Bo,f.isSafeInteger=lv,f.isSet=Qf,f.isString=ri,f.isSymbol=He,f.isTypedArray=Or,f.isUndefined=sv,f.isWeakMap=cv,f.isWeakSet=pv,f.join=dg,f.kebabCase=ny,f.last=rn,f.lastIndexOf=vg,f.lowerCase=ry,f.lowerFirst=ty,f.lt=hv,f.lte=gv,f.max=Vy,f.maxBy=ky,f.mean=jy,f.meanBy=e_,f.min=n_,f.minBy=r_,f.stubArray=Jo,f.stubFalse=Zo,f.stubObject=Uy,f.stubString=qy,f.stubTrue=Gy,f.multiply=t_,f.nth=yg,f.noConflict=My,f.noop=Yo,f.now=kt,f.pad=iy,f.padEnd=oy,f.padStart=uy,f.parseInt=ay,f.random=Qv,f.reduce=Sd,f.reduceRight=Ad,f.repeat=fy,f.replace=ly,f.result=Wv,f.round=i_,f.runInContext=g,f.sample=bd,f.size=Od,f.snakeCase=sy,f.some=Rd,f.sortedIndex=Eg,f.sortedIndexBy=xg,f.sortedIndexOf=Og,f.sortedLastIndex=Rg,f.sortedLastIndexBy=Pg,f.sortedLastIndexOf=Tg,f.startCase=py,f.startsWith=hy,f.subtract=o_,f.sum=u_,f.sumBy=a_,f.template=gy,f.times=Hy,f.toFinite=Pn,f.toInteger=G,f.toLength=kf,f.toLower=dy,f.toNumber=tn,f.toSafeInteger=dv,f.toString=ne,f.toUpper=vy,f.trim=yy,f.trimEnd=_y,f.trimStart=my,f.truncate=Sy,f.unescape=Ay,f.uniqueId=Yy,f.upperCase=wy,f.upperFirst=qo,f.each=Nf,f.eachRight=Bf,f.first=Ff,Ko(f,function(){var e={};return hn(f,function(n,r){ee.call(f.prototype,r)||(e[r]=n)}),e}(),{chain:!1}),f.VERSION=c,Ve(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){f[e].placeholder=f}),Ve(["drop","take"],function(e,n){Z.prototype[e]=function(r){r=r===o?1:de(G(r),0);var t=this.__filtered__&&!n?new Z(this):this.clone();return t.__filtered__?t.__takeCount__=xe(r,t.__takeCount__):t.__views__.push({size:xe(r,Xe),type:e+(t.__dir__<0?"Right":"")}),t},Z.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Ve(["filter","map","takeWhile"],function(e,n){var r=n+1,t=r==De||r==mn;Z.prototype[e]=function(u){var l=this.clone();return l.__iteratees__.push({iteratee:L(u,3),type:r}),l.__filtered__=l.__filtered__||t,l}}),Ve(["head","last"],function(e,n){var r="take"+(n?"Right":"");Z.prototype[e]=function(){return this[r](1).value()[0]}}),Ve(["initial","tail"],function(e,n){var r="drop"+(n?"":"Right");Z.prototype[e]=function(){return this.__filtered__?new Z(this):this[r](1)}}),Z.prototype.compact=function(){return this.filter(ze)},Z.prototype.find=function(e){return this.filter(e).head()},Z.prototype.findLast=function(e){return this.reverse().find(e)},Z.prototype.invokeMap=K(function(e,n){return typeof e=="function"?new Z(this):this.map(function(r){return Qr(r,e,n)})}),Z.prototype.reject=function(e){return this.filter(ei(L(e)))},Z.prototype.slice=function(e,n){e=G(e);var r=this;return r.__filtered__&&(e>0||n<0)?new Z(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==o&&(n=G(n),r=n<0?r.dropRight(-n):r.take(n-e)),r)},Z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Z.prototype.toArray=function(){return this.take(Xe)},hn(Z.prototype,function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),t=/^(?:head|last)$/.test(n),u=f[t?"take"+(n=="last"?"Right":""):n],l=t||/^find/.test(n);u&&(f.prototype[n]=function(){var s=this.__wrapped__,p=t?[1]:arguments,d=s instanceof Z,S=p[0],A=d||q(s),w=function(Y){var X=u.apply(f,Ln([Y],p));return t&&R?X[0]:X};A&&r&&typeof S=="function"&&S.length!=1&&(d=A=!1);var R=this.__chain__,M=!!this.__actions__.length,N=l&&!R,H=d&&!M;if(!l&&A){s=H?s:new Z(this);var B=e.apply(s,p);return B.__actions__.push({func:Qt,args:[w],thisArg:o}),new je(B,R)}return N&&H?e.apply(this,p):(B=this.thru(w),N?t?B.value()[0]:B.value():B)})}),Ve(["pop","push","shift","sort","splice","unshift"],function(e){var n=wt[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",t=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var u=arguments;if(t&&!this.__chain__){var l=this.value();return n.apply(q(l)?l:[],u)}return this[r](function(s){return n.apply(q(s)?s:[],u)})}}),hn(Z.prototype,function(e,n){var r=f[n];if(r){var t=r.name+"";ee.call(Ar,t)||(Ar[t]=[]),Ar[t].push({name:n,func:r})}}),Ar[Gt(o,fe).name]=[{name:"wrapper",func:o}],Z.prototype.clone=Ap,Z.prototype.reverse=wp,Z.prototype.value=bp,f.prototype.at=kg,f.prototype.chain=jg,f.prototype.commit=ed,f.prototype.next=nd,f.prototype.plant=td,f.prototype.reverse=id,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=od,f.prototype.first=f.prototype.head,Gr&&(f.prototype[Gr]=rd),f},_r=ep();Zn?((Zn.exports=_r)._=_r,Gi._=_r):Ae._=_r}).call(ir)})(si,si.exports);var mu=si.exports;const Yl={PENDING:"PENDING",APPROVED:"APPROVED",REJECTED:"REJECTED"},E_={...Yl,BLOCKED:"BLOCKED",OPEN:"OPEN",RESOLVED:"RESOLVED"};var Jl=(a=>(a.BAD_LANGUAGE="BAD_LANGUAGE",a.DISCRIMINATION="DISCRIMINATION",a.OTHER="OTHER",a))(Jl||{});const Cn={...Yl,BLOCKED:"BLOCKED",OPEN:"OPEN",REMOVED:"REMOVED",TO_REVIEW:"TO_REVIEW",UNKNOWN:"UNKNOWN"};var Dr=TypeError;const x_={},O_=Object.freeze(Object.defineProperty({__proto__:null,default:x_},Symbol.toStringTag,{value:"Module"})),R_=c_(O_);var Tu=typeof Map=="function"&&Map.prototype,Xo=Object.getOwnPropertyDescriptor&&Tu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ci=Tu&&Xo&&typeof Xo.get=="function"?Xo.get:null,hl=Tu&&Map.prototype.forEach,Cu=typeof Set=="function"&&Set.prototype,Qo=Object.getOwnPropertyDescriptor&&Cu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,pi=Cu&&Qo&&typeof Qo.get=="function"?Qo.get:null,gl=Cu&&Set.prototype.forEach,P_=typeof WeakMap=="function"&&WeakMap.prototype,ot=P_?WeakMap.prototype.has:null,T_=typeof WeakSet=="function"&&WeakSet.prototype,ut=T_?WeakSet.prototype.has:null,C_=typeof WeakRef=="function"&&WeakRef.prototype,dl=C_?WeakRef.prototype.deref:null,I_=Boolean.prototype.valueOf,$_=Object.prototype.toString,M_=Function.prototype.toString,F_=String.prototype.match,Iu=String.prototype.slice,Hn=String.prototype.replace,z_=String.prototype.toUpperCase,vl=String.prototype.toLowerCase,Zl=RegExp.prototype.test,yl=Array.prototype.concat,_n=Array.prototype.join,L_=Array.prototype.slice,_l=Math.floor,Su=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Vo=Object.getOwnPropertySymbols,Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,zr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",at=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===zr||!0)?Symbol.toStringTag:null,Xl=Object.prototype.propertyIsEnumerable,ml=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(a){return a.__proto__}:null);function Sl(a,i){if(a===1/0||a===-1/0||a!==a||a&&a>-1e3&&a<1e3||Zl.call(/e/,i))return i;var o=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof a=="number"){var c=a<0?-_l(-a):_l(a);if(c!==a){var h=String(c),m=Iu.call(i,h.length+1);return Hn.call(h,o,"$&_")+"."+Hn.call(Hn.call(m,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Hn.call(i,o,"$&_")}var wu=R_,Al=wu.custom,wl=kl(Al)?Al:null,Ql={__proto__:null,double:'"',single:"'"},D_={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},yi=function a(i,o,c,h){var m=o||{};if(In(m,"quoteStyle")&&!In(Ql,m.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(In(m,"maxStringLength")&&(typeof m.maxStringLength=="number"?m.maxStringLength<0&&m.maxStringLength!==1/0:m.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var E=In(m,"customInspect")?m.customInspect:!0;if(typeof E!="boolean"&&E!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(In(m,"indent")&&m.indent!==null&&m.indent!==" "&&!(parseInt(m.indent,10)===m.indent&&m.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(In(m,"numericSeparator")&&typeof m.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var O=m.numericSeparator;if(typeof i>"u")return"undefined";if(i===null)return"null";if(typeof i=="boolean")return i?"true":"false";if(typeof i=="string")return es(i,m);if(typeof i=="number"){if(i===0)return 1/0/i>0?"0":"-0";var T=String(i);return O?Sl(i,T):T}if(typeof i=="bigint"){var C=String(i)+"n";return O?Sl(i,C):C}var P=typeof m.depth>"u"?5:m.depth;if(typeof c>"u"&&(c=0),c>=P&&P>0&&typeof i=="object")return bu(i)?"[Array]":"[Object]";var $=n0(m,c);if(typeof h>"u")h=[];else if(jl(h,i)>=0)return"[Circular]";function b(Pe,De,Ne){if(De&&(h=L_.call(h),h.push(De)),Ne){var mn={depth:m.depth};return In(m,"quoteStyle")&&(mn.quoteStyle=m.quoteStyle),a(Pe,mn,c+1,h)}return a(Pe,m,c+1,h)}if(typeof i=="function"&&!bl(i)){var D=Y_(i),U=ii(i,b);return"[Function"+(D?": "+D:" (anonymous)")+"]"+(U.length>0?" { "+_n.call(U,", ")+" }":"")}if(kl(i)){var Q=zr?Hn.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):Au.call(i);return typeof i=="object"&&!zr?tt(Q):Q}if(k_(i)){for(var V="<"+vl.call(String(i.nodeName)),fe=i.attributes||[],Re=0;Re<fe.length;Re++)V+=" "+fe[Re].name+"="+Vl(N_(fe[Re].value),"double",m);return V+=">",i.childNodes&&i.childNodes.length&&(V+="..."),V+="</"+vl.call(String(i.nodeName))+">",V}if(bu(i)){if(i.length===0)return"[]";var F=ii(i,b);return $&&!e0(F)?"["+Eu(F,$)+"]":"[ "+_n.call(F,", ")+" ]"}if(W_(i)){var k=ii(i,b);return!("cause"in Error.prototype)&&"cause"in i&&!Xl.call(i,"cause")?"{ ["+String(i)+"] "+_n.call(yl.call("[cause]: "+b(i.cause),k),", ")+" }":k.length===0?"["+String(i)+"]":"{ ["+String(i)+"] "+_n.call(k,", ")+" }"}if(typeof i=="object"&&E){if(wl&&typeof i[wl]=="function"&&wu)return wu(i,{depth:P-c});if(E!=="symbol"&&typeof i.inspect=="function")return i.inspect()}if(J_(i)){var x=[];return hl&&hl.call(i,function(Pe,De){x.push(b(De,i,!0)+" => "+b(Pe,i))}),El("Map",ci.call(i),x,$)}if(Q_(i)){var Se=[];return gl&&gl.call(i,function(Pe){Se.push(b(Pe,i))}),El("Set",pi.call(i),Se,$)}if(Z_(i))return ko("WeakMap");if(V_(i))return ko("WeakSet");if(X_(i))return ko("WeakRef");if(q_(i))return tt(b(Number(i)));if(H_(i))return tt(b(Su.call(i)));if(G_(i))return tt(I_.call(i));if(U_(i))return tt(b(String(i)));if(typeof window<"u"&&i===window)return"{ [object Window] }";if(typeof globalThis<"u"&&i===globalThis||typeof ir<"u"&&i===ir)return"{ [object globalThis] }";if(!B_(i)&&!bl(i)){var ye=ii(i,b),Je=ml?ml(i)===Object.prototype:i instanceof Object||i.constructor===Object,Le=i instanceof Object?"":"null prototype",Ze=!Je&&at&&Object(i)===i&&at in i?Iu.call(Kn(i),8,-1):Le?"Object":"",$n=Je||typeof i.constructor!="function"?"":i.constructor.name?i.constructor.name+" ":"",pn=$n+(Ze||Le?"["+_n.call(yl.call([],Ze||[],Le||[]),": ")+"] ":"");return ye.length===0?pn+"{}":$?pn+"{"+Eu(ye,$)+"}":pn+"{ "+_n.call(ye,", ")+" }"}return String(i)};function Vl(a,i,o){var c=o.quoteStyle||i,h=Ql[c];return h+a+h}function N_(a){return Hn.call(String(a),/"/g,"&quot;")}function fr(a){return!at||!(typeof a=="object"&&(at in a||typeof a[at]<"u"))}function bu(a){return Kn(a)==="[object Array]"&&fr(a)}function B_(a){return Kn(a)==="[object Date]"&&fr(a)}function bl(a){return Kn(a)==="[object RegExp]"&&fr(a)}function W_(a){return Kn(a)==="[object Error]"&&fr(a)}function U_(a){return Kn(a)==="[object String]"&&fr(a)}function q_(a){return Kn(a)==="[object Number]"&&fr(a)}function G_(a){return Kn(a)==="[object Boolean]"&&fr(a)}function kl(a){if(zr)return a&&typeof a=="object"&&a instanceof Symbol;if(typeof a=="symbol")return!0;if(!a||typeof a!="object"||!Au)return!1;try{return Au.call(a),!0}catch{}return!1}function H_(a){if(!a||typeof a!="object"||!Su)return!1;try{return Su.call(a),!0}catch{}return!1}var K_=Object.prototype.hasOwnProperty||function(a){return a in this};function In(a,i){return K_.call(a,i)}function Kn(a){return $_.call(a)}function Y_(a){if(a.name)return a.name;var i=F_.call(M_.call(a),/^function\s*([\w$]+)/);return i?i[1]:null}function jl(a,i){if(a.indexOf)return a.indexOf(i);for(var o=0,c=a.length;o<c;o++)if(a[o]===i)return o;return-1}function J_(a){if(!ci||!a||typeof a!="object")return!1;try{ci.call(a);try{pi.call(a)}catch{return!0}return a instanceof Map}catch{}return!1}function Z_(a){if(!ot||!a||typeof a!="object")return!1;try{ot.call(a,ot);try{ut.call(a,ut)}catch{return!0}return a instanceof WeakMap}catch{}return!1}function X_(a){if(!dl||!a||typeof a!="object")return!1;try{return dl.call(a),!0}catch{}return!1}function Q_(a){if(!pi||!a||typeof a!="object")return!1;try{pi.call(a);try{ci.call(a)}catch{return!0}return a instanceof Set}catch{}return!1}function V_(a){if(!ut||!a||typeof a!="object")return!1;try{ut.call(a,ut);try{ot.call(a,ot)}catch{return!0}return a instanceof WeakSet}catch{}return!1}function k_(a){return!a||typeof a!="object"?!1:typeof HTMLElement<"u"&&a instanceof HTMLElement?!0:typeof a.nodeName=="string"&&typeof a.getAttribute=="function"}function es(a,i){if(a.length>i.maxStringLength){var o=a.length-i.maxStringLength,c="... "+o+" more character"+(o>1?"s":"");return es(Iu.call(a,0,i.maxStringLength),i)+c}var h=D_[i.quoteStyle||"single"];h.lastIndex=0;var m=Hn.call(Hn.call(a,h,"\\$1"),/[\x00-\x1f]/g,j_);return Vl(m,"single",i)}function j_(a){var i=a.charCodeAt(0),o={8:"b",9:"t",10:"n",12:"f",13:"r"}[i];return o?"\\"+o:"\\x"+(i<16?"0":"")+z_.call(i.toString(16))}function tt(a){return"Object("+a+")"}function ko(a){return a+" { ? }"}function El(a,i,o,c){var h=c?Eu(o,c):_n.call(o,", ");return a+" ("+i+") {"+h+"}"}function e0(a){for(var i=0;i<a.length;i++)if(jl(a[i],`
42
42
  `)>=0)return!1;return!0}function n0(a,i){var o;if(a.indent===" ")o=" ";else if(typeof a.indent=="number"&&a.indent>0)o=_n.call(Array(a.indent+1)," ");else return null;return{base:o,prev:_n.call(Array(i+1),o)}}function Eu(a,i){if(a.length===0)return"";var o=`
43
43
  `+i.prev+i.base;return o+_n.call(a,","+o)+`
44
- `+i.prev}function ii(a,i){var o=bu(a),c=[];if(o){c.length=a.length;for(var h=0;h<a.length;h++)c[h]=In(a,h)?i(a[h],a):""}var m=typeof Vo=="function"?Vo(a):[],E;if(zr){E={};for(var O=0;O<m.length;O++)E["$"+m[O]]=m[O]}for(var T in a)In(a,T)&&(o&&String(Number(T))===T&&T<a.length||zr&&E["$"+T]instanceof Symbol||(Zl.call(/[^\w$]/,T)?c.push(i(T,a)+": "+i(a[T],a)):c.push(T+": "+i(a[T],a))));if(typeof Vo=="function")for(var C=0;C<m.length;C++)Xl.call(a,m[C])&&c.push("["+i(m[C])+"]: "+i(a[m[C]],a));return c}var r0=yi,t0=Dr,_i=function(a,i,o){for(var c=a,h;(h=c.next)!=null;c=h)if(h.key===i)return c.next=h.next,o||(h.next=a.next,a.next=h),h},i0=function(a,i){if(a){var o=_i(a,i);return o&&o.value}},o0=function(a,i,o){var c=_i(a,i);c?c.value=o:a.next={key:i,next:a.next,value:o}},u0=function(a,i){return a?!!_i(a,i):!1},a0=function(a,i){if(a)return _i(a,i,!0)},f0=function(){var i,o={assert:function(c){if(!o.has(c))throw new t0("Side channel does not contain "+r0(c))},delete:function(c){var h=i&&i.next,m=a0(i,c);return m&&h&&h===m&&(i=void 0),!!m},get:function(c){return i0(i,c)},has:function(c){return u0(i,c)},set:function(c,h){i||(i={next:void 0}),o0(i,c,h)}};return o},ns=Object,l0=Error,s0=EvalError,c0=RangeError,p0=ReferenceError,h0=SyntaxError,g0=URIError,d0=Math.abs,v0=Math.floor,y0=Math.max,_0=Math.min,m0=Math.pow,S0=Math.round,A0=Number.isNaN||function(i){return i!==i},w0=A0,b0=function(i){return w0(i)||i===0?i:i<0?-1:1},E0=Object.getOwnPropertyDescriptor,ui=E0;if(ui)try{ui([],"length")}catch{ui=null}var rs=ui,ai=Object.defineProperty||!1;if(ai)try{ai({},"a",{value:1})}catch{ai=!1}var x0=ai,jo,xl;function O0(){return xl||(xl=1,jo=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var i={},o=Symbol("test"),c=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(c)!=="[object Symbol]")return!1;var h=42;i[o]=h;for(var m in i)return!1;if(typeof Object.keys=="function"&&Object.keys(i).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(i).length!==0)return!1;var E=Object.getOwnPropertySymbols(i);if(E.length!==1||E[0]!==o||!Object.prototype.propertyIsEnumerable.call(i,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var O=Object.getOwnPropertyDescriptor(i,o);if(O.value!==h||O.enumerable!==!0)return!1}return!0}),jo}var eu,Ol;function R0(){if(Ol)return eu;Ol=1;var a=typeof Symbol<"u"&&Symbol,i=O0();return eu=function(){return typeof a!="function"||typeof Symbol!="function"||typeof a("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:i()},eu}var nu,Rl;function ts(){return Rl||(Rl=1,nu=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),nu}var ru,Pl;function is(){if(Pl)return ru;Pl=1;var a=ns;return ru=a.getPrototypeOf||null,ru}var tu,Tl;function P0(){if(Tl)return tu;Tl=1;var a="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,o=Math.max,c="[object Function]",h=function(T,C){for(var P=[],$=0;$<T.length;$+=1)P[$]=T[$];for(var b=0;b<C.length;b+=1)P[b+T.length]=C[b];return P},m=function(T,C){for(var P=[],$=C,b=0;$<T.length;$+=1,b+=1)P[b]=T[$];return P},E=function(O,T){for(var C="",P=0;P<O.length;P+=1)C+=O[P],P+1<O.length&&(C+=T);return C};return tu=function(T){var C=this;if(typeof C!="function"||i.apply(C)!==c)throw new TypeError(a+C);for(var P=m(arguments,1),$,b=function(){if(this instanceof $){var fe=C.apply(this,h(P,arguments));return Object(fe)===fe?fe:this}return C.apply(T,h(P,arguments))},D=o(0,C.length-P.length),U=[],Q=0;Q<D;Q++)U[Q]="$"+Q;if($=Function("binder","return function ("+E(U,",")+"){ return binder.apply(this,arguments); }")(b),C.prototype){var V=function(){};V.prototype=C.prototype,$.prototype=new V,V.prototype=null}return $},tu}var iu,Cl;function mi(){if(Cl)return iu;Cl=1;var a=P0();return iu=Function.prototype.bind||a,iu}var ou,Il;function $u(){return Il||(Il=1,ou=Function.prototype.call),ou}var uu,$l;function os(){return $l||($l=1,uu=Function.prototype.apply),uu}var T0=typeof Reflect<"u"&&Reflect&&Reflect.apply,C0=mi(),I0=os(),$0=$u(),M0=T0,F0=M0||C0.call($0,I0),z0=mi(),L0=Dr,D0=$u(),N0=F0,us=function(i){if(i.length<1||typeof i[0]!="function")throw new L0("a function is required");return N0(z0,D0,i)},au,Ml;function B0(){if(Ml)return au;Ml=1;var a=us,i=rs,o;try{o=[].__proto__===Array.prototype}catch(E){if(!E||typeof E!="object"||!("code"in E)||E.code!=="ERR_PROTO_ACCESS")throw E}var c=!!o&&i&&i(Object.prototype,"__proto__"),h=Object,m=h.getPrototypeOf;return au=c&&typeof c.get=="function"?a([c.get]):typeof m=="function"?function(O){return m(O==null?O:h(O))}:!1,au}var fu,Fl;function W0(){if(Fl)return fu;Fl=1;var a=ts(),i=is(),o=B0();return fu=a?function(h){return a(h)}:i?function(h){if(!h||typeof h!="object"&&typeof h!="function")throw new TypeError("getProto: not an object");return i(h)}:o?function(h){return o(h)}:null,fu}var lu,zl;function U0(){if(zl)return lu;zl=1;var a=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=mi();return lu=o.call(a,i),lu}var J,q0=ns,G0=l0,H0=s0,K0=c0,Y0=p0,Lr=h0,$r=Dr,J0=g0,Z0=d0,X0=v0,Q0=y0,V0=_0,k0=m0,j0=S0,em=b0,as=Function,su=function(a){try{return as('"use strict"; return ('+a+").constructor;")()}catch{}},st=rs,nm=x0,cu=function(){throw new $r},rm=st?function(){try{return arguments.callee,cu}catch{try{return st(arguments,"callee").get}catch{return cu}}}():cu,Pr=R0()(),me=W0(),tm=is(),im=ts(),fs=os(),pt=$u(),Cr={},om=typeof Uint8Array>"u"||!me?J:me(Uint8Array),ar={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?J:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?J:ArrayBuffer,"%ArrayIteratorPrototype%":Pr&&me?me([][Symbol.iterator]()):J,"%AsyncFromSyncIteratorPrototype%":J,"%AsyncFunction%":Cr,"%AsyncGenerator%":Cr,"%AsyncGeneratorFunction%":Cr,"%AsyncIteratorPrototype%":Cr,"%Atomics%":typeof Atomics>"u"?J:Atomics,"%BigInt%":typeof BigInt>"u"?J:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?J:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?J:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?J:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":G0,"%eval%":eval,"%EvalError%":H0,"%Float16Array%":typeof Float16Array>"u"?J:Float16Array,"%Float32Array%":typeof Float32Array>"u"?J:Float32Array,"%Float64Array%":typeof Float64Array>"u"?J:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?J:FinalizationRegistry,"%Function%":as,"%GeneratorFunction%":Cr,"%Int8Array%":typeof Int8Array>"u"?J:Int8Array,"%Int16Array%":typeof Int16Array>"u"?J:Int16Array,"%Int32Array%":typeof Int32Array>"u"?J:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Pr&&me?me(me([][Symbol.iterator]())):J,"%JSON%":typeof JSON=="object"?JSON:J,"%Map%":typeof Map>"u"?J:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Pr||!me?J:me(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":q0,"%Object.getOwnPropertyDescriptor%":st,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?J:Promise,"%Proxy%":typeof Proxy>"u"?J:Proxy,"%RangeError%":K0,"%ReferenceError%":Y0,"%Reflect%":typeof Reflect>"u"?J:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?J:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Pr||!me?J:me(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?J:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Pr&&me?me(""[Symbol.iterator]()):J,"%Symbol%":Pr?Symbol:J,"%SyntaxError%":Lr,"%ThrowTypeError%":rm,"%TypedArray%":om,"%TypeError%":$r,"%Uint8Array%":typeof Uint8Array>"u"?J:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?J:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?J:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?J:Uint32Array,"%URIError%":J0,"%WeakMap%":typeof WeakMap>"u"?J:WeakMap,"%WeakRef%":typeof WeakRef>"u"?J:WeakRef,"%WeakSet%":typeof WeakSet>"u"?J:WeakSet,"%Function.prototype.call%":pt,"%Function.prototype.apply%":fs,"%Object.defineProperty%":nm,"%Object.getPrototypeOf%":tm,"%Math.abs%":Z0,"%Math.floor%":X0,"%Math.max%":Q0,"%Math.min%":V0,"%Math.pow%":k0,"%Math.round%":j0,"%Math.sign%":em,"%Reflect.getPrototypeOf%":im};if(me)try{null.error}catch(a){var um=me(me(a));ar["%Error.prototype%"]=um}var am=function a(i){var o;if(i==="%AsyncFunction%")o=su("async function () {}");else if(i==="%GeneratorFunction%")o=su("function* () {}");else if(i==="%AsyncGeneratorFunction%")o=su("async function* () {}");else if(i==="%AsyncGenerator%"){var c=a("%AsyncGeneratorFunction%");c&&(o=c.prototype)}else if(i==="%AsyncIteratorPrototype%"){var h=a("%AsyncGenerator%");h&&me&&(o=me(h.prototype))}return ar[i]=o,o},Ll={__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"]},ht=mi(),hi=U0(),fm=ht.call(pt,Array.prototype.concat),lm=ht.call(fs,Array.prototype.splice),Dl=ht.call(pt,String.prototype.replace),gi=ht.call(pt,String.prototype.slice),sm=ht.call(pt,RegExp.prototype.exec),cm=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pm=/\\(\\)?/g,hm=function(i){var o=gi(i,0,1),c=gi(i,-1);if(o==="%"&&c!=="%")throw new Lr("invalid intrinsic syntax, expected closing `%`");if(c==="%"&&o!=="%")throw new Lr("invalid intrinsic syntax, expected opening `%`");var h=[];return Dl(i,cm,function(m,E,O,T){h[h.length]=O?Dl(T,pm,"$1"):E||m}),h},gm=function(i,o){var c=i,h;if(hi(Ll,c)&&(h=Ll[c],c="%"+h[0]+"%"),hi(ar,c)){var m=ar[c];if(m===Cr&&(m=am(c)),typeof m>"u"&&!o)throw new $r("intrinsic "+i+" exists, but is not available. Please file an issue!");return{alias:h,name:c,value:m}}throw new Lr("intrinsic "+i+" does not exist!")},Mu=function(i,o){if(typeof i!="string"||i.length===0)throw new $r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new $r('"allowMissing" argument must be a boolean');if(sm(/^%?[^%]*%?$/,i)===null)throw new Lr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var c=hm(i),h=c.length>0?c[0]:"",m=gm("%"+h+"%",o),E=m.name,O=m.value,T=!1,C=m.alias;C&&(h=C[0],lm(c,fm([0,1],C)));for(var P=1,$=!0;P<c.length;P+=1){var b=c[P],D=gi(b,0,1),U=gi(b,-1);if((D==='"'||D==="'"||D==="`"||U==='"'||U==="'"||U==="`")&&D!==U)throw new Lr("property names with quotes must have matching quotes");if((b==="constructor"||!$)&&(T=!0),h+="."+b,E="%"+h+"%",hi(ar,E))O=ar[E];else if(O!=null){if(!(b in O)){if(!o)throw new $r("base intrinsic for "+i+" exists, but the property is not available.");return}if(st&&P+1>=c.length){var Q=st(O,b);$=!!Q,$&&"get"in Q&&!("originalValue"in Q.get)?O=Q.get:O=O[b]}else $=hi(O,b),O=O[b];$&&!T&&(ar[E]=O)}}return O},ls=Mu,ss=us,dm=ss([ls("%String.prototype.indexOf%")]),cs=function(i,o){var c=ls(i,!!o);return typeof c=="function"&&dm(i,".prototype.")>-1?ss([c]):c},vm=Mu,gt=cs,ym=yi,_m=Dr,Nl=vm("%Map%",!0),mm=gt("Map.prototype.get",!0),Sm=gt("Map.prototype.set",!0),Am=gt("Map.prototype.has",!0),wm=gt("Map.prototype.delete",!0),bm=gt("Map.prototype.size",!0),ps=!!Nl&&function(){var i,o={assert:function(c){if(!o.has(c))throw new _m("Side channel does not contain "+ym(c))},delete:function(c){if(i){var h=wm(i,c);return bm(i)===0&&(i=void 0),h}return!1},get:function(c){if(i)return mm(i,c)},has:function(c){return i?Am(i,c):!1},set:function(c,h){i||(i=new Nl),Sm(i,c,h)}};return o},Em=Mu,Si=cs,xm=yi,oi=ps,Om=Dr,Tr=Em("%WeakMap%",!0),Rm=Si("WeakMap.prototype.get",!0),Pm=Si("WeakMap.prototype.set",!0),Tm=Si("WeakMap.prototype.has",!0),Cm=Si("WeakMap.prototype.delete",!0),Im=Tr?function(){var i,o,c={assert:function(h){if(!c.has(h))throw new Om("Side channel does not contain "+xm(h))},delete:function(h){if(Tr&&h&&(typeof h=="object"||typeof h=="function")){if(i)return Cm(i,h)}else if(oi&&o)return o.delete(h);return!1},get:function(h){return Tr&&h&&(typeof h=="object"||typeof h=="function")&&i?Rm(i,h):o&&o.get(h)},has:function(h){return Tr&&h&&(typeof h=="object"||typeof h=="function")&&i?Tm(i,h):!!o&&o.has(h)},set:function(h,m){Tr&&h&&(typeof h=="object"||typeof h=="function")?(i||(i=new Tr),Pm(i,h,m)):oi&&(o||(o=oi()),o.set(h,m))}};return c}:oi,$m=Dr,Mm=yi,Fm=f0,zm=ps,Lm=Im,Dm=Lm||zm||Fm,hs=function(){var i,o={assert:function(c){if(!o.has(c))throw new $m("Side channel does not contain "+Mm(c))},delete:function(c){return!!i&&i.delete(c)},get:function(c){return i&&i.get(c)},has:function(c){return!!i&&i.has(c)},set:function(c,h){i||(i=Dm()),i.set(c,h)}};return o},Nm=String.prototype.replace,Bm=/%20/g,Bl={RFC1738:"RFC1738",RFC3986:"RFC3986"},gs={default:Bl.RFC3986,formatters:{RFC1738:function(a){return Nm.call(a,Bm,"+")},RFC3986:function(a){return String(a)}},RFC1738:Bl.RFC1738},Wm=gs,Um=hs,pu=Object.prototype.hasOwnProperty,or=Array.isArray,Ai=Um(),Ir=function(i,o){return Ai.set(i,o),i},ur=function(i){return Ai.has(i)},it=function(i){return Ai.get(i)},xu=function(i,o){Ai.set(i,o)},vn=function(){for(var a=[],i=0;i<256;++i)a[a.length]="%"+((i<16?"0":"")+i.toString(16)).toUpperCase();return a}(),qm=function(i){for(;i.length>1;){var o=i.pop(),c=o.obj[o.prop];if(or(c)){for(var h=[],m=0;m<c.length;++m)typeof c[m]<"u"&&(h[h.length]=c[m]);o.obj[o.prop]=h}}},ft=function(i,o){for(var c=o&&o.plainObjects?{__proto__:null}:{},h=0;h<i.length;++h)typeof i[h]<"u"&&(c[h]=i[h]);return c},Gm=function a(i,o,c){if(!o)return i;if(typeof o!="object"&&typeof o!="function"){if(or(i)){var h=i.length;if(c&&typeof c.arrayLimit=="number"&&h>c.arrayLimit)return Ir(ft(i.concat(o),c),h);i[h]=o}else if(i&&typeof i=="object")if(ur(i)){var m=it(i)+1;i[m]=o,xu(i,m)}else(c&&(c.plainObjects||c.allowPrototypes)||!pu.call(Object.prototype,o))&&(i[o]=!0);else return[i,o];return i}if(!i||typeof i!="object"){if(ur(o)){for(var E=Object.keys(o),O=c&&c.plainObjects?{__proto__:null,0:i}:{0:i},T=0;T<E.length;T++){var C=parseInt(E[T],10);O[C+1]=o[E[T]]}return Ir(O,it(o)+1)}var P=[i].concat(o);return c&&typeof c.arrayLimit=="number"&&P.length>c.arrayLimit?Ir(ft(P,c),P.length-1):P}var $=i;return or(i)&&!or(o)&&($=ft(i,c)),or(i)&&or(o)?(o.forEach(function(b,D){if(pu.call(i,D)){var U=i[D];U&&typeof U=="object"&&b&&typeof b=="object"?i[D]=a(U,b,c):i[i.length]=b}else i[D]=b}),i):Object.keys(o).reduce(function(b,D){var U=o[D];if(pu.call(b,D)?b[D]=a(b[D],U,c):b[D]=U,ur(o)&&!ur(b)&&Ir(b,it(o)),ur(b)){var Q=parseInt(D,10);String(Q)===D&&Q>=0&&Q>it(b)&&xu(b,Q)}return b},$)},Hm=function(i,o){return Object.keys(o).reduce(function(c,h){return c[h]=o[h],c},i)},Km=function(a,i,o){var c=a.replace(/\+/g," ");if(o==="iso-8859-1")return c.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(c)}catch{return c}},hu=1024,Ym=function(i,o,c,h,m){if(i.length===0)return i;var E=i;if(typeof i=="symbol"?E=Symbol.prototype.toString.call(i):typeof i!="string"&&(E=String(i)),c==="iso-8859-1")return escape(E).replace(/%u[0-9a-f]{4}/gi,function(D){return"%26%23"+parseInt(D.slice(2),16)+"%3B"});for(var O="",T=0;T<E.length;T+=hu){for(var C=E.length>=hu?E.slice(T,T+hu):E,P=[],$=0;$<C.length;++$){var b=C.charCodeAt($);if(b===45||b===46||b===95||b===126||b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||m===Wm.RFC1738&&(b===40||b===41)){P[P.length]=C.charAt($);continue}if(b<128){P[P.length]=vn[b];continue}if(b<2048){P[P.length]=vn[192|b>>6]+vn[128|b&63];continue}if(b<55296||b>=57344){P[P.length]=vn[224|b>>12]+vn[128|b>>6&63]+vn[128|b&63];continue}$+=1,b=65536+((b&1023)<<10|C.charCodeAt($)&1023),P[P.length]=vn[240|b>>18]+vn[128|b>>12&63]+vn[128|b>>6&63]+vn[128|b&63]}O+=P.join("")}return O},Jm=function(i){for(var o=[{obj:{o:i},prop:"o"}],c=[],h=0;h<o.length;++h)for(var m=o[h],E=m.obj[m.prop],O=Object.keys(E),T=0;T<O.length;++T){var C=O[T],P=E[C];typeof P=="object"&&P!==null&&c.indexOf(P)===-1&&(o[o.length]={obj:E,prop:C},c[c.length]=P)}return qm(o),i},Zm=function(i){return Object.prototype.toString.call(i)==="[object RegExp]"},Xm=function(i){return!i||typeof i!="object"?!1:!!(i.constructor&&i.constructor.isBuffer&&i.constructor.isBuffer(i))},Qm=function(i,o,c,h){if(ur(i)){var m=it(i)+1;return i[m]=o,xu(i,m),i}var E=[].concat(i,o);return E.length>c?Ir(ft(E,{plainObjects:h}),E.length-1):E},Vm=function(i,o){if(or(i)){for(var c=[],h=0;h<i.length;h+=1)c[c.length]=o(i[h]);return c}return o(i)},km={arrayToObject:ft,assign:Hm,combine:Qm,compact:Jm,decode:Km,encode:Ym,isBuffer:Xm,isOverflow:ur,isRegExp:Zm,markOverflow:Ir,maybeMap:Vm,merge:Gm},ds=hs,fi=km,lt=gs,jm=Object.prototype.hasOwnProperty,vs={brackets:function(i){return i+"[]"},comma:"comma",indices:function(i,o){return i+"["+o+"]"},repeat:function(i){return i}},yn=Array.isArray,e1=Array.prototype.push,ys=function(a,i){e1.apply(a,yn(i)?i:[i])},n1=Date.prototype.toISOString,Wl=lt.default,ve={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:fi.encode,encodeValuesOnly:!1,filter:void 0,format:Wl,formatter:lt.formatters[Wl],indices:!1,serializeDate:function(i){return n1.call(i)},skipNulls:!1,strictNullHandling:!1},r1=function(i){return typeof i=="string"||typeof i=="number"||typeof i=="boolean"||typeof i=="symbol"||typeof i=="bigint"},gu={},t1=function a(i,o,c,h,m,E,O,T,C,P,$,b,D,U,Q,V,fe,Re){for(var F=i,k=Re,x=0,Se=!1;(k=k.get(gu))!==void 0&&!Se;){var ye=k.get(i);if(x+=1,typeof ye<"u"){if(ye===x)throw new RangeError("Cyclic object value");Se=!0}typeof k.get(gu)>"u"&&(x=0)}if(typeof P=="function"?F=P(o,F):F instanceof Date?F=D(F):c==="comma"&&yn(F)&&(F=fi.maybeMap(F,function(un){return un instanceof Date?D(un):un})),F===null){if(E)return C&&!V?C(o,ve.encoder,fe,"key",U):o;F=""}if(r1(F)||fi.isBuffer(F)){if(C){var Je=V?o:C(o,ve.encoder,fe,"key",U);return[Q(Je)+"="+Q(C(F,ve.encoder,fe,"value",U))]}return[Q(o)+"="+Q(String(F))]}var Le=[];if(typeof F>"u")return Le;var Ze;if(c==="comma"&&yn(F))V&&C&&(F=fi.maybeMap(F,C)),Ze=[{value:F.length>0?F.join(",")||null:void 0}];else if(yn(P))Ze=P;else{var $n=Object.keys(F);Ze=$?$n.sort($):$n}var pn=T?String(o).replace(/\./g,"%2E"):String(o),Pe=h&&yn(F)&&F.length===1?pn+"[]":pn;if(m&&yn(F)&&F.length===0)return Pe+"[]";for(var De=0;De<Ze.length;++De){var Ne=Ze[De],mn=typeof Ne=="object"&&Ne&&typeof Ne.value<"u"?Ne.value:F[Ne];if(!(O&&mn===null)){var Be=b&&T?String(Ne).replace(/\./g,"%2E"):String(Ne),We=yn(F)?typeof c=="function"?c(Pe,Be):Pe:Pe+(b?"."+Be:"["+Be+"]");Re.set(i,x);var lr=ds();lr.set(gu,Re),ys(Le,a(mn,We,c,h,m,E,O,T,c==="comma"&&V&&yn(F)?null:C,P,$,b,D,U,Q,V,fe,lr))}}return Le},i1=function(i){if(!i)return ve;if(typeof i.allowEmptyArrays<"u"&&typeof i.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof i.encodeDotInKeys<"u"&&typeof i.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(i.encoder!==null&&typeof i.encoder<"u"&&typeof i.encoder!="function")throw new TypeError("Encoder has to be a function.");var o=i.charset||ve.charset;if(typeof i.charset<"u"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var c=lt.default;if(typeof i.format<"u"){if(!jm.call(lt.formatters,i.format))throw new TypeError("Unknown format option provided.");c=i.format}var h=lt.formatters[c],m=ve.filter;(typeof i.filter=="function"||yn(i.filter))&&(m=i.filter);var E;if(i.arrayFormat in vs?E=i.arrayFormat:"indices"in i?E=i.indices?"indices":"repeat":E=ve.arrayFormat,"commaRoundTrip"in i&&typeof i.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var O=typeof i.allowDots>"u"?i.encodeDotInKeys===!0?!0:ve.allowDots:!!i.allowDots;return{addQueryPrefix:typeof i.addQueryPrefix=="boolean"?i.addQueryPrefix:ve.addQueryPrefix,allowDots:O,allowEmptyArrays:typeof i.allowEmptyArrays=="boolean"?!!i.allowEmptyArrays:ve.allowEmptyArrays,arrayFormat:E,charset:o,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:ve.charsetSentinel,commaRoundTrip:!!i.commaRoundTrip,delimiter:typeof i.delimiter>"u"?ve.delimiter:i.delimiter,encode:typeof i.encode=="boolean"?i.encode:ve.encode,encodeDotInKeys:typeof i.encodeDotInKeys=="boolean"?i.encodeDotInKeys:ve.encodeDotInKeys,encoder:typeof i.encoder=="function"?i.encoder:ve.encoder,encodeValuesOnly:typeof i.encodeValuesOnly=="boolean"?i.encodeValuesOnly:ve.encodeValuesOnly,filter:m,format:c,formatter:h,serializeDate:typeof i.serializeDate=="function"?i.serializeDate:ve.serializeDate,skipNulls:typeof i.skipNulls=="boolean"?i.skipNulls:ve.skipNulls,sort:typeof i.sort=="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:ve.strictNullHandling}},o1=function(a,i){var o=a,c=i1(i),h,m;typeof c.filter=="function"?(m=c.filter,o=m("",o)):yn(c.filter)&&(m=c.filter,h=m);var E=[];if(typeof o!="object"||o===null)return"";var O=vs[c.arrayFormat],T=O==="comma"&&c.commaRoundTrip;h||(h=Object.keys(o)),c.sort&&h.sort(c.sort);for(var C=ds(),P=0;P<h.length;++P){var $=h[P],b=o[$];c.skipNulls&&b===null||ys(E,t1(b,$,O,T,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,C))}var D=E.join(c.delimiter),U=c.addQueryPrefix===!0?"?":"";return c.charsetSentinel&&(c.charset==="iso-8859-1"?U+="utf8=%26%2310003%3B&":U+="utf8=%E2%9C%93&"),D.length>0?U+D:""},u1=o1,du={stringify:u1};const a1=v.z.object({entryLabel:v.z.record(v.z.array(v.z.string())),approvalFlow:v.z.array(v.z.string()),blockedAuthorProps:v.z.array(v.z.string()),reportReasons:v.z.record(v.z.string()),regex:v.z.object({uid:v.z.string(),relatedUid:v.z.string(),email:v.z.string(),sorting:v.z.string()}),enabledCollections:v.z.array(v.z.string()),moderatorRoles:v.z.array(v.z.string()),isGQLPluginEnabled:v.z.boolean(),badWords:v.z.boolean().nullable().optional(),gql:v.z.object({auth:v.z.boolean().nullable()}).optional(),client:v.z.object({url:v.z.string().nullable(),contactEmail:v.z.string().nullable()}).default({url:null,contactEmail:null})}),_s=v.z.intersection(v.z.object({id:v.z.number(),uid:v.z.string(),documentId:v.z.string(),createdAt:v.z.string(),updatedAt:v.z.string(),publishedAt:v.z.string().nullable(),locale:v.z.string().nullable().optional()}),v.z.record(v.z.unknown())),f1=v.z.object({id:v.z.union([v.z.number(),v.z.string()]).optional().nullable(),name:v.z.string().optional().nullable(),email:v.z.string().optional().nullable(),avatar:v.z.union([v.z.object({url:v.z.string()}),v.z.object({url:v.z.string(),formats:v.z.object({thumbnail:v.z.object({url:v.z.string()}).nullable()})}),v.z.string()]).nullable().optional()}),ms=v.z.union([v.z.literal(Cn.PENDING),v.z.literal(Cn.APPROVED),v.z.literal(Cn.REJECTED),v.z.literal(Cn.BLOCKED),v.z.literal(Cn.OPEN),v.z.literal(Cn.REMOVED),v.z.literal(Cn.TO_REVIEW),v.z.literal(Cn.UNKNOWN)]),l1=v.z.object({id:v.z.number(),reason:v.z.string().optional().nullable(),content:v.z.string(),resolved:v.z.boolean(),createdAt:v.z.string(),updatedAt:v.z.string().nullable()}),di=v.z.object({id:v.z.number(),content:v.z.string(),blocked:v.z.boolean().nullable(),blockedThread:v.z.boolean().nullable(),blockReason:v.z.string().nullable(),isAdminComment:v.z.boolean().nullable(),removed:v.z.boolean().nullable(),approvalStatus:ms.nullable(),createdAt:v.z.string(),updatedAt:v.z.string(),reports:v.z.array(l1).nullable().optional(),author:f1.nullable().optional(),gotThread:v.z.boolean().nullable().optional(),threadFirstItemId:v.z.number().nullable().optional()}),Ss=v.z.object({page:v.z.number(),pageSize:v.z.number(),pageCount:v.z.number(),total:v.z.number()});function Ou(){return di.extend({related:_s.optional(),documentId:v.z.string(),threadOf:v.z.lazy(()=>di.merge(v.z.object({related:v.z.string(),threadOf:As.nullable().optional(),documentId:v.z.string().optional()}))).nullable().optional()})}const As=Ou(),s1=v.z.object({pagination:Ss,result:v.z.array(As)}),c1=v.z.object({entity:_s,selected:di.merge(v.z.object({related:v.z.string(),threadOf:Ou().omit({related:!0}).merge(v.z.object({related:v.z.string()})).nullable().optional()})).nullable(),level:v.z.array(Ou().omit({threadOf:!0,related:!0}))}),ws=v.z.object({apiID:v.z.string(),uid:v.z.string(),schema:v.z.object({attributes:v.z.record(v.z.object({type:v.z.union([v.z.literal("string"),v.z.string()])})),collectionName:v.z.string(),description:v.z.string(),displayName:v.z.string(),draftAndPublish:v.z.boolean(),kind:v.z.string(),pluralName:v.z.string(),singularName:v.z.string(),visible:v.z.boolean()})}),p1=v.z.object({data:ws}),h1=v.z.object({data:v.z.array(ws)}),g1=v.z.object({author:v.z.unknown(),content:v.z.string(),id:v.z.number(),approvalStatus:ms.nullable().optional(),reason:v.z.string().optional().nullable(),reports:v.z.array(v.z.unknown()),resolved:v.z.boolean().optional(),updatedAt:v.z.string().nullable(),createdAt:v.z.string(),related:di}),d1=v.z.object({pagination:Ss,result:v.z.array(g1)}),v1=v.z.object({id:v.z.number(),documentId:v.z.string(),name:v.z.string(),code:v.z.string(),description:v.z.string(),createdAt:v.z.string(),updatedAt:v.z.string(),publishedAt:v.z.string(),locale:v.z.string().nullable(),usersCount:v.z.number()}),y1=v.z.object({data:v.z.array(v1)}),_1=v.z.object({data:v.z.object({id:v.z.number(),documentId:v.z.string(),firstname:v.z.string(),lastname:v.z.string().nullable(),username:v.z.string().nullable(),email:v.z.string(),isActive:v.z.boolean(),blocked:v.z.boolean(),preferedLanguage:v.z.string().nullable(),createdAt:v.z.string(),updatedAt:v.z.string(),publishedAt:v.z.string(),locale:v.z.null(),roles:v.z.array(v.z.object({id:v.z.number(),name:v.z.string(),description:v.z.string(),code:v.z.string()}))})}),ie="comments",m1=mu.once(a=>({config:{getKey(){return[ie,"config"]},async query(){const i=await a.get(`/${ie}/settings/config`);return a1.parseAsync(i.data)}},contentTypeBuilder:{single:{getKey(i,o){return[ie,"moderate","content-type",o,i]},async query(i){const o=await a.get(`/content-type-builder/content-types/${i}`);return p1.parseAsync(o.data).then(c=>c.data)}},all:{getKey(){return[ie,"moderate","content-types"]},async query(){const i=await a.get("/content-type-builder/content-types");return h1.parseAsync(i.data).then(o=>o.data)}}},roles:{getKey(){return[ie,"moderate","roles"]},async query(){const i=await a.get("/admin/roles");return y1.parseAsync(i.data).then(o=>o.data)}},user:{getKey(){return[ie,"moderate","user"]},async query(){const i=await a.get("/admin/users/me");return _1.parseAsync(i.data).then(o=>o.data)}},comments:{findAll:{getKey(i){return[ie,"moderate","all",i?JSON.stringify(i):void 0].filter(Boolean)},async query(i){const o=await a.get(`/${ie}/moderate/all?${du.stringify(i,{encode:!1})}`);return s1.parseAsync(o.data)}},findOne:{getKey(i,o){return[ie,"details",i?.toString(),o?JSON.stringify(o):void 0].filter(Boolean)},async query(i,o){const c=mu.isEmpty(o)?"":`?${du.stringify(o,{encode:!1})}`,h=await a.get(`/${ie}/moderate/single/${i}${c}`);return c1.parseAsync(h.data)}},approve(i){return a.put(`/${ie}/moderate/single/${i}/approve`)},reject(i){return a.put(`/${ie}/moderate/single/${i}/reject`)},block(i){return a.put(`/${ie}/moderate/single/${i}/block`)},unblock(i){return a.put(`/${ie}/moderate/single/${i}/unblock`)},blockThread(i){return a.put(`/${ie}/moderate/thread/${i}/block`)},unBlockThread(i){return a.put(`/${ie}/moderate/thread/${i}/unblock`)},delete(i){return a.del(`/${ie}/moderate/single/${i}/delete`)},postComment({id:i,content:o,author:c}){return a.post(`/${ie}/moderate/thread/${i}/postComment`,{content:o,author:c})},updateComment({id:i,content:o}){return a.put(`/${ie}/moderate/single/${i}/update`,{content:o})}},reports:{findAll:{getKey(i){return[ie,"moderate","reports",i?JSON.stringify(i):void 0].filter(Boolean)},async query(i){const o=await a.get(`/${ie}/moderate/reports${i?`?${du.stringify(i,{encode:!1})}`:""}`);return d1.parseAsync(o.data)}},resolve({id:i,reportId:o}){return a.put(`/${ie}/moderate/single/${i}/report/${o}/resolve`)},resolveMultipleReports({reportIds:i}){return a.put(`/${ie}/moderate/multiple/report/resolve`,{reportIds:i})},resolveCommentMultipleReports({id:i,reportIds:o}){return a.put(`/${ie}/moderate/single/${i}/report/resolve`,{reportIds:o})},resolveAllAbuseReportsForComment(i){return a.put(`/${ie}/moderate/all/${i}/report/resolve`)},resolveAllAbuseReportsForThread(i){return a.put(`/${ie}/moderate/all/${i}/report/resolve-thread`)}},settings:{update(i){return a.put(`/${ie}/settings/config`,i)},restore(){return a.del(`/${ie}/settings/config`)},restart(){return a.post(`/${ie}/settings/restart`)}}})),bs=()=>{const a=Ul.getFetchClient();return Mr.useMemo(()=>m1(a),[a])},Es=Mr.createContext(null),S1=({children:a})=>{const i=bs(),{data:o}=Ru.useQuery({queryKey:i.user.getKey(),queryFn:i.user.query});return o?be.jsx(Es.Provider,{value:o,children:a}):null},A1=new Ru.QueryClient({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}}),w1=({children:a})=>be.jsx(Ru.QueryClientProvider,{client:A1,children:be.jsx(S1,{children:a})}),b1=()=>{const a=Mr.useMemo(()=>({access:tr.pluginPermissions.access,moderate:tr.pluginPermissions.moderate,accessReports:tr.pluginPermissions.reports,reviewReports:tr.pluginPermissions.reportsReview,settings:tr.pluginPermissions.settings,settingsChange:tr.pluginPermissions.settingsChange}),[]),{isLoading:i,allowedActions:{canCommentsModerate:o,canCommentsRead:c,canReportsRead:h,canSettingsChange:m,canSettingsRead:E,canReportsReview:O}}=Ul.useRBAC(a);return{isLoadingForPermissions:i,canAccess:c||h||E,canModerate:o,canAccessReports:h,canReviewReports:O,canSettings:E,canSettingsChange:m}},E1=({title:a,onConfirm:i,Trigger:o,labelConfirm:c,iconConfirm:h,labelCancel:m,children:E})=>{const[O,T]=Mr.useState(!1),[C,P]=Mr.useState(!1),$=()=>T(D=>!D),b=async()=>{P(!0),await i(),P(!1),$()};return be.jsxs(on.Dialog.Root,{open:O,children:[be.jsx(on.Dialog.Trigger,{children:be.jsx(o,{onClick:$})}),be.jsxs(on.Dialog.Content,{children:[be.jsx(on.Dialog.Header,{children:a}),be.jsx(on.Dialog.Body,{children:be.jsxs(on.Flex,{justifyContent:"center",direction:"column",children:[be.jsx(f_.WarningCircle,{fill:"danger500",stroke:"danger500",height:"24",width:"24"}),be.jsx(on.Typography,{id:"confirm-description",children:E})]})}),be.jsxs(on.Dialog.Footer,{children:[be.jsx(on.Dialog.Cancel,{children:be.jsx(on.Button,{onClick:$,disabled:C,variant:"tertiary",children:m||"Cancel"})}),be.jsx(on.Dialog.Action,{children:be.jsx(on.Button,{onClick:b,variant:"danger-light",loading:C,disabled:C,startIcon:h,children:c})})]})]})]})};exports.COMMENT_STATUS=Cn;exports.CommonProviders=w1;exports.ConfirmationDialog=E1;exports.REPORT_REASON=Jl;exports.REPORT_STATUS=E_;exports.UserContext=Es;exports.getDefaultExportFromCjs=s_;exports.getMessage=b_;exports.lodashExports=mu;exports.useAPI=bs;exports.useIntl=vi;exports.usePermissions=b1;
44
+ `+i.prev}function ii(a,i){var o=bu(a),c=[];if(o){c.length=a.length;for(var h=0;h<a.length;h++)c[h]=In(a,h)?i(a[h],a):""}var m=typeof Vo=="function"?Vo(a):[],E;if(zr){E={};for(var O=0;O<m.length;O++)E["$"+m[O]]=m[O]}for(var T in a)In(a,T)&&(o&&String(Number(T))===T&&T<a.length||zr&&E["$"+T]instanceof Symbol||(Zl.call(/[^\w$]/,T)?c.push(i(T,a)+": "+i(a[T],a)):c.push(T+": "+i(a[T],a))));if(typeof Vo=="function")for(var C=0;C<m.length;C++)Xl.call(a,m[C])&&c.push("["+i(m[C])+"]: "+i(a[m[C]],a));return c}var r0=yi,t0=Dr,_i=function(a,i,o){for(var c=a,h;(h=c.next)!=null;c=h)if(h.key===i)return c.next=h.next,o||(h.next=a.next,a.next=h),h},i0=function(a,i){if(a){var o=_i(a,i);return o&&o.value}},o0=function(a,i,o){var c=_i(a,i);c?c.value=o:a.next={key:i,next:a.next,value:o}},u0=function(a,i){return a?!!_i(a,i):!1},a0=function(a,i){if(a)return _i(a,i,!0)},f0=function(){var i,o={assert:function(c){if(!o.has(c))throw new t0("Side channel does not contain "+r0(c))},delete:function(c){var h=i&&i.next,m=a0(i,c);return m&&h&&h===m&&(i=void 0),!!m},get:function(c){return i0(i,c)},has:function(c){return u0(i,c)},set:function(c,h){i||(i={next:void 0}),o0(i,c,h)}};return o},ns=Object,l0=Error,s0=EvalError,c0=RangeError,p0=ReferenceError,h0=SyntaxError,g0=URIError,d0=Math.abs,v0=Math.floor,y0=Math.max,_0=Math.min,m0=Math.pow,S0=Math.round,A0=Number.isNaN||function(i){return i!==i},w0=A0,b0=function(i){return w0(i)||i===0?i:i<0?-1:1},E0=Object.getOwnPropertyDescriptor,ui=E0;if(ui)try{ui([],"length")}catch{ui=null}var rs=ui,ai=Object.defineProperty||!1;if(ai)try{ai({},"a",{value:1})}catch{ai=!1}var x0=ai,jo,xl;function O0(){return xl||(xl=1,jo=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var i={},o=Symbol("test"),c=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(c)!=="[object Symbol]")return!1;var h=42;i[o]=h;for(var m in i)return!1;if(typeof Object.keys=="function"&&Object.keys(i).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(i).length!==0)return!1;var E=Object.getOwnPropertySymbols(i);if(E.length!==1||E[0]!==o||!Object.prototype.propertyIsEnumerable.call(i,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var O=Object.getOwnPropertyDescriptor(i,o);if(O.value!==h||O.enumerable!==!0)return!1}return!0}),jo}var eu,Ol;function R0(){if(Ol)return eu;Ol=1;var a=typeof Symbol<"u"&&Symbol,i=O0();return eu=function(){return typeof a!="function"||typeof Symbol!="function"||typeof a("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:i()},eu}var nu,Rl;function ts(){return Rl||(Rl=1,nu=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),nu}var ru,Pl;function is(){if(Pl)return ru;Pl=1;var a=ns;return ru=a.getPrototypeOf||null,ru}var tu,Tl;function P0(){if(Tl)return tu;Tl=1;var a="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,o=Math.max,c="[object Function]",h=function(T,C){for(var P=[],$=0;$<T.length;$+=1)P[$]=T[$];for(var b=0;b<C.length;b+=1)P[b+T.length]=C[b];return P},m=function(T,C){for(var P=[],$=C,b=0;$<T.length;$+=1,b+=1)P[b]=T[$];return P},E=function(O,T){for(var C="",P=0;P<O.length;P+=1)C+=O[P],P+1<O.length&&(C+=T);return C};return tu=function(T){var C=this;if(typeof C!="function"||i.apply(C)!==c)throw new TypeError(a+C);for(var P=m(arguments,1),$,b=function(){if(this instanceof $){var fe=C.apply(this,h(P,arguments));return Object(fe)===fe?fe:this}return C.apply(T,h(P,arguments))},D=o(0,C.length-P.length),U=[],Q=0;Q<D;Q++)U[Q]="$"+Q;if($=Function("binder","return function ("+E(U,",")+"){ return binder.apply(this,arguments); }")(b),C.prototype){var V=function(){};V.prototype=C.prototype,$.prototype=new V,V.prototype=null}return $},tu}var iu,Cl;function mi(){if(Cl)return iu;Cl=1;var a=P0();return iu=Function.prototype.bind||a,iu}var ou,Il;function $u(){return Il||(Il=1,ou=Function.prototype.call),ou}var uu,$l;function os(){return $l||($l=1,uu=Function.prototype.apply),uu}var T0=typeof Reflect<"u"&&Reflect&&Reflect.apply,C0=mi(),I0=os(),$0=$u(),M0=T0,F0=M0||C0.call($0,I0),z0=mi(),L0=Dr,D0=$u(),N0=F0,us=function(i){if(i.length<1||typeof i[0]!="function")throw new L0("a function is required");return N0(z0,D0,i)},au,Ml;function B0(){if(Ml)return au;Ml=1;var a=us,i=rs,o;try{o=[].__proto__===Array.prototype}catch(E){if(!E||typeof E!="object"||!("code"in E)||E.code!=="ERR_PROTO_ACCESS")throw E}var c=!!o&&i&&i(Object.prototype,"__proto__"),h=Object,m=h.getPrototypeOf;return au=c&&typeof c.get=="function"?a([c.get]):typeof m=="function"?function(O){return m(O==null?O:h(O))}:!1,au}var fu,Fl;function W0(){if(Fl)return fu;Fl=1;var a=ts(),i=is(),o=B0();return fu=a?function(h){return a(h)}:i?function(h){if(!h||typeof h!="object"&&typeof h!="function")throw new TypeError("getProto: not an object");return i(h)}:o?function(h){return o(h)}:null,fu}var lu,zl;function U0(){if(zl)return lu;zl=1;var a=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=mi();return lu=o.call(a,i),lu}var J,q0=ns,G0=l0,H0=s0,K0=c0,Y0=p0,Lr=h0,$r=Dr,J0=g0,Z0=d0,X0=v0,Q0=y0,V0=_0,k0=m0,j0=S0,em=b0,as=Function,su=function(a){try{return as('"use strict"; return ('+a+").constructor;")()}catch{}},st=rs,nm=x0,cu=function(){throw new $r},rm=st?function(){try{return arguments.callee,cu}catch{try{return st(arguments,"callee").get}catch{return cu}}}():cu,Pr=R0()(),me=W0(),tm=is(),im=ts(),fs=os(),pt=$u(),Cr={},om=typeof Uint8Array>"u"||!me?J:me(Uint8Array),ar={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?J:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?J:ArrayBuffer,"%ArrayIteratorPrototype%":Pr&&me?me([][Symbol.iterator]()):J,"%AsyncFromSyncIteratorPrototype%":J,"%AsyncFunction%":Cr,"%AsyncGenerator%":Cr,"%AsyncGeneratorFunction%":Cr,"%AsyncIteratorPrototype%":Cr,"%Atomics%":typeof Atomics>"u"?J:Atomics,"%BigInt%":typeof BigInt>"u"?J:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?J:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?J:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?J:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":G0,"%eval%":eval,"%EvalError%":H0,"%Float16Array%":typeof Float16Array>"u"?J:Float16Array,"%Float32Array%":typeof Float32Array>"u"?J:Float32Array,"%Float64Array%":typeof Float64Array>"u"?J:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?J:FinalizationRegistry,"%Function%":as,"%GeneratorFunction%":Cr,"%Int8Array%":typeof Int8Array>"u"?J:Int8Array,"%Int16Array%":typeof Int16Array>"u"?J:Int16Array,"%Int32Array%":typeof Int32Array>"u"?J:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Pr&&me?me(me([][Symbol.iterator]())):J,"%JSON%":typeof JSON=="object"?JSON:J,"%Map%":typeof Map>"u"?J:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Pr||!me?J:me(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":q0,"%Object.getOwnPropertyDescriptor%":st,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?J:Promise,"%Proxy%":typeof Proxy>"u"?J:Proxy,"%RangeError%":K0,"%ReferenceError%":Y0,"%Reflect%":typeof Reflect>"u"?J:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?J:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Pr||!me?J:me(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?J:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Pr&&me?me(""[Symbol.iterator]()):J,"%Symbol%":Pr?Symbol:J,"%SyntaxError%":Lr,"%ThrowTypeError%":rm,"%TypedArray%":om,"%TypeError%":$r,"%Uint8Array%":typeof Uint8Array>"u"?J:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?J:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?J:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?J:Uint32Array,"%URIError%":J0,"%WeakMap%":typeof WeakMap>"u"?J:WeakMap,"%WeakRef%":typeof WeakRef>"u"?J:WeakRef,"%WeakSet%":typeof WeakSet>"u"?J:WeakSet,"%Function.prototype.call%":pt,"%Function.prototype.apply%":fs,"%Object.defineProperty%":nm,"%Object.getPrototypeOf%":tm,"%Math.abs%":Z0,"%Math.floor%":X0,"%Math.max%":Q0,"%Math.min%":V0,"%Math.pow%":k0,"%Math.round%":j0,"%Math.sign%":em,"%Reflect.getPrototypeOf%":im};if(me)try{null.error}catch(a){var um=me(me(a));ar["%Error.prototype%"]=um}var am=function a(i){var o;if(i==="%AsyncFunction%")o=su("async function () {}");else if(i==="%GeneratorFunction%")o=su("function* () {}");else if(i==="%AsyncGeneratorFunction%")o=su("async function* () {}");else if(i==="%AsyncGenerator%"){var c=a("%AsyncGeneratorFunction%");c&&(o=c.prototype)}else if(i==="%AsyncIteratorPrototype%"){var h=a("%AsyncGenerator%");h&&me&&(o=me(h.prototype))}return ar[i]=o,o},Ll={__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"]},ht=mi(),hi=U0(),fm=ht.call(pt,Array.prototype.concat),lm=ht.call(fs,Array.prototype.splice),Dl=ht.call(pt,String.prototype.replace),gi=ht.call(pt,String.prototype.slice),sm=ht.call(pt,RegExp.prototype.exec),cm=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pm=/\\(\\)?/g,hm=function(i){var o=gi(i,0,1),c=gi(i,-1);if(o==="%"&&c!=="%")throw new Lr("invalid intrinsic syntax, expected closing `%`");if(c==="%"&&o!=="%")throw new Lr("invalid intrinsic syntax, expected opening `%`");var h=[];return Dl(i,cm,function(m,E,O,T){h[h.length]=O?Dl(T,pm,"$1"):E||m}),h},gm=function(i,o){var c=i,h;if(hi(Ll,c)&&(h=Ll[c],c="%"+h[0]+"%"),hi(ar,c)){var m=ar[c];if(m===Cr&&(m=am(c)),typeof m>"u"&&!o)throw new $r("intrinsic "+i+" exists, but is not available. Please file an issue!");return{alias:h,name:c,value:m}}throw new Lr("intrinsic "+i+" does not exist!")},Mu=function(i,o){if(typeof i!="string"||i.length===0)throw new $r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new $r('"allowMissing" argument must be a boolean');if(sm(/^%?[^%]*%?$/,i)===null)throw new Lr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var c=hm(i),h=c.length>0?c[0]:"",m=gm("%"+h+"%",o),E=m.name,O=m.value,T=!1,C=m.alias;C&&(h=C[0],lm(c,fm([0,1],C)));for(var P=1,$=!0;P<c.length;P+=1){var b=c[P],D=gi(b,0,1),U=gi(b,-1);if((D==='"'||D==="'"||D==="`"||U==='"'||U==="'"||U==="`")&&D!==U)throw new Lr("property names with quotes must have matching quotes");if((b==="constructor"||!$)&&(T=!0),h+="."+b,E="%"+h+"%",hi(ar,E))O=ar[E];else if(O!=null){if(!(b in O)){if(!o)throw new $r("base intrinsic for "+i+" exists, but the property is not available.");return}if(st&&P+1>=c.length){var Q=st(O,b);$=!!Q,$&&"get"in Q&&!("originalValue"in Q.get)?O=Q.get:O=O[b]}else $=hi(O,b),O=O[b];$&&!T&&(ar[E]=O)}}return O},ls=Mu,ss=us,dm=ss([ls("%String.prototype.indexOf%")]),cs=function(i,o){var c=ls(i,!!o);return typeof c=="function"&&dm(i,".prototype.")>-1?ss([c]):c},vm=Mu,gt=cs,ym=yi,_m=Dr,Nl=vm("%Map%",!0),mm=gt("Map.prototype.get",!0),Sm=gt("Map.prototype.set",!0),Am=gt("Map.prototype.has",!0),wm=gt("Map.prototype.delete",!0),bm=gt("Map.prototype.size",!0),ps=!!Nl&&function(){var i,o={assert:function(c){if(!o.has(c))throw new _m("Side channel does not contain "+ym(c))},delete:function(c){if(i){var h=wm(i,c);return bm(i)===0&&(i=void 0),h}return!1},get:function(c){if(i)return mm(i,c)},has:function(c){return i?Am(i,c):!1},set:function(c,h){i||(i=new Nl),Sm(i,c,h)}};return o},Em=Mu,Si=cs,xm=yi,oi=ps,Om=Dr,Tr=Em("%WeakMap%",!0),Rm=Si("WeakMap.prototype.get",!0),Pm=Si("WeakMap.prototype.set",!0),Tm=Si("WeakMap.prototype.has",!0),Cm=Si("WeakMap.prototype.delete",!0),Im=Tr?function(){var i,o,c={assert:function(h){if(!c.has(h))throw new Om("Side channel does not contain "+xm(h))},delete:function(h){if(Tr&&h&&(typeof h=="object"||typeof h=="function")){if(i)return Cm(i,h)}else if(oi&&o)return o.delete(h);return!1},get:function(h){return Tr&&h&&(typeof h=="object"||typeof h=="function")&&i?Rm(i,h):o&&o.get(h)},has:function(h){return Tr&&h&&(typeof h=="object"||typeof h=="function")&&i?Tm(i,h):!!o&&o.has(h)},set:function(h,m){Tr&&h&&(typeof h=="object"||typeof h=="function")?(i||(i=new Tr),Pm(i,h,m)):oi&&(o||(o=oi()),o.set(h,m))}};return c}:oi,$m=Dr,Mm=yi,Fm=f0,zm=ps,Lm=Im,Dm=Lm||zm||Fm,hs=function(){var i,o={assert:function(c){if(!o.has(c))throw new $m("Side channel does not contain "+Mm(c))},delete:function(c){return!!i&&i.delete(c)},get:function(c){return i&&i.get(c)},has:function(c){return!!i&&i.has(c)},set:function(c,h){i||(i=Dm()),i.set(c,h)}};return o},Nm=String.prototype.replace,Bm=/%20/g,Bl={RFC1738:"RFC1738",RFC3986:"RFC3986"},gs={default:Bl.RFC3986,formatters:{RFC1738:function(a){return Nm.call(a,Bm,"+")},RFC3986:function(a){return String(a)}},RFC1738:Bl.RFC1738},Wm=gs,Um=hs,pu=Object.prototype.hasOwnProperty,or=Array.isArray,Ai=Um(),Ir=function(i,o){return Ai.set(i,o),i},ur=function(i){return Ai.has(i)},it=function(i){return Ai.get(i)},xu=function(i,o){Ai.set(i,o)},vn=function(){for(var a=[],i=0;i<256;++i)a[a.length]="%"+((i<16?"0":"")+i.toString(16)).toUpperCase();return a}(),qm=function(i){for(;i.length>1;){var o=i.pop(),c=o.obj[o.prop];if(or(c)){for(var h=[],m=0;m<c.length;++m)typeof c[m]<"u"&&(h[h.length]=c[m]);o.obj[o.prop]=h}}},ft=function(i,o){for(var c=o&&o.plainObjects?{__proto__:null}:{},h=0;h<i.length;++h)typeof i[h]<"u"&&(c[h]=i[h]);return c},Gm=function a(i,o,c){if(!o)return i;if(typeof o!="object"&&typeof o!="function"){if(or(i)){var h=i.length;if(c&&typeof c.arrayLimit=="number"&&h>c.arrayLimit)return Ir(ft(i.concat(o),c),h);i[h]=o}else if(i&&typeof i=="object")if(ur(i)){var m=it(i)+1;i[m]=o,xu(i,m)}else(c&&(c.plainObjects||c.allowPrototypes)||!pu.call(Object.prototype,o))&&(i[o]=!0);else return[i,o];return i}if(!i||typeof i!="object"){if(ur(o)){for(var E=Object.keys(o),O=c&&c.plainObjects?{__proto__:null,0:i}:{0:i},T=0;T<E.length;T++){var C=parseInt(E[T],10);O[C+1]=o[E[T]]}return Ir(O,it(o)+1)}var P=[i].concat(o);return c&&typeof c.arrayLimit=="number"&&P.length>c.arrayLimit?Ir(ft(P,c),P.length-1):P}var $=i;return or(i)&&!or(o)&&($=ft(i,c)),or(i)&&or(o)?(o.forEach(function(b,D){if(pu.call(i,D)){var U=i[D];U&&typeof U=="object"&&b&&typeof b=="object"?i[D]=a(U,b,c):i[i.length]=b}else i[D]=b}),i):Object.keys(o).reduce(function(b,D){var U=o[D];if(pu.call(b,D)?b[D]=a(b[D],U,c):b[D]=U,ur(o)&&!ur(b)&&Ir(b,it(o)),ur(b)){var Q=parseInt(D,10);String(Q)===D&&Q>=0&&Q>it(b)&&xu(b,Q)}return b},$)},Hm=function(i,o){return Object.keys(o).reduce(function(c,h){return c[h]=o[h],c},i)},Km=function(a,i,o){var c=a.replace(/\+/g," ");if(o==="iso-8859-1")return c.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(c)}catch{return c}},hu=1024,Ym=function(i,o,c,h,m){if(i.length===0)return i;var E=i;if(typeof i=="symbol"?E=Symbol.prototype.toString.call(i):typeof i!="string"&&(E=String(i)),c==="iso-8859-1")return escape(E).replace(/%u[0-9a-f]{4}/gi,function(D){return"%26%23"+parseInt(D.slice(2),16)+"%3B"});for(var O="",T=0;T<E.length;T+=hu){for(var C=E.length>=hu?E.slice(T,T+hu):E,P=[],$=0;$<C.length;++$){var b=C.charCodeAt($);if(b===45||b===46||b===95||b===126||b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||m===Wm.RFC1738&&(b===40||b===41)){P[P.length]=C.charAt($);continue}if(b<128){P[P.length]=vn[b];continue}if(b<2048){P[P.length]=vn[192|b>>6]+vn[128|b&63];continue}if(b<55296||b>=57344){P[P.length]=vn[224|b>>12]+vn[128|b>>6&63]+vn[128|b&63];continue}$+=1,b=65536+((b&1023)<<10|C.charCodeAt($)&1023),P[P.length]=vn[240|b>>18]+vn[128|b>>12&63]+vn[128|b>>6&63]+vn[128|b&63]}O+=P.join("")}return O},Jm=function(i){for(var o=[{obj:{o:i},prop:"o"}],c=[],h=0;h<o.length;++h)for(var m=o[h],E=m.obj[m.prop],O=Object.keys(E),T=0;T<O.length;++T){var C=O[T],P=E[C];typeof P=="object"&&P!==null&&c.indexOf(P)===-1&&(o[o.length]={obj:E,prop:C},c[c.length]=P)}return qm(o),i},Zm=function(i){return Object.prototype.toString.call(i)==="[object RegExp]"},Xm=function(i){return!i||typeof i!="object"?!1:!!(i.constructor&&i.constructor.isBuffer&&i.constructor.isBuffer(i))},Qm=function(i,o,c,h){if(ur(i)){var m=it(i)+1;return i[m]=o,xu(i,m),i}var E=[].concat(i,o);return E.length>c?Ir(ft(E,{plainObjects:h}),E.length-1):E},Vm=function(i,o){if(or(i)){for(var c=[],h=0;h<i.length;h+=1)c[c.length]=o(i[h]);return c}return o(i)},km={arrayToObject:ft,assign:Hm,combine:Qm,compact:Jm,decode:Km,encode:Ym,isBuffer:Xm,isOverflow:ur,isRegExp:Zm,markOverflow:Ir,maybeMap:Vm,merge:Gm},ds=hs,fi=km,lt=gs,jm=Object.prototype.hasOwnProperty,vs={brackets:function(i){return i+"[]"},comma:"comma",indices:function(i,o){return i+"["+o+"]"},repeat:function(i){return i}},yn=Array.isArray,e1=Array.prototype.push,ys=function(a,i){e1.apply(a,yn(i)?i:[i])},n1=Date.prototype.toISOString,Wl=lt.default,ve={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:fi.encode,encodeValuesOnly:!1,filter:void 0,format:Wl,formatter:lt.formatters[Wl],indices:!1,serializeDate:function(i){return n1.call(i)},skipNulls:!1,strictNullHandling:!1},r1=function(i){return typeof i=="string"||typeof i=="number"||typeof i=="boolean"||typeof i=="symbol"||typeof i=="bigint"},gu={},t1=function a(i,o,c,h,m,E,O,T,C,P,$,b,D,U,Q,V,fe,Re){for(var F=i,k=Re,x=0,Se=!1;(k=k.get(gu))!==void 0&&!Se;){var ye=k.get(i);if(x+=1,typeof ye<"u"){if(ye===x)throw new RangeError("Cyclic object value");Se=!0}typeof k.get(gu)>"u"&&(x=0)}if(typeof P=="function"?F=P(o,F):F instanceof Date?F=D(F):c==="comma"&&yn(F)&&(F=fi.maybeMap(F,function(un){return un instanceof Date?D(un):un})),F===null){if(E)return C&&!V?C(o,ve.encoder,fe,"key",U):o;F=""}if(r1(F)||fi.isBuffer(F)){if(C){var Je=V?o:C(o,ve.encoder,fe,"key",U);return[Q(Je)+"="+Q(C(F,ve.encoder,fe,"value",U))]}return[Q(o)+"="+Q(String(F))]}var Le=[];if(typeof F>"u")return Le;var Ze;if(c==="comma"&&yn(F))V&&C&&(F=fi.maybeMap(F,C)),Ze=[{value:F.length>0?F.join(",")||null:void 0}];else if(yn(P))Ze=P;else{var $n=Object.keys(F);Ze=$?$n.sort($):$n}var pn=T?String(o).replace(/\./g,"%2E"):String(o),Pe=h&&yn(F)&&F.length===1?pn+"[]":pn;if(m&&yn(F)&&F.length===0)return Pe+"[]";for(var De=0;De<Ze.length;++De){var Ne=Ze[De],mn=typeof Ne=="object"&&Ne&&typeof Ne.value<"u"?Ne.value:F[Ne];if(!(O&&mn===null)){var Be=b&&T?String(Ne).replace(/\./g,"%2E"):String(Ne),We=yn(F)?typeof c=="function"?c(Pe,Be):Pe:Pe+(b?"."+Be:"["+Be+"]");Re.set(i,x);var lr=ds();lr.set(gu,Re),ys(Le,a(mn,We,c,h,m,E,O,T,c==="comma"&&V&&yn(F)?null:C,P,$,b,D,U,Q,V,fe,lr))}}return Le},i1=function(i){if(!i)return ve;if(typeof i.allowEmptyArrays<"u"&&typeof i.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof i.encodeDotInKeys<"u"&&typeof i.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(i.encoder!==null&&typeof i.encoder<"u"&&typeof i.encoder!="function")throw new TypeError("Encoder has to be a function.");var o=i.charset||ve.charset;if(typeof i.charset<"u"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var c=lt.default;if(typeof i.format<"u"){if(!jm.call(lt.formatters,i.format))throw new TypeError("Unknown format option provided.");c=i.format}var h=lt.formatters[c],m=ve.filter;(typeof i.filter=="function"||yn(i.filter))&&(m=i.filter);var E;if(i.arrayFormat in vs?E=i.arrayFormat:"indices"in i?E=i.indices?"indices":"repeat":E=ve.arrayFormat,"commaRoundTrip"in i&&typeof i.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var O=typeof i.allowDots>"u"?i.encodeDotInKeys===!0?!0:ve.allowDots:!!i.allowDots;return{addQueryPrefix:typeof i.addQueryPrefix=="boolean"?i.addQueryPrefix:ve.addQueryPrefix,allowDots:O,allowEmptyArrays:typeof i.allowEmptyArrays=="boolean"?!!i.allowEmptyArrays:ve.allowEmptyArrays,arrayFormat:E,charset:o,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:ve.charsetSentinel,commaRoundTrip:!!i.commaRoundTrip,delimiter:typeof i.delimiter>"u"?ve.delimiter:i.delimiter,encode:typeof i.encode=="boolean"?i.encode:ve.encode,encodeDotInKeys:typeof i.encodeDotInKeys=="boolean"?i.encodeDotInKeys:ve.encodeDotInKeys,encoder:typeof i.encoder=="function"?i.encoder:ve.encoder,encodeValuesOnly:typeof i.encodeValuesOnly=="boolean"?i.encodeValuesOnly:ve.encodeValuesOnly,filter:m,format:c,formatter:h,serializeDate:typeof i.serializeDate=="function"?i.serializeDate:ve.serializeDate,skipNulls:typeof i.skipNulls=="boolean"?i.skipNulls:ve.skipNulls,sort:typeof i.sort=="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:ve.strictNullHandling}},o1=function(a,i){var o=a,c=i1(i),h,m;typeof c.filter=="function"?(m=c.filter,o=m("",o)):yn(c.filter)&&(m=c.filter,h=m);var E=[];if(typeof o!="object"||o===null)return"";var O=vs[c.arrayFormat],T=O==="comma"&&c.commaRoundTrip;h||(h=Object.keys(o)),c.sort&&h.sort(c.sort);for(var C=ds(),P=0;P<h.length;++P){var $=h[P],b=o[$];c.skipNulls&&b===null||ys(E,t1(b,$,O,T,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,C))}var D=E.join(c.delimiter),U=c.addQueryPrefix===!0?"?":"";return c.charsetSentinel&&(c.charset==="iso-8859-1"?U+="utf8=%26%2310003%3B&":U+="utf8=%E2%9C%93&"),D.length>0?U+D:""},u1=o1,du={stringify:u1};const a1=v.z.object({entryLabel:v.z.record(v.z.array(v.z.string())),approvalFlow:v.z.array(v.z.string()),blockedAuthorProps:v.z.array(v.z.string()),reportReasons:v.z.record(v.z.string()),regex:v.z.object({uid:v.z.string(),relatedUid:v.z.string(),email:v.z.string(),sorting:v.z.string()}),enabledCollections:v.z.array(v.z.string()),moderatorRoles:v.z.array(v.z.string()),isGQLPluginEnabled:v.z.boolean(),badWords:v.z.boolean().nullable().optional(),gql:v.z.object({auth:v.z.boolean().nullable()}).optional(),client:v.z.object({url:v.z.string().nullable(),contactEmail:v.z.string().nullable()}).default({url:null,contactEmail:null})}),_s=v.z.intersection(v.z.object({id:v.z.number(),uid:v.z.string(),documentId:v.z.string(),createdAt:v.z.string(),updatedAt:v.z.string(),publishedAt:v.z.string().nullable(),locale:v.z.string().nullable().optional()}),v.z.record(v.z.unknown())),f1=v.z.object({id:v.z.union([v.z.number(),v.z.string()]).optional().nullable(),name:v.z.string().optional().nullable(),email:v.z.string().optional().nullable(),avatar:v.z.union([v.z.object({url:v.z.string()}),v.z.object({url:v.z.string(),formats:v.z.object({thumbnail:v.z.object({url:v.z.string()}).nullable()})}),v.z.string()]).nullable().optional()}),ms=v.z.union([v.z.literal(Cn.PENDING),v.z.literal(Cn.APPROVED),v.z.literal(Cn.REJECTED),v.z.literal(Cn.BLOCKED),v.z.literal(Cn.OPEN),v.z.literal(Cn.REMOVED),v.z.literal(Cn.TO_REVIEW),v.z.literal(Cn.UNKNOWN)]),l1=v.z.object({id:v.z.number(),reason:v.z.string().optional().nullable(),content:v.z.string(),resolved:v.z.boolean(),createdAt:v.z.string(),updatedAt:v.z.string().nullable()}),di=v.z.object({id:v.z.number(),content:v.z.string(),blocked:v.z.boolean().nullable(),blockedThread:v.z.boolean().nullable(),blockReason:v.z.string().nullable(),isAdminComment:v.z.boolean().nullable(),removed:v.z.boolean().nullable(),approvalStatus:ms.nullable(),createdAt:v.z.string(),updatedAt:v.z.string(),reports:v.z.array(l1).nullable().optional(),author:f1.nullable().optional(),gotThread:v.z.boolean().nullable().optional(),threadFirstItemId:v.z.number().nullable().optional()}),Ss=v.z.object({page:v.z.number(),pageSize:v.z.number(),pageCount:v.z.number(),total:v.z.number()});function Ou(){return di.extend({related:_s.optional(),documentId:v.z.string(),threadOf:v.z.lazy(()=>di.merge(v.z.object({related:v.z.string(),threadOf:As.nullable().optional(),documentId:v.z.string().optional()}))).nullable().optional()})}const As=Ou(),s1=v.z.object({pagination:Ss,result:v.z.array(As)}),c1=v.z.object({entity:_s,selected:di.merge(v.z.object({related:v.z.string(),threadOf:Ou().omit({related:!0}).merge(v.z.object({related:v.z.string()})).nullable().optional()})).nullable(),level:v.z.array(Ou().omit({threadOf:!0,related:!0}))}),ws=v.z.object({apiID:v.z.string(),uid:v.z.string(),schema:v.z.object({attributes:v.z.record(v.z.object({type:v.z.union([v.z.literal("string"),v.z.string()])})),collectionName:v.z.string(),description:v.z.string(),displayName:v.z.string(),draftAndPublish:v.z.boolean(),kind:v.z.string(),pluralName:v.z.string(),singularName:v.z.string(),visible:v.z.boolean()})}),p1=v.z.object({data:ws}),h1=v.z.object({data:v.z.array(ws)}),g1=v.z.object({author:v.z.unknown(),content:v.z.string(),id:v.z.number(),approvalStatus:ms.nullable().optional(),reason:v.z.string().optional().nullable(),reports:v.z.array(v.z.unknown()),resolved:v.z.boolean().optional(),updatedAt:v.z.string().nullable(),createdAt:v.z.string(),related:di}),d1=v.z.object({pagination:Ss,result:v.z.array(g1)}),v1=v.z.object({id:v.z.number(),documentId:v.z.string(),name:v.z.string(),code:v.z.string(),description:v.z.string(),createdAt:v.z.string().nullable(),updatedAt:v.z.string().nullable(),publishedAt:v.z.string().nullable(),locale:v.z.string().nullable(),usersCount:v.z.number()}),y1=v.z.object({data:v.z.array(v1)}),_1=v.z.object({data:v.z.object({id:v.z.number(),documentId:v.z.string(),firstname:v.z.string(),lastname:v.z.string().nullable(),username:v.z.string().nullable(),email:v.z.string(),isActive:v.z.boolean(),blocked:v.z.boolean().nullable(),preferedLanguage:v.z.string().nullable(),createdAt:v.z.string().nullable(),updatedAt:v.z.string().nullable(),publishedAt:v.z.string().nullable(),locale:v.z.null(),roles:v.z.array(v.z.object({id:v.z.number(),name:v.z.string(),description:v.z.string(),code:v.z.string()}))})}),ie="comments",m1=mu.once(a=>({config:{getKey(){return[ie,"config"]},async query(){const i=await a.get(`/${ie}/settings/config`);return a1.parseAsync(i.data)}},contentTypeBuilder:{single:{getKey(i,o){return[ie,"moderate","content-type",o,i]},async query(i){const o=await a.get(`/content-type-builder/content-types/${i}`);return p1.parseAsync(o.data).then(c=>c.data)}},all:{getKey(){return[ie,"moderate","content-types"]},async query(){const i=await a.get("/content-type-builder/content-types");return h1.parseAsync(i.data).then(o=>o.data)}}},roles:{getKey(){return[ie,"moderate","roles"]},async query(){const i=await a.get("/admin/roles");return y1.parseAsync(i.data).then(o=>o.data)}},user:{getKey(){return[ie,"moderate","user"]},async query(){const i=await a.get("/admin/users/me");return _1.parseAsync(i.data).then(o=>o.data)}},comments:{findAll:{getKey(i){return[ie,"moderate","all",i?JSON.stringify(i):void 0].filter(Boolean)},async query(i){const o=await a.get(`/${ie}/moderate/all?${du.stringify(i,{encode:!1})}`);return s1.parseAsync(o.data)}},findOne:{getKey(i,o){return[ie,"details",i?.toString(),o?JSON.stringify(o):void 0].filter(Boolean)},async query(i,o){const c=mu.isEmpty(o)?"":`?${du.stringify(o,{encode:!1})}`,h=await a.get(`/${ie}/moderate/single/${i}${c}`);return c1.parseAsync(h.data)}},approve(i){return a.put(`/${ie}/moderate/single/${i}/approve`)},reject(i){return a.put(`/${ie}/moderate/single/${i}/reject`)},block(i){return a.put(`/${ie}/moderate/single/${i}/block`)},unblock(i){return a.put(`/${ie}/moderate/single/${i}/unblock`)},blockThread(i){return a.put(`/${ie}/moderate/thread/${i}/block`)},unBlockThread(i){return a.put(`/${ie}/moderate/thread/${i}/unblock`)},delete(i){return a.del(`/${ie}/moderate/single/${i}/delete`)},postComment({id:i,content:o,author:c}){return a.post(`/${ie}/moderate/thread/${i}/postComment`,{content:o,author:c})},updateComment({id:i,content:o}){return a.put(`/${ie}/moderate/single/${i}/update`,{content:o})}},reports:{findAll:{getKey(i){return[ie,"moderate","reports",i?JSON.stringify(i):void 0].filter(Boolean)},async query(i){const o=await a.get(`/${ie}/moderate/reports${i?`?${du.stringify(i,{encode:!1})}`:""}`);return d1.parseAsync(o.data)}},resolve({id:i,reportId:o}){return a.put(`/${ie}/moderate/single/${i}/report/${o}/resolve`)},resolveMultipleReports({reportIds:i}){return a.put(`/${ie}/moderate/multiple/report/resolve`,{reportIds:i})},resolveCommentMultipleReports({id:i,reportIds:o}){return a.put(`/${ie}/moderate/single/${i}/report/resolve`,{reportIds:o})},resolveAllAbuseReportsForComment(i){return a.put(`/${ie}/moderate/all/${i}/report/resolve`)},resolveAllAbuseReportsForThread(i){return a.put(`/${ie}/moderate/all/${i}/report/resolve-thread`)}},settings:{update(i){return a.put(`/${ie}/settings/config`,i)},restore(){return a.del(`/${ie}/settings/config`)},restart(){return a.post(`/${ie}/settings/restart`)}}})),bs=()=>{const a=Ul.getFetchClient();return Mr.useMemo(()=>m1(a),[a])},Es=Mr.createContext(null),S1=({children:a})=>{const i=bs(),{data:o}=Ru.useQuery({queryKey:i.user.getKey(),queryFn:i.user.query});return o?be.jsx(Es.Provider,{value:o,children:a}):null},A1=new Ru.QueryClient({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}}),w1=({children:a})=>be.jsx(Ru.QueryClientProvider,{client:A1,children:be.jsx(S1,{children:a})}),b1=()=>{const a=Mr.useMemo(()=>({access:tr.pluginPermissions.access,moderate:tr.pluginPermissions.moderate,accessReports:tr.pluginPermissions.reports,reviewReports:tr.pluginPermissions.reportsReview,settings:tr.pluginPermissions.settings,settingsChange:tr.pluginPermissions.settingsChange}),[]),{isLoading:i,allowedActions:{canCommentsModerate:o,canCommentsRead:c,canReportsRead:h,canSettingsChange:m,canSettingsRead:E,canReportsReview:O}}=Ul.useRBAC(a);return{isLoadingForPermissions:i,canAccess:c||h||E,canModerate:o,canAccessReports:h,canReviewReports:O,canSettings:E,canSettingsChange:m}},E1=({title:a,onConfirm:i,Trigger:o,labelConfirm:c,iconConfirm:h,labelCancel:m,children:E})=>{const[O,T]=Mr.useState(!1),[C,P]=Mr.useState(!1),$=()=>T(D=>!D),b=async()=>{P(!0),await i(),P(!1),$()};return be.jsxs(on.Dialog.Root,{open:O,children:[be.jsx(on.Dialog.Trigger,{children:be.jsx(o,{onClick:$})}),be.jsxs(on.Dialog.Content,{children:[be.jsx(on.Dialog.Header,{children:a}),be.jsx(on.Dialog.Body,{children:be.jsxs(on.Flex,{justifyContent:"center",direction:"column",children:[be.jsx(f_.WarningCircle,{fill:"danger500",stroke:"danger500",height:"24",width:"24"}),be.jsx(on.Typography,{id:"confirm-description",children:E})]})}),be.jsxs(on.Dialog.Footer,{children:[be.jsx(on.Dialog.Cancel,{children:be.jsx(on.Button,{onClick:$,disabled:C,variant:"tertiary",children:m||"Cancel"})}),be.jsx(on.Dialog.Action,{children:be.jsx(on.Button,{onClick:b,variant:"danger-light",loading:C,disabled:C,startIcon:h,children:c})})]})]})]})};exports.COMMENT_STATUS=Cn;exports.CommonProviders=w1;exports.ConfirmationDialog=E1;exports.REPORT_REASON=Jl;exports.REPORT_STATUS=E_;exports.UserContext=Es;exports.getDefaultExportFromCjs=s_;exports.getMessage=b_;exports.lodashExports=mu;exports.useAPI=bs;exports.useIntl=vi;exports.usePermissions=b1;