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