@ws-ui/shared 0.0.44 → 0.0.45
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.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -71,7 +71,7 @@ Check the top-level render call using <`+$+">.")}return P}}function er(d,P){{if(
|
|
|
71
71
|
|
|
72
72
|
`,{_:S}));for(;typeof w[w.length-1]=="string"&&!w[w.length-1].trim();)w.pop();if(r.wrapper===null)return w;const T=r.wrapper||(S?"span":"div");let D;if(w.length>1||r.forceWrapper)D=w;else{if(w.length===1)return D=w[0],typeof D=="string"?o("span",{key:"outer"},D):D;D=null}return I.createElement(T,{key:"outer"},D)}function u(v){const S=v.match(tE);return S?S.reduce(function(w,T,D){const M=T.indexOf("=");if(M!==-1){const R=function(F){return F.indexOf("-")!==-1&&F.match(vE)===null&&(F=F.replace(bE,function(N,Z){return Z.toUpperCase()})),F}(T.slice(0,M)).trim(),k=function(F){const N=F[0];return(N==='"'||N==="'")&&F.length>=2&&F[F.length-1]===N?F.slice(1,-1):F}(T.slice(M+1).trim()),x=Nd[R]||R,W=w[x]=function(F,N){return F==="style"?N.split(/;\s?/).reduce(function(Z,ne){const we=ne.slice(0,ne.indexOf(":"));return Z[we.replace(/(-[a-z])/g,Me=>Me[1].toUpperCase())]=ne.slice(we.length+1).trim(),Z},{}):F==="href"?pi(N):(N.match(mE)&&(N=N.slice(1,N.length-1)),N==="true"||N!=="false"&&N)}(R,k);typeof W=="string"&&(tc.test(W)||nc.test(W))&&(w[x]=I.cloneElement(a(W.trim()),{key:D}))}else T!=="style"&&(w[Nd[T]||T]=!0);return w},{}):null}const c=[],f={},h={blockQuote:{t:Xn(ph),i:Ne.HIGH,l:(v,S,w)=>({v:S(v[0].replace(iE,""),w)}),h:(v,S,w)=>o("blockquote",{key:w.k},S(v.v,w))},breakLine:{t:Yi(oE),i:Ne.HIGH,l:gu,h:(v,S,w)=>o("br",{key:w.k})},breakThematic:{t:Xn(aE),i:Ne.HIGH,l:gu,h:(v,S,w)=>o("hr",{key:w.k})},codeBlock:{t:Xn(vh),i:Ne.MAX,l:v=>({v:v[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(v,S,w)=>o("pre",{key:w.k},o("code",Wr({},v.O,{className:v.M?`lang-${v.M}`:""}),v.v))},codeFenced:{t:Xn(hh),i:Ne.MAX,l:v=>({O:u(v[3]||""),v:v[4],M:v[2]||void 0,type:"codeBlock"})},codeInline:{t:fr(sE),i:Ne.LOW,l:v=>({v:v[2]}),h:(v,S,w)=>o("code",{key:w.k},v.v)},footnote:{t:Xn(lE),i:Ne.MAX,l:v=>(c.push({I:v[2],j:v[1]}),{}),h:yu},footnoteReference:{t:lr(fE),i:Ne.HIGH,l:v=>({v:v[1],B:`#${r.slugify(v[1])}`}),h:(v,S,w)=>o("a",{key:w.k,href:pi(v.B)},o("sup",{key:w.k},v.v))},gfmTask:{t:lr(pE),i:Ne.HIGH,l:v=>({R:v[1].toLowerCase()==="x"}),h:(v,S,w)=>o("input",{checked:v.R,key:w.k,readOnly:!0,type:"checkbox"})},heading:{t:Xn(r.enforceAtxHeadings?gh:mh),i:Ne.HIGH,l:(v,S,w)=>({v:Ra(S,v[2],w),T:r.slugify(v[2]),C:v[1].length}),h:(v,S,w)=>o(`h${v.C}`,{id:v.T,key:w.k},S(v.v,w))},headingSetext:{t:Xn(yh),i:Ne.MAX,l:(v,S,w)=>({v:Ra(S,v[1],w),C:v[2]==="="?1:2,type:"heading"})},htmlComment:{t:Yi(wh),i:Ne.HIGH,l:()=>({}),h:yu},image:{t:fr(KE),i:Ne.HIGH,l:v=>({D:v[1],B:Hd(v[2]),F:v[3]}),h:(v,S,w)=>o("img",{key:w.k,alt:v.D||void 0,title:v.F||void 0,src:pi(v.B)})},link:{t:lr(qE),i:Ne.LOW,l:(v,S,w)=>({v:ZE(S,v[1],w),B:Hd(v[2]),F:v[3]}),h:(v,S,w)=>o("a",{key:w.k,href:pi(v.B),title:v.F},S(v.v,w))},linkAngleBraceStyleDetector:{t:lr(wE),i:Ne.MAX,l:v=>({v:[{v:v[1],type:"text"}],B:v[1],type:"link"})},linkBareUrlDetector:{t:(v,S)=>S.N?null:lr(gE)(v,S),i:Ne.MAX,l:v=>({v:[{v:v[1],type:"text"}],B:v[1],F:void 0,type:"link"})},linkMailtoDetector:{t:lr(yE),i:Ne.MAX,l(v){let S=v[1],w=v[1];return nE.test(w)||(w="mailto:"+w),{v:[{v:S.replace("mailto:",""),type:"text"}],B:w,type:"link"}}},orderedList:Wd(o,1),unorderedList:Wd(o,2),newlineCoalescer:{t:Xn(uE),i:Ne.LOW,l:gu,h:()=>`
|
|
73
73
|
`},paragraph:{t:JE,i:Ne.LOW,l:mu,h:(v,S,w)=>o("p",{key:w.k},S(v.v,w))},ref:{t:lr(_E),i:Ne.MAX,l:v=>(f[v[1]]={B:v[2],F:v[4]},{}),h:yu},refImage:{t:fr(SE),i:Ne.MAX,l:v=>({D:v[1]||void 0,P:v[2]}),h:(v,S,w)=>o("img",{key:w.k,alt:v.D,src:pi(f[v.P].B),title:f[v.P].F})},refLink:{t:lr(EE),i:Ne.MAX,l:(v,S,w)=>({v:S(v[1],w),Z:S(v[0].replace(xE,"\\$1"),w),P:v[2]}),h:(v,S,w)=>f[v.P]?o("a",{key:w.k,href:pi(f[v.P].B),title:f[v.P].F},S(v.v,w)):o("span",{key:w.k},S(v.Z,w))},table:{t:Xn(bh),i:Ne.HIGH,l:VE,h:(v,S,w)=>o("table",{key:w.k},o("thead",null,o("tr",null,v.L.map(function(T,D){return o("th",{key:D,style:Bd(v,D)},S(T,w))}))),o("tbody",null,v.A.map(function(T,D){return o("tr",{key:D},T.map(function(M,R){return o("td",{key:R,style:Bd(v,R)},S(M,w))}))})))},tableSeparator:{t:function(v,S){return S.$?(S._=!0,CE.exec(v)):null},i:Ne.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Yi(jE),i:Ne.MIN,l:v=>({v:v[0].replace(hE,(S,w)=>r.namedCodesToUnicode[w]?r.namedCodesToUnicode[w]:S)}),h:v=>v.v},textBolded:{t:fr(ME),i:Ne.MED,l:(v,S,w)=>({v:S(v[2],w)}),h:(v,S,w)=>o("strong",{key:w.k},S(v.v,w))},textEmphasized:{t:fr(DE),i:Ne.LOW,l:(v,S,w)=>({v:S(v[2],w)}),h:(v,S,w)=>o("em",{key:w.k},S(v.v,w))},textEscaped:{t:fr(NE),i:Ne.HIGH,l:v=>({v:v[1],type:"text"})},textMarked:{t:fr(kE),i:Ne.LOW,l:mu,h:(v,S,w)=>o("mark",{key:w.k},S(v.v,w))},textStrikethroughed:{t:fr($E),i:Ne.LOW,l:mu,h:(v,S,w)=>o("del",{key:w.k},S(v.v,w))}};r.disableParsingRawHTML!==!0&&(h.htmlBlock={t:Yi(tc),i:Ne.HIGH,l(v,S,w){const[,T]=v[3].match(WE),D=new RegExp(`^${T}`,"gm"),M=v[3].replace(D,""),R=(k=M,GE.some(N=>N.test(k))?QE:Ra);var k;const x=v[1].toLowerCase(),W=eE.indexOf(x)!==-1;w.N=w.N||x==="a";const F=W?v[3]:R(S,M,w);return w.N=!1,{O:u(v[2]),v:F,G:W,H:W?x:v[1]}},h:(v,S,w)=>o(v.H,Wr({key:w.k},v.O),v.G?v.v:S(v.v,w))},h.htmlSelfClosing={t:Yi(nc),i:Ne.HIGH,l:v=>({O:u(v[2]||""),H:v[1]}),h:(v,S,w)=>o(v.H,Wr({},v.O,{key:w.k}))});const m=function(v){let S=Object.keys(v);function w(T,D){let M=[],R="";for(;T;){let k=0;for(;k<S.length;){const x=S[k],W=v[x],F=W.t(T,D,R);if(F){const N=F[0];T=T.substring(N.length);const Z=W.l(F,w,D);Z.type==null&&(Z.type=x),M.push(Z),R=N;break}k++}}return M}return S.sort(function(T,D){let M=v[T].i,R=v[D].i;return M!==R?M-R:T<D?-1:1}),function(T,D){return w(function(M){return M.replace(cE,`
|
|
74
|
-
`).replace(dE,"").replace(TE," ")}(T),D)}}(h),y=(_=function(v){return function(S,w,T){return v[S.type].h(S,w,T)}}(h),function v(S,w={}){if(Array.isArray(S)){const T=w.k,D=[];let M=!1;for(let R=0;R<S.length;R++){w.k=R;const k=v(S[R],w),x=typeof k=="string";x&&M?D[D.length-1]+=k:k!==null&&D.push(k),M=x}return w.k=T,D}return _(S,v,w)});var _;const O=a(e);return c.length?o("div",null,O,o("footer",{key:"footer"},c.map(function(v){return o("div",{id:r.slugify(v.j),key:v.j},v.j,y(m(v.I,{_:!0})))}))):O}(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(Ne||(Ne={}));const Da=e=>{let{children:r,options:n}=e,o=function(a,u){if(a==null)return{};var c,f,h={},m=Object.keys(a);for(f=0;f<m.length;f++)u.indexOf(c=m[f])>=0||(h[c]=a[c]);return h}(e,QS);return I.cloneElement(tx(r,n),o)},zd=({kind:e})=>{switch(e){case"error":case"danger":return B.jsx(B.Fragment,{children:B.jsx(JS,{className:"flex-none mr-1 h-6 w-6"})});case"info":return B.jsx(B.Fragment,{children:B.jsx($d,{className:"flex-none mr-1 h-5 w-5"})});case"warning":return B.jsx(B.Fragment,{children:B.jsx(ZS,{className:"flex-none mr-1 h-6 w-6"})});case"message":return B.jsx(B.Fragment,{children:B.jsx($d,{className:"flex-none mr-1 h-5 w-5"})});default:return null}},nx=({id:e,onClose:r,kind:n,message:o,markdown:a})=>B.jsx("div",{className:$t("relative flex items-center rounded-xl py-4 font-semibold",{"bg-yellow-100 text-yellow-400":n==="warning","bg-red-200 text-red-500":n==="danger"||n==="error","bg-blue-100 text-blue-900":n==="info","bg-green-200 text-green-500":n==="message","px-14":typeof o=="string","px-4":typeof o!="string"}),children:typeof o=="string"?B.jsxs(B.Fragment,{children:[B.jsx("button",{onClick:r,className:$t("absolute -right-1 -top-1 flex items-center justify-center rounded-full p-1",{"bg-yellow-400":n==="warning","bg-red-500":n==="danger"||n==="error","bg-blue-900":n==="info","bg-green-500":n==="message"}),children:B.jsx(kd,{className:"h-3 w-3 stroke-current text-white"})}),B.jsx(zd,{kind:n}),a?B.jsx(Da,{children:o}):B.jsx(B.Fragment,{children:o})]}):B.jsxs("div",{className:"flex flex-col gap-2",children:[B.jsx("button",{onClick:r,className:$t("absolute right-3 top-3 flex items-center justify-center rounded-full p-1"),children:B.jsx(kd,{className:"stroke-current font-bold"})}),o.map(u=>u.messages.length>0?B.jsxs(B.Fragment,{children:[B.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[B.jsx(zd,{kind:n}),B.jsxs("span",{children:[u.title," :"]})]}),B.jsx("ul",{className:"list-disc px-12",children:u.messages.map(c=>B.jsx("li",{children:a?B.jsx(Da,{children:c}):B.jsx(B.Fragment,{children:c})}))})]}):B.jsx(B.Fragment,{}))]})},e),Lh=({children:e,size:r,className:n,...o})=>B.jsx("div",{style:{"--width":`${r||24}px`},className:$t("h-6 flex items-center pr-1 w-[--width]",n),...o,children:e});var ca,rx=new Uint8Array(16);function Mh(){if(!ca&&(ca=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ca))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ca(rx)}const ix=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function za(e){return typeof e=="string"&&ix.test(e)}var _t=[];for(var bu=0;bu<256;++bu)_t.push((bu+256).toString(16).substr(1));function qa(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(_t[e[r+0]]+_t[e[r+1]]+_t[e[r+2]]+_t[e[r+3]]+"-"+_t[e[r+4]]+_t[e[r+5]]+"-"+_t[e[r+6]]+_t[e[r+7]]+"-"+_t[e[r+8]]+_t[e[r+9]]+"-"+_t[e[r+10]]+_t[e[r+11]]+_t[e[r+12]]+_t[e[r+13]]+_t[e[r+14]]+_t[e[r+15]]).toLowerCase();if(!za(n))throw TypeError("Stringified UUID is invalid");return n}var qd,_u,Su=0,Eu=0;function ox(e,r,n){var o=r&&n||0,a=r||new Array(16);e=e||{};var u=e.node||qd,c=e.clockseq!==void 0?e.clockseq:_u;if(u==null||c==null){var f=e.random||(e.rng||Mh)();u==null&&(u=qd=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),c==null&&(c=_u=(f[6]<<8|f[7])&16383)}var h=e.msecs!==void 0?e.msecs:Date.now(),m=e.nsecs!==void 0?e.nsecs:Eu+1,y=h-Su+(m-Eu)/1e4;if(y<0&&e.clockseq===void 0&&(c=c+1&16383),(y<0||h>Su)&&e.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Su=h,Eu=m,_u=c,h+=122192928e5;var _=((h&268435455)*1e4+m)%4294967296;a[o++]=_>>>24&255,a[o++]=_>>>16&255,a[o++]=_>>>8&255,a[o++]=_&255;var O=h/4294967296*1e4&268435455;a[o++]=O>>>8&255,a[o++]=O&255,a[o++]=O>>>24&15|16,a[o++]=O>>>16&255,a[o++]=c>>>8|128,a[o++]=c&255;for(var v=0;v<6;++v)a[o+v]=u[v];return r||qa(a)}function Dh(e){if(!za(e))throw TypeError("Invalid UUID");var r,n=new Uint8Array(16);return n[0]=(r=parseInt(e.slice(0,8),16))>>>24,n[1]=r>>>16&255,n[2]=r>>>8&255,n[3]=r&255,n[4]=(r=parseInt(e.slice(9,13),16))>>>8,n[5]=r&255,n[6]=(r=parseInt(e.slice(14,18),16))>>>8,n[7]=r&255,n[8]=(r=parseInt(e.slice(19,23),16))>>>8,n[9]=r&255,n[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=r/4294967296&255,n[12]=r>>>24&255,n[13]=r>>>16&255,n[14]=r>>>8&255,n[15]=r&255,n}function ax(e){e=unescape(encodeURIComponent(e));for(var r=[],n=0;n<e.length;++n)r.push(e.charCodeAt(n));return r}var sx="6ba7b810-9dad-11d1-80b4-00c04fd430c8",ux="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function kh(e,r,n){function o(a,u,c,f){if(typeof a=="string"&&(a=ax(a)),typeof u=="string"&&(u=Dh(u)),u.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var h=new Uint8Array(16+a.length);if(h.set(u),h.set(a,u.length),h=n(h),h[6]=h[6]&15|r,h[8]=h[8]&63|128,c){f=f||0;for(var m=0;m<16;++m)c[f+m]=h[m];return c}return qa(h)}try{o.name=e}catch{}return o.DNS=sx,o.URL=ux,o}function cx(e){if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(var n=0;n<r.length;++n)e[n]=r.charCodeAt(n)}return lx(fx(dx(e),e.length*8))}function lx(e){for(var r=[],n=e.length*32,o="0123456789abcdef",a=0;a<n;a+=8){var u=e[a>>5]>>>a%32&255,c=parseInt(o.charAt(u>>>4&15)+o.charAt(u&15),16);r.push(c)}return r}function $h(e){return(e+64>>>9<<4)+14+1}function fx(e,r){e[r>>5]|=128<<r%32,e[$h(r)-1]=r;for(var n=1732584193,o=-271733879,a=-1732584194,u=271733878,c=0;c<e.length;c+=16){var f=n,h=o,m=a,y=u;n=Tt(n,o,a,u,e[c],7,-680876936),u=Tt(u,n,o,a,e[c+1],12,-389564586),a=Tt(a,u,n,o,e[c+2],17,606105819),o=Tt(o,a,u,n,e[c+3],22,-1044525330),n=Tt(n,o,a,u,e[c+4],7,-176418897),u=Tt(u,n,o,a,e[c+5],12,1200080426),a=Tt(a,u,n,o,e[c+6],17,-1473231341),o=Tt(o,a,u,n,e[c+7],22,-45705983),n=Tt(n,o,a,u,e[c+8],7,1770035416),u=Tt(u,n,o,a,e[c+9],12,-1958414417),a=Tt(a,u,n,o,e[c+10],17,-42063),o=Tt(o,a,u,n,e[c+11],22,-1990404162),n=Tt(n,o,a,u,e[c+12],7,1804603682),u=Tt(u,n,o,a,e[c+13],12,-40341101),a=Tt(a,u,n,o,e[c+14],17,-1502002290),o=Tt(o,a,u,n,e[c+15],22,1236535329),n=Ct(n,o,a,u,e[c+1],5,-165796510),u=Ct(u,n,o,a,e[c+6],9,-1069501632),a=Ct(a,u,n,o,e[c+11],14,643717713),o=Ct(o,a,u,n,e[c],20,-373897302),n=Ct(n,o,a,u,e[c+5],5,-701558691),u=Ct(u,n,o,a,e[c+10],9,38016083),a=Ct(a,u,n,o,e[c+15],14,-660478335),o=Ct(o,a,u,n,e[c+4],20,-405537848),n=Ct(n,o,a,u,e[c+9],5,568446438),u=Ct(u,n,o,a,e[c+14],9,-1019803690),a=Ct(a,u,n,o,e[c+3],14,-187363961),o=Ct(o,a,u,n,e[c+8],20,1163531501),n=Ct(n,o,a,u,e[c+13],5,-1444681467),u=Ct(u,n,o,a,e[c+2],9,-51403784),a=Ct(a,u,n,o,e[c+7],14,1735328473),o=Ct(o,a,u,n,e[c+12],20,-1926607734),n=Rt(n,o,a,u,e[c+5],4,-378558),u=Rt(u,n,o,a,e[c+8],11,-2022574463),a=Rt(a,u,n,o,e[c+11],16,1839030562),o=Rt(o,a,u,n,e[c+14],23,-35309556),n=Rt(n,o,a,u,e[c+1],4,-1530992060),u=Rt(u,n,o,a,e[c+4],11,1272893353),a=Rt(a,u,n,o,e[c+7],16,-155497632),o=Rt(o,a,u,n,e[c+10],23,-1094730640),n=Rt(n,o,a,u,e[c+13],4,681279174),u=Rt(u,n,o,a,e[c],11,-358537222),a=Rt(a,u,n,o,e[c+3],16,-722521979),o=Rt(o,a,u,n,e[c+6],23,76029189),n=Rt(n,o,a,u,e[c+9],4,-640364487),u=Rt(u,n,o,a,e[c+12],11,-421815835),a=Rt(a,u,n,o,e[c+15],16,530742520),o=Rt(o,a,u,n,e[c+2],23,-995338651),n=Pt(n,o,a,u,e[c],6,-198630844),u=Pt(u,n,o,a,e[c+7],10,1126891415),a=Pt(a,u,n,o,e[c+14],15,-1416354905),o=Pt(o,a,u,n,e[c+5],21,-57434055),n=Pt(n,o,a,u,e[c+12],6,1700485571),u=Pt(u,n,o,a,e[c+3],10,-1894986606),a=Pt(a,u,n,o,e[c+10],15,-1051523),o=Pt(o,a,u,n,e[c+1],21,-2054922799),n=Pt(n,o,a,u,e[c+8],6,1873313359),u=Pt(u,n,o,a,e[c+15],10,-30611744),a=Pt(a,u,n,o,e[c+6],15,-1560198380),o=Pt(o,a,u,n,e[c+13],21,1309151649),n=Pt(n,o,a,u,e[c+4],6,-145523070),u=Pt(u,n,o,a,e[c+11],10,-1120210379),a=Pt(a,u,n,o,e[c+2],15,718787259),o=Pt(o,a,u,n,e[c+9],21,-343485551),n=pr(n,f),o=pr(o,h),a=pr(a,m),u=pr(u,y)}return[n,o,a,u]}function dx(e){if(e.length===0)return[];for(var r=e.length*8,n=new Uint32Array($h(r)),o=0;o<r;o+=8)n[o>>5]|=(e[o/8]&255)<<o%32;return n}function pr(e,r){var n=(e&65535)+(r&65535),o=(e>>16)+(r>>16)+(n>>16);return o<<16|n&65535}function px(e,r){return e<<r|e>>>32-r}function Ka(e,r,n,o,a,u){return pr(px(pr(pr(r,e),pr(o,u)),a),n)}function Tt(e,r,n,o,a,u,c){return Ka(r&n|~r&o,e,r,a,u,c)}function Ct(e,r,n,o,a,u,c){return Ka(r&o|n&~o,e,r,a,u,c)}function Rt(e,r,n,o,a,u,c){return Ka(r^n^o,e,r,a,u,c)}function Pt(e,r,n,o,a,u,c){return Ka(n^(r|~o),e,r,a,u,c)}var hx=kh("v3",48,cx);const vx=hx;function mx(e,r,n){e=e||{};var o=e.random||(e.rng||Mh)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,r){n=n||0;for(var a=0;a<16;++a)r[n+a]=o[a];return r}return qa(o)}function gx(e,r,n,o){switch(e){case 0:return r&n^~r&o;case 1:return r^n^o;case 2:return r&n^r&o^n&o;case 3:return r^n^o}}function xu(e,r){return e<<r|e>>>32-r}function yx(e){var r=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var o=unescape(encodeURIComponent(e));e=[];for(var a=0;a<o.length;++a)e.push(o.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var u=e.length/4+2,c=Math.ceil(u/16),f=new Array(c),h=0;h<c;++h){for(var m=new Uint32Array(16),y=0;y<16;++y)m[y]=e[h*64+y*4]<<24|e[h*64+y*4+1]<<16|e[h*64+y*4+2]<<8|e[h*64+y*4+3];f[h]=m}f[c-1][14]=(e.length-1)*8/Math.pow(2,32),f[c-1][14]=Math.floor(f[c-1][14]),f[c-1][15]=(e.length-1)*8&4294967295;for(var _=0;_<c;++_){for(var O=new Uint32Array(80),v=0;v<16;++v)O[v]=f[_][v];for(var S=16;S<80;++S)O[S]=xu(O[S-3]^O[S-8]^O[S-14]^O[S-16],1);for(var w=n[0],T=n[1],D=n[2],M=n[3],R=n[4],k=0;k<80;++k){var x=Math.floor(k/20),W=xu(w,5)+gx(x,T,D,M)+R+r[x]+O[k]>>>0;R=M,M=D,D=xu(T,30)>>>0,T=w,w=W}n[0]=n[0]+w>>>0,n[1]=n[1]+T>>>0,n[2]=n[2]+D>>>0,n[3]=n[3]+M>>>0,n[4]=n[4]+R>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var wx=kh("v5",80,yx);const bx=wx,_x="00000000-0000-0000-0000-000000000000";function Sx(e){if(!za(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const Ex=Object.freeze(Object.defineProperty({__proto__:null,NIL:_x,parse:Dh,stringify:qa,v1:ox,v3:vx,v4:mx,v5:bx,validate:za,version:Sx},Symbol.toStringTag,{value:"Module"})),xx=A_(Ex);function Pc(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Pc.prototype.convert=function(e){var r,n,o,a={},u=this.srcAlphabet.length,c=this.dstAlphabet.length,f=e.length,h=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(r=0;r<f;r++)a[r]=this.srcAlphabet.indexOf(e[r]);do{for(n=0,o=0,r=0;r<f;r++)n=n*u+a[r],n>=c?(a[o++]=parseInt(n/c,10),n=n%c):o>0&&(a[o++]=0);f=o,h=this.dstAlphabet.slice(n,n+1).concat(h)}while(o!==0);return h};Pc.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var Ox=Pc,Tx=Ox;function lo(e,r){var n=new Tx(e,r);return function(o){return n.convert(o)}}lo.BIN="01";lo.OCT="01234567";lo.DEC="0123456789";lo.HEX="0123456789abcdef";var Cx=lo;const{v4:Ou}=xx,la=Cx,Tu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",Rx="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",Px={consistentLength:!0};let Cu;const Kd=(e,r,n)=>{const o=r(e.toLowerCase().replace(/-/g,""));return!n||!n.consistentLength?o:o.padStart(n.shortIdLength,n.paddingChar)},Ax=(e,r)=>{const o=r(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[o[1],o[2],o[3],o[4],o[5]].join("-")},Ix=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Lx=(()=>{const e=(r,n)=>{const o=r||Tu,a={...Px,...n};if([...new Set(Array.from(o))].length!==o.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const u=Ix(o.length),c={shortIdLength:u,consistentLength:a.consistentLength,paddingChar:o[0]},f=la(la.HEX,o),h=la(o,la.HEX),m=()=>Kd(Ou(),f,c),y={new:m,generate:m,uuid:Ou,fromUUID:_=>Kd(_,f,c),toUUID:_=>Ax(_,h),alphabet:o,maxLength:u};return Object.freeze(y),y};return e.constants={flickrBase58:Tu,cookieBase90:Rx},e.uuid=Ou,e.generate=()=>(Cu||(Cu=e(Tu).generate),Cu()),e})();const Nh=({depth:e,height:r=24,width:n=14,showLines:o=!0})=>{const a=`indent_line_${Lx.generate()}`;return B.jsxs("svg",{viewBox:`0 0 ${12*e} 24`,width:`${12*e}`,height:r,children:[B.jsx("defs",{children:B.jsx("pattern",{id:a,x:"0",y:"0",width:n,height:r,patternUnits:"userSpaceOnUse",children:B.jsx("line",{x1:n/2,y1:"0",x2:n/2,y2:r,stroke:"rgba(255,255,255,0.4)"})})}),o?B.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${12*e}`,height:r}):B.jsx("rect",{fill:o?`url(#${a})`:"",x:"0",y:"0",width:0,height:r})]})},jh=({show:e,expanded:r,onClick:n,variant:o="arrow"})=>e?B.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>n&&n(a),children:(()=>{switch(o){case"arrow":return B.jsx(vu,{className:$t(["h-6 w-5 transform text-grey-50 transition ease-in-out",{"rotate-0":r,"-rotate-90":!r}])});case"caret":return r?B.jsx(vu,{}):B.jsx(VS,{});default:return B.jsx(vu,{className:"h-6 w-5 transform text-grey-50 transition ease-in-out"})}})()}):B.jsx("div",{className:"flex h-6 w-3 items-center"}),Ac=({node:e,depth:r,expandedKeys:n,selectedKeys:o,actions:a,searchQuery:u,renderNode:c,onNodeClick:f})=>{var v;const{key:h,children:m}=e,y=q.useMemo(()=>({expanded:n.includes(e.key),selected:o.includes(e.key)}),[n,e.key,o]),_=c&&typeof c=="function"?c(e,r,y,a,u):kx(e,r,y,f);return!((v=e.options)!=null&&v.filterable)||!u||e.title.toLowerCase().includes(u.toLowerCase())?B.jsxs(B.Fragment,{children:[B.jsx("div",{className:"flex items-center space-x-2",children:_},h),Dx(m||[],r,u,n,o,y.expanded,a,f,c)]}):null},Mx=function(e,r){var c;const{title:n,icon:o,subtitle:a}=e;let u=null;return o&&(u=B.jsx(Lh,{children:o})),B.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(c=e.options)==null?void 0:c.draggable,onClick:()=>{r&&r(e)},children:[u,B.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:n}),a&&B.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},Dx=function(e,r,n,o,a,u,c,f,h){return e.length&&u?e.map(m=>B.jsx(Ac,{actions:c,node:m,searchQuery:n,depth:r+1,expandedKeys:o,selectedKeys:a,onNodeClick:f,renderNode:h},m.key)):null},kx=function(e,r,n,o){return B.jsxs(B.Fragment,{children:[B.jsx(Nh,{showLines:!0,depth:r}),B.jsx(jh,{show:e.children&&e.children.length>0||!1,expanded:n.expanded}),Mx(e,o)]})},fa=e=>r=>e===r,$x=function({treeData:r,renderNode:n,onNodeClick:o,onExpandNode:a,searchQuery:u,expandedKeys:c,expandCondition:f="always",encapsulated:h}){const[m,y]=q.useState(()=>({expandedKeys:c||[],selectedKeys:[]}));q.useEffect(()=>{f==="when-collapsed"&&m.expandedKeys.length>0||y({...m,expandedKeys:c||m.expandedKeys})},[c]);const _=q.useCallback(T=>{if(!T)return;const D=m.expandedKeys.findIndex(fa(T.key));let M=[];D===-1?(M=[...m.expandedKeys,T.key],y(()=>({...m,expandedKeys:M})),a&&a(M)):(M=m.expandedKeys.filter(R=>R!==T.key),y(()=>({...m,expandedKeys:M})),a&&a(M))},[m]),O=q.useCallback(T=>{var M;if(!((M=T==null?void 0:T.options)!=null&&M.selectable))return;m.selectedKeys.findIndex(fa(T.key))===-1&&y({...m,selectedKeys:[...m.selectedKeys,T.key]})},[m]),v=q.useCallback(T=>{var M;if(!((M=T==null?void 0:T.options)!=null&&M.selectable))return;m.selectedKeys.findIndex(fa(T.key))===-1&&y({...m,selectedKeys:[T.key]})},[m]),S=q.useCallback(T=>{var M;if(!((M=T==null?void 0:T.options)!=null&&M.selectable)){y({...m,selectedKeys:[]});return}m.selectedKeys.findIndex(fa(T.key))!==-1&&y({...m,selectedKeys:m.selectedKeys.filter(R=>R!==T.key)})},[m]),w=q.useMemo(()=>({expand:_,select:O,selectSingle:v,deselect:S}),[S,_,O,v]);return B.jsx("div",{className:$t("fd-tree",{"mb-1 rounded border bg-grey-900 p-1":h}),children:r.map(T=>B.jsx(Ac,{node:T,searchQuery:u||"",depth:0,expandedKeys:m.expandedKeys,selectedKeys:m.selectedKeys,actions:w,renderNode:n,onNodeClick:o},T.key))})};function Nx(e){return e.of&&e.children?B.jsx(B.Fragment,{children:e.children}):null}function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},gt.apply(this,arguments)}function Fh(e){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var jx=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Fx=Fh(function(e){return jx.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Wx=!0;function Ux(e,r,n){var o="";return n.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):o+=a+" "}),o}var Wh=function(r,n,o){var a=r.key+"-"+n.name;(o===!1||Wx===!1)&&r.registered[a]===void 0&&(r.registered[a]=n.styles)},Bx=function(r,n,o){Wh(r,n,o);var a=r.key+"-"+n.name;if(r.inserted[n.name]===void 0){var u=n;do r.insert(n===u?"."+a:"",u,r.sheet,!0),u=u.next;while(u!==void 0)}};function Hx(e){for(var r=0,n,o=0,a=e.length;a>=4;++o,a-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var zx={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,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},Gd=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
74
|
+
`).replace(dE,"").replace(TE," ")}(T),D)}}(h),y=(_=function(v){return function(S,w,T){return v[S.type].h(S,w,T)}}(h),function v(S,w={}){if(Array.isArray(S)){const T=w.k,D=[];let M=!1;for(let R=0;R<S.length;R++){w.k=R;const k=v(S[R],w),x=typeof k=="string";x&&M?D[D.length-1]+=k:k!==null&&D.push(k),M=x}return w.k=T,D}return _(S,v,w)});var _;const O=a(e);return c.length?o("div",null,O,o("footer",{key:"footer"},c.map(function(v){return o("div",{id:r.slugify(v.j),key:v.j},v.j,y(m(v.I,{_:!0})))}))):O}(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(Ne||(Ne={}));const Da=e=>{let{children:r,options:n}=e,o=function(a,u){if(a==null)return{};var c,f,h={},m=Object.keys(a);for(f=0;f<m.length;f++)u.indexOf(c=m[f])>=0||(h[c]=a[c]);return h}(e,QS);return I.cloneElement(tx(r,n),o)},zd=({kind:e})=>{switch(e){case"error":case"danger":return B.jsx(B.Fragment,{children:B.jsx(JS,{className:"flex-none mr-1 h-6 w-6"})});case"info":return B.jsx(B.Fragment,{children:B.jsx($d,{className:"flex-none mr-1 h-5 w-5"})});case"warning":return B.jsx(B.Fragment,{children:B.jsx(ZS,{className:"flex-none mr-1 h-6 w-6"})});case"message":return B.jsx(B.Fragment,{children:B.jsx($d,{className:"flex-none mr-1 h-5 w-5"})});default:return null}},nx=({id:e,onClose:r,kind:n,message:o,markdown:a})=>B.jsx("div",{className:$t("relative flex items-center rounded-xl py-4 font-semibold",{"bg-yellow-100 text-yellow-400":n==="warning","bg-red-200 text-red-500":n==="danger"||n==="error","bg-blue-100 text-blue-900":n==="info","bg-green-200 text-green-500":n==="message","px-14":typeof o=="string","px-4":typeof o!="string"}),children:typeof o=="string"?B.jsxs(B.Fragment,{children:[B.jsx("button",{onClick:r,className:$t("absolute -right-1 -top-1 flex items-center justify-center rounded-full p-1",{"bg-yellow-400":n==="warning","bg-red-500":n==="danger"||n==="error","bg-blue-900":n==="info","bg-green-500":n==="message"}),children:B.jsx(kd,{className:"h-3 w-3 stroke-current text-white"})}),B.jsx(zd,{kind:n}),a?B.jsx(Da,{children:o}):B.jsx(B.Fragment,{children:o})]}):B.jsxs("div",{className:"flex flex-col gap-2",children:[B.jsx("button",{onClick:r,className:$t("absolute right-3 top-3 flex items-center justify-center rounded-full p-1"),children:B.jsx(kd,{className:"stroke-current font-bold"})}),o.map(u=>u.messages.length>0?B.jsxs(B.Fragment,{children:[B.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[B.jsx(zd,{kind:n}),B.jsxs("span",{children:[u.title," :"]})]}),B.jsx("ul",{className:"list-disc px-12",children:u.messages.map(c=>B.jsx("li",{children:a?B.jsx(Da,{children:c}):B.jsx(B.Fragment,{children:c})}))})]}):B.jsx(B.Fragment,{}))]})},e),Lh=({children:e,size:r,className:n,...o})=>B.jsx("div",{style:{"--width":`${r||24}px`},className:$t("h-6 flex items-center pr-1 w-[--width]",n),...o,children:e});var ca,rx=new Uint8Array(16);function Mh(){if(!ca&&(ca=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ca))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ca(rx)}const ix=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function za(e){return typeof e=="string"&&ix.test(e)}var _t=[];for(var bu=0;bu<256;++bu)_t.push((bu+256).toString(16).substr(1));function qa(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(_t[e[r+0]]+_t[e[r+1]]+_t[e[r+2]]+_t[e[r+3]]+"-"+_t[e[r+4]]+_t[e[r+5]]+"-"+_t[e[r+6]]+_t[e[r+7]]+"-"+_t[e[r+8]]+_t[e[r+9]]+"-"+_t[e[r+10]]+_t[e[r+11]]+_t[e[r+12]]+_t[e[r+13]]+_t[e[r+14]]+_t[e[r+15]]).toLowerCase();if(!za(n))throw TypeError("Stringified UUID is invalid");return n}var qd,_u,Su=0,Eu=0;function ox(e,r,n){var o=r&&n||0,a=r||new Array(16);e=e||{};var u=e.node||qd,c=e.clockseq!==void 0?e.clockseq:_u;if(u==null||c==null){var f=e.random||(e.rng||Mh)();u==null&&(u=qd=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),c==null&&(c=_u=(f[6]<<8|f[7])&16383)}var h=e.msecs!==void 0?e.msecs:Date.now(),m=e.nsecs!==void 0?e.nsecs:Eu+1,y=h-Su+(m-Eu)/1e4;if(y<0&&e.clockseq===void 0&&(c=c+1&16383),(y<0||h>Su)&&e.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Su=h,Eu=m,_u=c,h+=122192928e5;var _=((h&268435455)*1e4+m)%4294967296;a[o++]=_>>>24&255,a[o++]=_>>>16&255,a[o++]=_>>>8&255,a[o++]=_&255;var O=h/4294967296*1e4&268435455;a[o++]=O>>>8&255,a[o++]=O&255,a[o++]=O>>>24&15|16,a[o++]=O>>>16&255,a[o++]=c>>>8|128,a[o++]=c&255;for(var v=0;v<6;++v)a[o+v]=u[v];return r||qa(a)}function Dh(e){if(!za(e))throw TypeError("Invalid UUID");var r,n=new Uint8Array(16);return n[0]=(r=parseInt(e.slice(0,8),16))>>>24,n[1]=r>>>16&255,n[2]=r>>>8&255,n[3]=r&255,n[4]=(r=parseInt(e.slice(9,13),16))>>>8,n[5]=r&255,n[6]=(r=parseInt(e.slice(14,18),16))>>>8,n[7]=r&255,n[8]=(r=parseInt(e.slice(19,23),16))>>>8,n[9]=r&255,n[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=r/4294967296&255,n[12]=r>>>24&255,n[13]=r>>>16&255,n[14]=r>>>8&255,n[15]=r&255,n}function ax(e){e=unescape(encodeURIComponent(e));for(var r=[],n=0;n<e.length;++n)r.push(e.charCodeAt(n));return r}var sx="6ba7b810-9dad-11d1-80b4-00c04fd430c8",ux="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function kh(e,r,n){function o(a,u,c,f){if(typeof a=="string"&&(a=ax(a)),typeof u=="string"&&(u=Dh(u)),u.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var h=new Uint8Array(16+a.length);if(h.set(u),h.set(a,u.length),h=n(h),h[6]=h[6]&15|r,h[8]=h[8]&63|128,c){f=f||0;for(var m=0;m<16;++m)c[f+m]=h[m];return c}return qa(h)}try{o.name=e}catch{}return o.DNS=sx,o.URL=ux,o}function cx(e){if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(var n=0;n<r.length;++n)e[n]=r.charCodeAt(n)}return lx(fx(dx(e),e.length*8))}function lx(e){for(var r=[],n=e.length*32,o="0123456789abcdef",a=0;a<n;a+=8){var u=e[a>>5]>>>a%32&255,c=parseInt(o.charAt(u>>>4&15)+o.charAt(u&15),16);r.push(c)}return r}function $h(e){return(e+64>>>9<<4)+14+1}function fx(e,r){e[r>>5]|=128<<r%32,e[$h(r)-1]=r;for(var n=1732584193,o=-271733879,a=-1732584194,u=271733878,c=0;c<e.length;c+=16){var f=n,h=o,m=a,y=u;n=Tt(n,o,a,u,e[c],7,-680876936),u=Tt(u,n,o,a,e[c+1],12,-389564586),a=Tt(a,u,n,o,e[c+2],17,606105819),o=Tt(o,a,u,n,e[c+3],22,-1044525330),n=Tt(n,o,a,u,e[c+4],7,-176418897),u=Tt(u,n,o,a,e[c+5],12,1200080426),a=Tt(a,u,n,o,e[c+6],17,-1473231341),o=Tt(o,a,u,n,e[c+7],22,-45705983),n=Tt(n,o,a,u,e[c+8],7,1770035416),u=Tt(u,n,o,a,e[c+9],12,-1958414417),a=Tt(a,u,n,o,e[c+10],17,-42063),o=Tt(o,a,u,n,e[c+11],22,-1990404162),n=Tt(n,o,a,u,e[c+12],7,1804603682),u=Tt(u,n,o,a,e[c+13],12,-40341101),a=Tt(a,u,n,o,e[c+14],17,-1502002290),o=Tt(o,a,u,n,e[c+15],22,1236535329),n=Ct(n,o,a,u,e[c+1],5,-165796510),u=Ct(u,n,o,a,e[c+6],9,-1069501632),a=Ct(a,u,n,o,e[c+11],14,643717713),o=Ct(o,a,u,n,e[c],20,-373897302),n=Ct(n,o,a,u,e[c+5],5,-701558691),u=Ct(u,n,o,a,e[c+10],9,38016083),a=Ct(a,u,n,o,e[c+15],14,-660478335),o=Ct(o,a,u,n,e[c+4],20,-405537848),n=Ct(n,o,a,u,e[c+9],5,568446438),u=Ct(u,n,o,a,e[c+14],9,-1019803690),a=Ct(a,u,n,o,e[c+3],14,-187363961),o=Ct(o,a,u,n,e[c+8],20,1163531501),n=Ct(n,o,a,u,e[c+13],5,-1444681467),u=Ct(u,n,o,a,e[c+2],9,-51403784),a=Ct(a,u,n,o,e[c+7],14,1735328473),o=Ct(o,a,u,n,e[c+12],20,-1926607734),n=Rt(n,o,a,u,e[c+5],4,-378558),u=Rt(u,n,o,a,e[c+8],11,-2022574463),a=Rt(a,u,n,o,e[c+11],16,1839030562),o=Rt(o,a,u,n,e[c+14],23,-35309556),n=Rt(n,o,a,u,e[c+1],4,-1530992060),u=Rt(u,n,o,a,e[c+4],11,1272893353),a=Rt(a,u,n,o,e[c+7],16,-155497632),o=Rt(o,a,u,n,e[c+10],23,-1094730640),n=Rt(n,o,a,u,e[c+13],4,681279174),u=Rt(u,n,o,a,e[c],11,-358537222),a=Rt(a,u,n,o,e[c+3],16,-722521979),o=Rt(o,a,u,n,e[c+6],23,76029189),n=Rt(n,o,a,u,e[c+9],4,-640364487),u=Rt(u,n,o,a,e[c+12],11,-421815835),a=Rt(a,u,n,o,e[c+15],16,530742520),o=Rt(o,a,u,n,e[c+2],23,-995338651),n=Pt(n,o,a,u,e[c],6,-198630844),u=Pt(u,n,o,a,e[c+7],10,1126891415),a=Pt(a,u,n,o,e[c+14],15,-1416354905),o=Pt(o,a,u,n,e[c+5],21,-57434055),n=Pt(n,o,a,u,e[c+12],6,1700485571),u=Pt(u,n,o,a,e[c+3],10,-1894986606),a=Pt(a,u,n,o,e[c+10],15,-1051523),o=Pt(o,a,u,n,e[c+1],21,-2054922799),n=Pt(n,o,a,u,e[c+8],6,1873313359),u=Pt(u,n,o,a,e[c+15],10,-30611744),a=Pt(a,u,n,o,e[c+6],15,-1560198380),o=Pt(o,a,u,n,e[c+13],21,1309151649),n=Pt(n,o,a,u,e[c+4],6,-145523070),u=Pt(u,n,o,a,e[c+11],10,-1120210379),a=Pt(a,u,n,o,e[c+2],15,718787259),o=Pt(o,a,u,n,e[c+9],21,-343485551),n=pr(n,f),o=pr(o,h),a=pr(a,m),u=pr(u,y)}return[n,o,a,u]}function dx(e){if(e.length===0)return[];for(var r=e.length*8,n=new Uint32Array($h(r)),o=0;o<r;o+=8)n[o>>5]|=(e[o/8]&255)<<o%32;return n}function pr(e,r){var n=(e&65535)+(r&65535),o=(e>>16)+(r>>16)+(n>>16);return o<<16|n&65535}function px(e,r){return e<<r|e>>>32-r}function Ka(e,r,n,o,a,u){return pr(px(pr(pr(r,e),pr(o,u)),a),n)}function Tt(e,r,n,o,a,u,c){return Ka(r&n|~r&o,e,r,a,u,c)}function Ct(e,r,n,o,a,u,c){return Ka(r&o|n&~o,e,r,a,u,c)}function Rt(e,r,n,o,a,u,c){return Ka(r^n^o,e,r,a,u,c)}function Pt(e,r,n,o,a,u,c){return Ka(n^(r|~o),e,r,a,u,c)}var hx=kh("v3",48,cx);const vx=hx;function mx(e,r,n){e=e||{};var o=e.random||(e.rng||Mh)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,r){n=n||0;for(var a=0;a<16;++a)r[n+a]=o[a];return r}return qa(o)}function gx(e,r,n,o){switch(e){case 0:return r&n^~r&o;case 1:return r^n^o;case 2:return r&n^r&o^n&o;case 3:return r^n^o}}function xu(e,r){return e<<r|e>>>32-r}function yx(e){var r=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var o=unescape(encodeURIComponent(e));e=[];for(var a=0;a<o.length;++a)e.push(o.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var u=e.length/4+2,c=Math.ceil(u/16),f=new Array(c),h=0;h<c;++h){for(var m=new Uint32Array(16),y=0;y<16;++y)m[y]=e[h*64+y*4]<<24|e[h*64+y*4+1]<<16|e[h*64+y*4+2]<<8|e[h*64+y*4+3];f[h]=m}f[c-1][14]=(e.length-1)*8/Math.pow(2,32),f[c-1][14]=Math.floor(f[c-1][14]),f[c-1][15]=(e.length-1)*8&4294967295;for(var _=0;_<c;++_){for(var O=new Uint32Array(80),v=0;v<16;++v)O[v]=f[_][v];for(var S=16;S<80;++S)O[S]=xu(O[S-3]^O[S-8]^O[S-14]^O[S-16],1);for(var w=n[0],T=n[1],D=n[2],M=n[3],R=n[4],k=0;k<80;++k){var x=Math.floor(k/20),W=xu(w,5)+gx(x,T,D,M)+R+r[x]+O[k]>>>0;R=M,M=D,D=xu(T,30)>>>0,T=w,w=W}n[0]=n[0]+w>>>0,n[1]=n[1]+T>>>0,n[2]=n[2]+D>>>0,n[3]=n[3]+M>>>0,n[4]=n[4]+R>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var wx=kh("v5",80,yx);const bx=wx,_x="00000000-0000-0000-0000-000000000000";function Sx(e){if(!za(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const Ex=Object.freeze(Object.defineProperty({__proto__:null,NIL:_x,parse:Dh,stringify:qa,v1:ox,v3:vx,v4:mx,v5:bx,validate:za,version:Sx},Symbol.toStringTag,{value:"Module"})),xx=A_(Ex);function Pc(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Pc.prototype.convert=function(e){var r,n,o,a={},u=this.srcAlphabet.length,c=this.dstAlphabet.length,f=e.length,h=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(r=0;r<f;r++)a[r]=this.srcAlphabet.indexOf(e[r]);do{for(n=0,o=0,r=0;r<f;r++)n=n*u+a[r],n>=c?(a[o++]=parseInt(n/c,10),n=n%c):o>0&&(a[o++]=0);f=o,h=this.dstAlphabet.slice(n,n+1).concat(h)}while(o!==0);return h};Pc.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var Ox=Pc,Tx=Ox;function lo(e,r){var n=new Tx(e,r);return function(o){return n.convert(o)}}lo.BIN="01";lo.OCT="01234567";lo.DEC="0123456789";lo.HEX="0123456789abcdef";var Cx=lo;const{v4:Ou}=xx,la=Cx,Tu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",Rx="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",Px={consistentLength:!0};let Cu;const Kd=(e,r,n)=>{const o=r(e.toLowerCase().replace(/-/g,""));return!n||!n.consistentLength?o:o.padStart(n.shortIdLength,n.paddingChar)},Ax=(e,r)=>{const o=r(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[o[1],o[2],o[3],o[4],o[5]].join("-")},Ix=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Lx=(()=>{const e=(r,n)=>{const o=r||Tu,a={...Px,...n};if([...new Set(Array.from(o))].length!==o.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const u=Ix(o.length),c={shortIdLength:u,consistentLength:a.consistentLength,paddingChar:o[0]},f=la(la.HEX,o),h=la(o,la.HEX),m=()=>Kd(Ou(),f,c),y={new:m,generate:m,uuid:Ou,fromUUID:_=>Kd(_,f,c),toUUID:_=>Ax(_,h),alphabet:o,maxLength:u};return Object.freeze(y),y};return e.constants={flickrBase58:Tu,cookieBase90:Rx},e.uuid=Ou,e.generate=()=>(Cu||(Cu=e(Tu).generate),Cu()),e})();const Nh=({depth:e,height:r=24,width:n=14,showLines:o=!0})=>{const a=`indent_line_${Lx.generate()}`;return B.jsxs("svg",{viewBox:`0 0 ${12*e} 24`,width:`${12*e}`,height:r,children:[B.jsx("defs",{children:B.jsx("pattern",{id:a,x:"0",y:"0",width:n,height:r,patternUnits:"userSpaceOnUse",children:B.jsx("line",{x1:n/2,y1:"0",x2:n/2,y2:r,stroke:"rgba(255,255,255,0.4)"})})}),o?B.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${12*e}`,height:r}):B.jsx("rect",{fill:o?`url(#${a})`:"",x:"0",y:"0",width:0,height:r})]})},jh=({show:e,expanded:r,onClick:n,variant:o="arrow"})=>e?B.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>n&&n(a),children:(()=>{switch(o){case"arrow":return B.jsx(vu,{className:$t(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":r,"-rotate-90":!r}])});case"caret":return r?B.jsx(vu,{}):B.jsx(VS,{});default:return B.jsx(vu,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):B.jsx("div",{className:"flex h-6 w-3 items-center"}),Ac=({node:e,depth:r,expandedKeys:n,selectedKeys:o,actions:a,searchQuery:u,renderNode:c,onNodeClick:f})=>{var v;const{key:h,children:m}=e,y=q.useMemo(()=>({expanded:n.includes(e.key),selected:o.includes(e.key)}),[n,e.key,o]),_=c&&typeof c=="function"?c(e,r,y,a,u):kx(e,r,y,f);return!((v=e.options)!=null&&v.filterable)||!u||e.title.toLowerCase().includes(u.toLowerCase())?B.jsxs(B.Fragment,{children:[B.jsx("div",{className:"flex items-center space-x-2",children:_},h),Dx(m||[],r,u,n,o,y.expanded,a,f,c)]}):null},Mx=function(e,r){var c;const{title:n,icon:o,subtitle:a}=e;let u=null;return o&&(u=B.jsx(Lh,{children:o})),B.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(c=e.options)==null?void 0:c.draggable,onClick:()=>{r&&r(e)},children:[u,B.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:n}),a&&B.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},Dx=function(e,r,n,o,a,u,c,f,h){return e.length&&u?e.map(m=>B.jsx(Ac,{actions:c,node:m,searchQuery:n,depth:r+1,expandedKeys:o,selectedKeys:a,onNodeClick:f,renderNode:h},m.key)):null},kx=function(e,r,n,o){return B.jsxs(B.Fragment,{children:[B.jsx(Nh,{showLines:!0,depth:r}),B.jsx(jh,{show:e.children&&e.children.length>0||!1,expanded:n.expanded}),Mx(e,o)]})},fa=e=>r=>e===r,$x=function({treeData:r,renderNode:n,onNodeClick:o,onExpandNode:a,searchQuery:u,expandedKeys:c,expandCondition:f="always",encapsulated:h}){const[m,y]=q.useState(()=>({expandedKeys:c||[],selectedKeys:[]}));q.useEffect(()=>{f==="when-collapsed"&&m.expandedKeys.length>0||y({...m,expandedKeys:c||m.expandedKeys})},[c]);const _=q.useCallback(T=>{if(!T)return;const D=m.expandedKeys.findIndex(fa(T.key));let M=[];D===-1?(M=[...m.expandedKeys,T.key],y(()=>({...m,expandedKeys:M})),a&&a(M)):(M=m.expandedKeys.filter(R=>R!==T.key),y(()=>({...m,expandedKeys:M})),a&&a(M))},[m]),O=q.useCallback(T=>{var M;if(!((M=T==null?void 0:T.options)!=null&&M.selectable))return;m.selectedKeys.findIndex(fa(T.key))===-1&&y({...m,selectedKeys:[...m.selectedKeys,T.key]})},[m]),v=q.useCallback(T=>{var M;if(!((M=T==null?void 0:T.options)!=null&&M.selectable))return;m.selectedKeys.findIndex(fa(T.key))===-1&&y({...m,selectedKeys:[T.key]})},[m]),S=q.useCallback(T=>{var M;if(!((M=T==null?void 0:T.options)!=null&&M.selectable)){y({...m,selectedKeys:[]});return}m.selectedKeys.findIndex(fa(T.key))!==-1&&y({...m,selectedKeys:m.selectedKeys.filter(R=>R!==T.key)})},[m]),w=q.useMemo(()=>({expand:_,select:O,selectSingle:v,deselect:S}),[S,_,O,v]);return B.jsx("div",{className:$t("fd-tree",{"mb-1 rounded border bg-grey-900 p-1":h}),children:r.map(T=>B.jsx(Ac,{node:T,searchQuery:u||"",depth:0,expandedKeys:m.expandedKeys,selectedKeys:m.selectedKeys,actions:w,renderNode:n,onNodeClick:o},T.key))})};function Nx(e){return e.of&&e.children?B.jsx(B.Fragment,{children:e.children}):null}function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},gt.apply(this,arguments)}function Fh(e){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var jx=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Fx=Fh(function(e){return jx.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Wx=!0;function Ux(e,r,n){var o="";return n.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):o+=a+" "}),o}var Wh=function(r,n,o){var a=r.key+"-"+n.name;(o===!1||Wx===!1)&&r.registered[a]===void 0&&(r.registered[a]=n.styles)},Bx=function(r,n,o){Wh(r,n,o);var a=r.key+"-"+n.name;if(r.inserted[n.name]===void 0){var u=n;do r.insert(n===u?"."+a:"",u,r.sheet,!0),u=u.next;while(u!==void 0)}};function Hx(e){for(var r=0,n,o=0,a=e.length;a>=4;++o,a-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var zx={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,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},Gd=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
75
75
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
76
76
|
You can read more about this here:
|
|
77
77
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,qx="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Kx=/[A-Z]|^ms/g,Uh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ic=function(r){return r.charCodeAt(1)===45},Yd=function(r){return r!=null&&typeof r!="boolean"},Ru=Fh(function(e){return Ic(e)?e:e.replace(Kx,"-$&").toLowerCase()}),ka=function(r,n){switch(r){case"animation":case"animationName":if(typeof n=="string")return n.replace(Uh,function(o,a,u){return Cn={name:a,styles:u,next:Cn},a})}return zx[r]!==1&&!Ic(r)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var Gx=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Yx=["normal","none","initial","inherit","unset"],Xx=ka,Vx=/^-ms-/,Jx=/-(.)/g,Xd={};ka=function(r,n){if(r==="content"&&(typeof n!="string"||Yx.indexOf(n)===-1&&!Gx.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var o=Xx(r,n);return o!==""&&!Ic(r)&&r.indexOf("-")!==-1&&Xd[r]===void 0&&(Xd[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(Vx,"ms-").replace(Jx,function(a,u){return u.toUpperCase()})+"?")),o}}var Bh="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function no(e,r,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Bh);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Cn={name:n.name,styles:n.styles,next:Cn},n.name;if(n.styles!==void 0){var o=n.next;if(o!==void 0)for(;o!==void 0;)Cn={name:o.name,styles:o.styles,next:Cn},o=o.next;var a=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(a+=n.map),a}return Zx(e,r,n)}case"function":{if(e!==void 0){var u=Cn,c=n(e);return Cn=u,no(e,r,c)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var f=[],h=n.replace(Uh,function(y,_,O){var v="animation"+f.length;return f.push("const "+v+" = keyframes`"+O.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+v+"}"});f.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(f,["`"+h+"`"]).join(`
|