strapi-admin-portal 0.2.1 → 0.2.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.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var oi=Object.create;var G=Object.defineProperty;var ai=Object.getOwnPropertyDescriptor;var si=Object.getOwnPropertyNames;var ui=Object.getPrototypeOf,ci=Object.prototype.hasOwnProperty;var i=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),pi=(e,r)=>{for(var t in r)G(e,t,{get:r[t],enumerable:!0})},he=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of si(r))!ci.call(e,o)&&o!==t&&G(e,o,{get:()=>r[o],enumerable:!(n=ai(r,o))||n.enumerable});return e};var fi=(e,r,t)=>(t=e!=null?oi(ui(e)):{},he(r||!e||!e.__esModule?G(t,"default",{value:e,enumerable:!0}):t,e)),li=e=>he(G({},"__esModule",{value:!0}),e);var H=i((sp,ge)=>{"use strict";function di(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}ge.exports=di});var $=i((up,ve)=>{"use strict";function hi(e){return e}ve.exports=hi});var qe=i((cp,ye)=>{"use strict";var gi=H(),me=Math.max;function vi(e,r,t){return r=me(r===void 0?e.length-1:r,0),function(){for(var n=arguments,o=-1,a=me(n.length-r,0),u=Array(a);++o<a;)u[o]=n[r+o];o=-1;for(var s=Array(r+1);++o<r;)s[o]=n[o];return s[r]=t(u),gi(e,this,s)}}ye.exports=vi});var xe=i((pp,be)=>{"use strict";function mi(e){return function(){return e}}be.exports=mi});var K=i((fp,je)=>{"use strict";var yi=typeof global=="object"&&global&&global.Object===Object&&global;je.exports=yi});var v=i((lp,_e)=>{"use strict";var qi=K(),bi=typeof self=="object"&&self&&self.Object===Object&&self,xi=qi||bi||Function("return this")();_e.exports=xi});var V=i((dp,Ie)=>{"use strict";var ji=v(),_i=ji.Symbol;Ie.exports=_i});var Pe=i((hp,Se)=>{"use strict";var Oe=V(),Te=Object.prototype,Ii=Te.hasOwnProperty,Oi=Te.toString,S=Oe?Oe.toStringTag:void 0;function Ti(e){var r=Ii.call(e,S),t=e[S];try{e[S]=void 0;var n=!0}catch{}var o=Oi.call(e);return n&&(r?e[S]=t:delete e[S]),o}Se.exports=Ti});var we=i((gp,Ae)=>{"use strict";var Si=Object.prototype,Pi=Si.toString;function Ai(e){return Pi.call(e)}Ae.exports=Ai});var P=i((vp,Ee)=>{"use strict";var Ce=V(),wi=Pe(),Ci=we(),Ri="[object Null]",Ei="[object Undefined]",Re=Ce?Ce.toStringTag:void 0;function Mi(e){return e==null?e===void 0?Ei:Ri:Re&&Re in Object(e)?wi(e):Ci(e)}Ee.exports=Mi});var h=i((mp,Me)=>{"use strict";function Di(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}Me.exports=Di});var N=i((yp,De)=>{"use strict";var Li=P(),Fi=h(),Gi="[object AsyncFunction]",Ni="[object Function]",zi="[object GeneratorFunction]",Bi="[object Proxy]";function Ui(e){if(!Fi(e))return!1;var r=Li(e);return r==Ni||r==zi||r==Gi||r==Bi}De.exports=Ui});var Fe=i((qp,Le)=>{"use strict";var Hi=v(),$i=Hi["__core-js_shared__"];Le.exports=$i});var ze=i((bp,Ne)=>{"use strict";var W=Fe(),Ge=(function(){var e=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Ki(e){return!!Ge&&Ge in e}Ne.exports=Ki});var Ue=i((xp,Be)=>{"use strict";var Vi=Function.prototype,Wi=Vi.toString;function Ji(e){if(e!=null){try{return Wi.call(e)}catch{}try{return e+""}catch{}}return""}Be.exports=Ji});var $e=i((jp,He)=>{"use strict";var Qi=N(),Xi=ze(),Yi=h(),Zi=Ue(),ki=/[\\^$.*+?()[\]{}|]/g,eo=/^\[object .+?Constructor\]$/,ro=Function.prototype,to=Object.prototype,no=ro.toString,io=to.hasOwnProperty,oo=RegExp("^"+no.call(io).replace(ki,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ao(e){if(!Yi(e)||Xi(e))return!1;var r=Qi(e)?oo:eo;return r.test(Zi(e))}He.exports=ao});var Ve=i((_p,Ke)=>{"use strict";function so(e,r){return e?.[r]}Ke.exports=so});var z=i((Ip,We)=>{"use strict";var uo=$e(),co=Ve();function po(e,r){var t=co(e,r);return uo(t)?t:void 0}We.exports=po});var J=i((Op,Je)=>{"use strict";var fo=z(),lo=(function(){try{var e=fo(Object,"defineProperty");return e({},"",{}),e}catch{}})();Je.exports=lo});var Ye=i((Tp,Xe)=>{"use strict";var ho=xe(),Qe=J(),go=$(),vo=Qe?function(e,r){return Qe(e,"toString",{configurable:!0,enumerable:!1,value:ho(r),writable:!0})}:go;Xe.exports=vo});var ke=i((Sp,Ze)=>{"use strict";var mo=800,yo=16,qo=Date.now;function bo(e){var r=0,t=0;return function(){var n=qo(),o=yo-(n-t);if(t=n,o>0){if(++r>=mo)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}Ze.exports=bo});var rr=i((Pp,er)=>{"use strict";var xo=Ye(),jo=ke(),_o=jo(xo);er.exports=_o});var Q=i((Ap,tr)=>{"use strict";var Io=$(),Oo=qe(),To=rr();function So(e,r){return To(Oo(e,r,Io),e+"")}tr.exports=So});var ir=i((wp,nr)=>{"use strict";function Po(){this.__data__=[],this.size=0}nr.exports=Po});var A=i((Cp,or)=>{"use strict";function Ao(e,r){return e===r||e!==e&&r!==r}or.exports=Ao});var w=i((Rp,ar)=>{"use strict";var wo=A();function Co(e,r){for(var t=e.length;t--;)if(wo(e[t][0],r))return t;return-1}ar.exports=Co});var ur=i((Ep,sr)=>{"use strict";var Ro=w(),Eo=Array.prototype,Mo=Eo.splice;function Do(e){var r=this.__data__,t=Ro(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():Mo.call(r,t,1),--this.size,!0}sr.exports=Do});var pr=i((Mp,cr)=>{"use strict";var Lo=w();function Fo(e){var r=this.__data__,t=Lo(r,e);return t<0?void 0:r[t][1]}cr.exports=Fo});var lr=i((Dp,fr)=>{"use strict";var Go=w();function No(e){return Go(this.__data__,e)>-1}fr.exports=No});var hr=i((Lp,dr)=>{"use strict";var zo=w();function Bo(e,r){var t=this.__data__,n=zo(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}dr.exports=Bo});var C=i((Fp,gr)=>{"use strict";var Uo=ir(),Ho=ur(),$o=pr(),Ko=lr(),Vo=hr();function y(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}y.prototype.clear=Uo;y.prototype.delete=Ho;y.prototype.get=$o;y.prototype.has=Ko;y.prototype.set=Vo;gr.exports=y});var mr=i((Gp,vr)=>{"use strict";var Wo=C();function Jo(){this.__data__=new Wo,this.size=0}vr.exports=Jo});var qr=i((Np,yr)=>{"use strict";function Qo(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}yr.exports=Qo});var xr=i((zp,br)=>{"use strict";function Xo(e){return this.__data__.get(e)}br.exports=Xo});var _r=i((Bp,jr)=>{"use strict";function Yo(e){return this.__data__.has(e)}jr.exports=Yo});var X=i((Up,Ir)=>{"use strict";var Zo=z(),ko=v(),ea=Zo(ko,"Map");Ir.exports=ea});var R=i((Hp,Or)=>{"use strict";var ra=z(),ta=ra(Object,"create");Or.exports=ta});var Pr=i(($p,Sr)=>{"use strict";var Tr=R();function na(){this.__data__=Tr?Tr(null):{},this.size=0}Sr.exports=na});var wr=i((Kp,Ar)=>{"use strict";function ia(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}Ar.exports=ia});var Rr=i((Vp,Cr)=>{"use strict";var oa=R(),aa="__lodash_hash_undefined__",sa=Object.prototype,ua=sa.hasOwnProperty;function ca(e){var r=this.__data__;if(oa){var t=r[e];return t===aa?void 0:t}return ua.call(r,e)?r[e]:void 0}Cr.exports=ca});var Mr=i((Wp,Er)=>{"use strict";var pa=R(),fa=Object.prototype,la=fa.hasOwnProperty;function da(e){var r=this.__data__;return pa?r[e]!==void 0:la.call(r,e)}Er.exports=da});var Lr=i((Jp,Dr)=>{"use strict";var ha=R(),ga="__lodash_hash_undefined__";function va(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=ha&&r===void 0?ga:r,this}Dr.exports=va});var Gr=i((Qp,Fr)=>{"use strict";var ma=Pr(),ya=wr(),qa=Rr(),ba=Mr(),xa=Lr();function q(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}q.prototype.clear=ma;q.prototype.delete=ya;q.prototype.get=qa;q.prototype.has=ba;q.prototype.set=xa;Fr.exports=q});var Br=i((Xp,zr)=>{"use strict";var Nr=Gr(),ja=C(),_a=X();function Ia(){this.size=0,this.__data__={hash:new Nr,map:new(_a||ja),string:new Nr}}zr.exports=Ia});var Hr=i((Yp,Ur)=>{"use strict";function Oa(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}Ur.exports=Oa});var E=i((Zp,$r)=>{"use strict";var Ta=Hr();function Sa(e,r){var t=e.__data__;return Ta(r)?t[typeof r=="string"?"string":"hash"]:t.map}$r.exports=Sa});var Vr=i((kp,Kr)=>{"use strict";var Pa=E();function Aa(e){var r=Pa(this,e).delete(e);return this.size-=r?1:0,r}Kr.exports=Aa});var Jr=i((ef,Wr)=>{"use strict";var wa=E();function Ca(e){return wa(this,e).get(e)}Wr.exports=Ca});var Xr=i((rf,Qr)=>{"use strict";var Ra=E();function Ea(e){return Ra(this,e).has(e)}Qr.exports=Ea});var Zr=i((tf,Yr)=>{"use strict";var Ma=E();function Da(e,r){var t=Ma(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this}Yr.exports=Da});var et=i((nf,kr)=>{"use strict";var La=Br(),Fa=Vr(),Ga=Jr(),Na=Xr(),za=Zr();function b(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}b.prototype.clear=La;b.prototype.delete=Fa;b.prototype.get=Ga;b.prototype.has=Na;b.prototype.set=za;kr.exports=b});var tt=i((of,rt)=>{"use strict";var Ba=C(),Ua=X(),Ha=et(),$a=200;function Ka(e,r){var t=this.__data__;if(t instanceof Ba){var n=t.__data__;if(!Ua||n.length<$a-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new Ha(n)}return t.set(e,r),this.size=t.size,this}rt.exports=Ka});var it=i((af,nt)=>{"use strict";var Va=C(),Wa=mr(),Ja=qr(),Qa=xr(),Xa=_r(),Ya=tt();function x(e){var r=this.__data__=new Va(e);this.size=r.size}x.prototype.clear=Wa;x.prototype.delete=Ja;x.prototype.get=Qa;x.prototype.has=Xa;x.prototype.set=Ya;nt.exports=x});var B=i((sf,at)=>{"use strict";var ot=J();function Za(e,r,t){r=="__proto__"&&ot?ot(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}at.exports=Za});var Y=i((uf,st)=>{"use strict";var ka=B(),es=A();function rs(e,r,t){(t!==void 0&&!es(e[r],t)||t===void 0&&!(r in e))&&ka(e,r,t)}st.exports=rs});var ct=i((cf,ut)=>{"use strict";function ts(e){return function(r,t,n){for(var o=-1,a=Object(r),u=n(r),s=u.length;s--;){var c=u[e?s:++o];if(t(a[c],c,a)===!1)break}return r}}ut.exports=ts});var ft=i((pf,pt)=>{"use strict";var ns=ct(),is=ns();pt.exports=is});var vt=i((M,j)=>{"use strict";var os=v(),gt=typeof M=="object"&&M&&!M.nodeType&&M,lt=gt&&typeof j=="object"&&j&&!j.nodeType&&j,as=lt&<.exports===gt,dt=as?os.Buffer:void 0,ht=dt?dt.allocUnsafe:void 0;function ss(e,r){if(r)return e.slice();var t=e.length,n=ht?ht(t):new e.constructor(t);return e.copy(n),n}j.exports=ss});var yt=i((ff,mt)=>{"use strict";var us=v(),cs=us.Uint8Array;mt.exports=cs});var xt=i((lf,bt)=>{"use strict";var qt=yt();function ps(e){var r=new e.constructor(e.byteLength);return new qt(r).set(new qt(e)),r}bt.exports=ps});var _t=i((df,jt)=>{"use strict";var fs=xt();function ls(e,r){var t=r?fs(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}jt.exports=ls});var Ot=i((hf,It)=>{"use strict";function ds(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}It.exports=ds});var Pt=i((gf,St)=>{"use strict";var hs=h(),Tt=Object.create,gs=(function(){function e(){}return function(r){if(!hs(r))return{};if(Tt)return Tt(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}})();St.exports=gs});var wt=i((vf,At)=>{"use strict";function vs(e,r){return function(t){return e(r(t))}}At.exports=vs});var Z=i((mf,Ct)=>{"use strict";var ms=wt(),ys=ms(Object.getPrototypeOf,Object);Ct.exports=ys});var k=i((yf,Rt)=>{"use strict";var qs=Object.prototype;function bs(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||qs;return e===t}Rt.exports=bs});var Mt=i((qf,Et)=>{"use strict";var xs=Pt(),js=Z(),_s=k();function Is(e){return typeof e.constructor=="function"&&!_s(e)?xs(js(e)):{}}Et.exports=Is});var _=i((bf,Dt)=>{"use strict";function Os(e){return e!=null&&typeof e=="object"}Dt.exports=Os});var Ft=i((xf,Lt)=>{"use strict";var Ts=P(),Ss=_(),Ps="[object Arguments]";function As(e){return Ss(e)&&Ts(e)==Ps}Lt.exports=As});var ee=i((jf,zt)=>{"use strict";var Gt=Ft(),ws=_(),Nt=Object.prototype,Cs=Nt.hasOwnProperty,Rs=Nt.propertyIsEnumerable,Es=Gt((function(){return arguments})())?Gt:function(e){return ws(e)&&Cs.call(e,"callee")&&!Rs.call(e,"callee")};zt.exports=Es});var re=i((_f,Bt)=>{"use strict";var Ms=Array.isArray;Bt.exports=Ms});var te=i((If,Ut)=>{"use strict";var Ds=9007199254740991;function Ls(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ds}Ut.exports=Ls});var U=i((Of,Ht)=>{"use strict";var Fs=N(),Gs=te();function Ns(e){return e!=null&&Gs(e.length)&&!Fs(e)}Ht.exports=Ns});var Kt=i((Tf,$t)=>{"use strict";var zs=U(),Bs=_();function Us(e){return Bs(e)&&zs(e)}$t.exports=Us});var Wt=i((Sf,Vt)=>{"use strict";function Hs(){return!1}Vt.exports=Hs});var ne=i((D,I)=>{"use strict";var $s=v(),Ks=Wt(),Xt=typeof D=="object"&&D&&!D.nodeType&&D,Jt=Xt&&typeof I=="object"&&I&&!I.nodeType&&I,Vs=Jt&&Jt.exports===Xt,Qt=Vs?$s.Buffer:void 0,Ws=Qt?Qt.isBuffer:void 0,Js=Ws||Ks;I.exports=Js});var kt=i((Pf,Zt)=>{"use strict";var Qs=P(),Xs=Z(),Ys=_(),Zs="[object Object]",ks=Function.prototype,eu=Object.prototype,Yt=ks.toString,ru=eu.hasOwnProperty,tu=Yt.call(Object);function nu(e){if(!Ys(e)||Qs(e)!=Zs)return!1;var r=Xs(e);if(r===null)return!0;var t=ru.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&Yt.call(t)==tu}Zt.exports=nu});var rn=i((Af,en)=>{"use strict";var iu=P(),ou=te(),au=_(),su="[object Arguments]",uu="[object Array]",cu="[object Boolean]",pu="[object Date]",fu="[object Error]",lu="[object Function]",du="[object Map]",hu="[object Number]",gu="[object Object]",vu="[object RegExp]",mu="[object Set]",yu="[object String]",qu="[object WeakMap]",bu="[object ArrayBuffer]",xu="[object DataView]",ju="[object Float32Array]",_u="[object Float64Array]",Iu="[object Int8Array]",Ou="[object Int16Array]",Tu="[object Int32Array]",Su="[object Uint8Array]",Pu="[object Uint8ClampedArray]",Au="[object Uint16Array]",wu="[object Uint32Array]",p={};p[ju]=p[_u]=p[Iu]=p[Ou]=p[Tu]=p[Su]=p[Pu]=p[Au]=p[wu]=!0;p[su]=p[uu]=p[bu]=p[cu]=p[xu]=p[pu]=p[fu]=p[lu]=p[du]=p[hu]=p[gu]=p[vu]=p[mu]=p[yu]=p[qu]=!1;function Cu(e){return au(e)&&ou(e.length)&&!!p[iu(e)]}en.exports=Cu});var nn=i((wf,tn)=>{"use strict";function Ru(e){return function(r){return e(r)}}tn.exports=Ru});var an=i((L,O)=>{"use strict";var Eu=K(),on=typeof L=="object"&&L&&!L.nodeType&&L,F=on&&typeof O=="object"&&O&&!O.nodeType&&O,Mu=F&&F.exports===on,ie=Mu&&Eu.process,Du=(function(){try{var e=F&&F.require&&F.require("util").types;return e||ie&&ie.binding&&ie.binding("util")}catch{}})();O.exports=Du});var oe=i((Cf,cn)=>{"use strict";var Lu=rn(),Fu=nn(),sn=an(),un=sn&&sn.isTypedArray,Gu=un?Fu(un):Lu;cn.exports=Gu});var ae=i((Rf,pn)=>{"use strict";function Nu(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}pn.exports=Nu});var ln=i((Ef,fn)=>{"use strict";var zu=B(),Bu=A(),Uu=Object.prototype,Hu=Uu.hasOwnProperty;function $u(e,r,t){var n=e[r];(!(Hu.call(e,r)&&Bu(n,t))||t===void 0&&!(r in e))&&zu(e,r,t)}fn.exports=$u});var hn=i((Mf,dn)=>{"use strict";var Ku=ln(),Vu=B();function Wu(e,r,t,n){var o=!t;t||(t={});for(var a=-1,u=r.length;++a<u;){var s=r[a],c=n?n(t[s],e[s],s,t,e):void 0;c===void 0&&(c=e[s]),o?Vu(t,s,c):Ku(t,s,c)}return t}dn.exports=Wu});var vn=i((Df,gn)=>{"use strict";function Ju(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}gn.exports=Ju});var se=i((Lf,mn)=>{"use strict";var Qu=9007199254740991,Xu=/^(?:0|[1-9]\d*)$/;function Yu(e,r){var t=typeof e;return r=r??Qu,!!r&&(t=="number"||t!="symbol"&&Xu.test(e))&&e>-1&&e%1==0&&e<r}mn.exports=Yu});var qn=i((Ff,yn)=>{"use strict";var Zu=vn(),ku=ee(),ec=re(),rc=ne(),tc=se(),nc=oe(),ic=Object.prototype,oc=ic.hasOwnProperty;function ac(e,r){var t=ec(e),n=!t&&ku(e),o=!t&&!n&&rc(e),a=!t&&!n&&!o&&nc(e),u=t||n||o||a,s=u?Zu(e.length,String):[],c=s.length;for(var l in e)(r||oc.call(e,l))&&!(u&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||tc(l,c)))&&s.push(l);return s}yn.exports=ac});var xn=i((Gf,bn)=>{"use strict";function sc(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}bn.exports=sc});var _n=i((Nf,jn)=>{"use strict";var uc=h(),cc=k(),pc=xn(),fc=Object.prototype,lc=fc.hasOwnProperty;function dc(e){if(!uc(e))return pc(e);var r=cc(e),t=[];for(var n in e)n=="constructor"&&(r||!lc.call(e,n))||t.push(n);return t}jn.exports=dc});var ue=i((zf,In)=>{"use strict";var hc=qn(),gc=_n(),vc=U();function mc(e){return vc(e)?hc(e,!0):gc(e)}In.exports=mc});var Tn=i((Bf,On)=>{"use strict";var yc=hn(),qc=ue();function bc(e){return yc(e,qc(e))}On.exports=bc});var Rn=i((Uf,Cn)=>{"use strict";var Sn=Y(),xc=vt(),jc=_t(),_c=Ot(),Ic=Mt(),Pn=ee(),An=re(),Oc=Kt(),Tc=ne(),Sc=N(),Pc=h(),Ac=kt(),wc=oe(),wn=ae(),Cc=Tn();function Rc(e,r,t,n,o,a,u){var s=wn(e,t),c=wn(r,t),l=u.get(c);if(l){Sn(e,t,l);return}var f=a?a(s,c,t+"",e,r,u):void 0,d=f===void 0;if(d){var m=An(c),T=!m&&Tc(c),de=!m&&!T&&wc(c);f=c,m||T||de?An(s)?f=s:Oc(s)?f=_c(s):T?(d=!1,f=xc(c,!0)):de?(d=!1,f=jc(c,!0)):f=[]:Ac(c)||Pn(c)?(f=s,Pn(s)?f=Cc(s):(!Pc(s)||Sc(s))&&(f=Ic(c))):d=!1}d&&(u.set(c,f),o(f,c,n,a,u),u.delete(c)),Sn(e,t,f)}Cn.exports=Rc});var ce=i((Hf,Mn)=>{"use strict";var Ec=it(),Mc=Y(),Dc=ft(),Lc=Rn(),Fc=h(),Gc=ue(),Nc=ae();function En(e,r,t,n,o){e!==r&&Dc(r,function(a,u){if(o||(o=new Ec),Fc(a))Lc(e,r,u,t,En,n,o);else{var s=n?n(Nc(e,u),a,u+"",e,r,o):void 0;s===void 0&&(s=a),Mc(e,u,s)}},Gc)}Mn.exports=En});var Gn=i(($f,Fn)=>{"use strict";var zc=ce(),Dn=h();function Ln(e,r,t,n,o,a){return Dn(e)&&Dn(r)&&(a.set(r,e),zc(e,r,void 0,Ln,a),a.delete(r)),e}Fn.exports=Ln});var zn=i((Kf,Nn)=>{"use strict";var Bc=A(),Uc=U(),Hc=se(),$c=h();function Kc(e,r,t){if(!$c(t))return!1;var n=typeof r;return(n=="number"?Uc(t)&&Hc(r,t.length):n=="string"&&r in t)?Bc(t[r],e):!1}Nn.exports=Kc});var Un=i((Vf,Bn)=>{"use strict";var Vc=Q(),Wc=zn();function Jc(e){return Vc(function(r,t){var n=-1,o=t.length,a=o>1?t[o-1]:void 0,u=o>2?t[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,u&&Wc(t[0],t[1],u)&&(a=o<3?void 0:a,o=1),r=Object(r);++n<o;){var s=t[n];s&&e(r,s,n,a)}return r})}Bn.exports=Jc});var $n=i((Wf,Hn)=>{"use strict";var Qc=ce(),Xc=Un(),Yc=Xc(function(e,r,t,n){Qc(e,r,t,n)});Hn.exports=Yc});var Vn=i((Jf,Kn)=>{"use strict";var Zc=H(),kc=Q(),ep=Gn(),rp=$n(),tp=kc(function(e){return e.push(void 0,ep),Zc(rp,void 0,e)});Kn.exports=tp});var op={};pi(op,{initialiseInjections:()=>ip});module.exports=li(op);var Yn=require("react-dom/client");var g=require("react"),Wn=require("react-intl"),Jn=require("@strapi/design-system"),Qn=fi(Vn()),pe=require("react/jsx-runtime"),np=({children:e,store:r,configurations:t})=>{let n=(0,g.useSyncExternalStore)(r.subscribe,r.getState),o=n.admin_app.theme.currentTheme||"light",a=n.admin_app.language.locale||"en",u=t.translations||{},[s,c]=(0,g.useState)(matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),l=(0,g.useMemo)(()=>(0,Qn.default)(u[a],u.en),[a,u]),f=(0,g.useMemo)(()=>t.themes[o==="system"?s:o],[o,s,t.themes]);return(0,g.useEffect)(()=>{let d=matchMedia("(prefers-color-scheme: dark)"),m=T=>{c(T.matches?"dark":"light")};return d.addEventListener("change",m),()=>d.removeEventListener("change",m)},[]),(0,pe.jsx)(Jn.DesignSystemProvider,{theme:f,locale:a,children:(0,pe.jsx)(Wn.IntlProvider,{locale:a,messages:l,children:e})})},Xn=np;var fe=require("react/jsx-runtime"),Zn=async(e,r,t)=>{let n=r.domInjections;if(!n){console.warn("Injection system not initialised. Please call initialiseInjections(app) before registering injection routes.");return}document.querySelector(`#${t.id}`)||n.removeRoot(t.id);let a=le(t.route,e.location.pathname);if(!a)return;let u=t.Component(),s=await kn(t.selector);if(!s||!le(t.route,window.location.pathname))return;if(!n.getRoot(t.id)){let d=document.getElementById(t.id);d||(d=document.createElement("div"),d.id=t.id,s.after(d)),n.setRoot(t.id,(0,Yn.createRoot)(d))}let l=(await u).default,f=n.getRoot(t.id);f&&f.render((0,fe.jsx)(Xn,{store:r.store,configurations:r.configurations,children:(0,fe.jsx)(l,{...a})}))};var ri=async e=>{let r=e.router,t=0;for(;!r?.router?.state?.location&&t<100;)await new Promise(n=>setTimeout(n,10)),t++;if(!r?.router?.state?.location){console.warn("Strapi router not ready after 5s, skipping injection initialization.");return}r.router.subscribe(n=>ei(n,e)),ei(r.router.state,e)},ei=(e,r)=>{let t=r.domInjections?.routes||[];Promise.all(t.map(n=>Zn(e,r,n)))},kn=(e,r=5e3)=>new Promise(t=>{let n=document.querySelector(e);if(n)return t(n);let o=new MutationObserver(()=>{let a=document.querySelector(e);a&&(o.disconnect(),t(a))});o.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>{o.disconnect(),t(null)},r)}),ti=(e,r)=>{if(!r.domInjections?.routes){console.warn("Injection system not initialised. Please call initialiseInjections(app) before registering injection routes.");return}let{id:t,...n}=e;if(t&&r.domInjections.routes.some(a=>a.id===t)){console.warn(`Injection route with id ${t} already exists. Skipping registration.`);return}let o=t||`injection-${Math.random().toString(36).substring(2,9)}`;r.domInjections.routes.push({id:o,...n})},ni=(e,r)=>{if(!r.domInjections?.routes){console.warn("Injection system not initialised. Please call initialiseInjections(app) before unregistering injection routes.");return}let t=r.domInjections.routes.findIndex(n=>n.id===e);if(t===-1){console.warn(`Injection route with id ${e} does not exist. Skipping unregistration.`);return}r.domInjections.routes.splice(t,1),r.domInjections.removeRoot(e)},le=(e,r)=>{let t=e.split("/").filter(Boolean),n=r.split("/").filter(Boolean);if(t.length!==n.length)return null;let o={};for(let a=0;a<t.length;a++)if(t[a].startsWith(":"))o[t[a].replace(/^:/,"")]=n[a];else if(t[a]!==n[a])return null;return o},ii=e=>{let t=e?.getState()?.admin_app?.theme?.currentTheme;requestAnimationFrame(()=>{e?.dispatch({type:"admin/setAppTheme",payload:"light"})}),requestAnimationFrame(()=>{e?.dispatch({type:"admin/setAppTheme",payload:"dark"})}),requestAnimationFrame(()=>{e?.dispatch({type:"admin/setAppTheme",payload:t})})};var ip=e=>{let r=e.domInjections;if(r)return r;ri(e);let t={routes:[],roots:{},registerRoute:n=>ti(n,e),unregisterRoute:n=>ni(n,e),getRoot:n=>e.domInjections?.roots[n],setRoot:(n,o)=>{e.domInjections&&(e.domInjections.roots[n]=o)},removeRoot:n=>{if(!e.domInjections)return;let o=e.domInjections.roots[n];o&&(setTimeout(()=>o.unmount(),0),delete e.domInjections.roots[n],e.store&&ii(e.store))}};return e.domInjections=t,t};0&&(module.exports={initialiseInjections});
|
|
1
|
+
"use strict";var oi=Object.create;var G=Object.defineProperty;var ai=Object.getOwnPropertyDescriptor;var si=Object.getOwnPropertyNames;var ui=Object.getPrototypeOf,ci=Object.prototype.hasOwnProperty;var i=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),pi=(e,r)=>{for(var t in r)G(e,t,{get:r[t],enumerable:!0})},he=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of si(r))!ci.call(e,o)&&o!==t&&G(e,o,{get:()=>r[o],enumerable:!(n=ai(r,o))||n.enumerable});return e};var fi=(e,r,t)=>(t=e!=null?oi(ui(e)):{},he(r||!e||!e.__esModule?G(t,"default",{value:e,enumerable:!0}):t,e)),li=e=>he(G({},"__esModule",{value:!0}),e);var H=i((sp,ge)=>{"use strict";function di(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}ge.exports=di});var $=i((up,ve)=>{"use strict";function hi(e){return e}ve.exports=hi});var qe=i((cp,ye)=>{"use strict";var gi=H(),me=Math.max;function vi(e,r,t){return r=me(r===void 0?e.length-1:r,0),function(){for(var n=arguments,o=-1,a=me(n.length-r,0),u=Array(a);++o<a;)u[o]=n[r+o];o=-1;for(var s=Array(r+1);++o<r;)s[o]=n[o];return s[r]=t(u),gi(e,this,s)}}ye.exports=vi});var xe=i((pp,be)=>{"use strict";function mi(e){return function(){return e}}be.exports=mi});var K=i((fp,je)=>{"use strict";var yi=typeof global=="object"&&global&&global.Object===Object&&global;je.exports=yi});var v=i((lp,_e)=>{"use strict";var qi=K(),bi=typeof self=="object"&&self&&self.Object===Object&&self,xi=qi||bi||Function("return this")();_e.exports=xi});var V=i((dp,Ie)=>{"use strict";var ji=v(),_i=ji.Symbol;Ie.exports=_i});var Pe=i((hp,Se)=>{"use strict";var Oe=V(),Te=Object.prototype,Ii=Te.hasOwnProperty,Oi=Te.toString,S=Oe?Oe.toStringTag:void 0;function Ti(e){var r=Ii.call(e,S),t=e[S];try{e[S]=void 0;var n=!0}catch{}var o=Oi.call(e);return n&&(r?e[S]=t:delete e[S]),o}Se.exports=Ti});var we=i((gp,Ae)=>{"use strict";var Si=Object.prototype,Pi=Si.toString;function Ai(e){return Pi.call(e)}Ae.exports=Ai});var P=i((vp,Ee)=>{"use strict";var Ce=V(),wi=Pe(),Ci=we(),Ri="[object Null]",Ei="[object Undefined]",Re=Ce?Ce.toStringTag:void 0;function Mi(e){return e==null?e===void 0?Ei:Ri:Re&&Re in Object(e)?wi(e):Ci(e)}Ee.exports=Mi});var h=i((mp,Me)=>{"use strict";function Di(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}Me.exports=Di});var N=i((yp,De)=>{"use strict";var Li=P(),Fi=h(),Gi="[object AsyncFunction]",Ni="[object Function]",zi="[object GeneratorFunction]",Bi="[object Proxy]";function Ui(e){if(!Fi(e))return!1;var r=Li(e);return r==Ni||r==zi||r==Gi||r==Bi}De.exports=Ui});var Fe=i((qp,Le)=>{"use strict";var Hi=v(),$i=Hi["__core-js_shared__"];Le.exports=$i});var ze=i((bp,Ne)=>{"use strict";var W=Fe(),Ge=(function(){var e=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Ki(e){return!!Ge&&Ge in e}Ne.exports=Ki});var Ue=i((xp,Be)=>{"use strict";var Vi=Function.prototype,Wi=Vi.toString;function Ji(e){if(e!=null){try{return Wi.call(e)}catch{}try{return e+""}catch{}}return""}Be.exports=Ji});var $e=i((jp,He)=>{"use strict";var Qi=N(),Xi=ze(),Yi=h(),Zi=Ue(),ki=/[\\^$.*+?()[\]{}|]/g,eo=/^\[object .+?Constructor\]$/,ro=Function.prototype,to=Object.prototype,no=ro.toString,io=to.hasOwnProperty,oo=RegExp("^"+no.call(io).replace(ki,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ao(e){if(!Yi(e)||Xi(e))return!1;var r=Qi(e)?oo:eo;return r.test(Zi(e))}He.exports=ao});var Ve=i((_p,Ke)=>{"use strict";function so(e,r){return e?.[r]}Ke.exports=so});var z=i((Ip,We)=>{"use strict";var uo=$e(),co=Ve();function po(e,r){var t=co(e,r);return uo(t)?t:void 0}We.exports=po});var J=i((Op,Je)=>{"use strict";var fo=z(),lo=(function(){try{var e=fo(Object,"defineProperty");return e({},"",{}),e}catch{}})();Je.exports=lo});var Ye=i((Tp,Xe)=>{"use strict";var ho=xe(),Qe=J(),go=$(),vo=Qe?function(e,r){return Qe(e,"toString",{configurable:!0,enumerable:!1,value:ho(r),writable:!0})}:go;Xe.exports=vo});var ke=i((Sp,Ze)=>{"use strict";var mo=800,yo=16,qo=Date.now;function bo(e){var r=0,t=0;return function(){var n=qo(),o=yo-(n-t);if(t=n,o>0){if(++r>=mo)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}Ze.exports=bo});var rr=i((Pp,er)=>{"use strict";var xo=Ye(),jo=ke(),_o=jo(xo);er.exports=_o});var Q=i((Ap,tr)=>{"use strict";var Io=$(),Oo=qe(),To=rr();function So(e,r){return To(Oo(e,r,Io),e+"")}tr.exports=So});var ir=i((wp,nr)=>{"use strict";function Po(){this.__data__=[],this.size=0}nr.exports=Po});var A=i((Cp,or)=>{"use strict";function Ao(e,r){return e===r||e!==e&&r!==r}or.exports=Ao});var w=i((Rp,ar)=>{"use strict";var wo=A();function Co(e,r){for(var t=e.length;t--;)if(wo(e[t][0],r))return t;return-1}ar.exports=Co});var ur=i((Ep,sr)=>{"use strict";var Ro=w(),Eo=Array.prototype,Mo=Eo.splice;function Do(e){var r=this.__data__,t=Ro(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():Mo.call(r,t,1),--this.size,!0}sr.exports=Do});var pr=i((Mp,cr)=>{"use strict";var Lo=w();function Fo(e){var r=this.__data__,t=Lo(r,e);return t<0?void 0:r[t][1]}cr.exports=Fo});var lr=i((Dp,fr)=>{"use strict";var Go=w();function No(e){return Go(this.__data__,e)>-1}fr.exports=No});var hr=i((Lp,dr)=>{"use strict";var zo=w();function Bo(e,r){var t=this.__data__,n=zo(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}dr.exports=Bo});var C=i((Fp,gr)=>{"use strict";var Uo=ir(),Ho=ur(),$o=pr(),Ko=lr(),Vo=hr();function y(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}y.prototype.clear=Uo;y.prototype.delete=Ho;y.prototype.get=$o;y.prototype.has=Ko;y.prototype.set=Vo;gr.exports=y});var mr=i((Gp,vr)=>{"use strict";var Wo=C();function Jo(){this.__data__=new Wo,this.size=0}vr.exports=Jo});var qr=i((Np,yr)=>{"use strict";function Qo(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}yr.exports=Qo});var xr=i((zp,br)=>{"use strict";function Xo(e){return this.__data__.get(e)}br.exports=Xo});var _r=i((Bp,jr)=>{"use strict";function Yo(e){return this.__data__.has(e)}jr.exports=Yo});var X=i((Up,Ir)=>{"use strict";var Zo=z(),ko=v(),ea=Zo(ko,"Map");Ir.exports=ea});var R=i((Hp,Or)=>{"use strict";var ra=z(),ta=ra(Object,"create");Or.exports=ta});var Pr=i(($p,Sr)=>{"use strict";var Tr=R();function na(){this.__data__=Tr?Tr(null):{},this.size=0}Sr.exports=na});var wr=i((Kp,Ar)=>{"use strict";function ia(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}Ar.exports=ia});var Rr=i((Vp,Cr)=>{"use strict";var oa=R(),aa="__lodash_hash_undefined__",sa=Object.prototype,ua=sa.hasOwnProperty;function ca(e){var r=this.__data__;if(oa){var t=r[e];return t===aa?void 0:t}return ua.call(r,e)?r[e]:void 0}Cr.exports=ca});var Mr=i((Wp,Er)=>{"use strict";var pa=R(),fa=Object.prototype,la=fa.hasOwnProperty;function da(e){var r=this.__data__;return pa?r[e]!==void 0:la.call(r,e)}Er.exports=da});var Lr=i((Jp,Dr)=>{"use strict";var ha=R(),ga="__lodash_hash_undefined__";function va(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=ha&&r===void 0?ga:r,this}Dr.exports=va});var Gr=i((Qp,Fr)=>{"use strict";var ma=Pr(),ya=wr(),qa=Rr(),ba=Mr(),xa=Lr();function q(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}q.prototype.clear=ma;q.prototype.delete=ya;q.prototype.get=qa;q.prototype.has=ba;q.prototype.set=xa;Fr.exports=q});var Br=i((Xp,zr)=>{"use strict";var Nr=Gr(),ja=C(),_a=X();function Ia(){this.size=0,this.__data__={hash:new Nr,map:new(_a||ja),string:new Nr}}zr.exports=Ia});var Hr=i((Yp,Ur)=>{"use strict";function Oa(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}Ur.exports=Oa});var E=i((Zp,$r)=>{"use strict";var Ta=Hr();function Sa(e,r){var t=e.__data__;return Ta(r)?t[typeof r=="string"?"string":"hash"]:t.map}$r.exports=Sa});var Vr=i((kp,Kr)=>{"use strict";var Pa=E();function Aa(e){var r=Pa(this,e).delete(e);return this.size-=r?1:0,r}Kr.exports=Aa});var Jr=i((ef,Wr)=>{"use strict";var wa=E();function Ca(e){return wa(this,e).get(e)}Wr.exports=Ca});var Xr=i((rf,Qr)=>{"use strict";var Ra=E();function Ea(e){return Ra(this,e).has(e)}Qr.exports=Ea});var Zr=i((tf,Yr)=>{"use strict";var Ma=E();function Da(e,r){var t=Ma(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this}Yr.exports=Da});var et=i((nf,kr)=>{"use strict";var La=Br(),Fa=Vr(),Ga=Jr(),Na=Xr(),za=Zr();function b(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}b.prototype.clear=La;b.prototype.delete=Fa;b.prototype.get=Ga;b.prototype.has=Na;b.prototype.set=za;kr.exports=b});var tt=i((of,rt)=>{"use strict";var Ba=C(),Ua=X(),Ha=et(),$a=200;function Ka(e,r){var t=this.__data__;if(t instanceof Ba){var n=t.__data__;if(!Ua||n.length<$a-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new Ha(n)}return t.set(e,r),this.size=t.size,this}rt.exports=Ka});var it=i((af,nt)=>{"use strict";var Va=C(),Wa=mr(),Ja=qr(),Qa=xr(),Xa=_r(),Ya=tt();function x(e){var r=this.__data__=new Va(e);this.size=r.size}x.prototype.clear=Wa;x.prototype.delete=Ja;x.prototype.get=Qa;x.prototype.has=Xa;x.prototype.set=Ya;nt.exports=x});var B=i((sf,at)=>{"use strict";var ot=J();function Za(e,r,t){r=="__proto__"&&ot?ot(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}at.exports=Za});var Y=i((uf,st)=>{"use strict";var ka=B(),es=A();function rs(e,r,t){(t!==void 0&&!es(e[r],t)||t===void 0&&!(r in e))&&ka(e,r,t)}st.exports=rs});var ct=i((cf,ut)=>{"use strict";function ts(e){return function(r,t,n){for(var o=-1,a=Object(r),u=n(r),s=u.length;s--;){var c=u[e?s:++o];if(t(a[c],c,a)===!1)break}return r}}ut.exports=ts});var ft=i((pf,pt)=>{"use strict";var ns=ct(),is=ns();pt.exports=is});var vt=i((M,j)=>{"use strict";var os=v(),gt=typeof M=="object"&&M&&!M.nodeType&&M,lt=gt&&typeof j=="object"&&j&&!j.nodeType&&j,as=lt&<.exports===gt,dt=as?os.Buffer:void 0,ht=dt?dt.allocUnsafe:void 0;function ss(e,r){if(r)return e.slice();var t=e.length,n=ht?ht(t):new e.constructor(t);return e.copy(n),n}j.exports=ss});var yt=i((ff,mt)=>{"use strict";var us=v(),cs=us.Uint8Array;mt.exports=cs});var xt=i((lf,bt)=>{"use strict";var qt=yt();function ps(e){var r=new e.constructor(e.byteLength);return new qt(r).set(new qt(e)),r}bt.exports=ps});var _t=i((df,jt)=>{"use strict";var fs=xt();function ls(e,r){var t=r?fs(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}jt.exports=ls});var Ot=i((hf,It)=>{"use strict";function ds(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}It.exports=ds});var Pt=i((gf,St)=>{"use strict";var hs=h(),Tt=Object.create,gs=(function(){function e(){}return function(r){if(!hs(r))return{};if(Tt)return Tt(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}})();St.exports=gs});var wt=i((vf,At)=>{"use strict";function vs(e,r){return function(t){return e(r(t))}}At.exports=vs});var Z=i((mf,Ct)=>{"use strict";var ms=wt(),ys=ms(Object.getPrototypeOf,Object);Ct.exports=ys});var k=i((yf,Rt)=>{"use strict";var qs=Object.prototype;function bs(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||qs;return e===t}Rt.exports=bs});var Mt=i((qf,Et)=>{"use strict";var xs=Pt(),js=Z(),_s=k();function Is(e){return typeof e.constructor=="function"&&!_s(e)?xs(js(e)):{}}Et.exports=Is});var _=i((bf,Dt)=>{"use strict";function Os(e){return e!=null&&typeof e=="object"}Dt.exports=Os});var Ft=i((xf,Lt)=>{"use strict";var Ts=P(),Ss=_(),Ps="[object Arguments]";function As(e){return Ss(e)&&Ts(e)==Ps}Lt.exports=As});var ee=i((jf,zt)=>{"use strict";var Gt=Ft(),ws=_(),Nt=Object.prototype,Cs=Nt.hasOwnProperty,Rs=Nt.propertyIsEnumerable,Es=Gt((function(){return arguments})())?Gt:function(e){return ws(e)&&Cs.call(e,"callee")&&!Rs.call(e,"callee")};zt.exports=Es});var re=i((_f,Bt)=>{"use strict";var Ms=Array.isArray;Bt.exports=Ms});var te=i((If,Ut)=>{"use strict";var Ds=9007199254740991;function Ls(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ds}Ut.exports=Ls});var U=i((Of,Ht)=>{"use strict";var Fs=N(),Gs=te();function Ns(e){return e!=null&&Gs(e.length)&&!Fs(e)}Ht.exports=Ns});var Kt=i((Tf,$t)=>{"use strict";var zs=U(),Bs=_();function Us(e){return Bs(e)&&zs(e)}$t.exports=Us});var Wt=i((Sf,Vt)=>{"use strict";function Hs(){return!1}Vt.exports=Hs});var ne=i((D,I)=>{"use strict";var $s=v(),Ks=Wt(),Xt=typeof D=="object"&&D&&!D.nodeType&&D,Jt=Xt&&typeof I=="object"&&I&&!I.nodeType&&I,Vs=Jt&&Jt.exports===Xt,Qt=Vs?$s.Buffer:void 0,Ws=Qt?Qt.isBuffer:void 0,Js=Ws||Ks;I.exports=Js});var kt=i((Pf,Zt)=>{"use strict";var Qs=P(),Xs=Z(),Ys=_(),Zs="[object Object]",ks=Function.prototype,eu=Object.prototype,Yt=ks.toString,ru=eu.hasOwnProperty,tu=Yt.call(Object);function nu(e){if(!Ys(e)||Qs(e)!=Zs)return!1;var r=Xs(e);if(r===null)return!0;var t=ru.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&Yt.call(t)==tu}Zt.exports=nu});var rn=i((Af,en)=>{"use strict";var iu=P(),ou=te(),au=_(),su="[object Arguments]",uu="[object Array]",cu="[object Boolean]",pu="[object Date]",fu="[object Error]",lu="[object Function]",du="[object Map]",hu="[object Number]",gu="[object Object]",vu="[object RegExp]",mu="[object Set]",yu="[object String]",qu="[object WeakMap]",bu="[object ArrayBuffer]",xu="[object DataView]",ju="[object Float32Array]",_u="[object Float64Array]",Iu="[object Int8Array]",Ou="[object Int16Array]",Tu="[object Int32Array]",Su="[object Uint8Array]",Pu="[object Uint8ClampedArray]",Au="[object Uint16Array]",wu="[object Uint32Array]",p={};p[ju]=p[_u]=p[Iu]=p[Ou]=p[Tu]=p[Su]=p[Pu]=p[Au]=p[wu]=!0;p[su]=p[uu]=p[bu]=p[cu]=p[xu]=p[pu]=p[fu]=p[lu]=p[du]=p[hu]=p[gu]=p[vu]=p[mu]=p[yu]=p[qu]=!1;function Cu(e){return au(e)&&ou(e.length)&&!!p[iu(e)]}en.exports=Cu});var nn=i((wf,tn)=>{"use strict";function Ru(e){return function(r){return e(r)}}tn.exports=Ru});var an=i((L,O)=>{"use strict";var Eu=K(),on=typeof L=="object"&&L&&!L.nodeType&&L,F=on&&typeof O=="object"&&O&&!O.nodeType&&O,Mu=F&&F.exports===on,ie=Mu&&Eu.process,Du=(function(){try{var e=F&&F.require&&F.require("util").types;return e||ie&&ie.binding&&ie.binding("util")}catch{}})();O.exports=Du});var oe=i((Cf,cn)=>{"use strict";var Lu=rn(),Fu=nn(),sn=an(),un=sn&&sn.isTypedArray,Gu=un?Fu(un):Lu;cn.exports=Gu});var ae=i((Rf,pn)=>{"use strict";function Nu(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}pn.exports=Nu});var ln=i((Ef,fn)=>{"use strict";var zu=B(),Bu=A(),Uu=Object.prototype,Hu=Uu.hasOwnProperty;function $u(e,r,t){var n=e[r];(!(Hu.call(e,r)&&Bu(n,t))||t===void 0&&!(r in e))&&zu(e,r,t)}fn.exports=$u});var hn=i((Mf,dn)=>{"use strict";var Ku=ln(),Vu=B();function Wu(e,r,t,n){var o=!t;t||(t={});for(var a=-1,u=r.length;++a<u;){var s=r[a],c=n?n(t[s],e[s],s,t,e):void 0;c===void 0&&(c=e[s]),o?Vu(t,s,c):Ku(t,s,c)}return t}dn.exports=Wu});var vn=i((Df,gn)=>{"use strict";function Ju(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}gn.exports=Ju});var se=i((Lf,mn)=>{"use strict";var Qu=9007199254740991,Xu=/^(?:0|[1-9]\d*)$/;function Yu(e,r){var t=typeof e;return r=r??Qu,!!r&&(t=="number"||t!="symbol"&&Xu.test(e))&&e>-1&&e%1==0&&e<r}mn.exports=Yu});var qn=i((Ff,yn)=>{"use strict";var Zu=vn(),ku=ee(),ec=re(),rc=ne(),tc=se(),nc=oe(),ic=Object.prototype,oc=ic.hasOwnProperty;function ac(e,r){var t=ec(e),n=!t&&ku(e),o=!t&&!n&&rc(e),a=!t&&!n&&!o&&nc(e),u=t||n||o||a,s=u?Zu(e.length,String):[],c=s.length;for(var l in e)(r||oc.call(e,l))&&!(u&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||tc(l,c)))&&s.push(l);return s}yn.exports=ac});var xn=i((Gf,bn)=>{"use strict";function sc(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}bn.exports=sc});var _n=i((Nf,jn)=>{"use strict";var uc=h(),cc=k(),pc=xn(),fc=Object.prototype,lc=fc.hasOwnProperty;function dc(e){if(!uc(e))return pc(e);var r=cc(e),t=[];for(var n in e)n=="constructor"&&(r||!lc.call(e,n))||t.push(n);return t}jn.exports=dc});var ue=i((zf,In)=>{"use strict";var hc=qn(),gc=_n(),vc=U();function mc(e){return vc(e)?hc(e,!0):gc(e)}In.exports=mc});var Tn=i((Bf,On)=>{"use strict";var yc=hn(),qc=ue();function bc(e){return yc(e,qc(e))}On.exports=bc});var Rn=i((Uf,Cn)=>{"use strict";var Sn=Y(),xc=vt(),jc=_t(),_c=Ot(),Ic=Mt(),Pn=ee(),An=re(),Oc=Kt(),Tc=ne(),Sc=N(),Pc=h(),Ac=kt(),wc=oe(),wn=ae(),Cc=Tn();function Rc(e,r,t,n,o,a,u){var s=wn(e,t),c=wn(r,t),l=u.get(c);if(l){Sn(e,t,l);return}var f=a?a(s,c,t+"",e,r,u):void 0,d=f===void 0;if(d){var m=An(c),T=!m&&Tc(c),de=!m&&!T&&wc(c);f=c,m||T||de?An(s)?f=s:Oc(s)?f=_c(s):T?(d=!1,f=xc(c,!0)):de?(d=!1,f=jc(c,!0)):f=[]:Ac(c)||Pn(c)?(f=s,Pn(s)?f=Cc(s):(!Pc(s)||Sc(s))&&(f=Ic(c))):d=!1}d&&(u.set(c,f),o(f,c,n,a,u),u.delete(c)),Sn(e,t,f)}Cn.exports=Rc});var ce=i((Hf,Mn)=>{"use strict";var Ec=it(),Mc=Y(),Dc=ft(),Lc=Rn(),Fc=h(),Gc=ue(),Nc=ae();function En(e,r,t,n,o){e!==r&&Dc(r,function(a,u){if(o||(o=new Ec),Fc(a))Lc(e,r,u,t,En,n,o);else{var s=n?n(Nc(e,u),a,u+"",e,r,o):void 0;s===void 0&&(s=a),Mc(e,u,s)}},Gc)}Mn.exports=En});var Gn=i(($f,Fn)=>{"use strict";var zc=ce(),Dn=h();function Ln(e,r,t,n,o,a){return Dn(e)&&Dn(r)&&(a.set(r,e),zc(e,r,void 0,Ln,a),a.delete(r)),e}Fn.exports=Ln});var zn=i((Kf,Nn)=>{"use strict";var Bc=A(),Uc=U(),Hc=se(),$c=h();function Kc(e,r,t){if(!$c(t))return!1;var n=typeof r;return(n=="number"?Uc(t)&&Hc(r,t.length):n=="string"&&r in t)?Bc(t[r],e):!1}Nn.exports=Kc});var Un=i((Vf,Bn)=>{"use strict";var Vc=Q(),Wc=zn();function Jc(e){return Vc(function(r,t){var n=-1,o=t.length,a=o>1?t[o-1]:void 0,u=o>2?t[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,u&&Wc(t[0],t[1],u)&&(a=o<3?void 0:a,o=1),r=Object(r);++n<o;){var s=t[n];s&&e(r,s,n,a)}return r})}Bn.exports=Jc});var $n=i((Wf,Hn)=>{"use strict";var Qc=ce(),Xc=Un(),Yc=Xc(function(e,r,t,n){Qc(e,r,t,n)});Hn.exports=Yc});var Vn=i((Jf,Kn)=>{"use strict";var Zc=H(),kc=Q(),ep=Gn(),rp=$n(),tp=kc(function(e){return e.push(void 0,ep),Zc(rp,void 0,e)});Kn.exports=tp});var op={};pi(op,{initialiseInjections:()=>ip});module.exports=li(op);var Yn=require("react-dom/client");var g=require("react"),Wn=require("react-intl"),Jn=require("@strapi/design-system"),Qn=fi(Vn()),pe=require("react/jsx-runtime"),np=({children:e,store:r,configurations:t})=>{let n=(0,g.useSyncExternalStore)(r.subscribe,r.getState),o=n.admin_app.theme.currentTheme||"light",a=n.admin_app.language.locale||"en",u=t.translations||{},[s,c]=(0,g.useState)(matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),l=(0,g.useMemo)(()=>(0,Qn.default)(u[a],u.en),[a,u]),f=(0,g.useMemo)(()=>t.themes[o==="system"?s:o],[o,s,t.themes]);return(0,g.useEffect)(()=>{let d=matchMedia("(prefers-color-scheme: dark)"),m=T=>{c(T.matches?"dark":"light")};return d.addEventListener("change",m),()=>d.removeEventListener("change",m)},[]),(0,pe.jsx)(Jn.DesignSystemProvider,{theme:f,locale:a,children:(0,pe.jsx)(Wn.IntlProvider,{locale:a,messages:l,children:e})})},Xn=np;var fe=require("react/jsx-runtime"),Zn=async(e,r,t)=>{let n=r.domInjections;if(!n){console.warn("Injection system not initialised. Please call initialiseInjections(app) before registering injection routes.");return}document.querySelector(`#${t.id}`)||n.removeRoot(t.id);let a=le(t.route,e.location.pathname);if(!a)return;let u=t.Component(),s=await kn(t.selector);if(!s||!le(t.route,window.location.pathname))return;if(!n.getRoot(t.id)){let d=document.getElementById(t.id);d||(d=document.createElement("div"),d.id=t.id,s.after(d)),n.setRoot(t.id,(0,Yn.createRoot)(d))}let l=(await u).default,f=n.getRoot(t.id);f&&f.render((0,fe.jsx)(Xn,{store:r.store,configurations:r.configurations,children:(0,fe.jsx)(l,{...a})}))};var ri=async e=>{let r=e.router,t=0;for(;!r?.router?.state?.location&&t<100;)await new Promise(n=>setTimeout(n,10)),t++;if(!r?.router?.state?.location){console.warn("Strapi router not ready after 5s, skipping injection initialization.");return}r.router.subscribe(n=>ei(n,e)),ei(r.router.state,e)},ei=(e,r)=>{let t=r.domInjections?.routes||[];Promise.all(t.map(n=>Zn(e,r,n)))},kn=(e,r=5e3)=>new Promise(t=>{let n=document.querySelector(e);if(n)return t(n);let o=new MutationObserver(()=>{let a=document.querySelector(e);a&&(o.disconnect(),t(a))});o.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>{o.disconnect(),t(null)},r)}),ti=(e,r)=>{if(!r.domInjections?.routes){console.warn("Injection system not initialised. Please call initialiseInjections(app) before registering injection routes.");return}let{id:t,...n}=e;if(t&&r.domInjections.routes.some(a=>a.id===t)){console.warn(`Injection route with id ${t} already exists. Skipping registration.`);return}let o=t||`injection-${Math.random().toString(36).substring(2,9)}`;r.domInjections.routes.push({id:o,...n})},ni=(e,r)=>{if(!r.domInjections?.routes){console.warn("Injection system not initialised. Please call initialiseInjections(app) before unregistering injection routes.");return}let t=r.domInjections.routes.findIndex(n=>n.id===e);if(t===-1){console.warn(`Injection route with id ${e} does not exist. Skipping unregistration.`);return}r.domInjections.routes.splice(t,1),r.domInjections.removeRoot(e)},le=(e,r)=>{let t=e.split("/").filter(Boolean),n=r.split("/").filter(Boolean);if(t.length!==n.length)return null;let o={};for(let a=0;a<t.length;a++)if(t[a].startsWith(":"))o[t[a].replace(/^:/,"")]=n[a];else if(t[a]!==n[a])return null;return o},ii=e=>{let t=e?.getState()?.admin_app?.theme?.currentTheme;requestAnimationFrame(()=>{e?.dispatch({type:"admin/setAppTheme",payload:"light"})}),requestAnimationFrame(()=>{e?.dispatch({type:"admin/setAppTheme",payload:"dark"})}),requestAnimationFrame(()=>{e?.dispatch({type:"admin/setAppTheme",payload:t})})};var ip=e=>{let r=e.domInjections;if(r)return r;ri(e);let t={routes:[],roots:{},registerRoute:n=>ti(n,e),unregisterRoute:n=>ni(n,e),getRoot:n=>e.domInjections?.roots[n],setRoot:(n,o)=>{e.domInjections&&(e.domInjections.roots[n]=o)},removeRoot:n=>{if(!e.domInjections)return;let o=e.domInjections.roots[n];o&&(setTimeout(()=>{o.unmount(),e.store&&ii(e.store)},0),delete e.domInjections.roots[n])}};return e.domInjections=t,t};0&&(module.exports={initialiseInjections});
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var ri=Object.create;var pe=Object.defineProperty;var ti=Object.getOwnPropertyDescriptor;var ni=Object.getOwnPropertyNames;var ii=Object.getPrototypeOf,oi=Object.prototype.hasOwnProperty;var i=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var ai=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of ni(r))!oi.call(e,o)&&o!==t&&pe(e,o,{get:()=>r[o],enumerable:!(n=ti(r,o))||n.enumerable});return e};var si=(e,r,t)=>(t=e!=null?ri(ii(e)):{},ai(r||!e||!e.__esModule?pe(t,"default",{value:e,enumerable:!0}):t,e));var B=i((ap,fe)=>{"use strict";function ui(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}fe.exports=ui});var U=i((sp,le)=>{"use strict";function ci(e){return e}le.exports=ci});var ge=i((up,he)=>{"use strict";var pi=B(),de=Math.max;function fi(e,r,t){return r=de(r===void 0?e.length-1:r,0),function(){for(var n=arguments,o=-1,a=de(n.length-r,0),u=Array(a);++o<a;)u[o]=n[r+o];o=-1;for(var s=Array(r+1);++o<r;)s[o]=n[o];return s[r]=t(u),pi(e,this,s)}}he.exports=fi});var me=i((cp,ve)=>{"use strict";function li(e){return function(){return e}}ve.exports=li});var H=i((pp,ye)=>{"use strict";var di=typeof global=="object"&&global&&global.Object===Object&&global;ye.exports=di});var g=i((fp,qe)=>{"use strict";var hi=H(),gi=typeof self=="object"&&self&&self.Object===Object&&self,vi=hi||gi||Function("return this")();qe.exports=vi});var $=i((lp,be)=>{"use strict";var mi=g(),yi=mi.Symbol;be.exports=yi});var Ie=i((dp,_e)=>{"use strict";var xe=$(),je=Object.prototype,qi=je.hasOwnProperty,bi=je.toString,T=xe?xe.toStringTag:void 0;function xi(e){var r=qi.call(e,T),t=e[T];try{e[T]=void 0;var n=!0}catch{}var o=bi.call(e);return n&&(r?e[T]=t:delete e[T]),o}_e.exports=xi});var Te=i((hp,Oe)=>{"use strict";var ji=Object.prototype,_i=ji.toString;function Ii(e){return _i.call(e)}Oe.exports=Ii});var S=i((gp,Ae)=>{"use strict";var Se=$(),Oi=Ie(),Ti=Te(),Si="[object Null]",Pi="[object Undefined]",Pe=Se?Se.toStringTag:void 0;function Ai(e){return e==null?e===void 0?Pi:Si:Pe&&Pe in Object(e)?Oi(e):Ti(e)}Ae.exports=Ai});var h=i((vp,we)=>{"use strict";function wi(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}we.exports=wi});var F=i((mp,Ce)=>{"use strict";var Ci=S(),Ri=h(),Ei="[object AsyncFunction]",Mi="[object Function]",Di="[object GeneratorFunction]",Li="[object Proxy]";function Fi(e){if(!Ri(e))return!1;var r=Ci(e);return r==Mi||r==Di||r==Ei||r==Li}Ce.exports=Fi});var Ee=i((yp,Re)=>{"use strict";var Gi=g(),Ni=Gi["__core-js_shared__"];Re.exports=Ni});var Le=i((qp,De)=>{"use strict";var K=Ee(),Me=(function(){var e=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function zi(e){return!!Me&&Me in e}De.exports=zi});var Ge=i((bp,Fe)=>{"use strict";var Bi=Function.prototype,Ui=Bi.toString;function Hi(e){if(e!=null){try{return Ui.call(e)}catch{}try{return e+""}catch{}}return""}Fe.exports=Hi});var ze=i((xp,Ne)=>{"use strict";var $i=F(),Ki=Le(),Vi=h(),Wi=Ge(),Ji=/[\\^$.*+?()[\]{}|]/g,Qi=/^\[object .+?Constructor\]$/,Xi=Function.prototype,Yi=Object.prototype,Zi=Xi.toString,ki=Yi.hasOwnProperty,eo=RegExp("^"+Zi.call(ki).replace(Ji,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ro(e){if(!Vi(e)||Ki(e))return!1;var r=$i(e)?eo:Qi;return r.test(Wi(e))}Ne.exports=ro});var Ue=i((jp,Be)=>{"use strict";function to(e,r){return e?.[r]}Be.exports=to});var G=i((_p,He)=>{"use strict";var no=ze(),io=Ue();function oo(e,r){var t=io(e,r);return no(t)?t:void 0}He.exports=oo});var V=i((Ip,$e)=>{"use strict";var ao=G(),so=(function(){try{var e=ao(Object,"defineProperty");return e({},"",{}),e}catch{}})();$e.exports=so});var We=i((Op,Ve)=>{"use strict";var uo=me(),Ke=V(),co=U(),po=Ke?function(e,r){return Ke(e,"toString",{configurable:!0,enumerable:!1,value:uo(r),writable:!0})}:co;Ve.exports=po});var Qe=i((Tp,Je)=>{"use strict";var fo=800,lo=16,ho=Date.now;function go(e){var r=0,t=0;return function(){var n=ho(),o=lo-(n-t);if(t=n,o>0){if(++r>=fo)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}Je.exports=go});var Ye=i((Sp,Xe)=>{"use strict";var vo=We(),mo=Qe(),yo=mo(vo);Xe.exports=yo});var W=i((Pp,Ze)=>{"use strict";var qo=U(),bo=ge(),xo=Ye();function jo(e,r){return xo(bo(e,r,qo),e+"")}Ze.exports=jo});var er=i((Ap,ke)=>{"use strict";function _o(){this.__data__=[],this.size=0}ke.exports=_o});var P=i((wp,rr)=>{"use strict";function Io(e,r){return e===r||e!==e&&r!==r}rr.exports=Io});var A=i((Cp,tr)=>{"use strict";var Oo=P();function To(e,r){for(var t=e.length;t--;)if(Oo(e[t][0],r))return t;return-1}tr.exports=To});var ir=i((Rp,nr)=>{"use strict";var So=A(),Po=Array.prototype,Ao=Po.splice;function wo(e){var r=this.__data__,t=So(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():Ao.call(r,t,1),--this.size,!0}nr.exports=wo});var ar=i((Ep,or)=>{"use strict";var Co=A();function Ro(e){var r=this.__data__,t=Co(r,e);return t<0?void 0:r[t][1]}or.exports=Ro});var ur=i((Mp,sr)=>{"use strict";var Eo=A();function Mo(e){return Eo(this.__data__,e)>-1}sr.exports=Mo});var pr=i((Dp,cr)=>{"use strict";var Do=A();function Lo(e,r){var t=this.__data__,n=Do(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}cr.exports=Lo});var w=i((Lp,fr)=>{"use strict";var Fo=er(),Go=ir(),No=ar(),zo=ur(),Bo=pr();function m(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}m.prototype.clear=Fo;m.prototype.delete=Go;m.prototype.get=No;m.prototype.has=zo;m.prototype.set=Bo;fr.exports=m});var dr=i((Fp,lr)=>{"use strict";var Uo=w();function Ho(){this.__data__=new Uo,this.size=0}lr.exports=Ho});var gr=i((Gp,hr)=>{"use strict";function $o(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}hr.exports=$o});var mr=i((Np,vr)=>{"use strict";function Ko(e){return this.__data__.get(e)}vr.exports=Ko});var qr=i((zp,yr)=>{"use strict";function Vo(e){return this.__data__.has(e)}yr.exports=Vo});var J=i((Bp,br)=>{"use strict";var Wo=G(),Jo=g(),Qo=Wo(Jo,"Map");br.exports=Qo});var C=i((Up,xr)=>{"use strict";var Xo=G(),Yo=Xo(Object,"create");xr.exports=Yo});var Ir=i((Hp,_r)=>{"use strict";var jr=C();function Zo(){this.__data__=jr?jr(null):{},this.size=0}_r.exports=Zo});var Tr=i(($p,Or)=>{"use strict";function ko(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}Or.exports=ko});var Pr=i((Kp,Sr)=>{"use strict";var ea=C(),ra="__lodash_hash_undefined__",ta=Object.prototype,na=ta.hasOwnProperty;function ia(e){var r=this.__data__;if(ea){var t=r[e];return t===ra?void 0:t}return na.call(r,e)?r[e]:void 0}Sr.exports=ia});var wr=i((Vp,Ar)=>{"use strict";var oa=C(),aa=Object.prototype,sa=aa.hasOwnProperty;function ua(e){var r=this.__data__;return oa?r[e]!==void 0:sa.call(r,e)}Ar.exports=ua});var Rr=i((Wp,Cr)=>{"use strict";var ca=C(),pa="__lodash_hash_undefined__";function fa(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=ca&&r===void 0?pa:r,this}Cr.exports=fa});var Mr=i((Jp,Er)=>{"use strict";var la=Ir(),da=Tr(),ha=Pr(),ga=wr(),va=Rr();function y(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}y.prototype.clear=la;y.prototype.delete=da;y.prototype.get=ha;y.prototype.has=ga;y.prototype.set=va;Er.exports=y});var Fr=i((Qp,Lr)=>{"use strict";var Dr=Mr(),ma=w(),ya=J();function qa(){this.size=0,this.__data__={hash:new Dr,map:new(ya||ma),string:new Dr}}Lr.exports=qa});var Nr=i((Xp,Gr)=>{"use strict";function ba(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}Gr.exports=ba});var R=i((Yp,zr)=>{"use strict";var xa=Nr();function ja(e,r){var t=e.__data__;return xa(r)?t[typeof r=="string"?"string":"hash"]:t.map}zr.exports=ja});var Ur=i((Zp,Br)=>{"use strict";var _a=R();function Ia(e){var r=_a(this,e).delete(e);return this.size-=r?1:0,r}Br.exports=Ia});var $r=i((kp,Hr)=>{"use strict";var Oa=R();function Ta(e){return Oa(this,e).get(e)}Hr.exports=Ta});var Vr=i((ef,Kr)=>{"use strict";var Sa=R();function Pa(e){return Sa(this,e).has(e)}Kr.exports=Pa});var Jr=i((rf,Wr)=>{"use strict";var Aa=R();function wa(e,r){var t=Aa(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this}Wr.exports=wa});var Xr=i((tf,Qr)=>{"use strict";var Ca=Fr(),Ra=Ur(),Ea=$r(),Ma=Vr(),Da=Jr();function q(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}q.prototype.clear=Ca;q.prototype.delete=Ra;q.prototype.get=Ea;q.prototype.has=Ma;q.prototype.set=Da;Qr.exports=q});var Zr=i((nf,Yr)=>{"use strict";var La=w(),Fa=J(),Ga=Xr(),Na=200;function za(e,r){var t=this.__data__;if(t instanceof La){var n=t.__data__;if(!Fa||n.length<Na-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new Ga(n)}return t.set(e,r),this.size=t.size,this}Yr.exports=za});var et=i((of,kr)=>{"use strict";var Ba=w(),Ua=dr(),Ha=gr(),$a=mr(),Ka=qr(),Va=Zr();function b(e){var r=this.__data__=new Ba(e);this.size=r.size}b.prototype.clear=Ua;b.prototype.delete=Ha;b.prototype.get=$a;b.prototype.has=Ka;b.prototype.set=Va;kr.exports=b});var N=i((af,tt)=>{"use strict";var rt=V();function Wa(e,r,t){r=="__proto__"&&rt?rt(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}tt.exports=Wa});var Q=i((sf,nt)=>{"use strict";var Ja=N(),Qa=P();function Xa(e,r,t){(t!==void 0&&!Qa(e[r],t)||t===void 0&&!(r in e))&&Ja(e,r,t)}nt.exports=Xa});var ot=i((uf,it)=>{"use strict";function Ya(e){return function(r,t,n){for(var o=-1,a=Object(r),u=n(r),s=u.length;s--;){var c=u[e?s:++o];if(t(a[c],c,a)===!1)break}return r}}it.exports=Ya});var st=i((cf,at)=>{"use strict";var Za=ot(),ka=Za();at.exports=ka});var lt=i((E,x)=>{"use strict";var es=g(),ft=typeof E=="object"&&E&&!E.nodeType&&E,ut=ft&&typeof x=="object"&&x&&!x.nodeType&&x,rs=ut&&ut.exports===ft,ct=rs?es.Buffer:void 0,pt=ct?ct.allocUnsafe:void 0;function ts(e,r){if(r)return e.slice();var t=e.length,n=pt?pt(t):new e.constructor(t);return e.copy(n),n}x.exports=ts});var ht=i((pf,dt)=>{"use strict";var ns=g(),is=ns.Uint8Array;dt.exports=is});var mt=i((ff,vt)=>{"use strict";var gt=ht();function os(e){var r=new e.constructor(e.byteLength);return new gt(r).set(new gt(e)),r}vt.exports=os});var qt=i((lf,yt)=>{"use strict";var as=mt();function ss(e,r){var t=r?as(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}yt.exports=ss});var xt=i((df,bt)=>{"use strict";function us(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}bt.exports=us});var It=i((hf,_t)=>{"use strict";var cs=h(),jt=Object.create,ps=(function(){function e(){}return function(r){if(!cs(r))return{};if(jt)return jt(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}})();_t.exports=ps});var Tt=i((gf,Ot)=>{"use strict";function fs(e,r){return function(t){return e(r(t))}}Ot.exports=fs});var X=i((vf,St)=>{"use strict";var ls=Tt(),ds=ls(Object.getPrototypeOf,Object);St.exports=ds});var Y=i((mf,Pt)=>{"use strict";var hs=Object.prototype;function gs(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||hs;return e===t}Pt.exports=gs});var wt=i((yf,At)=>{"use strict";var vs=It(),ms=X(),ys=Y();function qs(e){return typeof e.constructor=="function"&&!ys(e)?vs(ms(e)):{}}At.exports=qs});var j=i((qf,Ct)=>{"use strict";function bs(e){return e!=null&&typeof e=="object"}Ct.exports=bs});var Et=i((bf,Rt)=>{"use strict";var xs=S(),js=j(),_s="[object Arguments]";function Is(e){return js(e)&&xs(e)==_s}Rt.exports=Is});var Z=i((xf,Lt)=>{"use strict";var Mt=Et(),Os=j(),Dt=Object.prototype,Ts=Dt.hasOwnProperty,Ss=Dt.propertyIsEnumerable,Ps=Mt((function(){return arguments})())?Mt:function(e){return Os(e)&&Ts.call(e,"callee")&&!Ss.call(e,"callee")};Lt.exports=Ps});var k=i((jf,Ft)=>{"use strict";var As=Array.isArray;Ft.exports=As});var ee=i((_f,Gt)=>{"use strict";var ws=9007199254740991;function Cs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ws}Gt.exports=Cs});var z=i((If,Nt)=>{"use strict";var Rs=F(),Es=ee();function Ms(e){return e!=null&&Es(e.length)&&!Rs(e)}Nt.exports=Ms});var Bt=i((Of,zt)=>{"use strict";var Ds=z(),Ls=j();function Fs(e){return Ls(e)&&Ds(e)}zt.exports=Fs});var Ht=i((Tf,Ut)=>{"use strict";function Gs(){return!1}Ut.exports=Gs});var re=i((M,_)=>{"use strict";var Ns=g(),zs=Ht(),Vt=typeof M=="object"&&M&&!M.nodeType&&M,$t=Vt&&typeof _=="object"&&_&&!_.nodeType&&_,Bs=$t&&$t.exports===Vt,Kt=Bs?Ns.Buffer:void 0,Us=Kt?Kt.isBuffer:void 0,Hs=Us||zs;_.exports=Hs});var Qt=i((Sf,Jt)=>{"use strict";var $s=S(),Ks=X(),Vs=j(),Ws="[object Object]",Js=Function.prototype,Qs=Object.prototype,Wt=Js.toString,Xs=Qs.hasOwnProperty,Ys=Wt.call(Object);function Zs(e){if(!Vs(e)||$s(e)!=Ws)return!1;var r=Ks(e);if(r===null)return!0;var t=Xs.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&Wt.call(t)==Ys}Jt.exports=Zs});var Yt=i((Pf,Xt)=>{"use strict";var ks=S(),eu=ee(),ru=j(),tu="[object Arguments]",nu="[object Array]",iu="[object Boolean]",ou="[object Date]",au="[object Error]",su="[object Function]",uu="[object Map]",cu="[object Number]",pu="[object Object]",fu="[object RegExp]",lu="[object Set]",du="[object String]",hu="[object WeakMap]",gu="[object ArrayBuffer]",vu="[object DataView]",mu="[object Float32Array]",yu="[object Float64Array]",qu="[object Int8Array]",bu="[object Int16Array]",xu="[object Int32Array]",ju="[object Uint8Array]",_u="[object Uint8ClampedArray]",Iu="[object Uint16Array]",Ou="[object Uint32Array]",p={};p[mu]=p[yu]=p[qu]=p[bu]=p[xu]=p[ju]=p[_u]=p[Iu]=p[Ou]=!0;p[tu]=p[nu]=p[gu]=p[iu]=p[vu]=p[ou]=p[au]=p[su]=p[uu]=p[cu]=p[pu]=p[fu]=p[lu]=p[du]=p[hu]=!1;function Tu(e){return ru(e)&&eu(e.length)&&!!p[ks(e)]}Xt.exports=Tu});var kt=i((Af,Zt)=>{"use strict";function Su(e){return function(r){return e(r)}}Zt.exports=Su});var rn=i((D,I)=>{"use strict";var Pu=H(),en=typeof D=="object"&&D&&!D.nodeType&&D,L=en&&typeof I=="object"&&I&&!I.nodeType&&I,Au=L&&L.exports===en,te=Au&&Pu.process,wu=(function(){try{var e=L&&L.require&&L.require("util").types;return e||te&&te.binding&&te.binding("util")}catch{}})();I.exports=wu});var ne=i((wf,on)=>{"use strict";var Cu=Yt(),Ru=kt(),tn=rn(),nn=tn&&tn.isTypedArray,Eu=nn?Ru(nn):Cu;on.exports=Eu});var ie=i((Cf,an)=>{"use strict";function Mu(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}an.exports=Mu});var un=i((Rf,sn)=>{"use strict";var Du=N(),Lu=P(),Fu=Object.prototype,Gu=Fu.hasOwnProperty;function Nu(e,r,t){var n=e[r];(!(Gu.call(e,r)&&Lu(n,t))||t===void 0&&!(r in e))&&Du(e,r,t)}sn.exports=Nu});var pn=i((Ef,cn)=>{"use strict";var zu=un(),Bu=N();function Uu(e,r,t,n){var o=!t;t||(t={});for(var a=-1,u=r.length;++a<u;){var s=r[a],c=n?n(t[s],e[s],s,t,e):void 0;c===void 0&&(c=e[s]),o?Bu(t,s,c):zu(t,s,c)}return t}cn.exports=Uu});var ln=i((Mf,fn)=>{"use strict";function Hu(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}fn.exports=Hu});var oe=i((Df,dn)=>{"use strict";var $u=9007199254740991,Ku=/^(?:0|[1-9]\d*)$/;function Vu(e,r){var t=typeof e;return r=r??$u,!!r&&(t=="number"||t!="symbol"&&Ku.test(e))&&e>-1&&e%1==0&&e<r}dn.exports=Vu});var gn=i((Lf,hn)=>{"use strict";var Wu=ln(),Ju=Z(),Qu=k(),Xu=re(),Yu=oe(),Zu=ne(),ku=Object.prototype,ec=ku.hasOwnProperty;function rc(e,r){var t=Qu(e),n=!t&&Ju(e),o=!t&&!n&&Xu(e),a=!t&&!n&&!o&&Zu(e),u=t||n||o||a,s=u?Wu(e.length,String):[],c=s.length;for(var l in e)(r||ec.call(e,l))&&!(u&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Yu(l,c)))&&s.push(l);return s}hn.exports=rc});var mn=i((Ff,vn)=>{"use strict";function tc(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}vn.exports=tc});var qn=i((Gf,yn)=>{"use strict";var nc=h(),ic=Y(),oc=mn(),ac=Object.prototype,sc=ac.hasOwnProperty;function uc(e){if(!nc(e))return oc(e);var r=ic(e),t=[];for(var n in e)n=="constructor"&&(r||!sc.call(e,n))||t.push(n);return t}yn.exports=uc});var ae=i((Nf,bn)=>{"use strict";var cc=gn(),pc=qn(),fc=z();function lc(e){return fc(e)?cc(e,!0):pc(e)}bn.exports=lc});var jn=i((zf,xn)=>{"use strict";var dc=pn(),hc=ae();function gc(e){return dc(e,hc(e))}xn.exports=gc});var Pn=i((Bf,Sn)=>{"use strict";var _n=Q(),vc=lt(),mc=qt(),yc=xt(),qc=wt(),In=Z(),On=k(),bc=Bt(),xc=re(),jc=F(),_c=h(),Ic=Qt(),Oc=ne(),Tn=ie(),Tc=jn();function Sc(e,r,t,n,o,a,u){var s=Tn(e,t),c=Tn(r,t),l=u.get(c);if(l){_n(e,t,l);return}var f=a?a(s,c,t+"",e,r,u):void 0,d=f===void 0;if(d){var v=On(c),O=!v&&xc(c),ce=!v&&!O&&Oc(c);f=c,v||O||ce?On(s)?f=s:bc(s)?f=yc(s):O?(d=!1,f=vc(c,!0)):ce?(d=!1,f=mc(c,!0)):f=[]:Ic(c)||In(c)?(f=s,In(s)?f=Tc(s):(!_c(s)||jc(s))&&(f=qc(c))):d=!1}d&&(u.set(c,f),o(f,c,n,a,u),u.delete(c)),_n(e,t,f)}Sn.exports=Sc});var se=i((Uf,wn)=>{"use strict";var Pc=et(),Ac=Q(),wc=st(),Cc=Pn(),Rc=h(),Ec=ae(),Mc=ie();function An(e,r,t,n,o){e!==r&&wc(r,function(a,u){if(o||(o=new Pc),Rc(a))Cc(e,r,u,t,An,n,o);else{var s=n?n(Mc(e,u),a,u+"",e,r,o):void 0;s===void 0&&(s=a),Ac(e,u,s)}},Ec)}wn.exports=An});var Mn=i((Hf,En)=>{"use strict";var Dc=se(),Cn=h();function Rn(e,r,t,n,o,a){return Cn(e)&&Cn(r)&&(a.set(r,e),Dc(e,r,void 0,Rn,a),a.delete(r)),e}En.exports=Rn});var Ln=i(($f,Dn)=>{"use strict";var Lc=P(),Fc=z(),Gc=oe(),Nc=h();function zc(e,r,t){if(!Nc(t))return!1;var n=typeof r;return(n=="number"?Fc(t)&&Gc(r,t.length):n=="string"&&r in t)?Lc(t[r],e):!1}Dn.exports=zc});var Gn=i((Kf,Fn)=>{"use strict";var Bc=W(),Uc=Ln();function Hc(e){return Bc(function(r,t){var n=-1,o=t.length,a=o>1?t[o-1]:void 0,u=o>2?t[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,u&&Uc(t[0],t[1],u)&&(a=o<3?void 0:a,o=1),r=Object(r);++n<o;){var s=t[n];s&&e(r,s,n,a)}return r})}Fn.exports=Hc});var zn=i((Vf,Nn)=>{"use strict";var $c=se(),Kc=Gn(),Vc=Kc(function(e,r,t,n){$c(e,r,t,n)});Nn.exports=Vc});var Un=i((Wf,Bn)=>{"use strict";var Wc=B(),Jc=W(),Qc=Mn(),Xc=zn(),Yc=Jc(function(e){return e.push(void 0,Qc),Wc(Xc,void 0,e)});Bn.exports=Yc});import{createRoot as ip}from"react-dom/client";var Kn=si(Un());import{useSyncExternalStore as Zc,useState as kc,useEffect as ep,useMemo as Hn}from"react";import{IntlProvider as rp}from"react-intl";import{DesignSystemProvider as tp}from"@strapi/design-system";import{jsx as $n}from"react/jsx-runtime";var np=({children:e,store:r,configurations:t})=>{let n=Zc(r.subscribe,r.getState),o=n.admin_app.theme.currentTheme||"light",a=n.admin_app.language.locale||"en",u=t.translations||{},[s,c]=kc(matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),l=Hn(()=>(0,Kn.default)(u[a],u.en),[a,u]),f=Hn(()=>t.themes[o==="system"?s:o],[o,s,t.themes]);return ep(()=>{let d=matchMedia("(prefers-color-scheme: dark)"),v=O=>{c(O.matches?"dark":"light")};return d.addEventListener("change",v),()=>d.removeEventListener("change",v)},[]),$n(tp,{theme:f,locale:a,children:$n(rp,{locale:a,messages:l,children:e})})},Vn=np;import{jsx as Wn}from"react/jsx-runtime";var Jn=async(e,r,t)=>{let n=r.domInjections;if(!n){console.warn("Injection system not initialised. Please call initialiseInjections(app) before registering injection routes.");return}document.querySelector(`#${t.id}`)||n.removeRoot(t.id);let a=ue(t.route,e.location.pathname);if(!a)return;let u=t.Component(),s=await Qn(t.selector);if(!s||!ue(t.route,window.location.pathname))return;if(!n.getRoot(t.id)){let d=document.getElementById(t.id);d||(d=document.createElement("div"),d.id=t.id,s.after(d)),n.setRoot(t.id,ip(d))}let l=(await u).default,f=n.getRoot(t.id);f&&f.render(Wn(Vn,{store:r.store,configurations:r.configurations,children:Wn(l,{...a})}))};var Yn=async e=>{let r=e.router,t=0;for(;!r?.router?.state?.location&&t<100;)await new Promise(n=>setTimeout(n,10)),t++;if(!r?.router?.state?.location){console.warn("Strapi router not ready after 5s, skipping injection initialization.");return}r.router.subscribe(n=>Xn(n,e)),Xn(r.router.state,e)},Xn=(e,r)=>{let t=r.domInjections?.routes||[];Promise.all(t.map(n=>Jn(e,r,n)))},Qn=(e,r=5e3)=>new Promise(t=>{let n=document.querySelector(e);if(n)return t(n);let o=new MutationObserver(()=>{let a=document.querySelector(e);a&&(o.disconnect(),t(a))});o.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>{o.disconnect(),t(null)},r)}),Zn=(e,r)=>{if(!r.domInjections?.routes){console.warn("Injection system not initialised. Please call initialiseInjections(app) before registering injection routes.");return}let{id:t,...n}=e;if(t&&r.domInjections.routes.some(a=>a.id===t)){console.warn(`Injection route with id ${t} already exists. Skipping registration.`);return}let o=t||`injection-${Math.random().toString(36).substring(2,9)}`;r.domInjections.routes.push({id:o,...n})},kn=(e,r)=>{if(!r.domInjections?.routes){console.warn("Injection system not initialised. Please call initialiseInjections(app) before unregistering injection routes.");return}let t=r.domInjections.routes.findIndex(n=>n.id===e);if(t===-1){console.warn(`Injection route with id ${e} does not exist. Skipping unregistration.`);return}r.domInjections.routes.splice(t,1),r.domInjections.removeRoot(e)},ue=(e,r)=>{let t=e.split("/").filter(Boolean),n=r.split("/").filter(Boolean);if(t.length!==n.length)return null;let o={};for(let a=0;a<t.length;a++)if(t[a].startsWith(":"))o[t[a].replace(/^:/,"")]=n[a];else if(t[a]!==n[a])return null;return o},ei=e=>{let t=e?.getState()?.admin_app?.theme?.currentTheme;requestAnimationFrame(()=>{e?.dispatch({type:"admin/setAppTheme",payload:"light"})}),requestAnimationFrame(()=>{e?.dispatch({type:"admin/setAppTheme",payload:"dark"})}),requestAnimationFrame(()=>{e?.dispatch({type:"admin/setAppTheme",payload:t})})};var sl=e=>{let r=e.domInjections;if(r)return r;Yn(e);let t={routes:[],roots:{},registerRoute:n=>Zn(n,e),unregisterRoute:n=>kn(n,e),getRoot:n=>e.domInjections?.roots[n],setRoot:(n,o)=>{e.domInjections&&(e.domInjections.roots[n]=o)},removeRoot:n=>{if(!e.domInjections)return;let o=e.domInjections.roots[n];o&&(setTimeout(()=>o.unmount(),0),delete e.domInjections.roots[n],e.store&&ei(e.store))}};return e.domInjections=t,t};export{sl as initialiseInjections};
|
|
1
|
+
var ri=Object.create;var pe=Object.defineProperty;var ti=Object.getOwnPropertyDescriptor;var ni=Object.getOwnPropertyNames;var ii=Object.getPrototypeOf,oi=Object.prototype.hasOwnProperty;var i=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var ai=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of ni(r))!oi.call(e,o)&&o!==t&&pe(e,o,{get:()=>r[o],enumerable:!(n=ti(r,o))||n.enumerable});return e};var si=(e,r,t)=>(t=e!=null?ri(ii(e)):{},ai(r||!e||!e.__esModule?pe(t,"default",{value:e,enumerable:!0}):t,e));var B=i((ap,fe)=>{"use strict";function ui(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}fe.exports=ui});var U=i((sp,le)=>{"use strict";function ci(e){return e}le.exports=ci});var ge=i((up,he)=>{"use strict";var pi=B(),de=Math.max;function fi(e,r,t){return r=de(r===void 0?e.length-1:r,0),function(){for(var n=arguments,o=-1,a=de(n.length-r,0),u=Array(a);++o<a;)u[o]=n[r+o];o=-1;for(var s=Array(r+1);++o<r;)s[o]=n[o];return s[r]=t(u),pi(e,this,s)}}he.exports=fi});var me=i((cp,ve)=>{"use strict";function li(e){return function(){return e}}ve.exports=li});var H=i((pp,ye)=>{"use strict";var di=typeof global=="object"&&global&&global.Object===Object&&global;ye.exports=di});var g=i((fp,qe)=>{"use strict";var hi=H(),gi=typeof self=="object"&&self&&self.Object===Object&&self,vi=hi||gi||Function("return this")();qe.exports=vi});var $=i((lp,be)=>{"use strict";var mi=g(),yi=mi.Symbol;be.exports=yi});var Ie=i((dp,_e)=>{"use strict";var xe=$(),je=Object.prototype,qi=je.hasOwnProperty,bi=je.toString,T=xe?xe.toStringTag:void 0;function xi(e){var r=qi.call(e,T),t=e[T];try{e[T]=void 0;var n=!0}catch{}var o=bi.call(e);return n&&(r?e[T]=t:delete e[T]),o}_e.exports=xi});var Te=i((hp,Oe)=>{"use strict";var ji=Object.prototype,_i=ji.toString;function Ii(e){return _i.call(e)}Oe.exports=Ii});var S=i((gp,Ae)=>{"use strict";var Se=$(),Oi=Ie(),Ti=Te(),Si="[object Null]",Pi="[object Undefined]",Pe=Se?Se.toStringTag:void 0;function Ai(e){return e==null?e===void 0?Pi:Si:Pe&&Pe in Object(e)?Oi(e):Ti(e)}Ae.exports=Ai});var h=i((vp,we)=>{"use strict";function wi(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}we.exports=wi});var F=i((mp,Ce)=>{"use strict";var Ci=S(),Ri=h(),Ei="[object AsyncFunction]",Mi="[object Function]",Di="[object GeneratorFunction]",Li="[object Proxy]";function Fi(e){if(!Ri(e))return!1;var r=Ci(e);return r==Mi||r==Di||r==Ei||r==Li}Ce.exports=Fi});var Ee=i((yp,Re)=>{"use strict";var Gi=g(),Ni=Gi["__core-js_shared__"];Re.exports=Ni});var Le=i((qp,De)=>{"use strict";var K=Ee(),Me=(function(){var e=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function zi(e){return!!Me&&Me in e}De.exports=zi});var Ge=i((bp,Fe)=>{"use strict";var Bi=Function.prototype,Ui=Bi.toString;function Hi(e){if(e!=null){try{return Ui.call(e)}catch{}try{return e+""}catch{}}return""}Fe.exports=Hi});var ze=i((xp,Ne)=>{"use strict";var $i=F(),Ki=Le(),Vi=h(),Wi=Ge(),Ji=/[\\^$.*+?()[\]{}|]/g,Qi=/^\[object .+?Constructor\]$/,Xi=Function.prototype,Yi=Object.prototype,Zi=Xi.toString,ki=Yi.hasOwnProperty,eo=RegExp("^"+Zi.call(ki).replace(Ji,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ro(e){if(!Vi(e)||Ki(e))return!1;var r=$i(e)?eo:Qi;return r.test(Wi(e))}Ne.exports=ro});var Ue=i((jp,Be)=>{"use strict";function to(e,r){return e?.[r]}Be.exports=to});var G=i((_p,He)=>{"use strict";var no=ze(),io=Ue();function oo(e,r){var t=io(e,r);return no(t)?t:void 0}He.exports=oo});var V=i((Ip,$e)=>{"use strict";var ao=G(),so=(function(){try{var e=ao(Object,"defineProperty");return e({},"",{}),e}catch{}})();$e.exports=so});var We=i((Op,Ve)=>{"use strict";var uo=me(),Ke=V(),co=U(),po=Ke?function(e,r){return Ke(e,"toString",{configurable:!0,enumerable:!1,value:uo(r),writable:!0})}:co;Ve.exports=po});var Qe=i((Tp,Je)=>{"use strict";var fo=800,lo=16,ho=Date.now;function go(e){var r=0,t=0;return function(){var n=ho(),o=lo-(n-t);if(t=n,o>0){if(++r>=fo)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}Je.exports=go});var Ye=i((Sp,Xe)=>{"use strict";var vo=We(),mo=Qe(),yo=mo(vo);Xe.exports=yo});var W=i((Pp,Ze)=>{"use strict";var qo=U(),bo=ge(),xo=Ye();function jo(e,r){return xo(bo(e,r,qo),e+"")}Ze.exports=jo});var er=i((Ap,ke)=>{"use strict";function _o(){this.__data__=[],this.size=0}ke.exports=_o});var P=i((wp,rr)=>{"use strict";function Io(e,r){return e===r||e!==e&&r!==r}rr.exports=Io});var A=i((Cp,tr)=>{"use strict";var Oo=P();function To(e,r){for(var t=e.length;t--;)if(Oo(e[t][0],r))return t;return-1}tr.exports=To});var ir=i((Rp,nr)=>{"use strict";var So=A(),Po=Array.prototype,Ao=Po.splice;function wo(e){var r=this.__data__,t=So(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():Ao.call(r,t,1),--this.size,!0}nr.exports=wo});var ar=i((Ep,or)=>{"use strict";var Co=A();function Ro(e){var r=this.__data__,t=Co(r,e);return t<0?void 0:r[t][1]}or.exports=Ro});var ur=i((Mp,sr)=>{"use strict";var Eo=A();function Mo(e){return Eo(this.__data__,e)>-1}sr.exports=Mo});var pr=i((Dp,cr)=>{"use strict";var Do=A();function Lo(e,r){var t=this.__data__,n=Do(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}cr.exports=Lo});var w=i((Lp,fr)=>{"use strict";var Fo=er(),Go=ir(),No=ar(),zo=ur(),Bo=pr();function m(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}m.prototype.clear=Fo;m.prototype.delete=Go;m.prototype.get=No;m.prototype.has=zo;m.prototype.set=Bo;fr.exports=m});var dr=i((Fp,lr)=>{"use strict";var Uo=w();function Ho(){this.__data__=new Uo,this.size=0}lr.exports=Ho});var gr=i((Gp,hr)=>{"use strict";function $o(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}hr.exports=$o});var mr=i((Np,vr)=>{"use strict";function Ko(e){return this.__data__.get(e)}vr.exports=Ko});var qr=i((zp,yr)=>{"use strict";function Vo(e){return this.__data__.has(e)}yr.exports=Vo});var J=i((Bp,br)=>{"use strict";var Wo=G(),Jo=g(),Qo=Wo(Jo,"Map");br.exports=Qo});var C=i((Up,xr)=>{"use strict";var Xo=G(),Yo=Xo(Object,"create");xr.exports=Yo});var Ir=i((Hp,_r)=>{"use strict";var jr=C();function Zo(){this.__data__=jr?jr(null):{},this.size=0}_r.exports=Zo});var Tr=i(($p,Or)=>{"use strict";function ko(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}Or.exports=ko});var Pr=i((Kp,Sr)=>{"use strict";var ea=C(),ra="__lodash_hash_undefined__",ta=Object.prototype,na=ta.hasOwnProperty;function ia(e){var r=this.__data__;if(ea){var t=r[e];return t===ra?void 0:t}return na.call(r,e)?r[e]:void 0}Sr.exports=ia});var wr=i((Vp,Ar)=>{"use strict";var oa=C(),aa=Object.prototype,sa=aa.hasOwnProperty;function ua(e){var r=this.__data__;return oa?r[e]!==void 0:sa.call(r,e)}Ar.exports=ua});var Rr=i((Wp,Cr)=>{"use strict";var ca=C(),pa="__lodash_hash_undefined__";function fa(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=ca&&r===void 0?pa:r,this}Cr.exports=fa});var Mr=i((Jp,Er)=>{"use strict";var la=Ir(),da=Tr(),ha=Pr(),ga=wr(),va=Rr();function y(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}y.prototype.clear=la;y.prototype.delete=da;y.prototype.get=ha;y.prototype.has=ga;y.prototype.set=va;Er.exports=y});var Fr=i((Qp,Lr)=>{"use strict";var Dr=Mr(),ma=w(),ya=J();function qa(){this.size=0,this.__data__={hash:new Dr,map:new(ya||ma),string:new Dr}}Lr.exports=qa});var Nr=i((Xp,Gr)=>{"use strict";function ba(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}Gr.exports=ba});var R=i((Yp,zr)=>{"use strict";var xa=Nr();function ja(e,r){var t=e.__data__;return xa(r)?t[typeof r=="string"?"string":"hash"]:t.map}zr.exports=ja});var Ur=i((Zp,Br)=>{"use strict";var _a=R();function Ia(e){var r=_a(this,e).delete(e);return this.size-=r?1:0,r}Br.exports=Ia});var $r=i((kp,Hr)=>{"use strict";var Oa=R();function Ta(e){return Oa(this,e).get(e)}Hr.exports=Ta});var Vr=i((ef,Kr)=>{"use strict";var Sa=R();function Pa(e){return Sa(this,e).has(e)}Kr.exports=Pa});var Jr=i((rf,Wr)=>{"use strict";var Aa=R();function wa(e,r){var t=Aa(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this}Wr.exports=wa});var Xr=i((tf,Qr)=>{"use strict";var Ca=Fr(),Ra=Ur(),Ea=$r(),Ma=Vr(),Da=Jr();function q(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}q.prototype.clear=Ca;q.prototype.delete=Ra;q.prototype.get=Ea;q.prototype.has=Ma;q.prototype.set=Da;Qr.exports=q});var Zr=i((nf,Yr)=>{"use strict";var La=w(),Fa=J(),Ga=Xr(),Na=200;function za(e,r){var t=this.__data__;if(t instanceof La){var n=t.__data__;if(!Fa||n.length<Na-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new Ga(n)}return t.set(e,r),this.size=t.size,this}Yr.exports=za});var et=i((of,kr)=>{"use strict";var Ba=w(),Ua=dr(),Ha=gr(),$a=mr(),Ka=qr(),Va=Zr();function b(e){var r=this.__data__=new Ba(e);this.size=r.size}b.prototype.clear=Ua;b.prototype.delete=Ha;b.prototype.get=$a;b.prototype.has=Ka;b.prototype.set=Va;kr.exports=b});var N=i((af,tt)=>{"use strict";var rt=V();function Wa(e,r,t){r=="__proto__"&&rt?rt(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}tt.exports=Wa});var Q=i((sf,nt)=>{"use strict";var Ja=N(),Qa=P();function Xa(e,r,t){(t!==void 0&&!Qa(e[r],t)||t===void 0&&!(r in e))&&Ja(e,r,t)}nt.exports=Xa});var ot=i((uf,it)=>{"use strict";function Ya(e){return function(r,t,n){for(var o=-1,a=Object(r),u=n(r),s=u.length;s--;){var c=u[e?s:++o];if(t(a[c],c,a)===!1)break}return r}}it.exports=Ya});var st=i((cf,at)=>{"use strict";var Za=ot(),ka=Za();at.exports=ka});var lt=i((E,x)=>{"use strict";var es=g(),ft=typeof E=="object"&&E&&!E.nodeType&&E,ut=ft&&typeof x=="object"&&x&&!x.nodeType&&x,rs=ut&&ut.exports===ft,ct=rs?es.Buffer:void 0,pt=ct?ct.allocUnsafe:void 0;function ts(e,r){if(r)return e.slice();var t=e.length,n=pt?pt(t):new e.constructor(t);return e.copy(n),n}x.exports=ts});var ht=i((pf,dt)=>{"use strict";var ns=g(),is=ns.Uint8Array;dt.exports=is});var mt=i((ff,vt)=>{"use strict";var gt=ht();function os(e){var r=new e.constructor(e.byteLength);return new gt(r).set(new gt(e)),r}vt.exports=os});var qt=i((lf,yt)=>{"use strict";var as=mt();function ss(e,r){var t=r?as(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}yt.exports=ss});var xt=i((df,bt)=>{"use strict";function us(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}bt.exports=us});var It=i((hf,_t)=>{"use strict";var cs=h(),jt=Object.create,ps=(function(){function e(){}return function(r){if(!cs(r))return{};if(jt)return jt(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}})();_t.exports=ps});var Tt=i((gf,Ot)=>{"use strict";function fs(e,r){return function(t){return e(r(t))}}Ot.exports=fs});var X=i((vf,St)=>{"use strict";var ls=Tt(),ds=ls(Object.getPrototypeOf,Object);St.exports=ds});var Y=i((mf,Pt)=>{"use strict";var hs=Object.prototype;function gs(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||hs;return e===t}Pt.exports=gs});var wt=i((yf,At)=>{"use strict";var vs=It(),ms=X(),ys=Y();function qs(e){return typeof e.constructor=="function"&&!ys(e)?vs(ms(e)):{}}At.exports=qs});var j=i((qf,Ct)=>{"use strict";function bs(e){return e!=null&&typeof e=="object"}Ct.exports=bs});var Et=i((bf,Rt)=>{"use strict";var xs=S(),js=j(),_s="[object Arguments]";function Is(e){return js(e)&&xs(e)==_s}Rt.exports=Is});var Z=i((xf,Lt)=>{"use strict";var Mt=Et(),Os=j(),Dt=Object.prototype,Ts=Dt.hasOwnProperty,Ss=Dt.propertyIsEnumerable,Ps=Mt((function(){return arguments})())?Mt:function(e){return Os(e)&&Ts.call(e,"callee")&&!Ss.call(e,"callee")};Lt.exports=Ps});var k=i((jf,Ft)=>{"use strict";var As=Array.isArray;Ft.exports=As});var ee=i((_f,Gt)=>{"use strict";var ws=9007199254740991;function Cs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ws}Gt.exports=Cs});var z=i((If,Nt)=>{"use strict";var Rs=F(),Es=ee();function Ms(e){return e!=null&&Es(e.length)&&!Rs(e)}Nt.exports=Ms});var Bt=i((Of,zt)=>{"use strict";var Ds=z(),Ls=j();function Fs(e){return Ls(e)&&Ds(e)}zt.exports=Fs});var Ht=i((Tf,Ut)=>{"use strict";function Gs(){return!1}Ut.exports=Gs});var re=i((M,_)=>{"use strict";var Ns=g(),zs=Ht(),Vt=typeof M=="object"&&M&&!M.nodeType&&M,$t=Vt&&typeof _=="object"&&_&&!_.nodeType&&_,Bs=$t&&$t.exports===Vt,Kt=Bs?Ns.Buffer:void 0,Us=Kt?Kt.isBuffer:void 0,Hs=Us||zs;_.exports=Hs});var Qt=i((Sf,Jt)=>{"use strict";var $s=S(),Ks=X(),Vs=j(),Ws="[object Object]",Js=Function.prototype,Qs=Object.prototype,Wt=Js.toString,Xs=Qs.hasOwnProperty,Ys=Wt.call(Object);function Zs(e){if(!Vs(e)||$s(e)!=Ws)return!1;var r=Ks(e);if(r===null)return!0;var t=Xs.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&Wt.call(t)==Ys}Jt.exports=Zs});var Yt=i((Pf,Xt)=>{"use strict";var ks=S(),eu=ee(),ru=j(),tu="[object Arguments]",nu="[object Array]",iu="[object Boolean]",ou="[object Date]",au="[object Error]",su="[object Function]",uu="[object Map]",cu="[object Number]",pu="[object Object]",fu="[object RegExp]",lu="[object Set]",du="[object String]",hu="[object WeakMap]",gu="[object ArrayBuffer]",vu="[object DataView]",mu="[object Float32Array]",yu="[object Float64Array]",qu="[object Int8Array]",bu="[object Int16Array]",xu="[object Int32Array]",ju="[object Uint8Array]",_u="[object Uint8ClampedArray]",Iu="[object Uint16Array]",Ou="[object Uint32Array]",p={};p[mu]=p[yu]=p[qu]=p[bu]=p[xu]=p[ju]=p[_u]=p[Iu]=p[Ou]=!0;p[tu]=p[nu]=p[gu]=p[iu]=p[vu]=p[ou]=p[au]=p[su]=p[uu]=p[cu]=p[pu]=p[fu]=p[lu]=p[du]=p[hu]=!1;function Tu(e){return ru(e)&&eu(e.length)&&!!p[ks(e)]}Xt.exports=Tu});var kt=i((Af,Zt)=>{"use strict";function Su(e){return function(r){return e(r)}}Zt.exports=Su});var rn=i((D,I)=>{"use strict";var Pu=H(),en=typeof D=="object"&&D&&!D.nodeType&&D,L=en&&typeof I=="object"&&I&&!I.nodeType&&I,Au=L&&L.exports===en,te=Au&&Pu.process,wu=(function(){try{var e=L&&L.require&&L.require("util").types;return e||te&&te.binding&&te.binding("util")}catch{}})();I.exports=wu});var ne=i((wf,on)=>{"use strict";var Cu=Yt(),Ru=kt(),tn=rn(),nn=tn&&tn.isTypedArray,Eu=nn?Ru(nn):Cu;on.exports=Eu});var ie=i((Cf,an)=>{"use strict";function Mu(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}an.exports=Mu});var un=i((Rf,sn)=>{"use strict";var Du=N(),Lu=P(),Fu=Object.prototype,Gu=Fu.hasOwnProperty;function Nu(e,r,t){var n=e[r];(!(Gu.call(e,r)&&Lu(n,t))||t===void 0&&!(r in e))&&Du(e,r,t)}sn.exports=Nu});var pn=i((Ef,cn)=>{"use strict";var zu=un(),Bu=N();function Uu(e,r,t,n){var o=!t;t||(t={});for(var a=-1,u=r.length;++a<u;){var s=r[a],c=n?n(t[s],e[s],s,t,e):void 0;c===void 0&&(c=e[s]),o?Bu(t,s,c):zu(t,s,c)}return t}cn.exports=Uu});var ln=i((Mf,fn)=>{"use strict";function Hu(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}fn.exports=Hu});var oe=i((Df,dn)=>{"use strict";var $u=9007199254740991,Ku=/^(?:0|[1-9]\d*)$/;function Vu(e,r){var t=typeof e;return r=r??$u,!!r&&(t=="number"||t!="symbol"&&Ku.test(e))&&e>-1&&e%1==0&&e<r}dn.exports=Vu});var gn=i((Lf,hn)=>{"use strict";var Wu=ln(),Ju=Z(),Qu=k(),Xu=re(),Yu=oe(),Zu=ne(),ku=Object.prototype,ec=ku.hasOwnProperty;function rc(e,r){var t=Qu(e),n=!t&&Ju(e),o=!t&&!n&&Xu(e),a=!t&&!n&&!o&&Zu(e),u=t||n||o||a,s=u?Wu(e.length,String):[],c=s.length;for(var l in e)(r||ec.call(e,l))&&!(u&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Yu(l,c)))&&s.push(l);return s}hn.exports=rc});var mn=i((Ff,vn)=>{"use strict";function tc(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}vn.exports=tc});var qn=i((Gf,yn)=>{"use strict";var nc=h(),ic=Y(),oc=mn(),ac=Object.prototype,sc=ac.hasOwnProperty;function uc(e){if(!nc(e))return oc(e);var r=ic(e),t=[];for(var n in e)n=="constructor"&&(r||!sc.call(e,n))||t.push(n);return t}yn.exports=uc});var ae=i((Nf,bn)=>{"use strict";var cc=gn(),pc=qn(),fc=z();function lc(e){return fc(e)?cc(e,!0):pc(e)}bn.exports=lc});var jn=i((zf,xn)=>{"use strict";var dc=pn(),hc=ae();function gc(e){return dc(e,hc(e))}xn.exports=gc});var Pn=i((Bf,Sn)=>{"use strict";var _n=Q(),vc=lt(),mc=qt(),yc=xt(),qc=wt(),In=Z(),On=k(),bc=Bt(),xc=re(),jc=F(),_c=h(),Ic=Qt(),Oc=ne(),Tn=ie(),Tc=jn();function Sc(e,r,t,n,o,a,u){var s=Tn(e,t),c=Tn(r,t),l=u.get(c);if(l){_n(e,t,l);return}var f=a?a(s,c,t+"",e,r,u):void 0,d=f===void 0;if(d){var v=On(c),O=!v&&xc(c),ce=!v&&!O&&Oc(c);f=c,v||O||ce?On(s)?f=s:bc(s)?f=yc(s):O?(d=!1,f=vc(c,!0)):ce?(d=!1,f=mc(c,!0)):f=[]:Ic(c)||In(c)?(f=s,In(s)?f=Tc(s):(!_c(s)||jc(s))&&(f=qc(c))):d=!1}d&&(u.set(c,f),o(f,c,n,a,u),u.delete(c)),_n(e,t,f)}Sn.exports=Sc});var se=i((Uf,wn)=>{"use strict";var Pc=et(),Ac=Q(),wc=st(),Cc=Pn(),Rc=h(),Ec=ae(),Mc=ie();function An(e,r,t,n,o){e!==r&&wc(r,function(a,u){if(o||(o=new Pc),Rc(a))Cc(e,r,u,t,An,n,o);else{var s=n?n(Mc(e,u),a,u+"",e,r,o):void 0;s===void 0&&(s=a),Ac(e,u,s)}},Ec)}wn.exports=An});var Mn=i((Hf,En)=>{"use strict";var Dc=se(),Cn=h();function Rn(e,r,t,n,o,a){return Cn(e)&&Cn(r)&&(a.set(r,e),Dc(e,r,void 0,Rn,a),a.delete(r)),e}En.exports=Rn});var Ln=i(($f,Dn)=>{"use strict";var Lc=P(),Fc=z(),Gc=oe(),Nc=h();function zc(e,r,t){if(!Nc(t))return!1;var n=typeof r;return(n=="number"?Fc(t)&&Gc(r,t.length):n=="string"&&r in t)?Lc(t[r],e):!1}Dn.exports=zc});var Gn=i((Kf,Fn)=>{"use strict";var Bc=W(),Uc=Ln();function Hc(e){return Bc(function(r,t){var n=-1,o=t.length,a=o>1?t[o-1]:void 0,u=o>2?t[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,u&&Uc(t[0],t[1],u)&&(a=o<3?void 0:a,o=1),r=Object(r);++n<o;){var s=t[n];s&&e(r,s,n,a)}return r})}Fn.exports=Hc});var zn=i((Vf,Nn)=>{"use strict";var $c=se(),Kc=Gn(),Vc=Kc(function(e,r,t,n){$c(e,r,t,n)});Nn.exports=Vc});var Un=i((Wf,Bn)=>{"use strict";var Wc=B(),Jc=W(),Qc=Mn(),Xc=zn(),Yc=Jc(function(e){return e.push(void 0,Qc),Wc(Xc,void 0,e)});Bn.exports=Yc});import{createRoot as ip}from"react-dom/client";var Kn=si(Un());import{useSyncExternalStore as Zc,useState as kc,useEffect as ep,useMemo as Hn}from"react";import{IntlProvider as rp}from"react-intl";import{DesignSystemProvider as tp}from"@strapi/design-system";import{jsx as $n}from"react/jsx-runtime";var np=({children:e,store:r,configurations:t})=>{let n=Zc(r.subscribe,r.getState),o=n.admin_app.theme.currentTheme||"light",a=n.admin_app.language.locale||"en",u=t.translations||{},[s,c]=kc(matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),l=Hn(()=>(0,Kn.default)(u[a],u.en),[a,u]),f=Hn(()=>t.themes[o==="system"?s:o],[o,s,t.themes]);return ep(()=>{let d=matchMedia("(prefers-color-scheme: dark)"),v=O=>{c(O.matches?"dark":"light")};return d.addEventListener("change",v),()=>d.removeEventListener("change",v)},[]),$n(tp,{theme:f,locale:a,children:$n(rp,{locale:a,messages:l,children:e})})},Vn=np;import{jsx as Wn}from"react/jsx-runtime";var Jn=async(e,r,t)=>{let n=r.domInjections;if(!n){console.warn("Injection system not initialised. Please call initialiseInjections(app) before registering injection routes.");return}document.querySelector(`#${t.id}`)||n.removeRoot(t.id);let a=ue(t.route,e.location.pathname);if(!a)return;let u=t.Component(),s=await Qn(t.selector);if(!s||!ue(t.route,window.location.pathname))return;if(!n.getRoot(t.id)){let d=document.getElementById(t.id);d||(d=document.createElement("div"),d.id=t.id,s.after(d)),n.setRoot(t.id,ip(d))}let l=(await u).default,f=n.getRoot(t.id);f&&f.render(Wn(Vn,{store:r.store,configurations:r.configurations,children:Wn(l,{...a})}))};var Yn=async e=>{let r=e.router,t=0;for(;!r?.router?.state?.location&&t<100;)await new Promise(n=>setTimeout(n,10)),t++;if(!r?.router?.state?.location){console.warn("Strapi router not ready after 5s, skipping injection initialization.");return}r.router.subscribe(n=>Xn(n,e)),Xn(r.router.state,e)},Xn=(e,r)=>{let t=r.domInjections?.routes||[];Promise.all(t.map(n=>Jn(e,r,n)))},Qn=(e,r=5e3)=>new Promise(t=>{let n=document.querySelector(e);if(n)return t(n);let o=new MutationObserver(()=>{let a=document.querySelector(e);a&&(o.disconnect(),t(a))});o.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>{o.disconnect(),t(null)},r)}),Zn=(e,r)=>{if(!r.domInjections?.routes){console.warn("Injection system not initialised. Please call initialiseInjections(app) before registering injection routes.");return}let{id:t,...n}=e;if(t&&r.domInjections.routes.some(a=>a.id===t)){console.warn(`Injection route with id ${t} already exists. Skipping registration.`);return}let o=t||`injection-${Math.random().toString(36).substring(2,9)}`;r.domInjections.routes.push({id:o,...n})},kn=(e,r)=>{if(!r.domInjections?.routes){console.warn("Injection system not initialised. Please call initialiseInjections(app) before unregistering injection routes.");return}let t=r.domInjections.routes.findIndex(n=>n.id===e);if(t===-1){console.warn(`Injection route with id ${e} does not exist. Skipping unregistration.`);return}r.domInjections.routes.splice(t,1),r.domInjections.removeRoot(e)},ue=(e,r)=>{let t=e.split("/").filter(Boolean),n=r.split("/").filter(Boolean);if(t.length!==n.length)return null;let o={};for(let a=0;a<t.length;a++)if(t[a].startsWith(":"))o[t[a].replace(/^:/,"")]=n[a];else if(t[a]!==n[a])return null;return o},ei=e=>{let t=e?.getState()?.admin_app?.theme?.currentTheme;requestAnimationFrame(()=>{e?.dispatch({type:"admin/setAppTheme",payload:"light"})}),requestAnimationFrame(()=>{e?.dispatch({type:"admin/setAppTheme",payload:"dark"})}),requestAnimationFrame(()=>{e?.dispatch({type:"admin/setAppTheme",payload:t})})};var sl=e=>{let r=e.domInjections;if(r)return r;Yn(e);let t={routes:[],roots:{},registerRoute:n=>Zn(n,e),unregisterRoute:n=>kn(n,e),getRoot:n=>e.domInjections?.roots[n],setRoot:(n,o)=>{e.domInjections&&(e.domInjections.roots[n]=o)},removeRoot:n=>{if(!e.domInjections)return;let o=e.domInjections.roots[n];o&&(setTimeout(()=>{o.unmount(),e.store&&ei(e.store)},0),delete e.domInjections.roots[n])}};return e.domInjections=t,t};export{sl as initialiseInjections};
|
package/package.json
CHANGED