@kosdev-code/kos-ui-plugin 2.1.10 → 2.1.11

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/index.cjs CHANGED
@@ -1,19 +1,19 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Dt=require("react/jsx-runtime"),v=require("react"),h=require("@emotion/styled"),F=require("./documentation-generator-CLTfyjgo.cjs");require("zod");function qe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ee=qe(Dt),B=qe(v);function It(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Vt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var jt=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Vt(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=It(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),O="-ms-",fe="-moz-",E="-webkit-",Ge="comm",ke="rule",$e="decl",Bt="@import",Ze="@keyframes",Kt="@layer",Yt=Math.abs,ue=String.fromCharCode,Wt=Object.assign;function Ht(e,t){return N(e,0)^45?(((t<<2^N(e,0))<<2^N(e,1))<<2^N(e,2))<<2^N(e,3):0}function Xe(e){return e.trim()}function Ut(e,t){return(e=t.exec(e))?e[0]:e}function w(e,t,n){return e.replace(t,n)}function Ee(e,t){return e.indexOf(t)}function N(e,t){return e.charCodeAt(t)|0}function te(e,t,n){return e.slice(t,n)}function I(e){return e.length}function _e(e){return e.length}function se(e,t){return t.push(e),e}function qt(e,t){return e.map(t).join("")}var pe=1,U=1,Je=0,L=0,T=0,q="";function he(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:pe,column:U,length:s,return:""}}function X(e,t){return Wt(he("",null,null,"",null,null,0),e,{length:-e.length},t)}function Gt(){return T}function Zt(){return T=L>0?N(q,--L):0,U--,T===10&&(U=1,pe--),T}function D(){return T=L<Je?N(q,L++):0,U++,T===10&&(U=1,pe++),T}function j(){return N(q,L)}function ce(){return L}function oe(e,t){return te(q,e,t)}function ne(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Qe(e){return pe=U=1,Je=I(q=e),L=0,[]}function et(e){return q="",e}function le(e){return Xe(oe(L-1,we(e===91?e+2:e===40?e+1:e)))}function Xt(e){for(;(T=j())&&T<33;)D();return ne(e)>2||ne(T)>3?"":" "}function Jt(e,t){for(;--t&&D()&&!(T<48||T>102||T>57&&T<65||T>70&&T<97););return oe(e,ce()+(t<6&&j()==32&&D()==32))}function we(e){for(;D();)switch(T){case e:return L;case 34:case 39:e!==34&&e!==39&&we(T);break;case 40:e===41&&we(e);break;case 92:D();break}return L}function Qt(e,t){for(;D()&&e+T!==57;)if(e+T===84&&j()===47)break;return"/*"+oe(t,L-1)+"*"+ue(e===47?e:D())}function en(e){for(;!ne(j());)D();return oe(e,L)}function tn(e){return et(de("",null,null,null,[""],e=Qe(e),0,[0],e))}function de(e,t,n,r,o,i,s,d,f){for(var p=0,l=0,a=s,x=0,b=0,y=0,S=1,A=1,_=1,R=0,$="",M=o,u=i,z=r,k=$;A;)switch(y=R,R=D()){case 40:if(y!=108&&N(k,a-1)==58){Ee(k+=w(le(R),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=le(R);break;case 9:case 10:case 13:case 32:k+=Xt(y);break;case 92:k+=Jt(ce()-1,7);continue;case 47:switch(j()){case 42:case 47:se(nn(Qt(D(),ce()),t,n),f);break;default:k+="/"}break;case 123*S:d[p++]=I(k)*_;case 125*S:case 59:case 0:switch(R){case 0:case 125:A=0;case 59+l:_==-1&&(k=w(k,/\f/g,"")),b>0&&I(k)-a&&se(b>32?Fe(k+";",r,n,a-1):Fe(w(k," ","")+";",r,n,a-2),f);break;case 59:k+=";";default:if(se(z=Oe(k,t,n,p,l,o,d,$,M=[],u=[],a),i),R===123)if(l===0)de(k,t,z,z,M,i,a,d,u);else switch(x===99&&N(k,3)===110?100:x){case 100:case 108:case 109:case 115:de(e,z,z,r&&se(Oe(e,z,z,0,0,o,d,$,o,M=[],a),u),o,u,a,d,r?M:u);break;default:de(k,z,z,z,[""],u,0,d,u)}}p=l=b=0,S=_=1,$=k="",a=s;break;case 58:a=1+I(k),b=y;default:if(S<1){if(R==123)--S;else if(R==125&&S++==0&&Zt()==125)continue}switch(k+=ue(R),R*S){case 38:_=l>0?1:(k+="\f",-1);break;case 44:d[p++]=(I(k)-1)*_,_=1;break;case 64:j()===45&&(k+=le(D())),x=j(),l=a=I($=k+=en(ce())),R++;break;case 45:y===45&&I(k)==2&&(S=0)}}return i}function Oe(e,t,n,r,o,i,s,d,f,p,l){for(var a=o-1,x=o===0?i:[""],b=_e(x),y=0,S=0,A=0;y<r;++y)for(var _=0,R=te(e,a+1,a=Yt(S=s[y])),$=e;_<b;++_)($=Xe(S>0?x[_]+" "+R:w(R,/&\f/g,x[_])))&&(f[A++]=$);return he(e,t,n,o===0?ke:d,f,p,l)}function nn(e,t,n){return he(e,t,n,Ge,ue(Gt()),te(e,2,-2),0)}function Fe(e,t,n,r){return he(e,t,n,$e,te(e,0,r),te(e,r+1,-1),r)}function H(e,t){for(var n="",r=_e(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function rn(e,t,n,r){switch(e.type){case Kt:if(e.children.length)break;case Bt:case $e:return e.return=e.return||e.value;case Ge:return"";case Ze:return e.return=e.value+"{"+H(e.children,r)+"}";case ke:e.value=e.props.join(",")}return I(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function on(e){var t=_e(e);return function(n,r,o,i){for(var s="",d=0;d<t;d++)s+=e[d](n,r,o,i)||"";return s}}function sn(e){return function(t){t.root||(t=t.return)&&e(t)}}var an=function(t,n,r){for(var o=0,i=0;o=i,i=j(),o===38&&i===12&&(n[r]=1),!ne(i);)D();return oe(t,L)},cn=function(t,n){var r=-1,o=44;do switch(ne(o)){case 0:o===38&&j()===12&&(n[r]=1),t[r]+=an(L-1,n,r);break;case 2:t[r]+=le(o);break;case 4:if(o===44){t[++r]=j()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ue(o)}while(o=D());return t},ln=function(t,n){return et(cn(Qe(t),n))},Le=new WeakMap,dn=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Le.get(r))&&!o){Le.set(t,!0);for(var i=[],s=ln(n,i),d=r.props,f=0,p=0;f<s.length;f++)for(var l=0;l<d.length;l++,p++)t.props[p]=i[f]?s[f].replace(/&\f/g,d[l]):d[l]+" "+s[f]}}},fn=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function tt(e,t){switch(Ht(e,t)){case 5103:return E+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return E+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return E+e+fe+e+O+e+e;case 6828:case 4268:return E+e+O+e+e;case 6165:return E+e+O+"flex-"+e+e;case 5187:return E+e+w(e,/(\w+).+(:[^]+)/,E+"box-$1$2"+O+"flex-$1$2")+e;case 5443:return E+e+O+"flex-item-"+w(e,/flex-|-self/,"")+e;case 4675:return E+e+O+"flex-line-pack"+w(e,/align-content|flex-|-self/,"")+e;case 5548:return E+e+O+w(e,"shrink","negative")+e;case 5292:return E+e+O+w(e,"basis","preferred-size")+e;case 6060:return E+"box-"+w(e,"-grow","")+E+e+O+w(e,"grow","positive")+e;case 4554:return E+w(e,/([^-])(transform)/g,"$1"+E+"$2")+e;case 6187:return w(w(w(e,/(zoom-|grab)/,E+"$1"),/(image-set)/,E+"$1"),e,"")+e;case 5495:case 3959:return w(e,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return w(w(e,/(.+:)(flex-)?(.*)/,E+"box-pack:$3"+O+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+E+e+e;case 4095:case 3583:case 4068:case 2532:return w(e,/(.+)-inline(.+)/,E+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(I(e)-1-t>6)switch(N(e,t+1)){case 109:if(N(e,t+4)!==45)break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1"+E+"$2-$3$1"+fe+(N(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ee(e,"stretch")?tt(w(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(N(e,t+1)!==115)break;case 6444:switch(N(e,I(e)-3-(~Ee(e,"!important")&&10))){case 107:return w(e,":",":"+E)+e;case 101:return w(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+E+(N(e,14)===45?"inline-":"")+"box$3$1"+E+"$2$3$1"+O+"$2box$3")+e}break;case 5936:switch(N(e,t+11)){case 114:return E+e+O+w(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return E+e+O+w(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return E+e+O+w(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return E+e+O+e+e}return e}var un=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case $e:t.return=tt(t.value,t.length);break;case Ze:return H([X(t,{value:w(t.value,"@","@"+E)})],o);case ke:if(t.length)return qt(t.props,function(i){switch(Ut(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([X(t,{props:[w(i,/:(read-\w+)/,":"+fe+"$1")]})],o);case"::placeholder":return H([X(t,{props:[w(i,/:(plac\w+)/,":"+E+"input-$1")]}),X(t,{props:[w(i,/:(plac\w+)/,":"+fe+"$1")]}),X(t,{props:[w(i,/:(plac\w+)/,O+"input-$1")]})],o)}return""})}},pn=[un],hn=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var A=S.getAttribute("data-emotion");A.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||pn,i={},s,d=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var A=S.getAttribute("data-emotion").split(" "),_=1;_<A.length;_++)i[A[_]]=!0;d.push(S)});var f,p=[dn,fn];{var l,a=[rn,sn(function(S){l.insert(S)})],x=on(p.concat(o,a)),b=function(A){return H(tn(A),x)};f=function(A,_,R,$){l=R,b(A?A+"{"+_.styles+"}":_.styles),$&&(y.inserted[_.name]=!0)}}var y={key:n,sheet:new jt({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:f};return y.sheet.hydrate(d),y},Se={exports:{}},C={};/** @license React v16.13.1
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const It=require("react/jsx-runtime"),v=require("react"),h=require("@emotion/styled"),F=require("./documentation-generator-DFaIDo0E.cjs"),Vt=require("@kosdev-code/kos-ui-sdk");require("zod");function qe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ee=qe(It),B=qe(v);function jt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Bt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Kt=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Bt(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=jt(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),O="-ms-",fe="-moz-",E="-webkit-",Ge="comm",ke="rule",$e="decl",Yt="@import",Ze="@keyframes",Wt="@layer",Ht=Math.abs,ue=String.fromCharCode,Ut=Object.assign;function qt(e,t){return N(e,0)^45?(((t<<2^N(e,0))<<2^N(e,1))<<2^N(e,2))<<2^N(e,3):0}function Xe(e){return e.trim()}function Gt(e,t){return(e=t.exec(e))?e[0]:e}function w(e,t,n){return e.replace(t,n)}function Ee(e,t){return e.indexOf(t)}function N(e,t){return e.charCodeAt(t)|0}function te(e,t,n){return e.slice(t,n)}function I(e){return e.length}function _e(e){return e.length}function se(e,t){return t.push(e),e}function Zt(e,t){return e.map(t).join("")}var pe=1,q=1,Je=0,L=0,R=0,G="";function he(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:pe,column:q,length:s,return:""}}function X(e,t){return Ut(he("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xt(){return R}function Jt(){return R=L>0?N(G,--L):0,q--,R===10&&(q=1,pe--),R}function D(){return R=L<Je?N(G,L++):0,q++,R===10&&(q=1,pe++),R}function j(){return N(G,L)}function ce(){return L}function oe(e,t){return te(G,e,t)}function ne(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Qe(e){return pe=q=1,Je=I(G=e),L=0,[]}function et(e){return G="",e}function le(e){return Xe(oe(L-1,we(e===91?e+2:e===40?e+1:e)))}function Qt(e){for(;(R=j())&&R<33;)D();return ne(e)>2||ne(R)>3?"":" "}function en(e,t){for(;--t&&D()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return oe(e,ce()+(t<6&&j()==32&&D()==32))}function we(e){for(;D();)switch(R){case e:return L;case 34:case 39:e!==34&&e!==39&&we(R);break;case 40:e===41&&we(e);break;case 92:D();break}return L}function tn(e,t){for(;D()&&e+R!==57;)if(e+R===84&&j()===47)break;return"/*"+oe(t,L-1)+"*"+ue(e===47?e:D())}function nn(e){for(;!ne(j());)D();return oe(e,L)}function rn(e){return et(de("",null,null,null,[""],e=Qe(e),0,[0],e))}function de(e,t,n,r,o,i,s,d,f){for(var u=0,l=0,a=s,x=0,b=0,y=0,S=1,A=1,_=1,T=0,$="",M=o,p=i,z=r,k=$;A;)switch(y=T,T=D()){case 40:if(y!=108&&N(k,a-1)==58){Ee(k+=w(le(T),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=le(T);break;case 9:case 10:case 13:case 32:k+=Qt(y);break;case 92:k+=en(ce()-1,7);continue;case 47:switch(j()){case 42:case 47:se(on(tn(D(),ce()),t,n),f);break;default:k+="/"}break;case 123*S:d[u++]=I(k)*_;case 125*S:case 59:case 0:switch(T){case 0:case 125:A=0;case 59+l:_==-1&&(k=w(k,/\f/g,"")),b>0&&I(k)-a&&se(b>32?Fe(k+";",r,n,a-1):Fe(w(k," ","")+";",r,n,a-2),f);break;case 59:k+=";";default:if(se(z=Oe(k,t,n,u,l,o,d,$,M=[],p=[],a),i),T===123)if(l===0)de(k,t,z,z,M,i,a,d,p);else switch(x===99&&N(k,3)===110?100:x){case 100:case 108:case 109:case 115:de(e,z,z,r&&se(Oe(e,z,z,0,0,o,d,$,o,M=[],a),p),o,p,a,d,r?M:p);break;default:de(k,z,z,z,[""],p,0,d,p)}}u=l=b=0,S=_=1,$=k="",a=s;break;case 58:a=1+I(k),b=y;default:if(S<1){if(T==123)--S;else if(T==125&&S++==0&&Jt()==125)continue}switch(k+=ue(T),T*S){case 38:_=l>0?1:(k+="\f",-1);break;case 44:d[u++]=(I(k)-1)*_,_=1;break;case 64:j()===45&&(k+=le(D())),x=j(),l=a=I($=k+=nn(ce())),T++;break;case 45:y===45&&I(k)==2&&(S=0)}}return i}function Oe(e,t,n,r,o,i,s,d,f,u,l){for(var a=o-1,x=o===0?i:[""],b=_e(x),y=0,S=0,A=0;y<r;++y)for(var _=0,T=te(e,a+1,a=Ht(S=s[y])),$=e;_<b;++_)($=Xe(S>0?x[_]+" "+T:w(T,/&\f/g,x[_])))&&(f[A++]=$);return he(e,t,n,o===0?ke:d,f,u,l)}function on(e,t,n){return he(e,t,n,Ge,ue(Xt()),te(e,2,-2),0)}function Fe(e,t,n,r){return he(e,t,n,$e,te(e,0,r),te(e,r+1,-1),r)}function U(e,t){for(var n="",r=_e(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function sn(e,t,n,r){switch(e.type){case Wt:if(e.children.length)break;case Yt:case $e:return e.return=e.return||e.value;case Ge:return"";case Ze:return e.return=e.value+"{"+U(e.children,r)+"}";case ke:e.value=e.props.join(",")}return I(n=U(e.children,r))?e.return=e.value+"{"+n+"}":""}function an(e){var t=_e(e);return function(n,r,o,i){for(var s="",d=0;d<t;d++)s+=e[d](n,r,o,i)||"";return s}}function cn(e){return function(t){t.root||(t=t.return)&&e(t)}}var ln=function(t,n,r){for(var o=0,i=0;o=i,i=j(),o===38&&i===12&&(n[r]=1),!ne(i);)D();return oe(t,L)},dn=function(t,n){var r=-1,o=44;do switch(ne(o)){case 0:o===38&&j()===12&&(n[r]=1),t[r]+=ln(L-1,n,r);break;case 2:t[r]+=le(o);break;case 4:if(o===44){t[++r]=j()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ue(o)}while(o=D());return t},fn=function(t,n){return et(dn(Qe(t),n))},Le=new WeakMap,un=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Le.get(r))&&!o){Le.set(t,!0);for(var i=[],s=fn(n,i),d=r.props,f=0,u=0;f<s.length;f++)for(var l=0;l<d.length;l++,u++)t.props[u]=i[f]?s[f].replace(/&\f/g,d[l]):d[l]+" "+s[f]}}},pn=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function tt(e,t){switch(qt(e,t)){case 5103:return E+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return E+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return E+e+fe+e+O+e+e;case 6828:case 4268:return E+e+O+e+e;case 6165:return E+e+O+"flex-"+e+e;case 5187:return E+e+w(e,/(\w+).+(:[^]+)/,E+"box-$1$2"+O+"flex-$1$2")+e;case 5443:return E+e+O+"flex-item-"+w(e,/flex-|-self/,"")+e;case 4675:return E+e+O+"flex-line-pack"+w(e,/align-content|flex-|-self/,"")+e;case 5548:return E+e+O+w(e,"shrink","negative")+e;case 5292:return E+e+O+w(e,"basis","preferred-size")+e;case 6060:return E+"box-"+w(e,"-grow","")+E+e+O+w(e,"grow","positive")+e;case 4554:return E+w(e,/([^-])(transform)/g,"$1"+E+"$2")+e;case 6187:return w(w(w(e,/(zoom-|grab)/,E+"$1"),/(image-set)/,E+"$1"),e,"")+e;case 5495:case 3959:return w(e,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return w(w(e,/(.+:)(flex-)?(.*)/,E+"box-pack:$3"+O+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+E+e+e;case 4095:case 3583:case 4068:case 2532:return w(e,/(.+)-inline(.+)/,E+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(I(e)-1-t>6)switch(N(e,t+1)){case 109:if(N(e,t+4)!==45)break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1"+E+"$2-$3$1"+fe+(N(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ee(e,"stretch")?tt(w(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(N(e,t+1)!==115)break;case 6444:switch(N(e,I(e)-3-(~Ee(e,"!important")&&10))){case 107:return w(e,":",":"+E)+e;case 101:return w(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+E+(N(e,14)===45?"inline-":"")+"box$3$1"+E+"$2$3$1"+O+"$2box$3")+e}break;case 5936:switch(N(e,t+11)){case 114:return E+e+O+w(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return E+e+O+w(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return E+e+O+w(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return E+e+O+e+e}return e}var hn=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case $e:t.return=tt(t.value,t.length);break;case Ze:return U([X(t,{value:w(t.value,"@","@"+E)})],o);case ke:if(t.length)return Zt(t.props,function(i){switch(Gt(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return U([X(t,{props:[w(i,/:(read-\w+)/,":"+fe+"$1")]})],o);case"::placeholder":return U([X(t,{props:[w(i,/:(plac\w+)/,":"+E+"input-$1")]}),X(t,{props:[w(i,/:(plac\w+)/,":"+fe+"$1")]}),X(t,{props:[w(i,/:(plac\w+)/,O+"input-$1")]})],o)}return""})}},mn=[hn],gn=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var A=S.getAttribute("data-emotion");A.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||mn,i={},s,d=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var A=S.getAttribute("data-emotion").split(" "),_=1;_<A.length;_++)i[A[_]]=!0;d.push(S)});var f,u=[un,pn];{var l,a=[sn,cn(function(S){l.insert(S)})],x=an(u.concat(o,a)),b=function(A){return U(rn(A),x)};f=function(A,_,T,$){l=T,b(A?A+"{"+_.styles+"}":_.styles),$&&(y.inserted[_.name]=!0)}}var y={key:n,sheet:new Kt({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:f};return y.sheet.hydrate(d),y},Se={exports:{}},C={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var De;function mn(){if(De)return C;De=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,a=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function $(u){if(typeof u=="object"&&u!==null){var z=u.$$typeof;switch(z){case t:switch(u=u.type,u){case f:case p:case r:case i:case o:case a:return u;default:switch(u=u&&u.$$typeof,u){case d:case l:case y:case b:case s:return u;default:return z}}case n:return z}}}function M(u){return $(u)===p}return C.AsyncMode=f,C.ConcurrentMode=p,C.ContextConsumer=d,C.ContextProvider=s,C.Element=t,C.ForwardRef=l,C.Fragment=r,C.Lazy=y,C.Memo=b,C.Portal=n,C.Profiler=i,C.StrictMode=o,C.Suspense=a,C.isAsyncMode=function(u){return M(u)||$(u)===f},C.isConcurrentMode=M,C.isContextConsumer=function(u){return $(u)===d},C.isContextProvider=function(u){return $(u)===s},C.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===t},C.isForwardRef=function(u){return $(u)===l},C.isFragment=function(u){return $(u)===r},C.isLazy=function(u){return $(u)===y},C.isMemo=function(u){return $(u)===b},C.isPortal=function(u){return $(u)===n},C.isProfiler=function(u){return $(u)===i},C.isStrictMode=function(u){return $(u)===o},C.isSuspense=function(u){return $(u)===a},C.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===r||u===p||u===i||u===o||u===a||u===x||typeof u=="object"&&u!==null&&(u.$$typeof===y||u.$$typeof===b||u.$$typeof===s||u.$$typeof===d||u.$$typeof===l||u.$$typeof===A||u.$$typeof===_||u.$$typeof===R||u.$$typeof===S)},C.typeOf=$,C}var P={};/** @license React v16.13.1
8
+ */var De;function xn(){if(De)return C;De=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,a=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function $(p){if(typeof p=="object"&&p!==null){var z=p.$$typeof;switch(z){case t:switch(p=p.type,p){case f:case u:case r:case i:case o:case a:return p;default:switch(p=p&&p.$$typeof,p){case d:case l:case y:case b:case s:return p;default:return z}}case n:return z}}}function M(p){return $(p)===u}return C.AsyncMode=f,C.ConcurrentMode=u,C.ContextConsumer=d,C.ContextProvider=s,C.Element=t,C.ForwardRef=l,C.Fragment=r,C.Lazy=y,C.Memo=b,C.Portal=n,C.Profiler=i,C.StrictMode=o,C.Suspense=a,C.isAsyncMode=function(p){return M(p)||$(p)===f},C.isConcurrentMode=M,C.isContextConsumer=function(p){return $(p)===d},C.isContextProvider=function(p){return $(p)===s},C.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},C.isForwardRef=function(p){return $(p)===l},C.isFragment=function(p){return $(p)===r},C.isLazy=function(p){return $(p)===y},C.isMemo=function(p){return $(p)===b},C.isPortal=function(p){return $(p)===n},C.isProfiler=function(p){return $(p)===i},C.isStrictMode=function(p){return $(p)===o},C.isSuspense=function(p){return $(p)===a},C.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===u||p===i||p===o||p===a||p===x||typeof p=="object"&&p!==null&&(p.$$typeof===y||p.$$typeof===b||p.$$typeof===s||p.$$typeof===d||p.$$typeof===l||p.$$typeof===A||p.$$typeof===_||p.$$typeof===T||p.$$typeof===S)},C.typeOf=$,C}var P={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var Ie;function gn(){return Ie||(Ie=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,a=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function $(m){return typeof m=="string"||typeof m=="function"||m===r||m===p||m===i||m===o||m===a||m===x||typeof m=="object"&&m!==null&&(m.$$typeof===y||m.$$typeof===b||m.$$typeof===s||m.$$typeof===d||m.$$typeof===l||m.$$typeof===A||m.$$typeof===_||m.$$typeof===R||m.$$typeof===S)}function M(m){if(typeof m=="object"&&m!==null){var xe=m.$$typeof;switch(xe){case t:var ie=m.type;switch(ie){case f:case p:case r:case i:case o:case a:return ie;default:var ze=ie&&ie.$$typeof;switch(ze){case d:case l:case y:case b:case s:return ze;default:return xe}}case n:return xe}}}var u=f,z=p,k=d,gt=s,xt=t,yt=l,bt=r,vt=y,Et=b,wt=n,St=i,Ct=o,Pt=a,Ae=!1;function kt(m){return Ae||(Ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Ne(m)||M(m)===f}function Ne(m){return M(m)===p}function $t(m){return M(m)===d}function _t(m){return M(m)===s}function Mt(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function Rt(m){return M(m)===l}function Tt(m){return M(m)===r}function At(m){return M(m)===y}function Nt(m){return M(m)===b}function zt(m){return M(m)===n}function Ot(m){return M(m)===i}function Ft(m){return M(m)===o}function Lt(m){return M(m)===a}P.AsyncMode=u,P.ConcurrentMode=z,P.ContextConsumer=k,P.ContextProvider=gt,P.Element=xt,P.ForwardRef=yt,P.Fragment=bt,P.Lazy=vt,P.Memo=Et,P.Portal=wt,P.Profiler=St,P.StrictMode=Ct,P.Suspense=Pt,P.isAsyncMode=kt,P.isConcurrentMode=Ne,P.isContextConsumer=$t,P.isContextProvider=_t,P.isElement=Mt,P.isForwardRef=Rt,P.isFragment=Tt,P.isLazy=At,P.isMemo=Nt,P.isPortal=zt,P.isProfiler=Ot,P.isStrictMode=Ft,P.isSuspense=Lt,P.isValidElementType=$,P.typeOf=M}()),P}process.env.NODE_ENV==="production"?Se.exports=mn():Se.exports=gn();var xn=Se.exports,nt=xn,yn={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},bn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rt={};rt[nt.ForwardRef]=yn;rt[nt.Memo]=bn;var vn=!0;function En(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var ot=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||vn===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},wn=function(t,n,r){ot(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Sn(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Cn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Pn(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var kn=/[A-Z]|^ms/g,$n=/_EMO_([^_]+?)_([^]*?)_EMO_/g,it=function(t){return t.charCodeAt(1)===45},Ve=function(t){return t!=null&&typeof t!="boolean"},ye=Pn(function(e){return it(e)?e:e.replace(kn,"-$&").toLowerCase()}),je=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace($n,function(r,o,i){return V={name:o,styles:i,next:V},o})}return Cn[t]!==1&&!it(t)&&typeof n=="number"&&n!==0?n+"px":n};function re(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return V={name:o.name,styles:o.styles,next:V},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)V={name:s.name,styles:s.styles,next:V},s=s.next;var d=i.styles+";";return d}return _n(e,t,n)}case"function":{if(e!==void 0){var f=V,p=n(e);return V=f,re(e,t,p)}break}}var l=n;return l}function _n(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=re(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var d=s;Ve(d)&&(r+=ye(i)+":"+je(i,d)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var f=0;f<s.length;f++)Ve(s[f])&&(r+=ye(i)+":"+je(i,s[f])+";");else{var p=re(e,t,s);switch(i){case"animation":case"animationName":{r+=ye(i)+":"+p+";";break}default:r+=i+"{"+p+"}"}}}return r}var Be=/label:\s*([^\s;{]+)\s*(;|$)/g,V;function Ke(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";V=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=re(n,t,i);else{var s=i;o+=s[0]}for(var d=1;d<e.length;d++)if(o+=re(n,t,e[d]),r){var f=i;o+=f[d]}Be.lastIndex=0;for(var p="",l;(l=Be.exec(o))!==null;)p+="-"+l[1];var a=Sn(o)+p;return{name:a,styles:o,next:V}}var Mn=function(t){return t()},Rn=B.useInsertionEffect?B.useInsertionEffect:!1,Tn=Rn||Mn,me={}.hasOwnProperty,Me=B.createContext(typeof HTMLElement<"u"?hn({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Me.displayName="EmotionCacheContext");Me.Provider;var An=function(t){return v.forwardRef(function(n,r){var o=v.useContext(Me);return t(n,o,r)})},st=B.createContext({});process.env.NODE_ENV!=="production"&&(st.displayName="EmotionThemeContext");var Ye=function(t){var n=t.split(".");return n[n.length-1]},Nn=function(t){var n=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(n||(n=/^([A-Za-z0-9$.]+)@/.exec(t),n))return Ye(n[1])},zn=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),On=function(t){return t.replace(/\$/g,"-")},Fn=function(t){if(t)for(var n=t.split(`
16
- `),r=0;r<n.length;r++){var o=Nn(n[r]);if(o){if(zn.has(o))break;if(/^[A-Z]/.test(o))return On(o)}}},Ce="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Pe="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",at=function(t,n){if(process.env.NODE_ENV!=="production"&&typeof n.css=="string"&&n.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+n.css+"`");var r={};for(var o in n)me.call(n,o)&&(r[o]=n[o]);if(r[Ce]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var i=Fn(new Error().stack);i&&(r[Pe]=i)}return r},Ln=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ot(n,r,o),Tn(function(){return wn(n,r,o)}),null},ct=An(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Ce],i=[r],s="";typeof e.className=="string"?s=En(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var d=Ke(i,void 0,B.useContext(st));if(process.env.NODE_ENV!=="production"&&d.name.indexOf("-")===-1){var f=e[Pe];f&&(d=Ke([d,"label:"+f+";"]))}s+=t.key+"-"+d.name;var p={};for(var l in e)me.call(e,l)&&l!=="css"&&l!==Ce&&(process.env.NODE_ENV==="production"||l!==Pe)&&(p[l]=e[l]);return p.ref=n,p.className=s,B.createElement(B.Fragment,null,B.createElement(Ln,{cache:t,serialized:d,isStringTag:typeof o=="string"}),B.createElement(o,p))});process.env.NODE_ENV!=="production"&&(ct.displayName="EmotionCssPropInternal");var lt=ct,K=ee.Fragment;function c(e,t,n){return me.call(t,"css")?ee.jsx(lt,at(e,t),n):ee.jsx(e,t,n)}function g(e,t,n){return me.call(t,"css")?ee.jsxs(lt,at(e,t),n):ee.jsxs(e,t,n)}const Re=v.createContext(void 0),We=h.div`
15
+ */var Ie;function yn(){return Ie||(Ie=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,a=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function $(m){return typeof m=="string"||typeof m=="function"||m===r||m===u||m===i||m===o||m===a||m===x||typeof m=="object"&&m!==null&&(m.$$typeof===y||m.$$typeof===b||m.$$typeof===s||m.$$typeof===d||m.$$typeof===l||m.$$typeof===A||m.$$typeof===_||m.$$typeof===T||m.$$typeof===S)}function M(m){if(typeof m=="object"&&m!==null){var xe=m.$$typeof;switch(xe){case t:var ie=m.type;switch(ie){case f:case u:case r:case i:case o:case a:return ie;default:var ze=ie&&ie.$$typeof;switch(ze){case d:case l:case y:case b:case s:return ze;default:return xe}}case n:return xe}}}var p=f,z=u,k=d,xt=s,yt=t,bt=l,vt=r,Et=y,wt=b,St=n,Ct=i,Pt=o,kt=a,Ae=!1;function $t(m){return Ae||(Ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Ne(m)||M(m)===f}function Ne(m){return M(m)===u}function _t(m){return M(m)===d}function Mt(m){return M(m)===s}function Tt(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function Rt(m){return M(m)===l}function At(m){return M(m)===r}function Nt(m){return M(m)===y}function zt(m){return M(m)===b}function Ot(m){return M(m)===n}function Ft(m){return M(m)===i}function Lt(m){return M(m)===o}function Dt(m){return M(m)===a}P.AsyncMode=p,P.ConcurrentMode=z,P.ContextConsumer=k,P.ContextProvider=xt,P.Element=yt,P.ForwardRef=bt,P.Fragment=vt,P.Lazy=Et,P.Memo=wt,P.Portal=St,P.Profiler=Ct,P.StrictMode=Pt,P.Suspense=kt,P.isAsyncMode=$t,P.isConcurrentMode=Ne,P.isContextConsumer=_t,P.isContextProvider=Mt,P.isElement=Tt,P.isForwardRef=Rt,P.isFragment=At,P.isLazy=Nt,P.isMemo=zt,P.isPortal=Ot,P.isProfiler=Ft,P.isStrictMode=Lt,P.isSuspense=Dt,P.isValidElementType=$,P.typeOf=M}()),P}process.env.NODE_ENV==="production"?Se.exports=xn():Se.exports=yn();var bn=Se.exports,nt=bn,vn={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},En={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rt={};rt[nt.ForwardRef]=vn;rt[nt.Memo]=En;var wn=!0;function Sn(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var ot=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||wn===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Cn=function(t,n,r){ot(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Pn(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var kn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function $n(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var _n=/[A-Z]|^ms/g,Mn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,it=function(t){return t.charCodeAt(1)===45},Ve=function(t){return t!=null&&typeof t!="boolean"},ye=$n(function(e){return it(e)?e:e.replace(_n,"-$&").toLowerCase()}),je=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Mn,function(r,o,i){return V={name:o,styles:i,next:V},o})}return kn[t]!==1&&!it(t)&&typeof n=="number"&&n!==0?n+"px":n};function re(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return V={name:o.name,styles:o.styles,next:V},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)V={name:s.name,styles:s.styles,next:V},s=s.next;var d=i.styles+";";return d}return Tn(e,t,n)}case"function":{if(e!==void 0){var f=V,u=n(e);return V=f,re(e,t,u)}break}}var l=n;return l}function Tn(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=re(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var d=s;Ve(d)&&(r+=ye(i)+":"+je(i,d)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var f=0;f<s.length;f++)Ve(s[f])&&(r+=ye(i)+":"+je(i,s[f])+";");else{var u=re(e,t,s);switch(i){case"animation":case"animationName":{r+=ye(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var Be=/label:\s*([^\s;{]+)\s*(;|$)/g,V;function Ke(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";V=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=re(n,t,i);else{var s=i;o+=s[0]}for(var d=1;d<e.length;d++)if(o+=re(n,t,e[d]),r){var f=i;o+=f[d]}Be.lastIndex=0;for(var u="",l;(l=Be.exec(o))!==null;)u+="-"+l[1];var a=Pn(o)+u;return{name:a,styles:o,next:V}}var Rn=function(t){return t()},An=B.useInsertionEffect?B.useInsertionEffect:!1,Nn=An||Rn,me={}.hasOwnProperty,Me=B.createContext(typeof HTMLElement<"u"?gn({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Me.displayName="EmotionCacheContext");Me.Provider;var zn=function(t){return v.forwardRef(function(n,r){var o=v.useContext(Me);return t(n,o,r)})},st=B.createContext({});process.env.NODE_ENV!=="production"&&(st.displayName="EmotionThemeContext");var Ye=function(t){var n=t.split(".");return n[n.length-1]},On=function(t){var n=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(n||(n=/^([A-Za-z0-9$.]+)@/.exec(t),n))return Ye(n[1])},Fn=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Ln=function(t){return t.replace(/\$/g,"-")},Dn=function(t){if(t)for(var n=t.split(`
16
+ `),r=0;r<n.length;r++){var o=On(n[r]);if(o){if(Fn.has(o))break;if(/^[A-Z]/.test(o))return Ln(o)}}},Ce="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Pe="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",at=function(t,n){if(process.env.NODE_ENV!=="production"&&typeof n.css=="string"&&n.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+n.css+"`");var r={};for(var o in n)me.call(n,o)&&(r[o]=n[o]);if(r[Ce]=t,process.env.NODE_ENV!=="production"&&n.css&&(typeof n.css!="object"||typeof n.css.name!="string"||n.css.name.indexOf("-")===-1)){var i=Dn(new Error().stack);i&&(r[Pe]=i)}return r},In=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ot(n,r,o),Nn(function(){return Cn(n,r,o)}),null},ct=zn(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Ce],i=[r],s="";typeof e.className=="string"?s=Sn(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var d=Ke(i,void 0,B.useContext(st));if(process.env.NODE_ENV!=="production"&&d.name.indexOf("-")===-1){var f=e[Pe];f&&(d=Ke([d,"label:"+f+";"]))}s+=t.key+"-"+d.name;var u={};for(var l in e)me.call(e,l)&&l!=="css"&&l!==Ce&&(process.env.NODE_ENV==="production"||l!==Pe)&&(u[l]=e[l]);return u.ref=n,u.className=s,B.createElement(B.Fragment,null,B.createElement(In,{cache:t,serialized:d,isStringTag:typeof o=="string"}),B.createElement(o,u))});process.env.NODE_ENV!=="production"&&(ct.displayName="EmotionCssPropInternal");var lt=ct,K=ee.Fragment;function c(e,t,n){return me.call(t,"css")?ee.jsx(lt,at(e,t),n):ee.jsx(e,t,n)}function g(e,t,n){return me.call(t,"css")?ee.jsxs(lt,at(e,t),n):ee.jsxs(e,t,n)}const Te=v.createContext(void 0),We=h.div`
17
17
  padding-inline: 20px;
18
18
  width: 100%;
19
19
  height: 100vh;
@@ -26,13 +26,13 @@
26
26
  top: 0;
27
27
  left: 0;
28
28
  z-index: 10000;
29
- `,Dn=({remotesOverride:e,onBeforeInitialize:t,pluginConfig:n,children:r})=>{const[o,i]=v.useState(),[s,d]=v.useState(null);return v.useEffect(()=>{(async()=>{var p,l;try{t&&(console.log("KosPluginProvider: Waiting for pre-initialization conditions..."),await t(),console.log("KosPluginProvider: Pre-initialization complete"));let a=e;const x=(p=window.KosPlugins)==null?void 0:p.__dynamicRemotes;a||(x&&Object.keys(x).length>0?(console.log("KosPluginProvider: Using existing plugin initialization"),a=x):(console.log("KosPluginProvider: Initializing plugins..."),await F.initializeKosPlugins(n),a=(l=window.KosPlugins)==null?void 0:l.__dynamicRemotes));const b=await F.initPluginManager(a);i(b)}catch(a){console.error("KosPluginProvider: Failed to initialize plugins",a),d(a)}})()},[e,t,n]),s?g(We,{children:[c("div",{children:"Failed to load plugins"}),c("div",{style:{fontSize:"12px",marginTop:"10px",opacity:.8},children:s.message})]}):c(Re.Provider,{value:o,children:o?r:c(We,{children:"Loading remote plugins..."})})},G=()=>{const e=v.useContext(Re);if(!e)throw new Error("useKosPluginsContext must be used within a KosPluginProvider");return e},In=e=>{var t;return((t=e==null?void 0:e.view)==null?void 0:t.component)!==void 0},dt=({extension:e,module:t})=>{const{extensions:n}=G(),[r,o]=v.useState(null),[i,s]=v.useState(null);return v.useEffect(()=>{async function d(){const f=F.resolveBestExtension(n==null?void 0:n[e],t);s(f??null);const p=(f==null?void 0:f.remote)||"",l=In(f)?f.view.component:f==null?void 0:f.component,a=l?`./${l}`:"";if(!p)return;const x=v.lazy(()=>F.mf.loadRemoteModule(p,a));o(x)}d()},[n,t,e]),[r,i]};class Vn extends v.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,n){console.error("ErrorBoundary caught an error:",t,n)}render(){return this.state.hasError?this.props.fallback:this.props.children}}const jn=h.div`
29
+ `,Vn=({remotesOverride:e,onBeforeInitialize:t,pluginConfig:n,children:r})=>{const[o,i]=v.useState(),[s,d]=v.useState(null);return v.useEffect(()=>{(async()=>{var u,l;try{t&&(console.log("KosPluginProvider: Waiting for pre-initialization conditions..."),await t(),console.log("KosPluginProvider: Pre-initialization complete"));let a=e;const x=(u=window.KosPlugins)==null?void 0:u.__dynamicRemotes;a||(x&&Object.keys(x).length>0?(console.log("KosPluginProvider: Using existing plugin initialization"),a=x):(console.log("KosPluginProvider: Initializing plugins..."),await F.initializeKosPlugins(n),a=(l=window.KosPlugins)==null?void 0:l.__dynamicRemotes));const b=await F.initPluginManager(a);i(b)}catch(a){console.error("KosPluginProvider: Failed to initialize plugins",a),d(a)}})()},[e,t,n]),s?g(We,{children:[c("div",{children:"Failed to load plugins"}),c("div",{style:{fontSize:"12px",marginTop:"10px",opacity:.8},children:s.message})]}):c(Te.Provider,{value:o,children:o?r:c(We,{children:"Loading remote plugins..."})})},Z=()=>{const e=v.useContext(Te);if(!e)throw new Error("useKosPluginsContext must be used within a KosPluginProvider");return e},jn=e=>{var t;return((t=e==null?void 0:e.view)==null?void 0:t.component)!==void 0},dt=({extension:e,module:t})=>{const{extensions:n}=Z(),[r,o]=v.useState(null),[i,s]=v.useState(null);return v.useEffect(()=>{async function d(){const f=F.resolveBestExtension(n==null?void 0:n[e],t);s(f??null);const u=(f==null?void 0:f.remote)||"",l=jn(f)?f.view.component:f==null?void 0:f.component,a=l?`./${l}`:"";if(!u)return;const x=v.lazy(()=>F.mf.loadRemoteModule(u,a));o(x)}d()},[n,t,e]),[r,i]};class Bn extends v.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,n){console.error("ErrorBoundary caught an error:",t,n)}render(){return this.state.hasError?this.props.fallback:this.props.children}}const Kn=h.div`
30
30
  align-items: center;
31
31
  display: flex;
32
32
  height: 100%;
33
33
  justify-content: center;
34
34
  width: 100%;
35
- `,Bn=h.div`
35
+ `,Yn=h.div`
36
36
  align-items: center;
37
37
  background-color: transparent;
38
38
  display: flex;
@@ -40,22 +40,22 @@
40
40
  height: ${e=>e.height};
41
41
  justify-content: center;
42
42
  width: ${e=>e.width};
43
- `,ge=({extension:e,fallback:t,module:n,props:r})=>{const[o,i]=dt({extension:e,module:n});if(!o)return null;const s=t||c(jn,{children:`Dynamic component, ${e}, not found...`});return c(Vn,{fallback:s,children:c(v.Suspense,{fallback:i!=null&&i.size?c(Bn,{width:i.size.width,height:i.size.height}):null,children:c(o,{...r})})})},Kn=h.div`
43
+ `,ge=({extension:e,fallback:t,module:n,props:r})=>{const[o,i]=dt({extension:e,module:n});if(!o)return null;const s=t||c(Kn,{children:`Dynamic component, ${e}, not found...`});return c(Bn,{fallback:s,children:c(v.Suspense,{fallback:i!=null&&i.size?c(Yn,{width:i.size.width,height:i.size.height}):null,children:c(o,{...r})})})},Wn=h.div`
44
44
  display: flex;
45
45
  flex-direction: column;
46
46
  height: 100%;
47
47
  min-height: 0; /* Important for flexbox children to shrink */
48
- `,Yn=h.div`
48
+ `,Hn=h.div`
49
49
  padding: 16px;
50
50
  border-bottom: 1px solid #e1e5e9;
51
51
  background: #f6f8fa;
52
52
  flex-shrink: 0; /* Prevent header from shrinking */
53
- `,Wn=h.h3`
53
+ `,Un=h.h3`
54
54
  margin: 0 0 8px 0;
55
55
  font-size: 16px;
56
56
  font-weight: 600;
57
57
  color: #24292f;
58
- `,Hn=h.input`
58
+ `,qn=h.input`
59
59
  width: 100%;
60
60
  padding: 8px 12px;
61
61
  border: 1px solid #d0d7de;
@@ -68,11 +68,11 @@
68
68
  border-color: #0969da;
69
69
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
70
70
  }
71
- `,Un=h.div`
71
+ `,Gn=h.div`
72
72
  flex: 1;
73
73
  overflow-y: auto;
74
74
  min-height: 0; /* Critical for making overflow work in flexbox */
75
- `,qn=h.div`
75
+ `,Zn=h.div`
76
76
  padding: 12px 16px;
77
77
  border-bottom: 1px solid #f0f0f0;
78
78
  cursor: pointer;
@@ -83,12 +83,12 @@
83
83
  &:hover {
84
84
  background: #f6f8fa;
85
85
  }
86
- `,Gn=h.div`
86
+ `,Xn=h.div`
87
87
  font-weight: 500;
88
88
  font-size: 14px;
89
89
  color: #24292f;
90
90
  margin-bottom: 4px;
91
- `,Zn=h.div`
91
+ `,Jn=h.div`
92
92
  font-size: 12px;
93
93
  color: #656d76;
94
94
  display: flex;
@@ -101,26 +101,26 @@
101
101
  font-weight: 500;
102
102
 
103
103
  ${e=>{switch(e.variant){case"simplified":return"background: #ddf4ff; color: #0969da;";case"legacy":return"background: #fff8dc; color: #9a6700;";case"deprecated":return"background: #ffebe9; color: #cf222e;";default:return"background: #f6f8fa; color: #656d76;"}}}
104
- `,Xn=h.div`
104
+ `,Qn=h.div`
105
105
  padding: 40px 16px;
106
106
  text-align: center;
107
107
  color: #656d76;
108
108
  font-size: 14px;
109
- `,ft=({extensionPoints:e,selectedExtensionId:t,onExtensionSelect:n,searchTerm:r,onSearchChange:o,className:i})=>g(Kn,{className:i,children:[g(Yn,{children:[c(Wn,{children:"Extension Points"}),c(Hn,{placeholder:"Search extension points...",value:r,onChange:s=>o(s.target.value)})]}),c(Un,{children:e.length>0?e.map(s=>{var d;return g(qn,{selected:s.id===t,onClick:()=>n(s.id),children:[c(Gn,{children:s.displayName||s.id}),g(Zn,{children:[g("div",{children:[c(He,{variant:s.source,children:s.source}),((d=s.metadata)==null?void 0:d.deprecated)&&c(He,{variant:"deprecated",style:{marginLeft:4},children:"deprecated"})]}),g("div",{children:[s.pluginCount," plugin",s.pluginCount!==1?"s":""]})]})]},s.id)}):c(Xn,{children:r?`No extension points match "${r}"`:"No extension points available"})})]});function Te(e){const{extensions:t}=G();return v.useMemo(()=>{try{const r=F.PluginDiscoveryService.getExtensionPoints(t,e),o=F.PluginDiscoveryService.calculateHealthStats(r);return{extensionPoints:r,healthStats:o,isLoading:!1,error:void 0}}catch(r){return{extensionPoints:[],healthStats:{totalExtensionPoints:0,extensionPointsWithPlugins:0,totalPlugins:0,simplifiedExtensionPoints:0,legacyExtensionPoints:0,deprecatedExtensionPoints:0},isLoading:!1,error:r}}},[t,e])}function ut(e,t){const n=Te(t),r=v.useMemo(()=>F.PluginDiscoveryService.filterExtensionPoints(n.extensionPoints,e),[n.extensionPoints,e]);return{...n,filteredExtensionPoints:r}}function Jn(e){const{extensionPoints:t}=Te();return v.useMemo(()=>F.PluginDiscoveryService.getExtensionPointById(t,e),[t,e])}const Qn=h.div`
109
+ `,ft=({extensionPoints:e,selectedExtensionId:t,onExtensionSelect:n,searchTerm:r,onSearchChange:o,className:i})=>g(Wn,{className:i,children:[g(Hn,{children:[c(Un,{children:"Extension Points"}),c(qn,{placeholder:"Search extension points...",value:r,onChange:s=>o(s.target.value)})]}),c(Gn,{children:e.length>0?e.map(s=>{var d;return g(Zn,{selected:s.id===t,onClick:()=>n(s.id),children:[c(Xn,{children:s.displayName||s.id}),g(Jn,{children:[g("div",{children:[c(He,{variant:s.source,children:s.source}),((d=s.metadata)==null?void 0:d.deprecated)&&c(He,{variant:"deprecated",style:{marginLeft:4},children:"deprecated"})]}),g("div",{children:[s.pluginCount," plugin",s.pluginCount!==1?"s":""]})]})]},s.id)}):c(Qn,{children:r?`No extension points match "${r}"`:"No extension points available"})})]});function Re(e){const{extensions:t}=Z();return v.useMemo(()=>{try{const r=F.PluginDiscoveryService.getExtensionPoints(t,e),o=F.PluginDiscoveryService.calculateHealthStats(r);return{extensionPoints:r,healthStats:o,isLoading:!1,error:void 0}}catch(r){return{extensionPoints:[],healthStats:{totalExtensionPoints:0,extensionPointsWithPlugins:0,totalPlugins:0,simplifiedExtensionPoints:0,legacyExtensionPoints:0,deprecatedExtensionPoints:0},isLoading:!1,error:r}}},[t,e])}function ut(e,t){const n=Re(t),r=v.useMemo(()=>F.PluginDiscoveryService.filterExtensionPoints(n.extensionPoints,e),[n.extensionPoints,e]);return{...n,filteredExtensionPoints:r}}function er(e){const{extensionPoints:t}=Re();return v.useMemo(()=>F.PluginDiscoveryService.getExtensionPointById(t,e),[t,e])}const tr=h.div`
110
110
  border: 1px solid #e1e5e9;
111
111
  border-radius: 6px;
112
112
  padding: 12px;
113
113
  background: white;
114
114
  transition: all 0.2s ease;
115
- `,er=h.div`
115
+ `,nr=h.div`
116
116
  display: flex;
117
117
  align-items: center;
118
118
  justify-content: space-between;
119
119
  margin-bottom: 8px;
120
- `,tr=h.div`
120
+ `,rr=h.div`
121
121
  display: flex;
122
122
  align-items: center;
123
- `,nr=h.div`
123
+ `,or=h.div`
124
124
  display: inline-block;
125
125
  width: 8px;
126
126
  height: 8px;
@@ -128,12 +128,12 @@
128
128
  margin-right: 6px;
129
129
 
130
130
  ${e=>{switch(e.status){case"healthy":return"background: #1a7f37;";case"warning":return"background: #bf8700;";case"error":return"background: #cf222e;";default:return"background: #656d76;"}}}
131
- `,rr=h.h5`
131
+ `,ir=h.h5`
132
132
  margin: 0;
133
133
  font-size: 14px;
134
134
  font-weight: 600;
135
135
  color: #24292f;
136
- `,or=h.div`
136
+ `,sr=h.div`
137
137
  font-size: 12px;
138
138
  color: #656d76;
139
139
  line-height: 1.4;
@@ -155,28 +155,28 @@
155
155
  text-overflow: ellipsis;
156
156
  white-space: nowrap;
157
157
  }
158
- `,ir=h.div`
158
+ `,ar=h.div`
159
159
  color: #656d76;
160
160
  font-style: italic;
161
161
  margin-top: 4px;
162
162
  font-size: 12px;
163
- `,sr=h.div`
163
+ `,cr=h.div`
164
164
  margin-top: 6px;
165
165
  display: flex;
166
166
  flex-wrap: wrap;
167
167
  gap: 4px;
168
- `,ar=h.span`
168
+ `,lr=h.span`
169
169
  background: #f6f8fa;
170
170
  border: 1px solid #d0d7de;
171
171
  border-radius: 12px;
172
172
  padding: 2px 6px;
173
173
  font-size: 10px;
174
174
  color: #24292f;
175
- `,cr=h.div`
175
+ `,dr=h.div`
176
176
  margin-top: 8px;
177
177
  padding-top: 8px;
178
178
  border-top: 1px solid #f0f0f0;
179
- `,lr=h.div`
179
+ `,fr=h.div`
180
180
  display: flex;
181
181
  align-items: flex-start;
182
182
  gap: 6px;
@@ -187,7 +187,7 @@
187
187
  margin-bottom: 4px;
188
188
 
189
189
  ${e=>{switch(e.type){case"error":return"background: #ffebe9; color: #cf222e; border-left: 3px solid #cf222e;";case"warning":return"background: #fff8dc; color: #9a6700; border-left: 3px solid #bf8700;";case"info":return"background: #ddf4ff; color: #0969da; border-left: 3px solid #0969da;";default:return"background: #f6f8fa; color: #656d76;"}}}
190
- `,dr=h.span`
190
+ `,ur=h.span`
191
191
  font-size: 12px;
192
192
  font-weight: bold;
193
193
  flex-shrink: 0;
@@ -196,15 +196,15 @@
196
196
  &::before {
197
197
  content: "${e=>{switch(e.type){case"error":return"❌";case"warning":return"⚠️";case"info":return"ℹ️";default:return"•"}}}";
198
198
  }
199
- `,fr=h.div`
199
+ `,pr=h.div`
200
200
  flex: 1;
201
- `;function ur(e,t){if(F.getExtensionPointRegistry().getExtensionPoint(t)&&e.data)return e.data}function pr(e){const n=F.getExtensionPointRegistry().getExtensionPoint(e);return n!=null&&n.getSchemaFieldInfo?n.getSchemaFieldInfo().map(r=>r.name):[]}const pt=({plugin:e,extensionPointId:t,className:n})=>{const r=F.PluginDiscoveryService.analyzePlugin(e),{hasComponent:o,healthStatus:i,capabilities:s}=r,d=F.getValidationResults(e.id),f=ur(e,t),p=pr(t);return g(Qn,{className:n,children:[c(er,{children:g(tr,{children:[c(nr,{status:i}),c(rr,{children:e.id})]})}),g(or,{children:[g(J,{children:[c("strong",{children:"Source:"}),c("span",{children:e.remote?`${e.remote} plugin`:"Local"})]}),g(J,{children:[c("strong",{children:"Type:"}),c("span",{children:e.type})]}),typeof e.rank=="number"&&g(J,{children:[c("strong",{children:"Priority:"}),g("span",{children:[e.rank," (higher = preferred)"]})]}),e.component&&g(J,{children:[c("strong",{children:"Component:"}),c("span",{children:e.component})]}),f&&p.map(l=>{const a=f[l];if(a==null)return null;const x=l.replace(/([A-Z])/g," $1").replace(/^./,b=>b.toUpperCase()).trim();return g(J,{children:[g("strong",{children:[x,":"]}),c("span",{children:String(a)})]},l)}),!o&&c(ir,{children:"No UI component (data/utility plugin)"}),s.length>0&&c(sr,{children:s.map(l=>c(ar,{children:l},l))}),d.length>0&&c(cr,{children:d.map((l,a)=>g(lr,{type:l.type,children:[c(dr,{type:l.type}),c(fr,{children:l.message})]},a))})]})]})},hr=h.div`
201
+ `;function hr(e,t){if(F.getExtensionPointRegistry().getExtensionPoint(t)&&e.data)return e.data}function mr(e){const n=F.getExtensionPointRegistry().getExtensionPoint(e);return n!=null&&n.getSchemaFieldInfo?n.getSchemaFieldInfo().map(r=>r.name):[]}const pt=({plugin:e,extensionPointId:t,className:n})=>{const r=F.PluginDiscoveryService.analyzePlugin(e),{hasComponent:o,healthStatus:i,capabilities:s}=r,d=F.getValidationResults(e.id),f=hr(e,t),u=mr(t);return g(tr,{className:n,children:[c(nr,{children:g(rr,{children:[c(or,{status:i}),c(ir,{children:e.id})]})}),g(sr,{children:[g(J,{children:[c("strong",{children:"Source:"}),c("span",{children:e.remote?`${e.remote} plugin`:"Local"})]}),g(J,{children:[c("strong",{children:"Type:"}),c("span",{children:e.type})]}),typeof e.rank=="number"&&g(J,{children:[c("strong",{children:"Priority:"}),g("span",{children:[e.rank," (higher = preferred)"]})]}),e.component&&g(J,{children:[c("strong",{children:"Component:"}),c("span",{children:e.component})]}),f&&u.map(l=>{const a=f[l];if(a==null)return null;const x=l.replace(/([A-Z])/g," $1").replace(/^./,b=>b.toUpperCase()).trim();return g(J,{children:[g("strong",{children:[x,":"]}),c("span",{children:String(a)})]},l)}),!o&&c(ar,{children:"No UI component (data/utility plugin)"}),s.length>0&&c(cr,{children:s.map(l=>c(lr,{children:l},l))}),d.length>0&&c(dr,{children:d.map((l,a)=>g(fr,{type:l.type,children:[c(ur,{type:l.type}),c(pr,{children:l.message})]},a))})]})]})},gr=h.div`
202
202
  padding: 12px 16px;
203
203
  border-bottom: 1px solid #e1e5e9;
204
204
  background: #f9f9f9;
205
205
  font-size: 12px;
206
206
  flex-shrink: 0; /* Prevent from shrinking */
207
- `,mr=h.div`
207
+ `,xr=h.div`
208
208
  font-weight: 600;
209
209
  margin-bottom: 8px;
210
210
  color: #24292f;
@@ -220,7 +220,7 @@
220
220
  display: flex;
221
221
  align-items: center;
222
222
  gap: 4px;
223
- `,gr=h.div`
223
+ `,yr=h.div`
224
224
  display: inline-block;
225
225
  width: 8px;
226
226
  height: 8px;
@@ -236,7 +236,7 @@
236
236
  font-weight: 500;
237
237
 
238
238
  ${e=>{switch(e.variant){case"simplified":return"background: #ddf4ff; color: #0969da;";case"legacy":return"background: #fff8dc; color: #9a6700;";case"deprecated":return"background: #ffebe9; color: #cf222e;";default:return"background: #f6f8fa; color: #656d76;"}}}
239
- `,xr=h.button`
239
+ `,br=h.button`
240
240
  background: #0969da;
241
241
  border: 1px solid #0969da;
242
242
  border-radius: 4px;
@@ -255,7 +255,7 @@
255
255
  &:active {
256
256
  background: #0757ba;
257
257
  }
258
- `,ht=({healthStats:e,className:t})=>{const{extensions:n}=G(),{totalPlugins:r,extensionPointsWithPlugins:o,totalExtensionPoints:i,simplifiedExtensionPoints:s,legacyExtensionPoints:d,deprecatedExtensionPoints:f}=e,p=()=>{try{const l=F.DocumentationGenerator.generateFullDocumentation(n,{includeUsageExamples:!0,includeTypeDefinitions:!0,includeLegacyExtensions:!0,includePluginHealth:!0}),a=new Blob([l.content],{type:"text/markdown"}),x=URL.createObjectURL(a),b=document.createElement("a");b.href=x,b.download=`kos-extension-points-${new Date().toISOString().split("T")[0]}.md`,document.body.appendChild(b),b.click(),document.body.removeChild(b),URL.revokeObjectURL(x)}catch(l){console.error("Failed to generate documentation:",l)}};return g(hr,{className:t,children:[c(mr,{children:"System Health"}),g(Ue,{children:[g(Q,{children:[c(gr,{status:"healthy"}),g("span",{children:[r," plugins"]})]}),c(Q,{children:g("span",{children:[o,"/",i," active"]})})]}),g(Ue,{children:[g(Q,{children:[c(be,{variant:"simplified",children:s}),c("span",{children:"simplified"})]}),g(Q,{children:[c(be,{variant:"legacy",children:d}),c("span",{children:"legacy"})]}),f>0&&g(Q,{children:[c(be,{variant:"deprecated",children:f}),c("span",{children:"deprecated"})]})]}),c(xr,{onClick:p,children:"Export Documentation"})]})},ve=h.div`
258
+ `,ht=({healthStats:e,className:t})=>{const{extensions:n}=Z(),{totalPlugins:r,extensionPointsWithPlugins:o,totalExtensionPoints:i,simplifiedExtensionPoints:s,legacyExtensionPoints:d,deprecatedExtensionPoints:f}=e,u=()=>{try{const l=F.DocumentationGenerator.generateFullDocumentation(n,{includeUsageExamples:!0,includeTypeDefinitions:!0,includeLegacyExtensions:!0,includePluginHealth:!0}),a=new Blob([l.content],{type:"text/markdown"}),x=URL.createObjectURL(a),b=document.createElement("a");b.href=x,b.download=`kos-extension-points-${new Date().toISOString().split("T")[0]}.md`,document.body.appendChild(b),b.click(),document.body.removeChild(b),URL.revokeObjectURL(x)}catch(l){console.error("Failed to generate documentation:",l)}};return g(gr,{className:t,children:[c(xr,{children:"System Health"}),g(Ue,{children:[g(Q,{children:[c(yr,{status:"healthy"}),g("span",{children:[r," plugins"]})]}),c(Q,{children:g("span",{children:[o,"/",i," active"]})})]}),g(Ue,{children:[g(Q,{children:[c(be,{variant:"simplified",children:s}),c("span",{children:"simplified"})]}),g(Q,{children:[c(be,{variant:"legacy",children:d}),c("span",{children:"legacy"})]}),f>0&&g(Q,{children:[c(be,{variant:"deprecated",children:f}),c("span",{children:"deprecated"})]})]}),c(br,{onClick:u,children:"Export Documentation"})]})},ve=h.div`
259
259
  display: flex;
260
260
  width: 100%;
261
261
  height: 100%;
@@ -267,7 +267,7 @@
267
267
  sans-serif;
268
268
  background: white;
269
269
  container-type: inline-size; /* Enable container queries */
270
- `,yr=h.div`
270
+ `,vr=h.div`
271
271
  flex: 0 0 35%; /* Take 35% of container width */
272
272
  min-width: 280px; /* Minimum usable width */
273
273
  max-width: 400px; /* Maximum width to prevent too wide */
@@ -282,7 +282,7 @@
282
282
  max-width: 100%;
283
283
  border-right: none;
284
284
  }
285
- `,br=h.div`
285
+ `,Er=h.div`
286
286
  flex: 1;
287
287
  min-width: 0; /* Allows flex child to shrink below content size */
288
288
  display: flex;
@@ -293,24 +293,24 @@
293
293
  @media (max-width: 768px) {
294
294
  display: none; /* We'll add mobile navigation later if needed */
295
295
  }
296
- `,vr=h.div`
296
+ `,wr=h.div`
297
297
  padding: 16px;
298
298
  border-bottom: 1px solid #e1e5e9;
299
299
  background: #f6f8fa;
300
- `,Er=h.h4`
300
+ `,Sr=h.h4`
301
301
  margin: 0 0 8px 0;
302
302
  font-size: 16px;
303
303
  font-weight: 600;
304
304
  color: #24292f;
305
- `,wr=h.p`
305
+ `,Cr=h.p`
306
306
  margin: 0;
307
307
  font-size: 14px;
308
308
  color: #656d76;
309
- `,Sr=h.div`
309
+ `,Pr=h.div`
310
310
  flex: 1;
311
311
  padding: 16px;
312
312
  overflow-y: auto;
313
- `,Cr=h.div`
313
+ `,kr=h.div`
314
314
  display: flex;
315
315
  flex-direction: column;
316
316
  gap: 12px;
@@ -323,26 +323,26 @@
323
323
  height: 100%;
324
324
  color: #656d76;
325
325
  text-align: center;
326
- `,Pr=h.div`
326
+ `,$r=h.div`
327
327
  margin-top: 16px;
328
328
  padding-top: 16px;
329
329
  border-top: 1px solid #e1e5e9;
330
- `,kr=h.h5`
330
+ `,_r=h.h5`
331
331
  margin: 0 0 8px 0;
332
332
  font-size: 14px;
333
333
  font-weight: 600;
334
334
  color: #24292f;
335
- `,$r=h.div`
335
+ `,Mr=h.div`
336
336
  display: grid;
337
337
  grid-template-columns: auto 1fr;
338
338
  gap: 8px 16px;
339
339
  font-size: 12px;
340
- `,Y=h.div`
340
+ `,W=h.div`
341
341
  color: #656d76;
342
342
  font-weight: 500;
343
- `,W=h.div`
343
+ `,H=h.div`
344
344
  color: #24292f;
345
- `,mt=({className:e,showLegacyExtensions:t=!0,extensionFilter:n=""})=>{const[r,o]=v.useState(null),[i,s]=v.useState(n),{filteredExtensionPoints:d,healthStats:f,isLoading:p,error:l}=ut(i,{includeLegacyExtensions:t}),a=d.find(y=>y.id===r),x=y=>{o(y)},b=y=>{s(y)};return l?c(ve,{className:e,children:c(ae,{children:g("div",{children:["Error loading plugins: ",l.message]})})}):p?c(ve,{className:e,children:c(ae,{children:c("div",{children:"Loading plugins..."})})}):g(ve,{className:e,children:[g(yr,{children:[c(ht,{healthStats:f}),c(ft,{extensionPoints:d,selectedExtensionId:r,onExtensionSelect:x,searchTerm:i,onSearchChange:b})]}),c(br,{children:a?g(K,{children:[g(vr,{children:[c(Er,{children:a.displayName||a.id}),a.description&&c(wr,{children:a.description})]}),g(Sr,{children:[a.plugins.length>0?g(K,{children:[g("h5",{style:{margin:"0 0 12px 0",fontSize:"14px",fontWeight:600},children:["Active Plugins (",a.pluginCount,")"]}),c(Cr,{children:a.plugins.map(y=>c(pt,{plugin:y,extensionPointId:a.id},y.id))})]}):g(ae,{children:[c("div",{style:{fontSize:"48px",marginBottom:"12px"},children:"🔌"}),c("div",{style:{fontSize:"16px",fontWeight:500,marginBottom:"8px"},children:"No plugins registered"}),c("div",{style:{fontSize:"14px"},children:"This extension point is available but no plugins are currently contributing to it."})]}),a.metadata&&g(Pr,{children:[c(kr,{children:"Extension Point Details"}),g($r,{children:[c(Y,{children:"ID:"}),c(W,{children:a.id}),c(Y,{children:"Source:"}),c(W,{children:a.source}),a.metadata.category&&g(K,{children:[c(Y,{children:"Category:"}),c(W,{children:a.metadata.category})]}),a.metadata.owner&&g(K,{children:[c(Y,{children:"Owner:"}),c(W,{children:a.metadata.owner})]}),a.metadata.since&&g(K,{children:[c(Y,{children:"Since:"}),c(W,{children:a.metadata.since})]}),a.metadata.tags&&a.metadata.tags.length>0&&g(K,{children:[c(Y,{children:"Tags:"}),c(W,{children:a.metadata.tags.join(", ")})]})]})]})]})]}):g(ae,{children:[c("div",{style:{fontSize:"48px",marginBottom:"12px"},children:"🔍"}),c("div",{style:{fontSize:"16px",fontWeight:500,marginBottom:"8px"},children:"Select an extension point"}),c("div",{style:{fontSize:"14px"},children:"Choose an extension point from the sidebar to view its plugins and details."})]})})]})},_r=h.div`
345
+ `,mt=({className:e,showLegacyExtensions:t=!0,extensionFilter:n=""})=>{const[r,o]=v.useState(null),[i,s]=v.useState(n),{filteredExtensionPoints:d,healthStats:f,isLoading:u,error:l}=ut(i,{includeLegacyExtensions:t}),a=d.find(y=>y.id===r),x=y=>{o(y)},b=y=>{s(y)};return l?c(ve,{className:e,children:c(ae,{children:g("div",{children:["Error loading plugins: ",l.message]})})}):u?c(ve,{className:e,children:c(ae,{children:c("div",{children:"Loading plugins..."})})}):g(ve,{className:e,children:[g(vr,{children:[c(ht,{healthStats:f}),c(ft,{extensionPoints:d,selectedExtensionId:r,onExtensionSelect:x,searchTerm:i,onSearchChange:b})]}),c(Er,{children:a?g(K,{children:[g(wr,{children:[c(Sr,{children:a.displayName||a.id}),a.description&&c(Cr,{children:a.description})]}),g(Pr,{children:[a.plugins.length>0?g(K,{children:[g("h5",{style:{margin:"0 0 12px 0",fontSize:"14px",fontWeight:600},children:["Active Plugins (",a.pluginCount,")"]}),c(kr,{children:a.plugins.map(y=>c(pt,{plugin:y,extensionPointId:a.id},y.id))})]}):g(ae,{children:[c("div",{style:{fontSize:"48px",marginBottom:"12px"},children:"🔌"}),c("div",{style:{fontSize:"16px",fontWeight:500,marginBottom:"8px"},children:"No plugins registered"}),c("div",{style:{fontSize:"14px"},children:"This extension point is available but no plugins are currently contributing to it."})]}),a.metadata&&g($r,{children:[c(_r,{children:"Extension Point Details"}),g(Mr,{children:[c(W,{children:"ID:"}),c(H,{children:a.id}),c(W,{children:"Source:"}),c(H,{children:a.source}),a.metadata.category&&g(K,{children:[c(W,{children:"Category:"}),c(H,{children:a.metadata.category})]}),a.metadata.owner&&g(K,{children:[c(W,{children:"Owner:"}),c(H,{children:a.metadata.owner})]}),a.metadata.since&&g(K,{children:[c(W,{children:"Since:"}),c(H,{children:a.metadata.since})]}),a.metadata.tags&&a.metadata.tags.length>0&&g(K,{children:[c(W,{children:"Tags:"}),c(H,{children:a.metadata.tags.join(", ")})]})]})]})]})]}):g(ae,{children:[c("div",{style:{fontSize:"48px",marginBottom:"12px"},children:"🔍"}),c("div",{style:{fontSize:"16px",fontWeight:500,marginBottom:"8px"},children:"Select an extension point"}),c("div",{style:{fontSize:"14px"},children:"Choose an extension point from the sidebar to view its plugins and details."})]})})]})},Tr=h.div`
346
346
  position: fixed;
347
347
  top: 0;
348
348
  left: 0;
@@ -355,7 +355,7 @@
355
355
  justify-content: center;
356
356
  padding: 20px;
357
357
  box-sizing: border-box;
358
- `,Mr=h.div`
358
+ `,Rr=h.div`
359
359
  background: white;
360
360
  border-radius: 12px;
361
361
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
@@ -365,19 +365,19 @@
365
365
  position: relative;
366
366
  display: flex;
367
367
  flex-direction: column;
368
- `,Rr=h.div`
368
+ `,Ar=h.div`
369
369
  display: flex;
370
370
  align-items: center;
371
371
  justify-content: space-between;
372
372
  padding: 16px 20px;
373
373
  border-bottom: 1px solid #e1e5e9;
374
374
  background: #f6f8fa;
375
- `,Tr=h.h3`
375
+ `,Nr=h.h3`
376
376
  margin: 0;
377
377
  font-size: 18px;
378
378
  font-weight: 600;
379
379
  color: #24292f;
380
- `,Ar=h.button`
380
+ `,zr=h.button`
381
381
  background: none;
382
382
  border: none;
383
383
  font-size: 20px;
@@ -390,7 +390,7 @@
390
390
  background: #f0f0f0;
391
391
  color: #24292f;
392
392
  }
393
- `,Nr=h.button`
393
+ `,Or=h.button`
394
394
  position: fixed;
395
395
  ${e=>{switch(e.position){case"top-left":return"top: 20px; left: 20px;";case"top-right":return"top: 20px; right: 20px;";case"bottom-left":return"bottom: 20px; left: 20px;";case"bottom-right":default:return"bottom: 20px; right: 20px;"}}}
396
396
 
@@ -419,11 +419,11 @@
419
419
  &:active {
420
420
  transform: scale(0.95);
421
421
  }
422
- `,zr=h.div`
422
+ `,Fr=h.div`
423
423
  font-size: 12px;
424
424
  color: #656d76;
425
425
  margin-left: 8px;
426
- `,Or=({keyboardShortcut:e="ctrl+shift+p",showToggleButton:t=!0,toggleButtonPosition:n="bottom-right",...r})=>{const[o,i]=v.useState(!1);v.useEffect(()=>{const f=p=>{const a=e.toLowerCase().split("+").map(y=>y.trim());let x=!0;a.includes("ctrl")&&!p.ctrlKey&&(x=!1),a.includes("shift")&&!p.shiftKey&&(x=!1),a.includes("alt")&&!p.altKey&&(x=!1),a.includes("meta")&&!p.metaKey&&(x=!1);const b=a.find(y=>!["ctrl","shift","alt","meta"].includes(y));b&&p.key.toLowerCase()!==b.toLowerCase()&&(x=!1),x&&(p.preventDefault(),i(y=>!y))};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[e]),v.useEffect(()=>{const f=p=>{p.key==="Escape"&&o&&i(!1)};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[o]);const s=()=>{i(f=>!f)},d=f=>{f.target===f.currentTarget&&i(!1)};return process.env.NODE_ENV!=="development"?null:g(K,{children:[t&&c(Nr,{position:n,onClick:s,title:`Plugin Explorer (${e})`,children:c("svg",{fill:"#ffffff",width:"28",height:"28",version:"1.1",id:"Artwork",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:{display:"block"},children:c("g",{children:c("path",{fill:"#ffffff",stroke:"#FFFFFF",d:`M202.7,259.7l-31.5,31.5c-5.6,5.6-8.6,13-8.6,20.9c0,7.9,3.1,15.3,8.6,20.9l6.1,6.1l-3.7,3.7c-11.1,11.1-29.2,11.1-40.4,0
426
+ `,Lr=({keyboardShortcut:e="ctrl+shift+p",showToggleButton:t=!0,toggleButtonPosition:n="bottom-right",...r})=>{const[o,i]=v.useState(!1);v.useEffect(()=>{const f=u=>{const a=e.toLowerCase().split("+").map(y=>y.trim());let x=!0;a.includes("ctrl")&&!u.ctrlKey&&(x=!1),a.includes("shift")&&!u.shiftKey&&(x=!1),a.includes("alt")&&!u.altKey&&(x=!1),a.includes("meta")&&!u.metaKey&&(x=!1);const b=a.find(y=>!["ctrl","shift","alt","meta"].includes(y));b&&u.key.toLowerCase()!==b.toLowerCase()&&(x=!1),x&&(u.preventDefault(),i(y=>!y))};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[e]),v.useEffect(()=>{const f=u=>{u.key==="Escape"&&o&&i(!1)};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[o]);const s=()=>{i(f=>!f)},d=f=>{f.target===f.currentTarget&&i(!1)};return process.env.NODE_ENV!=="development"?null:g(K,{children:[t&&c(Or,{position:n,onClick:s,title:`Plugin Explorer (${e})`,children:c("svg",{fill:"#ffffff",width:"28",height:"28",version:"1.1",id:"Artwork",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:{display:"block"},children:c("g",{children:c("path",{fill:"#ffffff",stroke:"#FFFFFF",d:`M202.7,259.7l-31.5,31.5c-5.6,5.6-8.6,13-8.6,20.9c0,7.9,3.1,15.3,8.6,20.9l6.1,6.1l-3.7,3.7c-11.1,11.1-29.2,11.1-40.4,0
427
427
  l-31.4-31.4c-20.7-20.7-54.3-20.7-75,0c-20.7,20.7-20.7,54.3,0,75l31.4,31.5c5.4,5.4,8.4,12.6,8.4,20.2s-3,14.8-8.4,20.2
428
428
  c-4.8,4.8-4.8,12.5,0,17.3c2.4,2.4,5.5,3.6,8.7,3.6c3.1,0,6.3-1.2,8.7-3.6c10-10,15.5-23.3,15.5-37.5s-5.5-27.5-15.5-37.5
429
429
  l-31.4-31.5c-11.1-11.1-11.1-29.2,0-40.4s29.2-11.1,40.4,0L116,360c20.7,20.7,54.3,20.7,75,0l3.7-3.7l6.1,6.1
@@ -433,5 +433,5 @@
433
433
  c-4.8-4.8-12.5-4.8-17.3,0c-4.8,4.8-4.8,12.5,0,17.3l9.9,9.9l-55.1,55.1C199,176.4,190,220.8,202.7,259.7z M247.1,286.6
434
434
  c-34.1-34.1-34.1-89.6,0-123.7l55.1-55.1L426,231.4l-55.1,55.1C336.7,320.7,281.2,320.7,247.1,286.6z M213.7,283.4
435
435
  c4.5,7.3,9.8,14.2,16.1,20.5s13.2,11.6,20.5,16.1l-25.2,25.2c-1.9,2-5.1,2-7.1,0l-29.5-29.5c-1.3-1.3-1.5-2.8-1.5-3.5
436
- c0-0.8,0.2-2.3,1.5-3.5L213.7,283.4z`})})})}),c(_r,{visible:o,onClick:d,children:g(Mr,{children:[g(Rr,{children:[g("div",{style:{display:"flex",alignItems:"center"},children:[c(Tr,{children:"KOS Plugin Explorer"}),g(zr,{children:[e," to toggle"]})]}),c(Ar,{onClick:()=>i(!1),"aria-label":"Close",children:"×"})]}),c(mt,{...r})]})})]})};function Z(e){const{extensions:t,getExtensions:n}=G();return v.useMemo(()=>{if(typeof e=="object"&&e.id){const o=e;if(o.getExtensions&&t){const s=o.getExtensions(t);return Object.values(s)}const i=(t==null?void 0:t[o.id])||{};return Object.values(i)}return n(e)},[e,t,n])}function Fr(e,t){const{extensions:n}=G(),r=Z(e);return v.useMemo(()=>{if(!r||r.length===0)return null;if(t!=null&&t.customRanker)return t.customRanker(r);if(typeof e=="object"&&t){let d=r;if(t.propertyMatches&&(d=d.filter(p=>Object.entries(t.propertyMatches).every(([l,a])=>{var x;return((x=p.data)==null?void 0:x[l])===a}))),t.preferredModule){const p=d.find(l=>l.sectionId===t.preferredModule);if(p)return p}const f=d.reduce((p,l)=>(p[l.id]=l,p),{});return F.resolveBestExtension(f)}const o=typeof e=="string"?e:e.id,i=(n==null?void 0:n[o])||{};return F.resolveBestExtension(i,t==null?void 0:t.preferredModule)},[e,r,n,t])}function Lr(e){return Z(e).length>0}function Dr(e){return Z(e).length}function Ir(e,t){const n=Z(e);return v.useMemo(()=>{let r=n.filter(t.filter);return t.sort&&(r=r.sort(t.sort)),r},[n,t.filter,t.sort])}function Vr(e,t){const n=Z(e),[r,o]=v.useState(new Map),i=v.useMemo(()=>t!=null&&t.filter?n.filter(t.filter):n,[n,t==null?void 0:t.filter]),s=(t==null?void 0:t.moduleProperty)||"module";return v.useEffect(()=>{(async()=>{var f;for(const p of i){const l=p.id;if(!r.has(l)){o(a=>new Map(a).set(l,{module:null,loading:!0,error:null}));try{const a=((f=p.data)==null?void 0:f[s])||p[s]||`./${p.id}`,x=p.remote;if(!x)throw new Error(`No remote specified for extension ${l}`);const{loadRemoteModule:b}=await Promise.resolve().then(()=>require("./documentation-generator-CLTfyjgo.cjs")).then(S=>S.index),y=await b(x,a);o(S=>new Map(S).set(l,{module:y,loading:!1,error:null}))}catch(a){const x=a instanceof Error?a.message:"Unknown error";o(b=>new Map(b).set(l,{module:null,loading:!1,error:x}))}}}})()},[i,s,r]),v.useMemo(()=>i.map(d=>{const f=r.get(d.id)||{module:null,loading:!0,error:null};return{extension:d,module:f.module,loading:f.loading,error:f.error}}),[i,r])}function jr(e){return v.useMemo(()=>{if(!e.config.hasView)return null;const t=n=>{const{module:r,fallback:o,...i}=n;return v.createElement(ge,{extension:e.id,module:r,fallback:o,props:i})};return t.displayName=`${e.config.displayName||e.id}.Component`,t},[e])}function Br(e){if(!e.config.hasView)return null;const t=n=>{const{module:r,fallback:o,...i}=n;return v.createElement(ge,{extension:e.id,module:r,fallback:o,props:i})};return t.displayName=`${e.config.displayName||e.id}.Component`,t}function Kr(e){return v.useMemo(()=>{const n=F.getExtensionPointRegistry().getExtensionPoint(e);if(!n)return console.warn(`Extension point not found: ${e}`),null;if(!n.config.hasView)return null;const r=o=>{const{module:i,fallback:s,...d}=o;return v.createElement(ge,{extension:e,module:i,fallback:s,props:d})};return r.displayName=`${n.config.displayName||e}.Component`,r},[e])}exports.DynamicComponent=ge;exports.ExtensionPointList=ft;exports.FloatingPluginExplorer=Or;exports.KosPluginProvider=Dn;exports.PluginCard=pt;exports.PluginExplorer=mt;exports.PluginHealthDashboard=ht;exports.RemotesContext=Re;exports.createExtensionComponent=Br;exports.useBest=Fr;exports.useDynamicComponent=dt;exports.useExtensionComponent=jr;exports.useExtensionComponentById=Kr;exports.useExtensionCount=Dr;exports.useExtensionPoint=Jn;exports.useExtensions=Z;exports.useFilteredExtensionPoints=ut;exports.useFilteredExtensions=Ir;exports.useHasExtensions=Lr;exports.useKosPluginsContext=G;exports.useModules=Vr;exports.usePluginDiscovery=Te;
436
+ c0-0.8,0.2-2.3,1.5-3.5L213.7,283.4z`})})})}),c(Tr,{visible:o,onClick:d,children:g(Rr,{children:[g(Ar,{children:[g("div",{style:{display:"flex",alignItems:"center"},children:[c(Nr,{children:"KOS Plugin Explorer"}),g(Fr,{children:[e," to toggle"]})]}),c(zr,{onClick:()=>i(!1),"aria-label":"Close",children:"×"})]}),c(mt,{...r})]})})]})};function Y(e){const{extensions:t,getExtensions:n}=Z();return v.useMemo(()=>{if(typeof e=="object"&&e.id){const o=e;if(o.getExtensions&&t){const s=o.getExtensions(t);return Object.values(s)}const i=(t==null?void 0:t[o.id])||{};return Object.values(i)}return n(e)},[e,t,n])}function Dr(e,t){const{extensions:n}=Z(),r=Y(e);return v.useMemo(()=>{if(!r||r.length===0)return null;if(t!=null&&t.customRanker)return t.customRanker(r);if(typeof e=="object"&&t){let d=r;if(t.propertyMatches&&(d=d.filter(u=>Object.entries(t.propertyMatches).every(([l,a])=>{var x;return((x=u.data)==null?void 0:x[l])===a}))),t.preferredModule){const u=d.find(l=>l.sectionId===t.preferredModule);if(u)return u}const f=d.reduce((u,l)=>(u[l.id]=l,u),{});return F.resolveBestExtension(f)}const o=typeof e=="string"?e:e.id,i=(n==null?void 0:n[o])||{};return F.resolveBestExtension(i,t==null?void 0:t.preferredModule)},[e,r,n,t])}function Ir(e){return Y(e).length>0}function Vr(e){return Y(e).length}function jr(e,t){const n=Y(e);return v.useMemo(()=>{let r=n.filter(t.filter);return t.sort&&(r=r.sort(t.sort)),r},[n,t.filter,t.sort])}function Br(e,t){const n=Y(e),[r,o]=v.useState(new Map),i=v.useMemo(()=>t!=null&&t.filter?n.filter(t.filter):n,[n,t==null?void 0:t.filter]),s=(t==null?void 0:t.moduleProperty)||"module";return v.useEffect(()=>{(async()=>{var f;for(const u of i){const l=u.id;if(!r.has(l)){o(a=>new Map(a).set(l,{module:null,loading:!0,error:null}));try{const a=((f=u.data)==null?void 0:f[s])||u[s]||`./${u.id}`,x=u.remote;if(!x)throw new Error(`No remote specified for extension ${l}`);const{loadRemoteModule:b}=await Promise.resolve().then(()=>require("./documentation-generator-DFaIDo0E.cjs")).then(S=>S.index),y=await b(x,a);o(S=>new Map(S).set(l,{module:y,loading:!1,error:null}))}catch(a){const x=a instanceof Error?a.message:"Unknown error";o(b=>new Map(b).set(l,{module:null,loading:!1,error:x}))}}}})()},[i,s,r]),v.useMemo(()=>i.map(d=>{const f=r.get(d.id)||{module:null,loading:!0,error:null};return{extension:d,module:f.module,loading:f.loading,error:f.error}}),[i,r])}function Kr(e){return v.useMemo(()=>{if(!e.config.hasView)return null;const t=n=>{const{module:r,fallback:o,...i}=n;return v.createElement(ge,{extension:e.id,module:r,fallback:o,props:i})};return t.displayName=`${e.config.displayName||e.id}.Component`,t},[e])}function Yr(e){if(!e.config.hasView)return null;const t=n=>{const{module:r,fallback:o,...i}=n;return v.createElement(ge,{extension:e.id,module:r,fallback:o,props:i})};return t.displayName=`${e.config.displayName||e.id}.Component`,t}function gt(e){return v.useMemo(()=>{const n=F.getExtensionPointRegistry().getExtensionPoint(e);if(!n)return console.warn(`Extension point not found: ${e}`),null;if(!n.config.hasView)return null;const r=o=>{const{module:i,fallback:s,...d}=o;return v.createElement(ge,{extension:e,module:i,fallback:s,props:d})};return r.displayName=`${n.config.displayName||e}.Component`,r},[e])}function Wr(e,t){const n=Y(e),r=gt(e),o=(t==null?void 0:t.namespaceProperty)||"namespace",i=v.useMemo(()=>{const f=n.map(u=>{var l;return(l=u.data)==null?void 0:l[o]}).filter(Boolean);return Array.from(new Set(f))},[n,o]),{t:s,i18n:d}=Vt.useKosTranslation(i);return{extensions:n,t:s,i18n:d,Component:r,namespaces:i}}exports.DynamicComponent=ge;exports.ExtensionPointList=ft;exports.FloatingPluginExplorer=Lr;exports.KosPluginProvider=Vn;exports.PluginCard=pt;exports.PluginExplorer=mt;exports.PluginHealthDashboard=ht;exports.RemotesContext=Te;exports.createExtensionComponent=Yr;exports.useBest=Dr;exports.useDynamicComponent=dt;exports.useExtensionComponent=Kr;exports.useExtensionComponentById=gt;exports.useExtensionCount=Vr;exports.useExtensionI18n=Wr;exports.useExtensionPoint=er;exports.useExtensions=Y;exports.useFilteredExtensionPoints=ut;exports.useFilteredExtensions=jr;exports.useHasExtensions=Ir;exports.useKosPluginsContext=Z;exports.useModules=Br;exports.usePluginDiscovery=Re;
437
437
  //# sourceMappingURL=index.cjs.map