const e=require("../../node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js"),t=require("../canUseDom.js"),n=require("../../vc-util/Dom/dynamicCSS.js"),r=require("./theme/Theme.js");var i=new WeakMap;function a(e){let t=i.get(e)||``;return t||(Object.keys(e).forEach(n=>{let i=e[n];t+=n,i instanceof r.default?t+=i.id:i&&typeof i==`object`?t+=a(i):t+=i}),i.set(e,t)),t}function o(t,n){return e.default(`${n}_${a(t)}`)}var s=`random-${Date.now()}-${Math.random()}`.replace(/\./g,``),c=`_bAmBoO_`;function l(e,r,i){if(t.default()){n.updateCSS(e,s);let t=document.createElement(`div`);t.style.position=`fixed`,t.style.left=`0`,t.style.top=`0`,r?.(t),document.body.appendChild(t);let a=i?i(t):getComputedStyle(t).content?.includes(c);return t.parentNode?.removeChild(t),n.removeCSS(s),a}return!1}var u;function d(){return u===void 0&&(u=l(`@layer ${s} { .${s} { content: "${c}"!important; } }`,e=>{e.className=s})),u}var f;function p(){return f===void 0&&(f=l(`:where(.${s}) { content: "${c}"!important; }`,e=>{e.className=s})),f}var m;function h(){return m===void 0&&(m=l(`.${s} { inset-block: 93px !important; }`,e=>{e.className=s},e=>getComputedStyle(e).bottom===`93px`)),m}exports.flattenToken=a,exports.supportLayer=d,exports.supportLogicProps=h,exports.supportWhere=p,exports.token2key=o;