recce-nightly 1.10.0.20250625__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 +5 -0
- recce/adapter/dbt_adapter/__init__.py +343 -245
- recce/apis/check_api.py +20 -14
- recce/apis/check_events_api.py +353 -0
- recce/apis/check_func.py +5 -5
- recce/apis/run_func.py +32 -3
- recce/artifact.py +76 -3
- recce/cli.py +705 -82
- recce/config.py +2 -2
- recce/connect_to_cloud.py +1 -1
- recce/core.py +3 -3
- recce/data/404/index.html +2 -0
- recce/data/404.html +2 -22
- 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.bd5c9f50.woff → 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-latin-800-normal.cde454cc.woff2 +0 -0
- recce/data/_next/static/media/{montserrat-latin-800-normal.fc315020.woff → 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.2e5381b2.woff → montserrat-latin-ext-800-normal.b671449b.woff} +0 -0
- recce/data/_next/static/media/{montserrat-vietnamese-800-normal.20c545e6.woff → 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 +1 -1
- 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/index.html +2 -27
- recce/data/index.txt +32 -8
- 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/event/CONFIG.bak +1 -0
- recce/event/__init__.py +9 -8
- recce/event/collector.py +6 -2
- recce/event/track.py +10 -0
- recce/github.py +1 -1
- recce/mcp_server.py +725 -0
- recce/models/check.py +433 -15
- recce/models/types.py +61 -2
- recce/pull_request.py +1 -1
- recce/run.py +37 -17
- recce/server.py +216 -21
- 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 +25 -3
- recce/tasks/dataframe.py +63 -1
- recce/tasks/query.py +40 -3
- recce/tasks/rowcount.py +4 -1
- recce/tasks/schema.py +4 -1
- recce/tasks/utils.py +147 -0
- recce/tasks/valuediff.py +85 -57
- recce/util/api_token.py +11 -2
- recce/util/breaking.py +10 -1
- recce/util/cll.py +1 -2
- 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 +2 -2
- recce/util/lineage.py +19 -18
- recce/util/perf_tracking.py +85 -0
- recce/util/recce_cloud.py +254 -5
- recce/util/startup_perf.py +121 -0
- recce/yaml/__init__.py +2 -2
- {recce_nightly-1.10.0.20250625.dist-info → recce_nightly-1.30.0.20251221.dist-info}/METADATA +91 -71
- recce_nightly-1.30.0.20251221.dist-info/RECORD +183 -0
- {recce_nightly-1.10.0.20250625.dist-info → recce_nightly-1.30.0.20251221.dist-info}/WHEEL +1 -2
- recce/data/_next/static/abCX3x3UoIdRLEDWxx4xd/_buildManifest.js +0 -1
- recce/data/_next/static/chunks/181-acc61ddada3bc0ca.js +0 -43
- recce/data/_next/static/chunks/1bff33f1-1ef85cf5e658a751.js +0 -1
- recce/data/_next/static/chunks/217-879a84d70f7a907c.js +0 -2
- recce/data/_next/static/chunks/29e3cc0d-60045b2e47aa3916.js +0 -1
- recce/data/_next/static/chunks/36e1c10d-8e7be4a6c1f6ab2d.js +0 -1
- recce/data/_next/static/chunks/3998a672-03adacad07b346ac.js +0 -1
- recce/data/_next/static/chunks/3a92ee20-1081c360214f9602.js +0 -1
- recce/data/_next/static/chunks/42-cd3c06533f5fd47c.js +0 -9
- recce/data/_next/static/chunks/450c323b-fd94e7ffaa4a5efa.js +0 -1
- recce/data/_next/static/chunks/47d8844f-929aed9b1c73a905.js +0 -1
- recce/data/_next/static/chunks/608-3b079b544e5d5f5e.js +0 -15
- recce/data/_next/static/chunks/6dc81886-adbfa45836061d79.js +0 -1
- recce/data/_next/static/chunks/7a8a3e83-edf6dc64b5d5f0a5.js +0 -1
- recce/data/_next/static/chunks/7f27ae6c-d5f0438edd5c2a5b.js +0 -1
- recce/data/_next/static/chunks/86730205-cfb14e3f051bab35.js +0 -1
- recce/data/_next/static/chunks/8d700b6a.8bb140898499c512.js +0 -1
- recce/data/_next/static/chunks/92-607cd1af83c41f43.js +0 -1
- recce/data/_next/static/chunks/9746af58-a42b7d169cacadf0.js +0 -1
- recce/data/_next/static/chunks/a30376cd-de84559016d7e133.js +0 -1
- recce/data/_next/static/chunks/app/_not-found/page-01ed58b7f971d311.js +0 -1
- recce/data/_next/static/chunks/app/layout-177a410a97e0d018.js +0 -1
- recce/data/_next/static/chunks/app/page-da6e046a8235dbfc.js +0 -1
- recce/data/_next/static/chunks/b63b1b3f-4282bdcf459e075c.js +0 -1
- recce/data/_next/static/chunks/bbda5537-9ec25eb1dd62348a.js +0 -1
- recce/data/_next/static/chunks/c132bf7d-08cb668a789d6afd.js +0 -1
- recce/data/_next/static/chunks/ce84277d-2e5d1d46910cf052.js +0 -1
- recce/data/_next/static/chunks/febdd86e-c6b525341634b860.js +0 -54
- recce/data/_next/static/chunks/fee69bc6-2dbccaf9b90474e6.js +0 -1
- recce/data/_next/static/chunks/framework-ded83d71b51ce901.js +0 -1
- recce/data/_next/static/chunks/main-app-39061b0166c47f55.js +0 -1
- recce/data/_next/static/chunks/main-b5b3ae20a1405261.js +0 -1
- recce/data/_next/static/chunks/pages/_app-437c455677d62394.js +0 -1
- recce/data/_next/static/chunks/pages/_error-e7650df18ca04bde.js +0 -1
- recce/data/_next/static/chunks/webpack-7b49d5ba7e3a434d.js +0 -1
- recce/data/_next/static/css/17a96168e3a9db13.css +0 -1
- recce/data/_next/static/css/1b121dc4d36aeb4d.css +0 -3
- recce/data/_next/static/css/35c6679a098e1e34.css +0 -1
- recce/data/_next/static/css/951e2e0eea2d4a5b.css +0 -14
- recce/data/_next/static/media/montserrat-cyrillic-800-normal.22628180.woff2 +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-ext-800-normal.013b84f9.woff2 +0 -0
- recce/data/_next/static/media/montserrat-vietnamese-800-normal.c0035377.woff2 +0 -0
- recce/data/_next/static/media/reload-image.79aabb7d.svg +0 -4
- recce/state.py +0 -786
- recce_nightly-1.10.0.20250625.dist-info/RECORD +0 -154
- recce_nightly-1.10.0.20250625.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 -17
- tests/adapter/dbt_adapter/dbt_test_helper.py +0 -298
- tests/adapter/dbt_adapter/test_dbt_adapter.py +0 -25
- tests/adapter/dbt_adapter/test_dbt_cll.py +0 -384
- tests/adapter/dbt_adapter/test_selector.py +0 -202
- tests/tasks/__init__.py +0 -0
- tests/tasks/conftest.py +0 -4
- tests/tasks/test_histogram.py +0 -129
- tests/tasks/test_lineage.py +0 -55
- tests/tasks/test_preset_checks.py +0 -64
- tests/tasks/test_profile.py +0 -397
- tests/tasks/test_query.py +0 -151
- tests/tasks/test_row_count.py +0 -135
- tests/tasks/test_schema.py +0 -122
- tests/tasks/test_top_k.py +0 -77
- tests/tasks/test_valuediff.py +0 -85
- tests/test_cli.py +0 -133
- tests/test_config.py +0 -43
- tests/test_connect_to_cloud.py +0 -82
- tests/test_core.py +0 -29
- tests/test_dbt.py +0 -36
- tests/test_pull_request.py +0 -130
- tests/test_server.py +0 -104
- tests/test_state.py +0 -134
- tests/test_summary.py +0 -65
- /recce/data/_next/static/chunks/{polyfills-42372ed130431b0a.js → a6dad97d9634a72d.js} +0 -0
- /recce/data/_next/static/media/{montserrat-cyrillic-ext-800-normal.e6e0d8d0.woff → montserrat-cyrillic-ext-800-normal.a4fa76b5.woff} +0 -0
- /recce/data/_next/static/{abCX3x3UoIdRLEDWxx4xd → nX-Uz0AH6Tc6hIQUFGqaB}/_ssgManifest.js +0 -0
- {recce_nightly-1.10.0.20250625.dist-info → recce_nightly-1.30.0.20251221.dist-info}/entry_points.txt +0 -0
- {recce_nightly-1.10.0.20250625.dist-info → recce_nightly-1.30.0.20251221.dist-info}/licenses/LICENSE +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[881],{30111:function(e,t,r){let s,i,n,o,l,a,h,u,c,p,f,d,m,g,y,w,b;r.r(t),r.d(t,{PLUGIN_NAME:function(){return r7},getRecordConsolePlugin:function(){return se}});var v,C,x,O=r(12138).Buffer,I=r(85555),S=Object.defineProperty,k=(e,t,r)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t,r)=>k(e,"symbol"!=typeof t?t+"":t,r),R=Object.defineProperty,E=(e,t,r)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,N=(e,t,r)=>E(e,"symbol"!=typeof t?t+"":t,r),P=Object.defineProperty,M=(e,t,r)=>t in e?P(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t,r)=>M(e,"symbol"!=typeof t?t+"":t,r);let B={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},L={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},j={},T=()=>!!globalThis.Zone,D={};function U(e,t,r){var s;let i=`${e}.${String(r)}`;if(D[i])return D[i].call(t);let n=null==(s=Object.getOwnPropertyDescriptor(function(e){if(j[e])return j[e];let t=globalThis[e],r=t.prototype,s=e in B?B[e]:void 0,i=!!(s&&s.every(e=>{var t,s;return!!(null==(s=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:s.toString().includes("[native code]"))})),n=e in L?L[e]:void 0,o=!!(n&&n.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&o&&!T())return j[e]=t.prototype,t.prototype;try{let s=document.createElement("iframe");document.body.appendChild(s);let i=s.contentWindow;if(!i)return t.prototype;let n=i[e].prototype;if(document.body.removeChild(s),!n)return r;return j[e]=n}catch{return r}}(e),r))?void 0:s.get;return n?(D[i]=n,n.call(t)):t[r]}let z={parentNode:function(e){return U("Node",e,"parentNode")},host:function(e){return e&&"host"in e?U("ShadowRoot",e,"host"):null},shadowRoot:function(e){return e&&"shadowRoot"in e?U("Element",e,"shadowRoot"):null}};class Z{constructor(){F(this,"idNodeMap",new Map),F(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}}var Y={exports:{}},W=String,G=function(){return{isColorSupported:!1,reset:W,bold:W,dim:W,italic:W,underline:W,inverse:W,hidden:W,strikethrough:W,black:W,red:W,green:W,yellow:W,blue:W,magenta:W,cyan:W,white:W,gray:W,bgBlack:W,bgRed:W,bgGreen:W,bgYellow:W,bgBlue:W,bgMagenta:W,bgCyan:W,bgWhite:W}};Y.exports=G(),Y.exports.createColors=G;var V=Y.exports;let J=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"}))),_=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=V.isColorSupported),J&&e&&(s=J(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}=V.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}};_.default=_;var X={};X.isClean=Symbol("isClean"),X.my=Symbol("my");let K={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},H=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 K[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=K[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 $(e,t){new H(t).stringify(e)}H.default=H,$.default=$;let{isClean:Q,my:q}=X,ee=class{constructor(e={}){for(let t in this.raws={},this[Q]=!1,this[q]=!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 _(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[Q]){this[Q]=!1;let e=this;for(;e=e.parent;)e[Q]=!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 H().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=$){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}};ee.default=ee;let et=ee,er=class extends et{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]}};er.default=er;let{SourceMapConsumer:es,SourceMapGenerator:ei}=J,{existsSync:en,readFileSync:eo}=J,{dirname:el,join:ea}=J,eh=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=el(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new es(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),O?O.from(t,"base64").toString():window.atob(t)}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=el(e),en(e))return this.mapFile=e,eo(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;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 es)return ei.fromSourceMap(t).toString();else if(t instanceof ei)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=ea(el(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)}};eh.default=eh;let{SourceMapConsumer:eu,SourceMapGenerator:ec}=J,{fileURLToPath:ep,pathToFileURL:ef}=J,{isAbsolute:ed,resolve:em}=J,{nanoid:eg}={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}},ey=Symbol("fromOffsetCache"),ew=!!(eu&&ec),eb=!!(em&&ed),ev=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&&(!eb||/^\w+:\/\//.test(t.from)||ed(t.from)?this.file=t.from:this.file=em(t.from)),eb&&ew){let e=new eh(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 "+eg(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 _(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 _(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&&(ef&&(i.input.url=ef(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,r;if(this[ey])r=this[ey];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[ey]=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:em(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=ed(l.source)?ef(l.source):new URL(l.source,this.map.consumer().sourceRoot||ef(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(ep)a.file=ep(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}};ev.default=ev,J&&J.registerInput&&J.registerInput(ev);let{SourceMapConsumer:eC,SourceMapGenerator:ex}=J,{dirname:eO,relative:eI,resolve:eS,sep:ek}=J,{pathToFileURL:eA}=J,eR=!!(eC&&ex),eE=!!(eO&&eS&&eI&&ek),eN=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||eO(e.file);!1===this.mapOpts.sourcesContent?(t=new eC(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(),eE&&eR&&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=ex.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ex({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 ex({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?eO(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=eO(eS(r,this.mapOpts.annotation)));let s=eI(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 ev(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 O?O.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(eA){let t=eA(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;"\\"===ek&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},eP=ee,eM=class extends eP{constructor(e){super(e),this.type="comment"}};eM.default=eM;let{isClean:eF,my:eB}=X,eL=ee,ej=class e extends eL{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();if("nodes"===t)return e.nodes.map(e=>e.toProxy());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))}(s(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 er(t)]}else if(t.selector)t=[new i(t)];else if(t.name)t=[new n(t)];else if(t.text)t=[new eM(t)];else throw Error("Unknown node type in node creation");return t.map(t=>(t[eB]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[eF]&&function e(t){if(t[eF]=!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]}};ej.registerParse=e=>{s=e},ej.registerRule=e=>{i=e},ej.registerAtRule=e=>{n=e},ej.registerRoot=e=>{o=e},ej.default=ej,ej.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,n.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,er.prototype):"comment"===e.type?Object.setPrototypeOf(e,eM.prototype):"root"===e.type&&Object.setPrototypeOf(e,o.prototype),e[eB]=!0,e.nodes&&e.nodes.forEach(e=>{ej.rebuild(e)})};let eT=ej,eD=class extends eT{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new l(new a,this,e).stringify()}};eD.registerLazyResult=e=>{l=e},eD.registerProcessor=e=>{a=e},eD.default=eD;let eU=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}};eU.default=eU;let ez=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 eU(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};ez.default=ez;let eZ=/[\t\n\f\r "#'()/;[\\\]{}]/g,eY=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,eW=/.[\r\n"'(/\\]/,eG=/[\da-f]/i,eV=ej,eJ=class extends eV{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)}};eJ.default=eJ,eV.registerAtRule(eJ);let e_=ej,eX=class extends e_{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 h(new u,this,e).stringify()}};eX.registerLazyResult=e=>{h=e},eX.registerProcessor=e=>{u=e},eX.default=eX,e_.registerRoot(eX);let eK={comma:e=>eK.split(e,[","],!0),space:e=>eK.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}};eK.default=eK;let eH=ej,e$=class extends eH{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return eK.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)}};e$.default=e$,eH.registerRule(e$);let eQ=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}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||eW.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}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:eZ.lastIndex=m+1,eZ.test(p),s=0===eZ.lastIndex?p.length-1:eZ.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,eG.test(p.charAt(s)))){for(;eG.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]):(eY.lastIndex=m+1,eY.test(p),s=0===eY.lastIndex?p.length-1:eY.lastIndex-2,c=["word",p.slice(m,s+1),m,s],g.push(c)),m=s}return m++,c},position:function(){return m}}},eq={empty:!0,space:!0},e0=class{constructor(e){this.input=e,this.root=new eX,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 eJ;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}if("{"===t){o=!0;break}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}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;return i}this.doubleColon(n)}r=n}return!1}comment(e){let t=new eM;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=eQ(this.input)}decl(e,t){let r,s,i=new er;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 e$;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){this.decl(l,o);return}break}if("{"===r){this.rule(l);return}if("}"===r){this.tokenizer.back(l.pop()),t=!0;break}":"===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;let 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",eq[l]||eq[o]?u=!1:","===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 e$;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t;let 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 e1(e,t){let r=new e0(new ev(e,t));try{r.parse()}catch(e){throw e}return r.root}e1.default=e1,ej.registerParse(e1);let{isClean:e2,my:e3}=X,e9={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},e4={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},e5={Once:!0,postcssPlugin:!0,prepare:!0};function e8(e){return"object"==typeof e&&"function"==typeof e.then}function e6(e){let t=!1,r=e9[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 e7(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:e6(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function te(e){return e[e2]=!1,e.nodes&&e.nodes.forEach(e=>te(e)),e}let tt={},tr=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=te(r);else if(r instanceof e||r instanceof ez)i=te(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=e1;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[e3]&&ej.rebuild(i)}this.result=new ez(t,i,s),this.helpers={...tt,postcss:tt,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(!e4[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!e5[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(e8(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[e2];){e[e2]=!0;let t=[e7(e)];for(;t.length>0;){let e=this.visitTick(t);if(e8(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(e8(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=$;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new eN(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(e8(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[e2];)e[e2]=!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(e8(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){e.pop();return}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[e2]){s[e2]=!0,e.push(e7(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[e2]=!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[e2]=!0,e6(e)))if(0===t)e.nodes&&e.each(e=>{e[e2]||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"}};tr.registerPostcss=e=>{tt=e},tr.default=tr,eX.registerLazyResult(tr),eD.registerLazyResult(tr);let ts=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 ez(this._processor,s,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let n=new eN($,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=e1(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"}};ts.default=ts;let ti=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 tr(this,e,t):new ts(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};function tn(e,t){if(Array.isArray(e))return e.map(e=>tn(e));let{inputs:r,...s}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:ev.prototype};r.map&&(r.map={...r.map,__proto__:eh.prototype}),t.push(r)}if(s.nodes&&(s.nodes=e.nodes.map(e=>tn(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 eX(s);if("decl"===s.type)return new er(s);if("rule"===s.type)return new e$(s);if("comment"===s.type)return new eM(s);if("atrule"===s.type)return new eJ(s);throw Error("Unknown node type: "+e.type)}function to(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new ti(e)}ti.default=ti,eX.registerProcessor(ti),eD.registerProcessor(ti),tn.default=tn,to.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"),I.env.LANG&&I.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 ti().version,n}return Object.defineProperty(i,"postcss",{get:()=>(r||(r=i()),r)}),i.process=function(e,t,r){return to([i(r)]).process(e,t)},i},to.stringify=$,to.parse=e1,to.fromJSON=tn,to.list=eK,to.comment=e=>new eM(e),to.atRule=e=>new eJ(e),to.decl=e=>new er(e),to.rule=e=>new e$(e),to.root=e=>new eX(e),to.document=e=>new eD(e),to.CssSyntaxError=_,to.Declaration=er,to.Container=ej,to.Processor=ti,to.Document=eD,to.Comment=eM,to.Warning=eU,to.AtRule=eJ,to.Result=ez,to.Input=ev,to.Rule=e$,to.Root=eX,to.Node=ee,tr.registerPostcss(to),to.default=to;let tl=to&&to.__esModule&&Object.prototype.hasOwnProperty.call(to,"default")?to.default:to;tl.stringify,tl.fromJSON,tl.plugin,tl.parse,tl.list,tl.document,tl.comment,tl.atRule,tl.rule,tl.decl,tl.root,tl.CssSyntaxError,tl.Declaration,tl.Container,tl.Processor,tl.Document,tl.Comment,tl.Warning,tl.AtRule,tl.Result,tl.Input,tl.Rule,tl.Root,tl.Node;var ta=Object.defineProperty,th=(e,t,r)=>t in e?ta(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tu=(e,t,r)=>th(e,"symbol"!=typeof t?t+"":t,r),tc={exports:{}},tp=String,tf=function(){return{isColorSupported:!1,reset:tp,bold:tp,dim:tp,italic:tp,underline:tp,inverse:tp,hidden:tp,strikethrough:tp,black:tp,red:tp,green:tp,yellow:tp,blue:tp,magenta:tp,cyan:tp,white:tp,gray:tp,bgBlack:tp,bgRed:tp,bgGreen:tp,bgYellow:tp,bgBlue:tp,bgMagenta:tp,bgCyan:tp,bgWhite:tp}};tc.exports=tf(),tc.exports.createColors=tf;var td=tc.exports;let tm=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"}))),tg=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=td.isColorSupported),tm&&e&&(s=tm(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}=td.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}};tg.default=tg;var ty={};ty.isClean=Symbol("isClean"),ty.my=Symbol("my");let tw={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},tb=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 tw[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=tw[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 tv(e,t){new tb(t).stringify(e)}tb.default=tb,tv.default=tv;let{isClean:tC,my:tx}=ty,tO=class{constructor(e={}){for(let t in this.raws={},this[tC]=!1,this[tx]=!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 tg(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[tC]){this[tC]=!1;let e=this;for(;e=e.parent;)e[tC]=!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 tb().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=tv){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}};tO.default=tO;let tI=tO,tS=class extends tI{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]}};tS.default=tS;let{SourceMapConsumer:tk,SourceMapGenerator:tA}=tm,{existsSync:tR,readFileSync:tE}=tm,{dirname:tN,join:tP}=tm,tM=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=tN(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new tk(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),O?O.from(t,"base64").toString():window.atob(t)}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=tN(e),tR(e))return this.mapFile=e,tE(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;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 tk)return tA.fromSourceMap(t).toString();else if(t instanceof tA)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=tP(tN(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)}};tM.default=tM;let{SourceMapConsumer:tF,SourceMapGenerator:tB}=tm,{fileURLToPath:tL,pathToFileURL:tj}=tm,{isAbsolute:tT,resolve:tD}=tm,{nanoid:tU}={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}},tz=Symbol("fromOffsetCache"),tZ=!!(tF&&tB),tY=!!(tD&&tT),tW=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&&(!tY||/^\w+:\/\//.test(t.from)||tT(t.from)?this.file=t.from:this.file=tD(t.from)),tY&&tZ){let e=new tM(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 "+tU(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 tg(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 tg(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&&(tj&&(i.input.url=tj(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,r;if(this[tz])r=this[tz];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[tz]=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:tD(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=tT(l.source)?tj(l.source):new URL(l.source,this.map.consumer().sourceRoot||tj(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(tL)a.file=tL(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}};tW.default=tW,tm&&tm.registerInput&&tm.registerInput(tW);let{SourceMapConsumer:tG,SourceMapGenerator:tV}=tm,{dirname:tJ,relative:t_,resolve:tX,sep:tK}=tm,{pathToFileURL:tH}=tm,t$=!!(tG&&tV),tQ=!!(tJ&&tX&&t_&&tK),tq=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||tJ(e.file);!1===this.mapOpts.sourcesContent?(t=new tG(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(),tQ&&t$&&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=tV.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new tV({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 tV({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?tJ(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=tJ(tX(r,this.mapOpts.annotation)));let s=t_(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 tW(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 O?O.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(tH){let t=tH(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;"\\"===tK&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},t0=tO,t1=class extends t0{constructor(e){super(e),this.type="comment"}};t1.default=t1;let{isClean:t2,my:t3}=ty,t9=tO,t4=class e extends t9{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();if("nodes"===t)return e.nodes.map(e=>e.toProxy());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))}(c(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 tS(t)]}else if(t.selector)t=[new p(t)];else if(t.name)t=[new f(t)];else if(t.text)t=[new t1(t)];else throw Error("Unknown node type in node creation");return t.map(t=>(t[t3]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[t2]&&function e(t){if(t[t2]=!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]}};t4.registerParse=e=>{c=e},t4.registerRule=e=>{p=e},t4.registerAtRule=e=>{f=e},t4.registerRoot=e=>{d=e},t4.default=t4,t4.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,f.prototype):"rule"===e.type?Object.setPrototypeOf(e,p.prototype):"decl"===e.type?Object.setPrototypeOf(e,tS.prototype):"comment"===e.type?Object.setPrototypeOf(e,t1.prototype):"root"===e.type&&Object.setPrototypeOf(e,d.prototype),e[t3]=!0,e.nodes&&e.nodes.forEach(e=>{t4.rebuild(e)})};let t5=t4,t8=class extends t5{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new m(new g,this,e).stringify()}};t8.registerLazyResult=e=>{m=e},t8.registerProcessor=e=>{g=e},t8.default=t8;let t6=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}};t6.default=t6;let t7=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 t6(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};t7.default=t7;let re=/[\t\n\f\r "#'()/;[\\\]{}]/g,rt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rr=/.[\r\n"'(/\\]/,rs=/[\da-f]/i,ri=t4,rn=class extends ri{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)}};rn.default=rn,ri.registerAtRule(rn);let ro=t4,rl=class extends ro{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 y(new w,this,e).stringify()}};rl.registerLazyResult=e=>{y=e},rl.registerProcessor=e=>{w=e},rl.default=rl,ro.registerRoot(rl);let ra={comma:e=>ra.split(e,[","],!0),space:e=>ra.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}};ra.default=ra;let rh=t4,ru=class extends rh{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return ra.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)}};ru.default=ru,rh.registerRule(ru);let rc=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}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||rr.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}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:re.lastIndex=m+1,re.test(p),s=0===re.lastIndex?p.length-1:re.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,rs.test(p.charAt(s)))){for(;rs.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]):(rt.lastIndex=m+1,rt.test(p),s=0===rt.lastIndex?p.length-1:rt.lastIndex-2,c=["word",p.slice(m,s+1),m,s],g.push(c)),m=s}return m++,c},position:function(){return m}}},rp={empty:!0,space:!0},rf=class{constructor(e){this.input=e,this.root=new rl,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 rn;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}if("{"===t){o=!0;break}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}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;return i}this.doubleColon(n)}r=n}return!1}comment(e){let t=new t1;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=rc(this.input)}decl(e,t){let r,s,i=new tS;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 ru;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){this.decl(l,o);return}break}if("{"===r){this.rule(l);return}if("}"===r){this.tokenizer.back(l.pop()),t=!0;break}":"===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;let 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",rp[l]||rp[o]?u=!1:","===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 ru;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t;let 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 rd(e,t){let r=new rf(new tW(e,t));try{r.parse()}catch(e){throw e}return r.root}rd.default=rd,t4.registerParse(rd);let{isClean:rm,my:rg}=ty,ry={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rw={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},rb={Once:!0,postcssPlugin:!0,prepare:!0};function rv(e){return"object"==typeof e&&"function"==typeof e.then}function rC(e){let t=!1,r=ry[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 rx(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:rC(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function rO(e){return e[rm]=!1,e.nodes&&e.nodes.forEach(e=>rO(e)),e}let rI={},rS=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=rO(r);else if(r instanceof e||r instanceof t7)i=rO(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=rd;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[rg]&&t4.rebuild(i)}this.result=new t7(t,i,s),this.helpers={...rI,postcss:rI,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(!rw[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!rb[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(rv(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[rm];){e[rm]=!0;let t=[rx(e)];for(;t.length>0;){let e=this.visitTick(t);if(rv(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(rv(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=tv;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new tq(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(rv(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[rm];)e[rm]=!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(rv(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){e.pop();return}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[rm]){s[rm]=!0,e.push(rx(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[rm]=!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[rm]=!0,rC(e)))if(0===t)e.nodes&&e.each(e=>{e[rm]||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"}};rS.registerPostcss=e=>{rI=e},rS.default=rS,rl.registerLazyResult(rS),t8.registerLazyResult(rS);let rk=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 t7(this._processor,s,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let n=new tq(tv,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=rd(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"}};rk.default=rk;let rA=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 rS(this,e,t):new rk(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};function rR(e,t){if(Array.isArray(e))return e.map(e=>rR(e));let{inputs:r,...s}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:tW.prototype};r.map&&(r.map={...r.map,__proto__:tM.prototype}),t.push(r)}if(s.nodes&&(s.nodes=e.nodes.map(e=>rR(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 rl(s);if("decl"===s.type)return new tS(s);if("rule"===s.type)return new ru(s);if("comment"===s.type)return new t1(s);if("atrule"===s.type)return new rn(s);throw Error("Unknown node type: "+e.type)}function rE(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new rA(e)}rA.default=rA,rl.registerProcessor(rA),t8.registerProcessor(rA),rR.default=rR,rE.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"),I.env.LANG&&I.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 rA().version,n}return Object.defineProperty(i,"postcss",{get:()=>(r||(r=i()),r)}),i.process=function(e,t,r){return rE([i(r)]).process(e,t)},i},rE.stringify=tv,rE.parse=rd,rE.fromJSON=rR,rE.list=ra,rE.comment=e=>new t1(e),rE.atRule=e=>new rn(e),rE.decl=e=>new tS(e),rE.rule=e=>new ru(e),rE.root=e=>new rl(e),rE.document=e=>new t8(e),rE.CssSyntaxError=tg,rE.Declaration=tS,rE.Container=t4,rE.Processor=rA,rE.Document=t8,rE.Comment=t1,rE.Warning=t6,rE.AtRule=rn,rE.Result=t7,rE.Input=tW,rE.Rule=ru,rE.Root=rl,rE.Node=tO,rS.registerPostcss(rE),rE.default=rE;let rN=rE&&rE.__esModule&&Object.prototype.hasOwnProperty.call(rE,"default")?rE.default:rE;rN.stringify,rN.fromJSON,rN.plugin,rN.parse,rN.list,rN.document,rN.comment,rN.atRule,rN.rule,rN.decl,rN.root,rN.CssSyntaxError,rN.Declaration,rN.Container,rN.Processor,rN.Document,rN.Comment,rN.Warning,rN.AtRule,rN.Result,rN.Input,rN.Rule,rN.Root,rN.Node;class rP{constructor(...e){tu(this,"parentElement",null),tu(this,"parentNode",null),tu(this,"ownerDocument"),tu(this,"firstChild",null),tu(this,"lastChild",null),tu(this,"previousSibling",null),tu(this,"nextSibling",null),tu(this,"ELEMENT_NODE",1),tu(this,"TEXT_NODE",3),tu(this,"nodeType"),tu(this,"nodeName"),tu(this,"RRNodeType")}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof rP)||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 rM={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},rF={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},rB={},rL=()=>!!globalThis.Zone;function rj(e){if(rB[e])return rB[e];let t=globalThis[e],r=t.prototype,s=e in rM?rM[e]:void 0,i=!!(s&&s.every(e=>{var t,s;return!!(null==(s=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:s.toString().includes("[native code]"))})),n=e in rF?rF[e]:void 0,o=!!(n&&n.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&o&&!rL())return rB[e]=t.prototype,t.prototype;try{let s=document.createElement("iframe");document.body.appendChild(s);let i=s.contentWindow;if(!i)return t.prototype;let n=i[e].prototype;if(document.body.removeChild(s),!n)return r;return rB[e]=n}catch{return r}}let rT={};function rD(e,t,r){var s;let i=`${e}.${String(r)}`;if(rT[i])return rT[i].call(t);let n=null==(s=Object.getOwnPropertyDescriptor(rj(e),r))?void 0:s.get;return n?(rT[i]=n,n.call(t)):t[r]}let rU={};function rz(e,t,r){let s=`${e}.${String(r)}`;if(rU[s])return rU[s].bind(t);let i=rj(e)[r];return"function"!=typeof i?t[r]:(rU[s]=i,i.bind(t))}let rZ={parentNode:function(e){return rD("Node",e,"parentNode")},parentElement:function(e){return rD("Node",e,"parentElement")},contains:function(e,t){return rz("Node",e,"contains")(t)},getRootNode:function(e){return rz("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?rD("ShadowRoot",e,"host"):null},shadowRoot:function(e){return e&&"shadowRoot"in e?rD("Element",e,"shadowRoot"):null}},rY="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.",rW={map:{},getId:()=>(console.error(rY),-1),getNode:()=>(console.error(rY),null),removeNodeFromMap(){console.error(rY)},has:()=>(console.error(rY),!1),reset(){console.error(rY)}};"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(rW=new Proxy(rW,{get:(e,t,r)=>("map"===t&&console.error(rY),Reflect.get(e,t,r))}));let rG=Date.now;function rV(e){return e?e.nodeType===e.ELEMENT_NODE?e:rZ.parentElement(e):null}/[1-9][0-9]{12}/.test(Date.now().toString())||(rG=()=>new Date().getTime());class rJ{constructor(){N(this,"id",1),N(this,"styleIDMap",new WeakMap),N(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++}}function r_(e){var t;let r=null;return"getRootNode"in e&&(null==(t=rZ.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&rZ.host(rZ.getRootNode(e))&&(r=rZ.host(rZ.getRootNode(e))),r}function rX(e){let t,r=e;for(;t=r_(r);)r=t;return r}function rK(e){let t=e.ownerDocument;if(!t)return!1;let r=rX(e);return rZ.contains(t,r)}let rH=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:rJ,get _mirror(){return rW},closestElementOfNode:rV,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:rX,getShadowHost:r_,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=rZ.parentElement(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=rZ.parentElement(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){return!!e&&(e instanceof rP&&"shadowRoot"in e?!!e.shadowRoot:!!rZ.shadowRoot(e))},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&&(rZ.contains(t,e)||rK(e))},isAncestorRemoved:function e(t,r){if(function(e){let t=e&&"host"in e&&"mode"in e&&z.host(e)||null;return!!(t&&"shadowRoot"in t&&z.shadowRoot(t)===e)}(t))return!1;let s=r.getId(t);if(!r.has(s))return!0;let i=rZ.parentNode(t);return(!i||i.nodeType!==t.DOCUMENT_NODE)&&(!i||e(i,r))},isBlocked:function(e,t,r,s){if(!e)return!1;let i=rV(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(z.parentNode(t),r,s);for(let e=t.classList.length;e--;){let s=t.classList[e];if(r.test(s))return!0}return!!s&&e(z.parentNode(t),r,s)}(i,t,s))return!0}catch(e){}return!!(r&&(i.matches(r)||s&&null!==i.closest(r)))},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 rG},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:rK,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 r$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rQ="undefined"==typeof Uint8Array?[]:new Uint8Array(256),rq=0;rq<r$.length;rq++)rQ[r$.charCodeAt(rq)]=rq;"undefined"!=typeof window&&window.Blob&&new Blob([(b="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Uint8Array.from(atob(b),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==(C=e.contentWindow)?void 0:C.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new Z,(v=x||(x={}))[v.NotStarted=0]="NotStarted",v[v.Running=1]="Running",v[v.Stopped=2]="Stopped";class r0{constructor(e){A(this,"fileName"),A(this,"functionName"),A(this,"lineNumber"),A(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 r1=/(^|@)\S+:\d+/,r2=/^\s*at .*(\S+:\d+|\(native\))/m,r3=/^(eval@)?(\[native code])?$/,r9={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(r2)?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(r2)},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 r0({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(r3)},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 r0({functionName:e});{let t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),s=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new r0({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 r0({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 r0({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(r1)&&!e.match(/^Error created at/)},this).map(function(e){let t=e.split("@"),r=this.extractLocation(t.pop());return new r0({functionName:(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function r4(e){return"[object Object]"===Object.prototype.toString.call(e)}function r5(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(r4(n=t)&&Object.keys(n).length>r.numOfKeysLimit||"function"==typeof n||r4(n)&&function e(t,r){if(0===r)return!0;for(let s of Object.keys(t))if(r4(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 r8={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 r6(e,t,r){let s;let i=r?Object.assign({},r8,r):r8,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:r9.parse(s).map(e=>e.toString()),payload:[r5(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=[r5(`Uncaught (in promise) ${r.name}: ${r.message}`,i.stringifyOptions)]):(r=Error(),s=[r5("Uncaught (in promise)",i.stringifyOptions),r5(t.reason,i.stringifyOptions)]),e({level:"error",trace:r9.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]?rH.patch(t,r,t=>(...s)=>{if(t.apply(this,s),("assert"!==r||!s[0])&&!l){l=!0;try{let t=r9.parse(Error()).map(e=>e.toString()).splice(1),n=("assert"===r?s.slice(1):s).map(e=>r5(e,i.stringifyOptions));++o<i.lengthThreshold?e({level:r,trace:t,payload:n}):o===i.lengthThreshold&&e({level:"warn",trace:[],payload:[r5("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 r7="rrweb/console@1",se=e=>({name:r7,observer:r6,options:e})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92],{85658:function(e,n,t){"use strict";t.d(n,{W:function(){return u},o:function(){return s}});var l=t(26415);t(50758);var r=t(21645),i=t(34272),o=t(31680),a=t(79558);let s=(0,i.G)((e,n)=>{let{...t}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(r.ZP,{ref:n,className:t.className?t.className+"no-track-pii-safe":"no-track-pii-safe",rowClass:()=>"no-track-pii-safe",...t})})});function u(e){let{emptyMessage:n}=e;return(0,l.jsx)(o.k,{h:"35px",alignItems:"center",justifyContent:"center",bg:"gray.100",style:{textAlign:"center",gridColumn:"1/-1"},children:(0,l.jsxs)(a.x,{fontWeight:"600",children:[" ",null!=n?n:"No rows"]})})}},31294:function(e,n,t){"use strict";t.d(n,{d:function(){return m},r:function(){return h}});var l=t(26415),r=t(85534),i=t(91155),o=t(94389),a=t(56365),s=t(78933);function u(e){let n=e.trim().toUpperCase();return!!["CHAR","VARCHAR","TINYTEXT","TEXT","MEDIUMTEXT","LONGTEXT","NCHAR","NVARCHAR","VARCHAR2","NVARCHAR2","CLOB","NCLOB","VARCHAR(MAX)","XML","JSON"].includes(n)||/^(VARCHAR|NVARCHAR|VARCHAR2|NVARCHAR2|CHAR|NCHAR)\(\d+\)$/.test(n)}function c(e){return["BOOLEAN","TINYINT(1)","BIT","NUMBER(1)","BOOL"].includes(e.toUpperCase())}function d(e){return["DATE","DATETIME","TIMESTAMP","TIME","YEAR","DATETIME2","SMALLDATETIME","DATETIMEOFFSET","INTERVAL","TIMESTAMPTZ","TIMETZ","TIMESTAMP WITH TIME ZONE","TIMESTAMP WITH LOCAL TIME ZONE","TIMESTAMP_LTZ","TIMESTAMP_NTZ","TIMESTAMP_TZ"].includes(e.toUpperCase())}function m(e){return!u(e)&&!c(e)&&!d(e)}function h(e){let{params:n,onParamsChanged:t,setIsReadyToExecute:m}=e,{columns:h,isLoading:f,error:v}=(0,s.ZP)(n.model),p=h.filter(e=>!u(e.type)&&!c(e.type)&&!d(e.type));return f?(0,l.jsx)(r.x,{children:"Loading..."}):0===h.length||v?(0,l.jsx)(r.x,{children:"Error: Please provide the 'catalog.json' to list column candidates"}):(0,l.jsx)(r.x,{m:"16px",children:(0,l.jsxs)(i.NI,{children:[(0,l.jsx)(o.l,{children:"Pick a column to show Histogram Diff"}),(0,l.jsx)(a.P,{placeholder:0!==p.length?"Select column":"No numeric column is available",isDisabled:0===p.length,value:n.column_name,onChange:e=>{var l,r;let i=e.target.value;m(!!i);let o=null!==(r=null===(l=p.find(e=>e.name===i))||void 0===l?void 0:l.type)&&void 0!==r?r:"";t({...n,column_name:i,column_type:o})},children:p.map(e=>(0,l.jsxs)("option",{value:e.name,children:[e.name," : ",e.type]},e.name))})]})})}},64315:function(e,n,t){"use strict";t.d(n,{JK:function(){return r},Vs:function(){return o},aU:function(){return u},b8:function(){return i},kx:function(){return a},yl:function(){return s}});var l=t(26415);let r=e=>(0,l.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,l.jsx)("g",{clipPath:"url(#clip0_1479_25070)",children:(0,l.jsx)("path",{d:"M15.625 0.25H14.759C14.5484 0.25 14.3791 0.423375 14.3841 0.633937L14.4575 3.71441C13.0691 1.62634 10.6955 0.25 8 0.25C4.21291 0.25 1.06041 2.96638 0.38425 6.557C0.340875 6.78728 0.518875 7 0.753219 7H1.64622C1.82353 7 1.97566 6.87556 2.013 6.70222C2.60753 3.9415 5.05991 1.875 8 1.875C10.4858 1.875 12.6232 3.35256 13.5836 5.47819L9.63394 5.38416C9.42341 5.37916 9.25 5.54844 9.25 5.75906V6.625C9.25 6.83209 9.41791 7 9.625 7H15.625C15.8321 7 16 6.83209 16 6.625V0.625C16 0.417906 15.8321 0.25 15.625 0.25ZM15.2468 9H14.3538C14.1765 9 14.0243 9.12444 13.987 9.29778C13.3925 12.0585 10.9401 14.125 8 14.125C5.51419 14.125 3.37681 12.6474 2.41637 10.5218L6.36606 10.6158C6.57659 10.6208 6.75 10.4516 6.75 10.2409V9.375C6.75 9.16791 6.58209 9 6.375 9H0.375C0.167906 9 0 9.16791 0 9.375V15.375C0 15.5821 0.167906 15.75 0.375 15.75H1.24097C1.45156 15.75 1.62088 15.5766 1.61588 15.3661L1.54253 12.2856C2.93087 14.3737 5.3045 15.75 8 15.75C11.7871 15.75 14.9396 13.0336 15.6158 9.443C15.6591 9.21272 15.4811 9 15.2468 9Z",fill:"currentColor"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_1479_25070",children:(0,l.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]}),i=e=>(0,l.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,l.jsx)("g",{clipPath:"url(#clip0_1479_25102)",children:(0,l.jsx)("path",{d:"M-1.88399 8.72062L0.358816 6.46094C0.594752 6.22344 1.00006 6.39031 1.00006 6.725V8.2525H4.00005V4.12438C4.00005 3.7275 4.16161 3.34313 4.44286 3.06219L7.06441 0.440625C7.34566 0.159375 7.72691 0 8.12347 0H14.5003C15.3281 0.003125 16 0.675 16 1.50281V14.5003C16 15.3281 15.3281 16 14.5003 16H5.50223C4.67411 16 4.00005 15.3281 4.00005 14.5003V11.2522H5.50005V14.5003H14.5003V1.50281H9.50128V4.75219C9.50128 5.16781 9.1669 5.50187 8.75128 5.50187H5.50005V8.25219H10.625C10.8322 8.25219 11 8.42 11 8.62719V9.37719C11 9.58438 10.8322 9.75219 10.625 9.75219H1.00006V11.2797C1.00006 11.6144 0.594752 11.7813 0.358816 11.5438L-1.88399 9.28406C-2.03867 9.12813 -2.03867 8.87656 -1.88399 8.72062ZM8.0016 4.00219V1.62469L5.62379 4.00219H8.0016Z",fill:"currentColor"})}),(0,l.jsx)("g",{clipPath:"url(#clip1_1479_25102)",children:(0,l.jsx)("path",{d:"M0.103056 8.72062L2.09667 6.46094C2.30639 6.22344 2.66667 6.39031 2.66667 6.725V8.2525H5.33333V4.12438C5.33333 3.7275 5.47694 3.34313 5.72694 3.06219L8.05722 0.440625C8.30722 0.159375 8.64611 0 8.99861 0H14.6669C15.4028 0.003125 16 0.675 16 1.50281V14.5003C16 15.3281 15.4028 16 14.6669 16H6.66861C5.9325 16 5.33333 15.3281 5.33333 14.5003V11.2522H6.66667V14.5003H14.6669V1.50281H10.2233V4.75219C10.2233 5.16781 9.92611 5.50187 9.55667 5.50187H6.66667V8.25219H11.2222C11.4064 8.25219 11.5556 8.42 11.5556 8.62719V9.37719C11.5556 9.58438 11.4064 9.75219 11.2222 9.75219H2.66667V11.2797C2.66667 11.6144 2.30639 11.7813 2.09667 11.5438L0.103056 9.28406C-0.0344448 9.12813 -0.0344448 8.87656 0.103056 8.72062ZM8.89028 4.00219V1.62469L6.77666 4.00219H8.89028Z",fill:"currentColor"})}),(0,l.jsxs)("defs",{children:[(0,l.jsx)("clipPath",{id:"clip0_1479_25102",children:(0,l.jsx)("rect",{width:"13",height:"16",fill:"white",transform:"matrix(-1 0 0 1 16 0)"})}),(0,l.jsx)("clipPath",{id:"clip1_1479_25102",children:(0,l.jsx)("rect",{width:"3",height:"16",fill:"white"})})]})]}),o=e=>(0,l.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,l.jsx)("g",{clipPath:"url(#clip0_1426_8619)",children:(0,l.jsx)("path",{d:"M15.5572 3.06188L12.9356 0.440625C12.6544 0.159375 12.2731 0 11.8766 0H5.49969C4.67188 0.003125 4 0.675 4 1.50281V8.25219H0.375C0.167812 8.25219 0 8.42 0 8.62719V9.37719C0 9.58438 0.167812 9.75219 0.375 9.75219H9V11.2797C9 11.6144 9.40531 11.7812 9.64125 11.5437L11.8841 9.28406C12.0388 9.12813 12.0388 8.87656 11.8841 8.72062L9.64125 6.46094C9.40531 6.22344 9 6.39031 9 6.725V8.2525H5.49969V1.50281H10.4987V4.75219C10.4987 5.16781 10.8331 5.50187 11.2487 5.50187H14.5V14.5003H5.49969V11.2522H4V14.5003C4 15.3281 4.67188 16 5.49969 16H14.4978C15.3259 16 16 15.3281 16 14.5003V4.12406C16 3.7275 15.8384 3.34313 15.5572 3.06188ZM11.9984 4.00219V1.62469L14.3763 4.00219H11.9984Z",fill:"black"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_1426_8619",children:(0,l.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]}),a=e=>(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,l.jsx)("path",{d:"M14.5607 4.06066L11.9393 1.43934C11.658 1.15804 11.2765 1 10.8787 1H2.5C1.67156 1 1 1.67156 1 2.5V13.5C1 14.3284 1.67156 15 2.5 15H13.5C14.3284 15 15 14.3284 15 13.5V5.12131C15 4.72349 14.842 4.34196 14.5607 4.06066ZM9.5 2.5V5H5.5V2.5H9.5ZM13.3125 13.5H2.6875C2.63777 13.5 2.59008 13.4802 2.55492 13.4451C2.51975 13.4099 2.5 13.3622 2.5 13.3125V2.6875C2.5 2.63777 2.51975 2.59008 2.55492 2.55492C2.59008 2.51975 2.63777 2.5 2.6875 2.5H4V5.75C4 6.16422 4.33578 6.5 4.75 6.5H10.25C10.6642 6.5 11 6.16422 11 5.75V2.62131L13.4451 5.06641C13.4625 5.08382 13.4763 5.10449 13.4857 5.12724C13.4952 5.14999 13.5 5.17438 13.5 5.199V13.3125C13.5 13.3622 13.4802 13.4099 13.4451 13.4451C13.4099 13.4802 13.3622 13.5 13.3125 13.5ZM8 7.25C6.48366 7.25 5.25 8.48366 5.25 10C5.25 11.5163 6.48366 12.75 8 12.75C9.51634 12.75 10.75 11.5163 10.75 10C10.75 8.48366 9.51634 7.25 8 7.25ZM8 11.25C7.31075 11.25 6.75 10.6892 6.75 10C6.75 9.31075 7.31075 8.75 8 8.75C8.68925 8.75 9.25 9.31075 9.25 10C9.25 10.6892 8.68925 11.25 8 11.25Z",fill:"currentColor"})}),s=e=>(0,l.jsx)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,l.jsx)("path",{d:"M15.9143 1.75812L14.7422 0.585938C14.3515 0.195312 13.8397 0 13.3278 0C12.8159 0 12.304 0.195312 11.9137 0.585625L9.58593 2.91344L8.5 3.99938L0.901592 11.5975L0.504719 15.1669C0.454719 15.6163 0.80878 16 1.24847 16C1.27628 16 1.3044 15.9984 1.33253 15.9953L4.89939 15.6012L12.5006 8L13.5862 6.91437L15.914 4.58656C16.6953 3.80531 16.6953 2.53906 15.9143 1.75812ZM4.21095 14.1684L2.09909 14.4016L2.3344 12.2863L9.56062 5.06L10.53 4.09062L12.4094 5.97L11.44 6.93937L4.21095 14.1684ZM14.8534 3.52562L13.4697 4.90938L11.5906 3.03L12.9744 1.64625C13.1019 1.51875 13.2506 1.49969 13.3278 1.49969C13.405 1.49969 13.554 1.51875 13.6812 1.64625L14.8534 2.81844C15.0484 3.01375 15.0484 3.33094 14.8534 3.52562Z",fill:"currentColor"})}),u=e=>(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,l.jsx)("path",{d:"M7.26326 6.5462H8.71794V12.3642H7.26326V6.5462ZM7.9906 3.1102C7.43278 3.1102 6.97888 3.5641 6.97888 4.12192C6.97888 4.67974 7.43278 5.13364 7.9906 5.13364C8.54842 5.13364 9.00232 4.67974 9.00232 4.12192C9.00232 3.5641 8.54842 3.1102 7.9906 3.1102ZM16 8C16 12.411 12.411 16 8 16C3.589 16 0 12.411 0 8C0 3.589 3.589 0 8 0C12.411 0 16 3.589 16 8ZM14.5453 8C14.5453 4.3906 11.6093 1.4546 7.99992 1.4546C4.39052 1.4546 1.45452 4.3914 1.45452 8.0006C1.45452 11.6098 4.39052 14.546 7.99992 14.546C11.6093 14.546 14.5453 11.6092 14.5453 8.0006V8Z",fill:"currentColor"})})},54651:function(e,n,t){"use strict";function l(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,l=new Set,r={},i=(e,t)=>{if(!(t<0)&&(null==r[e]||!(r[e]>=t))){for(let l of(r[e]=t,n(e)))i(l,t-1);l.add(e)}};for(let n of e)i(n,t);return l}function r(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];let l=new Set;return n.forEach(e=>{e.forEach(e=>{l.add(e)})}),l}t.d(n,{E$:function(){return l},G0:function(){return r}})},61655:function(e,n,t){"use strict";t.d(n,{O$:function(){return a},WU:function(){return s},_e:function(){return c},bK:function(){return m},cr:function(){return u},mF:function(){return d}});var l=t(32889),r=t(54651),i=t(55234),o=t.n(i);let a=20;function s(e,n,t){var l,i,o,a,s,u,c,d,m;let h={},f={},v=(e,n)=>({id:e,name:e,data:{},from:n,parents:{},children:{}});for(let[n,t]of Object.entries(e.nodes))h[n]=v(n,"base"),t&&(h[n].data.base=t,h[n].name=t.name,h[n].resourceType=t.resource_type,h[n].packageName=t.package_name);for(let[e,t]of Object.entries(n.nodes))h[e]?h[e].from="both":h[e]=v(e,"current"),t&&(h[e].data.current=n.nodes[e],h[e].name=t.name,h[e].resourceType=t.resource_type,h[e].packageName=t.package_name);for(let[n,t]of Object.entries(e.parent_map))for(let e of t){let t=h[n],l=h[e],r="".concat(e,"_").concat(n);if(!t||!l)continue;f[r]={id:r,from:"base",parent:l,child:t};let i=f[r];t.parents[e]=i,l.children[n]=i}for(let[e,t]of Object.entries(n.parent_map))for(let n of t){let t=h[e],l=h[n],r="".concat(n,"_").concat(e);if(!t||!l)continue;f[r]?f[r].from="both":f[r]={id:r,from:"current",parent:l,child:t};let i=f[r];t.parents[n]=i,l.children[e]=i}let p=[],x=[],g=[];for(let[e,n]of Object.entries(h))if(t){let r=t[e];r&&(n.changeStatus=r.change_status,r.change&&(n.change={category:r.change.category,columns:r.change.columns}),p.push(e),(null==r?void 0:null===(l=r.change)||void 0===l?void 0:l.category)==="non_breaking"?x.push(e):g.push(e))}else if("base"===n.from)n.changeStatus="removed",p.push(n.id);else if("current"===n.from)n.changeStatus="added",p.push(n.id);else{let t=null===(o=n.data.base)||void 0===o?void 0:null===(i=o.checksum)||void 0===i?void 0:i.checksum,l=null===(s=n.data.current)||void 0===s?void 0:null===(a=s.checksum)||void 0===a?void 0:a.checksum;t&&l&&t!==l&&(n.changeStatus="modified",p.push(n.id),g.push(e))}for(let[e,n]of Object.entries(f))"base"===n.from?n.changeStatus="removed":"current"===n.from&&(n.changeStatus="added");let y=(0,r.G0)(new Set(p),(0,r.E$)(g,e=>void 0===h[e]?[]:Object.keys(h[e].children)));return{nodes:h,edges:f,modifiedSet:p,nonBreakingSet:new Set(x),impactedSet:y,manifestMetadata:{base:null!==(u=e.manifest_metadata)&&void 0!==u?u:void 0,current:null!==(c=n.manifest_metadata)&&void 0!==c?c:void 0},catalogMetadata:{base:null!==(d=e.catalog_metadata)&&void 0!==d?d:void 0,current:null!==(m=n.catalog_metadata)&&void 0!==m?m:void 0}}}function u(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return(0,r.E$)(n,n=>void 0===e.nodes[n]?[]:Object.keys(e.nodes[n].parents),t)}function c(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return(0,r.E$)(n,n=>void 0===e.nodes[n]?[]:Object.keys(e.nodes[n].children),t)}function d(e,n){let t=[],r=[],{selectedNodes:i,columnLevelLineage:o,cll:s,breakingChangeEnabled:u}=null!=n?n:{},c={};function d(e){return"base"===e?0:"current"===e?2:1}function h(e,n){let t=d(e.from),l=d(n.from);return t<l?-1:t>l?1:0}let f=void 0!==i?new Set(i):void 0;for(let n of Object.values(e.nodes).sort(h)){var v,p,x,g,y,j,C,b,_,w,k,S,M,R,E,O,L;if(f&&!f.has(n.id))continue;let e=new Set,i=0;if(o){for(let e of null!==(x=null==s?void 0:null===(v=s.current)||void 0===v?void 0:v.parent_map[n.id])&&void 0!==x?x:new Set){let t=n.id;r.push({id:"m2c_".concat(e,"_").concat(t),source:e,target:t,style:{zIndex:9999}})}for(let o of Object.keys(null!==(g=null===(p=n.data.current)||void 0===p?void 0:p.columns)&&void 0!==g?g:{})){let u="".concat(n.id,"_").concat(o),c=null==s?void 0:null===(y=s.current)||void 0===y?void 0:y.columns[u],d=null!==(_=null==s?void 0:null===(j=s.current)||void 0===j?void 0:j.parent_map[u])&&void 0!==_?_:new Set,m=null===(b=n.change)||void 0===b?void 0:null===(C=b.columns)||void 0===C?void 0:C[o];if(null!=c){for(let e of(t.push({id:u,position:{x:10,y:70+i*a},parentId:n.id,extent:"parent",draggable:!1,className:"no-track-pii-safe",data:{node:n,column:c.name,type:c.type,transformationType:c.transformation_type,changeStatus:m},style:{zIndex:9999},type:"customColumnNode",targetPosition:l.Ly.Left,sourcePosition:l.Ly.Right}),d))r.push({id:"".concat(e,"_").concat(u),source:e,target:u,style:{zIndex:9999}});i++,e.add(c.name)}}}else if(u&&n.change)for(let[r,o]of Object.entries(null!==(w=n.change.columns)&&void 0!==w?w:{})){let s="".concat(n.id,"_").concat(r),u=null!==(L=null===(M=n.data.current)||void 0===M?void 0:null===(S=M.columns)||void 0===S?void 0:null===(k=S[r])||void 0===k?void 0:k.type)&&void 0!==L?L:null===(O=n.data.base)||void 0===O?void 0:null===(E=O.columns)||void 0===E?void 0:null===(R=E[r])||void 0===R?void 0:R.type;t.push({id:s,position:{x:10,y:70+i*a},parentId:n.id,extent:"parent",draggable:!1,className:"no-track-pii-safe",data:{node:n,column:r,type:u,changeStatus:o},style:{zIndex:9999},type:"customColumnNode",targetPosition:l.Ly.Left,sourcePosition:l.Ly.Right}),i++,e.add(r)}c[n.id]=e;let d=60;i>0&&(d+=20+i*a),t.push({id:n.id,position:{x:0,y:0},width:300,height:d,className:"no-track-pii-safe",data:{...n},type:"customNode",targetPosition:l.Ly.Left,sourcePosition:l.Ly.Right})}for(let n of Object.values(e.edges).sort(h))(!f||f.has(n.parent.id)&&f.has(n.child.id))&&r.push({id:n.id,type:"customEdge",source:n.parent.id,target:n.child.id,data:n});return m(t,r),[t,r,c]}let m=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"LR",l=new(o()).graphlib.Graph;l.setDefaultEdgeLabel(()=>({})),l.setGraph({rankdir:t,ranksep:50,nodesep:30}),e.forEach(e=>{"customNode"===e.type&&l.setNode(e.id,{width:e.width,height:e.height})}),n.forEach(e=>{l.setEdge(e.source,e.target)}),o().layout(l),e.forEach(e=>{var n,t;if("customNode"!==e.type)return;let r=null!==(n=e.width)&&void 0!==n?n:300,i=null!==(t=e.height)&&void 0!==t?t:60,o=l.node(e.id);return e.position={x:o.x-r/2,y:o.y-i/2},e})}},55120:function(e,n,t){"use strict";function l(e,n){if(e<n){let t=(n-e)/e*100;return"+".concat(t>=.1?t.toFixed(1):" <0.1 ","%")}if(!(e>n))return"0 %";{let t=(e-n)/e*100;return"-".concat(t>=.1?t.toFixed(1):" <0.1 ","%")}}t.d(n,{T:function(){return l}})},72752:function(e,n,t){"use strict";t.d(n,{N:function(){return eG}});var l=t(27462),r=t(31294),i=t(26415),o=t(31680),a=t(28733),s=t(17146),u=t(85534),c=t(34272),d=t(12602),m=t(84935);function h(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",t=arguments.length>2?arguments[2]:void 0;return"number"!=typeof e?e:new Intl.NumberFormat(n,t).format(e)}function f(e){let n=e>0&&e<=.001,t=e<1&&e>=.999,l=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;return h(n,"en-US",{style:"percent",minimumFractionDigits:1})};if(n){let e=l(.001);return"<".concat(e)}if(t){let e=l(.999);return">".concat(e)}return l()}function v(e){if("number"!=typeof e)return e;{let n=Math.abs(e),t=n>=.01,l=n>=1e6,r=n>=1e9,i=n>=1e15;if(i||n>=1e12)return new Intl.NumberFormat("en-US",{style:"unit",unit:"liter",unitDisplay:"narrow",maximumFractionDigits:i?0:2}).format(e/1e12).replace("L","T");if(r||l||n>=1e3){let n={base:r?1e9:l?1e6:1e3,unit:r?"B":l?"M":"K"};return new Intl.NumberFormat("en-US",{style:"unit",unit:"liter",unitDisplay:"narrow",maximumFractionDigits:1}).format(e/n.base).replace("L",n.unit)}return n>=1?new Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format(e):new Intl.NumberFormat("en-US",{maximumFractionDigits:t?3:2,notation:t||0===n?"standard":"scientific"}).format(e)}}let p="#63B3ED",x="#F6AD55",g="".concat(p,"A5"),y="".concat(x,"A5");function j(e){let{color:n}=e;return(0,i.jsx)(u.x,{display:"inline-block",w:"10px",h:"10px",bgColor:n,mr:"2",borderRadius:"sm"})}function C(e){let{data:n,hideAxis:t=!1,animation:l=!1}=e;d.kL.register(d.ZL,d.RM,d.f$,d.uw,d.Dx,d.De,d.u);let r=function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{...t}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{title:l,datasets:r,type:i,samples:o=0,binEdges:a}=e,[s,u]=r,c="datetime"===i;return{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{reverse:!0},title:{display:!0,text:l,font:{size:20}},tooltip:{mode:"index",intersect:!1,callbacks:{title(e){let[{dataIndex:n,datasetIndex:t}]=e,l=_(a,n);return"".concat(c?"Date Range":"string"===i?"Text Length":"Value Range","\n").concat(l)},label(e){let{datasetIndex:n,dataIndex:t,dataset:{label:l}}=e,r=0===n?u.counts:s.counts,i=f(r[t]/o),a=r[t];return"".concat(l,": ").concat(a," (").concat(i,")")}}}},scales:function(e){let{datasets:n,min:t=0,max:l=0,type:r,binEdges:i}=e,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],[a,s]=n,u=Math.max(...s.counts,...a.counts),c=i.map((e,n)=>_(i,n)).slice(0,-1);return{x:"datetime"===r?{display:!o,type:"timeseries",min:t,max:l,adapters:{date:{}},time:{minUnit:"day"},grid:{display:!1},ticks:{minRotation:30,maxRotation:30,maxTicksLimit:8}}:{display:!o,type:"category",grid:{display:!1},ticks:{callback:(e,n)=>c[n]},stacked:!0},y:{display:!o,type:"linear",max:u,border:{dash:[2,2]},grid:{color:"lightgray"},ticks:{maxTicksLimit:8,callback:function(e,n){return v(e)}},beginAtZero:!0}}}(e,n),...t}}(n,t,{animation:l}),o=function(e){let{datasets:n,type:t,binEdges:l}=e,[r,i]=n,o=b(t,l,"Current",g,i),a=b(t,l,"Base",y,r);return{labels:l.map((e,n)=>_(l,n)).slice(0,-1),datasets:[o,a]}}(n);return(0,i.jsx)(m.kL,{type:"bar",options:r,data:o,plugins:[]})}function b(e,n,t,l,r){let{counts:i=[]}=r;return{label:t,data:"datetime"===e?i.map((e,t)=>({x:n[t],y:e})):i,backgroundColor:l,borderColor:l,hoverBackgroundColor:l,borderWidth:0,categoryPercentage:1,barPercentage:1,xAxisID:"x"}}function _(e,n){let t=e[n],l=e[n+1],r=v(t),i=v(l);return"".concat(r," - ").concat(i)}let w=(0,c.G)((e,n)=>{let{backgroundColor:t="white",blockSize:l,children:r,...o}=e;return(0,i.jsx)(u.x,{ref:n,...o,overflowY:"auto",overflowX:"hidden",children:(0,i.jsx)(u.x,{backgroundColor:t,height:"100%",blockSize:l,children:r})})}),k=(0,c.G)(function(e,n){var t,l,r,c,d,m,h;let{run:f}=e,v=f.params,p=null===(t=f.result)||void 0===t?void 0:t.base,x=null===(l=f.result)||void 0===l?void 0:l.current,g=null===(r=f.result)||void 0===r?void 0:r.min,y=null===(c=f.result)||void 0===c?void 0:c.max,j=null===(d=f.result)||void 0===d?void 0:d.bin_edges;return p&&x?(0,i.jsx)(o.k,{direction:"column",height:"100%",children:(0,i.jsx)(w,{ref:n,height:"100%",children:(0,i.jsxs)(a.U,{children:[(0,i.jsx)(s.L,{}),(0,i.jsx)(u.x,{w:"80%",h:"35vh",m:"4",children:(0,i.jsx)(C,{data:{title:"Model ".concat(v.model,".").concat(v.column_name),type:null!==(h=null===(m=f.params)||void 0===m?void 0:m.column_type)&&void 0!==h?h:"",datasets:[p,x],min:g,max:y,samples:p.total,binEdges:j}})}),(0,i.jsx)(s.L,{})]})})}):(0,i.jsx)("div",{children:"Loading..."})});var S=t(22672),M=t(85658),R=t(97129),E=t(21645),O=t(66908),L=t.n(O);t(10499);var N=t(2585),T=t(16177),I=t(59362),V=t(19730),A=t(92784),P=t(34283),H=t(24332),F=t(79558),z=t(5849),D=t(56199),U=t(74378),W=t(94082);let B=e=>{let{value:n,colorScheme:t,grayOut:l,noCopy:r,fontSize:a}=e,{onCopy:s,hasCopied:c}=(0,W.V)(n),[d,m]=(0,R.useState)(!1);return(0,i.jsxs)(o.k,{p:"2px 5px",minWidth:"30px",maxWidth:"200px",overflow:"hidden",textOverflow:"ellipsis",color:"".concat(t,".800"),backgroundColor:"".concat(t,".100"),alignItems:"center",gap:"2px",rounded:"md",fontSize:a,flexShrink:r?"0":"inherit",onMouseEnter:()=>{m(!0)},onMouseLeave:()=>{m(!1)},children:[(0,i.jsx)(u.x,{overflow:"hidden",textOverflow:"ellipsis",color:l?"gray":"inherit",children:n}),(0,i.jsx)(()=>r||l?(0,i.jsx)(i.Fragment,{}):c?(0,i.jsx)(i.Fragment,{children:"Copied"}):d?(0,i.jsx)(V.h,{"aria-label":"Copy",icon:(0,i.jsx)(U.T,{boxSize:"10px"}),size:"xs",minW:"10px",h:"10px",variant:"unstyled",onClick:s,display:"flex",alignItems:"center",justifyContent:"center"}):(0,i.jsx)(i.Fragment,{}),{})]})};function q(e,n){return[{value:"Show raw value",onClick:()=>{n({[e]:"raw"})}},{value:"Show 2 decimal points",onClick:()=>{n({[e]:2})}},{value:"Show 4 decimal points",onClick:()=>{n({[e]:4})}},{value:"Show 6 decimal points",onClick:()=>{n({[e]:6})}},{value:"Show as percentage",onClick:()=>{n({[e]:"percent"})}}]}function Z(e,n){let t=[];for(let l of n){let n=e.findIndex(e=>e.name===l);if(n<0)throw Error("Column ".concat(l," not found"));t.push(n)}return t}function K(e,n,t){let l={};if(0===n.length)return JSON.stringify({_index:t._index});for(let r of n)l[e[r].name]=t[r];return JSON.stringify(l)}function J(e){var n,t;let{name:l,columnStatus:r,onPrimaryKeyChange:a,onPinnedColumnsChange:s,columnType:c,onColumnsRenderModeChanged:d,...m}=e,h=null!==(n=m.primaryKeys)&&void 0!==n?n:[],f=null!==(t=m.pinnedColumns)&&void 0!==t?t:[],v=h.includes(l),p=f.includes(l),x=[];return(d&&(x=q(l,d)),"index"===l)?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(o.k,{alignItems:"center",gap:"10px",className:"grid-header",children:[v&&(0,i.jsx)(N.J,{as:z.MhP}),(0,i.jsx)(u.x,{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:l}),"added"!==r&&"removed"!==r&&a&&(0,i.jsx)(N.J,{className:v?"close-icon":"key-icon",display:v?"block":"none",cursor:"pointer",as:v?z.ven:z.MhP,onClick:v?()=>{let e=h.filter(e=>e!==l);a&&a(e)}:()=>{let e=[...h.filter(e=>"index"!==e),l];a&&a(e)}}),!v&&s&&(0,i.jsx)(N.J,{className:p?"unpin-icon":"pin-icon",display:p?"block":"none",cursor:"pointer",as:p?z.$kI:z.oJP,onClick:p?()=>{let e=f.filter(e=>e!==l);s&&s(e)}:()=>{let e=[...f,l];s&&s(e)}}),!v&&"number"===c&&(0,i.jsxs)(T.v,{children:[(0,i.jsx)(I.j,{as:V.h,"aria-label":"Options",icon:(0,i.jsx)(z.D_A,{}),variant:"unstyled",className:"!size-4 !min-w-4"}),(0,i.jsx)(A.h,{children:(0,i.jsx)(P.q,{children:x.map(e=>(0,i.jsx)(H.s,{onClick:e.onClick,children:e.value},e.value))})})]})]})}let Q=function(e,n,t){let l,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"raw";if(!Object.hasOwn(e,n))return["-",!0];let i=e[n],o=!1;return"boolean"==typeof i?l=i.toString():""===i?(l="(empty)",o=!0):null==i?(l="(null)",o=!0):l="number"==typeof i?String(i):t&&"number"===t?function(e,n){let t;let l="en-US";return null!=(t="number"==typeof n?h(e,l,{maximumFractionDigits:n,minimumFractionDigits:n}):"percent"===n?h(e,l,{style:"percent",maximumFractionDigits:2}):String(e))?t:""}(parseFloat(i),r):String(i),[l,o]},G=e=>{let{row:n,column:t}=e,{columnType:l,columnRenderMode:r}=t,[o,a]=Q(n,t.key,l,r);return(0,i.jsx)(F.x,{style:{color:a?"gray":"inherit"},children:o})},$=e=>{let{row:n,column:t}=e,{columnType:l,columnRenderMode:r}=t,a="base__".concat(t.key),s="current__".concat(t.key);if(!Object.hasOwn(n,a)&&!Object.hasOwn(n,s))return"-";let u=Object.hasOwn(n,a),c=Object.hasOwn(n,s),[d,m]=Q(n,"base__".concat(t.key),l,r),[h,f]=Q(n,"current__".concat(t.key),l,r);return n[a]===n[s]?(0,i.jsx)(F.x,{style:{color:f?"gray":"inherit"},children:h}):(0,i.jsxs)(o.k,{gap:"5px",alignItems:"center",lineHeight:"normal",height:"100%",children:[u&&(0,i.jsx)(B,{value:d,colorScheme:"red",grayOut:m}),c&&(0,i.jsx)(B,{value:h,colorScheme:"green",grayOut:f})]})};function X(e,n,t){var l,r,o,a,s;let u=null!=e?e:{columns:[],data:[]},c=null!=n?n:{columns:[],data:[]},d=null!==(l=null==t?void 0:t.primaryKeys)&&void 0!==l?l:[],m=null!==(r=null==t?void 0:t.pinnedColumns)&&void 0!==r?r:[],h=null!==(o=null==t?void 0:t.changedOnly)&&void 0!==o&&o,f=null!==(a=null==t?void 0:t.displayMode)&&void 0!==a?a:"side_by_side",v=null!==(s=null==t?void 0:t.columnsRenderMode)&&void 0!==s?s:{},p=[],x=function(e,n){let t={};return Object.entries((0,D.Z)(e.columns.map(e=>e.name),n.columns.map(e=>e.name))).map(l=>{var r,i;let[o,a]=l;t[o]={status:a,baseColumnIndex:e.columns.findIndex(e=>e.name===o),currentColumnIndex:n.columns.findIndex(e=>e.name===o),colType:null!==(i=null===(r=e.columns.find(e=>e.name===o))||void 0===r?void 0:r.type)&&void 0!==i?i:"unknown"}}),t}(u,c),g={},y={},j=!1,C=!1;if(0===d.length)u.data.forEach((e,n)=>{e._index=n+1,g[JSON.stringify({_index:n+1})]=e}),c.data.forEach((e,n)=>{e._index=n+1,y[JSON.stringify({_index:n+1})]=e});else{let e=Z(u.columns,d);u.data.forEach((n,t)=>{let l=K(u.columns,e,n);l in g&&(j=!0),g[l]=n}),e=Z(c.columns,d),c.data.forEach((n,t)=>{let l=K(c.columns,e,n);l in y&&(C=!0),y[l]=n})}let b=(0,D.Z)(Object.keys(g),Object.keys(y)),_={added:0,removed:0,modified:0},w=Object.entries(b).map(e=>{let[n,t]=e,l=g[n],r=y[n],i=JSON.parse(n);if(l&&u.columns.forEach((e,n)=>{d.includes(e.name)||(i["base__".concat(e.name)]=l[n])}),r&&c.columns.forEach((e,n)=>{d.includes(e.name)||(i["current__".concat(e.name)]=r[n])}),l){if(r){for(let[e,n]of Object.entries(x))"index"===e||d.includes(e)||n.baseColumnIndex<0||n.currentColumnIndex<0||L().isEqual(l[n.baseColumnIndex],r[n.currentColumnIndex])||(i.__status="modified",n.status="modified");"modified"===i.__status&&_.modified++}else i.__status="removed",_.removed++}else i.__status="added",_.added++;return i});h&&(w=w.filter(e=>"added"===e.__status||"removed"===e.__status||"modified"===e.__status));let k=function(e,n,l){var r,o;let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"raw",s="added"===n?"diff-header-added":"removed"===n?"diff-header-removed":void 0;return"inline"===f?{headerCellClass:s,name:(0,i.jsx)(J,{name:e,columnStatus:n,columnType:l,...t}),key:e,renderCell:$,columnType:l,columnRenderMode:a}:{headerCellClass:s,name:(0,i.jsx)(J,{name:e,columnStatus:n,columnType:l,...t}),children:[{key:"base__".concat(e),name:null!==(r=null==t?void 0:t.baseTitle)&&void 0!==r?r:"Base",renderEditCell:E.Ug,headerCellClass:s,cellClass:t=>{let l=t.__status;if("removed"===l)return"diff-cell-removed";if("added"===l)return"diff-cell-added";if("added"===n);else if("removed"===n);else if(!L().isEqual(t["base__".concat(e)],t["current__".concat(e)]))return"diff-cell-removed"},renderCell:G,columnType:l,columnRenderMode:a},{key:"current__".concat(e),name:null!==(o=null==t?void 0:t.currentTitle)&&void 0!==o?o:"Current",renderEditCell:E.Ug,headerCellClass:s,cellClass:t=>{let l=t.__status;if("removed"===l)return"diff-cell-removed";if("added"===l)return"diff-cell-added";if("added"===n);else if("removed"===n);else if(!L().isEqual(t["base__".concat(e)],t["current__".concat(e)]))return"diff-cell-added"},renderCell:G,columnType:l,columnRenderMode:a}]}};return 0===d.length?p.push({key:"_index",width:50,maxWidth:100,name:"",cellClass:"index-column"}):d.forEach(e=>{var n;let l=null!==(n=x[e].status)&&void 0!==n?n:"",r=x[e].colType;p.push({key:e,name:(0,i.jsx)(J,{name:e,columnStatus:l,columnType:r,...t}),frozen:!0,cellClass:e=>{if(e.__status)return"diff-header-".concat(e.__status)},renderCell:G,columnType:r,columnRenderMode:v[e]})}),m.forEach(e=>{var n;let t=null!==(n=x[e].status)&&void 0!==n?n:"",l=x[e].colType;"index"===e||d.includes(e)||p.push(k(e,t,l,v[e]))}),Object.entries(x).forEach(e=>{var n;let[t,l]=e,r=null!==(n=l.status)&&void 0!==n?n:"",i=x[t].colType;"index"===t||d.includes(t)||m.includes(t)||h&&_.modified>0&&"added"!==r&&"removed"!==r&&"modified"!==r||p.push(k(t,r,i,v[t]))}),{columns:p,rows:w,invalidPKeyBase:j,invalidPKeyCurrent:C}}var Y=t(48862),ee=t(9678);let en=e=>{let{warnings:n,children:t}=e;return(0,i.jsxs)(o.k,{borderBottom:"1px solid lightgray",justifyContent:"flex-end",gap:"5px",alignItems:"center",px:"10px",bg:n&&n.length>0?"orange.100":"inherit",children:[(0,i.jsx)(ee.g,{alignItems:"flex-start",spacing:0,children:null==n?void 0:n.map((e,n)=>(0,i.jsxs)(u.x,{children:[(0,i.jsx)(Y.a,{color:"orange.600"})," ",e]},n))}),(0,i.jsx)(s.L,{minHeight:"32px"}),t]})};var et=t(74152),el=t(26861);let er=e=>{let{value:n,onChange:t,textOn:l,textOff:r}=e;return(0,i.jsxs)(et.h,{isAttached:!0,variant:"outline",borderRadius:"full",size:"xs",children:[(0,i.jsx)(el.z,{onClick:()=>{t(!1)},color:n?"gray.400":"black",bg:n?"gray.50":"white",children:null!=r?r:"Off"}),(0,i.jsx)(el.z,{onClick:()=>{t(!0)},color:n?"black":"gray.400",bg:n?"white":"gray.50",children:null!=l?l:"On"})]})},ei=e=>{let{displayMode:n,onDisplayModeChanged:t}=e;return(0,i.jsxs)(i.Fragment,{children:["inline"===n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(B,{value:"Base",colorScheme:"red",grayOut:!1,fontSize:"10pt",noCopy:!0}),(0,i.jsx)(B,{value:"Current",colorScheme:"green",grayOut:!1,fontSize:"10pt",noCopy:!0})]}),(0,i.jsx)(er,{value:"side_by_side"===n,onChange:e=>{t(e?"side_by_side":"inline")},textOff:"Inline",textOn:"Side by side"})]})};function eo(e){let{name:n,pinnedColumns:t=[],onPinnedColumnsChange:l=()=>{},columnType:r,onColumnsRenderModeChanged:a}=e,s=[];a&&(s=q(n,a));let c=t.includes(n);return(0,i.jsxs)(o.k,{className:"grid-header",alignItems:"center",children:[(0,i.jsx)(u.x,{flex:1,children:n}),(0,i.jsx)(N.J,{className:c?"unpin-icon":"pin-icon",display:c?"block":"none",cursor:"pointer",as:c?z.$kI:z.oJP,onClick:c?()=>{l(t.filter(e=>e!==n))}:()=>{l([...t,n])}}),"number"===r&&(0,i.jsxs)(T.v,{children:[(0,i.jsx)(I.j,{as:V.h,"aria-label":"Options",icon:(0,i.jsx)(z.D_A,{}),variant:"unstyled",className:"!size-4 !min-w-4"}),(0,i.jsx)(A.h,{children:(0,i.jsx)(P.q,{children:s.map(e=>(0,i.jsx)(H.s,{onClick:e.onClick,children:e.value},e.value))})})]})]})}function ea(e,n){var t,l,r;let o=[],a=null!==(t=n.primaryKeys)&&void 0!==t?t:[],s=null!==(l=n.pinnedColumns)&&void 0!==l?l:[],u=null!==(r=n.columnsRenderMode)&&void 0!==r?r:{},c={};e.columns.forEach(e=>{c[e.name]={colType:e.type}});let d=function(e,t,l){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"raw";return{key:String(e),name:(0,i.jsx)(eo,{name:t,...n,columnType:l}),width:"auto",renderCell:G,columnType:l,columnRenderMode:r}},m=function(e,t,l){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"raw";return{key:String(e),name:(0,i.jsx)(J,{name:t,columnStatus:"",columnType:l,...n}),width:"auto",frozen:!0,renderCell:G,columnType:l,columnRenderMode:r}};return a.length>0?a.forEach(n=>{let t=L().findIndex(e.columns,e=>e.name===n),l=c[n].colType;o.push(m(t,n,l,u[n]))}):o.push({key:"_index",name:"",width:50,cellClass:"index-column"}),s.forEach(n=>{let t=c[n].colType,l=L().findIndex(e.columns,e=>e.name===n);l<0||o.push(d(l,n,t,u[n]))}),e.columns.forEach((e,n)=>{let{name:t}=e;if(a.includes(t)||s.includes(t))return;let l=c[t].colType;o.push(d(n,t,l,u[t]))}),e.data.forEach((e,n)=>{e._index=n+1}),{columns:o,rows:e.data}}t(50758);let es=(0,c.G)((e,n)=>{var t;let{run:l,viewOptions:r,onViewOptionsChanged:a,onAddToChecklist:c}=e,d=(0,R.useMemo)(()=>{var e;return null!==(e=null==r?void 0:r.pinned_columns)&&void 0!==e?e:[]},[r]),m=(0,R.useMemo)(()=>{var e;return null!==(e=null==r?void 0:r.columnsRenderMode)&&void 0!==e?e:{}},[r]),h=l.result,f=(0,R.useMemo)(()=>h?ea(h,{pinnedColumns:d,onPinnedColumnsChange:e=>{a&&a({...r,pinned_columns:e})},columnsRenderMode:m,onColumnsRenderModeChanged:e=>{var n;let t={...null!==(n=null==r?void 0:r.columnsRenderMode)&&void 0!==n?n:{},...e};a&&a({...r,columnsRenderMode:t})}}):{rows:[],columns:[]},[h,d,r,a,m]);if(0===f.columns.length)return(0,i.jsx)(S.M,{height:"100%",children:"No data"});let v=h&&null!==(t=h.limit)&&void 0!==t?t:0,p=v>0&&(null==h?void 0:h.more)?"Warning: Displayed results are limited to ".concat(v.toLocaleString()," records. To ensure complete data retrieval, consider applying a LIMIT or WHERE clause to constrain the result set."):null,x=null!=c?c:p;return(0,i.jsxs)(o.k,{direction:"column",backgroundColor:"rgb(249, 249, 249)",height:"100%",children:[x&&(0,i.jsxs)(o.k,{borderBottom:"1px solid lightgray",alignItems:"center",gap:"5px",px:"10px",bg:p?"orange.100":"inherit",children:[p&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Y.a,{color:"orange.600",alignSelf:"center"})," ",(0,i.jsx)(u.x,{children:p})]}),(0,i.jsx)(s.L,{minHeight:"32px"}),c&&(0,i.jsx)(el.z,{marginBlock:"5px",size:"sm",colorScheme:"blue",onClick:()=>{c(l)},children:"Add to Checklist"})]}),(0,i.jsx)(M.o,{ref:n,style:{blockSize:"auto",maxHeight:"100%",overflow:"auto"},columns:f.columns,rows:f.rows,renderers:{noRowsFallback:(0,i.jsx)(M.W,{})},defaultColumnOptions:{resizable:!0,maxWidth:800,minWidth:35},className:"rdg-light",enableScreenshot:!0})]})}),eu=(0,c.G)((e,n)=>{var t,l,r;let{run:a,viewOptions:s,onViewOptionsChanged:u}=e,c=a.result,d=(0,R.useMemo)(()=>{var e;return null!==(e=null==s?void 0:s.pinned_columns)&&void 0!==e?e:[]},[s]),m=(0,R.useMemo)(()=>{var e;return null!==(e=null==s?void 0:s.display_mode)&&void 0!==e?e:"inline"},[s]),h=(0,R.useMemo)(()=>{var e;return null!==(e=null==s?void 0:s.columnsRenderMode)&&void 0!==e?e:{}},[s]),f=(null!==(l=null==c?void 0:null===(t=c.current)||void 0===t?void 0:t.columns)&&void 0!==l?l:[]).find(e=>"column_name"===e.name.toLowerCase()),v=null!==(r=null==f?void 0:f.name)&&void 0!==r?r:"column_name",p=(0,R.useMemo)(()=>X(null==c?void 0:c.base,null==c?void 0:c.current,{primaryKeys:[v],pinnedColumns:d,onPinnedColumnsChange:e=>{u&&u({...s,pinned_columns:e})},displayMode:m,columnsRenderMode:h,onColumnsRenderModeChanged:e=>{var n;let t={...null!==(n=null==s?void 0:s.columnsRenderMode)&&void 0!==n?n:{},...e};u&&u({...s,columnsRenderMode:t})}}),[c,v,d,m,s,u,h]);return 0===p.columns.length?(0,i.jsx)(S.M,{height:"100%",children:"No data"}):(0,i.jsxs)(o.k,{direction:"column",backgroundColor:"rgb(249, 249, 249)",height:"100%",children:[(0,i.jsx)(en,{run:a,children:(0,i.jsx)(ei,{displayMode:m,onDisplayModeChanged:e=>{u&&u({...s,display_mode:e})}})}),(0,i.jsx)(M.o,{ref:n,style:{blockSize:"auto",maxHeight:"100%",overflow:"auto"},columns:p.columns,rows:p.rows,defaultColumnOptions:{resizable:!0,maxWidth:800,minWidth:35},className:"rdg-light",enableScreenshot:!0})]})}),ec=(0,c.G)((e,n)=>{var t,l,r;let{run:a,viewOptions:s,onViewOptionsChanged:u}=e,c=a.result,d=null==c?void 0:c.current,m=(0,R.useMemo)(()=>{var e;return null!==(e=null==s?void 0:s.pinned_columns)&&void 0!==e?e:[]},[s]),h=(0,R.useMemo)(()=>{var e;return null!==(e=null==s?void 0:s.columnsRenderMode)&&void 0!==e?e:{}},[s]),f=(null!==(l=null==c?void 0:null===(t=c.current)||void 0===t?void 0:t.columns)&&void 0!==l?l:[]).find(e=>"column_name"===e.name.toLowerCase()),v=null!==(r=null==f?void 0:f.name)&&void 0!==r?r:"column_name",p=(0,R.useMemo)(()=>d?ea(d,{primaryKeys:[v],pinnedColumns:m,onPinnedColumnsChange:e=>{u&&u({...s,pinned_columns:e})},columnsRenderMode:h,onColumnsRenderModeChanged:e=>{var n;let t={...null!==(n=null==s?void 0:s.columnsRenderMode)&&void 0!==n?n:{},...e};u&&u({...s,columnsRenderMode:t})}}):{columns:[],rows:[]},[d,m,v,s,u,h]);return 0===p.columns.length?(0,i.jsx)(S.M,{height:"100%",children:"No data"}):(0,i.jsx)(o.k,{direction:"column",backgroundColor:"rgb(249, 249, 249)",height:"100%",children:(0,i.jsx)(M.o,{ref:n,style:{blockSize:"auto",maxHeight:"100%",overflow:"auto"},columns:p.columns,rows:p.rows,defaultColumnOptions:{resizable:!0,maxWidth:800,minWidth:35},className:"rdg-light",enableScreenshot:!0})})});function ed(e){var n,t;let{name:l,columnStatus:r,onPrimaryKeyChange:a,onPinnedColumnsChange:s,columnType:c,onColumnsRenderModeChanged:d,...m}=e,h=null!==(n=m.primaryKeys)&&void 0!==n?n:[],f=null!==(t=m.pinnedColumns)&&void 0!==t?t:[],v=h.includes(l),p=f.includes(l),x=[];return(d&&(x=q(l,d)),"index"===l)?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(o.k,{alignItems:"center",gap:"10px",className:"grid-header",children:[v&&(0,i.jsx)(N.J,{as:z.MhP}),(0,i.jsx)(u.x,{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:l}),!v&&s&&(0,i.jsx)(N.J,{className:p?"unpin-icon":"pin-icon",display:p?"block":"none",cursor:"pointer",as:p?z.$kI:z.oJP,onClick:p?()=>{let e=f.filter(e=>e!==l);s&&s(e)}:()=>{let e=[...f,l];s&&s(e)}}),!v&&"number"===c&&(0,i.jsxs)(T.v,{children:[(0,i.jsx)(I.j,{as:V.h,"aria-label":"Options",icon:(0,i.jsx)(z.D_A,{}),variant:"unstyled",className:"!size-4 !min-w-4"}),(0,i.jsx)(A.h,{children:(0,i.jsx)(P.q,{children:x.map(e=>(0,i.jsx)(H.s,{onClick:e.onClick,children:e.value},e.value))})})]})]})}function em(e,n,t){var l,r,o,a;let s=null!==(l=null==t?void 0:t.pinnedColumns)&&void 0!==l?l:[],u=null!==(r=null==t?void 0:t.changedOnly)&&void 0!==r&&r,c=null!==(o=null==t?void 0:t.displayMode)&&void 0!==o?o:"inline",d=null!==(a=null==t?void 0:t.columnsRenderMode)&&void 0!==a?a:{},m=[],h=function(e){let n={};return e.columns.map((e,t)=>{n[e.name]={index:t,colType:e.type}}),n}(e),f={},v={};if(0===n.length)throw Error("Primary keys are required");let p=function(e,n){let t=[];for(let l of n){let n=e.findIndex(e=>e.name===l);if(n<0)throw Error("Column ".concat(l," not found"));t.push(n)}return t}(e.columns,n),x=(h.in_a||h.IN_A).index,g=(h.in_b||h.IN_B).index;e.data.forEach((n,t)=>{let l=function(e,n,t){let l={};if(0===n.length)return JSON.stringify({_index:t._index});for(let r of n)l[e[r].name]=t[r];return JSON.stringify(l)}(e.columns,p,n);n[x]&&(f[l]=n),n[g]&&(v[l]=n)});let y=(0,D.Z)(Object.keys(f),Object.keys(v)),j={added:0,removed:0,modified:0},C=Object.entries(y).map(t=>{let[l,r]=t,i=f[l],o=v[l],a=JSON.parse(l);if(i&&e.columns.forEach((e,t)=>{n.includes(e.name)||(a["base__".concat(e.name)]=i[t])}),o&&e.columns.forEach((e,t)=>{n.includes(e.name)||(a["current__".concat(e.name)]=o[t])}),i){if(o)for(let[e,t]of Object.entries(h))!("index"===e||n.includes(e))&&(L().isEqual(i[t.index],o[t.index])||(a.__status="modified",t.status="modified"));else a.__status="removed",j.removed++}else a.__status="added",j.added++;return"modified"===a.__status&&j.modified++,a});u&&(C=C.filter(e=>"added"===e.__status||"removed"===e.__status||"modified"===e.__status));let b=function(e,l,r){var o,a;let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"raw",u="added"===l?"diff-header-added":"removed"===l?"diff-header-removed":void 0;return"inline"===c?{headerCellClass:u,name:(0,i.jsx)(ed,{name:e,columnStatus:l,primaryKeys:n,columnType:r,...t}),key:e,renderCell:$,columnType:r,columnRenderMode:s}:{headerCellClass:u,name:(0,i.jsx)(ed,{name:e,columnStatus:l,primaryKeys:n,columnType:r,...t}),children:[{key:"base__".concat(e),name:null!==(o=null==t?void 0:t.baseTitle)&&void 0!==o?o:"Base",renderEditCell:E.Ug,headerCellClass:u,cellClass:n=>{let t=n.__status;if("removed"===t)return"diff-cell-removed";if("added"===t)return"diff-cell-added";if("added"===l);else if("removed"===l);else if(!L().isEqual(n["base__".concat(e)],n["current__".concat(e)]))return"diff-cell-removed"},renderCell:G,columnType:r,columnRenderMode:s},{key:"current__".concat(e),name:null!==(a=null==t?void 0:t.currentTitle)&&void 0!==a?a:"Current",renderEditCell:E.Ug,headerCellClass:u,cellClass:n=>{let t=n.__status;if("removed"===t)return"diff-cell-removed";if("added"===t)return"diff-cell-added";if("added"===l);else if("removed"===l);else if(!L().isEqual(n["base__".concat(e)],n["current__".concat(e)]))return"diff-cell-added"},renderCell:G,columnType:r,columnRenderMode:s}]}};return n.forEach(e=>{var l;let r=null!==(l=h[e].status)&&void 0!==l?l:"",o=h[e].colType;m.push({key:e,name:(0,i.jsx)(ed,{name:e,columnStatus:r,primaryKeys:n,columnType:"unknown",...t}),frozen:!0,cellClass:e=>{if(e.__status)return"diff-header-".concat(e.__status)},renderCell:G,columnType:o,columnRenderMode:d[e]})}),s.forEach(e=>{var t;let l=null!==(t=h[e].status)&&void 0!==t?t:"",r=h[e].colType;n.includes(e)||m.push(b(e,l,r,d[e]))}),Object.entries(h).forEach(e=>{var t;let[l,r]=e,i=null!==(t=r.status)&&void 0!==t?t:"";"in_a"===l||"in_b"===l||n.includes(l)||s.includes(l)||u&&j.modified>0&&"added"!==i&&"removed"!==i&&"modified"!==i||m.push(b(l,i,r.colType,d[l]))}),{columns:m,rows:C}}var eh=t(78828);let ef=e=>{let{changedOnly:n,onChange:t}=e;return(0,i.jsx)(eh.X,{size:"xs",isChecked:n,onChange:()=>{t()},children:"Changed only"})},ev=(e,n)=>{var t,l,r,a,s,u,c;let{run:d,onAddToChecklist:m,viewOptions:h,onViewOptionsChanged:f,baseTitle:v,currentTitle:p}=e,x=(0,R.useMemo)(()=>{var e;return null!==(e=null==h?void 0:h.primary_keys)&&void 0!==e?e:[]},[h]),g=(0,R.useMemo)(()=>{var e;return null!==(e=null==h?void 0:h.changed_only)&&void 0!==e&&e},[h]),y=(0,R.useMemo)(()=>{var e;return null!==(e=null==h?void 0:h.pinned_columns)&&void 0!==e?e:[]},[h]),j=(0,R.useMemo)(()=>{var e;return null!==(e=null==h?void 0:h.display_mode)&&void 0!==e?e:"inline"},[h]),C=(0,R.useMemo)(()=>{var e;return null!==(e=null==h?void 0:h.columnsRenderMode)&&void 0!==e?e:{}},[h]),b=(0,R.useMemo)(()=>{var e,n;return X(null===(e=d.result)||void 0===e?void 0:e.base,null===(n=d.result)||void 0===n?void 0:n.current,{changedOnly:g,primaryKeys:x,onPrimaryKeyChange:e=>{f&&f({...h,primary_keys:e})},pinnedColumns:y,onPinnedColumnsChange:e=>{f&&f({...h,pinned_columns:e})},columnsRenderMode:C,onColumnsRenderModeChanged:e=>{var n;let t={...null!==(n=null==h?void 0:h.columnsRenderMode)&&void 0!==n?n:{},...e};f&&f({...h,columnsRenderMode:t})},baseTitle:v,currentTitle:p,displayMode:j})},[d,h,g,x,y,j,f,v,p,C]),_=(0,R.useMemo)(()=>{let e=x.join(", ");return b.invalidPKeyBase&&b.invalidPKeyCurrent?"Warning: The primary key '".concat(e,"' is not unique in the base and current environments"):b.invalidPKeyBase?"Warning: The primary key '".concat(e,"' is not unique in the base environment"):b.invalidPKeyCurrent?"Warning: The primary key '".concat(e,"' is not unique in the current environment"):void 0},[b.invalidPKeyBase,b.invalidPKeyCurrent,x]),w=null!==(c=null===(l=d.result)||void 0===l?void 0:null===(t=l.current)||void 0===t?void 0:t.limit)&&void 0!==c?c:0,k=w>0&&((null===(a=d.result)||void 0===a?void 0:null===(r=a.current)||void 0===r?void 0:r.more)||(null===(u=d.result)||void 0===u?void 0:null===(s=u.base)||void 0===s?void 0:s.more))?"Warning: Displayed results are limited to ".concat(w.toLocaleString()," records. To ensure complete data retrieval, consider applying a LIMIT or WHERE clause to constrain the result set."):null,E=[];return(_&&E.push(_),k&&E.push(k),0===b.columns.length)?(0,i.jsx)(S.M,{height:"100%",children:"No data"}):(0,i.jsxs)(o.k,{direction:"column",backgroundColor:"rgb(249, 249, 249)",height:"100%",children:[(0,i.jsxs)(en,{run:d,viewOptions:h,onViewOptionsChanged:f,warnings:E,children:[(0,i.jsx)(ei,{displayMode:j,onDisplayModeChanged:e=>{f&&f({...h,display_mode:e})}}),(0,i.jsx)(ef,{changedOnly:null==h?void 0:h.changed_only,onChange:()=>{let e=!(null==h?void 0:h.changed_only);f&&f({...h,changed_only:e})}})]}),(0,i.jsx)(M.o,{ref:n,style:{blockSize:"auto",maxHeight:"100%",overflow:"auto"},columns:b.columns,rows:b.rows,renderers:{noRowsFallback:(0,i.jsx)(M.W,{emptyMessage:"No mismatched rows"})},defaultColumnOptions:{resizable:!0,maxWidth:800,minWidth:35},className:"rdg-light",enableScreenshot:!0})]})},ep=(e,n)=>{var t,l,r,a,s;let{run:u,viewOptions:c,onViewOptionsChanged:d,baseTitle:m,currentTitle:h}=e,f=(0,R.useMemo)(()=>{var e;return null!==(e=null==c?void 0:c.changed_only)&&void 0!==e&&e},[c]),v=(0,R.useMemo)(()=>{var e;return null!==(e=null==c?void 0:c.pinned_columns)&&void 0!==e?e:[]},[c]),p=(0,R.useMemo)(()=>{var e;return null!==(e=null==c?void 0:c.display_mode)&&void 0!==e?e:"inline"},[c]),x=(0,R.useMemo)(()=>{var e;return null!==(e=null==c?void 0:c.columnsRenderMode)&&void 0!==e?e:{}},[c]),g=(0,R.useMemo)(()=>{var e,n;if(!(null===(e=u.result)||void 0===e?void 0:e.diff)||!(null===(n=u.params)||void 0===n?void 0:n.primary_keys))return{columns:[],rows:[]};let t=u.params.primary_keys;return em(u.result.diff,t,{changedOnly:f,pinnedColumns:v,onPinnedColumnsChange:e=>{d&&d({...c,pinned_columns:e})},baseTitle:m,currentTitle:h,displayMode:p,columnsRenderMode:x,onColumnsRenderModeChanged:e=>{var n;let t={...null!==(n=null==c?void 0:c.columnsRenderMode)&&void 0!==n?n:{},...e};d&&d({...c,columnsRenderMode:t})}})},[u,c,f,v,p,d,m,h,x]),y=null!==(s=null===(l=u.result)||void 0===l?void 0:null===(t=l.diff)||void 0===t?void 0:t.limit)&&void 0!==s?s:0,j=y>0&&(null===(a=u.result)||void 0===a?void 0:null===(r=a.diff)||void 0===r?void 0:r.more)?"Warning: Displayed results are limited to ".concat(y.toLocaleString()," records. To ensure complete data retrieval, consider applying a LIMIT or WHERE clause to constrain the result set."):null,C=[];return(j&&C.push(j),0===g.columns.length)?(0,i.jsx)(S.M,{height:"100%",children:"No data"}):f&&0===g.rows.length?(0,i.jsxs)(o.k,{direction:"column",backgroundColor:"rgb(249, 249, 249)",height:"100%",children:[(0,i.jsx)(en,{run:u,viewOptions:c,onViewOptionsChanged:d,warnings:C}),(0,i.jsx)(S.M,{height:"100%",children:"No change"})]}):(0,i.jsxs)(o.k,{direction:"column",backgroundColor:"rgb(249, 249, 249)",height:"100%",children:[(0,i.jsxs)(en,{run:u,viewOptions:c,onViewOptionsChanged:d,warnings:C,children:[(0,i.jsx)(ei,{displayMode:p,onDisplayModeChanged:e=>{d&&d({...c,display_mode:e})}}),(0,i.jsx)(ef,{changedOnly:null==c?void 0:c.changed_only,onChange:()=>{let e=!(null==c?void 0:c.changed_only);d&&d({...c,changed_only:e})}})]}),(0,i.jsx)(M.o,{ref:n,style:{blockSize:"auto",maxHeight:"100%",overflow:"auto"},columns:g.columns,rows:g.rows,renderers:{noRowsFallback:(0,i.jsx)(M.W,{emptyMessage:"No mismatched rows"})},defaultColumnOptions:{resizable:!0,maxWidth:800,minWidth:35},className:"rdg-light",enableScreenshot:!0})]})},ex=(0,c.G)((e,n)=>{var t;let l,r;if(e.run.params&&e.run.params.current_model&&(l="Original",r="Editor"),(null===(t=e.run.result)||void 0===t?void 0:t.diff)!=null){let t=(0,c.G)(ep);return(0,i.jsx)(t,{...e,ref:n,baseTitle:l,currentTitle:r})}{let t=(0,c.G)(ev);return(0,i.jsx)(t,{...e,ref:n,baseTitle:l,currentTitle:r})}});var eg=t(55120),ey=t(52657),ej=t.n(ey);let eC=(0,c.G)(function(e,n){var t,l;let{run:r}=e;function a(e){if(e.base===e.current);else if(e.base<e.current||"N/A"===e.base)return"column-body-added";else if(e.base>e.current||"N/A"===e.current)return"column-body-removed";return"column-body-normal"}let s=null!==(t=r.result)&&void 0!==t?t:{},u=Object.keys(null!==(l=r.result)&&void 0!==l?l:{}).map(e=>{let n=s[e],t=ej()(n.base)?n.base:null,l=ej()(n.curr)?n.curr:null,r="=";return null!==t&&null!==l?r=t!==l?(0,eg.T)(t,l):"=":t===l?r="N/A":null===t?r="Added":null===l&&(r="Removed"),{name:e,base:null===t?"N/A":Number(t),current:null===l?"N/A":Number(l),delta:r}});return 0===u.length?(0,i.jsx)(S.M,{bg:"rgb(249,249,249)",height:"100%",children:"No nodes matched"}):(0,i.jsx)(o.k,{direction:"column",children:Object.keys(s).length>0&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(M.o,{ref:n,style:{blockSize:"auto",maxHeight:"100%",overflow:"auto",fontSize:"10pt",borderWidth:1},columns:[{key:"name",name:"Name",cellClass:a},{key:"base",name:"Base Rows",cellClass:a},{key:"current",name:"Current Rows",cellClass:a},{key:"delta",name:"Delta",cellClass:a}],rows:u,renderers:{noRowsFallback:(0,i.jsx)(M.W,{})},className:"rdg-light",enableScreenshot:!0})})})}),eb=(0,c.G)(function(e,n){var t,l;let{run:r}=e,a=null!==(t=r.result)&&void 0!==t?t:{},s=Object.keys(null!==(l=r.result)&&void 0!==l?l:{}).map(e=>{let n=a[e],t=ej()(n.curr)?n.curr:null;return{name:e,current:null===t?"N/A":Number(t)}});return 0===s.length?(0,i.jsx)(S.M,{bg:"rgb(249,249,249)",height:"100%",children:"No nodes matched"}):(0,i.jsx)(o.k,{direction:"column",children:Object.keys(a).length>0&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(M.o,{ref:n,style:{blockSize:"auto",maxHeight:"100%",overflow:"auto",fontSize:"10pt",borderWidth:1},columns:[{key:"name",name:"Name"},{key:"current",name:"Row Count"}],rows:s,renderers:{noRowsFallback:(0,i.jsx)(M.W,{})},className:"rdg-light",enableScreenshot:!0})})})});var e_=t(91155),ew=t(94389),ek=t(56365),eS=t(78933),eM=t(78398),eR=t(81983),eE=t(35690),eO=t(70291);let eL="#63B3ED";function eN(e,n){let t=n?10:e.counts.length,l=e.counts.slice(0,t),r=e.valids-l.reduce((e,n)=>e+n,0);return e.values.slice(0,t).concat([r]).map((n,t)=>{var i;let o;let a=t===l.length,s=a?r:l[t],u=!1;return a?(o="(others)",u=!0):null==n?(o="(null)",u=!0):"string"==typeof n&&0===n.length?(o="(empty)",u=!0):o=String(n),{isLastItemOthers:a,isSpecialLabel:u,label:o,count:s,displayCount:v(s),displayRatio:null!==(i=f(s/e.valids))&&void 0!==i?i:"N/A"}})}function eT(e){let{base:n,current:t,children:l}=e;return(0,i.jsx)(eE.u,{label:(0,i.jsxs)(u.x,{children:[(0,i.jsxs)(F.x,{children:[(0,i.jsx)(j,{color:p}),"Current: ",t.count," (",t.displayRatio,")"]}),(0,i.jsxs)(F.x,{children:[(0,i.jsx)(j,{color:x}),"Base: ",n.count," (",n.displayRatio,")"]})]}),placement:"auto",hasArrow:!0,children:l})}function eI(e){let{topKDiff:n,isDisplayTopTen:t}=e,l=eN(n.current,t),r=eN(n.base,t);return(0,i.jsxs)(u.x,{w:"100%",px:20,py:4,children:[(0,i.jsxs)(o.k,{alignItems:"center",direction:"row",children:[(0,i.jsx)(s.L,{}),(0,i.jsxs)(F.x,{as:"h3",size:"sm",p:"2",color:"gray",children:[(0,i.jsx)(j,{color:x})," Base"]}),(0,i.jsxs)(F.x,{as:"h3",size:"sm",p:"2",color:"gray",children:[(0,i.jsx)(j,{color:p})," Current"]}),(0,i.jsx)(s.L,{})]}),l.map((e,t)=>{let l=r[t];return e.isLastItemOthers&&0===e.count&&0===l.count?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(R.Fragment,{children:[(0,i.jsx)(eT,{base:l,current:e,children:(0,i.jsxs)(o.k,{alignItems:"center",width:"100%",_hover:{bg:"blackAlpha.300"},px:4,children:[(0,i.jsx)(F.x,{noOfLines:1,width:"10em",fontSize:"sm",color:e.isSpecialLabel?"gray.400":"inherit",children:e.label}),(0,i.jsxs)(o.k,{width:"70%",direction:"column",children:[(0,i.jsxs)(o.k,{height:"1em",children:[(0,i.jsx)(eV,{topkCount:e.count,topkLabel:e.label,valids:n.current.valids,color:p}),(0,i.jsx)(F.x,{ml:5,mr:2,fontSize:"sm",width:"6em",children:e.displayCount}),(0,i.jsx)(F.x,{color:"gray.400",fontSize:"sm",width:"4em",children:e.displayRatio})]}),(0,i.jsxs)(o.k,{height:"1em",children:[(0,i.jsx)(eV,{topkCount:l.count,topkLabel:l.label,valids:n.base.valids,color:x}),(0,i.jsx)(F.x,{ml:5,mr:2,fontSize:"sm",width:"6em",children:l.displayCount}),(0,i.jsx)(F.x,{color:"gray.400",fontSize:"sm",width:"4em",children:l.displayRatio})]})]})]})}),(0,i.jsx)(eO.i,{})]},t)})]})}function eV(e){let{topkCount:n,topkLabel:t,valids:l,animation:r=!1,color:o=eL}=e;d.kL.register(d.uw,d.ZL,d.f$);let a=function(e,n){let{...t}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",scales:{x:{display:!1,max:n,grid:{display:!1}},y:{display:!1}},plugins:{tooltip:{enabled:!1}},...t}}(n,l,{animation:r}),s=function(e){let{topkLabel:n,topkCount:t,color:l=eL}=e;return{labels:[n],datasets:[{indexAxis:"y",data:[t],backgroundColor:l,hoverBackgroundColor:l,borderWidth:0,borderColor:l,barPercentage:1,categoryPercentage:.6}]}}({topkCount:n,topkLabel:t,color:o});return(0,i.jsx)(m.$Q,{data:s,options:a,plugins:[]})}let eA=(0,c.G)((e,n)=>{let{run:t}=e,[l,r]=(0,R.useState)(!0),u=t.result,c=t.params,d=u.base,m=u.current;return(0,i.jsxs)(o.k,{direction:"column",height:"100%",children:[(0,i.jsxs)(w,{ref:n,blockSize:"auto",children:[(0,i.jsxs)(eM.X,{as:"h1",size:"md",paddingTop:4,textAlign:"center",color:"gray.600",children:["Model ",c.model,".",c.column_name]}),(0,i.jsxs)(a.U,{children:[(0,i.jsx)(s.L,{}),(0,i.jsx)(eI,{topKDiff:u,valids:m.valids||0,isDisplayTopTen:l}),(0,i.jsx)(s.L,{})]})]}),(0,i.jsx)(s.L,{}),(d.values.length>10||m.values.length>10)&&(0,i.jsx)(o.k,{p:5,justify:"start",children:(0,i.jsx)(eR.r,{onClick:()=>{r(e=>!e)},textColor:"blue.500",children:l?"View More Items":"View Only Top-10"})})]})}),eP=(0,c.G)((e,n)=>{var t,l,r;let{run:a,onAddToChecklist:s,viewOptions:u,onViewOptionsChanged:c}=e,d=(0,R.useMemo)(()=>{var e;return null!==(e=null==u?void 0:u.changed_only)&&void 0!==e&&e},[u]),m=(0,R.useMemo)(()=>{var e;return null!==(e=null==u?void 0:u.pinned_columns)&&void 0!==e?e:[]},[u]),h=(0,R.useMemo)(()=>{var e;return null!==(e=null==u?void 0:u.display_mode)&&void 0!==e?e:"inline"},[u]),f=(0,R.useMemo)(()=>{var e;return null!==(e=null==u?void 0:u.columnsRenderMode)&&void 0!==e?e:{}},[u]),v=(0,R.useMemo)(()=>{var e;if(!a.result||!(null===(e=a.params)||void 0===e?void 0:e.primary_key))return{columns:[],rows:[]};let n=a.params.primary_key,t=Array.isArray(n)?n:[n];return em(a.result,t,{changedOnly:d,pinnedColumns:m,onPinnedColumnsChange:e=>{c&&c({...u,pinned_columns:e})},columnsRenderMode:f,onColumnsRenderModeChanged:e=>{var n;let t={...null!==(n=null==u?void 0:u.columnsRenderMode)&&void 0!==n?n:{},...e};c&&c({...u,columnsRenderMode:t})},displayMode:h})},[a,u,d,m,h,c,f]),p=null!==(r=null===(t=a.result)||void 0===t?void 0:t.limit)&&void 0!==r?r:0,x=p>0&&(null===(l=a.result)||void 0===l?void 0:l.more)?"Warning: Displayed results are limited to ".concat(p.toLocaleString()," records. To ensure complete data retrieval, consider applying a LIMIT or WHERE clause to constrain the result set."):null,g=[];return(x&&g.push(x),0===v.columns.length)?(0,i.jsx)(S.M,{height:"100%",children:"No data"}):d&&0===v.rows.length?(0,i.jsxs)(o.k,{direction:"column",backgroundColor:"rgb(249, 249, 249)",height:"100%",children:[(0,i.jsx)(en,{run:a,viewOptions:u,onViewOptionsChanged:c,warnings:g}),(0,i.jsx)(S.M,{height:"100%",children:"No change"}),";"]}):(0,i.jsxs)(o.k,{direction:"column",backgroundColor:"rgb(249, 249, 249)",height:"100%",children:[(0,i.jsxs)(en,{run:a,viewOptions:u,onViewOptionsChanged:c,warnings:g,children:[(0,i.jsx)(ei,{displayMode:h,onDisplayModeChanged:e=>{c&&c({...u,display_mode:e})}}),(0,i.jsx)(ef,{changedOnly:null==u?void 0:u.changed_only,onChange:()=>{let e=!(null==u?void 0:u.changed_only);c&&c({...u,changed_only:e})}})]}),(0,i.jsx)(M.o,{ref:n,style:{blockSize:"auto",maxHeight:"100%",overflow:"auto"},columns:v.columns,rows:v.rows,renderers:{noRowsFallback:(0,i.jsx)(M.W,{emptyMessage:"No mismatched rows"})},defaultColumnOptions:{resizable:!0,maxWidth:800,minWidth:35},className:"rdg-light",enableScreenshot:!0})]})});var eH=t(8685),eF=t(8496);function ez(e){var n;let{params:t,onParamsChanged:l,setIsReadyToExecute:r}=e,[o,a]=(0,R.useState)(!t.columns||0===t.columns.length),s=t.model,c=t.primary_key,{columns:d,primaryKey:m,isLoading:h,error:f}=(0,eS.ZP)(t.model);(0,R.useEffect)(()=>{!c&&m&&l({...t,primary_key:m})},[c,m,t,l]),(0,R.useEffect)(()=>{r(!!c&&!!s)},[c,s,r]);let v=d.map(e=>e.name),p=Array.isArray(c)?c:c?[c]:void 0;return h?(0,i.jsx)(u.x,{children:"Loading..."}):0===v.length||f?(0,i.jsx)(u.x,{children:"Error: Please provide the 'catalog.json' to list column candidates"}):(0,i.jsxs)(ee.g,{gap:5,m:"8px 24px",paddingBottom:"200px",children:[(0,i.jsxs)(e_.NI,{children:[(0,i.jsx)(ew.l,{children:"Model"}),(0,i.jsx)(eH.I,{isReadOnly:!0,value:t.model})]}),(0,i.jsxs)(e_.NI,{children:[(0,i.jsx)(ew.l,{children:"Primary key"}),(0,i.jsx)(eF.Ph,{placeholder:"Select primary key",isMulti:!0,closeMenuOnSelect:!1,options:v.map(e=>({label:e,value:e})),value:(null!=p?p:[]).map(e=>({label:e,value:e})),onChange:e=>{l({...t,primary_key:1==e.length?e[0].value:e.map(e=>e.value)})}})]}),(0,i.jsxs)(e_.NI,{children:[(0,i.jsx)(ew.l,{children:"Columns"}),(0,i.jsx)(eh.X,{marginBottom:"10px",isChecked:o,onChange:e=>{a(e.target.checked),l({...t,columns:void 0})},children:"All columns"}),!o&&(0,i.jsx)(eF.Ph,{isMulti:!0,closeMenuOnSelect:!1,options:v.map(e=>({label:e,value:e})),value:(null!==(n=t.columns)&&void 0!==n?n:[]).map(e=>({label:e,value:e})),onChange:e=>{let n;let r=e.map(e=>e.value);n=0===r.length?void 0:r,l({...t,columns:n})}})]})]})}var eD=t(5045),eU=t(22363),eW=t(65374);function eB(e){let{params:n,column:t}=e,{runAction:l}=(0,eU.$q)(),{readOnly:r}=(0,eW.$)(),a=(e,t)=>{l("value_diff_detail",{...n,...e},t)};return(0,i.jsxs)(o.k,{children:[(0,i.jsx)(u.x,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:t}),(0,i.jsx)(s.L,{}),(0,i.jsx)(T.v,{isLazy:!0,children:e=>{let{isOpen:n}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(I.j,{className:"row-context-menu",visibility:n?"visible":"hidden",width:n?"auto":"0px",minWidth:n?"auto":"0px",as:V.h,icon:(0,i.jsx)(N.J,{as:z.D_A}),variant:"unstyled",size:"sm",isDisabled:r}),(0,i.jsx)(A.h,{children:(0,i.jsx)(P.q,{lineHeight:"20px",children:(0,i.jsxs)(eD.k,{title:"Action",as:u.x,fontSize:"8pt",children:[(0,i.jsx)(H.s,{fontSize:"10pt",onClick:()=>{a({},{showForm:!0})},children:"Show mismatched values..."}),(0,i.jsxs)(H.s,{fontSize:"10pt",onClick:()=>{a({columns:[t]},{showForm:!1})},children:["Show mismatched values for '",t,"'"]})]})})})]})}})]})}let eq=(0,c.G)(function(e,n){let{run:t}=e,l=t.result,r=t.params,a=e=>{let n=e[2];return null!=n&&n<1?"diff-cell-modified":""},s=Array.isArray(r.primary_key)?r.primary_key:[r.primary_key],c=[{key:"__is_pk__",name:"",width:30,maxWidth:30,renderCell:e=>{let{row:n}=e;return(0,i.jsx)(S.M,{height:"100%",children:s.includes(String(n[0]))&&(0,i.jsx)(N.J,{as:z.MhP})})}},{key:"0",name:"Column",resizable:!0,renderCell:e=>{let{row:n,column:t}=e;return(0,i.jsx)(eB,{column:String(n[t.key]),params:r})},cellClass:"cell-show-context-menu"},{key:"1",name:"Matched",resizable:!0,cellClass:a},{key:"2",name:"Matched %",resizable:!0,renderCell:e=>{let{column:n,row:t}=e,l=t[n.key];return(0,i.jsx)(u.x,{textAlign:"end",children:null!=l?"".concat((100*l).toFixed(2)," %"):"N/A"})},cellClass:a}];return(0,i.jsxs)(o.k,{direction:"column",gap:"5px",pt:"5px",height:"100%",children:[(0,i.jsxs)(u.x,{px:"16px",children:["Model: ",r.model,", ",l.summary.total," total (",l.summary.total-l.summary.added-l.summary.removed," common,"," ",l.summary.added," added, ",l.summary.removed," removed)"]}),(0,i.jsx)(M.o,{ref:n,style:{blockSize:"auto",maxHeight:"100%",overflow:"auto",borderBlock:"1px solid lightgray"},columns:c,rows:l.data.data,renderers:{noRowsFallback:(0,i.jsx)(M.W,{})},defaultColumnOptions:{resizable:!0},className:"rdg-light",enableScreenshot:!0})]})});var eZ=t(17437),eK=t(17376);function eJ(e){var n;let{params:t,onParamsChanged:l,setIsReadyToExecute:r}=e,[o,a]=(0,R.useState)(!t.columns||0===t.columns.length),s=t.model,{columns:c,isLoading:d,error:m}=(0,eS.ZP)(t.model);(0,R.useEffect)(()=>{r(!!s)},[s,r]);let h=c.map(e=>e.name);return d?(0,i.jsx)(u.x,{children:"Loading..."}):0===h.length||m?(0,i.jsx)(u.x,{children:"Error: Please provide the 'catalog.json' to list column candidates"}):(0,i.jsxs)(ee.g,{gap:5,m:"8px 24px",paddingBottom:"200px",children:[(0,i.jsxs)(e_.NI,{children:[(0,i.jsx)(ew.l,{children:"Model"}),(0,i.jsx)(eH.I,{isReadOnly:!0,value:t.model})]}),(0,i.jsxs)(e_.NI,{children:[(0,i.jsx)(ew.l,{children:"Columns"}),(0,i.jsx)(eh.X,{marginBottom:"10px",isChecked:o,onChange:e=>{a(e.target.checked),l({...t,columns:void 0})},children:"All columns"}),!o&&(0,i.jsx)(eF.Ph,{isMulti:!0,closeMenuOnSelect:!1,options:h.map(e=>({label:e,value:e})),value:(null!==(n=t.columns)&&void 0!==n?n:[]).map(e=>({label:e,value:e})),onChange:e=>{let n;let r=e.map(e=>e.value);n=0===r.length?void 0:r,l({...t,columns:n})}})]})]})}let eQ={lineage_diff:{title:"Lineage Diff",icon:l.Ks7},schema_diff:{title:"Schema Diff",icon:eK.C8A},query:{title:"Query",icon:l.r2i,RunResultView:es},query_base:{title:"Query Base",icon:l.r2i,RunResultView:es},query_diff:{title:"Query Diff",icon:l.r2i,RunResultView:ex},row_count:{title:"Row Count",icon:eK.QUK,RunResultView:eb},row_count_diff:{title:"Row Count Diff",icon:eK.QUK,RunResultView:eC},profile:{title:"Profile",icon:l.KA6,RunResultView:ec,RunForm:eJ},profile_diff:{title:"Profile Diff",icon:l.KA6,RunResultView:eu,RunForm:eJ},value_diff:{title:"Value Diff",icon:l.pRi,RunResultView:eq,RunForm:ez},value_diff_detail:{title:"Value Diff Detail",icon:l.pRi,RunResultView:eP,RunForm:ez},top_k_diff:{title:"Top-K Diff",icon:eZ.Pkc,RunResultView:eA,RunForm:function(e){let{params:n,onParamsChanged:t,setIsReadyToExecute:l}=e,{columns:r,isLoading:o,error:a}=(0,eS.ZP)(n.model),s=r.map(e=>e.name);return((0,R.useEffect)(()=>{l(!!n.column_name)},[n,l]),o)?(0,i.jsx)(u.x,{children:"Loading..."}):0===s.length||a?(0,i.jsx)(u.x,{children:"Error: Please provide the 'catalog.json' to list column candidates"}):(0,i.jsx)(u.x,{m:"16px",children:(0,i.jsxs)(e_.NI,{children:[(0,i.jsx)(ew.l,{children:"Pick a column to show top-k"}),(0,i.jsx)(ek.P,{placeholder:"Select column",value:n.column_name,onChange:e=>{let l=e.target.value;t({...n,column_name:l})},children:s.map(e=>(0,i.jsx)("option",{value:e,children:e},e))})]})})}},histogram_diff:{title:"Histogram Diff",icon:l.dku,RunResultView:k,RunForm:r.r},sandbox:{title:"Sandbox",icon:l.iQd}},eG=e=>eQ[e]},63003:function(e,n,t){"use strict";t.d(n,{U:function(){return o},f:function(){return a}});var l=t(25922),r=t(93482),i=t(77548);let o=l.default.create({baseURL:r.U}),a=new i.S},94725:function(e,n,t){"use strict";t.d(n,{V:function(){return l}});let l={rowCount:e=>["row_count",e],lineage:()=>["lineage"],checks:()=>["checks","list"],check:e=>["checks",e],runs:()=>["runs"],run:e=>["runs",e],runsAggregated:()=>["runs_aggregated"],flag:()=>["flag"],instanceInfo:()=>["instance_info"]}},76803:function(e,n,t){"use strict";t.d(n,{bV:function(){return i},yG:function(){return r}});var l=t(63003);async function r(){return(await l.U.get("/api/flag")).data}async function i(){try{await l.U.post("/api/relaunch-hint/completed")}catch(e){}}},21454:function(e,n,t){"use strict";t.d(n,{L6:function(){return r},xx:function(){return i}});var l=t(63003);async function r(){return(await l.U.get("/api/info")).data}async function i(e){return(await l.U.get("/api/model/".concat(e))).data}},64625:function(e,n,t){"use strict";t.d(n,{Eg:function(){return a},Qp:function(){return o},g9:function(){return i},i7:function(){return d},rf:function(){return s},sw:function(){return c},v1:function(){return u}});var l=t(63003),r=t(88894);async function i(e,n,t){let i=(null==t?void 0:t.trackProps)?{...t.trackProps}:{};return(0,r.rM)()&&(i.breaking_change_analysis=!0),(await l.U.post("/api/runs",{type:e,params:n,nowait:null==t?void 0:t.nowait,track_props:i})).data}async function o(e,n){return(await l.U.get("/api/runs/".concat(e,"/wait"),{params:{timeout:n}})).data}async function a(e){return await l.U.post("/api/runs/".concat(e,"/cancel"))}async function s(e,n){return(await l.U.post("/api/checks/".concat(e,"/run"),{nowait:null==n?void 0:n.nowait})).data}async function u(e,n,t){return(await l.U.post("/api/runs/search",{type:e,params:n,limit:t})).data}async function c(){return(await l.U.get("/api/runs")).data}async function d(){return(await l.U.post("/api/runs/aggregate",{})).data}},69069:function(e,n,t){"use strict";t.d(n,{PQ:function(){return o},V5:function(){return s},gr:function(){return d},mB:function(){return c},po:function(){return i},tw:function(){return u},xq:function(){return a}});var l=t(54076),r=t(63003);async function i(e){return(await r.U.post("/api/save-as",e)).data}async function o(e){return(await r.U.post("/api/rename",e)).data}async function a(){return(await r.U.post("/api/export")).data}async function s(e,n){let t=new FormData;return t.append("file",e),t.append("checks_only",(!!n).toString()),(await r.U.post("/api/import",t)).data}async function u(){return 208===(await r.U.get("/api/sync")).status}async function c(e){try{let n=await r.U.post("/api/sync",e);if(202===n.status)return{status:"accepted"};if(208===n.status)return{status:"syncing"}}catch(e){if((0,l.IZ)(e)&&e.response&&409===e.response.status)return{status:"conflict"}}throw Error("Failed to sync state")}async function d(){return(await r.U.post("/api/share")).data}},88894:function(e,n,t){"use strict";t.d(n,{B2:function(){return a},BA:function(){return u},FF:function(){return s},JY:function(){return r},Je:function(){return m},KB:function(){return f},P6:function(){return c},U8:function(){return o},lH:function(){return p},nO:function(){return x},oq:function(){return i},rM:function(){return h},v4:function(){return v}});var l=t(50576);function r(){let e=function(e){let n=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return n?n.pop():""}("recce_user_id"),n="b1ea2155354b7e1e41981715f16599f2";if(e&&n)try{(0,l.Pn)(n,{analytics:{userId:e,autocapture:!0},sr:{sampleRate:1}})}catch(e){console.error(e)}}function i(e){(0,l.j)("[Web] multi_nodes_action",e)}function o(e){(0,l.j)("[Web] history_action",e)}function a(e){(0,l.j)("[Experiment] preview_change",e)}function s(e){(0,l.j)("[Experiment] preview_change",e)}function u(e){(0,l.j)("[Experiment] single_environment",e)}function c(e){(0,l.j)("[Experiment] recommend_preset_check",e)}let d=!1;function m(e){(0,l.j)("[Experiment] breaking_change_analysis",e),d=e.enabled}function h(){return d}function f(e){(0,l.j)("Column level lineage",e)}function v(e){(0,l.j)("share_state",e)}function p(e){(0,l.j)("state_action",e)}function x(e){(0,l.j)("[Click] copy_to_clipboard",e)}},93482:function(e,n,t){"use strict";t.d(n,{U:function(){return i}});var l=t(85555);let r=l.env.NEXT_PUBLIC_API_URL;null!=r||(r=window.location.origin);let i=r,o=l.env.NEXT_PUBLIC_CLOUD_WEB_URL;null!=o||(o="https://cloud.datarecce.io")},19692:function(e,n,t){"use strict";t.d(n,{cP:function(){return N},kJ:function(){return T},P:function(){return I}});var l=t(26415),r=t(61655),i=t(88736),o=t(87270),a=t(97129),s=t(94725),u=t(21454),c=t(60657),d=t(77622),m=t(93089),h=t(47796),f=t(70620),v=t(58759),p=t(8624),x=t(79558),g=t(80794),y=t(26861),j=t(93482),C=t(62461),b=t.n(C),_=t(64625),w=t(76803),k=t(43172),S=t(88894),M=t(94002),R=t(58687);function E(e){let{connect:n}=e;return(0,l.jsxs)(f.h,{children:[(0,l.jsx)(v.x,{children:"Server Disconnected"}),(0,l.jsx)(p.f,{children:(0,l.jsx)(x.x,{children:"The server connection has been lost. Please restart the Recce server and try again."})}),(0,l.jsx)(g.m,{children:(0,l.jsx)(y.z,{colorScheme:"blue",onClick:()=>{n()},children:"Retry"})})]})}function O(e){let{shareUrl:n}=e;return(0,l.jsxs)(f.h,{children:[(0,l.jsx)(v.x,{children:"Share Instance Expired"}),(0,l.jsx)(p.f,{children:(0,l.jsx)(x.x,{children:"This Share Instance has expired. Please restart the share instance."})}),(0,l.jsx)(g.m,{children:(0,l.jsx)(R.default,{href:n,passHref:!0,children:(0,l.jsx)(y.z,{colorScheme:"blue",children:"Restart"})})})]})}let L=(0,a.createContext)({isActionAvailable:()=>!0});function N(e){var n,t;let{children:C}=e,R=(0,o.a)({queryKey:s.V.lineage(),queryFn:u.L6}),N=(0,o.a)({queryKey:s.V.runsAggregated(),queryFn:_.i7}),T=(0,a.useMemo)(()=>{var e;let n=null===(e=R.data)||void 0===e?void 0:e.lineage;if((null==n?void 0:n.base)&&n.current)return(0,r.WU)(n.base,n.current,n.diff)},[R.data]),I=null===(n=R.error)||void 0===n?void 0:n.message,{state_metadata:V,lineage:A,sqlmesh:P,demo:H,review_mode:F,cloud_mode:z,file_mode:D,filename:U,adapter_type:W,git:B,pull_request:q,support_tasks:Z}=null!==(t=R.data)&&void 0!==t?t:{},K=null==A?void 0:A.base.manifest_metadata,J=null==A?void 0:A.current.manifest_metadata,{connectionStatus:Q,connect:G,envStatus:$}=function(){let e=(0,c.p)(),n=(0,a.useRef)({ws:void 0,status:"pending"}),[t,l]=(0,a.useState)("pending"),[r,o]=(0,a.useState)(void 0);n.current.status=t;let u=(0,i.NL)(),d=()=>{u.invalidateQueries({queryKey:s.V.lineage()}),u.invalidateQueries({queryKey:s.V.checks()}),u.invalidateQueries({queryKey:s.V.runs()})},m=()=>{let t=new WebSocket("".concat(j.U.replace(/(http)(s)?:\/\//,"ws$2://"),"/api/ws"));n.current.ws=t,t.onopen=()=>{t.send("ping")},t.onmessage=t=>{if("pong"===t.data){"disconnected"===n.current.status&&d(),l("connected");return}try{let n=JSON.parse(t.data);if("refresh"===n.command){let{eventType:t,srcPath:l}=n.event,[r,i]=l.split("/").slice(-2),o=b().parse(i).name,a="".concat(r,"-").concat(o,"-").concat(t);e.isActive(a)||e({id:a,description:"Detected ".concat(r," ").concat(o," ").concat(t),status:"info",variant:"left-accent",position:"bottom-right",duration:5e3,isClosable:!0}),d()}else if("relaunch"===n.command)o("relaunch");else{let{id:t,title:l,description:r,status:i,position:o,duration:a}=n.event;e({id:t||"broadcast",title:l,description:r,status:null!=i?i:"info",variant:"left-accent",position:null!=o?o:"bottom-right",duration:null!=a?a:5e3,isClosable:!0})}}catch(e){console.error(e)}},t.onerror=e=>{console.error(e)},t.onclose=()=>{l(e=>"connected"===e?"disconnected":e),n.current.ws=void 0}};return(0,a.useEffect)(()=>{let e=n.current;return m(),()=>{e.ws&&e.ws.close()}},[]),{connectionStatus:t,connect:m,envStatus:r}}(),{data:X,isLoading:Y}=(0,k.P)(),{data:ee}=(0,M.e)(),{onClose:en}=(0,d.q)(),[et,el]=(0,a.useState)(!1),er=(0,i.NL)(),ei=(0,a.useCallback)(e=>{if(Z){var n;return null===(n=Z[e])||void 0===n||n}return!0},[Z]);(0,a.useEffect)(()=>{Y||("relaunch"===$&&(null==X?void 0:X.single_env_onboarding)&&X.show_relaunch_hint?(el(!0),(0,S.BA)({action:"target_base_added"})):el(!1))},[X,$,Y]);let{share_url:eo}=null!=ee?ee:{};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(L.Provider,{value:{lineageGraph:T,retchLineageGraph:()=>{N.refetch()},envInfo:{stateMetadata:V,adapterType:W,git:B,pullRequest:q,dbt:{base:K,current:J},sqlmesh:P},reviewMode:F,cloudMode:z,fileMode:D,fileName:U,isDemoSite:H,error:I,supportTasks:Z,isActionAvailable:ei,isLoading:R.isLoading,runsAggregated:N.data,refetchRunsAggregated:()=>{N.refetch()}},children:C}),(0,l.jsxs)(m.u_,{isOpen:"disconnected"===Q,onClose:()=>{},isCentered:!0,children:[(0,l.jsx)(h.Z,{}),eo?(0,l.jsx)(O,{shareUrl:eo}):(0,l.jsx)(E,{connect:G})]}),(null==X?void 0:X.single_env_onboarding)&&(0,l.jsxs)(m.u_,{isOpen:et,onClose:()=>{en(),(0,w.bV)(),er.invalidateQueries({queryKey:s.V.flag()})},isCentered:!0,children:[(0,l.jsx)(h.Z,{}),(0,l.jsxs)(f.h,{children:[(0,l.jsx)(v.x,{children:"Target-base Added"}),(0,l.jsx)(p.f,{children:(0,l.jsx)(x.x,{children:"Please restart the Recce server."})}),(0,l.jsx)(g.m,{children:(0,l.jsx)(y.z,{colorScheme:"blue",onClick:()=>{en(),(0,w.bV)(),er.invalidateQueries({queryKey:s.V.flag()})},children:"Got it!"})})]})]})]})}let T=()=>(0,a.useContext)(L),I=()=>{let{runsAggregated:e,refetchRunsAggregated:n}=T();return[e,n]}},22363:function(e,n,t){"use strict";t.d(n,{Q2:function(){return I},$q:function(){return V}});var l=t(26415),r=t(97129),i=t(93089),o=t(47796),a=t(70620),s=t(58759),u=t(95388),c=t(6651),d=t(19730),m=t(2585),h=t(60278),f=t(3232),v=t(81983),p=t(18979),x=t(8624),g=t(85534),y=t(80794),j=t(31680),C=t(26861),b=t(64315);let _=e=>({value_diff:"https://docs.datarecce.io/features/lineage/#value-diff",profile_diff:"https://docs.datarecce.io/features/lineage/#profile-diff",histogram_diff:"https://docs.datarecce.io/features/lineage/#histogram-diff",top_k_diff:"https://docs.datarecce.io/features/lineage/#top-k-diff"})[e]||null,w=e=>{let{isOpen:n,onClose:t,onExecute:w,type:k,title:S,params:M,RunForm:R}=e,[E,O]=(0,r.useState)(M),[L,N]=(0,r.useState)(!1),T=_(k);return(0,l.jsxs)(i.u_,{isOpen:n,onClose:t,size:"6xl",scrollBehavior:"inside",children:[(0,l.jsx)(o.Z,{}),(0,l.jsxs)(a.h,{overflowY:"auto",height:"75%",minHeight:"400px",children:[(0,l.jsxs)(s.x,{className:"flex items-center",children:[S," ",T&&(0,l.jsxs)(u.J,{trigger:"hover",placement:"bottom-end",children:[(0,l.jsx)(c.x,{children:(0,l.jsx)(d.h,{display:"flex",size:"sm",variant:"unstyled","aria-label":"Click this button to learn more about the SQL behind",icon:(0,l.jsx)(m.J,{verticalAlign:"middle",as:b.aU,boxSize:"16px"}),onClick:()=>window.open(T,"_blank"),onFocus:e=>{e.preventDefault()}})}),(0,l.jsx)(h.y,{bg:"black",color:"white",children:(0,l.jsxs)(f.b,{fontSize:"sm",p:2,children:["Click"," ",(0,l.jsx)(v.r,{href:T,target:"_blank",textDecoration:"underline",color:"white",_hover:{color:"blue.300"},children:"here"})," ","to learn more about the SQL behind"]})})]})]}),(0,l.jsx)(p.o,{}),(0,l.jsx)(x.f,{p:"0px",h:"100%",overflow:"auto",borderY:"1px solid lightgray",children:(0,l.jsx)(g.x,{style:{contain:"layout"},children:R&&(0,l.jsx)(R,{params:E,onParamsChanged:O,setIsReadyToExecute:N})})}),(0,l.jsx)(y.m,{children:(0,l.jsx)(j.k,{gap:"10px",children:(0,l.jsx)(C.z,{isDisabled:!L,colorScheme:"blue",onClick:()=>{w(k,E)},children:"Execute"})})})]})]})};var k=t(77622),S=t(60657),M=t(93737),R=t(64625),E=t(72752),O=t(88736),L=t(94725);let N=(0,r.createContext)({runAction:()=>{},showRunId:e=>{},isRunResultOpen:!1,closeRunResult:()=>{},isHistoryOpen:!1,closeHistory:()=>{},showHistory:()=>{},clearRunResult:()=>{}}),T=e=>{let[n]=(0,M.TH)();(0,r.useEffect)(()=>{e()},[e,n])};function I(e){var n;let{children:t}=e,[i,o]=(0,r.useState)(),{isOpen:a,onOpen:s,onClose:u}=(0,k.q)(),{isOpen:c,onOpen:d,onClose:m}=(0,k.q)(),{isOpen:h,onOpen:f,onClose:v}=(0,k.q)(),p=(0,S.p)(),[x,g]=(0,r.useState)(),[y,j]=(0,M.TH)(),C=(0,O.NL)(),b=(0,r.useCallback)(async(e,n)=>{g(e),d(),!1!==n&&await C.invalidateQueries({queryKey:L.V.runs()})},[g,d,C]),_=(0,r.useCallback)(()=>{g(void 0),m()},[m,g]),I=(0,r.useCallback)(async(e,n,t)=>{try{let l;let r=new Date().getTime().toString();if(null==t?void 0:t.showLast){let t=await (0,R.v1)(e,n,1);1===t.length&&(l=t[0])}let i=(0,E.N)(e);if(void 0===i)throw Error("Unknown run type: ".concat(e));let{title:a,RunResultView:u,RunForm:c}=i;if(void 0===u)throw Error("Run type ".concat(e," does not have a result view"));if(void 0!=c&&(null==t?void 0:t.showForm))o({session:r,title:a,type:e,params:n,lastRun:l,options:t,RunForm:c}),s();else{let{run_id:l}=await (0,R.g9)(e,n,{nowait:!0,trackProps:null==t?void 0:t.trackProps});await b(l),await C.invalidateQueries({queryKey:L.V.runs()}),y.startsWith("/lineage")&&j("/lineage")}}catch(e){p({title:"Failed to submit a run",description:e instanceof Error?e.message:void 0,position:"bottom-right",status:"error",duration:5e3,isClosable:!0})}},[o,s,b,p,y,j,C]);T(u);let V=async(e,n)=>{try{var t;u();let{run_id:l}=await (0,R.g9)(e,n,{nowait:!0,trackProps:null==i?void 0:null===(t=i.options)||void 0===t?void 0:t.trackProps});await b(l)}catch(e){p({title:"Failed to submit a run",description:e instanceof Error?e.message:void 0,position:"bottom-right",status:"error",duration:5e3,isClosable:!0})}};return(0,l.jsxs)(N.Provider,{value:{runAction:I,runId:x,showRunId:b,isRunResultOpen:c,closeRunResult:m,isHistoryOpen:h,closeHistory:v,showHistory:f,clearRunResult:_},children:[i&&(0,l.jsx)(w,{isOpen:a,onClose:u,onExecute:V,title:i.title,type:i.type,params:i.params,initialRun:i.lastRun,RunForm:(null===(n=i.options)||void 0===n?void 0:n.showForm)&&i.RunForm?i.RunForm:void 0},i.session),t]})}let V=()=>(0,r.useContext)(N)},22301:function(e,n,t){"use strict";t.d(n,{L:function(){return o},p:function(){return a}});var l=t(26415),r=t(97129);let i=(0,r.createContext)({latestSelectedCheckId:"",setLatestSelectedCheckId:()=>{}});function o(e){let{children:n}=e,[t,o]=r.useState("");return(0,l.jsx)(i.Provider,{value:{setLatestSelectedCheckId:o,latestSelectedCheckId:t},children:n})}let a=()=>(0,r.useContext)(i)},65374:function(e,n,t){"use strict";t.d(n,{$:function(){return s},o:function(){return a}});var l=t(26415),r=t(97129),i=t(94002);let o=(0,r.createContext)({readOnly:!1,singleEnv:!1,authed:!1,lifetimeExpiredAt:void 0});function a(e){let{children:n}=e,{data:t,isLoading:a}=(0,i.e)(),[s,u]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),[m,h]=(0,r.useState)(!1),[f,v]=(0,r.useState)();return(0,r.useEffect)(()=>{!a&&t&&(u(t.read_only),d(t.single_env),h(t.authed),t.lifetime_expired_at&&(v(new Date(t.lifetime_expired_at)),console.log("lifetime expired at",t.lifetime_expired_at)))},[t,a]),(0,l.jsx)(o.Provider,{value:{readOnly:s,singleEnv:c,authed:m,lifetimeExpiredAt:f},children:n})}let s=()=>(0,r.useContext)(o)},89884:function(e,n,t){"use strict";t.d(n,{Z8:function(){return a},nw:function(){return i},rV:function(){return s},y3:function(){return c}});var l=t(26415),r=t(97129);let i='select * from {{ ref("mymodel") }}',o=(0,r.createContext)({sqlQuery:i,setSqlQuery:()=>{},primaryKeys:void 0,setPrimaryKeys:()=>{},isCustomQueries:!1,setCustomQueries:()=>{},baseSqlQuery:i,setBaseSqlQuery:()=>{}});function a(e){let{children:n}=e,[t,a]=r.useState(i),[s,u]=r.useState(i),[c,d]=r.useState(!1),[m,h]=r.useState();return(0,l.jsx)(o.Provider,{value:{setSqlQuery:a,sqlQuery:t,setPrimaryKeys:h,primaryKeys:m,isCustomQueries:c,setCustomQueries:d,baseSqlQuery:s,setBaseSqlQuery:u},children:n})}let s=()=>(0,r.useContext)(o),u=(0,r.createContext)({isNodesFetching:[],setIsNodesFetching:()=>{}});function c(e){let{children:n}=e,[t,i]=r.useState([]);return(0,l.jsx)(u.Provider,{value:{isNodesFetching:t,setIsNodesFetching:i},children:n})}},34101:function(e,n,t){"use strict";t.d(n,{k:function(){return a},z:function(){return s}});var l=t(26415),r=t(97129),i=t(69069);let o=(0,r.createContext)(void 0);function a(e){let{children:n}=e,[t,a]=(0,r.useState)(),[s,u]=(0,r.useState)(!1),[c,d]=(0,r.useState)(),m=async()=>{u(!0),d(void 0),a(void 0);try{let e=await (0,i.gr)();if("success"!==e.status){d(e.message);return}a(e.share_url)}catch(e){d(e.message)}finally{u(!1)}};return(0,l.jsx)(o.Provider,{value:{shareUrl:t,isLoading:s,error:c,handleShareClick:m},children:n})}let s=()=>{let e=(0,r.useContext)(o);if(!e)throw Error("useRecceShareStateContext must be used within a RecceShareStateContextProvider");return e}},78933:function(e,n,t){"use strict";var l=t(97129),r=t(21454),i=t(19692),o=t(66908),a=t.n(o);function s(e,n){let t=[];return e.forEach(e=>{t.some(n=>n.name===e.name)||t.push(e)}),n.forEach(e=>{t.some(n=>n.name===e.name)||t.push(e)}),t}n.ZP=e=>{var n;let{lineageGraph:t}=(0,i.kJ)(),[o,u]=(0,l.useState)([]),[c,d]=(0,l.useState)(),[m,h]=(0,l.useState)(!0),[f,v]=(0,l.useState)(null),p=a().find(null==t?void 0:t.nodes,{name:e}),x=(0,l.useMemo)(()=>p?function(e){function n(e){return(null==e?void 0:e.columns)?Object.values(e.columns):[]}return s(n(e.data.base),n(e.data.current))}(p):[],[p]),g=p?null===(n=p.data.current)||void 0===n?void 0:n.primary_key:void 0,y=(0,l.useCallback)(async()=>{try{let e=(await (0,r.xx)(null==p?void 0:p.id)).model;if(!e.base.columns||!e.current.columns){u([]);return}d(e.current.primary_key);let n=Object.values(e.base.columns),t=Object.values(e.current.columns);u(s(n,t))}catch(e){v(e)}},[null==p?void 0:p.id]);return(0,l.useEffect)(()=>{x.length>0?(u(x),d(g)):(null==p?void 0:p.id)===void 0?u([]):y().catch(e=>{}),h(!1)},[y,null==p?void 0:p.id,x,g]),{columns:o,primaryKey:c,isLoading:m,error:f}}},94002:function(e,n,t){"use strict";t.d(n,{e:function(){return a}});var l=t(87270),r=t(94725),i=t(63003);async function o(){return(await i.U.get("/api/instance-info")).data}let a=()=>(0,l.a)({queryKey:r.V.instanceInfo(),queryFn:o})},43172:function(e,n,t){"use strict";t.d(n,{P:function(){return o}});var l=t(87270),r=t(76803),i=t(94725);let o=()=>(0,l.a)({queryKey:i.V.flag(),queryFn:r.yG})},56199:function(e,n,t){"use strict";function l(e,n){let t=[...e],l=[...n],r=[];for(;t.length>0&&l.length>0;)if(r.includes(t[0]))t.shift();else if(r.includes(l[0]))l.shift();else if(t[0]===l[0])r.push(t[0]),t.shift(),l.shift();else if(l.includes(t[0])){let e=l.indexOf(t[0]);for(let n=0;n<e;n++)r.includes(l[n])||r.push(l[n]);r.push(t[0]),t.shift(),l.splice(0,e+1)}else r.push(t[0]),t.shift();return t.forEach(e=>{r.includes(e)||r.push(e)}),l.forEach(e=>{r.includes(e)||r.push(e)}),r}function r(e,n){let t=l(e,n),r={};for(let l of t)e.includes(l)?n.includes(l)?r[l]=void 0:r[l]="removed":r[l]="added";let i={};e.forEach((e,n)=>{i[e]=n});let o=-1;for(let e of t){let n=i[e];null!=n&&(n>o?o=n:r[e]="reordered")}return r}t.d(n,{Z:function(){return r},_:function(){return l}})},10499:function(){}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[509],{27462:function(t,a,r){r.d(a,{KA6:function(){return l},Ks7:function(){return e},WzH:function(){return i},dku:function(){return h},eOs:function(){return d},iQd:function(){return u},pRi:function(){return o},r2i:function(){return g}});var n=r(25281);function o(t){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z"}},{tag:"path",attr:{d:"M9 17h-2"}},{tag:"path",attr:{d:"M13 12h-6"}},{tag:"path",attr:{d:"M11 7h-4"}}]})(t)}function e(t){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M19 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}},{tag:"path",attr:{d:"M19 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}},{tag:"path",attr:{d:"M5 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}},{tag:"path",attr:{d:"M7 12h3l3.5 6h3.5"}},{tag:"path",attr:{d:"M17 6h-3.5l-3.5 6"}}]})(t)}function h(t){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M3 3v18h18"}},{tag:"path",attr:{d:"M20 18v3"}},{tag:"path",attr:{d:"M16 16v5"}},{tag:"path",attr:{d:"M12 13v8"}},{tag:"path",attr:{d:"M8 16v5"}},{tag:"path",attr:{d:"M3 11c6 0 5 -5 9 -5s3 5 9 5"}}]})(t)}function i(t){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M9.615 20h-2.615a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8"}},{tag:"path",attr:{d:"M14 19l2 2l4 -4"}},{tag:"path",attr:{d:"M9 8h4"}},{tag:"path",attr:{d:"M9 12h2"}}]})(t)}function d(t){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1"}},{tag:"path",attr:{d:"M9 15l3 -3l3 3"}},{tag:"path",attr:{d:"M12 12l0 9"}}]})(t)}function u(t){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}},{tag:"path",attr:{d:"M11.192 17.966c-3.242 -.28 -5.972 -2.269 -8.192 -5.966c2.4 -4 5.4 -6 9 -6c3.326 0 6.14 1.707 8.442 5.122"}},{tag:"path",attr:{d:"M18.42 15.61a2.1 2.1 0 0 1 2.97 2.97l-3.39 3.42h-3v-3l3.42 -3.39z"}}]})(t)}function l(t){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"}},{tag:"path",attr:{d:"M12 18c-.328 0 -.652 -.017 -.97 -.05c-3.172 -.332 -5.85 -2.315 -8.03 -5.95c2.4 -4 5.4 -6 9 -6c3.465 0 6.374 1.853 8.727 5.558"}},{tag:"path",attr:{d:"M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"}},{tag:"path",attr:{d:"M20.2 20.2l1.8 1.8"}}]})(t)}function g(t){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M12 8a2 2 0 0 1 2 2v4a2 2 0 1 1 -4 0v-4a2 2 0 0 1 2 -2z"}},{tag:"path",attr:{d:"M17 8v8h4"}},{tag:"path",attr:{d:"M13 15l1 1"}},{tag:"path",attr:{d:"M3 15a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1"}}]})(t)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[147],{17437:function(t,r,n){n.d(r,{$OI:function(){return i},Pkc:function(){return o}});var e=n(25281);function o(t){return(0,e.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 3v18h18"}},{tag:"rect",attr:{width:"12",height:"4",x:"7",y:"5",rx:"1"}},{tag:"rect",attr:{width:"7",height:"4",x:"7",y:"13",rx:"1"}}]})(t)}function i(t){return(0,e.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}},{tag:"polyline",attr:{points:"15 3 21 3 21 9"}},{tag:"line",attr:{x1:"10",x2:"21",y1:"14",y2:"3"}}]})(t)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[409],{87830:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return n(54472)}])},54472:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}}),n(4591);let i=n(26415);n(97129);let o={fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},l={display:"inline-block"},r={display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},d={fontSize:14,fontWeight:400,lineHeight:"49px",margin:0};function s(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:"404: This page could not be found."}),(0,i.jsx)("div",{style:o,children:(0,i.jsxs)("div",{children:[(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,i.jsx)("h1",{className:"next-error-h1",style:r,children:"404"}),(0,i.jsx)("div",{style:l,children:(0,i.jsx)("h2",{style:d,children:"This page could not be found."})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},function(e){e.O(0,[275,217,744],function(){return e(e.s=87830)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{93918:function(e,n,r){Promise.resolve().then(r.t.bind(r,16316,23)),Promise.resolve().then(r.bind(r,76413))},76413:function(e,n,r){"use strict";r.d(n,{default:function(){return O}});var i=r(26415),o=r(63003),t=r(84647);let l=e=>{(0,t.c4)("#!"+e)},s=()=>[(0,t.LD)(()=>window.location.hash.replace(/^#!/,"")||"/",()=>"/ssr"),l];var c=r(25753),d=r(92339),f=r(4608),h=r(27794),u=r(61332),x=r(51385);let{definePartsStyle:a,defineMultiStyleConfig:p}=(0,x.D)(u.TB.keys),j=p({variants:{circular:a({control:(0,x.k0)({rounded:"full"})})},sizes:{xs:a({icon:(0,x.k0)({fontSize:"8px"}),control:(0,x.k0)({boxSize:"16px",padding:"4px"}),label:(0,x.k0)({fontSize:"xs"})})}}),k=(0,r(19838).fj)({baseStyle:{borderRadius:"4px"}});var b=r(88736),v=r(93737);r(97129);var m=r(89884),_=r(19692),z=r(22363),w=r(22301),y=r(65374),S=r(34101);function C(e){let{children:n}=e;return(0,i.jsx)(y.o,{children:(0,i.jsx)(S.k,{children:(0,i.jsx)(m.Z8,{children:(0,i.jsx)(_.cP,{children:(0,i.jsx)(m.y3,{children:(0,i.jsx)(z.Q2,{children:(0,i.jsx)(w.L,{children:n})})})})})})})}let E=(0,c.Z)({components:{MuiTooltip:{styleOverrides:{tooltip:{zIndex:1500}}}}}),N=(0,f.B1)({components:{Checkbox:j,Tooltip:k},colors:{brand:{100:"#fd683e",200:"#fd683e",300:"#fd683e",400:"#fd683e",500:"#fd683e",600:"#fd683e",700:"#fd683e",800:"#fd683e",900:"#fd683e"}}});function O(e){let{children:n}=e;return(0,i.jsx)(d.Z,{theme:E,children:(0,i.jsx)(h.x,{theme:N,children:(0,i.jsx)(b.aH,{client:o.f,children:(0,i.jsx)(v.F0,{hook:s,children:(0,i.jsx)(C,{children:n})})})})})}},16316:function(){}},function(e){e.O(0,[167,951,509,989,147,495,376,678,20,413,42,608,92,275,217,744],function(){return e(e.s=93918)}),_N_E=e.O()}]);
|