recce-nightly 0.62.0.20250417__py3-none-any.whl → 1.30.0.20251221__py3-none-any.whl
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.
Potentially problematic release.
This version of recce-nightly might be problematic. Click here for more details.
- recce/VERSION +1 -1
- recce/__init__.py +27 -22
- recce/adapter/base.py +11 -14
- recce/adapter/dbt_adapter/__init__.py +845 -461
- recce/adapter/dbt_adapter/dbt_version.py +3 -0
- recce/adapter/sqlmesh_adapter.py +24 -35
- recce/apis/check_api.py +59 -42
- recce/apis/check_events_api.py +353 -0
- recce/apis/check_func.py +41 -35
- recce/apis/run_api.py +25 -19
- recce/apis/run_func.py +64 -25
- recce/artifact.py +119 -51
- recce/cli.py +1301 -324
- recce/config.py +43 -34
- recce/connect_to_cloud.py +138 -0
- recce/core.py +55 -47
- recce/data/404/index.html +2 -0
- recce/data/404.html +2 -1
- recce/data/__next.@lineage.!KHNsb3Qp.__PAGE__.txt +7 -0
- recce/data/__next.@lineage.!KHNsb3Qp.txt +4 -0
- recce/data/__next.__PAGE__.txt +6 -0
- recce/data/__next._full.txt +32 -0
- recce/data/__next._head.txt +8 -0
- recce/data/__next._index.txt +14 -0
- recce/data/__next._tree.txt +8 -0
- recce/data/_next/static/chunks/025a7e3e3f9f40ae.js +1 -0
- recce/data/_next/static/chunks/0ce56d67ef5779ca.js +4 -0
- recce/data/_next/static/chunks/1a6a78780155dac7.js +48 -0
- recce/data/_next/static/chunks/1de8485918b9182a.css +2 -0
- recce/data/_next/static/chunks/1e4b1b50d1e34993.js +1 -0
- recce/data/_next/static/chunks/206d5d181e4c738e.js +1 -0
- recce/data/_next/static/chunks/2c357efc34c5b859.js +25 -0
- recce/data/_next/static/chunks/2e9d95d2d48c479c.js +1 -0
- recce/data/_next/static/chunks/2f016dc4a3edad2e.js +2 -0
- recce/data/_next/static/chunks/313251962d698f7c.js +1 -0
- recce/data/_next/static/chunks/3a9f021f38eb5574.css +1 -0
- recce/data/_next/static/chunks/40079da8d2b8f651.js +1 -0
- recce/data/_next/static/chunks/4599182bffb64661.js +38 -0
- recce/data/_next/static/chunks/4e62f6e184173580.js +1 -0
- recce/data/_next/static/chunks/5c4dfb0d09eaa401.js +1 -0
- recce/data/_next/static/chunks/69e4f06ccfdfc3ac.js +1 -0
- recce/data/_next/static/chunks/6b206cb4707d6bee.js +1 -0
- recce/data/_next/static/chunks/6d8557f062aa4386.css +1 -0
- recce/data/_next/static/chunks/7fbe3650bd83b6b5.js +1 -0
- recce/data/_next/static/chunks/83fa823a825674f6.js +1 -0
- recce/data/_next/static/chunks/848a6c9b5f55f7ed.js +1 -0
- recce/data/_next/static/chunks/859462b0858aef88.css +2 -0
- recce/data/_next/static/chunks/923964f18c87d0f1.css +1 -0
- recce/data/_next/static/chunks/939390f911895d7c.js +48 -0
- recce/data/_next/static/chunks/99a9817237a07f43.js +1 -0
- recce/data/_next/static/chunks/9fed8b4b2b924054.js +5 -0
- recce/data/_next/static/chunks/b6949f6c5892110c.js +1 -0
- recce/data/_next/static/chunks/b851a1d3f8149828.js +1 -0
- recce/data/_next/static/chunks/c734f9ad957de0b4.js +1 -0
- recce/data/_next/static/chunks/cdde321b0ec75717.js +2 -0
- recce/data/_next/static/chunks/d0f91117d77ff844.css +1 -0
- recce/data/_next/static/chunks/d6c8667911c2500f.js +1 -0
- recce/data/_next/static/chunks/da8dab68c02752cf.js +74 -0
- recce/data/_next/static/chunks/dc074049c9d12d97.js +109 -0
- recce/data/_next/static/chunks/ee7f1a8227342421.js +1 -0
- recce/data/_next/static/chunks/fa2f4e56c2fccc73.js +1 -0
- recce/data/_next/static/chunks/turbopack-1fad664f62979b93.js +3 -0
- recce/data/_next/static/media/favicon.a8d38d84.ico +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-800-normal.d80d830d.woff2 +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-800-normal.f9d58125.woff +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.076c2a93.woff2 +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.a4fa76b5.woff +0 -0
- recce/data/_next/static/media/montserrat-latin-800-normal.cde454cc.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-800-normal.d5761935.woff +0 -0
- recce/data/_next/static/media/montserrat-latin-ext-800-normal.40ec0659.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-ext-800-normal.b671449b.woff +0 -0
- recce/data/_next/static/media/montserrat-vietnamese-800-normal.9f7b8541.woff +0 -0
- recce/data/_next/static/media/montserrat-vietnamese-800-normal.f9eb854e.woff2 +0 -0
- recce/data/_next/static/nX-Uz0AH6Tc6hIQUFGqaB/_buildManifest.js +11 -0
- recce/data/_next/static/nX-Uz0AH6Tc6hIQUFGqaB/_clientMiddlewareManifest.json +1 -0
- recce/data/_not-found/__next._full.txt +24 -0
- recce/data/_not-found/__next._head.txt +8 -0
- recce/data/_not-found/__next._index.txt +13 -0
- recce/data/_not-found/__next._not-found.__PAGE__.txt +5 -0
- recce/data/_not-found/__next._not-found.txt +4 -0
- recce/data/_not-found/__next._tree.txt +6 -0
- recce/data/_not-found/index.html +2 -0
- recce/data/_not-found/index.txt +24 -0
- recce/data/auth_callback.html +68 -0
- recce/data/checks/__next.@lineage.__DEFAULT__.txt +7 -0
- recce/data/checks/__next._full.txt +39 -0
- recce/data/checks/__next._head.txt +8 -0
- recce/data/checks/__next._index.txt +14 -0
- recce/data/checks/__next._tree.txt +8 -0
- recce/data/checks/__next.checks.__PAGE__.txt +10 -0
- recce/data/checks/__next.checks.txt +4 -0
- recce/data/checks/index.html +2 -0
- recce/data/checks/index.txt +39 -0
- recce/data/imgs/reload-image.svg +4 -0
- recce/data/index.html +2 -27
- recce/data/index.txt +32 -7
- recce/data/lineage/__next.@lineage.__DEFAULT__.txt +7 -0
- recce/data/lineage/__next._full.txt +39 -0
- recce/data/lineage/__next._head.txt +8 -0
- recce/data/lineage/__next._index.txt +14 -0
- recce/data/lineage/__next._tree.txt +8 -0
- recce/data/lineage/__next.lineage.__PAGE__.txt +10 -0
- recce/data/lineage/__next.lineage.txt +4 -0
- recce/data/lineage/index.html +2 -0
- recce/data/lineage/index.txt +39 -0
- recce/data/query/__next.@lineage.__DEFAULT__.txt +7 -0
- recce/data/query/__next._full.txt +37 -0
- recce/data/query/__next._head.txt +8 -0
- recce/data/query/__next._index.txt +14 -0
- recce/data/query/__next._tree.txt +8 -0
- recce/data/query/__next.query.__PAGE__.txt +9 -0
- recce/data/query/__next.query.txt +4 -0
- recce/data/query/index.html +2 -0
- recce/data/query/index.txt +37 -0
- recce/diff.py +6 -12
- recce/event/CONFIG.bak +1 -0
- recce/event/__init__.py +86 -74
- recce/event/collector.py +33 -22
- recce/event/track.py +49 -27
- recce/exceptions.py +1 -1
- recce/git.py +7 -7
- recce/github.py +57 -53
- recce/mcp_server.py +725 -0
- recce/models/__init__.py +4 -1
- recce/models/check.py +438 -21
- recce/models/run.py +1 -0
- recce/models/types.py +134 -28
- recce/pull_request.py +27 -25
- recce/run.py +179 -122
- recce/server.py +394 -104
- recce/state/__init__.py +31 -0
- recce/state/cloud.py +644 -0
- recce/state/const.py +26 -0
- recce/state/local.py +56 -0
- recce/state/state.py +119 -0
- recce/state/state_loader.py +174 -0
- recce/summary.py +196 -149
- recce/tasks/__init__.py +19 -3
- recce/tasks/core.py +11 -13
- recce/tasks/dataframe.py +82 -18
- recce/tasks/histogram.py +69 -34
- recce/tasks/lineage.py +2 -2
- recce/tasks/profile.py +152 -86
- recce/tasks/query.py +180 -89
- recce/tasks/rowcount.py +37 -31
- recce/tasks/schema.py +18 -15
- recce/tasks/top_k.py +35 -35
- recce/tasks/utils.py +147 -0
- recce/tasks/valuediff.py +247 -155
- recce/util/__init__.py +3 -0
- recce/util/api_token.py +80 -0
- recce/util/breaking.py +105 -100
- recce/util/cll.py +274 -219
- recce/util/cloud/__init__.py +15 -0
- recce/util/cloud/base.py +115 -0
- recce/util/cloud/check_events.py +190 -0
- recce/util/cloud/checks.py +242 -0
- recce/util/io.py +22 -17
- recce/util/lineage.py +65 -16
- recce/util/logger.py +1 -1
- recce/util/onboarding_state.py +45 -0
- recce/util/perf_tracking.py +85 -0
- recce/util/recce_cloud.py +347 -72
- recce/util/singleton.py +4 -4
- recce/util/startup_perf.py +121 -0
- recce/yaml/__init__.py +7 -10
- recce_nightly-1.30.0.20251221.dist-info/METADATA +195 -0
- recce_nightly-1.30.0.20251221.dist-info/RECORD +183 -0
- {recce_nightly-0.62.0.20250417.dist-info → recce_nightly-1.30.0.20251221.dist-info}/WHEEL +1 -2
- recce/data/_next/static/chunks/1f229bf6-d9fe92e56db8d93b.js +0 -1
- recce/data/_next/static/chunks/29e3cc0d-8c150e37dff9631b.js +0 -1
- recce/data/_next/static/chunks/36e1c10d-bb0210cbd6573a8d.js +0 -1
- recce/data/_next/static/chunks/3998a672-eaad84bdd88cc73e.js +0 -1
- recce/data/_next/static/chunks/450c323b-1bb5db526e54435a.js +0 -1
- recce/data/_next/static/chunks/47d8844f-79a1b53c66a7d7ec.js +0 -1
- recce/data/_next/static/chunks/500-e51c92a025a51234.js +0 -65
- recce/data/_next/static/chunks/6dc81886-c94b9b91bc2c3caf.js +0 -1
- recce/data/_next/static/chunks/700-3b65fc3666820d00.js +0 -2
- recce/data/_next/static/chunks/7a8a3e83-d7fa409d97b38b2b.js +0 -1
- recce/data/_next/static/chunks/7f27ae6c-413f6b869a04183a.js +0 -1
- recce/data/_next/static/chunks/9746af58-d74bef4d03eea6ab.js +0 -1
- recce/data/_next/static/chunks/a30376cd-7d806e1602f2dc3a.js +0 -1
- recce/data/_next/static/chunks/app/_not-found/page-8a886fa0855c3105.js +0 -1
- recce/data/_next/static/chunks/app/layout-9102e22cb73f74d6.js +0 -1
- recce/data/_next/static/chunks/app/page-9adc25782272ed2e.js +0 -1
- recce/data/_next/static/chunks/b63b1b3f-7395c74e11a14e95.js +0 -1
- recce/data/_next/static/chunks/c132bf7d-8102037f9ccf372a.js +0 -1
- recce/data/_next/static/chunks/c1ceaa8b-a1e442154d23515e.js +0 -1
- recce/data/_next/static/chunks/cd9f8d63-cf0d5a7b0f7a92e8.js +0 -54
- recce/data/_next/static/chunks/ce84277d-f42c2c58049cea2d.js +0 -1
- recce/data/_next/static/chunks/e24bf851-0f8cbc99656833e7.js +0 -1
- recce/data/_next/static/chunks/fee69bc6-f17d36c080742e74.js +0 -1
- recce/data/_next/static/chunks/framework-ded83d71b51ce901.js +0 -1
- recce/data/_next/static/chunks/main-a0859f1f36d0aa6c.js +0 -1
- recce/data/_next/static/chunks/main-app-0225a2255968e566.js +0 -1
- recce/data/_next/static/chunks/pages/_app-d5672bf3d8b6371b.js +0 -1
- recce/data/_next/static/chunks/pages/_error-ed75be3f25588548.js +0 -1
- recce/data/_next/static/chunks/webpack-567d72f0bc0820d5.js +0 -1
- recce/data/_next/static/css/c9ecb46a4b21c126.css +0 -14
- recce/data/_next/static/media/montserrat-cyrillic-800-normal.22628180.woff2 +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-800-normal.31d693bb.woff +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.7e2c1e62.woff +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.94a63aea.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-800-normal.6f8fa298.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-800-normal.97e20d5e.woff +0 -0
- recce/data/_next/static/media/montserrat-latin-ext-800-normal.013b84f9.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-ext-800-normal.aff52ab0.woff +0 -0
- recce/data/_next/static/media/montserrat-vietnamese-800-normal.5f21869b.woff +0 -0
- recce/data/_next/static/media/montserrat-vietnamese-800-normal.c0035377.woff2 +0 -0
- recce/data/_next/static/qiyFlux77VkhxiceAJe_F/_buildManifest.js +0 -1
- recce/state.py +0 -753
- recce_nightly-0.62.0.20250417.dist-info/METADATA +0 -311
- recce_nightly-0.62.0.20250417.dist-info/RECORD +0 -139
- recce_nightly-0.62.0.20250417.dist-info/top_level.txt +0 -2
- tests/__init__.py +0 -0
- tests/adapter/__init__.py +0 -0
- tests/adapter/dbt_adapter/__init__.py +0 -0
- tests/adapter/dbt_adapter/conftest.py +0 -13
- tests/adapter/dbt_adapter/dbt_test_helper.py +0 -283
- tests/adapter/dbt_adapter/test_dbt_adapter.py +0 -40
- tests/adapter/dbt_adapter/test_dbt_cll.py +0 -102
- tests/adapter/dbt_adapter/test_selector.py +0 -177
- tests/tasks/__init__.py +0 -0
- tests/tasks/conftest.py +0 -4
- tests/tasks/test_histogram.py +0 -137
- tests/tasks/test_lineage.py +0 -42
- tests/tasks/test_preset_checks.py +0 -50
- tests/tasks/test_profile.py +0 -73
- tests/tasks/test_query.py +0 -151
- tests/tasks/test_row_count.py +0 -116
- tests/tasks/test_schema.py +0 -99
- tests/tasks/test_top_k.py +0 -73
- tests/tasks/test_valuediff.py +0 -74
- tests/test_cli.py +0 -122
- tests/test_config.py +0 -45
- tests/test_core.py +0 -27
- tests/test_dbt.py +0 -36
- tests/test_pull_request.py +0 -130
- tests/test_server.py +0 -98
- tests/test_state.py +0 -123
- tests/test_summary.py +0 -57
- /recce/data/_next/static/chunks/{polyfills-42372ed130431b0a.js → a6dad97d9634a72d.js} +0 -0
- /recce/data/_next/static/{qiyFlux77VkhxiceAJe_F → nX-Uz0AH6Tc6hIQUFGqaB}/_ssgManifest.js +0 -0
- {recce_nightly-0.62.0.20250417.dist-info → recce_nightly-1.30.0.20251221.dist-info}/entry_points.txt +0 -0
- {recce_nightly-0.62.0.20250417.dist-info → recce_nightly-1.30.0.20251221.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,253348,e=>{"use strict";var r=e.i(19483),o=e.i(542098),t=e.i(187725);function n({error:e,reset:n}){return(0,t.useEffect)(()=>{o.captureException(e,{level:"fatal",tags:{errorBoundary:"global",digest:e.digest},extra:{componentStack:e.stack}}),console.error("Global Error Boundary caught error:",e)},[e]),(0,r.jsx)("html",{lang:"en",children:(0,r.jsx)("body",{children:(0,r.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100vh",backgroundColor:"#f7fafc",fontFamily:"system-ui, sans-serif"},children:(0,r.jsxs)("div",{style:{padding:"2rem",backgroundColor:"white",border:"1px solid #e2e8f0",borderRadius:"8px",maxWidth:"600px",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)"},children:[(0,r.jsx)("h1",{style:{fontSize:"1.5rem",fontWeight:600,marginBottom:"1rem",color:"#1a202c"},children:"Something went wrong"}),(0,r.jsx)("p",{style:{fontSize:"0.875rem",color:"#4a5568",marginBottom:"1rem"},children:e.message||"An unexpected error occurred"}),e.digest&&(0,r.jsxs)("p",{style:{fontSize:"0.75rem",color:"#a0aec0",marginBottom:"1.5rem"},children:["Error ID: ",e.digest]}),(0,r.jsx)("button",{onClick:()=>n(),style:{padding:"0.5rem 1rem",backgroundColor:"#3182ce",color:"white",border:"none",borderRadius:"4px",fontSize:"0.875rem",cursor:"pointer"},children:"Try again"})]})})})})}e.s(["default",()=>n])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,423142,e=>{"use strict";let t,r,s,i,n,o,l,a,h,u,c,p,f,d,m,g;var y,w,b,v=e.i(415306),C=e.i(316575),x=Object.defineProperty,O=(e,t,r)=>{let s;return(s="symbol"!=typeof t?t+"":t)in e?x(e,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[s]=r},S=Object.defineProperty,I=(e,t,r)=>{let s;return(s="symbol"!=typeof t?t+"":t)in e?S(e,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[s]=r},k=Object.defineProperty,A=(e,t,r)=>{let s;return(s="symbol"!=typeof t?t+"":t)in e?k(e,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[s]=r};let R={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},E={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},N={};function P(e){var t,r;let s;if(N[e])return N[e];let i=((s=null==(r=null==(t=null==globalThis?void 0:globalThis.Zone)?void 0:t.__symbol__)?void 0:r.call(t,e))&&globalThis[s]?globalThis[s]:void 0)||globalThis[e],n=i.prototype,o=e in R?R[e]:void 0,l=!!(o&&o.every(e=>{var t,r;return!!(null==(r=null==(t=Object.getOwnPropertyDescriptor(n,e))?void 0:t.get)?void 0:r.toString().includes("[native code]"))})),a=e in E?E[e]:void 0,h=!!(a&&a.every(e=>{var t;return"function"==typeof n[e]&&(null==(t=n[e])?void 0:t.toString().includes("[native code]"))}));if(l&&h)return N[e]=i.prototype,i.prototype;try{let t=document.createElement("iframe");document.body.appendChild(t);let r=t.contentWindow;if(!r)return i.prototype;let s=r[e].prototype;if(document.body.removeChild(t),!s)return n;return N[e]=s}catch{return n}}let M={};function F(e,t,r){var s;let i=`${e}.${String(r)}`;if(M[i])return M[i].call(t);let n=null==(s=Object.getOwnPropertyDescriptor(P(e),r))?void 0:s.get;return n?(M[i]=n,n.call(t)):t[r]}let B=function(e){return F("Node",e,"parentNode")};var L={exports:{}},j=String,T=function(){return{isColorSupported:!1,reset:j,bold:j,dim:j,italic:j,underline:j,inverse:j,hidden:j,strikethrough:j,black:j,red:j,green:j,yellow:j,blue:j,magenta:j,cyan:j,white:j,gray:j,bgBlack:j,bgRed:j,bgGreen:j,bgYellow:j,bgBlue:j,bgMagenta:j,bgCyan:j,bgWhite:j}};L.exports=T(),L.exports.createColors=T;var D=L.exports;let U=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),z=class e extends Error{constructor(t,r,s,i,n,o){super(t),this.name="CssSyntaxError",this.reason=t,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),void 0!==r&&void 0!==s&&("number"==typeof r?(this.line=r,this.column=s):(this.line=r.line,this.column=r.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){let t,r;if(!this.source)return"";let s=this.source;null==e&&(e=D.isColorSupported),U&&e&&(s=U(s));let i=s.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),l=String(o).length;if(e){let{bold:e,gray:s,red:i}=D.createColors(!0);t=t=>e(i(t)),r=e=>s(e)}else t=r=e=>e;return i.slice(n,o).map((e,s)=>{let i=n+1+s,o=" "+(" "+i).slice(-l)+" | ";if(i===this.line){let s=r(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+r(o)+e+"\n "+s+t("^")}return" "+r(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};z.default=z;var Z={};Z.isClean=Symbol("isClean"),Z.my=Symbol("my");let Y={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},W=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+s+i,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let s=e.parent,i=0;for(;s&&"root"!==s.type;)i+=1,s=s.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)r+=t}return r}block(e,t){let r,s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let i=e.nodes[s],n=this.raw(i,"before");n&&this.builder(n),this.stringify(i,t!==s||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,r){let s;if(r||(r=t),t&&void 0!==(s=e.raws[t]))return s;let i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return Y[r];let n=e.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[r])return n.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{var o;let i="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[i]?s=this[i](n,e):n.walk(e=>{if(void 0!==(s=e.raws[t]))return!1})}return void 0===s&&(s=Y[r]),n.rawCache[r]=s,s}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};function G(e,t){new W(t).stringify(e)}W.default=W,G.default=G;let{isClean:V,my:_}=Z,J=class{constructor(e={}){for(let t in this.raws={},this[V]=!1,this[_]=!0,e)if("nodes"===t)for(let r of(this.nodes=[],e[t]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let s=new t.constructor;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||"proxyCache"===i)continue;let n=t[i],o=typeof n;"parent"===i&&"object"===o?r&&(s[i]=r):"source"===i?s[i]=n:Array.isArray(n)?s[i]=n.map(t=>e(t,s)):("object"===o&&null!==n&&(n=e(n)),s[i]=n)}return s}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new z(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}markDirty(){if(this[V]){this[V]=!1;let e=this;for(;e=e.parent;)e[V]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let s=(t=this.toString()).indexOf(e.word);-1!==s&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(s=1,i+=1):s+=1;return{column:s,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),i=s.indexOf(e.word);-1!==i&&(t=this.positionInside(i,s),r=this.positionInside(i+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new W().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},s=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let s=this[e];if(Array.isArray(s))r[e]=s.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof s&&s.toJSON)r[e]=s.toJSON(null,t);else if("source"===e){let n=t.get(s.input);null==n&&(n=i,t.set(s.input,i),i++),r[e]={end:s.end,inputId:n,start:s.start}}else r[e]=s}return s&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=G){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let s={node:this};for(let e in r)s[e]=r[e];return e.warn(t,s)}get proxyOf(){return this}};J.default=J;let X=J,K=class extends X{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};K.default=K;let{SourceMapConsumer:H,SourceMapGenerator:$}=U,{existsSync:Q,readFileSync:q}=U,{dirname:ee,join:et}=U,er=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ee(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new H(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),v.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=ee(e),Q(e))return this.mapFile=e,q(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw Error("Unable to load previous source map: "+r.toString());return e}}else if(t instanceof H)return $.fromSourceMap(t).toString();else if(t instanceof $)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=et(ee(e),t)),this.loadFile(t)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};er.default=er;let{SourceMapConsumer:es,SourceMapGenerator:ei}=U,{fileURLToPath:en,pathToFileURL:eo}=U,{isAbsolute:el,resolve:ea}=U,{nanoid:eh}={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let s="",i=r;for(;i--;)s+=e[Math.random()*e.length|0];return s}},eu=Symbol("fromOffsetCache"),ec=!!(es&&ei),ep=!!(ea&&el),ef=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ep||/^\w+:\/\//.test(t.from)||el(t.from)?this.file=t.from:this.file=ea(t.from)),ep&&ec){let e=new er(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+eh(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let i,n,o;if(t&&"object"==typeof t){let e=t,s=r;if("number"==typeof e.offset){let s=this.fromOffset(e.offset);t=s.line,r=s.col}else t=e.line,r=e.column;if("number"==typeof s.offset){let e=this.fromOffset(s.offset);n=e.line,o=e.col}else n=s.line,o=s.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let l=this.origin(t,r,n,o);return(i=l?new z(e,void 0===l.endLine?l.line:{column:l.column,line:l.line},void 0===l.endLine?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,s.plugin):new z(e,void 0===n?t:{column:r,line:t},void 0===n?r:{column:o,line:n},this.css,this.file,s.plugin)).input={column:r,endColumn:o,endLine:n,line:t,source:this.css},this.file&&(eo&&(i.input.url=eo(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,r;if(this[eu])r=this[eu];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let s=0,i=e.length;s<i;s++)r[s]=t,t+=e[s].length+1;this[eu]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let t,i=r.length-2;for(;s<i;)if(e<r[t=s+(i-s>>1)])i=t-1;else if(e>=r[t+1])s=t+1;else{s=t;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ea(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){let i,n;if(!this.map)return!1;let o=this.map.consumer(),l=o.originalPositionFor({column:t,line:e});if(!l.source)return!1;"number"==typeof r&&(i=o.originalPositionFor({column:s,line:r})),n=el(l.source)?eo(l.source):new URL(l.source,this.map.consumer().sourceRoot||eo(this.map.mapFile));let a={column:l.column,endColumn:i&&i.column,endLine:i&&i.line,line:l.line,url:n.toString()};if("file:"===n.protocol)if(en)a.file=en(n);else throw Error("file: protocol is not available in this PostCSS build");let h=o.sourceContentFor(l.source);return h&&(a.source=h),a}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};ef.default=ef,U&&U.registerInput&&U.registerInput(ef);let{SourceMapConsumer:ed,SourceMapGenerator:em}=U,{dirname:eg,relative:ey,resolve:ew,sep:eb}=U,{pathToFileURL:ev}=U,eC=!!(ed&&em),ex=!!(eg&&ew&&ey&&eb),eO=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),s=e.root||eg(e.file);!1===this.mapOpts.sourcesContent?(t=new ed(e.text)).sourcesContent&&(t.sourcesContent=null):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(s)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ex&&eC&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=em.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new em({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]}generateString(){let e,t;this.css="",this.map=new em({file:this.outputFile(),ignoreInvalidMapping:!0});let r=1,s=1,i="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,l,a)=>{if(this.css+=o,l&&"end"!==a&&(n.generated.line=r,n.generated.column=s-1,l.source&&l.source.start?(n.source=this.sourcePath(l),n.original.line=l.source.start.line,n.original.column=l.source.start.column-1):(n.source=i,n.original.line=1,n.original.column=0),this.map.addMapping(n)),(e=o.match(/\n/g))?(r+=e.length,t=o.lastIndexOf("\n"),s=o.length-t):s+=o.length,l&&"start"!==a){let e=l.parent||{raws:{}};(!("decl"===l.type||"atrule"===l.type&&!l.nodes)||l!==e.last||e.raws.semicolon)&&(l.source&&l.source.end?(n.source=this.sourcePath(l),n.original.line=l.source.end.line,n.original.column=l.source.end.column-1,n.generated.line=r,n.generated.column=s-2):(n.source=i,n.original.line=1,n.original.column=0,n.generated.line=r,n.generated.column=s-1),this.map.addMapping(n))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?eg(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=eg(ew(r,this.mapOpts.annotation)));let s=ey(r,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new ef(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return v.Buffer.from(e).toString("base64")}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(ev){let t=ev(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===eb&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},eS=J,eI=class extends eS{constructor(e){super(e),this.type="comment"}};eI.default=eI;let{isClean:ek,my:eA}=Z,eR=J,eE=class e extends eR{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let s=this.getIterator();for(;this.indexes[s]<this.proxyOf.nodes.length&&(t=this.indexes[s],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[s]+=1;return delete this.indexes[s],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>e.root().toProxy();else if("nodes"===t)return e.nodes.map(e=>e.toProxy());else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,s=this.index(e),i=this.normalize(t,this.proxyOf.nodes[s]).reverse();for(let t of(s=this.index(e),i))this.proxyOf.nodes.splice(s+1,0,t);for(let e in this.indexes)s<(r=this.indexes[e])&&(this.indexes[e]=r+i.length);return this.markDirty(),this}insertBefore(e,t){let r,s=this.index(e),i=0===s&&"prepend",n=this.normalize(t,this.proxyOf.nodes[s],i).reverse();for(let t of(s=this.index(e),n))this.proxyOf.nodes.splice(s,0,t);for(let e in this.indexes)s<=(r=this.indexes[e])&&(this.indexes[e]=r+n.length);return this.markDirty(),this}normalize(i,n){if("string"==typeof i)i=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(t(i).nodes);else if(void 0===i)i=[];else if(Array.isArray(i))for(let e of i=i.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if("root"===i.type&&"document"!==this.type)for(let e of i=i.nodes.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if(i.type)i=[i];else if(i.prop){if(void 0===i.value)throw Error("Value field is missed in node creation");"string"!=typeof i.value&&(i.value=String(i.value)),i=[new K(i)]}else if(i.selector)i=[new r(i)];else if(i.name)i=[new s(i)];else if(i.text)i=[new eI(i)];else throw Error("Unknown node type in node creation");return i.map(t=>(t[eA]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[ek]&&function e(t){if(t[ek]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(t),void 0===t.raws.before&&n&&void 0!==n.raws.before&&(t.raws.before=n.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||(!t.fast||s.value.includes(t.fast))&&(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(e){throw t.addToError(e)}return!1!==s&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("atrule"===r.type&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if("atrule"===r.type&&r.name===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("decl"===r.type&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if("decl"===r.type&&r.prop===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("rule"===r.type&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if("rule"===r.type&&r.selector===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};eE.registerParse=e=>{t=e},eE.registerRule=e=>{r=e},eE.registerAtRule=e=>{s=e},eE.registerRoot=e=>{i=e},eE.default=eE,eE.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,s.prototype):"rule"===e.type?Object.setPrototypeOf(e,r.prototype):"decl"===e.type?Object.setPrototypeOf(e,K.prototype):"comment"===e.type?Object.setPrototypeOf(e,eI.prototype):"root"===e.type&&Object.setPrototypeOf(e,i.prototype),e[eA]=!0,e.nodes&&e.nodes.forEach(e=>{eE.rebuild(e)})};let eN=eE,eP=class extends eN{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new n(new o,this,e).stringify()}};eP.registerLazyResult=e=>{n=e},eP.registerProcessor=e=>{o=e},eP.default=eP;let eM=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};eM.default=eM;let eF=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new eM(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};eF.default=eF;let eB=/[\t\n\f\r "#'()/;[\\\]{}]/g,eL=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ej=/.[\r\n"'(/\\]/,eT=/[\da-f]/i,eD=eE,eU=class extends eD{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};eU.default=eU,eD.registerAtRule(eU);let ez=eE,eZ=class extends ez{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of s)e.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new l(new a,this,e).stringify()}};eZ.registerLazyResult=e=>{l=e},eZ.registerProcessor=e=>{a=e},eZ.default=eZ,ez.registerRoot(eZ);let eY={comma:e=>eY.split(e,[","],!0),space:e=>eY.split(e,[" ","\n"," "]),split(e,t,r){let s=[],i="",n=!1,o=0,l=!1,a="",h=!1;for(let r of e)h?h=!1:"\\"===r?h=!0:l?r===a&&(l=!1):'"'===r||"'"===r?(l=!0,a=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(n=!0),n?(""!==i&&s.push(i.trim()),i="",n=!1):i+=r;return(r||""!==i)&&s.push(i.trim()),s}};eY.default=eY;let eW=eE,eG=class extends eW{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return eY.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};eG.default=eG,eW.registerRule(eG);let eV=function(e,t={}){let r,s,i,n,o,l,a,h,u,c,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,m=0,g=[],y=[];function w(t){throw e.error("Unclosed "+t,m)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&m>=d},nextToken:function(e){if(y.length)return y.pop();if(m>=d)return;let t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:s=m;do s+=1,r=p.charCodeAt(s);while(32===r||10===r||9===r||13===r||12===r)c=["space",p.slice(m,s)],m=s-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(r);c=[e,e,m];break}case 40:if(h=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===h&&39!==u&&34!==u&&32!==u&&10!==u&&9!==u&&12!==u&&13!==u){s=m;do{if(l=!1,-1===(s=p.indexOf(")",s+1)))if(f||t){s=m;break}else w("bracket");for(a=s;92===p.charCodeAt(a-1);)a-=1,l=!l}while(l)c=["brackets",p.slice(m,s+1),m,s],m=s}else s=p.indexOf(")",m+1),n=p.slice(m,s+1),-1===s||ej.test(n)?c=["(","(",m]:(c=["brackets",n,m,s],m=s);break;case 39:case 34:i=39===r?"'":'"',s=m;do{if(l=!1,-1===(s=p.indexOf(i,s+1)))if(f||t){s=m+1;break}else w("string");for(a=s;92===p.charCodeAt(a-1);)a-=1,l=!l}while(l)c=["string",p.slice(m,s+1),m,s],m=s;break;case 64:eB.lastIndex=m+1,eB.test(p),s=0===eB.lastIndex?p.length-1:eB.lastIndex-2,c=["at-word",p.slice(m,s+1),m,s],m=s;break;case 92:for(s=m,o=!0;92===p.charCodeAt(s+1);)s+=1,o=!o;if(r=p.charCodeAt(s+1),o&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(s+=1,eT.test(p.charAt(s)))){for(;eT.test(p.charAt(s+1));)s+=1;32===p.charCodeAt(s+1)&&(s+=1)}c=["word",p.slice(m,s+1),m,s],m=s;break;default:47===r&&42===p.charCodeAt(m+1)?(0===(s=p.indexOf("*/",m+2)+1)&&(f||t?s=p.length:w("comment")),c=["comment",p.slice(m,s+1),m,s]):(eL.lastIndex=m+1,eL.test(p),s=0===eL.lastIndex?p.length-1:eL.lastIndex-2,c=["word",p.slice(m,s+1),m,s],g.push(c)),m=s}return m++,c},position:function(){return m}}},e_={empty:!0,space:!0},eJ=class{constructor(e){this.input=e,this.root=new eZ,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,s,i=new eU;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let n=!1,o=!1,l=[],a=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?a.push("("===t?")":"]"):"{"===t&&a.length>0?a.push("}"):t===a[a.length-1]&&a.pop(),0===a.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){o=!0;break}else if("}"===t){if(l.length>0){for(s=l.length-1,r=l[s];r&&"space"===r[0];)r=l[--s];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),n&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let s=0;for(let i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(s+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,s=0;for(let[i,n]of e.entries()){if("("===(t=n[0])&&(s+=1),")"===t&&(s-=1),0===s&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return i;else this.doubleColon(n);r=n}return!1}comment(e){let t=new eI;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=eV(this.input)}decl(e,t){let r,s,i=new K;this.init(i,e[0][2]);let n=e[e.length-1];for(";"===n[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(n[3]||n[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],s=r[3]||r[2];if(s)return s}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let o=[];for(;e.length&&("space"===(s=e[0][0])||"comment"===s);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if("!important"===(r=e[t])[1].toLowerCase()){i.important=!0;let r=this.stringFrom(e,t);" !important"!==(r=this.spacesFromEnd(e)+r)&&(i.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),s="";for(let e=t;e>0;e--){let t=r[e][0];if(0===s.trim().indexOf("!")&&"space"!==t)break;s=r.pop()[1]+s}0===s.trim().indexOf("!")&&(i.important=!0,i.raws.important=s,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(i.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(i,"value",o.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new eG;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,i=null,n=[],o=e[1].startsWith("--"),l=[],a=e;for(;a;){if(r=a[0],l.push(a),"("===r||"["===r)i||(i=a),n.push("("===r?")":"]");else if(o&&s&&"{"===r)i||(i=a),n.push("}");else if(0===n.length)if(";"===r)if(s)return void this.decl(l,o);else break;else if("{"===r)return void this.rule(l);else if("}"===r){this.tokenizer.back(l.pop()),t=!0;break}else":"===r&&(s=!0);else r===n[n.length-1]&&(n.pop(),0===n.length&&(i=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(i),t&&s){if(!o)for(;l.length&&("space"===(a=l[l.length-1][0])||"comment"===a);)this.tokenizer.back(l.pop());this.decl(l,o)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let i,n,o,l,a=r.length,h="",u=!0;for(let e=0;e<a;e+=1)"space"!==(n=(i=r[e])[0])||e!==a-1||s?"comment"===n?(l=r[e-1]?r[e-1][0]:"empty",o=r[e+1]?r[e+1][0]:"empty",e_[l]||e_[o]||","===h.slice(-1)?u=!1:h+=i[1]):h+=i[1]:u=!1;if(!u){let s=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:s,value:h}}e[t]=h}rule(e){e.pop();let t=new eG;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};function eX(e,t){let r=new eJ(new ef(e,t));try{r.parse()}catch(e){throw e}return r.root}eX.default=eX,eE.registerParse(eX);let{isClean:eK,my:eH}=Z,e$={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},eQ={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},eq={Once:!0,postcssPlugin:!0,prepare:!0};function e0(e){return"object"==typeof e&&"function"==typeof e.then}function e1(e){let t=!1,r=e$[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function e2(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:e1(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function e3(e){return e[eK]=!1,e.nodes&&e.nodes.forEach(e=>e3(e)),e}let e9={},e4=class e{constructor(t,r,s){let i;if(this.stringified=!1,this.processed=!1,"object"==typeof r&&null!==r&&("root"===r.type||"document"===r.type))i=e3(r);else if(r instanceof e||r instanceof eF)i=e3(r.root),r.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=r.map);else{let e=eX;s.syntax&&(e=s.syntax.parse),s.parser&&(e=s.parser),e.parse&&(e=e.parse);try{i=e(r,s)}catch(e){this.processed=!0,this.error=e}i&&!i[eH]&&eE.rebuild(i)}this.result=new eF(t,i,s),this.helpers={...e9,postcss:e9,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!eQ[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!eq[r])if("object"==typeof t[r])for(let s in t[r])e(t,"*"===s?r:r+"-"+s.toLowerCase(),t[r][s]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(e0(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[eK];){e[eK]=!0;let t=[e2(e)];for(;t.length>0;){let e=this.visitTick(t);if(e0(e))try{await e}catch(r){let e=t[t.length-1].node;throw this.handleError(r,e)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>r(e,this.helpers));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(e0(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=G;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new eO(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(e0(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[eK];)e[eK]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){let e;this.result.lastPlugin=r;try{e=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(e0(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(s.length>0&&t.visitorIndex<s.length){let[e,i]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let s,i=t.iterator;for(;s=r.nodes[r.indexes[i]];)if(r.indexes[i]+=1,!s[eK]){s[eK]=!0,e.push(e2(s));return}t.iterator=0,delete r.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,0===e){r.nodes&&r.nodes.length&&(r[eK]=!0,t.iterator=r.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){for(let t of(e[eK]=!0,e1(e)))if(0===t)e.nodes&&e.each(e=>{e[eK]||this.walkSync(e)});else{let r=this.listeners[t];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};e4.registerPostcss=e=>{e9=e},e4.default=e4,eZ.registerLazyResult(e4),eP.registerLazyResult(e4);let e5=class{constructor(e,t,r){let s;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new eF(this._processor,s,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let n=new eO(G,s,this._opts,t);if(n.isMap()){let[e,t]=n.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=eX(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}};e5.default=e5;let e6=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new e4(this,e,t):new e5(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};function e7(e,t){if(Array.isArray(e))return e.map(e=>e7(e));let{inputs:r,...s}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:ef.prototype};r.map&&(r.map={...r.map,__proto__:er.prototype}),t.push(r)}if(s.nodes&&(s.nodes=e.nodes.map(e=>e7(e,t))),s.source){let{inputId:e,...r}=s.source;s.source=r,null!=e&&(s.source.input=t[e])}if("root"===s.type)return new eZ(s);if("decl"===s.type)return new K(s);if("rule"===s.type)return new eG(s);if("comment"===s.type)return new eI(s);if("atrule"===s.type)return new eU(s);else throw Error("Unknown node type: "+e.type)}function e8(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new e6(e)}e6.default=e6,eZ.registerProcessor(e6),eP.registerProcessor(e6),e7.default=e7,e8.plugin=function(e,t){let r,s=!1;function i(...r){console&&console.warn&&!s&&(s=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),C.default.env.LANG&&C.default.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let n=t(...r);return n.postcssPlugin=e,n.postcssVersion=new e6().version,n}return Object.defineProperty(i,"postcss",{get:()=>(r||(r=i()),r)}),i.process=function(e,t,r){return e8([i(r)]).process(e,t)},i},e8.stringify=G,e8.parse=eX,e8.fromJSON=e7,e8.list=eY,e8.comment=e=>new eI(e),e8.atRule=e=>new eU(e),e8.decl=e=>new K(e),e8.rule=e=>new eG(e),e8.root=e=>new eZ(e),e8.document=e=>new eP(e),e8.CssSyntaxError=z,e8.Declaration=K,e8.Container=eE,e8.Processor=e6,e8.Document=eP,e8.Comment=eI,e8.Warning=eM,e8.AtRule=eU,e8.Result=eF,e8.Input=ef,e8.Rule=eG,e8.Root=eZ,e8.Node=J,e4.registerPostcss(e8),e8.default=e8;let te=e8&&e8.__esModule&&Object.prototype.hasOwnProperty.call(e8,"default")?e8.default:e8;te.stringify,te.fromJSON,te.plugin,te.parse,te.list,te.document,te.comment,te.atRule,te.rule,te.decl,te.root,te.CssSyntaxError,te.Declaration,te.Container,te.Processor,te.Document,te.Comment,te.Warning,te.AtRule,te.Result,te.Input,te.Rule,te.Root,te.Node;var tt=Object.defineProperty,tr=(e,t,r)=>{let s;return(s="symbol"!=typeof t?t+"":t)in e?tt(e,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[s]=r},ts={exports:{}},ti=String,tn=function(){return{isColorSupported:!1,reset:ti,bold:ti,dim:ti,italic:ti,underline:ti,inverse:ti,hidden:ti,strikethrough:ti,black:ti,red:ti,green:ti,yellow:ti,blue:ti,magenta:ti,cyan:ti,white:ti,gray:ti,bgBlack:ti,bgRed:ti,bgGreen:ti,bgYellow:ti,bgBlue:ti,bgMagenta:ti,bgCyan:ti,bgWhite:ti}};ts.exports=tn(),ts.exports.createColors=tn;var to=ts.exports;let tl=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),ta=class e extends Error{constructor(t,r,s,i,n,o){super(t),this.name="CssSyntaxError",this.reason=t,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),void 0!==r&&void 0!==s&&("number"==typeof r?(this.line=r,this.column=s):(this.line=r.line,this.column=r.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){let t,r;if(!this.source)return"";let s=this.source;null==e&&(e=to.isColorSupported),tl&&e&&(s=tl(s));let i=s.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),l=String(o).length;if(e){let{bold:e,gray:s,red:i}=to.createColors(!0);t=t=>e(i(t)),r=e=>s(e)}else t=r=e=>e;return i.slice(n,o).map((e,s)=>{let i=n+1+s,o=" "+(" "+i).slice(-l)+" | ";if(i===this.line){let s=r(o.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+r(o)+e+"\n "+s+t("^")}return" "+r(o)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};ta.default=ta;var th={};th.isClean=Symbol("isClean"),th.my=Symbol("my");let tu={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},tc=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+s+i,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let s=e.parent,i=0;for(;s&&"root"!==s.type;)i+=1,s=s.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)r+=t}return r}block(e,t){let r,s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let i=e.nodes[s],n=this.raw(i,"before");n&&this.builder(n),this.stringify(i,t!==s||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,r){let s;if(r||(r=t),t&&void 0!==(s=e.raws[t]))return s;let i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return tu[r];let n=e.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[r])return n.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{var o;let i="raw"+((o=r)[0].toUpperCase()+o.slice(1));this[i]?s=this[i](n,e):n.walk(e=>{if(void 0!==(s=e.raws[t]))return!1})}return void 0===s&&(s=tu[r]),n.rawCache[r]=s,s}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};function tp(e,t){new tc(t).stringify(e)}tc.default=tc,tp.default=tp;let{isClean:tf,my:td}=th,tm=class{constructor(e={}){for(let t in this.raws={},this[tf]=!1,this[td]=!0,e)if("nodes"===t)for(let r of(this.nodes=[],e[t]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let s=new t.constructor;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||"proxyCache"===i)continue;let n=t[i],o=typeof n;"parent"===i&&"object"===o?r&&(s[i]=r):"source"===i?s[i]=n:Array.isArray(n)?s[i]=n.map(t=>e(t,s)):("object"===o&&null!==n&&(n=e(n)),s[i]=n)}return s}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new ta(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}markDirty(){if(this[tf]){this[tf]=!1;let e=this;for(;e=e.parent;)e[tf]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let s=(t=this.toString()).indexOf(e.word);-1!==s&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(s=1,i+=1):s+=1;return{column:s,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),i=s.indexOf(e.word);-1!==i&&(t=this.positionInside(i,s),r=this.positionInside(i+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new tc().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},s=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let s=this[e];if(Array.isArray(s))r[e]=s.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof s&&s.toJSON)r[e]=s.toJSON(null,t);else if("source"===e){let n=t.get(s.input);null==n&&(n=i,t.set(s.input,i),i++),r[e]={end:s.end,inputId:n,start:s.start}}else r[e]=s}return s&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=tp){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let s={node:this};for(let e in r)s[e]=r[e];return e.warn(t,s)}get proxyOf(){return this}};tm.default=tm;let tg=tm,ty=class extends tg{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};ty.default=ty;let{SourceMapConsumer:tw,SourceMapGenerator:tb}=tl,{existsSync:tv,readFileSync:tC}=tl,{dirname:tx,join:tO}=tl,tS=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=tx(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new tw(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),v.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=tx(e),tv(e))return this.mapFile=e,tC(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw Error("Unable to load previous source map: "+r.toString());return e}}else if(t instanceof tw)return tb.fromSourceMap(t).toString();else if(t instanceof tb)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=tO(tx(e),t)),this.loadFile(t)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};tS.default=tS;let{SourceMapConsumer:tI,SourceMapGenerator:tk}=tl,{fileURLToPath:tA,pathToFileURL:tR}=tl,{isAbsolute:tE,resolve:tN}=tl,{nanoid:tP}={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let s="",i=r;for(;i--;)s+=e[Math.random()*e.length|0];return s}},tM=Symbol("fromOffsetCache"),tF=!!(tI&&tk),tB=!!(tN&&tE),tL=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!tB||/^\w+:\/\//.test(t.from)||tE(t.from)?this.file=t.from:this.file=tN(t.from)),tB&&tF){let e=new tS(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+tP(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let i,n,o;if(t&&"object"==typeof t){let e=t,s=r;if("number"==typeof e.offset){let s=this.fromOffset(e.offset);t=s.line,r=s.col}else t=e.line,r=e.column;if("number"==typeof s.offset){let e=this.fromOffset(s.offset);n=e.line,o=e.col}else n=s.line,o=s.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let l=this.origin(t,r,n,o);return(i=l?new ta(e,void 0===l.endLine?l.line:{column:l.column,line:l.line},void 0===l.endLine?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,s.plugin):new ta(e,void 0===n?t:{column:r,line:t},void 0===n?r:{column:o,line:n},this.css,this.file,s.plugin)).input={column:r,endColumn:o,endLine:n,line:t,source:this.css},this.file&&(tR&&(i.input.url=tR(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,r;if(this[tM])r=this[tM];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let s=0,i=e.length;s<i;s++)r[s]=t,t+=e[s].length+1;this[tM]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let t,i=r.length-2;for(;s<i;)if(e<r[t=s+(i-s>>1)])i=t-1;else if(e>=r[t+1])s=t+1;else{s=t;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:tN(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){let i,n;if(!this.map)return!1;let o=this.map.consumer(),l=o.originalPositionFor({column:t,line:e});if(!l.source)return!1;"number"==typeof r&&(i=o.originalPositionFor({column:s,line:r})),n=tE(l.source)?tR(l.source):new URL(l.source,this.map.consumer().sourceRoot||tR(this.map.mapFile));let a={column:l.column,endColumn:i&&i.column,endLine:i&&i.line,line:l.line,url:n.toString()};if("file:"===n.protocol)if(tA)a.file=tA(n);else throw Error("file: protocol is not available in this PostCSS build");let h=o.sourceContentFor(l.source);return h&&(a.source=h),a}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};tL.default=tL,tl&&tl.registerInput&&tl.registerInput(tL);let{SourceMapConsumer:tj,SourceMapGenerator:tT}=tl,{dirname:tD,relative:tU,resolve:tz,sep:tZ}=tl,{pathToFileURL:tY}=tl,tW=!!(tj&&tT),tG=!!(tD&&tz&&tU&&tZ),tV=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),s=e.root||tD(e.file);!1===this.mapOpts.sourcesContent?(t=new tj(e.text)).sourcesContent&&(t.sourcesContent=null):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(s)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),tG&&tW&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=tT.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new tT({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]}generateString(){let e,t;this.css="",this.map=new tT({file:this.outputFile(),ignoreInvalidMapping:!0});let r=1,s=1,i="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,l,a)=>{if(this.css+=o,l&&"end"!==a&&(n.generated.line=r,n.generated.column=s-1,l.source&&l.source.start?(n.source=this.sourcePath(l),n.original.line=l.source.start.line,n.original.column=l.source.start.column-1):(n.source=i,n.original.line=1,n.original.column=0),this.map.addMapping(n)),(e=o.match(/\n/g))?(r+=e.length,t=o.lastIndexOf("\n"),s=o.length-t):s+=o.length,l&&"start"!==a){let e=l.parent||{raws:{}};(!("decl"===l.type||"atrule"===l.type&&!l.nodes)||l!==e.last||e.raws.semicolon)&&(l.source&&l.source.end?(n.source=this.sourcePath(l),n.original.line=l.source.end.line,n.original.column=l.source.end.column-1,n.generated.line=r,n.generated.column=s-2):(n.source=i,n.original.line=1,n.original.column=0,n.generated.line=r,n.generated.column=s-1),this.map.addMapping(n))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?tD(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=tD(tz(r,this.mapOpts.annotation)));let s=tU(r,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new tL(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return v.Buffer.from(e).toString("base64")}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(tY){let t=tY(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===tZ&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},t_=tm,tJ=class extends t_{constructor(e){super(e),this.type="comment"}};tJ.default=tJ;let{isClean:tX,my:tK}=th,tH=tm,t$=class e extends tH{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let s=this.getIterator();for(;this.indexes[s]<this.proxyOf.nodes.length&&(t=this.indexes[s],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[s]+=1;return delete this.indexes[s],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>e.root().toProxy();else if("nodes"===t)return e.nodes.map(e=>e.toProxy());else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,s=this.index(e),i=this.normalize(t,this.proxyOf.nodes[s]).reverse();for(let t of(s=this.index(e),i))this.proxyOf.nodes.splice(s+1,0,t);for(let e in this.indexes)s<(r=this.indexes[e])&&(this.indexes[e]=r+i.length);return this.markDirty(),this}insertBefore(e,t){let r,s=this.index(e),i=0===s&&"prepend",n=this.normalize(t,this.proxyOf.nodes[s],i).reverse();for(let t of(s=this.index(e),n))this.proxyOf.nodes.splice(s,0,t);for(let e in this.indexes)s<=(r=this.indexes[e])&&(this.indexes[e]=r+n.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(h(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t))for(let e of t=t.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if("root"===t.type&&"document"!==this.type)for(let e of t=t.nodes.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new ty(t)]}else if(t.selector)t=[new u(t)];else if(t.name)t=[new c(t)];else if(t.text)t=[new tJ(t)];else throw Error("Unknown node type in node creation");return t.map(t=>(t[tK]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[tX]&&function e(t){if(t[tX]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||(!t.fast||s.value.includes(t.fast))&&(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(e){throw t.addToError(e)}return!1!==s&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("atrule"===r.type&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if("atrule"===r.type&&r.name===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("decl"===r.type&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if("decl"===r.type&&r.prop===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if("rule"===r.type&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if("rule"===r.type&&r.selector===e)return t(r,s)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};t$.registerParse=e=>{h=e},t$.registerRule=e=>{u=e},t$.registerAtRule=e=>{c=e},t$.registerRoot=e=>{p=e},t$.default=t$,t$.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,c.prototype):"rule"===e.type?Object.setPrototypeOf(e,u.prototype):"decl"===e.type?Object.setPrototypeOf(e,ty.prototype):"comment"===e.type?Object.setPrototypeOf(e,tJ.prototype):"root"===e.type&&Object.setPrototypeOf(e,p.prototype),e[tK]=!0,e.nodes&&e.nodes.forEach(e=>{t$.rebuild(e)})};let tQ=t$,tq=class extends tQ{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new f(new d,this,e).stringify()}};tq.registerLazyResult=e=>{f=e},tq.registerProcessor=e=>{d=e},tq.default=tq;let t0=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};t0.default=t0;let t1=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new t0(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};t1.default=t1;let t2=/[\t\n\f\r "#'()/;[\\\]{}]/g,t3=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,t9=/.[\r\n"'(/\\]/,t4=/[\da-f]/i,t5=t$,t6=class extends t5{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};t6.default=t6,t5.registerAtRule(t6);let t7=t$,t8=class extends t7{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of s)e.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new m(new g,this,e).stringify()}};t8.registerLazyResult=e=>{m=e},t8.registerProcessor=e=>{g=e},t8.default=t8,t7.registerRoot(t8);let re={comma:e=>re.split(e,[","],!0),space:e=>re.split(e,[" ","\n"," "]),split(e,t,r){let s=[],i="",n=!1,o=0,l=!1,a="",h=!1;for(let r of e)h?h=!1:"\\"===r?h=!0:l?r===a&&(l=!1):'"'===r||"'"===r?(l=!0,a=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(n=!0),n?(""!==i&&s.push(i.trim()),i="",n=!1):i+=r;return(r||""!==i)&&s.push(i.trim()),s}};re.default=re;let rt=t$,rr=class extends rt{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return re.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};rr.default=rr,rt.registerRule(rr);let rs=function(e,t={}){let r,s,i,n,o,l,a,h,u,c,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,m=0,g=[],y=[];function w(t){throw e.error("Unclosed "+t,m)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&m>=d},nextToken:function(e){if(y.length)return y.pop();if(m>=d)return;let t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:s=m;do s+=1,r=p.charCodeAt(s);while(32===r||10===r||9===r||13===r||12===r)c=["space",p.slice(m,s)],m=s-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(r);c=[e,e,m];break}case 40:if(h=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===h&&39!==u&&34!==u&&32!==u&&10!==u&&9!==u&&12!==u&&13!==u){s=m;do{if(l=!1,-1===(s=p.indexOf(")",s+1)))if(f||t){s=m;break}else w("bracket");for(a=s;92===p.charCodeAt(a-1);)a-=1,l=!l}while(l)c=["brackets",p.slice(m,s+1),m,s],m=s}else s=p.indexOf(")",m+1),n=p.slice(m,s+1),-1===s||t9.test(n)?c=["(","(",m]:(c=["brackets",n,m,s],m=s);break;case 39:case 34:i=39===r?"'":'"',s=m;do{if(l=!1,-1===(s=p.indexOf(i,s+1)))if(f||t){s=m+1;break}else w("string");for(a=s;92===p.charCodeAt(a-1);)a-=1,l=!l}while(l)c=["string",p.slice(m,s+1),m,s],m=s;break;case 64:t2.lastIndex=m+1,t2.test(p),s=0===t2.lastIndex?p.length-1:t2.lastIndex-2,c=["at-word",p.slice(m,s+1),m,s],m=s;break;case 92:for(s=m,o=!0;92===p.charCodeAt(s+1);)s+=1,o=!o;if(r=p.charCodeAt(s+1),o&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(s+=1,t4.test(p.charAt(s)))){for(;t4.test(p.charAt(s+1));)s+=1;32===p.charCodeAt(s+1)&&(s+=1)}c=["word",p.slice(m,s+1),m,s],m=s;break;default:47===r&&42===p.charCodeAt(m+1)?(0===(s=p.indexOf("*/",m+2)+1)&&(f||t?s=p.length:w("comment")),c=["comment",p.slice(m,s+1),m,s]):(t3.lastIndex=m+1,t3.test(p),s=0===t3.lastIndex?p.length-1:t3.lastIndex-2,c=["word",p.slice(m,s+1),m,s],g.push(c)),m=s}return m++,c},position:function(){return m}}},ri={empty:!0,space:!0},rn=class{constructor(e){this.input=e,this.root=new t8,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,s,i=new t6;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let n=!1,o=!1,l=[],a=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?a.push("("===t?")":"]"):"{"===t&&a.length>0?a.push("}"):t===a[a.length-1]&&a.pop(),0===a.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){o=!0;break}else if("}"===t){if(l.length>0){for(s=l.length-1,r=l[s];r&&"space"===r[0];)r=l[--s];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),n&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let s=0;for(let i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(s+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,s=0;for(let[i,n]of e.entries()){if("("===(t=n[0])&&(s+=1),")"===t&&(s-=1),0===s&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return i;else this.doubleColon(n);r=n}return!1}comment(e){let t=new tJ;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=rs(this.input)}decl(e,t){let r,s,i=new ty;this.init(i,e[0][2]);let n=e[e.length-1];for(";"===n[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(n[3]||n[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],s=r[3]||r[2];if(s)return s}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let o=[];for(;e.length&&("space"===(s=e[0][0])||"comment"===s);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if("!important"===(r=e[t])[1].toLowerCase()){i.important=!0;let r=this.stringFrom(e,t);" !important"!==(r=this.spacesFromEnd(e)+r)&&(i.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),s="";for(let e=t;e>0;e--){let t=r[e][0];if(0===s.trim().indexOf("!")&&"space"!==t)break;s=r.pop()[1]+s}0===s.trim().indexOf("!")&&(i.important=!0,i.raws.important=s,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(i.raws.between+=o.map(e=>e[1]).join(""),o=[]),this.raw(i,"value",o.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new rr;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,i=null,n=[],o=e[1].startsWith("--"),l=[],a=e;for(;a;){if(r=a[0],l.push(a),"("===r||"["===r)i||(i=a),n.push("("===r?")":"]");else if(o&&s&&"{"===r)i||(i=a),n.push("}");else if(0===n.length)if(";"===r)if(s)return void this.decl(l,o);else break;else if("{"===r)return void this.rule(l);else if("}"===r){this.tokenizer.back(l.pop()),t=!0;break}else":"===r&&(s=!0);else r===n[n.length-1]&&(n.pop(),0===n.length&&(i=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(i),t&&s){if(!o)for(;l.length&&("space"===(a=l[l.length-1][0])||"comment"===a);)this.tokenizer.back(l.pop());this.decl(l,o)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let i,n,o,l,a=r.length,h="",u=!0;for(let e=0;e<a;e+=1)"space"!==(n=(i=r[e])[0])||e!==a-1||s?"comment"===n?(l=r[e-1]?r[e-1][0]:"empty",o=r[e+1]?r[e+1][0]:"empty",ri[l]||ri[o]||","===h.slice(-1)?u=!1:h+=i[1]):h+=i[1]:u=!1;if(!u){let s=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:s,value:h}}e[t]=h}rule(e){e.pop();let t=new rr;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};function ro(e,t){let r=new rn(new tL(e,t));try{r.parse()}catch(e){throw e}return r.root}ro.default=ro,t$.registerParse(ro);let{isClean:rl,my:ra}=th,rh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ru={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},rc={Once:!0,postcssPlugin:!0,prepare:!0};function rp(e){return"object"==typeof e&&"function"==typeof e.then}function rf(e){let t=!1,r=rh[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function rd(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:rf(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function rm(e){return e[rl]=!1,e.nodes&&e.nodes.forEach(e=>rm(e)),e}let rg={},ry=class e{constructor(t,r,s){let i;if(this.stringified=!1,this.processed=!1,"object"==typeof r&&null!==r&&("root"===r.type||"document"===r.type))i=rm(r);else if(r instanceof e||r instanceof t1)i=rm(r.root),r.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=r.map);else{let e=ro;s.syntax&&(e=s.syntax.parse),s.parser&&(e=s.parser),e.parse&&(e=e.parse);try{i=e(r,s)}catch(e){this.processed=!0,this.error=e}i&&!i[ra]&&t$.rebuild(i)}this.result=new t1(t,i,s),this.helpers={...rg,postcss:rg,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!ru[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!rc[r])if("object"==typeof t[r])for(let s in t[r])e(t,"*"===s?r:r+"-"+s.toLowerCase(),t[r][s]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(rp(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[rl];){e[rl]=!0;let t=[rd(e)];for(;t.length>0;){let e=this.visitTick(t);if(rp(e))try{await e}catch(r){let e=t[t.length-1].node;throw this.handleError(r,e)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>r(e,this.helpers));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(rp(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=tp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new tV(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(rp(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[rl];)e[rl]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){let e;this.result.lastPlugin=r;try{e=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(rp(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(s.length>0&&t.visitorIndex<s.length){let[e,i]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let s,i=t.iterator;for(;s=r.nodes[r.indexes[i]];)if(r.indexes[i]+=1,!s[rl]){s[rl]=!0,e.push(rd(s));return}t.iterator=0,delete r.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,0===e){r.nodes&&r.nodes.length&&(r[rl]=!0,t.iterator=r.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){for(let t of(e[rl]=!0,rf(e)))if(0===t)e.nodes&&e.each(e=>{e[rl]||this.walkSync(e)});else{let r=this.listeners[t];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};ry.registerPostcss=e=>{rg=e},ry.default=ry,t8.registerLazyResult(ry),tq.registerLazyResult(ry);let rw=class{constructor(e,t,r){let s;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new t1(this._processor,s,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let n=new tV(tp,s,this._opts,t);if(n.isMap()){let[e,t]=n.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=ro(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}};rw.default=rw;let rb=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new ry(this,e,t):new rw(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};function rv(e,t){if(Array.isArray(e))return e.map(e=>rv(e));let{inputs:r,...s}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:tL.prototype};r.map&&(r.map={...r.map,__proto__:tS.prototype}),t.push(r)}if(s.nodes&&(s.nodes=e.nodes.map(e=>rv(e,t))),s.source){let{inputId:e,...r}=s.source;s.source=r,null!=e&&(s.source.input=t[e])}if("root"===s.type)return new t8(s);if("decl"===s.type)return new ty(s);if("rule"===s.type)return new rr(s);if("comment"===s.type)return new tJ(s);if("atrule"===s.type)return new t6(s);else throw Error("Unknown node type: "+e.type)}function rC(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new rb(e)}rb.default=rb,t8.registerProcessor(rb),tq.registerProcessor(rb),rv.default=rv,rC.plugin=function(e,t){let r,s=!1;function i(...r){console&&console.warn&&!s&&(s=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),C.default.env.LANG&&C.default.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let n=t(...r);return n.postcssPlugin=e,n.postcssVersion=new rb().version,n}return Object.defineProperty(i,"postcss",{get:()=>(r||(r=i()),r)}),i.process=function(e,t,r){return rC([i(r)]).process(e,t)},i},rC.stringify=tp,rC.parse=ro,rC.fromJSON=rv,rC.list=re,rC.comment=e=>new tJ(e),rC.atRule=e=>new t6(e),rC.decl=e=>new ty(e),rC.rule=e=>new rr(e),rC.root=e=>new t8(e),rC.document=e=>new tq(e),rC.CssSyntaxError=ta,rC.Declaration=ty,rC.Container=t$,rC.Processor=rb,rC.Document=tq,rC.Comment=tJ,rC.Warning=t0,rC.AtRule=t6,rC.Result=t1,rC.Input=tL,rC.Rule=rr,rC.Root=t8,rC.Node=tm,ry.registerPostcss(rC),rC.default=rC;let rx=rC&&rC.__esModule&&Object.prototype.hasOwnProperty.call(rC,"default")?rC.default:rC;rx.stringify,rx.fromJSON,rx.plugin,rx.parse,rx.list,rx.document,rx.comment,rx.atRule,rx.rule,rx.decl,rx.root,rx.CssSyntaxError,rx.Declaration,rx.Container,rx.Processor,rx.Document,rx.Comment,rx.Warning,rx.AtRule,rx.Result,rx.Input,rx.Rule,rx.Root,rx.Node;class rO{constructor(...e){tr(this,"parentElement",null),tr(this,"parentNode",null),tr(this,"ownerDocument"),tr(this,"firstChild",null),tr(this,"lastChild",null),tr(this,"previousSibling",null),tr(this,"nextSibling",null),tr(this,"ELEMENT_NODE",1),tr(this,"TEXT_NODE",3),tr(this,"nodeType"),tr(this,"nodeName"),tr(this,"RRNodeType")}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof rO)||e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}let rS={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},rI={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},rk={};function rA(e){var t,r;let s;if(rk[e])return rk[e];let i=((s=null==(r=null==(t=null==globalThis?void 0:globalThis.Zone)?void 0:t.__symbol__)?void 0:r.call(t,e))&&globalThis[s]?globalThis[s]:void 0)||globalThis[e],n=i.prototype,o=e in rS?rS[e]:void 0,l=!!(o&&o.every(e=>{var t,r;return!!(null==(r=null==(t=Object.getOwnPropertyDescriptor(n,e))?void 0:t.get)?void 0:r.toString().includes("[native code]"))})),a=e in rI?rI[e]:void 0,h=!!(a&&a.every(e=>{var t;return"function"==typeof n[e]&&(null==(t=n[e])?void 0:t.toString().includes("[native code]"))}));if(l&&h)return rk[e]=i.prototype,i.prototype;try{let t=document.createElement("iframe");document.body.appendChild(t);let r=t.contentWindow;if(!r)return i.prototype;let s=r[e].prototype;if(document.body.removeChild(t),!s)return n;return rk[e]=s}catch{return n}}let rR={};function rE(e,t,r){var s;let i=`${e}.${String(r)}`;if(rR[i])return rR[i].call(t);let n=null==(s=Object.getOwnPropertyDescriptor(rA(e),r))?void 0:s.get;return n?(rR[i]=n,n.call(t)):t[r]}let rN={};function rP(e,t,r){let s=`${e}.${String(r)}`;if(rN[s])return rN[s].bind(t);let i=rA(e)[r];return"function"!=typeof i?t[r]:(rN[s]=i,i.bind(t))}let rM=function(e){return rE("Node",e,"parentElement")},rF=function(e,t){return rP("Node",e,"contains")(t)},rB=function(e){return rP("Node",e,"getRootNode")()},rL=function(e){return e&&"host"in e?rE("ShadowRoot",e,"host"):null},rj="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",rT={map:{},getId:()=>(console.error(rj),-1),getNode:()=>(console.error(rj),null),removeNodeFromMap(){console.error(rj)},has:()=>(console.error(rj),!1),reset(){console.error(rj)}};"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(rT=new Proxy(rT,{get:(e,t,r)=>("map"===t&&console.error(rj),Reflect.get(e,t,r))}));let rD=Date.now;function rU(e){return e?e.nodeType===e.ELEMENT_NODE?e:rM(e):null}function rz(e){var t;let r=null;return"getRootNode"in e&&(null==(t=rB(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&rL(rB(e))&&(r=rL(rB(e))),r}function rZ(e){let t,r=e;for(;t=rz(r);)r=t;return r}function rY(e){let t=e.ownerDocument;return!!t&&rF(t,rZ(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(rD=()=>new Date().getTime());let rW=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:class{constructor(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}},get _mirror(){return rT},closestElementOfNode:rU,getBaseDimension:function e(t,r){var s,i;let n=null==(i=null==(s=t.ownerDocument)?void 0:s.defaultView)?void 0:i.frameElement;if(!n||n===r)return{x:0,y:0,relativeScale:1,absoluteScale:1};let o=n.getBoundingClientRect(),l=e(n,r),a=o.height/n.clientHeight;return{x:o.x*l.relativeScale+l.x,y:o.y*l.relativeScale+l.y,relativeScale:a,absoluteScale:l.absoluteScale*a}},getNestedRule:function e(t,r){let s=t[r[0]];return 1===r.length?s:e(s.cssRules[r[1]].cssRules,r.slice(2))},getPositionsAndIndex:function(e){let t=[...e],r=t.pop();return{positions:t,index:r}},getRootShadowHost:rZ,getShadowHost:rz,getWindowHeight:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},getWindowScroll:function(e){var t,r,s,i;let n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(t=rM(n.body))?void 0:t.scrollLeft)||(null==(r=null==n?void 0:n.body)?void 0:r.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(s=rM(n.body))?void 0:s.scrollTop)||(null==(i=null==n?void 0:n.body)?void 0:i.scrollTop)||0}},getWindowWidth:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},hasShadowRoot:function(e){var t;return!!e&&(e instanceof rO&&"shadowRoot"in e?!!e.shadowRoot:!!((t=e)&&"shadowRoot"in t?rE("Element",t,"shadowRoot"):null))},hookSetter:function e(t,r,s,i,n=window){let o=n.Object.getOwnPropertyDescriptor(t,r);return n.Object.defineProperty(t,r,i?s:{set(e){setTimeout(()=>{s.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,r,o||{},!0)},inDom:function(e){let t=e.ownerDocument;return!!t&&(rF(t,e)||rY(e))},isAncestorRemoved:function e(t,r){var s,i;let n;if((n=t&&"host"in t&&"mode"in t&&((s=t)&&"host"in s?F("ShadowRoot",s,"host"):null)||null)&&"shadowRoot"in n&&((i=n)&&"shadowRoot"in i?F("Element",i,"shadowRoot"):null)===t)return!1;let o=r.getId(t);if(!r.has(o))return!0;let l=rE("Node",t,"parentNode");return(!l||l.nodeType!==t.DOCUMENT_NODE)&&(!l||e(l,r))},isBlocked:function(e,t,r,s){if(!e)return!1;let i=rU(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||s&&null!==i.closest("."+t))return!0}else if(function e(t,r,s){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!s&&e(B(t),r,s);for(let e=t.classList.length;e--;){let s=t.classList[e];if(r.test(s))return!0}return!!s&&e(B(t),r,s)}(i,t,s))return!0}catch(e){}return!!(r&&(i.matches(r)||s&&null!==i.closest(r)))||!1},isIgnored:function(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)},isSerialized:function(e,t){return -1!==t.getId(e)},isSerializedIframe:function(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))},isSerializedStylesheet:function(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))},iterateResolveTree:function e(t,r){r(t.value);for(let s=t.children.length-1;s>=0;s--)e(t.children[s],r)},legacy_isTouchEvent:function(e){return!!e.changedTouches},get nowTimestamp(){return rD},on:function(e,t,r=document){let s={capture:!0,passive:!0};return r.addEventListener(e,t,s),()=>r.removeEventListener(e,t,s)},patch:function(e,t,r){try{if(!(t in e))return()=>{};let s=e[t],i=r(s);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=i,()=>{e[t]=s}}catch{return()=>{}}},polyfill:function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)},queueToResolveTrees:function(e){let t={},r=(e,r)=>{let s={value:e,parent:r,children:[]};return t[e.node.id]=s,s},s=[];for(let i of e){let{nextId:e,parentId:n}=i;if(e&&e in t){let n=t[e];if(n.parent){let e=n.parent.children.indexOf(n);n.parent.children.splice(e,0,r(i,n.parent))}else{let e=s.indexOf(n);s.splice(e,0,r(i,null))}continue}if(n in t){let e=t[n];e.children.push(r(i,e));continue}s.push(r(i,null))}return s},shadowHostInDom:rY,throttle:function(e,t,r={}){let s=null,i=0;return function(...n){let o=Date.now();i||!1!==r.leading||(i=o);let l=t-(o-i),a=this;l<=0||l>t?(s&&(clearTimeout(s),s=null),i=o,e.apply(a,n)):s||!1===r.trailing||(s=setTimeout(()=>{i=!1===r.leading?0:Date.now(),s=null,e.apply(a,n)},l))}},uniqueTextMutations:function(e){let t=new Set,r=[];for(let s=e.length;s--;){let i=e[s];t.has(i.id)||(r.push(i),t.add(i.id))}return r}},Symbol.toStringTag,{value:"Module"}));for(var rG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rV="undefined"==typeof Uint8Array?[]:new Uint8Array(256),r_=0;r_<rG.length;r_++)rV[rG.charCodeAt(r_)]=r_;"undefined"!=typeof window&&window.Blob&&new Blob([Uint8Array.from(atob("KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo="),e=>e.charCodeAt(0))],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(w=e.contentWindow)?void 0:w.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new class e{constructor(){A(this,"idNodeMap",new Map),A(this,"nodeMetaMap",new WeakMap)}getId(e){var t;return e?(null==(t=this.getMeta(e))?void 0:t.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}},(y=b||(b={}))[y.NotStarted=0]="NotStarted",y[y.Running=1]="Running",y[y.Stopped=2]="Stopped";class rJ{constructor(e){O(this,"fileName"),O(this,"functionName"),O(this,"lineNumber"),O(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){let e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?`${this.functionName} (${this.fileName}:${e}:${t})`:`${this.fileName}:${e}:${t}`}}let rX=/(^|@)\S+:\d+/,rK=/^\s*at .*(\S+:\d+|\(native\))/m,rH=/^(eval@)?(\[native code])?$/,r$={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(rK)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw Error(`Cannot parse given url: ${e}`);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(rK)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));let t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),s=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:s.pop());return new rJ({functionName:s.join(" ")||void 0,fileName:["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(rH)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new rJ({functionName:e});{let t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),s=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new rJ({functionName:s,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})}},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){let t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),s=[];for(let e=2,i=r.length;e<i;e+=2){let i=t.exec(r[e]);i&&s.push(new rJ({fileName:i[2],lineNumber:parseFloat(i[1])}))}return s},parseOpera10:function(e){let t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),s=[];for(let e=0,i=r.length;e<i;e+=2){let i=t.exec(r[e]);i&&s.push(new rJ({functionName:i[3]||void 0,fileName:i[2],lineNumber:parseFloat(i[1])}))}return s},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(rX)&&!e.match(/^Error created at/)},this).map(function(e){let t=e.split("@"),r=this.extractLocation(t.pop());return new rJ({functionName:(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function rQ(e){return"[object Object]"===Object.prototype.toString.call(e)}function rq(e,t){let r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);let s=[],i=[];return JSON.stringify(e,function(e,t){var n;if(s.length>0){let r=s.indexOf(this);~r?s.splice(r+1):s.push(this),~r?i.splice(r,1/0,e):i.push(e),~s.indexOf(t)&&(t=s[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,s.indexOf(t)).join(".")+"]")}else s.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(rQ(n=t)&&Object.keys(n).length>r.numOfKeysLimit||"function"==typeof n||rQ(n)&&function e(t,r){if(0===r)return!0;for(let s of Object.keys(t))if(rQ(t[s])&&e(t[s],r-1))return!0;return!1}(n,r.depthOfLimit)){let e;return e=t.toString(),r.stringLengthLimit&&e.length>r.stringLengthLimit&&(e=`${e.slice(0,r.stringLengthLimit)}...`),e}if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){let e={};for(let r in t){let s=t[r];Array.isArray(s)?e[r]=function(e){if(!e||!e.outerHTML)return"";let t="";for(;e.parentElement;){let r=e.localName;if(!r)break;r=r.toLowerCase();let s=e.parentElement,i=[];if(s.children&&s.children.length>0)for(let e=0;e<s.children.length;e++){let t=s.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===r&&i.push(t)}i.length>1&&(r+=`:eq(${i.indexOf(e)})`),t=r+(t?">"+t:""),e=s}return t}(s.length?s[0]:null):e[r]=s}return e}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}let r0={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function r1(e,t,r){let s,i=r?Object.assign({},r0,r):r0,n=i.logger;if(!n)return()=>{};s="string"==typeof n?t[n]:n;let o=0,l=!1,a=[];if(i.level.includes("error")){let r=t=>{let r=t.message,s=t.error;e({level:"error",trace:r$.parse(s).map(e=>e.toString()),payload:[rq(r,i.stringifyOptions)]})};t.addEventListener("error",r),a.push(()=>{t.removeEventListener("error",r)});let s=t=>{let r,s;t.reason instanceof Error?(r=t.reason,s=[rq(`Uncaught (in promise) ${r.name}: ${r.message}`,i.stringifyOptions)]):(r=Error(),s=[rq("Uncaught (in promise)",i.stringifyOptions),rq(t.reason,i.stringifyOptions)]),e({level:"error",trace:r$.parse(r).map(e=>e.toString()),payload:s})};t.addEventListener("unhandledrejection",s),a.push(()=>{t.removeEventListener("unhandledrejection",s)})}for(let t of i.level)a.push(function(t,r){return t[r]?rW.patch(t,r,t=>(...s)=>{if((t.apply(this,s),"assert"!==r||!s[0])&&!l){l=!0;try{let t=r$.parse(Error()).map(e=>e.toString()).splice(1),n=("assert"===r?s.slice(1):s).map(e=>rq(e,i.stringifyOptions));++o<i.lengthThreshold?e({level:r,trace:t,payload:n}):o===i.lengthThreshold&&e({level:"warn",trace:[],payload:[rq("The number of log records reached the threshold.")]})}catch(e){t("rrweb logger error:",e,...s)}finally{l=!1}}}):()=>{}}(s,t));return()=>{a.forEach(e=>e())}}let r2="rrweb/console@1",r3=e=>({name:r2,observer:r1,options:e});e.s(["PLUGIN_NAME",()=>r2,"getRecordConsolePlugin",()=>r3])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,585190,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,884916,e=>{"use strict";var t=e.i(19483),a=e.i(324066),i=e.i(76130),r=e.i(336277);e.i(316575);var n=e.i(187725),o=e.i(7284),s=e.i(778024),l=e.i(578509),d=e.i(860223),u=e.i(605679),c=e.i(446547),h=e.i(73205),f=e.i(519273),p=e.i(435983),m=e.i(446519);function x(e){return(0,m.default)("MuiSwitch",e)}let y=(0,p.default)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var g=e.i(577950);let b=(0,c.styled)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,a.edge&&t[`edge${(0,l.default)(a.edge)}`],t[`size${(0,l.default)(a.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${y.thumb}`]:{width:16,height:16},[`& .${y.switchBase}`]:{padding:4,[`&.${y.checked}`]:{transform:"translateX(16px)"}}}}]}),w=(0,c.styled)(u.default,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.switchBase,{[`& .${y.input}`]:t.input},"default"!==a.color&&t[`color${(0,l.default)(a.color)}`]]}})((0,h.default)(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${y.checked}`]:{transform:"translateX(20px)"},[`&.${y.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${y.checked} + .${y.track}`]:{opacity:.5},[`&.${y.disabled} + .${y.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${"light"===e.palette.mode?.12:.2}`},[`& .${y.input}`]:{left:"-100%",width:"300%"}})),(0,h.default)(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((0,d.default)(["light"])).map(([t])=>({props:{color:t},style:{[`&.${y.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${y.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${y.checked} + .${y.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),v=(0,c.styled)("span",{name:"MuiSwitch",slot:"Track"})((0,h.default)(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${"light"===e.palette.mode?.38:.3}`}))),j=(0,c.styled)("span",{name:"MuiSwitch",slot:"Thumb"})((0,h.default)(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),k=n.forwardRef(function(e,a){let i=(0,f.useDefaultProps)({props:e,name:"MuiSwitch"}),{className:r,color:n="primary",edge:d=!1,size:u="medium",sx:c,slots:h={},slotProps:p={},...m}=i,y={...i,color:n,edge:d,size:u},k=(e=>{let{classes:t,edge:a,size:i,color:r,checked:n,disabled:o}=e,d={root:["root",a&&`edge${(0,l.default)(a)}`,`size${(0,l.default)(i)}`],switchBase:["switchBase",`color${(0,l.default)(r)}`,n&&"checked",o&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,s.default)(d,x,t);return{...t,...u}})(y),C={slots:h,slotProps:p},[S,$]=(0,g.default)("root",{className:(0,o.default)(k.root,r),elementType:b,externalForwardedProps:C,ownerState:y,additionalProps:{sx:c}}),[R,q]=(0,g.default)("thumb",{className:k.thumb,elementType:j,externalForwardedProps:C,ownerState:y}),B=(0,t.jsx)(R,{...q}),[z,D]=(0,g.default)("track",{className:k.track,elementType:v,externalForwardedProps:C,ownerState:y});return(0,t.jsxs)(S,{...$,children:[(0,t.jsx)(w,{type:"checkbox",icon:B,checkedIcon:B,ref:a,ownerState:y,...m,classes:{...k,root:k.switchBase},slots:{...h.switchBase&&{root:h.switchBase},...h.input&&{input:h.input}},slotProps:{...p.switchBase&&{root:"function"==typeof p.switchBase?p.switchBase(y):p.switchBase},input:{role:"switch"},...p.input&&{input:"function"==typeof p.input?p.input(y):p.input}}}),(0,t.jsx)(z,{...D})]})});var C=e.i(197068),S=e.i(427938),$=e.i(130209),R=e.i(388797),q=e.i(913369),B=e.i(2936),z=e.i(180806),D=e.i(507524),_=e.i(461566),I=e.i(916955),T=e.i(29134),Q=e.i(912007),P=e.i(475119),A=e.i(783586),M=e.i(182809),E=e.i(333207),N=e.i(42409),O=e.i(407101),K=e.i(109624),L=e.i(373921);function U(){let{data:e}=(0,E.useQuery)({queryKey:O.cacheKeys.instanceInfo(),queryFn:K.getRecceInstanceInfo});return(0,t.jsx)("div",{className:"flex flex-1 h-full min-h-0 m-2 p-4 bg-blue-50 rounded-lg shadow-md justify-center",children:(0,t.jsxs)("div",{className:"w-4/5 flex flex-col overflow-y-auto gap-6 px-8 pb-8",children:[(0,t.jsxs)(r.default,{alignItems:"center",spacing:2,children:[(0,t.jsx)(a.default,{sx:{p:1,bgcolor:"white",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:2},children:(0,t.jsx)(a.default,{component:N.RiTerminalBoxLine,sx:{fontSize:28,color:"iochmara.500"}})}),(0,t.jsx)(S.default,{variant:"h5",sx:{mt:2},children:"Wait, there's more!"}),(0,t.jsxs)(S.default,{sx:{fontSize:"1rem",textAlign:"center"},children:["Query functions disabled without a"," ",(0,t.jsx)(S.default,{component:"span",sx:{fontWeight:"bold"},children:"data warehouse connection"})]})]}),(0,t.jsx)(r.default,{sx:{width:"50%",mt:3,mx:"auto"},children:(0,t.jsx)(i.default,{color:"iochmara",variant:"contained",size:"large",onClick:()=>{window.open((0,L.getSettingsUrl)(e),"_blank")},children:"Connect to Data Warehouse"})})]})})}var G=e.i(138848);let F=()=>{let{isCustomQueries:e,setCustomQueries:i,sqlQuery:n,setBaseSqlQuery:o}=(0,P.useRecceQueryContext)();return(0,t.jsxs)(a.default,{children:[(0,t.jsxs)(r.default,{direction:"row",spacing:.5,alignItems:"center",fontSize:"0.75rem",children:[(0,t.jsx)(S.default,{variant:"body2",sx:{fontSize:"0.75rem"},children:"Custom Queries"}),(0,t.jsx)(C.default,{title:"Custom queries allow you to use two SQL queries to compare results between current and base environments.",children:(0,t.jsx)(a.default,{component:"span",sx:{display:"flex",color:"grey.600"},children:(0,t.jsx)(R.PiInfoFill,{fontSize:"1rem"})})})]}),(0,t.jsx)(k,{size:"small",checked:e,onChange:()=>{!e&&o&&o(n),i(!e)},color:"primary"})]})},W=()=>{let{sqlQuery:e,baseSqlQuery:r,setSqlQuery:o,setBaseSqlQuery:s,primaryKeys:l,setPrimaryKeys:d,isCustomQueries:u}=(0,P.useRecceQueryContext)(),{lineageGraph:c,envInfo:h}=(0,I.useLineageGraphContext)(),{featureToggles:f,singleEnv:p}=(0,Q.useRecceInstanceContext)(),m=e;h?.adapterType==="sqlmesh"&&e===P.defaultSqlQuery&&(m="select * from db.mymodel"),"read only"===f.mode&&(m=`--- Would like to do query here? Book a demo with us at ${z.RECCE_SUPPORT_CALENDAR_URL}
|
|
2
|
+
${m}`);let{showRunId:x}=(0,T.useRecceActionContext)(),y=async e=>{let t="query_base"===e?r??"":m,a=function(e){switch(e){case"query":return D.submitQuery;case"query_base":return D.submitQueryBase;case"query_diff":return D.submitQueryDiff;default:throw Error(`Unknown query type: ${e}`)}}(e),i={sql_template:t};"query_diff"===e&&(i.primary_keys=l,u&&(i.base_sql_template=r));let{run_id:n}=await a(i,{nowait:!0});return x(n),await (0,_.waitRun)(n)},{mutate:g,isPending:b}=(0,$.useMutation)({mutationFn:y}),w=(0,n.useMemo)(()=>{let e={};if(!c)return"N/A";for(let t in c.nodes){let a=c.nodes[t].data.data.current?.schema;a&&(e[a]=(e[a]||0)+1)}return Object.keys(e).reduce((t,a)=>e[a]>(e[t]||0)?a:t,"N/A")},[c]);return p||"metadata only"===f.mode?(0,t.jsxs)(a.default,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,t.jsxs)(a.default,{sx:{display:"flex",justifyContent:"right",alignItems:"center",padding:"4pt 8pt",gap:"5px",height:"54px",borderBottom:"1px solid lightgray"},children:[(0,t.jsx)(B.default,{}),(0,t.jsx)(a.default,{sx:{flexGrow:1}}),p?(0,t.jsx)(C.default,{title:"Please configure the base environment before running the diff",placement:"left",children:(0,t.jsx)("span",{children:(0,t.jsx)(i.default,{variant:"contained",disabled:!0,size:"small",sx:{fontSize:"14px",mt:"16px"},children:"Run Diff"})})}):(0,t.jsx)(q.default,{display:"metadata only"===f.mode,children:(0,t.jsx)(i.default,{variant:"contained",disabled:!0,size:"small",sx:{fontSize:"14px",mt:"16px"},children:"Run Diff"})})]}),(0,t.jsx)(G.DualSqlEditor,{value:m,onChange:o,onRun:()=>{g("query")},labels:["base (production)",`current (${w})`],SetupGuide:"metadata only"===f.mode?(0,t.jsx)(U,{}):(0,t.jsx)(A.BaseEnvironmentSetupGuide,{})})]}):(0,t.jsxs)(a.default,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,t.jsxs)(a.default,{sx:{display:"flex",justifyContent:"right",alignItems:"flex-end",padding:"4pt 8pt",gap:"5px",height:"54px",borderBottom:"1px solid lightgray",flex:"0 0 54px"},children:[(0,t.jsx)(B.default,{}),(0,t.jsx)(F,{}),(0,t.jsx)(a.default,{sx:{flexGrow:1}}),(0,t.jsx)(M.QueryForm,{defaultPrimaryKeys:l,onPrimaryKeysChange:d}),(0,t.jsx)(i.default,{variant:"contained",onClick:()=>{g("query_diff")},disabled:b||f.disableDatabaseQuery,size:"small",children:"Run Diff"})]}),(0,t.jsx)(a.default,{sx:{width:"100%",flex:1},children:u?(0,t.jsx)(G.DualSqlEditor,{value:m,baseValue:r,onChange:o,onChangeBase:s,onRun:()=>{g("query")},onRunBase:()=>{g("query_base")},onRunDiff:()=>{g("query_diff")}}):(0,t.jsx)(G.default,{value:m,onChange:o,onRun:()=>{g("query")},onRunDiff:()=>{g("query_diff")}})})]})};function X(){return(0,t.jsx)(W,{})}e.s(["default",()=>X],884916)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.gutter{background-color:#eee;background-position:50%;background-repeat:no-repeat}.gutter:hover{background-color:orange}.gutter.gutter-vertical{cursor:row-resize;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=)}.gutter.gutter-horizontal{cursor:col-resize;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}
|