recce-nightly 1.2.0.20250506__py3-none-any.whl → 1.26.0.20251124__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of recce-nightly might be problematic. Click here for more details.
- recce/VERSION +1 -1
- recce/__init__.py +27 -22
- recce/adapter/base.py +11 -14
- recce/adapter/dbt_adapter/__init__.py +810 -480
- recce/adapter/dbt_adapter/dbt_version.py +3 -0
- recce/adapter/sqlmesh_adapter.py +24 -35
- recce/apis/check_api.py +39 -28
- recce/apis/check_func.py +33 -27
- recce/apis/run_api.py +25 -19
- recce/apis/run_func.py +29 -23
- recce/artifact.py +119 -51
- recce/cli.py +1299 -323
- recce/config.py +42 -33
- recce/connect_to_cloud.py +138 -0
- recce/core.py +55 -47
- recce/data/404.html +1 -1
- recce/data/__next.__PAGE__.txt +10 -0
- recce/data/__next._full.txt +23 -0
- recce/data/__next._head.txt +8 -0
- recce/data/__next._index.txt +8 -0
- recce/data/__next._tree.txt +5 -0
- recce/data/_next/static/52aV_JrNUZU6dMFgvTQEO/_buildManifest.js +11 -0
- recce/data/_next/static/52aV_JrNUZU6dMFgvTQEO/_clientMiddlewareManifest.json +1 -0
- recce/data/_next/static/chunks/02b996c7f6a29a06.js +4 -0
- recce/data/_next/static/chunks/19c10d219a6a21ff.js +1 -0
- recce/data/_next/static/chunks/2df9ec28a061971d.js +11 -0
- recce/data/_next/static/chunks/3098c987393bda15.js +1 -0
- recce/data/_next/static/chunks/393dc43e483f717a.css +2 -0
- recce/data/_next/static/chunks/399e8d91a7e45073.js +2 -0
- recce/data/_next/static/chunks/4d0186f631230245.js +1 -0
- recce/data/_next/static/chunks/5794ba9e10a9c060.js +11 -0
- recce/data/_next/static/chunks/715761c929a3f28b.js +110 -0
- recce/data/_next/static/chunks/71f88fcc615bf282.js +1 -0
- recce/data/_next/static/chunks/80d2a95eaf1201ea.js +1 -0
- recce/data/_next/static/chunks/9979c6109bbbee35.js +1 -0
- recce/data/_next/static/chunks/99d638224186c118.js +1 -0
- recce/data/_next/static/chunks/d003eb36240e92f3.js +1 -0
- recce/data/_next/static/chunks/d3167cdfec4fc351.js +1 -0
- recce/data/_next/static/chunks/e124bccf574a3361.css +1 -0
- recce/data/_next/static/chunks/f40141db1bdb46f0.css +6 -0
- recce/data/_next/static/chunks/fcc53a88741a52f9.js +1 -0
- recce/data/_next/static/chunks/turbopack-b1920d28cfb1f28d.js +3 -0
- recce/data/_next/static/media/favicon.a8d38d84.ico +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-800-normal.d80d830d.woff2 +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-800-normal.f9d58125.woff +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.076c2a93.woff2 +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.a4fa76b5.woff +0 -0
- recce/data/_next/static/media/montserrat-latin-800-normal.cde454cc.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-800-normal.d5761935.woff +0 -0
- recce/data/_next/static/media/montserrat-latin-ext-800-normal.40ec0659.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-ext-800-normal.b671449b.woff +0 -0
- recce/data/_next/static/media/montserrat-vietnamese-800-normal.9f7b8541.woff +0 -0
- recce/data/_next/static/media/montserrat-vietnamese-800-normal.f9eb854e.woff2 +0 -0
- recce/data/_next/static/media/reload-image.7aa931c7.svg +4 -0
- recce/data/_not-found/__next._full.txt +17 -0
- recce/data/_not-found/__next._head.txt +8 -0
- recce/data/_not-found/__next._index.txt +8 -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 +3 -0
- recce/data/_not-found.html +1 -0
- recce/data/_not-found.txt +17 -0
- recce/data/auth_callback.html +68 -0
- recce/data/imgs/reload-image.svg +4 -0
- recce/data/index.html +1 -27
- recce/data/index.txt +23 -7
- recce/diff.py +6 -12
- recce/event/__init__.py +86 -74
- recce/event/collector.py +33 -22
- recce/event/track.py +49 -27
- recce/exceptions.py +1 -1
- recce/git.py +7 -7
- recce/github.py +57 -53
- recce/mcp_server.py +716 -0
- recce/models/__init__.py +4 -1
- recce/models/check.py +6 -7
- recce/models/run.py +1 -0
- recce/models/types.py +131 -28
- recce/pull_request.py +27 -25
- recce/run.py +165 -121
- recce/server.py +303 -111
- recce/state/__init__.py +31 -0
- recce/state/cloud.py +632 -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 +188 -143
- recce/tasks/__init__.py +19 -3
- recce/tasks/core.py +11 -13
- recce/tasks/dataframe.py +82 -18
- recce/tasks/histogram.py +69 -34
- recce/tasks/lineage.py +2 -2
- recce/tasks/profile.py +152 -86
- recce/tasks/query.py +139 -87
- recce/tasks/rowcount.py +37 -31
- recce/tasks/schema.py +18 -15
- recce/tasks/top_k.py +35 -35
- recce/tasks/valuediff.py +216 -152
- recce/util/__init__.py +3 -0
- recce/util/api_token.py +80 -0
- recce/util/breaking.py +87 -85
- recce/util/cll.py +274 -219
- recce/util/io.py +22 -17
- recce/util/lineage.py +65 -16
- recce/util/logger.py +1 -1
- recce/util/onboarding_state.py +45 -0
- recce/util/perf_tracking.py +85 -0
- recce/util/recce_cloud.py +322 -72
- recce/util/singleton.py +4 -4
- recce/yaml/__init__.py +7 -10
- recce_cloud/__init__.py +24 -0
- recce_cloud/api/__init__.py +17 -0
- recce_cloud/api/base.py +111 -0
- recce_cloud/api/client.py +150 -0
- recce_cloud/api/exceptions.py +26 -0
- recce_cloud/api/factory.py +63 -0
- recce_cloud/api/github.py +76 -0
- recce_cloud/api/gitlab.py +82 -0
- recce_cloud/artifact.py +57 -0
- recce_cloud/ci_providers/__init__.py +9 -0
- recce_cloud/ci_providers/base.py +82 -0
- recce_cloud/ci_providers/detector.py +147 -0
- recce_cloud/ci_providers/github_actions.py +136 -0
- recce_cloud/ci_providers/gitlab_ci.py +130 -0
- recce_cloud/cli.py +245 -0
- recce_cloud/upload.py +214 -0
- {recce_nightly-1.2.0.20250506.dist-info → recce_nightly-1.26.0.20251124.dist-info}/METADATA +68 -37
- recce_nightly-1.26.0.20251124.dist-info/RECORD +180 -0
- {recce_nightly-1.2.0.20250506.dist-info → recce_nightly-1.26.0.20251124.dist-info}/WHEEL +1 -1
- {recce_nightly-1.2.0.20250506.dist-info → recce_nightly-1.26.0.20251124.dist-info}/top_level.txt +1 -0
- tests/adapter/dbt_adapter/conftest.py +9 -5
- tests/adapter/dbt_adapter/dbt_test_helper.py +37 -22
- tests/adapter/dbt_adapter/test_dbt_adapter.py +0 -15
- tests/adapter/dbt_adapter/test_dbt_cll.py +656 -41
- tests/adapter/dbt_adapter/test_selector.py +22 -21
- tests/recce_cloud/__init__.py +0 -0
- tests/recce_cloud/test_ci_providers.py +351 -0
- tests/recce_cloud/test_cli.py +372 -0
- tests/recce_cloud/test_client.py +273 -0
- tests/recce_cloud/test_platform_clients.py +333 -0
- tests/tasks/conftest.py +1 -1
- tests/tasks/test_histogram.py +58 -66
- tests/tasks/test_lineage.py +36 -23
- tests/tasks/test_preset_checks.py +45 -31
- tests/tasks/test_profile.py +339 -15
- tests/tasks/test_query.py +46 -46
- tests/tasks/test_row_count.py +65 -46
- tests/tasks/test_schema.py +65 -42
- tests/tasks/test_top_k.py +22 -18
- tests/tasks/test_valuediff.py +43 -32
- tests/test_cli.py +174 -60
- tests/test_cli_mcp_optional.py +45 -0
- tests/test_cloud_listing_cli.py +324 -0
- tests/test_config.py +7 -9
- tests/test_connect_to_cloud.py +82 -0
- tests/test_core.py +151 -4
- tests/test_dbt.py +7 -7
- tests/test_mcp_server.py +332 -0
- tests/test_pull_request.py +1 -1
- tests/test_server.py +25 -19
- tests/test_summary.py +29 -17
- recce/data/_next/static/Kcbs3GEIyH2LxgLYat0es/_buildManifest.js +0 -1
- recce/data/_next/static/chunks/1f229bf6-d9fe92e56db8d93b.js +0 -1
- recce/data/_next/static/chunks/29e3cc0d-8c150e37dff9631b.js +0 -1
- recce/data/_next/static/chunks/368-7587b306577df275.js +0 -65
- recce/data/_next/static/chunks/36e1c10d-bb0210cbd6573a8d.js +0 -1
- recce/data/_next/static/chunks/3998a672-eaad84bdd88cc73e.js +0 -1
- recce/data/_next/static/chunks/3a92ee20-3b5d922d4157af5e.js +0 -1
- recce/data/_next/static/chunks/450c323b-1bb5db526e54435a.js +0 -1
- recce/data/_next/static/chunks/47d8844f-79a1b53c66a7d7ec.js +0 -1
- recce/data/_next/static/chunks/6dc81886-c94b9b91bc2c3caf.js +0 -1
- recce/data/_next/static/chunks/6ef81909-694dc38134099299.js +0 -1
- recce/data/_next/static/chunks/700-3b65fc3666820d00.js +0 -2
- recce/data/_next/static/chunks/7a8a3e83-d7fa409d97b38b2b.js +0 -1
- recce/data/_next/static/chunks/7f27ae6c-413f6b869a04183a.js +0 -1
- recce/data/_next/static/chunks/8d700b6a-f0b1f6b9e0d97ce2.js +0 -1
- recce/data/_next/static/chunks/9746af58-d74bef4d03eea6ab.js +0 -1
- recce/data/_next/static/chunks/a30376cd-7d806e1602f2dc3a.js +0 -1
- recce/data/_next/static/chunks/app/_not-found/page-8a886fa0855c3105.js +0 -1
- recce/data/_next/static/chunks/app/layout-9102e22cb73f74d6.js +0 -1
- recce/data/_next/static/chunks/app/page-cee661090afbd6aa.js +0 -1
- recce/data/_next/static/chunks/b63b1b3f-7395c74e11a14e95.js +0 -1
- recce/data/_next/static/chunks/c132bf7d-8102037f9ccf372a.js +0 -1
- recce/data/_next/static/chunks/c1ceaa8b-a1e442154d23515e.js +0 -1
- recce/data/_next/static/chunks/cd9f8d63-cf0d5a7b0f7a92e8.js +0 -54
- recce/data/_next/static/chunks/ce84277d-f42c2c58049cea2d.js +0 -1
- recce/data/_next/static/chunks/e24bf851-0f8cbc99656833e7.js +0 -1
- recce/data/_next/static/chunks/fee69bc6-f17d36c080742e74.js +0 -1
- recce/data/_next/static/chunks/framework-ded83d71b51ce901.js +0 -1
- recce/data/_next/static/chunks/main-a0859f1f36d0aa6c.js +0 -1
- recce/data/_next/static/chunks/main-app-0225a2255968e566.js +0 -1
- recce/data/_next/static/chunks/pages/_app-d5672bf3d8b6371b.js +0 -1
- recce/data/_next/static/chunks/pages/_error-ed75be3f25588548.js +0 -1
- recce/data/_next/static/chunks/webpack-567d72f0bc0820d5.js +0 -1
- recce/data/_next/static/css/c9ecb46a4b21c126.css +0 -14
- recce/data/_next/static/media/montserrat-cyrillic-800-normal.22628180.woff2 +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-800-normal.31d693bb.woff +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.7e2c1e62.woff +0 -0
- recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.94a63aea.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-800-normal.6f8fa298.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-800-normal.97e20d5e.woff +0 -0
- recce/data/_next/static/media/montserrat-latin-ext-800-normal.013b84f9.woff2 +0 -0
- recce/data/_next/static/media/montserrat-latin-ext-800-normal.aff52ab0.woff +0 -0
- recce/data/_next/static/media/montserrat-vietnamese-800-normal.5f21869b.woff +0 -0
- recce/data/_next/static/media/montserrat-vietnamese-800-normal.c0035377.woff2 +0 -0
- recce/state.py +0 -753
- recce_nightly-1.2.0.20250506.dist-info/RECORD +0 -142
- tests/test_state.py +0 -123
- /recce/data/_next/static/{Kcbs3GEIyH2LxgLYat0es → 52aV_JrNUZU6dMFgvTQEO}/_ssgManifest.js +0 -0
- /recce/data/_next/static/chunks/{polyfills-42372ed130431b0a.js → a6dad97d9634a72d.js} +0 -0
- {recce_nightly-1.2.0.20250506.dist-info → recce_nightly-1.26.0.20251124.dist-info}/entry_points.txt +0 -0
- {recce_nightly-1.2.0.20250506.dist-info → recce_nightly-1.26.0.20251124.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,82114,(e,A,t)=>{!function(A,t){if("function"==typeof define&&define.amd){let A;void 0!==(A=t())&&e.v(A)}else t()}(e.e,function(){"use strict";function t(e,A,t){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){s(n.response,A,t)},n.onerror=function(){console.error("could not download file")},n.send()}function n(e){var A=new XMLHttpRequest;A.open("HEAD",e,!1);try{A.send()}catch(e){}return 200<=A.status&&299>=A.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(A)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:e.g.global===e.g?e.g:void 0,o=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,A,o){var s=i.URL||i.webkitURL,a=document.createElement("a");a.download=A=A||e.name||"download",a.rel="noopener","string"==typeof e?(a.href=e,a.origin===location.origin?r(a):n(a.href)?t(e,A,o):r(a,a.target="_blank")):(a.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(a.href)},4e4),setTimeout(function(){r(a)},0))}:"msSaveOrOpenBlob"in navigator?function(e,A,i){if(A=A||e.name||"download","string"!=typeof e){var o;navigator.msSaveOrOpenBlob((void 0===(o=i)?o={autoBom:!1}:"object"!=typeof o&&(console.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e),A)}else if(n(e))t(e,A,i);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout(function(){r(s)})}}:function(e,A,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return t(e,A,n);var s="application/octet-stream"===e.type,a=/constructor/i.test(i.HTMLElement)||i.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||s&&a||o)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},c.readAsDataURL(e)}else{var u=i.URL||i.webkitURL,d=u.createObjectURL(e);r?r.location=d:location.href=d,r=null,setTimeout(function(){u.revokeObjectURL(d)},4e4)}});i.saveAs=s.saveAs=s,A.exports=s})},35305,(e,A,t)=>{"use strict";A.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},61227,(e,A,t)=>{"use strict";var n=e.r(35305);function r(){}function i(){}i.resetWarningCache=r,A.exports=function(){function e(e,A,t,r,i,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function A(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:A,element:e,elementType:e,instanceOf:A,node:e,objectOf:A,oneOf:A,oneOfType:A,shape:A,exact:A,checkPropTypes:i,resetWarningCache:r};return t.PropTypes=t,t}},4153,(e,A,t)=>{A.exports=e.r(61227)()},96057,(e,A,t)=>{e.e,A.exports=function(){"use strict";var e,A,t,n,r,i,o,s,a,l,c,u,d,h,f,g,p,B,m,w,y,x,C=function(e,A){return(C=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,A){e.__proto__=A}||function(e,A){for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(e[t]=A[t])})(e,A)};function b(e,A){if("function"!=typeof A&&null!==A)throw TypeError("Class extends value "+String(A)+" is not a constructor or null");function t(){this.constructor=e}C(e,A),e.prototype=null===A?Object.create(A):(t.prototype=A.prototype,new t)}var v=function(){return(v=Object.assign||function(e){for(var A,t=1,n=arguments.length;t<n;t++)for(var r in A=arguments[t])Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r]);return e}).apply(this,arguments)};function Q(e,A,t,n){return new(t||(t=Promise))(function(r,i){function o(e){try{a(n.next(e))}catch(e){i(e)}}function s(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var A;e.done?r(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A)})).then(o,s)}a((n=n.apply(e,A||[])).next())})}function F(e,A){var t,n,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(a){var l=[s,a];if(t)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(o=0)),o;)try{if(t=1,n&&(r=2&l[0]?n.return:l[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;switch(n=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,n=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){o.label=l[1];break}if(6===l[0]&&o.label<r[1]){o.label=r[1],r=l;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(l);break}r[2]&&o.ops.pop(),o.trys.pop();continue}l=A.call(e,o)}catch(e){l=[6,e],n=0}finally{t=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function U(e,A,t){if(t||2==arguments.length)for(var n,r=0,i=A.length;r<i;r++)!n&&r in A||(n||(n=Array.prototype.slice.call(A,0,r)),n[r]=A[r]);return e.concat(n||Array.prototype.slice.call(A))}"function"==typeof SuppressedError&&SuppressedError;for(var E=function(){function e(e,A,t,n){this.left=e,this.top=A,this.width=t,this.height=n}return e.prototype.add=function(A,t,n,r){return new e(this.left+A,this.top+t,this.width+n,this.height+r)},e.fromClientRect=function(A,t){return new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height)},e.fromDOMRectList=function(A,t){var n=Array.from(t).find(function(e){return 0!==e.width});return n?new e(n.left+A.windowBounds.left,n.top+A.windowBounds.top,n.width,n.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),I=function(e,A){return E.fromClientRect(e,A.getBoundingClientRect())},S=function(e){var A=e.body,t=e.documentElement;if(!A||!t)throw Error("Unable to get document size");return new E(0,0,Math.max(Math.max(A.scrollWidth,t.scrollWidth),Math.max(A.offsetWidth,t.offsetWidth),Math.max(A.clientWidth,t.clientWidth)),Math.max(Math.max(A.scrollHeight,t.scrollHeight),Math.max(A.offsetHeight,t.offsetHeight),Math.max(A.clientHeight,t.clientHeight)))},k=function(e){for(var A=[],t=0,n=e.length;t<n;){var r=e.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var i=e.charCodeAt(t++);(64512&i)==56320?A.push(((1023&r)<<10)+(1023&i)+65536):(A.push(r),t--)}else A.push(r)}return A},j=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var n=[],r=-1,i="";++r<t;){var o=e[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D="undefined"==typeof Uint8Array?[]:new Uint8Array(256),L=0;L<H.length;L++)D[H.charCodeAt(L)]=L;for(var R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T="undefined"==typeof Uint8Array?[]:new Uint8Array(256),M=0;M<R.length;M++)T[R.charCodeAt(M)]=M;for(var O=2112,N=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},P=function(){function e(e,A,t,n,r,i){this.initialValue=e,this.errorValue=A,this.highStart=t,this.highValueIndex=n,this.index=r,this.data=i}return e.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=((A=this.index[e>>5])<<2)+(31&e),this.data[A];if(e<=65535)return A=((A=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[A];if(e<this.highStart)return A=O-32+(e>>11),A=this.index[A]+(e>>5&63),A=((A=this.index[A])<<2)+(31&e),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K="undefined"==typeof Uint8Array?[]:new Uint8Array(256),V=0;V<_.length;V++)K[_.charCodeAt(V)]=V;var G=[9001,65288],z=(A=Array.isArray(e=function(e){var A,t,n,r,i,o=.75*e.length,s=e.length,a=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(A=0;A<s;A+=4)t=T[e.charCodeAt(A)],n=T[e.charCodeAt(A+1)],r=T[e.charCodeAt(A+2)],i=T[e.charCodeAt(A+3)],c[a++]=t<<2|n>>4,c[a++]=(15&n)<<4|r>>2,c[a++]=(3&r)<<6|63&i;return l}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="))?function(e){for(var A=e.length,t=[],n=0;n<A;n+=4)t.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return t}(e):new Uint32Array(e),n=N(t=Array.isArray(e)?function(e){for(var A=e.length,t=[],n=0;n<A;n+=2)t.push(e[n+1]<<8|e[n]);return t}(e):new Uint16Array(e),12,A[4]/2),i=2===A[5]?N(t,(24+A[4])/2):(r=Math.ceil((24+A[4])/4),A.slice?A.slice(r,void 0):new Uint32Array(Array.prototype.slice.call(A,r,void 0))),new P(A[0],A[1],A[2],A[3],n,i)),W=[30,36],$=[1,2,3,5],X=[10,8],Y=[27,26],J=$.concat(X),q=[38,39,40,34,35],Z=[15,13],ee=function(e,A){void 0===A&&(A="strict");var t=[],n=[],r=[];return e.forEach(function(e,i){var o=z.get(e);if(o>50?(r.push(!0),o-=50):r.push(!1),-1!==["normal","auto","loose"].indexOf(A)&&-1!==[8208,8211,12316,12448].indexOf(e))return n.push(i),t.push(16);if(4===o||11===o){if(0===i)return n.push(i),t.push(30);var s=t[i-1];return -1===J.indexOf(s)?(n.push(n[i-1]),t.push(s)):(n.push(i),t.push(30))}if(n.push(i),31===o)return t.push("strict"===A?21:37);if(42===o||29===o)return t.push(30);if(43===o)if(e>=131072&&e<=196605||e>=196608&&e<=262141)return t.push(37);else return t.push(30);t.push(o)}),[n,t,r]},eA=function(e,A,t,n){var r=n[t];if(Array.isArray(e)?-1!==e.indexOf(r):e===r)for(var i=t;i<=n.length;){var o=n[++i];if(o===A)return!0;if(10!==o)break}if(10===r)for(var i=t;i>0;){var s=n[--i];if(Array.isArray(e)?-1!==e.indexOf(s):e===s)for(var a=t;a<=n.length;){var o=n[++a];if(o===A)return!0;if(10!==o)break}if(10!==s)break}return!1},et=function(e,A){for(var t=e;t>=0;){var n=A[t];if(10!==n)return n;t--}return 0},en=function(e,A,t,n,r){if(0===t[n])return"×";var i=n-1;if(Array.isArray(r)&&!0===r[i])return"×";var o=i-1,s=i+1,a=A[i],l=o>=0?A[o]:0,c=A[s];if(2===a&&3===c)return"×";if(-1!==$.indexOf(a))return"!";if(-1!==$.indexOf(c)||-1!==X.indexOf(c))return"×";if(8===et(i,A))return"÷";if(11===z.get(e[i])||(32===a||33===a)&&11===z.get(e[s])||7===a||7===c||9===a||-1===[10,13,15].indexOf(a)&&9===c||-1!==[17,18,19,24,28].indexOf(c)||22===et(i,A)||eA(23,22,i,A)||eA([17,18],21,i,A)||eA(12,12,i,A))return"×";if(10===a)return"÷";if(23===a||23===c)return"×";if(16===c||16===a)return"÷";if(-1!==[13,15,21].indexOf(c)||14===a||36===l&&-1!==Z.indexOf(a)||28===a&&36===c||20===c||-1!==W.indexOf(c)&&25===a||-1!==W.indexOf(a)&&25===c||27===a&&-1!==[37,32,33].indexOf(c)||-1!==[37,32,33].indexOf(a)&&26===c||-1!==W.indexOf(a)&&-1!==Y.indexOf(c)||-1!==Y.indexOf(a)&&-1!==W.indexOf(c)||-1!==[27,26].indexOf(a)&&(25===c||-1!==[22,15].indexOf(c)&&25===A[s+1])||-1!==[22,15].indexOf(a)&&25===c||25===a&&-1!==[25,28,24].indexOf(c))return"×";if(-1!==[25,28,24,17,18].indexOf(c))for(var u=i;u>=0;){var d=A[u];if(25===d)return"×";if(-1!==[28,24].indexOf(d))u--;else break}if(-1!==[27,26].indexOf(c))for(var u=-1!==[17,18].indexOf(a)?o:i;u>=0;){var d=A[u];if(25===d)return"×";if(-1!==[28,24].indexOf(d))u--;else break}if(38===a&&-1!==[38,39,34,35].indexOf(c)||-1!==[39,34].indexOf(a)&&-1!==[39,40].indexOf(c)||-1!==[40,35].indexOf(a)&&40===c||-1!==q.indexOf(a)&&-1!==[20,26].indexOf(c)||-1!==q.indexOf(c)&&27===a||-1!==W.indexOf(a)&&-1!==W.indexOf(c)||24===a&&-1!==W.indexOf(c)||-1!==W.concat(25).indexOf(a)&&22===c&&-1===G.indexOf(e[s])||-1!==W.concat(25).indexOf(c)&&18===a)return"×";if(41===a&&41===c){for(var h=t[i],f=1;h>0;)if(41===A[--h])f++;else break;if(f%2!=0)return"×"}return 32===a&&33===c?"×":"÷"},er=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var t=ee(e,A.lineBreak),n=t[0],r=t[1],i=t[2];return("break-all"===A.wordBreak||"break-word"===A.wordBreak)&&(r=r.map(function(e){return -1!==[25,30,42].indexOf(e)?37:e})),[n,r,"keep-all"===A.wordBreak?i.map(function(A,t){return A&&e[t]>=19968&&e[t]<=40959}):void 0]},ei=function(){function e(e,A,t,n){this.codePoints=e,this.required="!"===A,this.start=t,this.end=n}return e.prototype.slice=function(){return j.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),eo=function(e,A){var t=k(e),n=er(t,A),r=n[0],i=n[1],o=n[2],s=t.length,a=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};for(var e="×";l<s&&"×"===(e=en(t,i,r,++l,o)););if("×"!==e||l===s){var A=new ei(t,e,a,l);return a=l,{value:A,done:!1}}return{done:!0,value:null}}}},es=function(e){return e>=48&&e<=57},ea=function(e){return es(e)||e>=65&&e<=70||e>=97&&e<=102},el=function(e){return e>=97&&e<=122||e>=65&&e<=90},ec=function(e){return 10===e||9===e||32===e},eu=function(e){return el(e)||e>=128||95===e},ed=function(e){return eu(e)||es(e)||45===e},eh=function(e,A){return 92===e&&10!==A},ef=function(e,A,t){return 45===e?eu(A)||eh(A,t):!!(eu(e)||92===e&&eh(e,A))||!1},eg=function(e,A,t){return 43===e||45===e?!!es(A)||46===A&&es(t):46===e?es(A):es(e)},ep=function(e){var A=0,t=1;(43===e[0]||45===e[A])&&(45===e[A]&&(t=-1),A++);for(var n=[];es(e[A]);)n.push(e[A++]);var r=n.length?parseInt(j.apply(void 0,n),10):0;46===e[A]&&A++;for(var i=[];es(e[A]);)i.push(e[A++]);var o=i.length,s=o?parseInt(j.apply(void 0,i),10):0;(69===e[A]||101===e[A])&&A++;var a=1;(43===e[A]||45===e[A])&&(45===e[A]&&(a=-1),A++);for(var l=[];es(e[A]);)l.push(e[A++]);return t*(r+s*Math.pow(10,-o))*Math.pow(10,a*(l.length?parseInt(j.apply(void 0,l),10):0))},eB={type:2},em={type:3},ew={type:4},ey={type:13},ex={type:8},eC={type:21},eb={type:9},ev={type:10},eQ={type:11},eF={type:12},eU={type:14},eE={type:23},eI={type:1},eS={type:25},ek={type:24},ej={type:26},eH={type:27},eD={type:28},eL={type:29},eR={type:31},eT={type:32},eM=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(k(e))},e.prototype.read=function(){for(var e=[],A=this.consumeToken();A!==eT;)e.push(A),A=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var A=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(ed(A)||eh(t,n)){var r=ef(A,t,n)?2:1,i=this.consumeName();return{type:5,value:i,flags:r}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ey;break;case 39:return this.consumeStringToken(39);case 40:return eB;case 41:return em;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),eU;break;case 43:case 46:if(eg(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return ew;case 45:var o=this.peekCodePoint(0),s=this.peekCodePoint(1);if(eg(e,o,s))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(ef(e,o,s))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(45===o&&62===s)return this.consumeCodePoint(),this.consumeCodePoint(),ek;break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var a=this.consumeCodePoint();if(42===a&&47===(a=this.consumeCodePoint())||-1===a)return this.consumeToken()}break;case 58:return ej;case 59:return eH;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),eS;break;case 64:if(ef(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var i=this.consumeName();return{type:7,value:i}}break;case 91:return eD;case 92:if(eh(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return eL;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ex;break;case 123:return eQ;case 125:return eF;case 117:case 85:var l=this.peekCodePoint(0),c=this.peekCodePoint(1);return 43===l&&(ea(c)||63===c)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),eb;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),eC;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ev;break;case -1:return eT}return ec(e)?(this.consumeWhiteSpace(),eR):es(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):eu(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:j(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],A=this.consumeCodePoint();ea(A)&&e.length<6;)e.push(A),A=this.consumeCodePoint();for(var t=!1;63===A&&e.length<6;)e.push(A),A=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(j.apply(void 0,e.map(function(e){return 63===e?48:e})),16),r=parseInt(j.apply(void 0,e.map(function(e){return 63===e?70:e})),16);return{type:30,start:n,end:r}}var i=parseInt(j.apply(void 0,e),16);if(!(45===this.peekCodePoint(0)&&ea(this.peekCodePoint(1))))return{type:30,start:i,end:i};this.consumeCodePoint(),A=this.consumeCodePoint();for(var o=[];ea(A)&&o.length<6;)o.push(A),A=this.consumeCodePoint();var r=parseInt(j.apply(void 0,o),16);return{type:30,start:i,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var A=this.peekCodePoint(0);if(39===A||34===A){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),eE)}for(;;){var n,r=this.consumeCodePoint();if(-1===r||41===r)return{type:22,value:j.apply(void 0,e)};if(ec(r)){if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))return this.consumeCodePoint(),{type:22,value:j.apply(void 0,e)};return this.consumeBadUrlRemnants(),eE}if(34===r||39===r||40===r||(n=r)>=0&&n<=8||11===n||n>=14&&n<=31||127===n)return this.consumeBadUrlRemnants(),eE;if(92===r)if(!eh(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),eE;else e.push(this.consumeEscapedCodePoint());else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;ec(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||-1===e)return;eh(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var A="";e>0;){var t=Math.min(5e4,e);A+=j.apply(void 0,this._value.splice(0,t)),e-=t}return this._value.shift(),A},e.prototype.consumeStringToken=function(e){for(var A="",t=0;;){var n=this._value[t];if(-1===n||void 0===n||n===e)return{type:0,value:A+=this.consumeStringSlice(t)};if(10===n)return this._value.splice(0,t),eI;if(92===n){var r=this._value[t+1];-1!==r&&void 0!==r&&(10===r?(A+=this.consumeStringSlice(t),t=-1,this._value.shift()):eh(n,r)&&(A+=this.consumeStringSlice(t),A+=j(this.consumeEscapedCodePoint()),t=-1))}t++}},e.prototype.consumeNumber=function(){var e=[],A=4,t=this.peekCodePoint(0);for((43===t||45===t)&&e.push(this.consumeCodePoint());es(this.peekCodePoint(0));)e.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(46===t&&es(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=8;es(this.peekCodePoint(0));)e.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((69===t||101===t)&&((43===n||45===n)&&es(r)||es(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=8;es(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[ep(e),A]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),A=e[0],t=e[1],n=this.peekCodePoint(0);return ef(n,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:A,flags:t,unit:this.consumeName()}:37===n?(this.consumeCodePoint(),{type:16,number:A,flags:t}):{type:17,number:A,flags:t}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ea(e)){for(var A=j(e);ea(this.peekCodePoint(0))&&A.length<6;)A+=j(this.consumeCodePoint());ec(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(A,16);return 0===t||t>=55296&&t<=57343||t>1114111?65533:t}return -1===e?65533:e},e.prototype.consumeName=function(){for(var e="";;){var A=this.consumeCodePoint();if(ed(A))e+=j(A);else{if(!eh(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),e;e+=j(this.consumeEscapedCodePoint())}}},e}(),eO=function(){function e(e){this._tokens=e}return e.create=function(A){var t=new eM;return t.write(A),new e(t.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var A=this.consumeComponentValue();do e=this.consumeToken();while(31===e.type)if(32===e.type)return A;throw SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var A=this.consumeComponentValue();if(32===A.type)return e;e.push(A),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var A={type:e,values:[]},t=this.consumeToken();;){if(32===t.type||e$(t,e))return A;this.reconsumeToken(t),A.values.push(this.consumeComponentValue()),t=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var A={name:e.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return A;this.reconsumeToken(t),A.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?eT:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),eN=function(e){return 15===e.type},eP=function(e){return 17===e.type},e_=function(e){return 20===e.type},eK=function(e){return 0===e.type},eV=function(e,A){return e_(e)&&e.value===A},eG=function(e){return 31!==e.type},ez=function(e){return 31!==e.type&&4!==e.type},eW=function(e){var A=[],t=[];return e.forEach(function(e){if(4===e.type){if(0===t.length)throw Error("Error parsing function args, zero tokens for arg");A.push(t),t=[];return}31!==e.type&&t.push(e)}),t.length&&A.push(t),A},e$=function(e,A){return 11===A&&12===e.type||28===A&&29===e.type||2===A&&3===e.type},eX=function(e){return 17===e.type||15===e.type},eY=function(e){return 16===e.type||eX(e)},eJ=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},eq={type:17,number:0,flags:4},eZ={type:16,number:50,flags:4},e0={type:16,number:100,flags:4},e1=function(e,A,t){var n=e[0],r=e[1];return[e2(n,A),e2(void 0!==r?r:n,t)]},e2=function(e,A){if(16===e.type)return e.number/100*A;if(eN(e))switch(e.unit){case"rem":case"em":return 16*e.number}return e.number},e4="grad",e3="turn",e5=function(e,A){if(15===A.type)switch(A.unit){case"deg":return Math.PI*A.number/180;case e4:return Math.PI/200*A.number;case"rad":return A.number;case e3:return 2*Math.PI*A.number}throw Error("Unsupported angle type")},e6=function(e){return 15===e.type&&("deg"===e.unit||e.unit===e4||"rad"===e.unit||e.unit===e3)},e8=function(e){switch(e.filter(e_).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[eq,eq];case"to top":case"bottom":return e7(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[eq,e0];case"to right":case"left":return e7(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[e0,e0];case"to bottom":case"top":return e7(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[e0,eq];case"to left":case"right":return e7(270)}return 0},e7=function(e){return Math.PI*e/180},e9=function(e){return(255&e)==0},Ae=function(e){var A=255&e,t=255&e>>8,n=255&e>>16,r=255&e>>24;return A<255?"rgba(".concat(r,",").concat(n,",").concat(t,",").concat(A/255,")"):"rgb(".concat(r,",").concat(n,",").concat(t,")")},AA=function(e,A,t,n){return(e<<24|A<<16|t<<8|(0|Math.round(255*n)))>>>0},At=function(e,A){if(17===e.type)return e.number;if(16===e.type){var t=3===A?1:255;return 3===A?e.number/100*t:Math.round(e.number/100*t)}return 0},An=function(e){return(20===e[0].type?e[0].value:"unknown")==="from"},Ar=function(e,A,t){return Math.min(Math.max(e,A),t)},Ai=function(e,A){return[e[0]*A[0]+e[1]*A[1]+e[2]*A[2],e[3]*A[0]+e[4]*A[1]+e[5]*A[2],e[6]*A[0]+e[7]*A[1]+e[8]*A[2]]},Ao=function(e){var A=e[0],t=e[1],n=e[2],r=e[3],i=Av([A,t,n]);return AA(Ar(Math.round(255*i[0]),0,255),Ar(Math.round(255*i[1]),0,255),Ar(Math.round(255*i[2]),0,255),r)},As=function(e){var A=AC([e[0],e[1],e[2]]);return Ao([A[0],A[1],A[2],e[3]])},Aa=function(e,A){var t=A.filter(ez),n=t[0],r=t[1],i=t[2],o=t[3];return[(17===n.type?e7(n.number):e5(e,n))/(2*Math.PI),eY(r)?r.number/100:0,eY(i)?i.number/100:0,void 0!==o&&eY(o)?e2(o,1):1]},Al=function(e,A){if(An(A))throw Error("Relative color not supported for hsl()");var t=Aa(e,A),n=t[0],r=t[1],i=t[2],o=t[3],s=Ap([n,r,i]);return AA(255*s[0],255*s[1],255*s[2],0===r?1:o)},Ac=function(e){var A=e.filter(ez);return[eY(A[0])?A[0].number:0,eY(A[1])?A[1].number:0,eP(A[2])||eN(A[2])?A[2].number:0,void 0!==A[4]&&eY(A[4])?e2(A[4],1):1]},Au=function(e){var A=e.filter(ez);return[16===A[0].type?A[0].number/100:eP(A[0])?A[0].number:0,16===A[1].type?A[1].number/100:eP(A[1])?A[1].number:0,eP(A[2])||eN(A[2])?A[2].number:0,void 0!==A[4]&&eY(A[4])?e2(A[4],1):1]},Ad=function(e){var A=e.filter(ez);return[16===A[0].type?A[0].number/100:eP(A[0])?A[0].number:0,16===A[1].type?A[1].number/100:eP(A[1])?A[1].number:0,eP(A[2])||eN(A[2])?A[2].number:0,void 0!==A[4]&&eY(A[4])?e2(A[4],1):1]},Ah=function(e){return Ai([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],e)},Af=function(e){return Ai([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],e)},Ag=function(e,A,t){return(t<0&&(t+=1),t>=1&&(t-=1),t<1/6)?(A-e)*t*6+e:t<.5?A:t<2/3?(A-e)*6*(2/3-t)+e:e},Ap=function(e){var A=e[0],t=e[1],n=e[2];if(0===t)return[255*n,255*n,255*n];var r=n<=.5?n*(t+1):n+t-n*t,i=2*n-r;return[Ag(i,r,A+1/3),Ag(i,r,A),Ag(i,r,A-1/3)]},AB=function(e){var A=e[0],t=e[1],n=e[2];return t<0&&(t=0),isNaN(n)&&(n=0),[A,t*Math.cos(n*Math.PI/180),t*Math.sin(n*Math.PI/180)]},Am=function(e){var A=Ai([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],e).map(function(e){return Math.pow(e,3)});return Ai([1.2268798758459243,-.5578149944602171,.2813910456659647,-.0405757452148008,1.112286803280317,-.0717110580655164,-.0763729366746601,-.4214933324022432,1.5869240198367816],A)},Aw=function(e){var A=(e[0]+16)/116,t=e[1]/500+A,n=A-e[2]/200,r=24389/27,i=[(t>24/116?Math.pow(t,3):(116*t-16)/r)*.3457/.3585,e[0]>8?Math.pow(A,3):e[0]/r,(n>24/116?Math.pow(n,3):(116*n-16)/r)*.2958/.3585];return Af([i[0],i[1],i[2]])},Ay=function(e){return e},Ax=function(e){return As([e[0],e[1],e[2],e[3]])},AC=function(e){return Ai([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],e)},Ab=function(e){return Ai([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],e)},Av=function(e){return e.map(function(e){var A=Math.abs(e);return A>.0031308?(e<0?-1:1)*(1.055*Math.pow(A,1/2.4)-.055):12.92*e})},AQ=function(e){return e.map(function(e){var A=Math.abs(e);return A<=.04045?e/12.92:(e<0?-1:1)*Math.pow((A+.055)/1.055,2.4)})},AF=function(e){var A=[e[0],e[1],e[2]].map(function(e){var A=e<0?-1:1;return e*A<=.04045?e/12.92:A*Math.pow((e+.055)/1.055,2.4)||0});return Ai([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],[A[0],A[1],A[2]])},AU=function(e){var A=e.map(function(e){var A=Math.abs(e);return(e<0?-1:1)*Math.pow(A,563/256)});return[A[0],A[1],A[2]]},AE=function(e){var A=e.map(function(e){var A=Math.abs(e);return(e<0?-1:1)*Math.pow(A,256/563)});return[A[0],A[1],A[2]]},AI=function(e){var A=[e[0],e[1],e[2]].map(function(e){return e<16/512?e/16:Math.pow(e,1.8)});return Af(Ai([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],[A[0],A[1],A[2]]))},AS=function(e){var A=[e[0],e[1],e[2]].map(function(e){return e<.08124285829863151?e/4.5:Math.pow((e+1.09929682680944-1)/1.09929682680944,1/.45)});return Ai([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],[A[0],A[1],A[2]])},Ak=function(e,A){if(18===A.type){var t=AT[A.name];if(void 0===t)throw Error('Attempting to parse an unsupported color function "'.concat(A.name,'"'));return t(e,A.values)}if(5===A.type){var n=Aj(A);return AA(n[0],n[1],n[2],n[3])}if(20===A.type){var r=AO[A.value.toUpperCase()];if(void 0!==r)return r}return AO.TRANSPARENT},Aj=function(e){if(3===e.value.length){var A=e.value.substring(0,1),t=e.value.substring(1,2),n=e.value.substring(2,3);return[parseInt(A+A,16),parseInt(t+t,16),parseInt(n+n,16),1]}if(4===e.value.length){var A=e.value.substring(0,1),t=e.value.substring(1,2),n=e.value.substring(2,3),r=e.value.substring(3,4);return[parseInt(A+A,16),parseInt(t+t,16),parseInt(n+n,16),parseInt(r+r,16)/255]}if(6===e.value.length){var A=e.value.substring(0,2),t=e.value.substring(2,4),n=e.value.substring(4,6);return[parseInt(A,16),parseInt(t,16),parseInt(n,16),1]}if(8===e.value.length){var A=e.value.substring(0,2),t=e.value.substring(2,4),n=e.value.substring(4,6),r=e.value.substring(6,8);return[parseInt(A,16),parseInt(t,16),parseInt(n,16),parseInt(r,16)/255]}return[0,0,0,1]},AH=function(e,A){var t=A.filter(ez);if(An(t))throw Error("Relative color not supported for rgb()");if(3===t.length){var n=t.map(At),r=n[0],i=n[1],o=n[2];return AA(r,i,o,1)}if(4===t.length){var s=t.map(At),r=s[0],i=s[1],o=s[2];return AA(r,i,o,s[3])}return 0},AD={srgb:function(e){return AA(Ar(Math.round(255*e[0]),0,255),Ar(Math.round(255*e[1]),0,255),Ar(Math.round(255*e[2]),0,255),Ar(e[3],0,1))},"srgb-linear":Ao,"display-p3":function(e){var A=AF([e[0],e[1],e[2]]);return As([A[0],A[1],A[2],e[3]])},"a98-rgb":function(e){var A=AC(Ai([.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.0752914584939978,.02703136138641234,.07068885253582723,.9913375368376388],AU([e[0],e[1],e[2]])));return Ao([A[0],A[1],A[2],e[3]])},"prophoto-rgb":function(e){var A=AI([e[0],e[1],e[2]]);return As([A[0],A[1],A[2],e[3]])},xyz:Ax,"xyz-d50":function(e){var A,t=Af([(A=[e[0],e[1],e[2]])[0],A[1],A[2]]);return As([t[0],t[1],t[2],e[3]])},"xyz-d65":Ax,rec2020:function(e){var A=AS([e[0],e[1],e[2]]);return As([A[0],A[1],A[2],e[3]])}},AL={rgb:function(e,A){var t=A.filter(ez);if(3===t.length){var n=t.map(At),r=n[0],i=n[1],o=n[2],s=AQ([r/255,i/255,o/255]),a=Ab([s[0],s[1],s[2]]),l=a[0],c=a[1],u=a[2];return[l,c,u,1]}if(4===t.length){var d=t.map(At),r=d[0],i=d[1],o=d[2],h=d[3],s=AQ([r/255,i/255,o/255]),f=Ab([s[0],s[1],s[2]]),l=f[0],c=f[1],u=f[2];return[l,c,u,h]}return[0,0,0,1]},hsl:function(e,A){var t=Aa(e,A),n=t[0],r=t[1],i=t[2],o=t[3],s=AQ(Ap([n,r,i])),a=Ab([s[0],s[1],s[2]]);return[a[0],a[1],a[2],o]},lab:function(e,A){var t=Au(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Aw([n,r,i]);return[s[0],s[1],s[2],o]},lch:function(e,A){var t=Ac(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Aw(AB([n,r,i]));return[s[0],s[1],s[2],o]},oklab:function(e,A){var t=Au(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Am([n,r,i]);return[s[0],s[1],s[2],o]},oklch:function(e,A){var t=Ad(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Am(AB([n,r,i]));return[s[0],s[1],s[2],o]}},AR={srgb:function(e){var A=Av(AC([e[0],e[1],e[2]]));return[A[0],A[1],A[2],e[3]]},"srgb-linear":function(e){var A=AC([e[0],e[1],e[2]]),t=A[0],n=A[1],r=A[2];return[Ar(Math.round(255*t),0,255),Ar(Math.round(255*n),0,255),Ar(Math.round(255*r),0,255),e[3]]},"display-p3":function(e){var A=Av(Ai([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],[e[0],e[1],e[2]]));return[A[0],A[1],A[2],e[3]]},"a98-rgb":function(e){var A=AE(Ai([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],[e[0],e[1],e[2]]));return[A[0],A[1],A[2],e[3]]},"prophoto-rgb":function(e){var A=Ai([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],Ah([e[0],e[1],e[2]])).map(function(e){return e>1/512?Math.pow(e,1/1.8):16*e});return[A[0],A[1],A[2],e[3]]},xyz:Ay,"xyz-d50":function(e){var A=Ah([e[0],e[2],e[3]]);return[A[0],A[1],A[2],e[3]]},"xyz-d65":Ay,rec2020:function(e){var A=Ai([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],[e[0],e[1],e[2]]).map(function(e){return e>=.018053968510807?1.09929682680944*Math.pow(e,.45)-(1.09929682680944-1):4.5*e});return[A[0],A[1],A[2],e[3]]}},AT={hsl:Al,hsla:Al,rgb:AH,rgba:AH,lch:function(e,A){if(An(A.filter(ez)))throw Error("Relative color not supported for lch()");var t=Ac(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Av(AC(Aw(AB([n,r,i]))));return AA(Ar(Math.round(255*s[0]),0,255),Ar(Math.round(255*s[1]),0,255),Ar(Math.round(255*s[2]),0,255),o)},oklch:function(e,A){if(An(A.filter(ez)))throw Error("Relative color not supported for oklch()");var t=Ad(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Av(AC(Am(AB([n,r,i]))));return AA(Ar(Math.round(255*s[0]),0,255),Ar(Math.round(255*s[1]),0,255),Ar(Math.round(255*s[2]),0,255),o)},oklab:function(e,A){if(An(A.filter(ez)))throw Error("Relative color not supported for oklab()");var t=Au(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Av(AC(Am([n,r,i])));return AA(Ar(Math.round(255*s[0]),0,255),Ar(Math.round(255*s[1]),0,255),Ar(Math.round(255*s[2]),0,255),o)},lab:function(e,A){if(An(A.filter(ez)))throw Error("Relative color not supported for lab()");var t=Au(A),n=t[0],r=t[1],i=t[2],o=t[3],s=Av(AC(Aw([n,r,i])));return AA(Ar(Math.round(255*s[0]),0,255),Ar(Math.round(255*s[1]),0,255),Ar(Math.round(255*s[2]),0,255),o)},color:function(e,A){var t=A.filter(ez),n=20===t[0].type?t[0].value:"unknown";if(!An(t)){var r=AD[n];if(void 0===r)throw Error('Attempting to parse an unsupported color space "'.concat(n,'" for color() function'));var i=eP(t[1])?t[1].number:0,o=eP(t[2])?t[2].number:0,s=eP(t[3])?t[3].number:0,a=t.length>4&&6===t[4].type&&"/"===t[4].value&&eP(t[5])?t[5].number:1;return r([i,o,s,a])}var l=function(e,A){if(eP(A))return A.number;if(e_(A)){var t;return e["r"===(t=A.value)||"x"===t?0:"g"===t||"y"===t?1:2]}var n=function(e){for(var A=e.filter(ez),t="(",r=0;r<A.length;r++){var i=A[r];t+=18===i.type&&"calc"===i.name?n(i.values):eP(i)?i.number:6===i.type||e_(i)?i.value:""}return t+")"};if(18===A.type){var r=A.values.filter(ez);if("calc"===A.name)return Function("return "+n(r).replace(/r|x/,e[0].toString()).replace(/g|y/,e[1].toString()).replace(/b|z/,e[2].toString()))()}return null},c=18===t[1].type?t[1].name:e_(t[1])||5===t[1].type?"rgb":"unknown",u=e_(t[2])?t[2].value:"unknown",d=18===t[1].type?t[1].values:e_(t[1])?[t[1]]:[];if(e_(t[1])){if(void 0===AO[t[1].value.toUpperCase()])throw Error("Attempting to use unknown color in relative color 'from'");var h=AM(e,t[1].value),f=255&h,g=255&h>>8,p=255&h>>16,B=255&h>>24;d=[{type:17,number:B,flags:1},{type:17,number:p,flags:1},{type:17,number:g,flags:1},{type:17,number:f>1?f/255:f,flags:1}]}else if(5===t[1].type){var m=Aj(t[1]),B=m[0],p=m[1],g=m[2],f=m[3];d=[{type:17,number:B,flags:1},{type:17,number:p,flags:1},{type:17,number:g,flags:1},{type:17,number:f>1?f/255:f,flags:1}]}if(0===d.length)throw Error("Attempting to use unknown color in relative color 'from'");if("unknown"===u)throw Error("Attempting to use unknown colorspace in relative color 'to'");var w=AL[c],y=AR[u],x=AD[u];if(void 0===w)throw Error('Attempting to parse an unsupported color space "'.concat(c,'" for color() function'));if(void 0===y)throw Error('Attempting to parse an unsupported color space "'.concat(u,'" for color() function'));var C=y(w(e,d)),i=l(C,t[3]),o=l(C,t[4]),s=l(C,t[5]),a=t.length>6&&6===t[6].type&&"/"===t[6].value&&eP(t[7])?t[7].number:1;if(null===i||null===o||null===s)throw Error("Invalid relative color in color() function");return x([i,o,s,a])}},AM=function(e,A){return Ak(e,eO.create(A).parseComponentValue())},AO={ALICEBLUE:0xf0f8ffff,ANTIQUEWHITE:0xfaebd7ff,AQUA:0xffffff,AQUAMARINE:0x7fffd4ff,AZURE:0xf0ffffff,BEIGE:0xf5f5dcff,BISQUE:0xffe4c4ff,BLACK:255,BLANCHEDALMOND:0xffebcdff,BLUE:65535,BLUEVIOLET:0x8a2be2ff,BROWN:0xa52a2aff,BURLYWOOD:0xdeb887ff,CADETBLUE:0x5f9ea0ff,CHARTREUSE:0x7fff00ff,CHOCOLATE:0xd2691eff,CORAL:0xff7f50ff,CORNFLOWERBLUE:0x6495edff,CORNSILK:0xfff8dcff,CRIMSON:0xdc143cff,CYAN:0xffffff,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:0xb886bbff,DARKGRAY:0xa9a9a9ff,DARKGREEN:6553855,DARKGREY:0xa9a9a9ff,DARKKHAKI:0xbdb76bff,DARKMAGENTA:0x8b008bff,DARKOLIVEGREEN:0x556b2fff,DARKORANGE:0xff8c00ff,DARKORCHID:0x9932ccff,DARKRED:0x8b0000ff,DARKSALMON:0xe9967aff,DARKSEAGREEN:0x8fbc8fff,DARKSLATEBLUE:0x483d8bff,DARKSLATEGRAY:0x2f4f4fff,DARKSLATEGREY:0x2f4f4fff,DARKTURQUOISE:0xced1ff,DARKVIOLET:0x9400d3ff,DEEPPINK:0xff1493ff,DEEPSKYBLUE:0xbfffff,DIMGRAY:0x696969ff,DIMGREY:0x696969ff,DODGERBLUE:0x1e90ffff,FIREBRICK:0xb22222ff,FLORALWHITE:0xfffaf0ff,FORESTGREEN:0x228b22ff,FUCHSIA:0xff00ffff,GAINSBORO:0xdcdcdcff,GHOSTWHITE:0xf8f8ffff,GOLD:0xffd700ff,GOLDENROD:0xdaa520ff,GRAY:0x808080ff,GREEN:8388863,GREENYELLOW:0xadff2fff,GREY:0x808080ff,HONEYDEW:0xf0fff0ff,HOTPINK:0xff69b4ff,INDIANRED:0xcd5c5cff,INDIGO:0x4b0082ff,IVORY:0xfffff0ff,KHAKI:0xf0e68cff,LAVENDER:0xe6e6faff,LAVENDERBLUSH:0xfff0f5ff,LAWNGREEN:0x7cfc00ff,LEMONCHIFFON:0xfffacdff,LIGHTBLUE:0xadd8e6ff,LIGHTCORAL:0xf08080ff,LIGHTCYAN:0xe0ffffff,LIGHTGOLDENRODYELLOW:0xfafad2ff,LIGHTGRAY:0xd3d3d3ff,LIGHTGREEN:0x90ee90ff,LIGHTGREY:0xd3d3d3ff,LIGHTPINK:0xffb6c1ff,LIGHTSALMON:0xffa07aff,LIGHTSEAGREEN:0x20b2aaff,LIGHTSKYBLUE:0x87cefaff,LIGHTSLATEGRAY:0x778899ff,LIGHTSLATEGREY:0x778899ff,LIGHTSTEELBLUE:0xb0c4deff,LIGHTYELLOW:0xffffe0ff,LIME:0xff00ff,LIMEGREEN:0x32cd32ff,LINEN:0xfaf0e6ff,MAGENTA:0xff00ffff,MAROON:0x800000ff,MEDIUMAQUAMARINE:0x66cdaaff,MEDIUMBLUE:52735,MEDIUMORCHID:0xba55d3ff,MEDIUMPURPLE:0x9370dbff,MEDIUMSEAGREEN:0x3cb371ff,MEDIUMSLATEBLUE:0x7b68eeff,MEDIUMSPRINGGREEN:0xfa9aff,MEDIUMTURQUOISE:0x48d1ccff,MEDIUMVIOLETRED:0xc71585ff,MIDNIGHTBLUE:0x191970ff,MINTCREAM:0xf5fffaff,MISTYROSE:0xffe4e1ff,MOCCASIN:0xffe4b5ff,NAVAJOWHITE:0xffdeadff,NAVY:33023,OLDLACE:0xfdf5e6ff,OLIVE:0x808000ff,OLIVEDRAB:0x6b8e23ff,ORANGE:0xffa500ff,ORANGERED:0xff4500ff,ORCHID:0xda70d6ff,PALEGOLDENROD:0xeee8aaff,PALEGREEN:0x98fb98ff,PALETURQUOISE:0xafeeeeff,PALEVIOLETRED:0xdb7093ff,PAPAYAWHIP:0xffefd5ff,PEACHPUFF:0xffdab9ff,PERU:0xcd853fff,PINK:0xffc0cbff,PLUM:0xdda0ddff,POWDERBLUE:0xb0e0e6ff,PURPLE:0x800080ff,REBECCAPURPLE:0x663399ff,RED:0xff0000ff,ROSYBROWN:0xbc8f8fff,ROYALBLUE:0x4169e1ff,SADDLEBROWN:0x8b4513ff,SALMON:0xfa8072ff,SANDYBROWN:0xf4a460ff,SEAGREEN:0x2e8b57ff,SEASHELL:0xfff5eeff,SIENNA:0xa0522dff,SILVER:0xc0c0c0ff,SKYBLUE:0x87ceebff,SLATEBLUE:0x6a5acdff,SLATEGRAY:0x708090ff,SLATEGREY:0x708090ff,SNOW:0xfffafaff,SPRINGGREEN:0xff7fff,STEELBLUE:0x4682b4ff,TAN:0xd2b48cff,TEAL:8421631,THISTLE:0xd8bfd8ff,TOMATO:0xff6347ff,TRANSPARENT:0,TURQUOISE:0x40e0d0ff,VIOLET:0xee82eeff,WHEAT:0xf5deb3ff,WHITE:0xffffffff,WHITESMOKE:0xf5f5f5ff,YELLOW:0xffff00ff,YELLOWGREEN:0x9acd32ff},AN={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(e){if(e_(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},AP={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},A_=function(e,A){var t=Ak(e,A[0]),n=A[1];return n&&eY(n)?{color:t,stop:n}:{color:t,stop:null}},AK=function(e,A){var t=e[0],n=e[e.length-1];null===t.stop&&(t.stop=eq),null===n.stop&&(n.stop=e0);for(var r=[],i=0,o=0;o<e.length;o++){var s=e[o].stop;if(null!==s){var a=e2(s,A);a>i?r.push(a):r.push(i),i=a}else r.push(null)}for(var l=null,o=0;o<r.length;o++){var c=r[o];if(null===c)null===l&&(l=o);else if(null!==l){for(var u=o-l,d=(c-r[l-1])/(u+1),h=1;h<=u;h++)r[l+h-1]=d*h;l=null}}return e.map(function(e,t){return{color:e.color,stop:Math.max(Math.min(1,r[t]/A),0)}})},AV=function(e,A,t){var n=A/2,r=t/2,i=e2(e[0],A)-n;return(Math.atan2(r-e2(e[1],t),i)+2*Math.PI)%(2*Math.PI)},AG=function(e,A,t){var n="number"==typeof e?e:AV(e,A,t),r=Math.abs(A*Math.sin(n))+Math.abs(t*Math.cos(n)),i=A/2,o=t/2,s=r/2,a=Math.sin(n-Math.PI/2)*s,l=Math.cos(n-Math.PI/2)*s;return[r,i-l,i+l,o-a,o+a]},Az=function(e,A){return Math.sqrt(e*e+A*A)},AW=function(e,A,t,n,r){return[[0,0],[0,A],[e,0],[e,A]].reduce(function(e,A){var i=Az(t-A[0],n-A[1]);return(r?i<e.optimumDistance:i>e.optimumDistance)?{optimumCorner:A,optimumDistance:i}:e},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},A$=function(e,A,t,n,r){var i=0,o=0;switch(e.size){case 0:0===e.shape?i=o=Math.min(Math.abs(A),Math.abs(A-n),Math.abs(t),Math.abs(t-r)):1===e.shape&&(i=Math.min(Math.abs(A),Math.abs(A-n)),o=Math.min(Math.abs(t),Math.abs(t-r)));break;case 2:if(0===e.shape)i=o=Math.min(Az(A,t),Az(A,t-r),Az(A-n,t),Az(A-n,t-r));else if(1===e.shape){var s=Math.min(Math.abs(t),Math.abs(t-r))/Math.min(Math.abs(A),Math.abs(A-n)),a=AW(n,r,A,t,!0),l=a[0],c=a[1];i=Az(l-A,(c-t)/s),o=s*i}break;case 1:0===e.shape?i=o=Math.max(Math.abs(A),Math.abs(A-n),Math.abs(t),Math.abs(t-r)):1===e.shape&&(i=Math.max(Math.abs(A),Math.abs(A-n)),o=Math.max(Math.abs(t),Math.abs(t-r)));break;case 3:if(0===e.shape)i=o=Math.max(Az(A,t),Az(A,t-r),Az(A-n,t),Az(A-n,t-r));else if(1===e.shape){var s=Math.max(Math.abs(t),Math.abs(t-r))/Math.max(Math.abs(A),Math.abs(A-n)),u=AW(n,r,A,t,!1),l=u[0],c=u[1];i=Az(l-A,(c-t)/s),o=s*i}}return Array.isArray(e.size)&&(i=e2(e.size[0],n),o=2===e.size.length?e2(e.size[1],r):i),[i,o]},AX=function(e,A){var t=e7(180),n=[];return eW(A).forEach(function(A,r){if(0===r){var i=A[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value)){t=e8(A);return}if(e6(i)){t=(e5(e,i)+e7(270))%e7(360);return}}var o=A_(e,A);n.push(o)}),{angle:t,stops:n,type:1}},AY="closest-side",AJ="farthest-side",Aq="closest-corner",AZ="farthest-corner",A0="circle",A1="ellipse",A2="cover",A4="contain",A3=function(e,A){var t=0,n=3,r=[],i=[];return eW(A).forEach(function(A,o){var s=!0;if(0===o?s=A.reduce(function(e,A){if(e_(A))switch(A.value){case"center":return i.push(eZ),!1;case"top":case"left":return i.push(eq),!1;case"right":case"bottom":return i.push(e0),!1}else if(eY(A)||eX(A))return i.push(A),!1;return e},s):1===o&&(s=A.reduce(function(e,A){if(e_(A))switch(A.value){case A0:return t=0,!1;case A1:return t=1,!1;case A4:case AY:return n=0,!1;case AJ:return n=1,!1;case Aq:return n=2,!1;case A2:case AZ:return n=3,!1}else if(eX(A)||eY(A))return Array.isArray(n)||(n=[]),n.push(A),!1;return e},s)),s){var a=A_(e,A);r.push(a)}}),{size:n,shape:t,stops:r,position:i,type:2}},A5=function(e,A){if(22===A.type){var t={url:A.value,type:0};return e.cache.addImage(A.value),t}if(18===A.type){var n=A6[A.name];if(void 0===n)throw Error('Attempting to parse an unsupported image function "'.concat(A.name,'"'));return n(e,A.values)}throw Error("Unsupported image type ".concat(A.type))},A6={"linear-gradient":function(e,A){var t=e7(180),n=[];return eW(A).forEach(function(A,r){if(0===r){var i=A[0];if(20===i.type&&"to"===i.value){t=e8(A);return}if(e6(i)){t=e5(e,i);return}}var o=A_(e,A);n.push(o)}),{angle:t,stops:n,type:1}},"-moz-linear-gradient":AX,"-ms-linear-gradient":AX,"-o-linear-gradient":AX,"-webkit-linear-gradient":AX,"radial-gradient":function(e,A){var t=0,n=3,r=[],i=[];return eW(A).forEach(function(A,o){var s=!0;if(0===o){var a=!1;s=A.reduce(function(e,A){if(a)if(e_(A))switch(A.value){case"center":i.push(eZ);break;case"top":case"left":i.push(eq);break;case"right":case"bottom":i.push(e0)}else(eY(A)||eX(A))&&i.push(A);else if(e_(A))switch(A.value){case A0:return t=0,!1;case A1:return t=1,!1;case"at":return a=!0,!1;case AY:return n=0,!1;case A2:case AJ:return n=1,!1;case A4:case Aq:return n=2,!1;case AZ:return n=3,!1}else if(eX(A)||eY(A))return Array.isArray(n)||(n=[]),n.push(A),!1;return e},s)}if(s){var l=A_(e,A);r.push(l)}}),{size:n,shape:t,stops:r,position:i,type:2}},"-moz-radial-gradient":A3,"-ms-radial-gradient":A3,"-o-radial-gradient":A3,"-webkit-radial-gradient":A3,"-webkit-gradient":function(e,A){var t=e7(180),n=[],r=1;return eW(A).forEach(function(A,t){var i=A[0];if(0===t){if(e_(i)&&"linear"===i.value){r=1;return}else if(e_(i)&&"radial"===i.value){r=2;return}}if(18===i.type){if("from"===i.name){var o=Ak(e,i.values[0]);n.push({stop:eq,color:o})}else if("to"===i.name){var o=Ak(e,i.values[0]);n.push({stop:e0,color:o})}else if("color-stop"===i.name){var s=i.values.filter(ez);if(2===s.length){var o=Ak(e,s[1]),a=s[0];eP(a)&&n.push({stop:{type:16,number:100*a.number,flags:a.flags},color:o})}}}}),1===r?{angle:(t+e7(180))%e7(360),stops:n,type:r}:{size:3,shape:0,stops:n,position:[],type:r}}},A8={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(0===A.length)return[];var t=A[0];return 20===t.type&&"none"===t.value?[]:A.filter(function(e){var A;return ez(e)&&(20!==(A=e).type||"none"!==A.value)&&(18!==A.type||!!A6[A.name])}).map(function(A){return A5(e,A)})}},A7={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(e){if(e_(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},A9={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return eW(A).map(function(e){return e.filter(eY)}).map(eJ)}},te={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return eW(A).map(function(e){return e.filter(e_).map(function(e){return e.value}).join(" ")}).map(tA)}},tA=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};(o=B||(B={})).AUTO="auto",o.CONTAIN="contain",o.COVER="cover";var tt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return eW(A).map(function(e){return e.filter(tn)})}},tn=function(e){return e_(e)||eY(e)},tr=function(e){return{name:"border-".concat(e,"-color"),initialValue:"transparent",prefix:!1,type:3,format:"color"}},ti=tr("top"),to=tr("right"),ts=tr("bottom"),ta=tr("left"),tl=function(e){return{name:"border-radius-".concat(e),initialValue:"0 0",prefix:!1,type:1,parse:function(e,A){return eJ(A.filter(eY))}}},tc=tl("top-left"),tu=tl("top-right"),td=tl("bottom-right"),th=tl("bottom-left"),tf=function(e){return{name:"border-".concat(e,"-style"),initialValue:"solid",prefix:!1,type:2,parse:function(e,A){switch(A){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},tg=tf("top"),tp=tf("right"),tB=tf("bottom"),tm=tf("left"),tw=function(e){return{name:"border-".concat(e,"-width"),initialValue:"0",type:0,prefix:!1,parse:function(e,A){return eN(A)?A.number:0}}},ty=tw("top"),tx=tw("right"),tC=tw("bottom"),tb=tw("left"),tv={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},tQ={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){return+("rtl"===A)}},tF={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(e_).reduce(function(e,A){return e|tU(A.value)},0)}},tU=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 0x1000000;case"inline-block":return 0x2000000;case"inline-list-item":return 0x4000000;case"inline-table":return 0x8000000;case"inline-flex":return 0x10000000;case"inline-grid":return 0x20000000}return 0},tE={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},tI={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return 20===A.type&&"normal"===A.value?0:17===A.type||15===A.type?A.number:0}};(s=m||(m={})).NORMAL="normal",s.STRICT="strict";var tS={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return"strict"===A?m.STRICT:m.NORMAL}},tk={name:"line-height",initialValue:"normal",prefix:!1,type:4},tj=function(e,A){return e_(e)&&"normal"===e.value?1.2*A:17===e.type?A*e.number:eY(e)?e2(e,A):A},tH={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return 20===A.type&&"none"===A.value?null:A5(e,A)}},tD={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){return+("inside"!==A)}},tL={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 52;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return -1}}},tR=function(e){return{name:"margin-".concat(e),initialValue:"0",prefix:!1,type:4}},tT=tR("top"),tM=tR("right"),tO=tR("bottom"),tN=tR("left"),tP={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(e_).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},t_={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return"break-word"===A?"break-word":"normal"}},tK=function(e){return{name:"padding-".concat(e),initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},tV=tK("top"),tG=tK("right"),tz=tK("bottom"),tW=tK("left"),t$={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},tX={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},tY={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return 1===A.length&&eV(A[0],"none")?[]:eW(A).map(function(A){for(var t={color:AO.TRANSPARENT,offsetX:eq,offsetY:eq,blur:eq},n=0,r=0;r<A.length;r++){var i=A[r];eX(i)?(0===n?t.offsetX=i:1===n?t.offsetY=i:t.blur=i,n++):t.color=Ak(e,i)}return t})}},tJ={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},tq={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,A){if(20===A.type&&"none"===A.value)return null;if(18===A.type){var t=tZ[A.name];if(void 0===t)throw Error('Attempting to parse an unsupported transform function "'.concat(A.name,'"'));return t(e,A.values)}return null}},tZ={matrix:function(e,A){var t=A.filter(function(e){return 17===e.type}).map(function(e){return e.number});return 6===t.length?t:null},matrix3d:function(e,A){var t=A.filter(function(e){return 17===e.type}).map(function(e){return e.number}),n=t[0],r=t[1];t[2],t[3];var i=t[4],o=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var s=t[12],a=t[13];return t[14],t[15],16===t.length?[n,r,i,o,s,a]:null},rotate:function(e,A){if(1!==A.length)return null;var t=A[0],n=0;if(17===t.type&&0===t.number)n=0;else{if(15!==t.type)return null;n=e5(e,t)}var r=Math.cos(n),i=Math.sin(n);return[r,i,-i,r,0,0]}},t0={type:16,number:50,flags:4},t1=[t0,t0],t2={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var t=A.filter(eY);return 2!==t.length?t1:[t[0],t[1]]}},t4={name:"rotate",initialValue:"none",prefix:!1,type:0,parse:function(e,A){return 20===A.type&&"none"===A.value?null:17===A.type&&0===A.number?0:15===A.type?180*e5(e,A)/Math.PI:null}},t3={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;default:return 0}}};(a=w||(w={})).NORMAL="normal",a.BREAK_ALL="break-all",a.KEEP_ALL="keep-all";for(var t5={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return w.BREAK_ALL;case"keep-all":return w.KEEP_ALL;default:return w.NORMAL}}},t6={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(20===A.type)return{auto:!0,order:0};if(eP(A))return{auto:!1,order:A.number};throw Error("Invalid z-index number parsed")}},t8=function(e,A){if(15===A.type)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw Error("Unsupported time type")},t7={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return eP(A)?A.number:1}},t9={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ne={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(e_).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}},nA={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var t=[],n=[];return A.forEach(function(e){switch(e.type){case 20:case 0:t.push(e.value);break;case 17:t.push(e.number.toString());break;case 4:n.push(t.join(" ")),t.length=0}}),t.length&&n.push(t.join(" ")),n.map(function(e){return -1===e.indexOf(" ")?e:"'".concat(e,"'")})}},nt={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},nn={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){return eP(A)?A.number:e_(A)&&"bold"===A.value?700:400}},nr={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(e_).map(function(e){return e.value})}},ni={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},no=function(e,A){return(e&A)!=0},ns={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(0===A.length)return[];var t=A[0];return 20===t.type&&"none"===t.value?[]:A}},na={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(0===A.length)return null;var t=A[0];if(20===t.type&&"none"===t.value)return null;for(var n=[],r=A.filter(eG),i=0;i<r.length;i++){var o=r[i],s=r[i+1];if(20===o.type){var a=s&&eP(s)?s.number:1;n.push({counter:o.value,increment:a})}}return n}},nl={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(0===A.length)return[];for(var t=[],n=A.filter(eG),r=0;r<n.length;r++){var i=n[r],o=n[r+1];if(e_(i)&&"none"!==i.value){var s=o&&eP(o)?o.number:0;t.push({counter:i.value,reset:s})}}return t}},nc={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(eN).map(function(A){return t8(e,A)})}},nu={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(0===A.length)return null;var t=A[0];if(20===t.type&&"none"===t.value)return null;var n=[],r=A.filter(eK);if(r.length%2!=0)return null;for(var i=0;i<r.length;i+=2){var o=r[i].value,s=r[i+1].value;n.push({open:o,close:s})}return n}},nd=function(e,A,t){if(!e)return"";var n=e[Math.min(A,e.length-1)];return n?t?n.open:n.close:""},nh={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return 1===A.length&&eV(A[0],"none")?[]:eW(A).map(function(A){for(var t={color:255,offsetX:eq,offsetY:eq,blur:eq,spread:eq,inset:!1},n=0,r=0;r<A.length;r++){var i=A[r];eV(i,"inset")?t.inset=!0:eX(i)?(0===n?t.offsetX=i:1===n?t.offsetY=i:2===n?t.blur=i:t.spread=i,n++):t.color=Ak(e,i)}return t})}},nf={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var t=[];return A.filter(e_).forEach(function(e){switch(e.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2)}}),[0,1,2].forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),t}},ng={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},np={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return eN(A)?A.number:0}},nB={name:"objectFit",initialValue:"fill",prefix:!1,type:1,parse:function(e,A){return A.filter(e_).reduce(function(e,A){return e|nm(A.value)},0)}},nm=function(e){switch(e){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},nw=function(){function e(e,A){this.animationDuration=nC(e,nc,A.animationDuration),this.backgroundClip=nC(e,AN,A.backgroundClip),this.backgroundColor=nC(e,AP,A.backgroundColor),this.backgroundImage=nC(e,A8,A.backgroundImage),this.backgroundOrigin=nC(e,A7,A.backgroundOrigin),this.backgroundPosition=nC(e,A9,A.backgroundPosition),this.backgroundRepeat=nC(e,te,A.backgroundRepeat),this.backgroundSize=nC(e,tt,A.backgroundSize),this.borderTopColor=nC(e,ti,A.borderTopColor),this.borderRightColor=nC(e,to,A.borderRightColor),this.borderBottomColor=nC(e,ts,A.borderBottomColor),this.borderLeftColor=nC(e,ta,A.borderLeftColor),this.borderTopLeftRadius=nC(e,tc,A.borderTopLeftRadius),this.borderTopRightRadius=nC(e,tu,A.borderTopRightRadius),this.borderBottomRightRadius=nC(e,td,A.borderBottomRightRadius),this.borderBottomLeftRadius=nC(e,th,A.borderBottomLeftRadius),this.borderTopStyle=nC(e,tg,A.borderTopStyle),this.borderRightStyle=nC(e,tp,A.borderRightStyle),this.borderBottomStyle=nC(e,tB,A.borderBottomStyle),this.borderLeftStyle=nC(e,tm,A.borderLeftStyle),this.borderTopWidth=nC(e,ty,A.borderTopWidth),this.borderRightWidth=nC(e,tx,A.borderRightWidth),this.borderBottomWidth=nC(e,tC,A.borderBottomWidth),this.borderLeftWidth=nC(e,tb,A.borderLeftWidth),this.boxShadow=nC(e,nh,A.boxShadow),this.color=nC(e,tv,A.color),this.direction=nC(e,tQ,A.direction),this.display=nC(e,tF,A.display),this.float=nC(e,tE,A.cssFloat),this.fontFamily=nC(e,nA,A.fontFamily),this.fontSize=nC(e,nt,A.fontSize),this.fontStyle=nC(e,ni,A.fontStyle),this.fontVariant=nC(e,nr,A.fontVariant),this.fontWeight=nC(e,nn,A.fontWeight),this.letterSpacing=nC(e,tI,A.letterSpacing),this.lineBreak=nC(e,tS,A.lineBreak),this.lineHeight=nC(e,tk,A.lineHeight),this.listStyleImage=nC(e,tH,A.listStyleImage),this.listStylePosition=nC(e,tD,A.listStylePosition),this.listStyleType=nC(e,tL,A.listStyleType),this.marginTop=nC(e,tT,A.marginTop),this.marginRight=nC(e,tM,A.marginRight),this.marginBottom=nC(e,tO,A.marginBottom),this.marginLeft=nC(e,tN,A.marginLeft),this.opacity=nC(e,t7,A.opacity);var t,n,r=nC(e,tP,A.overflow);this.overflowX=r[0],this.overflowY=r[+(r.length>1)],this.overflowWrap=nC(e,t_,A.overflowWrap),this.paddingTop=nC(e,tV,A.paddingTop),this.paddingRight=nC(e,tG,A.paddingRight),this.paddingBottom=nC(e,tz,A.paddingBottom),this.paddingLeft=nC(e,tW,A.paddingLeft),this.paintOrder=nC(e,nf,A.paintOrder),this.position=nC(e,tX,A.position),this.textAlign=nC(e,t$,A.textAlign),this.textDecorationColor=nC(e,t9,null!=(t=A.textDecorationColor)?t:A.color),this.textDecorationLine=nC(e,ne,null!=(n=A.textDecorationLine)?n:A.textDecoration),this.textShadow=nC(e,tY,A.textShadow),this.textTransform=nC(e,tJ,A.textTransform),this.transform=nC(e,tq,A.transform),this.transformOrigin=nC(e,t2,A.transformOrigin),this.rotate=nC(e,t4,A.rotate),this.visibility=nC(e,t3,A.visibility),this.webkitTextStrokeColor=nC(e,ng,A.webkitTextStrokeColor),this.webkitTextStrokeWidth=nC(e,np,A.webkitTextStrokeWidth),this.wordBreak=nC(e,t5,A.wordBreak),this.zIndex=nC(e,t6,A.zIndex),this.objectFit=nC(e,nB,A.objectFit)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return e9(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform||null!==this.rotate},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return no(this.display,4)||no(this.display,0x2000000)||no(this.display,0x10000000)||no(this.display,0x20000000)||no(this.display,0x4000000)||no(this.display,0x8000000)},e}(),ny=function(e,A){this.content=nC(e,ns,A.content),this.quotes=nC(e,nu,A.quotes)},nx=function(e,A){this.counterIncrement=nC(e,na,A.counterIncrement),this.counterReset=nC(e,nl,A.counterReset)},nC=function(e,A,t){var n=new eM,r=null!=t?t.toString():A.initialValue;n.write(r);var i=new eO(n.read());switch(A.type){case 2:var o=i.parseComponentValue();return A.parse(e,e_(o)?o.value:A.initialValue);case 0:return A.parse(e,i.parseComponentValue());case 1:return A.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(A.format){case"angle":return e5(e,i.parseComponentValue());case"color":return Ak(e,i.parseComponentValue());case"image":return A5(e,i.parseComponentValue());case"length":var s=i.parseComponentValue();return eX(s)?s:eq;case"length-percentage":var a=i.parseComponentValue();return eY(a)?a:eq;case"time":return t8(e,i.parseComponentValue())}}},nb=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},nv=function(e,A){var t=nb(e);return 1===t||A===t},nQ=function(e,A){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,nv(A,3),this.styles=new nw(e,window.getComputedStyle(A,null)),rI(A)&&(this.styles.animationDuration.some(function(e){return e>0})&&(A.style.animationDuration="0s"),null!==this.styles.transform&&(A.style.transform="none"),null!==this.styles.rotate&&(A.style.rotate="none")),this.bounds=I(this.context,A),nv(A,4)&&(this.flags|=16)},nF="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nU="undefined"==typeof Uint8Array?[]:new Uint8Array(256),nE=0;nE<nF.length;nE++)nU[nF.charCodeAt(nE)]=nE;for(var nI=2112,nS=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},nk=function(){function e(e,A,t,n,r,i){this.initialValue=e,this.errorValue=A,this.highStart=t,this.highValueIndex=n,this.index=r,this.data=i}return e.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=((A=this.index[e>>5])<<2)+(31&e),this.data[A];if(e<=65535)return A=((A=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[A];if(e<this.highStart)return A=nI-32+(e>>11),A=this.index[A]+(e>>5&63),A=((A=this.index[A])<<2)+(31&e),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),nj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nH="undefined"==typeof Uint8Array?[]:new Uint8Array(256),nD=0;nD<nj.length;nD++)nH[nj.charCodeAt(nD)]=nD;var nL=function(e){for(var A=[],t=0,n=e.length;t<n;){var r=e.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var i=e.charCodeAt(t++);(64512&i)==56320?A.push(((1023&r)<<10)+(1023&i)+65536):(A.push(r),t--)}else A.push(r)}return A},nR=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var n=[],r=-1,i="";++r<t;){var o=e[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},nT=(c=Array.isArray(l=function(e){var A,t,n,r,i,o=.75*e.length,s=e.length,a=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(A=0;A<s;A+=4)t=nU[e.charCodeAt(A)],n=nU[e.charCodeAt(A+1)],r=nU[e.charCodeAt(A+2)],i=nU[e.charCodeAt(A+3)],c[a++]=t<<2|n>>4,c[a++]=(15&n)<<4|r>>2,c[a++]=(3&r)<<6|63&i;return l}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="))?function(e){for(var A=e.length,t=[],n=0;n<A;n+=4)t.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return t}(l):new Uint32Array(l),d=nS(u=Array.isArray(l)?function(e){for(var A=e.length,t=[],n=0;n<A;n+=2)t.push(e[n+1]<<8|e[n]);return t}(l):new Uint16Array(l),12,c[4]/2),f=2===c[5]?nS(u,(24+c[4])/2):(h=Math.ceil((24+c[4])/4),c.slice?c.slice(h,void 0):new Uint32Array(Array.prototype.slice.call(c,h,void 0))),new nk(c[0],c[1],c[2],c[3],d,f)),nM=function(e){return nT.get(e)},nO=function(e,A,t){var n=t-2,r=A[n],i=A[t-1],o=A[t];if(2===i&&3===o)return"×";if(2===i||3===i||4===i||2===o||3===o||4===o)return"÷";if(8===i&&-1!==[8,9,11,12].indexOf(o)||(11===i||9===i)&&(9===o||10===o)||(12===i||10===i)&&10===o||13===o||5===o||7===o||1===i)return"×";if(13===i&&14===o){for(;5===r;)r=A[--n];if(14===r)return"×"}if(15===i&&15===o){for(var s=0;15===r;)s++,r=A[--n];if(s%2==0)return"×"}return"÷"},nN=function(e){var A=nL(e),t=A.length,n=0,r=0,i=A.map(nM);return{next:function(){if(n>=t)return{done:!0,value:null};for(var e="×";n<t&&"×"===(e=nO(A,i,++n)););if("×"!==e||n===t){var o=nR.apply(null,A.slice(r,n));return r=n,{value:o,done:!1}}return{done:!0,value:null}}}},nP=function(e){for(var A,t=nN(e),n=[];!(A=t.next()).done;)A.value&&n.push(A.value.slice());return n},n_=function(e){if(e.createRange){var A=e.createRange();if(A.getBoundingClientRect){var t=e.createElement("boundtest");t.style.height="".concat(123,"px"),t.style.display="block",e.body.appendChild(t),A.selectNode(t);var n=Math.round(A.getBoundingClientRect().height);if(e.body.removeChild(t),123===n)return!0}}return!1},nK=function(e){var A=e.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",e.body.appendChild(A);var t=e.createRange();A.innerHTML="function"==typeof"".repeat?"👨".repeat(10):"";var n=A.firstChild,r=k(n.data).map(function(e){return j(e)}),i=0,o={},s=r.every(function(e,A){t.setStart(n,i),t.setEnd(n,i+e.length);var r=t.getBoundingClientRect();i+=e.length;var s=r.x>o.x||r.y>o.y;return o=r,0===A||s});return e.body.removeChild(A),s},nV=function(e){var A=new Image,t=e.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(A,0,0),t.toDataURL()}catch(e){return!1}return!0},nG=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},nz=function(e){var A=e.createElement("canvas");A.width=100,A.height=100;var t=A.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,100,100);var n=new Image,r=A.toDataURL();n.src=r;var i=nW(100,100,0,0,n);return t.fillStyle="red",t.fillRect(0,0,100,100),n$(i).then(function(A){t.drawImage(A,0,0);var n=t.getImageData(0,0,100,100).data;t.fillStyle="red",t.fillRect(0,0,100,100);var i=e.createElement("div");return i.style.backgroundImage="url(".concat(r,")"),i.style.height="".concat(100,"px"),nG(n)?n$(nW(100,100,0,0,i)):Promise.reject(!1)}).then(function(e){return t.drawImage(e,0,0),nG(t.getImageData(0,0,100,100).data)}).catch(function(){return!1})},nW=function(e,A,t,n,r){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",e.toString()),o.setAttributeNS(null,"height",A.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(r),o},n$=function(e){return new Promise(function(A,t){var n=new Image;n.onload=function(){return A(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(new XMLSerializer().serializeToString(e)))})},nX={get SUPPORT_RANGE_BOUNDS(){var nY=n_(document);return Object.defineProperty(nX,"SUPPORT_RANGE_BOUNDS",{value:nY}),nY},get SUPPORT_WORD_BREAKING(){var nJ=nX.SUPPORT_RANGE_BOUNDS&&nK(document);return Object.defineProperty(nX,"SUPPORT_WORD_BREAKING",{value:nJ}),nJ},get SUPPORT_SVG_DRAWING(){var nq=nV(document);return Object.defineProperty(nX,"SUPPORT_SVG_DRAWING",{value:nq}),nq},get SUPPORT_FOREIGNOBJECT_DRAWING(){var nZ="function"==typeof Array.from&&"function"==typeof window.fetch?nz(document):Promise.resolve(!1);return Object.defineProperty(nX,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:nZ}),nZ},get SUPPORT_CORS_IMAGES(){var n0=void 0!==new Image().crossOrigin;return Object.defineProperty(nX,"SUPPORT_CORS_IMAGES",{value:n0}),n0},get SUPPORT_RESPONSE_TYPE(){var n1="string"==typeof new XMLHttpRequest().responseType;return Object.defineProperty(nX,"SUPPORT_RESPONSE_TYPE",{value:n1}),n1},get SUPPORT_CORS_XHR(){var n2="withCredentials"in new XMLHttpRequest;return Object.defineProperty(nX,"SUPPORT_CORS_XHR",{value:n2}),n2},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var n4=!!("undefined"!=typeof Intl&&Intl.Segmenter);return Object.defineProperty(nX,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:n4}),n4}},n3=function(e,A){this.text=e,this.bounds=A},n5=function(e,A,t,n){var r=n9(A,t),i=[],o=0;return r.forEach(function(A){if(t.textDecorationLine.length||A.trim().length>0)if(nX.SUPPORT_RANGE_BOUNDS){var r=n8(n,o,A.length).getClientRects();if(r.length>1){var s=n7(A),a=0;s.forEach(function(A){i.push(new n3(A,E.fromDOMRectList(e,n8(n,a+o,A.length).getClientRects()))),a+=A.length})}else i.push(new n3(A,E.fromDOMRectList(e,r)))}else{var l=n.splitText(A.length);i.push(new n3(A,n6(e,n))),n=l}else nX.SUPPORT_RANGE_BOUNDS||(n=n.splitText(A.length));o+=A.length}),i},n6=function(e,A){var t=A.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(A.cloneNode(!0));var r=A.parentNode;if(r){r.replaceChild(n,A);var i=I(e,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return E.EMPTY},n8=function(e,A,t){var n=e.ownerDocument;if(!n)throw Error("Node has no owner document");var r=n.createRange();return r.setStart(e,A),r.setEnd(e,A+t),r},n7=function(e){return nX.SUPPORT_NATIVE_TEXT_SEGMENTATION?Array.from(new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(e)).map(function(e){return e.segment}):nP(e)},n9=function(e,A){return 0!==A.letterSpacing?n7(e):nX.SUPPORT_NATIVE_TEXT_SEGMENTATION?Array.from(new Intl.Segmenter(void 0,{granularity:"word"}).segment(e)).map(function(e){return e.segment}):rA(e,A)},re=[32,160,4961,65792,65793,4153,4241],rA=function(e,A){for(var t,n=eo(e,{lineBreak:A.lineBreak,wordBreak:"break-word"===A.overflowWrap?"break-word":A.wordBreak}),r=[];!(t=n.next()).done;)!function(){if(t.value){var e=k(t.value.slice()),A="";e.forEach(function(e){-1===re.indexOf(e)?A+=j(e):(A.length&&r.push(A),r.push(j(e)),A="")}),A.length&&r.push(A)}}();return r},rt=function(e,A,t){this.text=rn(A.data,t.textTransform),this.textBounds=n5(e,this.text,t,A)},rn=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(rr,ri);case 2:return e.toUpperCase();default:return e}},rr=/(^|\s|:|-|\(|\))([a-z])/g,ri=function(e,A,t){return e.length>0?A+t.toUpperCase():e},ro=function(e){function A(A,t){var n=e.call(this,A,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return b(A,e),A}(nQ),rs=function(e){function A(A,t){var n=e.call(this,A,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return b(A,e),A}(nQ),ra=function(e){function A(A,t){var n=e.call(this,A,t)||this,r=new XMLSerializer,i=I(A,t);return t.setAttribute("width","".concat(i.width,"px")),t.setAttribute("height","".concat(i.height,"px")),n.svg="data:image/svg+xml,".concat(encodeURIComponent(r.serializeToString(t))),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return b(A,e),A}(nQ),rl=function(e){function A(A,t){var n=e.call(this,A,t)||this;return n.value=t.value,n}return b(A,e),A}(nQ),rc=function(e){function A(A,t){var n=e.call(this,A,t)||this;return n.start=t.start,n.reversed="boolean"==typeof t.reversed&&!0===t.reversed,n}return b(A,e),A}(nQ),ru=[{type:15,flags:0,unit:"px",number:3}],rd=[{type:16,flags:0,number:50}],rh=function(e){var A=e.type===rp?Array(e.value.length+1).join("•"):e.value;return 0===A.length?e.placeholder||"":A},rf="checkbox",rg="radio",rp="password",rB=function(e){function A(A,t){var n,r=e.call(this,A,t)||this;switch(r.type=t.type.toLowerCase(),r.checked=t.checked,r.value=rh(t),(r.type===rf||r.type===rg)&&(r.styles.backgroundColor=0xdededeff,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=0xa5a5a5ff,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=(n=r.bounds).width>n.height?new E(n.left+(n.width-n.height)/2,n.top,n.height,n.height):n.width<n.height?new E(n.left,n.top+(n.height-n.width)/2,n.width,n.width):n),r.type){case rf:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=ru;break;case rg:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=rd}return r}return b(A,e),A}(nQ),rm=function(e){function A(A,t){var n=e.call(this,A,t)||this,r=t.options[t.selectedIndex||0];return n.value=r&&r.text||"",n}return b(A,e),A}(nQ),rw=function(e){function A(A,t){var n=e.call(this,A,t)||this;return n.value=t.value,n}return b(A,e),A}(nQ),ry=function(e){function A(A,t){var n=e.call(this,A,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=rv(A,t.contentWindow.document.documentElement);var r=t.contentWindow.document.documentElement?AM(A,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):AO.TRANSPARENT,i=t.contentWindow.document.body?AM(A,getComputedStyle(t.contentWindow.document.body).backgroundColor):AO.TRANSPARENT;n.backgroundColor=e9(r)?e9(i)?n.styles.backgroundColor:i:r}}catch(e){}return n}return b(A,e),A}(nQ),rx=["OL","UL","MENU"],rC=function(e,A,t,n){for(var r=A.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,rU(r)&&r.data.length>0)t.textNodes.push(new rt(e,r,t.styles));else if(rE(r))if(rK(r)&&r.assignedNodes)r.assignedNodes().forEach(function(A){return rC(e,A,t,n)});else{var o=rb(e,r);o.styles.isVisible()&&(rQ(r,o,n)?o.flags|=4:rF(o.styles)&&(o.flags|=2),-1!==rx.indexOf(r.tagName)&&(o.flags|=8),t.elements.push(o),r.slot,r.shadowRoot?rC(e,r.shadowRoot,o,n):rP(r)||rD(r)||r_(r)||rC(e,r,o,n))}},rb=function(e,A){return rM(A)?new ro(e,A):rR(A)?new rs(e,A):rD(A)?new ra(e,A):rk(A)?new rl(e,A):rj(A)?new rc(e,A):rH(A)?new rB(e,A):r_(A)?new rm(e,A):rP(A)?new rw(e,A):rO(A)?new ry(e,A):new nQ(e,A)},rv=function(e,A){var t=rb(e,A);return t.flags|=4,rC(e,A,t,t),t},rQ=function(e,A,t){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||rL(e)&&t.styles.isTransparent()},rF=function(e){return e.isPositioned()||e.isFloating()},rU=function(e){return e.nodeType===Node.TEXT_NODE},rE=function(e){return e.nodeType===Node.ELEMENT_NODE},rI=function(e){return rE(e)&&void 0!==e.style&&!rS(e)},rS=function(e){return"object"==typeof e.className},rk=function(e){return"LI"===e.tagName},rj=function(e){return"OL"===e.tagName},rH=function(e){return"INPUT"===e.tagName},rD=function(e){return"svg"===e.tagName},rL=function(e){return"BODY"===e.tagName},rR=function(e){return"CANVAS"===e.tagName},rT=function(e){return"VIDEO"===e.tagName},rM=function(e){return"IMG"===e.tagName},rO=function(e){return"IFRAME"===e.tagName},rN=function(e){return"STYLE"===e.tagName},rP=function(e){return"TEXTAREA"===e.tagName},r_=function(e){return"SELECT"===e.tagName},rK=function(e){return"SLOT"===e.tagName},rV=function(e){return e.tagName.indexOf("-")>0},rG=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var A=this.counters[e];return A&&A.length?A[A.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var A=this;e.forEach(function(e){return A.counters[e].pop()})},e.prototype.parse=function(e){var A=this,t=e.counterIncrement,n=e.counterReset,r=!0;null!==t&&t.forEach(function(e){var t=A.counters[e.counter];t&&0!==e.increment&&(r=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=e.increment)});var i=[];return r&&n.forEach(function(e){var t=A.counters[e.counter];i.push(e.counter),t||(t=A.counters[e.counter]=[]),t.push(e.reset)}),i},e}(),rz={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},rW={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},r$={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},rX={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},rY=function(e,A,t,n,r,i){return e<A||e>t?r5(e,r,i.length>0):n.integers.reduce(function(A,t,r){for(;e>=t;)e-=t,A+=n.values[r];return A},"")+i},rJ=function(e,A,t,n){var r="";do!t&&e--,r=n(e)+r,e/=A;while(e*A>=A)return r},rq=function(e,A,t,n,r){var i=t-A+1;return(e<0?"-":"")+(rJ(Math.abs(e),i,n,function(e){return j(Math.floor(e%i)+A)})+r)},rZ=function(e,A,t){void 0===t&&(t=". ");var n=A.length;return rJ(Math.abs(e),n,!1,function(e){return A[Math.floor(e%n)]})+t},r0=function(e,A,t,n,r,i){if(e<-9999||e>9999)return r5(e,4,r.length>0);var o=Math.abs(e),s=r;if(0===o)return A[0]+s;for(var a=0;o>0&&a<=4;a++){var l=o%10;0===l&&no(i,1)&&""!==s?s=A[l]+s:l>1||1===l&&0===a||1===l&&1===a&&no(i,2)||1===l&&1===a&&no(i,4)&&e>100||1===l&&a>1&&no(i,8)?s=A[l]+(a>0?t[a-1]:"")+s:1===l&&a>0&&(s=t[a-1]+s),o=Math.floor(o/10)}return(e<0?n:"")+s},r1="十百千萬",r2="拾佰仟萬",r4="マイナス",r3="마이너스",r5=function(e,A,t){var n=t?". ":"",r=t?"、":"",i=t?", ":"",o=t?" ":"";switch(A){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=rq(e,48,57,!0,n);return s.length<4?"0".concat(s):s;case 4:return rZ(e,"〇一二三四五六七八九",r);case 6:return rY(e,1,3999,rz,3,n).toLowerCase();case 7:return rY(e,1,3999,rz,3,n);case 8:return rq(e,945,969,!1,n);case 9:return rq(e,97,122,!1,n);case 10:return rq(e,65,90,!1,n);case 11:return rq(e,1632,1641,!0,n);case 12:case 49:return rY(e,1,9999,rW,3,n);case 35:return rY(e,1,9999,rW,3,n).toLowerCase();case 13:return rq(e,2534,2543,!0,n);case 14:case 30:return rq(e,6112,6121,!0,n);case 15:return rZ(e,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return rZ(e,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return r0(e,"零一二三四五六七八九",r1,"負",r,14);case 47:return r0(e,"零壹貳參肆伍陸柒捌玖",r2,"負",r,15);case 42:return r0(e,"零一二三四五六七八九",r1,"负",r,14);case 41:return r0(e,"零壹贰叁肆伍陆柒捌玖",r2,"负",r,15);case 26:return r0(e,"〇一二三四五六七八九","十百千万",r4,r,0);case 25:return r0(e,"零壱弐参四伍六七八九","拾百千万",r4,r,7);case 31:return r0(e,"영일이삼사오육칠팔구","십백천만",r3,i,7);case 33:return r0(e,"零一二三四五六七八九","十百千萬",r3,i,0);case 32:return r0(e,"零壹貳參四五六七八九","拾百千",r3,i,7);case 18:return rq(e,2406,2415,!0,n);case 20:return rY(e,1,19999,rX,3,n);case 21:return rq(e,2790,2799,!0,n);case 22:return rq(e,2662,2671,!0,n);case 52:return rY(e,1,10999,r$,3,n);case 23:return rZ(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return rZ(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return rq(e,3302,3311,!0,n);case 28:return rZ(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return rZ(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return rq(e,3792,3801,!0,n);case 37:return rq(e,6160,6169,!0,n);case 38:return rq(e,4160,4169,!0,n);case 39:return rq(e,2918,2927,!0,n);case 40:return rq(e,1776,1785,!0,n);case 43:return rq(e,3046,3055,!0,n);case 44:return rq(e,3174,3183,!0,n);case 45:return rq(e,3664,3673,!0,n);case 46:return rq(e,3872,3881,!0,n);default:return rq(e,48,57,!0,n)}},r6="data-html2canvas-ignore",r8=function(){function e(e,A,t){if(this.context=e,this.options=t,this.scrolledElements=[],this.referenceElement=A,this.counters=new rG,this.quoteDepth=0,!A.ownerDocument)throw Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,A){var t=this,n=r7(e,A);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var r=e.defaultView.pageXOffset,i=e.defaultView.pageYOffset,o=n.contentWindow,s=o.document,a=iA(n).then(function(){return Q(t,void 0,void 0,function(){var e,t;return F(this,function(r){switch(r.label){case 0:if(this.scrolledElements.forEach(is),o&&(o.scrollTo(A.left,A.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==A.top||o.scrollX!==A.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-A.left,o.scrollY-A.top,0,0))),e=this.options.onclone,void 0===(t=this.clonedReferenceElement))return[2,Promise.reject("Error finding the ".concat(this.referenceElement.nodeName," in the cloned document"))];if(!(s.fonts&&s.fonts.ready))return[3,2];return[4,s.fonts.ready];case 1:r.sent(),r.label=2;case 2:if(!/(AppleWebKit)/g.test(navigator.userAgent))return[3,4];return[4,ie(s)];case 3:r.sent(),r.label=4;case 4:if("function"==typeof e)return[2,Promise.resolve().then(function(){return e(s,t)}).then(function(){return n})];return[2,n]}})})}),l=s.baseURI;s.open(),s.write("".concat(ii(document.doctype),"<html></html>")),io(this.referenceElement.ownerDocument,r,i);var c=s.adoptNode(this.documentElement);return ih(c,l),s.replaceChild(c,s.documentElement),s.close(),a},e.prototype.createElementClone=function(e){if(nv(e,2),rR(e))return this.createCanvasClone(e);if(rT(e))return this.createVideoClone(e);if(rN(e))return this.createStyleClone(e);var A=e.cloneNode(!1);return(rM(A)&&(rM(e)&&e.currentSrc&&e.currentSrc!==e.src&&(A.src=e.currentSrc,A.srcset=""),"lazy"===A.loading&&(A.loading="eager")),rV(A))?this.createCustomElementClone(A):A},e.prototype.createCustomElementClone=function(e){var A=document.createElement("html2canvascustomelement");return ir(e.style,A),A},e.prototype.createStyleClone=function(e){try{var A=e.sheet;if(A&&A.cssRules){var t=[].slice.call(A.cssRules,0).reduce(function(e,A){return A&&"string"==typeof A.cssText?e+A.cssText:e},""),n=e.cloneNode(!1);return n.textContent=t,n}}catch(e){if(this.context.logger.error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){if(this.options.inlineImages&&e.ownerDocument){var A,t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(A){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var r=e.getContext("2d"),i=n.getContext("2d",{willReadFrequently:!0});if(i)if(!this.options.allowTaint&&r)i.putImageData(r.getImageData(0,0,e.width,e.height),0,0);else{var o=null!=(A=e.getContext("webgl2"))?A:e.getContext("webgl");if(o){var s=o.getContextAttributes();(null==s?void 0:s.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}i.drawImage(e,0,0)}}catch(A){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return n},e.prototype.createVideoClone=function(e){var A=e.ownerDocument.createElement("canvas");A.width=e.offsetWidth,A.height=e.offsetHeight;var t=A.getContext("2d");try{return t&&(t.drawImage(e,0,0,A.width,A.height),this.options.allowTaint||t.getImageData(0,0,A.width,A.height)),A}catch(A){this.context.logger.info("Unable to clone video as it is tainted",e)}var n=e.ownerDocument.createElement("canvas");return n.width=e.offsetWidth,n.height=e.offsetHeight,n},e.prototype.appendChildNode=function(e,A,t){rE(A)&&("SCRIPT"===A.tagName||A.hasAttribute(r6)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(A))||this.options.copyStyles&&rE(A)&&rN(A)||e.appendChild(this.cloneNode(A,t))},e.prototype.cloneChildNodes=function(e,A,t){for(var n=this,r=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;r;r=r.nextSibling)if(rE(r)&&rK(r)&&"function"==typeof r.assignedNodes){var i=r.assignedNodes();i.length&&i.forEach(function(e){return n.appendChildNode(A,e,t)})}else this.appendChildNode(A,r,t)},e.prototype.cloneNode=function(e,A){if(rU(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(t&&rE(e)&&(rI(e)||rS(e))){var n=this.createElementClone(e);n.style.transitionProperty="none";var r=t.getComputedStyle(e),i=t.getComputedStyle(e,":before"),o=t.getComputedStyle(e,":after");this.referenceElement===e&&rI(n)&&(this.clonedReferenceElement=n),rL(n)&&iu(n);var s=this.counters.parse(new nx(this.context,r)),a=this.resolvePseudoContent(e,n,i,y.BEFORE);rV(e)&&(A=!0),rT(e)||this.cloneChildNodes(e,n,A),a&&n.insertBefore(a,n.firstChild);var l=this.resolvePseudoContent(e,n,o,y.AFTER);return l&&n.appendChild(l),this.counters.pop(s),(r&&(this.options.copyStyles||rS(e))&&!rO(e)||A)&&ir(r,n),(0!==e.scrollTop||0!==e.scrollLeft)&&this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(rP(e)||r_(e))&&(rP(n)||r_(n))&&(n.value=e.value),n}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,A,t,n){var r=this;if(t){var i=t.content,o=A.ownerDocument;if(o&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==t.display){this.counters.parse(new nx(this.context,t));var s=new ny(this.context,t),a=o.createElement("html2canvaspseudoelement");ir(t,a),s.content.forEach(function(A){if(0===A.type)a.appendChild(o.createTextNode(A.value));else if(22===A.type){var t=o.createElement("img");t.src=A.value,t.style.opacity="1",a.appendChild(t)}else if(18===A.type){if("attr"===A.name){var n=A.values.filter(e_);n.length&&a.appendChild(o.createTextNode(e.getAttribute(n[0].value)||""))}else if("counter"===A.name){var i=A.values.filter(ez),l=i[0],c=i[1];if(l&&e_(l)){var u=r.counters.getCounterValue(l.value),d=c&&e_(c)?tL.parse(r.context,c.value):3;a.appendChild(o.createTextNode(r5(u,d,!1)))}}else if("counters"===A.name){var h=A.values.filter(ez),l=h[0],f=h[1],c=h[2];if(l&&e_(l)){var g=r.counters.getCounterValues(l.value),p=c&&e_(c)?tL.parse(r.context,c.value):3,B=f&&0===f.type?f.value:"",m=g.map(function(e){return r5(e,p,!1)}).join(B);a.appendChild(o.createTextNode(m))}}}else if(20===A.type)switch(A.value){case"open-quote":a.appendChild(o.createTextNode(nd(s.quotes,r.quoteDepth++,!0)));break;case"close-quote":a.appendChild(o.createTextNode(nd(s.quotes,--r.quoteDepth,!1)));break;default:a.appendChild(o.createTextNode(A.value))}}),a.className="".concat(ia," ").concat(il);var l=n===y.BEFORE?" ".concat(ia):" ".concat(il);return rS(A)?A.className.baseValue+=l:A.className+=l,a}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();(g=y||(y={}))[g.BEFORE=0]="BEFORE",g[g.AFTER=1]="AFTER";var r7=function(e,A){var t=e.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=A.width.toString(),t.height=A.height.toString(),t.scrolling="no",t.setAttribute(r6,"true"),e.body.appendChild(t),t},r9=function(e){return new Promise(function(A){e.complete||!e.src?A():(e.onload=A,e.onerror=A)})},ie=function(e){return Promise.all([].slice.call(e.images,0).map(r9))},iA=function(e){return new Promise(function(A,t){var n=e.contentWindow;if(!n)return t("No window assigned for iframe");var r=n.document;n.onload=e.onload=function(){n.onload=e.onload=null;var t=setInterval(function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(t),A(e))},50)}})},it=["all","d","content"],ir=function(e,A){for(var t=e.length-1;t>=0;t--){var n=e.item(t);-1!==it.indexOf(n)||n.startsWith("--")||A.style.setProperty(n,e.getPropertyValue(n))}return A},ii=function(e){var A="";return e&&(A+="<!DOCTYPE ",e.name&&(A+=e.name),e.internalSubset&&(A+=e.internalSubset),e.publicId&&(A+='"'.concat(e.publicId,'"')),e.systemId&&(A+='"'.concat(e.systemId,'"')),A+=">"),A},io=function(e,A,t){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||t!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,t)},is=function(e){var A=e[0],t=e[1],n=e[2];A.scrollLeft=t,A.scrollTop=n},ia="___html2canvas___pseudoelement_before",il="___html2canvas___pseudoelement_after",ic='{\n content: "" !important;\n display: none !important;\n}',iu=function(e){id(e,".".concat(ia).concat(":before").concat(ic,"\n .").concat(il).concat(":after").concat(ic))},id=function(e,A){var t=e.ownerDocument;if(t){var n=t.createElement("style");n.textContent=A,e.appendChild(n)}},ih=function(e,A){var t,n=e.ownerDocument.createElement("base");n.href=A;var r=e.getElementsByTagName("head").item(0);null==r||r.insertBefore(n,null!=(t=null==r?void 0:r.firstChild)?t:null)},ig=function(){function e(){}return e.getOrigin=function(A){var t=e._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e}(),ip=function(){function e(e,A){this.context=e,this._options=A,this._cache={}}return e.prototype.addImage=function(e){var A=Promise.resolve();return this.has(e)||(ib(e)||iy(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),A},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return Q(this,void 0,void 0,function(){var A,t,n,r,i,o=this;return F(this,function(s){switch(s.label){case 0:if("function"!=typeof this._options.customIsSameOrigin)return[3,2];return[4,this._options.customIsSameOrigin(e,ig.isSameOrigin)];case 1:return t=s.sent(),[3,3];case 2:t=ig.isSameOrigin(e),s.label=3;case 3:if(A=t,n=!ix(e)&&!0===this._options.useCORS&&nX.SUPPORT_CORS_IMAGES&&!A,r=!ix(e)&&!A&&!ib(e)&&"string"==typeof this._options.proxy&&nX.SUPPORT_CORS_XHR&&!n,!A&&!1===this._options.allowTaint&&!ix(e)&&!ib(e)&&!r&&!n)return[2];if(i=e,!r)return[3,5];return[4,this.proxy(i)];case 4:i=s.sent(),s.label=5;case 5:return this.context.logger.debug("Added image ".concat(e.substring(0,256))),[4,new Promise(function(e,A){var t=new Image;t.onload=function(){return e(t)},t.onerror=A,(iC(i)||n)&&(t.crossOrigin="anonymous"),t.src=i,!0===t.complete&&setTimeout(function(){return e(t)},500),o._options.imageTimeout>0&&setTimeout(function(){return A("Timed out (".concat(o._options.imageTimeout,"ms) loading image"))},o._options.imageTimeout)})];case 6:return[2,s.sent()]}})})},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var A=this,t=this._options.proxy;if(!t)throw Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(r,i){var o=nX.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===o)r(s.response);else{var e=new FileReader;e.addEventListener("load",function(){return r(e.result)},!1),e.addEventListener("error",function(e){return i(e)},!1),e.readAsDataURL(s.response)}else i("Failed to proxy resource ".concat(n," with status code ").concat(s.status))},s.onerror=i;var a=t.indexOf("?")>-1?"&":"?";if(s.open("GET","".concat(t).concat(a,"url=").concat(encodeURIComponent(e),"&responseType=").concat(o)),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),A._options.imageTimeout){var l=A._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return i("Timed out (".concat(l,"ms) proxying ").concat(n))}}s.send()})},e}(),iB=/^data:image\/svg\+xml/i,im=/^data:image\/.*;base64,/i,iw=/^data:image\/.*/i,iy=function(e){return nX.SUPPORT_SVG_DRAWING||!iv(e)},ix=function(e){return iw.test(e)},iC=function(e){return im.test(e)},ib=function(e){return"blob"===e.substr(0,4)},iv=function(e){return"svg"===e.substr(-3).toLowerCase()||iB.test(e)},iQ=function(){function e(e,A){this.type=0,this.x=e,this.y=A}return e.prototype.add=function(A,t){return new e(this.x+A,this.y+t)},e}(),iF=function(e,A,t){return new iQ(e.x+(A.x-e.x)*t,e.y+(A.y-e.y)*t)},iU=function(){function e(e,A,t,n){this.type=1,this.start=e,this.startControl=A,this.endControl=t,this.end=n}return e.prototype.subdivide=function(A,t){var n=iF(this.start,this.startControl,A),r=iF(this.startControl,this.endControl,A),i=iF(this.endControl,this.end,A),o=iF(n,r,A),s=iF(r,i,A),a=iF(o,s,A);return t?new e(this.start,n,o,a):new e(a,s,i,this.end)},e.prototype.add=function(A,t){return new e(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),iE=function(e){return 1===e.type},iI=function(e){var A=e.styles,t=e.bounds,n=e1(A.borderTopLeftRadius,t.width,t.height),r=n[0],i=n[1],o=e1(A.borderTopRightRadius,t.width,t.height),s=o[0],a=o[1],l=e1(A.borderBottomRightRadius,t.width,t.height),c=l[0],u=l[1],d=e1(A.borderBottomLeftRadius,t.width,t.height),h=d[0],f=d[1],g=[];g.push((r+s)/t.width),g.push((h+c)/t.width),g.push((i+f)/t.height),g.push((a+u)/t.height);var p=Math.max.apply(Math,g);p>1&&(r/=p,i/=p,s/=p,a/=p,c/=p,u/=p,h/=p,f/=p);var B=t.width-s,m=t.height-u,w=t.width-c,y=t.height-f,C=A.borderTopWidth,b=A.borderRightWidth,v=A.borderBottomWidth,Q=A.borderLeftWidth,F=e2(A.paddingTop,e.bounds.width),U=e2(A.paddingRight,e.bounds.width),E=e2(A.paddingBottom,e.bounds.width),I=e2(A.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=r>0||i>0?iS(t.left+Q/3,t.top+C/3,r-Q/3,i-C/3,x.TOP_LEFT):new iQ(t.left+Q/3,t.top+C/3),this.topRightBorderDoubleOuterBox=r>0||i>0?iS(t.left+B,t.top+C/3,s-b/3,a-C/3,x.TOP_RIGHT):new iQ(t.left+t.width-b/3,t.top+C/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?iS(t.left+w,t.top+m,c-b/3,u-v/3,x.BOTTOM_RIGHT):new iQ(t.left+t.width-b/3,t.top+t.height-v/3),this.bottomLeftBorderDoubleOuterBox=h>0||f>0?iS(t.left+Q/3,t.top+y,h-Q/3,f-v/3,x.BOTTOM_LEFT):new iQ(t.left+Q/3,t.top+t.height-v/3),this.topLeftBorderDoubleInnerBox=r>0||i>0?iS(t.left+2*Q/3,t.top+2*C/3,r-2*Q/3,i-2*C/3,x.TOP_LEFT):new iQ(t.left+2*Q/3,t.top+2*C/3),this.topRightBorderDoubleInnerBox=r>0||i>0?iS(t.left+B,t.top+2*C/3,s-2*b/3,a-2*C/3,x.TOP_RIGHT):new iQ(t.left+t.width-2*b/3,t.top+2*C/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?iS(t.left+w,t.top+m,c-2*b/3,u-2*v/3,x.BOTTOM_RIGHT):new iQ(t.left+t.width-2*b/3,t.top+t.height-2*v/3),this.bottomLeftBorderDoubleInnerBox=h>0||f>0?iS(t.left+2*Q/3,t.top+y,h-2*Q/3,f-2*v/3,x.BOTTOM_LEFT):new iQ(t.left+2*Q/3,t.top+t.height-2*v/3),this.topLeftBorderStroke=r>0||i>0?iS(t.left+Q/2,t.top+C/2,r-Q/2,i-C/2,x.TOP_LEFT):new iQ(t.left+Q/2,t.top+C/2),this.topRightBorderStroke=r>0||i>0?iS(t.left+B,t.top+C/2,s-b/2,a-C/2,x.TOP_RIGHT):new iQ(t.left+t.width-b/2,t.top+C/2),this.bottomRightBorderStroke=c>0||u>0?iS(t.left+w,t.top+m,c-b/2,u-v/2,x.BOTTOM_RIGHT):new iQ(t.left+t.width-b/2,t.top+t.height-v/2),this.bottomLeftBorderStroke=h>0||f>0?iS(t.left+Q/2,t.top+y,h-Q/2,f-v/2,x.BOTTOM_LEFT):new iQ(t.left+Q/2,t.top+t.height-v/2),this.topLeftBorderBox=r>0||i>0?iS(t.left,t.top,r,i,x.TOP_LEFT):new iQ(t.left,t.top),this.topRightBorderBox=s>0||a>0?iS(t.left+B,t.top,s,a,x.TOP_RIGHT):new iQ(t.left+t.width,t.top),this.bottomRightBorderBox=c>0||u>0?iS(t.left+w,t.top+m,c,u,x.BOTTOM_RIGHT):new iQ(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=h>0||f>0?iS(t.left,t.top+y,h,f,x.BOTTOM_LEFT):new iQ(t.left,t.top+t.height),this.topLeftPaddingBox=r>0||i>0?iS(t.left+Q,t.top+C,Math.max(0,r-Q),Math.max(0,i-C),x.TOP_LEFT):new iQ(t.left+Q,t.top+C),this.topRightPaddingBox=s>0||a>0?iS(t.left+Math.min(B,t.width-b),t.top+C,B>t.width+b?0:Math.max(0,s-b),Math.max(0,a-C),x.TOP_RIGHT):new iQ(t.left+t.width-b,t.top+C),this.bottomRightPaddingBox=c>0||u>0?iS(t.left+Math.min(w,t.width-Q),t.top+Math.min(m,t.height-v),Math.max(0,c-b),Math.max(0,u-v),x.BOTTOM_RIGHT):new iQ(t.left+t.width-b,t.top+t.height-v),this.bottomLeftPaddingBox=h>0||f>0?iS(t.left+Q,t.top+Math.min(y,t.height-v),Math.max(0,h-Q),Math.max(0,f-v),x.BOTTOM_LEFT):new iQ(t.left+Q,t.top+t.height-v),this.topLeftContentBox=r>0||i>0?iS(t.left+Q+I,t.top+C+F,Math.max(0,r-(Q+I)),Math.max(0,i-(C+F)),x.TOP_LEFT):new iQ(t.left+Q+I,t.top+C+F),this.topRightContentBox=s>0||a>0?iS(t.left+Math.min(B,t.width+Q+I),t.top+C+F,B>t.width+Q+I?0:s-Q+I,a-(C+F),x.TOP_RIGHT):new iQ(t.left+t.width-(b+U),t.top+C+F),this.bottomRightContentBox=c>0||u>0?iS(t.left+Math.min(w,t.width-(Q+I)),t.top+Math.min(m,t.height+C+F),Math.max(0,c-(b+U)),u-(v+E),x.BOTTOM_RIGHT):new iQ(t.left+t.width-(b+U),t.top+t.height-(v+E)),this.bottomLeftContentBox=h>0||f>0?iS(t.left+Q+I,t.top+y,Math.max(0,h-(Q+I)),f-(v+E),x.BOTTOM_LEFT):new iQ(t.left+Q+I,t.top+t.height-(v+E))};(p=x||(x={}))[p.TOP_LEFT=0]="TOP_LEFT",p[p.TOP_RIGHT=1]="TOP_RIGHT",p[p.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",p[p.BOTTOM_LEFT=3]="BOTTOM_LEFT";var iS=function(e,A,t,n,r){var i=(Math.sqrt(2)-1)/3*4,o=t*i,s=n*i,a=e+t,l=A+n;switch(r){case x.TOP_LEFT:return new iU(new iQ(e,l),new iQ(e,l-s),new iQ(a-o,A),new iQ(a,A));case x.TOP_RIGHT:return new iU(new iQ(e,A),new iQ(e+o,A),new iQ(a,l-s),new iQ(a,l));case x.BOTTOM_RIGHT:return new iU(new iQ(a,A),new iQ(a,A+s),new iQ(e+o,l),new iQ(e,l));case x.BOTTOM_LEFT:default:return new iU(new iQ(a,l),new iQ(a-o,l),new iQ(e,A+s),new iQ(e,A))}},ik=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},ij=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},iH=function(e,A,t){this.offsetX=e,this.offsetY=A,this.matrix=t,this.type=0,this.target=6},iD=function(e,A){this.path=e,this.target=A,this.type=1},iL=function(e){this.opacity=e,this.type=2,this.target=6},iR=function(e){return 1===e.type},iT=function(e,A){return e.length===A.length&&e.some(function(e,t){return e===A[t]})},iM=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},iO=function(){function e(e,A){if(this.container=e,this.parent=A,this.effects=[],this.curves=new iI(this.container),this.container.styles.opacity<1&&this.effects.push(new iL(this.container.styles.opacity)),null!==this.container.styles.rotate){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,r=this.container.styles.rotate*Math.PI/180,i=Math.cos(r),o=Math.sin(r);this.effects.push(new iH(t,n,[i,o,-o,i,0,0]))}if(null!==this.container.styles.transform){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,s=this.container.styles.transform;this.effects.push(new iH(t,n,s))}if(0!==this.container.styles.overflowX){var a=ik(this.curves),l=ij(this.curves);iT(a,l)?this.effects.push(new iD(a,6)):(this.effects.push(new iD(a,2)),this.effects.push(new iD(l,4)))}}return e.prototype.getEffects=function(e){for(var A=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,n=this.effects.slice(0);t;){var r=t.effects.filter(function(e){return!iR(e)});if(A||0!==t.container.styles.position||!t.parent){if(A=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var i=ik(t.curves),o=ij(t.curves);iT(i,o)||n.unshift(new iD(o,6))}n.unshift.apply(n,r)}else n.unshift.apply(n,r);t=t.parent}return n.filter(function(A){return no(A.target,e)})},e}(),iN=function(e,A,t,n){e.container.elements.forEach(function(r){var i=no(r.flags,4),o=no(r.flags,2),s=new iO(r,e);no(r.styles.display,2048)&&n.push(s);var a=no(r.flags,8)?[]:n;if(i||o){var l=i||r.styles.isPositioned()?t:A,c=new iM(s);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var u=r.styles.zIndex.order;if(u<0){var d=0;l.negativeZIndex.some(function(e,A){if(u>e.element.container.styles.zIndex.order)d=A;else if(d>0)return!0;return!1}),l.negativeZIndex.splice(d,0,c)}else if(u>0){var h=0;l.positiveZIndex.some(function(e,A){if(u>=e.element.container.styles.zIndex.order)h=A+1;else if(h>0)return!0;return!1}),l.positiveZIndex.splice(h,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else r.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);iN(s,c,i?c:t,a)}else r.styles.isInlineLevel()?A.inlineLevel.push(s):A.nonInlineLevel.push(s),iN(s,A,t,a);no(r.flags,8)&&iP(r,a)})},iP=function(e,A){for(var t=e instanceof rc?e.start:1,n=e instanceof rc&&e.reversed,r=0;r<A.length;r++){var i=A[r];i.container instanceof rl&&"number"==typeof i.container.value&&0!==i.container.value&&(t=i.container.value),i.listValue=r5(t,i.container.styles.listStyleType,!0),t+=n?-1:1}},i_=function(e){var A=new iO(e,null),t=new iM(A),n=[];return iN(A,t,t,n),iP(A.container,n),t},iK=function(e,A){switch(A){case 0:return i$(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return i$(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return i$(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return i$(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},iV=function(e,A){switch(A){case 0:return i$(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return i$(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return i$(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return i$(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},iG=function(e,A){switch(A){case 0:return i$(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return i$(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return i$(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return i$(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},iz=function(e,A){switch(A){case 0:return iW(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return iW(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return iW(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return iW(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},iW=function(e,A){var t=[];return iE(e)?t.push(e.subdivide(.5,!1)):t.push(e),iE(A)?t.push(A.subdivide(.5,!0)):t.push(A),t},i$=function(e,A,t,n){var r=[];return iE(e)?r.push(e.subdivide(.5,!1)):r.push(e),iE(t)?r.push(t.subdivide(.5,!0)):r.push(t),iE(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),iE(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},iX=function(e){var A=e.bounds,t=e.styles;return A.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},iY=function(e){var A=e.styles,t=e.bounds,n=e2(A.paddingLeft,t.width),r=e2(A.paddingRight,t.width),i=e2(A.paddingTop,t.width),o=e2(A.paddingBottom,t.width);return t.add(n+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+n+r),-(A.borderTopWidth+A.borderBottomWidth+i+o))},iJ=function(e,A,t){var n,r,i=(n=i1(e.styles.backgroundOrigin,A),0===n?e.bounds:2===n?iY(e):iX(e)),o=(r=i1(e.styles.backgroundClip,A),0===r?e.bounds:2===r?iY(e):iX(e)),s=i0(i1(e.styles.backgroundSize,A),t,i),a=s[0],l=s[1],c=e1(i1(e.styles.backgroundPosition,A),i.width-a,i.height-l);return[i2(i1(e.styles.backgroundRepeat,A),c,s,i,o),Math.round(i.left+c[0]),Math.round(i.top+c[1]),a=Math.max(1,a),l=Math.max(1,l)]},iq=function(e){return e_(e)&&e.value===B.AUTO},iZ=function(e){return"number"==typeof e},i0=function(e,A,t){var n=A[0],r=A[1],i=A[2],o=e[0],s=e[1];if(!o)return[0,0];if(eY(o)&&s&&eY(s))return[e2(o,t.width),e2(s,t.height)];var a=iZ(i);if(e_(o)&&(o.value===B.CONTAIN||o.value===B.COVER))return iZ(i)?t.width/t.height<i!=(o.value===B.COVER)?[t.width,t.width/i]:[t.height*i,t.height]:[t.width,t.height];var l=iZ(n),c=iZ(r),u=l||c;if(iq(o)&&(!s||iq(s)))return l&&c?[n,r]:a||u?u&&a?[l?n:r*i,c?r:n/i]:[l?n:t.width,c?r:t.height]:[t.width,t.height];if(a){var d=0,h=0;return eY(o)?d=e2(o,t.width):eY(s)&&(h=e2(s,t.height)),iq(o)?d=h*i:(!s||iq(s))&&(h=d/i),[d,h]}var f=null,g=null;if(eY(o)?f=e2(o,t.width):s&&eY(s)&&(g=e2(s,t.height)),null!==f&&(!s||iq(s))&&(g=l&&c?f/n*r:t.height),null!==g&&iq(o)&&(f=l&&c?g/r*n:t.width),null!==f&&null!==g)return[f,g];throw Error("Unable to calculate background-size for element")},i1=function(e,A){var t=e[A];return void 0===t?e[0]:t},i2=function(e,A,t,n,r){var i=A[0],o=A[1],s=t[0],a=t[1];switch(e){case 2:return[new iQ(Math.round(n.left),Math.round(n.top+o)),new iQ(Math.round(n.left+n.width),Math.round(n.top+o)),new iQ(Math.round(n.left+n.width),Math.round(a+n.top+o)),new iQ(Math.round(n.left),Math.round(a+n.top+o))];case 3:return[new iQ(Math.round(n.left+i),Math.round(n.top)),new iQ(Math.round(n.left+i+s),Math.round(n.top)),new iQ(Math.round(n.left+i+s),Math.round(n.height+n.top)),new iQ(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new iQ(Math.round(n.left+i),Math.round(n.top+o)),new iQ(Math.round(n.left+i+s),Math.round(n.top+o)),new iQ(Math.round(n.left+i+s),Math.round(n.top+o+a)),new iQ(Math.round(n.left+i),Math.round(n.top+o+a))];default:return[new iQ(Math.round(r.left),Math.round(r.top)),new iQ(Math.round(r.left+r.width),Math.round(r.top)),new iQ(Math.round(r.left+r.width),Math.round(r.height+r.top)),new iQ(Math.round(r.left),Math.round(r.height+r.top))]}},i4="Hidden Text",i3=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,A){var t=this._document.createElement("div"),n=this._document.createElement("img"),r=this._document.createElement("span"),i=this._document.body;t.style.visibility="hidden",t.style.fontFamily=e,t.style.fontSize=A,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",i.appendChild(t),n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",r.style.fontFamily=e,r.style.fontSize=A,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode(i4)),t.appendChild(r),t.appendChild(n);var o=n.offsetTop-r.offsetTop+2;t.removeChild(r),t.appendChild(this._document.createTextNode(i4)),t.style.lineHeight="normal",n.style.verticalAlign="super";var s=n.offsetTop-t.offsetTop+2;return i.removeChild(t),{baseline:o,middle:s}},e.prototype.getMetrics=function(e,A){var t="".concat(e," ").concat(A);return void 0===this._data[t]&&(this._data[t]=this.parseMetrics(e,A)),this._data[t]},e}(),i5=function(e,A){this.context=e,this.options=A},i6=function(e){function A(A,t){var n=e.call(this,A,t)||this;return n._activeEffects=[],n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),t.canvas||(n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width="".concat(t.width,"px"),n.canvas.style.height="".concat(t.height,"px")),n.fontMetrics=new i3(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized (".concat(t.width,"x").concat(t.height,") with scale ").concat(t.scale)),n}return b(A,e),A.prototype.applyEffects=function(e){for(var A=this;this._activeEffects.length;)this.popEffect();e.forEach(function(e){return A.applyEffect(e)})},A.prototype.applyEffect=function(e){this.ctx.save(),2===e.type&&(this.ctx.globalAlpha=e.opacity),0===e.type&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),iR(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return Q(this,void 0,void 0,function(){return F(this,function(A){switch(A.label){case 0:if(!e.element.container.styles.isVisible())return[3,2];return[4,this.renderStackContent(e)];case 1:A.sent(),A.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return Q(this,void 0,void 0,function(){return F(this,function(A){switch(A.label){case 0:if(no(e.container.flags,16),!e.container.styles.isVisible())return[3,3];return[4,this.renderNodeBackgroundAndBorders(e)];case 1:return A.sent(),[4,this.renderNodeContent(e)];case 2:A.sent(),A.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,A,t){var n=this;0===A?-1===navigator.userAgent.indexOf("Firefox")?(this.ctx.textBaseline="ideographic",this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height)):this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+t):n7(e.text).reduce(function(A,r){return n.ctx.fillText(r,A,e.bounds.top+t),A+n.ctx.measureText(r).width},e.bounds.left)},A.prototype.createFontStyle=function(e){var A=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),t=oA(e.fontFamily).join(", "),n=eN(e.fontSize)?"".concat(e.fontSize.number).concat(e.fontSize.unit):"".concat(e.fontSize.number,"px");return[[e.fontStyle,A,e.fontWeight,n,t].join(" "),t,n]},A.prototype.renderTextNode=function(e,A){return Q(this,void 0,void 0,function(){var t,n,r=this;return F(this,function(i){return t=this.createFontStyle(A)[0],this.ctx.font=t,this.ctx.direction=1===A.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",n=A.paintOrder,e.textBounds.forEach(function(e){n.forEach(function(t){switch(t){case 0:r.ctx.fillStyle=Ae(A.color),r.renderTextWithLetterSpacing(e,A.letterSpacing,A.fontSize.number);var n=A.textShadow;n.length&&e.text.trim().length&&(n.slice(0).reverse().forEach(function(t){r.ctx.shadowColor=Ae(t.color),r.ctx.shadowOffsetX=t.offsetX.number*r.options.scale,r.ctx.shadowOffsetY=t.offsetY.number*r.options.scale,r.ctx.shadowBlur=t.blur.number,r.renderTextWithLetterSpacing(e,A.letterSpacing,A.fontSize.number)}),r.ctx.shadowColor="",r.ctx.shadowOffsetX=0,r.ctx.shadowOffsetY=0,r.ctx.shadowBlur=0),A.textDecorationLine.length&&(r.ctx.fillStyle=Ae(A.textDecorationColor||A.color),A.textDecorationLine.forEach(function(A){switch(A){case 1:r.ctx.fillRect(e.bounds.left,e.bounds.top+e.bounds.height-1,e.bounds.width,1);break;case 2:r.ctx.fillRect(e.bounds.left,e.bounds.top,e.bounds.width,1);break;case 3:r.ctx.fillRect(e.bounds.left,e.bounds.top+(e.bounds.height/2-.5),e.bounds.width,1)}}));break;case 1:A.webkitTextStrokeWidth&&e.text.trim().length&&(r.ctx.strokeStyle=Ae(A.webkitTextStrokeColor),r.ctx.lineWidth=A.webkitTextStrokeWidth,r.ctx.lineJoin=window.chrome?"miter":"round",r.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+e.bounds.height)),r.ctx.strokeStyle="",r.ctx.lineWidth=0,r.ctx.lineJoin="miter"}})}),[2]})})},A.prototype.renderReplacedElement=function(e,A,t){var n=t.naturalWidth||e.intrinsicWidth,r=t.naturalHeight||e.intrinsicHeight;if(t&&n>0&&r>0){var i=iY(e),o=ij(A);this.path(o),this.ctx.save(),this.ctx.clip();var s=0,a=0,l=n,c=r,u=i.left,d=i.top,h=i.width,f=i.height,g=e.styles.objectFit,p=h/f,B=l/c;2===g?B>p?(f=h/B,d+=(i.height-f)/2):(h=f*B,u+=(i.width-h)/2):4===g?B>p?s+=(n-(l=c*p))/2:a+=(r-(c=l/p))/2:8===g?(l>h?(s+=(l-h)/2,l=h):(u+=(h-l)/2,h=l),c>f?(a+=(c-f)/2,c=f):(d+=(f-c)/2,f=c)):16===g&&((B>p?h:f*B)<(l>h?l:h)?B>p?(f=h/B,d+=(i.height-f)/2):(h=f*B,u+=(i.width-h)/2):(l>h?(s+=(l-h)/2,l=h):(u+=(h-l)/2,h=l),c>f?(a+=(c-f)/2,c=f):(d+=(f-c)/2,f=c))),this.ctx.drawImage(t,s,a,l,c,u,d,h,f),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return Q(this,void 0,void 0,function(){var t,n,r,i,o,s,a,l,c,u,d,h,f,g,p,B,m,w,y;return F(this,function(x){switch(x.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,n=e.curves,r=t.styles,i=0,o=t.textNodes,x.label=1;case 1:if(!(i<o.length))return[3,4];return s=o[i],[4,this.renderTextNode(s,r)];case 2:x.sent(),x.label=3;case 3:return i++,[3,1];case 4:if(!(t instanceof ro))return[3,8];x.label=5;case 5:return x.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return a=x.sent(),this.renderReplacedElement(t,n,a),[3,8];case 7:return x.sent(),this.context.logger.error("Error loading image ".concat(t.src)),[3,8];case 8:if(t instanceof rs&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof ra))return[3,12];x.label=9;case 9:return x.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return a=x.sent(),this.renderReplacedElement(t,n,a),[3,12];case 11:return x.sent(),this.context.logger.error("Error loading svg ".concat(t.svg.substring(0,255))),[3,12];case 12:if(!(t instanceof ry&&t.tree))return[3,14];return[4,new A(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)];case 13:l=x.sent(),t.width&&t.height&&this.ctx.drawImage(l,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),x.label=14;case 14:if(t instanceof rB&&(c=Math.min(t.bounds.width,t.bounds.height),t.type===rf?t.checked&&(this.ctx.save(),this.path([new iQ(t.bounds.left+.39363*c,t.bounds.top+.79*c),new iQ(t.bounds.left+.16*c,t.bounds.top+.5549*c),new iQ(t.bounds.left+.27347*c,t.bounds.top+.44071*c),new iQ(t.bounds.left+.39694*c,t.bounds.top+.5649*c),new iQ(t.bounds.left+.72983*c,t.bounds.top+.23*c),new iQ(t.bounds.left+.84*c,t.bounds.top+.34085*c),new iQ(t.bounds.left+.39363*c,t.bounds.top+.79*c)]),this.ctx.fillStyle=Ae(0x2a2a2aff),this.ctx.fill(),this.ctx.restore()):t.type===rg&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+c/2,t.bounds.top+c/2,c/4,0,2*Math.PI,!0),this.ctx.fillStyle=Ae(0x2a2a2aff),this.ctx.fill(),this.ctx.restore())),i8(t)&&t.value.length){switch(d=(u=this.createFontStyle(r))[0],h=u[1],f=u[2],g=this.fontMetrics.getMetrics(h,f).baseline,this.ctx.font=d,this.ctx.fillStyle=Ae(r.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=i9(t.styles.textAlign),p=iY(t),B=0,t.styles.textAlign){case 1:B+=p.width/2;break;case 2:B+=p.width}m=p.add(B,0,0,-p.height/2+1),this.ctx.save(),this.path([new iQ(p.left,p.top),new iQ(p.left+p.width,p.top),new iQ(p.left+p.width,p.top+p.height),new iQ(p.left,p.top+p.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new n3(t.value,m),r.letterSpacing,g),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!no(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(0!==(w=t.styles.listStyleImage).type)return[3,18];a=void 0,y=w.url,x.label=15;case 15:return x.trys.push([15,17,,18]),[4,this.context.cache.match(y)];case 16:return a=x.sent(),this.ctx.drawImage(a,t.bounds.left-(a.width+10),t.bounds.top),[3,18];case 17:return x.sent(),this.context.logger.error("Error loading list-style-image ".concat(y)),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==t.styles.listStyleType&&(d=this.createFontStyle(r)[0],this.ctx.font=d,this.ctx.fillStyle=Ae(r.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",p=new E(t.bounds.left,t.bounds.top+e2(t.styles.paddingTop,t.bounds.width),t.bounds.width,tj(r.lineHeight,r.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new n3(e.listValue,p),r.letterSpacing,tj(r.lineHeight,r.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),x.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return Q(this,void 0,void 0,function(){var A,t,n,r,i,o,s,a,l,c,u,d,h,f,g;return F(this,function(p){switch(p.label){case 0:return no(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:p.sent(),A=0,t=e.negativeZIndex,p.label=2;case 2:if(!(A<t.length))return[3,5];return n=t[A],[4,this.renderStack(n)];case 3:p.sent(),p.label=4;case 4:return A++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:p.sent(),r=0,i=e.nonInlineLevel,p.label=7;case 7:if(!(r<i.length))return[3,10];return n=i[r],[4,this.renderNode(n)];case 8:p.sent(),p.label=9;case 9:return r++,[3,7];case 10:o=0,s=e.nonPositionedFloats,p.label=11;case 11:if(!(o<s.length))return[3,14];return n=s[o],[4,this.renderStack(n)];case 12:p.sent(),p.label=13;case 13:return o++,[3,11];case 14:a=0,l=e.nonPositionedInlineLevel,p.label=15;case 15:if(!(a<l.length))return[3,18];return n=l[a],[4,this.renderStack(n)];case 16:p.sent(),p.label=17;case 17:return a++,[3,15];case 18:c=0,u=e.inlineLevel,p.label=19;case 19:if(!(c<u.length))return[3,22];return n=u[c],[4,this.renderNode(n)];case 20:p.sent(),p.label=21;case 21:return c++,[3,19];case 22:d=0,h=e.zeroOrAutoZIndexOrTransformedOrOpacity,p.label=23;case 23:if(!(d<h.length))return[3,26];return n=h[d],[4,this.renderStack(n)];case 24:p.sent(),p.label=25;case 25:return d++,[3,23];case 26:f=0,g=e.positiveZIndex,p.label=27;case 27:if(!(f<g.length))return[3,30];return n=g[f],[4,this.renderStack(n)];case 28:p.sent(),p.label=29;case 29:return f++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var A=this;e.forEach(function(e,t){var n=iE(e)?e.start:e;0===t?A.ctx.moveTo(n.x,n.y):A.ctx.lineTo(n.x,n.y),iE(e)&&A.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},A.prototype.renderRepeat=function(e,A,t,n){this.path(e),this.ctx.fillStyle=A,this.ctx.translate(t,n),this.ctx.fill(),this.ctx.translate(-t,-n)},A.prototype.resizeImage=function(e,A,t){var n,r=(null!=(n=this.canvas.ownerDocument)?n:document).createElement("canvas");return r.width=Math.max(1,A),r.height=Math.max(1,t),r.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,A,t),r},A.prototype.renderBackgroundImage=function(e){return Q(this,void 0,void 0,function(){var A,t,n,r,i,o;return F(this,function(s){switch(s.label){case 0:A=e.styles.backgroundImage.length-1,t=function(t){var r,i,o,s,a,l,c,u,d,h,f,g,p,B,m,w,y,x,C,b,v,Q,U,E,I,S,k,j,H,D,L,R,T;return F(this,function(F){switch(F.label){case 0:if(0!==t.type)return[3,5];r=void 0,i=t.url,F.label=1;case 1:return F.trys.push([1,3,,4]),[4,n.context.cache.match(i)];case 2:return r=F.sent(),[3,4];case 3:return F.sent(),n.context.logger.error("Error loading background-image ".concat(i)),[3,4];case 4:return r&&(o=isNaN(r.width)||0===r.width?1:r.width,s=isNaN(r.height)||0===r.height?1:r.height,l=(a=iJ(e,A,[o,s,o/s]))[0],c=a[1],u=a[2],d=a[3],h=a[4],f=n.ctx.createPattern(n.resizeImage(r,d,h),"repeat"),n.renderRepeat(l,f,c,u)),[3,6];case 5:1===t.type?(l=(g=iJ(e,A,[null,null,null]))[0],c=g[1],u=g[2],d=g[3],h=g[4],B=(p=AG(t.angle,d,h))[0],m=p[1],w=p[2],y=p[3],x=p[4],(C=document.createElement("canvas")).width=d,C.height=h,v=(b=C.getContext("2d")).createLinearGradient(m,y,w,x),AK(t.stops,B||1).forEach(function(e){return v.addColorStop(e.stop,Ae(e.color))}),b.fillStyle=v,b.fillRect(0,0,d,h),d>0&&h>0&&(f=n.ctx.createPattern(C,"repeat"),n.renderRepeat(l,f,c,u))):2===t.type&&(l=(Q=iJ(e,A,[null,null,null]))[0],U=Q[1],E=Q[2],d=Q[3],h=Q[4],c=e2((I=0===t.position.length?[eZ]:t.position)[0],d),u=e2(I[I.length-1],h),k=(S=A$(t,c,u,d,h))[0],j=S[1],k>0&&j>0&&(H=n.ctx.createRadialGradient(U+c,E+u,0,U+c,E+u,k),AK(t.stops,2*k).forEach(function(e){return H.addColorStop(e.stop,Ae(e.color))}),n.path(l),n.ctx.fillStyle=H,k!==j?(D=e.bounds.left+.5*e.bounds.width,L=e.bounds.top+.5*e.bounds.height,T=1/(R=j/k),n.ctx.save(),n.ctx.translate(D,L),n.ctx.transform(1,0,0,R,0,0),n.ctx.translate(-D,-L),n.ctx.fillRect(U,T*(E-L)+L,d,h*T),n.ctx.restore()):n.ctx.fill())),F.label=6;case 6:return A--,[2]}})},n=this,r=0,i=e.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:if(!(r<i.length))return[3,4];return o=i[r],[5,t(o)];case 2:s.sent(),s.label=3;case 3:return r++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(e,A,t){return Q(this,void 0,void 0,function(){return F(this,function(n){return this.path(iK(t,A)),this.ctx.fillStyle=Ae(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,A,t,n){return Q(this,void 0,void 0,function(){var r,i;return F(this,function(o){switch(o.label){case 0:if(!(A<3))return[3,2];return[4,this.renderSolidBorder(e,t,n)];case 1:return o.sent(),[2];case 2:return r=iV(n,t),this.path(r),this.ctx.fillStyle=Ae(e),this.ctx.fill(),i=iG(n,t),this.path(i),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return Q(this,void 0,void 0,function(){var A,t,n,r,i,o,s,a,l=this;return F(this,function(c){switch(c.label){case 0:if(this.applyEffects(e.getEffects(2)),t=!e9((A=e.container.styles).backgroundColor)||A.backgroundImage.length,n=[{style:A.borderTopStyle,color:A.borderTopColor,width:A.borderTopWidth},{style:A.borderRightStyle,color:A.borderRightColor,width:A.borderRightWidth},{style:A.borderBottomStyle,color:A.borderBottomColor,width:A.borderBottomWidth},{style:A.borderLeftStyle,color:A.borderLeftColor,width:A.borderLeftWidth}],r=i7(i1(A.backgroundClip,0),e.curves),!(t||A.boxShadow.length))return[3,2];return this.ctx.save(),this.path(r),this.ctx.clip(),e9(A.backgroundColor)||(this.ctx.fillStyle=Ae(A.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)];case 1:c.sent(),this.ctx.restore(),A.boxShadow.slice(0).reverse().forEach(function(A){l.ctx.save();var t,n,r,i,o=ik(e.curves),s=1e4*!A.inset,a=(t=-s+(A.inset?1:-1)*A.spread.number,n=(A.inset?1:-1)*A.spread.number,r=A.spread.number*(A.inset?-2:2),i=A.spread.number*(A.inset?-2:2),o.map(function(e,A){switch(A){case 0:return e.add(t,n);case 1:return e.add(t+r,n);case 2:return e.add(t+r,n+i);case 3:return e.add(t,n+i)}return e}));A.inset?(l.path(o),l.ctx.clip(),l.mask(a)):(l.mask(o),l.ctx.clip(),l.path(a)),l.ctx.shadowOffsetX=A.offsetX.number+s,l.ctx.shadowOffsetY=A.offsetY.number,l.ctx.shadowColor=Ae(A.color),l.ctx.shadowBlur=A.blur.number,l.ctx.fillStyle=A.inset?Ae(A.color):"rgba(0,0,0,1)",l.ctx.fill(),l.ctx.restore()}),c.label=2;case 2:i=0,o=0,s=n,c.label=3;case 3:if(!(o<s.length))return[3,13];if(!(0!==(a=s[o]).style&&!e9(a.color)&&a.width>0))return[3,11];if(2!==a.style)return[3,5];return[4,this.renderDashedDottedBorder(a.color,a.width,i,e.curves,2)];case 4:case 6:case 8:return c.sent(),[3,11];case 5:if(3!==a.style)return[3,7];return[4,this.renderDashedDottedBorder(a.color,a.width,i,e.curves,3)];case 7:if(4!==a.style)return[3,9];return[4,this.renderDoubleBorder(a.color,a.width,i,e.curves)];case 9:return[4,this.renderSolidBorder(a.color,i,e.curves)];case 10:c.sent(),c.label=11;case 11:i++,c.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,A,t,n,r){return Q(this,void 0,void 0,function(){var i,o,s,a,l,c,u,d,h,f,g,p,B,m,w,y;return F(this,function(x){return this.ctx.save(),i=iz(n,t),o=iK(n,t),2===r&&(this.path(o),this.ctx.clip()),iE(o[0])?(s=o[0].start.x,a=o[0].start.y):(s=o[0].x,a=o[0].y),iE(o[1])?(l=o[1].end.x,c=o[1].end.y):(l=o[1].x,c=o[1].y),u=0===t||2===t?Math.abs(s-l):Math.abs(a-c),this.ctx.beginPath(),3===r?this.formatPath(i):this.formatPath(o.slice(0,2)),d=A<3?3*A:2*A,h=A<3?2*A:A,3===r&&(d=A,h=A),f=!0,u<=2*d?f=!1:u<=2*d+h?(g=u/(2*d+h),d*=g,h*=g):(p=Math.floor((u+h)/(d+h)),B=(u-p*d)/(p-1),h=(m=(u-(p+1)*d)/p)<=0||Math.abs(h-B)<Math.abs(h-m)?B:m),f&&(3===r?this.ctx.setLineDash([0,d+h]):this.ctx.setLineDash([d,h])),3===r?(this.ctx.lineCap="round",this.ctx.lineWidth=A):this.ctx.lineWidth=2*A+1.1,this.ctx.strokeStyle=Ae(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===r&&(iE(o[0])&&(w=o[3],y=o[0],this.ctx.beginPath(),this.formatPath([new iQ(w.end.x,w.end.y),new iQ(y.start.x,y.start.y)]),this.ctx.stroke()),iE(o[1])&&(w=o[1],y=o[2],this.ctx.beginPath(),this.formatPath([new iQ(w.end.x,w.end.y),new iQ(y.start.x,y.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return Q(this,void 0,void 0,function(){var A;return F(this,function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ae(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),A=i_(e),[4,this.renderStack(A)];case 1:return t.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(i5),i8=function(e){return e instanceof rw||e instanceof rm||e instanceof rB&&e.type!==rg&&e.type!==rf||!1},i7=function(e,A){switch(e){case 0:return ik(A);case 2:return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox];default:return ij(A)}},i9=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},oe=["-apple-system","system-ui"],oA=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(e){return -1===oe.indexOf(e)}):e},ot=function(e){function A(A,t){var n=e.call(this,A,t)||this;return n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=t,n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width="".concat(t.width,"px"),n.canvas.style.height="".concat(t.height,"px"),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized (".concat(t.width,"x").concat(t.height," at ").concat(t.x,",").concat(t.y,") with scale ").concat(t.scale)),n}return b(A,e),A.prototype.render=function(e){return Q(this,void 0,void 0,function(){var A;return F(this,function(t){switch(t.label){case 0:return[4,on(nW(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e))];case 1:return A=t.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ae(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(A,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(i5),on=function(e){return new Promise(function(A,t){var n=new Image;n.onload=function(){A(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(new XMLSerializer().serializeToString(e)))})},or=function(){function e(e){var A=e.id,t=e.enabled;this.id=A,this.enabled=t,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,U([this.id,"".concat(this.getTime(),"ms")],e,!1)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,U([this.id,"".concat(this.getTime(),"ms")],e,!1))},e.prototype.warn=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,U([this.id,"".concat(this.getTime(),"ms")],e,!1)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,U([this.id,"".concat(this.getTime(),"ms")],e,!1)):this.info.apply(this,e))},e.instances={},e}(),oi=function(){function e(A,t){var n;this.windowBounds=t,this.instanceName="#".concat(e.instanceCount++),this.logger=new or({id:this.instanceName,enabled:A.logging}),this.cache=null!=(n=A.cache)?n:new ip(this,A)}return e.instanceCount=1,e}();"undefined"!=typeof window&&ig.setContext(window);var oo=function(e,A,t){var n=A.ownerDocument,r=n.documentElement?AM(e,getComputedStyle(n.documentElement).backgroundColor):AO.TRANSPARENT,i=n.body?AM(e,getComputedStyle(n.body).backgroundColor):AO.TRANSPARENT,o="string"==typeof t?AM(e,t):null===t?AO.TRANSPARENT:0xffffffff;return A===n.documentElement?e9(r)?e9(i)?o:i:r:o};return function(e,A){var t,n;return void 0===A&&(A={}),t=e,n=A,Q(void 0,void 0,void 0,function(){var e,A,r,i,o,s,a,l,c,u,d,h,f,g,p,B,m,w,y,x,C,b,Q,U,k,j,H,D,L,R,T,M,O,N,P,_,K;return F(this,function(F){switch(F.label){case 0:if(!t||"object"!=typeof t)return[2,Promise.reject("Invalid element provided as first argument")];if(!(e=t.ownerDocument))throw Error("Element is not attached to a Document");if(!(A=e.defaultView))throw Error("Document is not attached to a Window");if(r={allowTaint:null!=(C=n.allowTaint)&&C,imageTimeout:null!=(b=n.imageTimeout)?b:15e3,proxy:n.proxy,useCORS:null!=(Q=n.useCORS)&&Q,customIsSameOrigin:n.customIsSameOrigin},s=new oi(v({logging:null==(U=n.logging)||U,cache:n.cache},r),o=new E((i={windowWidth:null!=(k=n.windowWidth)?k:A.innerWidth,windowHeight:null!=(j=n.windowHeight)?j:A.innerHeight,scrollX:null!=(H=n.scrollX)?H:A.pageXOffset,scrollY:null!=(D=n.scrollY)?D:A.pageYOffset}).scrollX,i.scrollY,i.windowWidth,i.windowHeight)),a=null!=(L=n.foreignObjectRendering)&&L,l={allowTaint:null!=(R=n.allowTaint)&&R,onclone:n.onclone,ignoreElements:n.ignoreElements,inlineImages:a,copyStyles:a},s.logger.debug("Starting document clone with size ".concat(o.width,"x").concat(o.height," scrolled to ").concat(-o.left,",").concat(-o.top)),!(u=(c=new r8(s,t,l)).clonedReferenceElement))return[2,Promise.reject("Unable to find element in cloned iframe")];return[4,c.toIFrame(e,o)];case 1:if(d=F.sent(),f=(h=rL(u)||"HTML"===u.tagName?S(u.ownerDocument):I(s,u)).width,g=h.height,p=h.left,B=h.top,m=oo(s,u,n.backgroundColor),w={canvas:n.canvas,backgroundColor:m,scale:null!=(M=null!=(T=n.scale)?T:A.devicePixelRatio)?M:1,x:(null!=(O=n.x)?O:0)+p,y:(null!=(N=n.y)?N:0)+B,width:null!=(P=n.width)?P:Math.ceil(f),height:null!=(_=n.height)?_:Math.ceil(g)},!a)return[3,3];return s.logger.debug("Document cloned, using foreign object rendering"),[4,new ot(s,w).render(u)];case 2:return y=F.sent(),[3,5];case 3:return s.logger.debug("Document cloned, element located at ".concat(p,",").concat(B," with size ").concat(f,"x").concat(g," using computed rendering")),s.logger.debug("Starting DOM parsing"),x=rv(s,u),m===x.styles.backgroundColor&&(x.styles.backgroundColor=AO.TRANSPARENT),s.logger.debug("Starting renderer for element at ".concat(w.x,",").concat(w.y," with size ").concat(w.width,"x").concat(w.height)),[4,new i6(s,w).render(x)];case 4:y=F.sent(),F.label=5;case 5:return(null==(K=n.removeContainer)||K)&&!r8.destroy(d)&&s.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore"),s.logger.debug("Finished rendering"),[2,y]}})})}}()},70795,(e,A,t)=>{var n=Object.prototype;A.exports=function(e){var A=e&&e.constructor;return e===("function"==typeof A&&A.prototype||n)}},48232,(e,A,t)=>{A.exports=function(e,A){return function(t){return e(A(t))}}},42918,(e,A,t)=>{A.exports=e.r(48232)(Object.keys,Object)},3114,(e,A,t)=>{var n=e.r(70795),r=e.r(42918),i=Object.prototype.hasOwnProperty;A.exports=function(e){if(!n(e))return r(e);var A=[];for(var t in Object(e))i.call(e,t)&&"constructor"!=t&&A.push(t);return A}},91606,(e,A,t)=>{A.exports=function(e){var A=typeof e;return null!=e&&("object"==A||"function"==A)}},63883,(e,A,t)=>{var n=e.r(23748),r=e.r(91606);A.exports=function(e){if(!r(e))return!1;var A=n(e);return"[object Function]"==A||"[object GeneratorFunction]"==A||"[object AsyncFunction]"==A||"[object Proxy]"==A}},56921,(e,A,t)=>{A.exports=e.r(18408)["__core-js_shared__"]},63803,(e,A,t)=>{var n,r=e.r(56921),i=(n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";A.exports=function(e){return!!i&&i in e}},95331,(e,A,t)=>{var n=Function.prototype.toString;A.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},32150,(e,A,t)=>{var n=e.r(63883),r=e.r(63803),i=e.r(91606),o=e.r(95331),s=/^\[object .+?Constructor\]$/,a=Object.prototype,l=Function.prototype.toString,c=a.hasOwnProperty,u=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");A.exports=function(e){return!(!i(e)||r(e))&&(n(e)?u:s).test(o(e))}},61686,(e,A,t)=>{A.exports=function(e,A){return null==e?void 0:e[A]}},22280,(e,A,t)=>{var n=e.r(32150),r=e.r(61686);A.exports=function(e,A){var t=r(e,A);return n(t)?t:void 0}},31751,(e,A,t)=>{A.exports=e.r(22280)(e.r(18408),"DataView")},74136,(e,A,t)=>{A.exports=e.r(22280)(e.r(18408),"Map")},31337,(e,A,t)=>{A.exports=e.r(22280)(e.r(18408),"Promise")},11524,(e,A,t)=>{A.exports=e.r(22280)(e.r(18408),"Set")},15942,(e,A,t)=>{A.exports=e.r(22280)(e.r(18408),"WeakMap")},26568,(e,A,t)=>{var n=e.r(31751),r=e.r(74136),i=e.r(31337),o=e.r(11524),s=e.r(15942),a=e.r(23748),l=e.r(95331),c="[object Map]",u="[object Promise]",d="[object Set]",h="[object WeakMap]",f="[object DataView]",g=l(n),p=l(r),B=l(i),m=l(o),w=l(s),y=a;(n&&y(new n(new ArrayBuffer(1)))!=f||r&&y(new r)!=c||i&&y(i.resolve())!=u||o&&y(new o)!=d||s&&y(new s)!=h)&&(y=function(e){var A=a(e),t="[object Object]"==A?e.constructor:void 0,n=t?l(t):"";if(n)switch(n){case g:return f;case p:return c;case B:return u;case m:return d;case w:return h}return A}),A.exports=y},48313,(e,A,t)=>{var n=e.r(23748),r=e.r(19674);A.exports=function(e){return r(e)&&"[object Arguments]"==n(e)}},17288,(e,A,t)=>{var n=e.r(48313),r=e.r(19674),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable;A.exports=n(function(){return arguments}())?n:function(e){return r(e)&&o.call(e,"callee")&&!s.call(e,"callee")}},72098,(e,A,t)=>{A.exports=Array.isArray},45373,(e,A,t)=>{A.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},7850,(e,A,t)=>{var n=e.r(63883),r=e.r(45373);A.exports=function(e){return null!=e&&r(e.length)&&!n(e)}},24019,(e,A,t)=>{A.exports=function(){return!1}},85370,(e,A,t)=>{var n=e.r(18408),r=e.r(24019),i=t&&!t.nodeType&&t,o=i&&A&&!A.nodeType&&A,s=o&&o.exports===i?n.Buffer:void 0;A.exports=(s?s.isBuffer:void 0)||r},19575,(e,A,t)=>{var n=e.r(23748),r=e.r(45373),i=e.r(19674),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,A.exports=function(e){return i(e)&&r(e.length)&&!!o[n(e)]}},32900,(e,A,t)=>{A.exports=function(e){return function(A){return e(A)}}},45361,(e,A,t)=>{var n=e.r(72668),r=t&&!t.nodeType&&t,i=r&&A&&!A.nodeType&&A,o=i&&i.exports===r&&n.process;A.exports=function(){try{var e=i&&i.require&&i.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}()},13376,(e,A,t)=>{var n=e.r(19575),r=e.r(32900),i=e.r(45361),o=i&&i.isTypedArray;A.exports=o?r(o):n},20686,(e,A,t)=>{var n=e.r(3114),r=e.r(26568),i=e.r(17288),o=e.r(72098),s=e.r(7850),a=e.r(85370),l=e.r(70795),c=e.r(13376),u=Object.prototype.hasOwnProperty;A.exports=function(e){if(null==e)return!0;if(s(e)&&(o(e)||"string"==typeof e||"function"==typeof e.splice||a(e)||c(e)||i(e)))return!e.length;var A=r(e);if("[object Map]"==A||"[object Set]"==A)return!e.size;if(l(e))return!n(e).length;for(var t in e)if(u.call(e,t))return!1;return!0}},21665,(e,A,t)=>{"use strict";var n=e.r(15147),r=e.r(34960),i="function"==typeof Object.is?Object.is:function(e,A){return e===A&&(0!==e||1/e==1/A)||e!=e&&A!=A},o=r.useSyncExternalStore,s=n.useRef,a=n.useEffect,l=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,A,t,n,r){var u=s(null);if(null===u.current){var d={hasValue:!1,value:null};u.current=d}else d=u.current;var h=o(e,(u=l(function(){function e(e){if(!a){if(a=!0,o=e,e=n(e),void 0!==r&&d.hasValue){var A=d.value;if(r(A,e))return s=A}return s=e}if(A=s,i(o,e))return A;var t=n(e);return void 0!==r&&r(A,t)?(o=e,A):(o=e,s=t)}var o,s,a=!1,l=void 0===t?null:t;return[function(){return e(A())},null===l?void 0:function(){return e(l())}]},[A,t,n,r]))[0],u[1]);return a(function(){d.hasValue=!0,d.value=h},[h]),c(h),h}},96177,(e,A,t)=>{"use strict";A.exports=e.r(21665)},22587,(e,A,t)=>{"use strict";var n=e.r(15147),r="function"==typeof Object.is?Object.is:function(e,A){return e===A&&(0!==e||1/e==1/A)||e!=e&&A!=A},i=n.useSyncExternalStore,o=n.useRef,s=n.useEffect,a=n.useMemo,l=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,A,t,n,c){var u=o(null);if(null===u.current){var d={hasValue:!1,value:null};u.current=d}else d=u.current;var h=i(e,(u=a(function(){function e(e){if(!s){if(s=!0,i=e,e=n(e),void 0!==c&&d.hasValue){var A=d.value;if(c(A,e))return o=A}return o=e}if(A=o,r(i,e))return A;var t=n(e);return void 0!==c&&c(A,t)?(i=e,A):(i=e,o=t)}var i,o,s=!1,a=void 0===t?null:t;return[function(){return e(A())},null===a?void 0:function(){return e(a())}]},[A,t,n,c]))[0],u[1]);return s(function(){d.hasValue=!0,d.value=h},[h]),l(h),h}},75103,(e,A,t)=>{"use strict";A.exports=e.r(22587)},31713,e=>{"use strict";let A,t,n,r,i,o,s,a,l,c;var u,d,h,f,g=e.i(12452),p=e.i(54463);let{PropsProvider:B,withContext:m}=(0,p.createRecipeContext)({key:"badge"}),w=m("span");w.displayName="Badge";var y=e.i(96574);let{withContext:x,PropsProvider:C}=(0,p.createRecipeContext)({key:"code"}),b=x("code");b.displayName="Code";var v=e.i(27307),Q=e.i(59603),F=e.i(96552),U=e.i(80953),E=e.i(15147),I=e.i(75387),S=e.i(48371);let k=(0,E.forwardRef)(function(e,A){let{align:t,fit:n="cover",...r}=e;return(0,g.jsx)(I.chakra.img,{ref:A,objectFit:n,objectPosition:t,className:(0,S.cx)("chakra-image",e.className),...r})});k.displayName="Image";var j=e.i(57096);e.s([],36381),e.i(36381),e.s([],85901),e.i(85901);var H=e.i(52713),D=e.i(63761),L=e.i(39414);let[R,T]=(0,L.createContext)({name:"ProgressContext",hookName:"useProgressContext",providerName:"<ProgressProvider />"}),M=(0,E.forwardRef)((e,A)=>{let t=T(),n=(0,H.mergeProps)(t.getCircleProps(),e);return(0,g.jsx)(D.ark.svg,{ref:A,...n})});M.displayName="ProgressCircle";let O=(0,E.forwardRef)((e,A)=>{let t=T(),n=(0,H.mergeProps)(t.getCircleRangeProps(),e);return(0,g.jsx)(D.ark.circle,{ref:A,...n})});O.displayName="ProgressCircleRange";let N=(0,E.forwardRef)((e,A)=>{let t=T(),n=(0,H.mergeProps)(t.getCircleTrackProps(),e);return(0,g.jsx)(D.ark.circle,{ref:A,...n})});N.displayName="ProgressCircleTrack";let P=e=>e.children(T()),_=(0,E.forwardRef)((e,A)=>{let t=T(),n=(0,H.mergeProps)(t.getLabelProps(),e);return(0,g.jsx)(D.ark.label,{...n,ref:A})});_.displayName="ProgressLabel";let K=(0,E.forwardRef)((e,A)=>{let t=T(),n=(0,H.mergeProps)(t.getRangeProps(),e);return(0,g.jsx)(D.ark.div,{...n,ref:A})});K.displayName="ProgressRange";var V=e.i(46067),G=e.i(39289),z=e.i(61697),W=e.i(21173),$=e.i(64614);let X=(0,E.forwardRef)((e,A)=>{let[t,n]=(0,V.createSplitProps)()(e,["defaultValue","formatOptions","id","ids","locale","max","min","onValueChange","orientation","translations","value"]),r=(e=>{let A=(0,E.useId)(),{getRootNode:t}=(0,W.useEnvironmentContext)(),{dir:n,locale:r}=(0,$.useLocaleContext)(),i={id:A,dir:n,locale:r,getRootNode:t,...e},o=(0,z.useMachine)(G.machine,i);return G.connect(o,z.normalizeProps)})(t),i=(0,H.mergeProps)(r.getRootProps(),n);return(0,g.jsx)(R,{value:r,children:(0,g.jsx)(D.ark.div,{...i,ref:A})})});X.displayName="ProgressRoot";let Y=(0,E.forwardRef)((e,A)=>{let[{value:t},n]=(0,V.createSplitProps)()(e,["value"]),r=(0,H.mergeProps)(t.getRootProps(),n);return(0,g.jsx)(R,{value:t,children:(0,g.jsx)(D.ark.div,{...r,ref:A})})});Y.displayName="ProgressRootProvider";let J=(0,E.forwardRef)((e,A)=>{let t=T(),n=(0,H.mergeProps)(t.getTrackProps(),e);return(0,g.jsx)(D.ark.div,{...n,ref:A})});J.displayName="ProgressTrack";let q=(0,E.forwardRef)((e,A)=>{let{children:t,...n}=e,r=T(),i=(0,H.mergeProps)(r.getValueTextProps(),n);return(0,g.jsx)(D.ark.span,{...i,ref:A,children:t||r.percentAsString})});q.displayName="ProgressValueText";let Z=(0,E.forwardRef)((e,A)=>{let[t,n]=(0,V.createSplitProps)()(e,["state"]),r=T(),i=(0,H.mergeProps)(r.getViewProps(t),n);return(0,g.jsx)(D.ark.span,{...i,ref:A})});Z.displayName="ProgressView",e.s(["Circle",()=>M,"CircleRange",()=>O,"CircleTrack",()=>N,"Context",()=>P,"Label",()=>_,"Range",()=>K,"Root",()=>X,"RootProvider",()=>Y,"Track",()=>J,"ValueText",()=>q,"View",()=>Z],57269);var ee=e.i(57269),ee=ee,eA=e.i(20019);let{withProvider:et,withContext:en,useStyles:er,PropsProvider:ei}=(0,eA.createSlotRecipeContext)({key:"progress"}),eo=et(ee.RootProvider,"root",{forwardAsChild:!0}),es=et(ee.Root,"root"),ea=en(ee.Label,"label",{forwardAsChild:!0}),el=en(ee.Track,"track",{forwardAsChild:!0}),ec=en(ee.Range,"range",{forwardAsChild:!0}),eu=en(ee.ValueText,"valueText",{forwardAsChild:!0}),ed=ee.Context;e.s(["Context",()=>ed,"Label",()=>ea,"PropsProvider",()=>ei,"Range",()=>ec,"Root",()=>es,"RootProvider",()=>eo,"Track",()=>el,"ValueText",()=>eu],32958);var eh=e.i(32958),eh=eh,ef=e.i(12301);e.s([],18405),e.i(18405),e.s([],68543),e.i(68543);var eg=e.i(24074),ep=e.i(89521),eB=e.i(67077),em=e.i(96733);let[ew,ey]=(0,L.createContext)({name:"TabsContext",hookName:"useTabsContext",providerName:"<TabsProvider />"}),ex=(0,E.forwardRef)((e,A)=>{let[t,n]=(0,V.createSplitProps)()(e,["value"]),r=ey(),i=(0,ep.useRenderStrategyPropsContext)(),o=(0,eB.usePresence)({...i,present:r.value===e.value,immediate:!0}),s=(0,H.mergeProps)(r.getContentProps(t),o.getPresenceProps(),n);return(0,g.jsx)(em.PresenceProvider,{value:o,children:o.unmounted?null:(0,g.jsx)(D.ark.div,{...s,ref:(0,eg.composeRefs)(o.ref,A)})})});ex.displayName="TabContent";let eC=(0,E.forwardRef)((e,A)=>{let t=ey(),n=(0,H.mergeProps)(t.getIndicatorProps(),e);return(0,g.jsx)(D.ark.div,{...n,ref:A})});eC.displayName="TabIndicator";let eb=(0,E.forwardRef)((e,A)=>{let t=ey(),n=(0,H.mergeProps)(t.getListProps(),e);return(0,g.jsx)(D.ark.div,{...n,ref:A})});eb.displayName="TabList";let ev=(0,E.forwardRef)((e,A)=>{let[t,n]=(0,V.createSplitProps)()(e,["disabled","value"]),r=ey(),i=(0,H.mergeProps)(r.getTriggerProps(t),n);return(0,g.jsx)(D.ark.button,{...i,ref:A})});ev.displayName="TabTrigger";let eQ=e=>e.children(ey());var eF=e.i(94548),eU=e.i(92109),eE=e.i(58287),eI=e.i(92242),eS=(0,eF.createAnatomy)("tabs").parts("root","list","trigger","content","indicator").build(),ek=e=>e.ids?.list??`tabs:${e.id}:list`,ej=(e,A)=>e.ids?.content?.(A)??`tabs:${e.id}:content-${A}`,eH=(e,A)=>e.ids?.trigger?.(A)??`tabs:${e.id}:trigger-${A}`,eD=e=>e.ids?.indicator??`tabs:${e.id}:indicator`,eL=(e,A)=>e.getById(eH(e,A)),eR=e=>e.getById(eD(e)),eT=e=>{let A=CSS.escape(ek(e)),t=`[role=tab][data-ownedby='${A}']:not([disabled])`;return(0,eU.queryAll)(e.getById(ek(e)),t)},eM=e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),eO=e=>({width:`${e.width}px`,height:`${e.height}px`,left:`${e.left}px`,top:`${e.top}px`}),{createMachine:eN}=(0,H.setup)(),eP=eN({props:({props:e})=>({dir:"ltr",orientation:"horizontal",activationMode:"automatic",loopFocus:!0,composite:!0,navigate(e){(0,eU.clickIfLink)(e.node)},defaultValue:null,...e}),initialState:()=>"idle",context:({prop:e,bindable:A})=>({value:A(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(A){e("onValueChange")?.({value:A})}})),focusedValue:A(()=>({defaultValue:e("value")||e("defaultValue"),sync:!0,onChange(A){e("onFocusChange")?.({focusedValue:A})}})),ssr:A(()=>({defaultValue:!0})),indicatorTransition:A(()=>({defaultValue:!1})),indicatorRect:A(()=>({defaultValue:{left:"0px",top:"0px",width:"0px",height:"0px"}}))}),watch({context:e,prop:A,track:t,action:n}){t([()=>e.get("value")],()=>{n(["allowIndicatorTransition","syncIndicatorRect","syncTabIndex","navigateIfNeeded"])}),t([()=>A("dir"),()=>A("orientation")],()=>{n(["syncIndicatorRect"])})},on:{SET_VALUE:{actions:["setValue"]},CLEAR_VALUE:{actions:["clearValue"]},SET_INDICATOR_RECT:{actions:["setIndicatorRect"]},SYNC_TAB_INDEX:{actions:["syncTabIndex"]}},entry:["syncIndicatorRect","syncTabIndex","syncSsr"],exit:["cleanupObserver"],states:{idle:{on:{TAB_FOCUS:{target:"focused",actions:["setFocusedValue"]},TAB_CLICK:{target:"focused",actions:["setFocusedValue","setValue"]}}},focused:{on:{TAB_CLICK:{actions:["setFocusedValue","setValue"]},ARROW_PREV:[{guard:"selectOnFocus",actions:["focusPrevTab","selectFocusedTab"]},{actions:["focusPrevTab"]}],ARROW_NEXT:[{guard:"selectOnFocus",actions:["focusNextTab","selectFocusedTab"]},{actions:["focusNextTab"]}],HOME:[{guard:"selectOnFocus",actions:["focusFirstTab","selectFocusedTab"]},{actions:["focusFirstTab"]}],END:[{guard:"selectOnFocus",actions:["focusLastTab","selectFocusedTab"]},{actions:["focusLastTab"]}],TAB_FOCUS:{actions:["setFocusedValue"]},TAB_BLUR:{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{selectOnFocus:({prop:e})=>"automatic"===e("activationMode")},actions:{selectFocusedTab({context:e,prop:A}){(0,eU.raf)(()=>{let t=e.get("focusedValue");if(!t)return;let n=A("deselectable")&&e.get("value")===t;e.set("value",n?null:t)})},setFocusedValue({context:e,event:A,flush:t}){null!=A.value&&t(()=>{e.set("focusedValue",A.value)})},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:A,prop:t}){let n=t("deselectable")&&e.get("value")===e.get("focusedValue");e.set("value",n?null:A.value)},clearValue({context:e}){e.set("value",null)},focusFirstTab({scope:e}){(0,eU.raf)(()=>{(0,eE.first)(eT(e))?.focus()})},focusLastTab({scope:e}){(0,eU.raf)(()=>{(0,eE.last)(eT(e))?.focus()})},focusNextTab({context:e,prop:A,scope:t,event:n}){let r,i=n.value??e.get("focusedValue");if(!i)return;let o=(r={value:i,loopFocus:A("loopFocus")},(0,eU.nextById)(eT(t),eH(t,r.value),r.loopFocus));(0,eU.raf)(()=>{A("composite")?o?.focus():o?.dataset.value!=null&&e.set("focusedValue",o.dataset.value)})},focusPrevTab({context:e,prop:A,scope:t,event:n}){let r,i=n.value??e.get("focusedValue");if(!i)return;let o=(r={value:i,loopFocus:A("loopFocus")},(0,eU.prevById)(eT(t),eH(t,r.value),r.loopFocus));(0,eU.raf)(()=>{A("composite")?o?.focus():o?.dataset.value!=null&&e.set("focusedValue",o.dataset.value)})},syncTabIndex({context:e,scope:A}){(0,eU.raf)(()=>{let t=e.get("value");if(!t)return;let n=A.getById(ej(A,t));n&&((0,eU.getFocusables)(n).length>0?n.removeAttribute("tabindex"):n.setAttribute("tabindex","0"))})},cleanupObserver({refs:e}){let A=e.get("indicatorCleanup");A&&A()},allowIndicatorTransition({context:e}){e.set("indicatorTransition",!0)},setIndicatorRect({context:e,event:A,scope:t}){let n=A.id??e.get("value");if(eR(t)){if(!n)return void e.set("indicatorTransition",!1);eL(t,n)&&(e.set("indicatorRect",eO(eM((0,eU.itemById)(eT(t),eH(t,n))))),(0,eU.nextTick)(()=>{e.set("indicatorTransition",!1)}))}},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,refs:A,scope:t}){let n=A.get("indicatorCleanup");n&&n();let r=e.get("value");if(!r)return void e.set("indicatorTransition",!1);let i=eL(t,r),o=eR(t);if(!i||!o)return;let s=(0,eU.trackElementRect)([i],{measure:e=>eM(e),onEntry({rects:A}){let[t]=A;e.set("indicatorRect",eO(t))}});A.set("indicatorCleanup",s)},navigateIfNeeded({context:e,prop:A,scope:t}){let n=e.get("value");if(!n)return;let r=eL(t,n);(0,eU.isAnchorElement)(r)&&A("navigate")?.({value:n,node:r,href:r.href})}}}}),e_=(0,eI.createProps)()(["activationMode","composite","deselectable","dir","getRootNode","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value","defaultValue"]);(0,eE.createSplitProps)(e_);var eK=(0,eI.createProps)()(["disabled","value"]);(0,eE.createSplitProps)(eK);var eV=(0,eI.createProps)()(["value"]);(0,eE.createSplitProps)(eV);let eG=(0,E.forwardRef)((e,A)=>{let[t,n]=(0,ep.splitRenderStrategyProps)(e),[r,i]=(0,V.createSplitProps)()(n,["activationMode","composite","defaultValue","deselectable","id","ids","loopFocus","navigate","onFocusChange","onValueChange","orientation","translations","value"]),o=(e=>{let A=(0,E.useId)(),{getRootNode:t}=(0,W.useEnvironmentContext)(),{dir:n}=(0,$.useLocaleContext)(),r={id:A,dir:n,getRootNode:t,...e};return function(e,A){let{state:t,send:n,context:r,prop:i,scope:o}=e,s=i("translations"),a=t.matches("focused"),l="vertical"===i("orientation"),c="horizontal"===i("orientation"),u=i("composite");function d(e){return{selected:r.get("value")===e.value,focused:r.get("focusedValue")===e.value,disabled:!!e.disabled}}return{value:r.get("value"),focusedValue:r.get("focusedValue"),setValue(e){n({type:"SET_VALUE",value:e})},clearValue(){n({type:"CLEAR_VALUE"})},setIndicatorRect(e){n({type:"SET_INDICATOR_RECT",id:eH(o,e)})},syncTabIndex(){n({type:"SYNC_TAB_INDEX"})},selectNext(e){n({type:"TAB_FOCUS",value:e,src:"selectNext"}),n({type:"ARROW_NEXT",src:"selectNext"})},selectPrev(e){n({type:"TAB_FOCUS",value:e,src:"selectPrev"}),n({type:"ARROW_PREV",src:"selectPrev"})},focus(){let e=r.get("value");e&&eL(o,e)?.focus()},getRootProps:()=>A.element({...eS.root.attrs,id:o.ids?.root??`tabs:${o.id}`,"data-orientation":i("orientation"),"data-focus":(0,eU.dataAttr)(a),dir:i("dir")}),getListProps:()=>A.element({...eS.list.attrs,id:ek(o),role:"tablist",dir:i("dir"),"data-focus":(0,eU.dataAttr)(a),"aria-orientation":i("orientation"),"data-orientation":i("orientation"),"aria-label":s?.listLabel,onKeyDown(e){if(e.defaultPrevented||(0,eU.isComposingEvent)(e)||!(0,eU.contains)(e.currentTarget,(0,eU.getEventTarget)(e)))return;let A={ArrowDown(){c||n({type:"ARROW_NEXT",key:"ArrowDown"})},ArrowUp(){c||n({type:"ARROW_PREV",key:"ArrowUp"})},ArrowLeft(){l||n({type:"ARROW_PREV",key:"ArrowLeft"})},ArrowRight(){l||n({type:"ARROW_NEXT",key:"ArrowRight"})},Home(){n({type:"HOME"})},End(){n({type:"END"})}}[(0,eU.getEventKey)(e,{dir:i("dir"),orientation:i("orientation")})];if(A){e.preventDefault(),A(e);return}}}),getTriggerState:d,getTriggerProps(e){let{value:t,disabled:s}=e,a=d(e);return A.button({...eS.trigger.attrs,role:"tab",type:"button",disabled:s,dir:i("dir"),"data-orientation":i("orientation"),"data-disabled":(0,eU.dataAttr)(s),"aria-disabled":s,"data-value":t,"aria-selected":a.selected,"data-selected":(0,eU.dataAttr)(a.selected),"data-focus":(0,eU.dataAttr)(a.focused),"aria-controls":a.selected?ej(o,t):void 0,"data-ownedby":ek(o),"data-ssr":(0,eU.dataAttr)(r.get("ssr")),id:eH(o,t),tabIndex:a.selected&&u?0:-1,onFocus(){n({type:"TAB_FOCUS",value:t})},onBlur(e){let A=e.relatedTarget;A?.getAttribute("role")!=="tab"&&n({type:"TAB_BLUR"})},onClick(e){e.defaultPrevented||(0,eU.isOpeningInNewTab)(e)||s||((0,eU.isSafari)()&&e.currentTarget.focus(),n({type:"TAB_CLICK",value:t}))}})},getContentProps(e){let{value:t}=e,n=r.get("value")===t;return A.element({...eS.content.attrs,dir:i("dir"),id:ej(o,t),tabIndex:u?0:-1,"aria-labelledby":eH(o,t),role:"tabpanel","data-ownedby":ek(o),"data-selected":(0,eU.dataAttr)(n),"data-orientation":i("orientation"),hidden:!n})},getIndicatorProps(){let e=r.get("indicatorRect"),t=r.get("indicatorTransition");return A.element({id:eD(o),...eS.indicator.attrs,dir:i("dir"),"data-orientation":i("orientation"),style:{"--transition-property":"left, right, top, bottom, width, height","--left":e.left,"--top":e.top,"--width":e.width,"--height":e.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:t?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",[c?"left":"top"]:c?"var(--left)":"var(--top)"}})}}}((0,z.useMachine)(eP,r),z.normalizeProps)})(r),s=(0,H.mergeProps)(o.getRootProps(),i);return(0,g.jsx)(ew,{value:o,children:(0,g.jsx)(ep.RenderStrategyPropsProvider,{value:t,children:(0,g.jsx)(D.ark.div,{...s,ref:A})})})});eG.displayName="TabsRoot";let ez=(0,E.forwardRef)((e,A)=>{let[t,n]=(0,ep.splitRenderStrategyProps)(e),[{value:r},i]=(0,V.createSplitProps)()(n,["value"]),o=(0,H.mergeProps)(r.getRootProps(),i);return(0,g.jsx)(ew,{value:r,children:(0,g.jsx)(ep.RenderStrategyPropsProvider,{value:t,children:(0,g.jsx)(D.ark.div,{...o,ref:A})})})});ez.displayName="TabsRootProvider",e.s(["Content",()=>ex,"Context",()=>eQ,"Indicator",()=>eC,"List",()=>eb,"Root",()=>eG,"RootProvider",()=>ez,"Trigger",()=>ev],96784);var eW=e.i(96784),eW=eW;let{withProvider:e$,withContext:eX,useStyles:eY,PropsProvider:eJ}=(0,eA.createSlotRecipeContext)({key:"tabs"}),eq=e$(eW.RootProvider,"root",{forwardAsChild:!0}),eZ=e$(eW.Root,"root",{forwardAsChild:!0}),e0=eX(eW.Trigger,"trigger",{forwardAsChild:!0}),e1=eX(eW.Content,"content",{forwardAsChild:!0}),e2=eX("div","contentGroup"),e4=eX(eW.List,"list",{forwardAsChild:!0}),e3=eX(eW.Indicator,"indicator",{forwardAsChild:!0});e.s(["Content",()=>e1,"ContentGroup",()=>e2,"Context",()=>eQ,"Indicator",()=>e3,"List",()=>e4,"PropsProvider",()=>eJ,"Root",()=>eZ,"RootProvider",()=>eq,"Trigger",()=>e0],52267);var e5=e.i(52267),e5=e5,e6=e.i(26039),e8=e.i(54833),e7=e.i(74992);function e9(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(e)}function Ae(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M94.12 315.1c0 25.9-21.16 47.06-47.06 47.06S0 341 0 315.1c0-25.9 21.16-47.06 47.06-47.06h47.06v47.06zm23.72 0c0-25.9 21.16-47.06 47.06-47.06s47.06 21.16 47.06 47.06v117.84c0 25.9-21.16 47.06-47.06 47.06s-47.06-21.16-47.06-47.06V315.1zm47.06-188.98c-25.9 0-47.06-21.16-47.06-47.06S139 32 164.9 32s47.06 21.16 47.06 47.06v47.06H164.9zm0 23.72c25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06H47.06C21.16 243.96 0 222.8 0 196.9s21.16-47.06 47.06-47.06H164.9zm188.98 47.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06h-47.06V196.9zm-23.72 0c0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06V79.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06V196.9zM283.1 385.88c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06v-47.06h47.06zm0-23.72c-25.9 0-47.06-21.16-47.06-47.06 0-25.9 21.16-47.06 47.06-47.06h117.84c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06H283.1z"},child:[]}]})(e)}function AA(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"},child:[]}]})(e)}function At(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},child:[]}]})(e)}function An(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"},child:[]}]})(e)}function Ar(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"},child:[]}]})(e)}function Ai(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"},child:[]}]})(e)}function Ao(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"},child:[]}]})(e)}function As(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 344v112a23.94 23.94 0 0 1-24 24H312c-21.39 0-32.09-25.9-17-41l36.2-36.2L224 295.6 116.77 402.9 153 439c15.09 15.1 4.39 41-17 41H24a23.94 23.94 0 0 1-24-24V344c0-21.4 25.89-32.1 41-17l36.19 36.2L184.46 256 77.18 148.7 41 185c-15.1 15.1-41 4.4-41-17V56a23.94 23.94 0 0 1 24-24h112c21.39 0 32.09 25.9 17 41l-36.2 36.2L224 216.4l107.23-107.3L295 73c-15.09-15.1-4.39-41 17-41h112a23.94 23.94 0 0 1 24 24v112c0 21.4-25.89 32.1-41 17l-36.19-36.2L263.54 256l107.28 107.3L407 327.1c15.1-15.2 41-4.5 41 16.9z"},child:[]}]})(e)}function Aa(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"},child:[]}]})(e)}function Al(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z"},child:[]}]})(e)}function Ac(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(e)}function Au(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"},child:[]}]})(e)}function Ad(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 56c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m0-48C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 168c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80z"},child:[]}]})(e)}function Ah(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z"},child:[]}]})(e)}var Af=e.i(1343),Ag=e.i(54218),Ap=e.i(30902),AB=e.i(82114),Am=e.i(77855),Aw=e.i(46798),Ay=e.i(5288),Ax=e.i(3158),AC=e.i(12007),Ab=e.i(72064);function Av(){let{featureToggles:e}=(0,AC.useRecceInstanceContext)(),A=async()=>{try{let e=await (0,Ay.exportState)(),A=JSON.stringify(e,null,2),t=new Blob([A],{type:"application/json"}),n=new Date,r=`recce-state-${(0,Ap.format)(n,"yyyy-MM-dd-HH-mm-ss")}.json`;(0,AB.default)(t,r)}catch(e){console.error("Export failed",e),Am.toaster.create({title:"Export failed",description:String(e),type:"error",duration:5e3,closable:!0})}};return(0,g.jsx)(Aw.Tooltip,{content:"Export",children:(0,g.jsx)(Ag.IconButton,{size:"sm",variant:"plain","aria-label":"Export state",onClick:async()=>{await A(),(0,Ax.trackStateAction)({name:"export"})},disabled:e.disableExportStateFile,children:(0,g.jsx)(U.Icon,{as:Ab.IconExport,verticalAlign:"middle",boxSize:"16px"})})})}var AQ=e.i(15762),AF=e.i(30127),AU=e.i(20475),AE=e.i(14988),AI=e.i(18459),AS=e.i(23216),Ak=e.i(79994),Aj=class extends AS.Subscribable{#e;#A=void 0;#t;#n;constructor(e,A){super(),this.#e=e,this.setOptions(A),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let A=this.options;this.options=this.#e.defaultMutationOptions(e),(0,Ak.shallowEqualObjects)(this.options,A)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),A?.mutationKey&&this.options.mutationKey&&(0,Ak.hashKey)(A.mutationKey)!==(0,Ak.hashKey)(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(e){this.#r(),this.#i(e)}getCurrentResult(){return this.#A}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#i()}mutate(e,A){return this.#n=A,this.#t?.removeObserver(this),this.#t=this.#e.getMutationCache().build(this.#e,this.options),this.#t.addObserver(this),this.#t.execute(e)}#r(){let e=this.#t?.state??(0,AE.getDefaultState)();this.#A={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#i(e){AI.notifyManager.batch(()=>{if(this.#n&&this.hasListeners()){let A=this.#A.variables,t=this.#A.context,n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#n.onSuccess?.(e.data,A,t,n),this.#n.onSettled?.(e.data,null,A,t,n)):e?.type==="error"&&(this.#n.onError?.(e.error,A,t,n),this.#n.onSettled?.(void 0,e.error,A,t,n))}this.listeners.forEach(e=>{e(this.#A)})})}},AH=e.i(10917);function AD(e,A){let t=(0,AH.useQueryClient)(A),[n]=E.useState(()=>new Aj(t,e));E.useEffect(()=>{n.setOptions(e)},[n,e]);let r=E.useSyncExternalStore(E.useCallback(e=>n.subscribe(AI.notifyManager.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=E.useCallback((e,A)=>{n.mutate(e,A).catch(Ak.noop)},[n]);if(r.error&&(0,Ak.shouldThrowError)(n.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:i,mutateAsync:r.mutate}}var AL=e.i(7101),AR=e.i(5443);async function AT(e,A){let t=(0,Ax.getExperimentTrackingBreakingChangeEnabled)()?{breaking_change_analysis:!0}:{};return(await AR.axiosClient.post("/api/checks",{run_id:e,view_options:A,track_props:t})).data}async function AM(){return(await AR.axiosClient.get("/api/checks")).data}async function AO(e){return(await AR.axiosClient.get(`/api/checks/${e}`)).data}async function AN(e,A){return(await AR.axiosClient.patch(`/api/checks/${e}`,A)).data}async function AP(e){return(await AR.axiosClient.delete(`/api/checks/${e}`)).data}async function A_(e){return await AR.axiosClient.post("/api/checks/reorder",e)}var AK=e.i(69993),AV=e.i(13067),AG=e.i(81215),Az=e.i(84712),AW=e.i(70839),A$=e.i(98305),AX=e.i(328),AY=e.i(16955);function AJ({checksOnly:e=!0}){let{featureToggles:A}=(0,AC.useRecceInstanceContext)(),t=(0,AH.useQueryClient)(),n=(0,E.useRef)(null),r=(0,E.useRef)(null),[i,o]=(0,E.useState)(null),{open:s,onOpen:a,onClose:l}=(0,A$.useDisclosure)(),[c,u]=(0,Af.useLocation)(),[,d]=(0,AY.useRunsAggregated)(),h=(0,E.useCallback)(async()=>{if(i){try{let{runs:A,checks:n}=await (0,Ay.importState)(i,e);d(),await t.invalidateQueries({queryKey:AL.cacheKeys.checks()}),await t.invalidateQueries({queryKey:AL.cacheKeys.runs()}),c.includes("/checks")&&u("/checks");let r=e?`${n} checks imported successfully`:`${A} runs and ${n} checks imported successfully`;Am.toaster.create({description:r,type:"info",duration:5e3,closable:!0})}catch(e){console.error("Import failed",e),Am.toaster.create({title:"Import failed",description:String(e),type:"error",duration:5e3,closable:!0})}l()}},[t,i,l,c,u,d,e]),f=e?"checks":"runs and checks",{isDemoSite:p}=(0,AY.useLineageGraphContext)();return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Aw.Tooltip,{content:"Import Checklist from State File"+(p?" (Disabled in the demo site)":""),children:(0,g.jsx)(Ag.IconButton,{pt:"6px",variant:"plain","aria-label":"Import state",onClick:()=>{n.current&&n.current.click(),(0,Ax.trackStateAction)({name:"import"})},disabled:A.disableImportStateFile||p,children:(0,g.jsx)(U.Icon,{as:Ab.IconImport})})}),(0,g.jsx)("input",{type:"file",style:{display:"none"},ref:n,onChange:e=>{e.target.files?.length===1&&(o(e.target.files[0]),a()),n.current&&(n.current.value="")}}),(0,g.jsx)(Az.Dialog.Root,{open:s,role:"alertdialog",initialFocusEl:()=>r.current,onOpenChange:l,size:"xl",children:(0,g.jsxs)(AW.Portal,{children:[(0,g.jsx)(Az.Dialog.Backdrop,{}),(0,g.jsx)(Az.Dialog.Positioner,{children:(0,g.jsxs)(Az.Dialog.Content,{children:[(0,g.jsx)(Az.Dialog.Header,{fontSize:"lg",fontWeight:"bold",children:(0,g.jsx)(Az.Dialog.Title,{children:"Import state"})}),(0,g.jsx)(Az.Dialog.Body,{children:(0,g.jsxs)(v.Flex,{px:"5px",gap:"5px",rounded:"md",direction:"column",children:[(0,g.jsxs)(v.Flex,{alignItems:"center",gap:"5px",children:[(0,g.jsx)(AX.PiInfo,{color:"red.600"}),(0,g.jsx)(e6.Text,{as:"span",fontWeight:"500",color:"red.600",children:"Caution!"})]}),(0,g.jsx)(v.Flex,{children:(0,g.jsxs)(e6.Text,{children:["The current ",f," will be"," ",(0,g.jsx)(e6.Text,{as:"span",fontWeight:"600",children:"merged"})," ","with the imported state"]})})]})}),(0,g.jsxs)(Az.Dialog.Footer,{children:[(0,g.jsx)(AV.Button,{ref:r,onClick:l,children:"Cancel"}),(0,g.jsx)(AV.Button,{colorPalette:"blue",onClick:h,ml:"5px",children:"Import"})]}),(0,g.jsx)(Az.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AG.CloseButton,{size:"sm"})})]})})]})})]})}var Aq=e.i(4153),AZ="undefined"!=typeof window?window:null,A0=null===AZ,A1=A0?void 0:AZ.document,A2="addEventListener",A4="removeEventListener",A3="getBoundingClientRect",A5="horizontal",A6=function(){return!1},A8=A0?"calc":["","-webkit-","-moz-","-o-"].filter(function(e){var A=A1.createElement("div");return A.style.cssText="width:"+e+"calc(9px)",!!A.style.length}).shift()+"calc",A7=function(e){return"string"==typeof e||e instanceof String},A9=function(e){if(A7(e)){var A=A1.querySelector(e);if(!A)throw Error("Selector "+e+" did not match a DOM element");return A}return e},te=function(e,A,t){var n=e[A];return void 0!==n?n:t},tA=function(e,A,t,n){if(A){if("end"===n)return 0;if("center"===n)return e/2}else if(t){if("start"===n)return 0;if("center"===n)return e/2}return e},tt=function(e,A){var t=A1.createElement("div");return t.className="gutter gutter-"+A,t},tn=function(e,A,t){var n={};return A7(A)?n[e]=A:n[e]=A8+"("+A+"% - "+t+"px)",n},tr=function(e,A){var t;return(t={})[e]=A+"px",t};let ti=function(e,A){if(void 0===A&&(A={}),A0)return{};var t,n,r,i,o,s,a=e;Array.from&&(a=Array.from(a));var l=A9(a[0]).parentNode,c=getComputedStyle?getComputedStyle(l):null,u=c?c.flexDirection:null,d=te(A,"sizes")||a.map(function(){return 100/a.length}),h=te(A,"minSize",100),f=Array.isArray(h)?h:a.map(function(){return h}),g=te(A,"maxSize",1/0),p=Array.isArray(g)?g:a.map(function(){return g}),B=te(A,"expandToMin",!1),m=te(A,"gutterSize",10),w=te(A,"gutterAlign","center"),y=te(A,"snapOffset",30),x=Array.isArray(y)?y:a.map(function(){return y}),C=te(A,"dragInterval",1),b=te(A,"direction",A5),v=te(A,"cursor",b===A5?"col-resize":"row-resize"),Q=te(A,"gutter",tt),F=te(A,"elementStyle",tn),U=te(A,"gutterStyle",tr);function E(e,A,n,r){var i=F(t,A,n,r);Object.keys(i).forEach(function(A){e.style[A]=i[A]})}function I(){return s.map(function(e){return e.size})}function S(e){return"touches"in e?e.touches[0][n]:e[n]}function k(e){var A=s[this.a],t=s[this.b],n=A.size+t.size;A.size=e/this.size*n,t.size=n-e/this.size*n,E(A.element,A.size,this._b,A.i),E(t.element,t.size,this._c,t.i)}function j(e){var t,n=s[this.a],r=s[this.b];this.dragging&&(t=S(e)-this.start+(this._b-this.dragOffset),C>1&&(t=Math.round(t/C)*C),t<=n.minSize+n.snapOffset+this._b?t=n.minSize+this._b:t>=this.size-(r.minSize+r.snapOffset+this._c)&&(t=this.size-(r.minSize+this._c)),t>=n.maxSize-n.snapOffset+this._b?t=n.maxSize+this._b:t<=this.size-(r.maxSize-r.snapOffset+this._c)&&(t=this.size-(r.maxSize+this._c)),k.call(this,t),te(A,"onDrag",A6)(I()))}function H(){var e=s[this.a].element,A=s[this.b].element,n=e[A3](),o=A[A3]();this.size=n[t]+o[t]+this._b+this._c,this.start=n[r],this.end=n[i]}function D(e){var A=function(e){if(!getComputedStyle)return null;var A=getComputedStyle(e);if(!A)return null;var t=e[o];return 0===t?null:(b===A5?t-=parseFloat(A.paddingLeft)+parseFloat(A.paddingRight):t-=parseFloat(A.paddingTop)+parseFloat(A.paddingBottom),t)}(l);if(null===A||f.reduce(function(e,A){return e+A},0)>A)return e;var t=0,n=[],r=e.map(function(r,i){var o=A*r/100,s=tA(m,0===i,i===e.length-1,w),a=f[i]+s;return o<a?(t+=a-o,n.push(0),a):(n.push(o-a),o)});return 0===t?e:r.map(function(e,r){var i=e;if(t>0&&n[r]-t>0){var o=Math.min(t,n[r]-t);t-=o,i=e-o}return i/A*100})}function L(){var e=s[this.a].element,t=s[this.b].element;this.dragging&&te(A,"onDragEnd",A6)(I()),this.dragging=!1,AZ[A4]("mouseup",this.stop),AZ[A4]("touchend",this.stop),AZ[A4]("touchcancel",this.stop),AZ[A4]("mousemove",this.move),AZ[A4]("touchmove",this.move),this.stop=null,this.move=null,e[A4]("selectstart",A6),e[A4]("dragstart",A6),t[A4]("selectstart",A6),t[A4]("dragstart",A6),e.style.userSelect="",e.style.webkitUserSelect="",e.style.MozUserSelect="",e.style.pointerEvents="",t.style.userSelect="",t.style.webkitUserSelect="",t.style.MozUserSelect="",t.style.pointerEvents="",this.gutter.style.cursor="",this.parent.style.cursor="",A1.body.style.cursor=""}function R(e){if(!("button"in e)||0===e.button){var t=s[this.a].element,n=s[this.b].element;this.dragging||te(A,"onDragStart",A6)(I()),e.preventDefault(),this.dragging=!0,this.move=j.bind(this),this.stop=L.bind(this),AZ[A2]("mouseup",this.stop),AZ[A2]("touchend",this.stop),AZ[A2]("touchcancel",this.stop),AZ[A2]("mousemove",this.move),AZ[A2]("touchmove",this.move),t[A2]("selectstart",A6),t[A2]("dragstart",A6),n[A2]("selectstart",A6),n[A2]("dragstart",A6),t.style.userSelect="none",t.style.webkitUserSelect="none",t.style.MozUserSelect="none",t.style.pointerEvents="none",n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none",n.style.pointerEvents="none",this.gutter.style.cursor=v,this.parent.style.cursor=v,A1.body.style.cursor=v,H.call(this),this.dragOffset=S(e)-this.end}}b===A5?(t="width",n="clientX",r="left",i="right",o="clientWidth"):"vertical"===b&&(t="height",n="clientY",r="top",i="bottom",o="clientHeight"),d=D(d);var T=[];function M(e){var A=e.i===T.length,t=A?T[e.i-1]:T[e.i];H.call(t);var n=A?t.size-e.minSize-t._c:e.minSize+t._b;k.call(t,n)}return(s=a.map(function(e,A){var n,r={element:A9(e),size:d[A],minSize:f[A],maxSize:p[A],snapOffset:x[A],i:A};if(A>0&&((n={a:A-1,b:A,dragging:!1,direction:b,parent:l})._b=tA(m,A-1==0,!1,w),n._c=tA(m,!1,A===a.length-1,w),"row-reverse"===u||"column-reverse"===u)){var i=n.a;n.a=n.b,n.b=i}if(A>0){var o,s=Q(A,b,r.element);Object.keys(o=U(t,m,A)).forEach(function(e){s.style[e]=o[e]}),n._a=R.bind(n),s[A2]("mousedown",n._a),s[A2]("touchstart",n._a),l.insertBefore(s,r.element),n.gutter=s}return E(r.element,r.size,tA(m,0===A,A===a.length-1,w),A),A>0&&T.push(n),r})).forEach(function(e){var A=e.element[A3]()[t];A<e.minSize&&(B?M(e):e.minSize=A)}),{setSizes:function(e){var A=D(e);A.forEach(function(e,t){if(t>0){var n=T[t-1],r=s[n.a],i=s[n.b];r.size=A[t-1],i.size=e,E(r.element,r.size,n._b,r.i),E(i.element,i.size,n._c,i.i)}})},getSizes:I,collapse:function(e){M(s[e])},destroy:function(e,A){T.forEach(function(n){!0!==A?n.parent.removeChild(n.gutter):(n.gutter[A4]("mousedown",n._a),n.gutter[A4]("touchstart",n._a)),!0!==e&&Object.keys(F(t,n.a.size,n._b)).forEach(function(e){s[n.a].element.style[e]="",s[n.b].element.style[e]=""})})},parent:l,pairs:T}};function to(e,A){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&-1===A.indexOf(n)&&(t[n]=e[n]);return t}var ts=function(e){function A(){e.apply(this,arguments)}return e&&(A.__proto__=e),A.prototype=Object.create(e&&e.prototype),A.prototype.constructor=A,A.prototype.componentDidMount=function(){var e=this.props;e.children;var A=e.gutter,t=to(e,["children","gutter"]);t.gutter=function(e,t){var n;return A?n=A(e,t):(n=document.createElement("div")).className="gutter gutter-"+t,n.__isSplitGutter=!0,n},this.split=ti(this.parent.children,t)},A.prototype.componentDidUpdate=function(e){var A=this,t=this.props;t.children;var n=t.minSize,r=t.sizes,i=t.collapsed,o=to(t,["children","minSize","sizes","collapsed"]),s=e.minSize,a=e.sizes,l=e.collapsed,c=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map(function(t){return A.props[t]!==e[t]}).reduce(function(e,A){return e||A},!1);if(Array.isArray(n)&&Array.isArray(s)){var u=!1;n.forEach(function(e,A){u=u||e!==s[A]}),c=c||u}else c=!!(Array.isArray(n)||Array.isArray(s))||c||n!==s;if(c)o.minSize=n,o.sizes=r||this.split.getSizes(),this.split.destroy(!0,!0),o.gutter=function(e,A,t){return t.previousSibling},this.split=ti(Array.from(this.parent.children).filter(function(e){return!e.__isSplitGutter}),o);else if(r){var d=!1;r.forEach(function(e,A){d=d||e!==a[A]}),d&&this.split.setSizes(this.props.sizes)}Number.isInteger(i)&&(i!==l||c)&&this.split.collapse(i)},A.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},A.prototype.render=function(){var e=this,A=this.props;A.sizes,A.minSize,A.maxSize,A.expandToMin,A.gutterSize,A.gutterAlign,A.snapOffset,A.dragInterval,A.direction,A.cursor,A.gutter,A.elementStyle,A.gutterStyle,A.onDrag,A.onDragStart,A.onDragEnd,A.collapsed;var t=A.children,n=to(A,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return E.default.createElement("div",Object.assign({},{ref:function(A){e.parent=A}},n),t)},A}(E.default.Component);ts.propTypes={sizes:Aq.default.arrayOf(Aq.default.number),minSize:Aq.default.oneOfType([Aq.default.number,Aq.default.arrayOf(Aq.default.number)]),maxSize:Aq.default.oneOfType([Aq.default.number,Aq.default.arrayOf(Aq.default.number)]),expandToMin:Aq.default.bool,gutterSize:Aq.default.number,gutterAlign:Aq.default.string,snapOffset:Aq.default.oneOfType([Aq.default.number,Aq.default.arrayOf(Aq.default.number)]),dragInterval:Aq.default.number,direction:Aq.default.string,cursor:Aq.default.string,gutter:Aq.default.func,elementStyle:Aq.default.func,gutterStyle:Aq.default.func,onDrag:Aq.default.func,onDragStart:Aq.default.func,onDragEnd:Aq.default.func,collapsed:Aq.default.number,children:Aq.default.arrayOf(Aq.default.element)},ts.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};let ta=e=>{let{style:A,children:t,gutterSize:n=5,...r}=e;return(0,g.jsx)(ts,{style:{display:"flex",flexDirection:"row",...A},direction:"horizontal",gutterSize:n,...r,children:t})},tl=e=>{let{style:A,children:t,gutterSize:n=5,...r}=e;return(0,g.jsx)(ts,{style:{display:"flex",flexDirection:"column",...A},gutterSize:n,direction:"vertical",...r,children:t})};var tc=(e,A)=>{let t=[],n=(e,A,n)=>{A-e>0&&t.push({start:e,end:A,match:n})};if(0===e.length)n(0,A,!1);else{let t=0;for(let A of e)n(t,A.start,!1),n(A.start,A.end,!0),t=A.end;n(t,A,!1)}return t},tu=e=>e.replace(/[|\\{}()[\]^$+*?.-]/g,e=>`\\${e}`);let{withContext:td,PropsProvider:th}=(0,p.createRecipeContext)({key:"mark"}),tf=td("mark");function tg(e){let{each:A,fallback:t,children:n}=e;return A?.length===0?t||null:A?.map(n)}function tp(e){let A,{children:t,query:n,ignoreCase:r,matchAll:i,styles:o}=e;if("string"!=typeof t)throw Error("The children prop of Highlight must be a string");let s=(A={query:n,text:t,matchAll:i,ignoreCase:r},(0,E.useMemo)(()=>(e=>{if(null==e.matchAll&&(e.matchAll=Array.isArray(e.query)),!e.matchAll&&Array.isArray(e.query))throw Error("matchAll must be true when using multiple queries");return e.matchAll?function(e){var A;let t,{text:n,query:r,ignoreCase:i,matchAll:o,exactMatch:s}=e;if(0===r.length)return[{text:n,match:!1}];let a=((e,A=!0)=>`${e?"i":""}${A?"g":""}`)(i,o),l=(A=Array.isArray(r)?r:[r],t=A.filter(Boolean).map(e=>tu(e)),new RegExp(s?`\\b(${t.join("|")})\\b`:`(${t.join("|")})`,a));return tc([...n.matchAll(l)].map(e=>({start:e.index||0,end:(e.index||0)+e[0].length})),e.text.length).map(A=>({text:e.text.slice(A.start,A.end),match:!!A.match}))}(e):function(e){let{text:A,query:t,ignoreCase:n,exactMatch:r}=e;if(r){let e=tu(t),r=RegExp(`\\b(${e})\\b`,n?"i":""),i=A.match(r);if(!i||void 0===i.index)return[{text:A,match:!1}];let o=i.index,s=o+i[0].length;return tc([{start:o,end:s}],A.length).map(e=>({text:A.slice(e.start,e.end),match:!!e.match}))}let i=n?A.toLowerCase():A,o=n&&"string"==typeof t?t.toLowerCase():t,s="string"==typeof i?i.indexOf(o):-1;if(-1===s)return[{text:A,match:!1}];let a=s+o.length;return tc([{start:s,end:a}],A.length).map(e=>({text:A.slice(e.start,e.end),match:!!e.match}))}(e)})(A),[A]));return(0,g.jsx)(tg,{each:s,children:(e,A)=>e.match?(0,g.jsx)(tf,{css:o,children:e.text},A):(0,g.jsx)(E.Fragment,{children:e.text},A)})}tf.displayName="Mark";var tB=e.i(3749),tm=e.i(91509),e5=e5;e.s([],30915),e.i(30915);var tw=e.i(36518);let{withProvider:ty,withContext:tx,useStyles:tC,PropsProvider:tb}=(0,eA.createSlotRecipeContext)({key:"tag"}),tv=ty("div","root"),tQ=tx("span","label"),tF=tx("button","closeTrigger",{defaultProps:{children:(0,g.jsx)(tw.CloseIcon,{})}}),tU=tx("span","startElement"),tE=tx("span","endElement");e.s(["CloseTrigger",()=>tF,"EndElement",()=>tE,"Label",()=>tQ,"Root",()=>tv,"RootPropsProvider",()=>tb,"StartElement",()=>tU],76479);var tI=e.i(76479),tI=tI,tS=function(){function e(e,A){for(var t=0;t<A.length;t++){var n=A[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(A,t,n){return t&&e(A.prototype,t),n&&e(A,n),A}}(),tk=Object.freeze(Object.defineProperties(["",""],{raw:{value:Object.freeze(["",""])}})),tj=function(){function e(){for(var A=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!(this instanceof e))throw TypeError("Cannot call a class as a function");return this.tag=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?A.interimTag.bind(A,e):"string"==typeof e?A.transformEndResult(e):(e=e.map(A.transformString.bind(A)),A.transformEndResult(e.reduce(A.processSubstitutions.bind(A,n))))},n.length>0&&Array.isArray(n[0])&&(n=n[0]),this.transformers=n.map(function(e){return"function"==typeof e?e():e}),this.tag}return tS(e,[{key:"interimTag",value:function(e,A){for(var t=arguments.length,n=Array(t>2?t-2:0),r=2;r<t;r++)n[r-2]=arguments[r];return this.tag(tk,e.apply(void 0,[A].concat(n)))}},{key:"processSubstitutions",value:function(e,A,t){var n=this.transformSubstitution(e.shift(),A);return"".concat(A,n,t)}},{key:"transformString",value:function(e){return this.transformers.reduce(function(e,A){return A.onString?A.onString(e):e},e)}},{key:"transformSubstitution",value:function(e,A){return this.transformers.reduce(function(e,t){return t.onSubstitution?t.onSubstitution(e,A):e},e)}},{key:"transformEndResult",value:function(e){return this.transformers.reduce(function(e,A){return A.onEndResult?A.onEndResult(e):e},e)}}]),e}();let tH=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(A){if(""===e)return A.trim();if("start"===(e=e.toLowerCase())||"left"===e)return A.replace(/^\s*/,"");if("end"===e||"right"===e)return A.replace(/\s*$/,"");throw Error("Side not supported: "+e)}}},tD=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(A){if("initial"===e){var t=A.match(/^[^\S\n]*(?=\S)/gm),n=t&&Math.min.apply(Math,function(e){if(!Array.isArray(e))return Array.from(e);for(var A=0,t=Array(e.length);A<e.length;A++)t[A]=e[A];return t}(t.map(function(e){return e.length})));if(n){var r=RegExp("^.{"+n+"}","gm");return A.replace(r,"")}return A}if("all"===e)return A.replace(/^[^\S\n]+/gm,"");throw Error("Unknown type: "+e)}}},tL=function(e,A){return{onEndResult:function(t){if(null==e||null==A)throw Error("replaceResultTransformer requires at least 2 arguments.");return t.replace(e,A)}}},tR=function(e,A){return{onSubstitution:function(t,n){if(null==e||null==A)throw Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==t?t:t.toString().replace(e,A)}}};var tT={separator:"",conjunction:"",serial:!1};let tM=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tT;return{onSubstitution:function(A,t){if(Array.isArray(A)){var n=A.length,r=e.separator,i=e.conjunction,o=e.serial,s=t.match(/(\n?[^\S\n]+)$/);if(A=s?A.join(r+s[1]):A.join(r+" "),i&&n>1){var a=A.lastIndexOf(r);A=A.slice(0,a)+(o?r:"")+" "+i+A.slice(a+1)}}return A}}},tO=function(e){return{onSubstitution:function(A,t){if(null!=e&&"string"==typeof e)"string"==typeof A&&A.includes(e)&&(A=A.split(e));else throw Error("You need to specify a string character to split by.");return A}}};var tN=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e};new tj(tM({separator:","}),tD,tH),new tj(tM({separator:",",conjunction:"and"}),tD,tH),new tj(tM({separator:",",conjunction:"or"}),tD,tH),new tj(tO("\n"),function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(tN):tN(e)?e:""}}},tM,tD,tH),new tj(tO("\n"),tM,tD,tH,tR(/&/g,"&"),tR(/</g,"<"),tR(/>/g,">"),tR(/"/g,"""),tR(/'/g,"'"),tR(/`/g,"`")),new tj(tL(/(?:\n(?:\s*))+/g," "),tH),new tj(tL(/(?:\n\s*)/g,""),tH),new tj(tM({separator:","}),tL(/(?:\s+)/g," "),tH),new tj(tM({separator:",",conjunction:"or"}),tL(/(?:\s+)/g," "),tH),new tj(tM({separator:",",conjunction:"and"}),tL(/(?:\s+)/g," "),tH),new tj(tM,tD,tH),new tj(tM,tL(/(?:\s+)/g," "),tH);var tP=new tj(tD,tH),t_=new tj(tD("all"),tH),tK=e.i(87122),tV=e.i(38153),tG=e.i(92421),tz=e.i(32713),tW=e.i(39392),t$=e.i(16467);function tX(e,A){let t=(0,t$.toDate)(e)-(0,t$.toDate)(A);return t<0?-1:t>0?1:t}var tY=e.i(11518);function tJ(e,A,t){var n;let r,i=(0,tG.getDefaultOptions)(),o=t?.locale??i.locale??tV.defaultLocale,s=tX(e,A);if(isNaN(s))throw RangeError("Invalid time value");let a=Object.assign({},t,{addSuffix:t?.addSuffix,comparison:s}),[l,c]=(0,tW.normalizeDates)(t?.in,...s>0?[A,e]:[e,A]),u=(n=void 0,e=>{let A=(n?Math[n]:Math.trunc)(e);return 0===A?0:A})(((0,t$.toDate)(c)-(0,t$.toDate)(l))/1e3),d=Math.round((u-((0,tz.getTimezoneOffsetInMilliseconds)(c)-(0,tz.getTimezoneOffsetInMilliseconds)(l))/1e3)/60);if(d<2)if(t?.includeSeconds)if(u<5)return o.formatDistance("lessThanXSeconds",5,a);else if(u<10)return o.formatDistance("lessThanXSeconds",10,a);else if(u<20)return o.formatDistance("lessThanXSeconds",20,a);else if(u<40)return o.formatDistance("halfAMinute",0,a);else if(u<60)return o.formatDistance("lessThanXMinutes",1,a);else return o.formatDistance("xMinutes",1,a);else if(0===d)return o.formatDistance("lessThanXMinutes",1,a);else return o.formatDistance("xMinutes",d,a);if(d<45)return o.formatDistance("xMinutes",d,a);if(d<90)return o.formatDistance("aboutXHours",1,a);if(d<tY.minutesInDay){let e=Math.round(d/60);return o.formatDistance("aboutXHours",e,a)}if(d<2520)return o.formatDistance("xDays",1,a);else if(d<tY.minutesInMonth){let e=Math.round(d/tY.minutesInDay);return o.formatDistance("xDays",e,a)}else if(d<2*tY.minutesInMonth)return r=Math.round(d/tY.minutesInMonth),o.formatDistance("aboutXMonths",r,a);if((r=function(e,A,t){var n,r;let i,o,s,a,[l,c,u]=(0,tW.normalizeDates)(void 0,e,e,A),d=tX(c,u),h=Math.abs(function(e,A,t){let[n,r]=(0,tW.normalizeDates)(void 0,e,A);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(c,u));if(h<1)return 0;1===c.getMonth()&&c.getDate()>27&&c.setDate(30),c.setMonth(c.getMonth()-d*h);let f=tX(c,u)===-d;+(i=(0,t$.toDate)(l,void 0),n=void 0,(o=(0,t$.toDate)(i,n?.in)).setHours(23,59,59,999),o)==+(r=void 0,a=(s=(0,t$.toDate)(i,r?.in)).getMonth(),s.setFullYear(s.getFullYear(),a+1,0),s.setHours(23,59,59,999),s)&&1===h&&1===tX(l,u)&&(f=!1);let g=d*(h-f);return 0===g?0:g}(c,l))<12){let e=Math.round(d/tY.minutesInMonth);return o.formatDistance("xMonths",e,a)}{let e=r%12,A=Math.trunc(r/12);return e<3?o.formatDistance("aboutXYears",A,a):e<9?o.formatDistance("overXYears",A,a):o.formatDistance("almostXYears",A+1,a)}}function tq(e,A){return tJ(e,(0,tK.constructFrom)(e,Date.now()),A)}function tZ(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Bookmark"},child:[{tag:"path",attr:{d:"M17.6,21.945a1.483,1.483,0,0,1-1.01-.4l-4.251-3.9a.5.5,0,0,0-.68,0L7.409,21.545a1.5,1.5,0,0,1-2.516-1.1V4.57a2.5,2.5,0,0,1,2.5-2.5h9.214a2.5,2.5,0,0,1,2.5,2.5V20.442a1.481,1.481,0,0,1-.9,1.374A1.507,1.507,0,0,1,17.6,21.945ZM12,16.51a1.5,1.5,0,0,1,1.018.395l4.251,3.9a.5.5,0,0,0,.839-.368V4.57a1.5,1.5,0,0,0-1.5-1.5H7.393a1.5,1.5,0,0,0-1.5,1.5V20.442a.5.5,0,0,0,.839.368L10.983,16.9A1.5,1.5,0,0,1,12,16.51Z"},child:[]}]}]})(e)}function t0(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M190.4 354.1L91.9 256l98.4-98.1-30-29.9L32 256l128.4 128 30-29.9zm131.2 0L420 256l-98.4-98.1 30-29.9L480 256 351.6 384l-30-29.9z"},child:[]},{tag:"path",attr:{d:"M155.6 276h40v-40h-40v40zm200.8-40h-40v40h40v-40zM236 276h40v-40h-40v40z"},child:[]}]})(e)}var t1=e.i(56949),t2=e.i(8548),t4=e.i(80806);function t3({children:e,display:A}){let[t,n]=(0,E.useState)(!1),r=(0,E.useRef)(null),i=(0,E.useRef)(null),o=(0,E.useCallback)(()=>{r.current&&(clearTimeout(r.current),r.current=null),n(!0)},[]),s=(0,E.useCallback)(()=>{r.current=setTimeout(()=>{n(!1)},100)},[]);return A?(0,g.jsxs)(t2.Popover.Root,{open:t,onFocusOutside:()=>{n(!1)},positioning:{getAnchorRect:()=>i.current?.getBoundingClientRect()??null},lazyMount:!0,unmountOnExit:!0,size:"xs",autoFocus:!1,children:[(0,g.jsx)(t2.Popover.Trigger,{asChild:!0,children:(0,g.jsx)(y.Box,{ref:i,onMouseEnter:o,onMouseLeave:s,display:"contents",children:e})}),(0,g.jsx)(AW.Portal,{children:(0,g.jsx)(t2.Popover.Positioner,{children:(0,g.jsx)(t2.Popover.Content,{bg:"gray.600",color:"white",zIndex:"popover",width:"auto",onMouseEnter:o,onMouseLeave:s,children:(0,g.jsxs)(t2.Popover.Body,{children:["Connect to a data warehouse to unlock Diff."," ",(0,g.jsx)(j.Link,{href:t4.RECCE_SUPPORT_CALENDAR_URL,color:"white",target:"_blank",textDecoration:"underline",children:"Learn more"}),"."]})})})})]}):e}var t5=e.i(61566),t6=e.i(18740);let t8=(r=0,()=>(r+=1,`u${`0000${(1679616*Math.random()|0).toString(36)}`.slice(-4)}${r}`));function t7(e){let A=[];for(let t=0,n=e.length;t<n;t++)A.push(e[t]);return A}let t9=null;function ne(e={}){return t9||(t9=e.includeStyleProperties?e.includeStyleProperties:t7(window.getComputedStyle(document.documentElement)))}function nA(e,A){let t=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(A);return t?parseFloat(t.replace("px","")):0}function nt(e,A={}){let t,n,r,i;return{width:A.width||(t=nA(e,"border-left-width"),n=nA(e,"border-right-width"),e.clientWidth+t+n),height:A.height||(r=nA(e,"border-top-width"),i=nA(e,"border-bottom-width"),e.clientHeight+r+i)}}function nn(e){return new Promise((A,t)=>{let n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>A(n))})},n.onerror=t,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function nr(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function ni(e,A,t){let n="http://www.w3.org/2000/svg",r=document.createElementNS(n,"svg"),i=document.createElementNS(n,"foreignObject");return r.setAttribute("width",`${A}`),r.setAttribute("height",`${t}`),r.setAttribute("viewBox",`0 0 ${A} ${t}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),r.appendChild(i),i.appendChild(e),nr(r)}let no=(e,A)=>{if(e instanceof A)return!0;let t=Object.getPrototypeOf(e);return null!==t&&(t.constructor.name===A.name||no(t,A))};function ns(e,A,t,n){let r,i,o,s=window.getComputedStyle(e,t),a=s.getPropertyValue("content");if(""===a||"none"===a)return;let l=t8();try{A.className=`${A.className} ${l}`}catch(e){return}let c=document.createElement("style");c.appendChild((r=`.${l}:${t}`,o=s.cssText?(i=s.getPropertyValue("content"),`${s.cssText} content: '${i.replace(/'|"/g,"")}';`):ne(n).map(e=>{let A=s.getPropertyValue(e),t=s.getPropertyPriority(e);return`${e}: ${A}${t?" !important":""};`}).join(" "),document.createTextNode(`${r}{${o}}`))),A.appendChild(c)}let na="application/font-woff",nl="image/jpeg",nc={woff:na,woff2:na,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:nl,jpeg:nl,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function nu(e){let A;return nc[((A=/\.([^./]*?)$/g.exec(e))?A[1]:"").toLowerCase()]||""}function nd(e){return -1!==e.search(/^(data:)/)}function nh(e,A){return`data:${A};base64,${e}`}async function nf(e,A,t){let n=await fetch(e,A);if(404===n.status)throw Error(`Resource "${n.url}" not found`);let r=await n.blob();return new Promise((e,A)=>{let i=new FileReader;i.onerror=A,i.onloadend=()=>{try{e(t({res:n,result:i.result}))}catch(e){A(e)}},i.readAsDataURL(r)})}let ng={};async function np(e,A,t){var n,r,i;let o,s,a=(n=e,r=A,i=t.includeQueryParams,s=n.replace(/\?.*/,""),i&&(s=n),/ttf|otf|eot|woff2?/i.test(s)&&(s=s.replace(/.*\//,"")),r?`[${r}]${s}`:s);if(null!=ng[a])return ng[a];t.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let n=await nf(e,t.fetchRequestInit,({res:e,result:t})=>(A||(A=e.headers.get("Content-Type")||""),t.split(/,/)[1]));o=nh(n,A)}catch(n){o=t.imagePlaceholder||"";let A=`Failed to fetch resource: ${e}`;n&&(A="string"==typeof n?n:n.message),A&&console.warn(A)}return ng[a]=o,o}async function nB(e){let A=e.toDataURL();return"data:,"===A?e.cloneNode(!1):nn(A)}async function nm(e,A){if(e.currentSrc){let A=document.createElement("canvas"),t=A.getContext("2d");return A.width=e.clientWidth,A.height=e.clientHeight,null==t||t.drawImage(e,0,0,A.width,A.height),nn(A.toDataURL())}let t=e.poster,n=nu(t);return nn(await np(t,n,A))}async function nw(e,A){var t;try{if(null==(t=null==e?void 0:e.contentDocument)?void 0:t.body)return await nv(e.contentDocument.body,A,!0)}catch(e){}return e.cloneNode(!1)}async function ny(e,A){return no(e,HTMLCanvasElement)?nB(e):no(e,HTMLVideoElement)?nm(e,A):no(e,HTMLIFrameElement)?nw(e,A):e.cloneNode(nx(e))}let nx=e=>null!=e.tagName&&"SVG"===e.tagName.toUpperCase();async function nC(e,A,t){var n,r;if(nx(A))return A;let i=[];return 0===(i=null!=e.tagName&&"SLOT"===e.tagName.toUpperCase()&&e.assignedNodes?t7(e.assignedNodes()):no(e,HTMLIFrameElement)&&(null==(n=e.contentDocument)?void 0:n.body)?t7(e.contentDocument.body.childNodes):t7((null!=(r=e.shadowRoot)?r:e).childNodes)).length||no(e,HTMLVideoElement)||await i.reduce((e,n)=>e.then(()=>nv(n,t)).then(e=>{e&&A.appendChild(e)}),Promise.resolve()),A}async function nb(e,A){let t=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===t.length)return e;let n={};for(let r=0;r<t.length;r++){let i=t[r].getAttribute("xlink:href");if(i){let t=e.querySelector(i),r=document.querySelector(i);t||!r||n[i]||(n[i]=await nv(r,A,!0))}}let r=Object.values(n);if(r.length){let A="http://www.w3.org/1999/xhtml",t=document.createElementNS(A,"svg");t.setAttribute("xmlns",A),t.style.position="absolute",t.style.width="0",t.style.height="0",t.style.overflow="hidden",t.style.display="none";let n=document.createElementNS(A,"defs");t.appendChild(n);for(let e=0;e<r.length;e++)n.appendChild(r[e]);e.appendChild(t)}return e}async function nv(e,A,t){return t||!A.filter||A.filter(e)?Promise.resolve(e).then(e=>ny(e,A)).then(t=>nC(e,t,A)).then(t=>(function(e,A,t){if(no(A,Element)&&(!function(e,A,t){let n=A.style;if(!n)return;let r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):ne(t).forEach(t=>{let i=r.getPropertyValue(t);if("font-size"===t&&i.endsWith("px")){let e=Math.floor(parseFloat(i.substring(0,i.length-2)))-.1;i=`${e}px`}no(e,HTMLIFrameElement)&&"display"===t&&"inline"===i&&(i="block"),"d"===t&&A.getAttribute("d")&&(i=`path(${A.getAttribute("d")})`),n.setProperty(t,i,r.getPropertyPriority(t))})}(e,A,t),ns(e,A,":before",t),ns(e,A,":after",t),no(e,HTMLTextAreaElement)&&(A.innerHTML=e.value),no(e,HTMLInputElement)&&A.setAttribute("value",e.value),no(e,HTMLSelectElement))){let t=Array.from(A.children).find(A=>e.value===A.getAttribute("value"));t&&t.setAttribute("selected","")}return A})(e,t,A)).then(e=>nb(e,A)):null}let nQ=/url\((['"]?)([^'"]+?)\1\)/g,nF=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,nU=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function nE(e,A,t,n,r){try{let i,o,s=t?function(e,A){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let t=document.implementation.createHTMLDocument(),n=t.createElement("base"),r=t.createElement("a");return t.head.appendChild(n),t.body.appendChild(r),A&&(n.href=A),r.href=e,r.href}(A,t):A,a=nu(A);if(r){let e=await r(s);i=nh(e,a)}else i=await np(s,a,n);return e.replace((o=A.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1"),RegExp(`(url\\(['"]?)(${o})(['"]?\\))`,"g")),`$1${i}$3`)}catch(e){}return e}function nI(e){return -1!==e.search(nQ)}async function nS(e,A,t){let n;if(!nI(e))return e;let r=function(e,{preferredFontFormat:A}){return A?e.replace(nU,e=>{for(;;){let[t,,n]=nF.exec(e)||[];if(!n)return"";if(n===A)return`src: ${t};`}}):e}(e,t);return(n=[],r.replace(nQ,(e,A,t)=>(n.push(t),e)),n.filter(e=>!nd(e))).reduce((e,n)=>e.then(e=>nE(e,n,A,t)),Promise.resolve(r))}async function nk(e,A,t){var n;let r=null==(n=A.style)?void 0:n.getPropertyValue(e);if(r){let n=await nS(r,null,t);return A.style.setProperty(e,n,A.style.getPropertyPriority(e)),!0}return!1}async function nj(e,A){await nk("background",e,A)||await nk("background-image",e,A),await nk("mask",e,A)||await nk("-webkit-mask",e,A)||await nk("mask-image",e,A)||await nk("-webkit-mask-image",e,A)}async function nH(e,A){let t=no(e,HTMLImageElement);if(!(t&&!nd(e.src))&&!(no(e,SVGImageElement)&&!nd(e.href.baseVal)))return;let n=t?e.src:e.href.baseVal,r=await np(n,nu(n),A);await new Promise((n,i)=>{e.onload=n,e.onerror=A.onImageErrorHandler?(...e)=>{try{n(A.onImageErrorHandler(...e))}catch(e){i(e)}}:i,e.decode&&(e.decode=n),"lazy"===e.loading&&(e.loading="eager"),t?(e.srcset="",e.src=r):e.href.baseVal=r})}async function nD(e,A){let t=t7(e.childNodes).map(e=>nL(e,A));await Promise.all(t).then(()=>e)}async function nL(e,A){no(e,Element)&&(await nj(e,A),await nH(e,A),await nD(e,A))}let nR={};async function nT(e){let A=nR[e];if(null!=A)return A;let t=await fetch(e);return A={url:e,cssText:await t.text()},nR[e]=A,A}async function nM(e,A){let t=e.cssText,n=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((t.match(/url\([^)]+\)/g)||[]).map(async r=>{let i=r.replace(n,"$1");return i.startsWith("https://")||(i=new URL(i,e.url).href),nf(i,A.fetchRequestInit,({result:e})=>(t=t.replace(r,`url(${e})`),[r,e]))})).then(()=>t)}function nO(e){if(null==e)return[];let A=[],t=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),n=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let e=n.exec(t);if(null===e)break;A.push(e[0])}t=t.replace(n,"");let r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=r.exec(t);if(null===e){if(null===(e=i.exec(t)))break;r.lastIndex=i.lastIndex}else i.lastIndex=r.lastIndex;A.push(e[0])}return A}async function nN(e,A){let t=[],n=[];return e.forEach(t=>{if("cssRules"in t)try{t7(t.cssRules||[]).forEach((e,r)=>{if(e.type===CSSRule.IMPORT_RULE){let i=r+1,o=e.href,s=nT(o).then(e=>nM(e,A)).then(e=>nO(e).forEach(e=>{try{t.insertRule(e,e.startsWith("@import")?i+=1:t.cssRules.length)}catch(A){console.error("Error inserting rule from remote css",{rule:e,error:A})}})).catch(e=>{console.error("Error loading remote css",e.toString())});n.push(s)}})}catch(i){let r=e.find(e=>null==e.href)||document.styleSheets[0];null!=t.href&&n.push(nT(t.href).then(e=>nM(e,A)).then(e=>nO(e).forEach(e=>{r.insertRule(e,r.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",i)}}),Promise.all(n).then(()=>(e.forEach(e=>{if("cssRules"in e)try{t7(e.cssRules||[]).forEach(e=>{t.push(e)})}catch(A){console.error(`Error while reading CSS rules from ${e.href}`,A)}}),t))}async function nP(e,A){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let t=t7(e.ownerDocument.styleSheets);return(await nN(t,A)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>nI(e.style.getPropertyValue("src")))}function n_(e){return e.trim().replace(/["']/g,"")}async function nK(e,A){let t,n=await nP(e,A),r=(t=new Set,!function e(A){(A.style.fontFamily||getComputedStyle(A).fontFamily).split(",").forEach(e=>{t.add(n_(e))}),Array.from(A.children).forEach(A=>{A instanceof HTMLElement&&e(A)})}(e),t);return(await Promise.all(n.filter(e=>r.has(n_(e.style.fontFamily))).map(e=>{let t=e.parentStyleSheet?e.parentStyleSheet.href:null;return nS(e.cssText,t,A)}))).join("\n")}async function nV(e,A){let t=null!=A.fontEmbedCSS?A.fontEmbedCSS:A.skipFonts?null:await nK(e,A);if(t){let A=document.createElement("style"),n=document.createTextNode(t);A.appendChild(n),e.firstChild?e.insertBefore(A,e.firstChild):e.appendChild(A)}}async function nG(e,A={}){let{width:t,height:n}=nt(e,A),r=await nv(e,A,!0);return await nV(r,A),await nL(r,A),!function(e,A){let{style:t}=e;A.backgroundColor&&(t.backgroundColor=A.backgroundColor),A.width&&(t.width=`${A.width}px`),A.height&&(t.height=`${A.height}px`);let n=A.style;null!=n&&Object.keys(n).forEach(e=>{t[e]=n[e]})}(r,A),await ni(r,t,n)}async function nz(e,A={}){let{width:t,height:n}=nt(e,A),r=await nG(e,A),i=await nn(r),o=document.createElement("canvas"),s=o.getContext("2d"),a=A.pixelRatio||function(){let e,A;try{A=t6.default}catch(e){}let t=A&&A.env?A.env.devicePixelRatio:null;return t&&Number.isNaN(e=parseInt(t,10))&&(e=1),e||window.devicePixelRatio||1}(),l=A.canvasWidth||t,c=A.canvasHeight||n;return o.width=l*a,o.height=c*a,!A.skipAutoScale&&(o.width>16384||o.height>16384)&&(o.width>16384&&o.height>16384?o.width>o.height?(o.height*=16384/o.width,o.width=16384):(o.width*=16384/o.height,o.height=16384):o.width>16384?(o.height*=16384/o.width,o.width=16384):(o.width*=16384/o.height,o.height=16384)),o.style.width=`${l}`,o.style.height=`${c}`,A.backgroundColor&&(s.fillStyle=A.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(i,0,0,o.width,o.height),o}var nW=e.i(96057);function n$(){return{successToast:function(e){Am.toaster.create({description:e,type:"info",duration:5e3,closable:!0})},failToast:function(e,A){Am.toaster.create({title:e,description:String(A),type:"error",duration:5e3,closable:!0})}}}let nX=e=>"element"in e?e.element:e,nY="ignore-screenshot";function nJ({renderLibrary:e="html2canvas",imageType:A="png",backgroundColor:t=null,boardEffect:n=!0,shadowEffect:r=!1,borderStyle:i="solid 1px #ccc",borderRadius:o="10px",onSuccess:s,onError:a,ignoreElements:l}){let[c,u]=(0,E.useState)("idle"),d=(0,E.useRef)(null),{onOpen:h,setImgBlob:f,ImageDownloadModal:p}=function(){let{open:e,onOpen:A,onClose:t}=(0,A$.useDisclosure)(),[n,r]=(0,E.useState)();return{onOpen:A,setImgBlob:r,ImageDownloadModal:function(){let[A,r]=(0,E.useState)();return(0,E.useEffect)(()=>{if(!n)return;let e=new FileReader;e.readAsDataURL(n),e.onloadend=e=>{e.target?.result!=null&&r(e.target.result)}},[]),(0,g.jsx)(Az.Dialog.Root,{size:"xl",open:e,onOpenChange:t,children:(0,g.jsxs)(AW.Portal,{children:[(0,g.jsx)(Az.Dialog.Backdrop,{}),(0,g.jsx)(Az.Dialog.Positioner,{children:(0,g.jsxs)(Az.Dialog.Content,{children:[(0,g.jsx)(Az.Dialog.Header,{children:(0,g.jsx)(Az.Dialog.Title,{children:"Screenshot Preview"})}),(0,g.jsxs)(Az.Dialog.Body,{children:[(0,g.jsxs)(v.Flex,{px:"10px",gap:"10px",direction:"column",children:[(0,g.jsxs)(v.Flex,{alignItems:"center",gap:"5px",children:[(0,g.jsx)(AX.PiInfo,{color:"red.600"}),(0,g.jsx)(e6.Text,{fontWeight:"500",display:"inline",children:"Copy to the Clipboard"})," ","is not supported in the current browser"]}),(0,g.jsx)(e6.Text,{children:"Please download it directly"})]}),(0,g.jsx)(k,{src:A,alt:"screenshot"})]}),(0,g.jsxs)(Az.Dialog.Footer,{children:[(0,g.jsx)(AV.Button,{mr:3,onClick:t,children:"Close"}),(0,g.jsx)(AV.Button,{colorPalette:"blue",onClick:()=>{if(!n)return;let e=new Date,A=`recce-screenshot-${(0,Ap.format)(e,"yyyy-MM-dd-HH-mm-ss")}.png`;(0,AB.default)(n,A),t()},children:"Download"})]}),(0,g.jsx)(Az.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AG.CloseButton,{size:"sm"})})]})})]})})}}}(),B=async()=>{if(!d.current)throw console.error("No node to use for screenshot"),Error("No node to use for screenshot");let A=nX(d.current),s=A.style.overflow,a=A.style.border,c=A.style.borderRadius,h=A.style.backgroundColor,f=A.style.height;try{A.style.overflow="hidden",A.style.border=n?i:"",A.style.borderRadius=n?o:"",A.style.backgroundColor=t??"",A.style.height=`${String(A.offsetHeight)}px`;let s=document.createElement("style");document.head.appendChild(s),s.sheet?.insertRule("body > div:last-child img { display: inline-block; }"),u("loading");let a="html2canvas"===e?await (0,nW.default)(A,{logging:!1,backgroundColor:null,ignoreElements:l}):await nz(A,{filter:l?e=>!l(e):void 0});s.remove();let c=r?document.createElement("canvas"):a;if(r){c.width=a.width+80,c.height=a.height+80;let e=c.getContext("2d");if(e)e.shadowColor="rgba(0, 0, 0, 0.5)",e.shadowBlur=20,e.shadowOffsetX=10,e.shadowOffsetY=10,e.drawImage(a,40,40);else throw console.error("Error getting canvas context"),Error("Error getting canvas context to add shadow effect")}let d=await fetch(c.toDataURL());return await d.blob()}catch(e){throw console.error("Error converting to image",e),e}finally{A.style.overflow=s,A.style.border=a,A.style.borderRadius=c,A.style.backgroundColor=h,A.style.height=f}};return{status:c,isLoading:"loading"===c,isErrored:"error"===c,isSuccess:"success"===c,copyToClipboard:async()=>{try{await navigator.clipboard.write([new ClipboardItem({[`image/${A}`]:B()})]),u("success"),s&&s()}catch(e){"ClipboardItem is not defined"===e.message?(f(await B()),h(),u("success")):(u("error"),console.error("Error copying to clipboard",e),a&&a(e))}},ImageDownloadModal:p,ref:d}}function nq(e){let{successToast:A,failToast:t}=n$(),{isLoading:n,copyToClipboard:r,ImageDownloadModal:i,ref:o}=nJ({imageType:"png",shadowEffect:!0,backgroundColor:e?.backgroundColor??null,onSuccess:()=>{A("Copied the query result as an image to clipboard")},onError:e=>{console.error("Error taking screenshot",e),t("Failed to copy image to clipboard",e)}}),s=(0,E.useCallback)(()=>{if(o.current){let e=nX(o.current);e.style.boxShadow="rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px",e.style.transition="box-shadow 0.5s ease-in-out"}},[o]),a=(0,E.useCallback)(()=>{o.current&&(nX(o.current).style.boxShadow="")},[o]),l=(0,E.useCallback)(async()=>{o.current?(await r(),nX(o.current).style.boxShadow=""):t("Failed to copy image to clipboard","No content to copy")},[o,r,t]);return{ref:o,CopyToClipboardButton:function({imageType:e="png",...A}){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(AV.Button,{size:"sm",style:{position:"absolute",bottom:"16px",right:"16px"},loading:n,onMouseEnter:s,onMouseLeave:a,onClick:l,children:[(0,g.jsx)(AX.PiCopy,{})," Copy to Clipboard"]}),(0,g.jsx)(i,{})]})},onMouseEnter:s,onMouseLeave:a,onCopyToClipboard:l}}function nZ(){return{markedAsApprovedToast:function(){Am.toaster.create({title:"Marked as approved",type:"success",duration:2e3})}}}var n0=e.i(72230);let n1=e=>{let A,[t,n]=(0,E.useState)(!1),[r,i]=(0,E.useState)(!1),[,o]=(0,AY.useRunsAggregated)(),{error:s,data:a}=(0,e8.useQuery)({queryKey:AL.cacheKeys.run(e??""),queryFn:async()=>await (0,t5.waitRun)(e??"",2*!!t),enabled:!!e,refetchInterval:!!t&&50,retry:!1}),[l,c]=(0,E.useState)(a),[u,d]=(0,E.useState)(s);(a!==l||s!==u)&&(c(a),d(s),s||a?.result||a?.error?n(!1):a?.status==="running"&&n(!0)),(0,E.useEffect)(()=>{(s||a?.result||a?.error)&&(a?.type==="row_count_diff"||a?.type==="row_count")&&o()},[a,s,o]);let h=(0,E.useCallback)(async()=>{i(!0),e&&await (0,t5.cancelRun)(e)},[e]);return a&&(0,n0.runTypeHasRef)(a.type)&&(A=(0,n0.findByRunType)(a.type).RunResultView),{run:a,isRunning:t,aborting:r,error:s,onCancel:h,RunResultView:A}};var n2=e.i(62801);function n4(e,A){(null==A||A>e.length)&&(A=e.length);for(var t=0,n=Array(A);t<A;t++)n[t]=e[t];return n}function n3(e,A){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);A&&(n=n.filter(function(A){return Object.getOwnPropertyDescriptor(e,A).enumerable})),t.push.apply(t,n)}return t}function n5(e){for(var A=1;A<arguments.length;A++){var t=null!=arguments[A]?arguments[A]:{};A%2?n3(Object(t),!0).forEach(function(A){var n;n=t[A],A in e?Object.defineProperty(e,A,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[A]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):n3(Object(t)).forEach(function(A){Object.defineProperty(e,A,Object.getOwnPropertyDescriptor(t,A))})}return e}function n6(e){return function A(){for(var t=this,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return r.length>=e.length?e.apply(this,r):function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return A.apply(t,[].concat(r,n))}}}function n8(e){return({}).toString.call(e).includes("Object")}function n7(e){return"function"==typeof e}var n9=n6(function(e,A){throw Error(e[A]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),re=function(e,A){return n8(A)||n9("changeType"),Object.keys(A).some(function(A){return!Object.prototype.hasOwnProperty.call(e,A)})&&n9("changeField"),A},rA=function(e){n7(e)||n9("selectorType")},rt=function(e){n7(e)||n8(e)||n9("handlerType"),n8(e)&&Object.values(e).some(function(e){return!n7(e)})&&n9("handlersType")},rn=function(e){e||n9("initialIsRequired"),n8(e)||n9("initialType"),Object.keys(e).length||n9("initialContent")};function rr(e,A){return n7(A)?A(e.current):A}function ri(e,A){return e.current=n5(n5({},e.current),A),A}function ro(e,A,t){return n7(A)?A(e.current):Object.keys(t).forEach(function(t){var n;return null==(n=A[t])?void 0:n.call(A,e.current[t])}),t}var rs={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},ra=(u=function(e,A){throw Error(e[A]||e.default)},function e(){for(var A=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.length>=u.length?u.apply(this,n):function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return e.apply(A,[].concat(n,r))}})(rs),rl=function(){for(var e=arguments.length,A=Array(e),t=0;t<e;t++)A[t]=arguments[t];return function(e){return A.reduceRight(function(e,A){return A(e)},e)}},rc={type:"cancelation",msg:"operation is manually canceled"};function ru(e){var A=!1,t=new Promise(function(t,n){e.then(function(e){return A?n(rc):t(e)}),e.catch(n)});return t.cancel=function(){return A=!0},t}var rd=function(e){if(Array.isArray(e))return e}(d=({create:function(e){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rn(e),rt(A);var t={current:e},n=n6(ro)(t,A),r=n6(ri)(t),i=n6(re)(e),o=n6(rr)(t);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return rA(e),e(t.current)},function(e){(function(){for(var e=arguments.length,A=Array(e),t=0;t<e;t++)A[t]=arguments[t];return function(e){return A.reduceRight(function(e,A){return A(e)},e)}})(n,r,i,o)(e)}]}}).create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.54.0/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e,A){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,o,s=[],a=!0,l=!1;try{i=(t=t.call(e)).next,!1;for(;!(a=(n=i.call(t)).done)&&(s.push(n.value),2!==s.length);a=!0);}catch(e){l=!0,r=e}finally{try{if(!a&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(l)throw r}}return s}}(d,2)||function(e,A){if(e){if("string"==typeof e)return n4(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n4(e,2):void 0}}(d,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),rh=rd[0],rf=rd[1];function rg(e){return document.body.appendChild(e)}function rp(e){var A,t,n=rh(function(e){return{config:e.config,reject:e.reject}}),r=(A="".concat(n.config.paths.vs,"/loader.js"),t=document.createElement("script"),A&&(t.src=A),t);return r.onload=function(){return e()},r.onerror=n.reject,r}function rB(){var e=rh(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),A=window.require;A.config(e.config),A(["vs/editor/editor.main"],function(A){var t=A.m;rm(t),e.resolve(t)},function(A){e.reject(A)})}function rm(e){rh().monaco||rf({monaco:e})}var rw=new Promise(function(e,A){return rf({resolve:e,reject:A})}),ry=function(){var e=rh(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(rf({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),ru(rw);if(window.monaco&&window.monaco.editor)return rm(window.monaco),e.resolve(window.monaco),ru(rw);rl(rg,rp)(rB)}return ru(rw)},rx={display:"flex",position:"relative",textAlign:"initial"},rC={width:"100%"},rb={display:"none"},rv={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"},rQ=function({children:e}){return E.default.createElement("div",{style:rv},e)},rF=(0,E.memo)(function({width:e,height:A,isEditorReady:t,loading:n,_ref:r,className:i,wrapperProps:o}){return E.default.createElement("section",{style:{...rx,width:e,height:A},...o},!t&&E.default.createElement(rQ,null,n),E.default.createElement("div",{ref:r,style:{...rC,...!t&&rb},className:i}))}),rU=function(e){(0,E.useEffect)(e,[])},rE=function(e,A,t=!0){let n=(0,E.useRef)(!0);(0,E.useEffect)(n.current||!t?()=>{n.current=!1}:e,A)};function rI(){}function rS(e,A,t,n){var r,i,o,s,a,l;return r=e,i=n,r.editor.getModel(rk(r,i))||(o=e,s=A,a=t,l=n,o.editor.createModel(s,a,l?rk(o,l):void 0))}function rk(e,A){return e.Uri.parse(A)}var rj=(0,E.memo)(function({original:e,modified:A,language:t,originalLanguage:n,modifiedLanguage:r,originalModelPath:i,modifiedModelPath:o,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:a=!1,theme:l="light",loading:c="Loading...",options:u={},height:d="100%",width:h="100%",className:f,wrapperProps:g={},beforeMount:p=rI,onMount:B=rI}){let[m,w]=(0,E.useState)(!1),[y,x]=(0,E.useState)(!0),C=(0,E.useRef)(null),b=(0,E.useRef)(null),v=(0,E.useRef)(null),Q=(0,E.useRef)(B),F=(0,E.useRef)(p),U=(0,E.useRef)(!1);rU(()=>{let e=ry();return e.then(e=>(b.current=e)&&x(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>{let A;return C.current?(A=C.current?.getModel(),void(s||A?.original?.dispose(),a||A?.modified?.dispose(),C.current?.dispose())):e.cancel()}}),rE(()=>{if(C.current&&b.current){let A=C.current.getOriginalEditor(),r=rS(b.current,e||"",n||t||"text",i||"");r!==A.getModel()&&A.setModel(r)}},[i],m),rE(()=>{if(C.current&&b.current){let e=C.current.getModifiedEditor(),n=rS(b.current,A||"",r||t||"text",o||"");n!==e.getModel()&&e.setModel(n)}},[o],m),rE(()=>{let e=C.current.getModifiedEditor();e.getOption(b.current.editor.EditorOption.readOnly)?e.setValue(A||""):A!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:A||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[A],m),rE(()=>{C.current?.getModel()?.original.setValue(e||"")},[e],m),rE(()=>{let{original:e,modified:A}=C.current.getModel();b.current.editor.setModelLanguage(e,n||t||"text"),b.current.editor.setModelLanguage(A,r||t||"text")},[t,n,r],m),rE(()=>{b.current?.editor.setTheme(l)},[l],m),rE(()=>{C.current?.updateOptions(u)},[u],m);let I=(0,E.useCallback)(()=>{if(!b.current)return;F.current(b.current);let s=rS(b.current,e||"",n||t||"text",i||""),a=rS(b.current,A||"",r||t||"text",o||"");C.current?.setModel({original:s,modified:a})},[t,A,r,e,n,i,o]),S=(0,E.useCallback)(()=>{!U.current&&v.current&&(C.current=b.current.editor.createDiffEditor(v.current,{automaticLayout:!0,...u}),I(),b.current?.editor.setTheme(l),w(!0),U.current=!0)},[u,l,I]);return(0,E.useEffect)(()=>{m&&Q.current(C.current,b.current)},[m]),(0,E.useEffect)(()=>{y||m||S()},[y,m,S]),E.default.createElement(rF,{width:h,height:d,isEditorReady:m,loading:c,_ref:v,className:f,wrapperProps:g})}),rH=function(e){let A=(0,E.useRef)();return(0,E.useEffect)(()=>{A.current=e},[e]),A.current},rD=new Map,rL=(0,E.memo)(function({defaultValue:e,defaultLanguage:A,defaultPath:t,value:n,language:r,path:i,theme:o="light",line:s,loading:a="Loading...",options:l={},overrideServices:c={},saveViewState:u=!0,keepCurrentModel:d=!1,width:h="100%",height:f="100%",className:g,wrapperProps:p={},beforeMount:B=rI,onMount:m=rI,onChange:w,onValidate:y=rI}){let[x,C]=(0,E.useState)(!1),[b,v]=(0,E.useState)(!0),Q=(0,E.useRef)(null),F=(0,E.useRef)(null),U=(0,E.useRef)(null),I=(0,E.useRef)(m),S=(0,E.useRef)(B),k=(0,E.useRef)(),j=(0,E.useRef)(n),H=rH(i),D=(0,E.useRef)(!1),L=(0,E.useRef)(!1);rU(()=>{let e=ry();return e.then(e=>(Q.current=e)&&v(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>F.current?void(k.current?.dispose(),d?u&&rD.set(i,F.current.saveViewState()):F.current.getModel()?.dispose(),F.current.dispose()):e.cancel()}),rE(()=>{let o=rS(Q.current,e||n||"",A||r||"",i||t||"");o!==F.current?.getModel()&&(u&&rD.set(H,F.current?.saveViewState()),F.current?.setModel(o),u&&F.current?.restoreViewState(rD.get(i)))},[i],x),rE(()=>{F.current?.updateOptions(l)},[l],x),rE(()=>{F.current&&void 0!==n&&(F.current.getOption(Q.current.editor.EditorOption.readOnly)?F.current.setValue(n):n!==F.current.getValue()&&(L.current=!0,F.current.executeEdits("",[{range:F.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),F.current.pushUndoStop(),L.current=!1))},[n],x),rE(()=>{let e=F.current?.getModel();e&&r&&Q.current?.editor.setModelLanguage(e,r)},[r],x),rE(()=>{void 0!==s&&F.current?.revealLine(s)},[s],x),rE(()=>{Q.current?.editor.setTheme(o)},[o],x);let R=(0,E.useCallback)(()=>{if(!(!U.current||!Q.current)&&!D.current){S.current(Q.current);let a=i||t,d=rS(Q.current,n||e||"",A||r||"",a||"");F.current=Q.current?.editor.create(U.current,{model:d,automaticLayout:!0,...l},c),u&&F.current.restoreViewState(rD.get(a)),Q.current.editor.setTheme(o),void 0!==s&&F.current.revealLine(s),C(!0),D.current=!0}},[e,A,t,n,r,i,l,c,u,o,s]);return(0,E.useEffect)(()=>{x&&I.current(F.current,Q.current)},[x]),(0,E.useEffect)(()=>{b||x||R()},[b,x,R]),j.current=n,(0,E.useEffect)(()=>{x&&w&&(k.current?.dispose(),k.current=F.current?.onDidChangeModelContent(e=>{L.current||w(F.current.getValue(),e)}))},[x,w]),(0,E.useEffect)(()=>{if(x){let e=Q.current.editor.onDidChangeMarkers(e=>{let A=F.current.getModel()?.uri;if(A&&e.find(e=>e.path===A.path)){let e=Q.current.editor.getModelMarkers({resource:A});y?.(e)}});return()=>{e?.dispose()}}return()=>{}},[x,y]),E.default.createElement(rF,{width:h,height:f,isEditorReady:x,loading:a,_ref:U,className:g,wrapperProps:p})});function rR(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M160 80c0-26.5 21.5-48 48-48l32 0c26.5 0 48 21.5 48 48l0 352c0 26.5-21.5 48-48 48l-32 0c-26.5 0-48-21.5-48-48l0-352zM0 272c0-26.5 21.5-48 48-48l32 0c26.5 0 48 21.5 48 48l0 160c0 26.5-21.5 48-48 48l-32 0c-26.5 0-48-21.5-48-48L0 272zM368 96l32 0c26.5 0 48 21.5 48 48l0 288c0 26.5-21.5 48-48 48l-32 0c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48z"},child:[]}]})(e)}function rT(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M418.4 157.9c35.3-8.3 61.6-40 61.6-77.9c0-44.2-35.8-80-80-80c-43.4 0-78.7 34.5-80 77.5L136.2 151.1C121.7 136.8 101.9 128 80 128c-44.2 0-80 35.8-80 80s35.8 80 80 80c12.2 0 23.8-2.7 34.1-7.6L259.7 407.8c-2.4 7.6-3.7 15.8-3.7 24.2c0 44.2 35.8 80 80 80s80-35.8 80-80c0-27.7-14-52.1-35.4-66.4l37.8-207.7zM156.3 232.2c2.2-6.9 3.5-14.2 3.7-21.7l183.8-73.5c3.6 3.5 7.4 6.7 11.6 9.5L317.6 354.1c-5.5 1.3-10.8 3.1-15.8 5.5L156.3 232.2z"},child:[]}]})(e)}function rM(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm320 96c0-26.9-16.5-49.9-40-59.3L280 88c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 204.7c-23.5 9.5-40 32.5-40 59.3c0 35.3 28.7 64 64 64s64-28.7 64-64zM144 176a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm-16 80a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm288 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM400 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"},child:[]}]})(e)}function rO(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"},child:[]}]})(e)}e.s([],77444),e.i(77444);let{withProvider:rN,withContext:rP,useStyles:r_,PropsProvider:rK}=(0,eA.createSlotRecipeContext)({key:"list"}),rV=rN("ul","root",{defaultProps:{role:"list"}}),rG=rP("li","item"),rz=rP("span","indicator");e.s(["Indicator",()=>rz,"Item",()=>rG,"Root",()=>rV,"RootPropsProvider",()=>rK],90843);var rW=e.i(90843),rW=rW;e.s([],94680),e.i(94680);let{StylesProvider:r$,ClassNamesProvider:rX,useRecipeResult:rY,withContext:rJ,useStyles:rq,PropsProvider:rZ}=(0,eA.createSlotRecipeContext)({key:"table"}),r0=(0,E.forwardRef)(function({native:e,...A},t){let{styles:n,props:r,classNames:i}=rY(A),o=(0,E.useMemo)(()=>e?{...n.root,"& thead":n.header,"& tbody":n.body,"& tfoot":n.footer,"& thead th":n.columnHeader,"& tr":n.row,"& td":n.cell,"& caption":n.caption}:n.root,[n,e]);return(0,g.jsx)(rX,{value:i,children:(0,g.jsx)(r$,{value:n,children:(0,g.jsx)(I.chakra.table,{ref:t,...r,css:[o,A.css],className:(0,S.cx)(i?.root,A.className)})})})}),r1=rJ("tr","row"),r2=(0,I.chakra)("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}}),r4=rJ("thead","header"),r3=rJ("tfoot","footer"),r5=rJ("th","columnHeader"),r6=rJ("td","cell"),r8=rJ("caption","caption",{defaultProps:{captionSide:"bottom"}}),r7=rJ("tbody","body"),r9=rJ("colgroup"),ie=rJ("col");e.s(["Body",()=>r7,"Caption",()=>r8,"Cell",()=>r6,"Column",()=>ie,"ColumnGroup",()=>r9,"ColumnHeader",()=>r5,"Footer",()=>r3,"Header",()=>r4,"Root",()=>r0,"RootPropsProvider",()=>rZ,"Row",()=>r1,"ScrollArea",()=>r2],98268);var iA=e.i(98268),iA=iA;function it(e,A){let t,n,r=()=>(0,tK.constructFrom)(A?.in,NaN),i=A?.additionalDigits??2,o=function(e){let A,t={},n=e.split(ir);if(n.length>2)return t;if(/:/.test(n[0])?A=n[0]:(t.date=n[0],A=n[1],ii.test(t.date)&&(t.date=e.split(ii)[0],A=e.substr(t.date.length,e.length))),A){let e=io.exec(A);e?(t.time=A.replace(e[1],""),t.timezone=e[1]):t.time=A}return t}(e);if(o.date){let e=function(e,A){let t=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+A)+"})|(\\d{2}|[+-]\\d{"+(2+A)+"})$)"),n=e.match(t);if(!n)return{year:NaN,restDateString:""};let r=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:null===i?r:100*i,restDateString:e.slice((n[1]||n[2]).length)}}(o.date,i);t=function(e,A){var t,n,r,i,o,s,a,l,c,u;if(null===A)return new Date(NaN);let d=e.match(is);if(!d)return new Date(NaN);let h=!!d[4],f=ic(d[1]),g=ic(d[2])-1,p=ic(d[3]),B=ic(d[4]),m=ic(d[5])-1;if(h){let e,s;return(t=B,n=m,t>=1&&t<=53&&n>=0&&n<=6)?(r=A,i=B,o=m,(e=new Date(0)).setUTCFullYear(r,0,4),s=e.getUTCDay()||7,e.setUTCDate(e.getUTCDate()+((i-1)*7+o+1-s)),e):new Date(NaN)}{let e=new Date(0);return(s=A,a=g,l=p,a>=0&&a<=11&&l>=1&&l<=(id[a]||(ih(s)?29:28))&&(c=A,(u=f)>=1&&u<=(ih(c)?366:365)))?(e.setUTCFullYear(A,g,Math.max(f,p)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!t||isNaN(+t))return r();let s=+t,a=0;if(o.time&&isNaN(a=function(e){var A,t,n;let r=e.match(ia);if(!r)return NaN;let i=iu(r[1]),o=iu(r[2]),s=iu(r[3]);return(A=i,t=o,n=s,24===A?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&A>=0&&A<25)?i*tY.millisecondsInHour+o*tY.millisecondsInMinute+1e3*s:NaN}(o.time)))return r();if(o.timezone){if(isNaN(n=function(e){var A;if("Z"===e)return 0;let t=e.match(il);if(!t)return 0;let n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return(A=i)>=0&&A<=59?n*(r*tY.millisecondsInHour+i*tY.millisecondsInMinute):NaN}(o.timezone)))return r()}else{let e=new Date(s+a),t=(0,t$.toDate)(0,A?.in);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return(0,t$.toDate)(s+a+n,A?.in)}let ir=/[T ]/,ii=/[Z ]/i,io=/([Z+-].*)$/,is=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ia=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,il=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ic(e){return e?parseInt(e):1}function iu(e){return e&&parseFloat(e.replace(",","."))||0}let id=[31,null,31,30,31,30,31,31,30,31,30,31];function ih(e){return e%400==0||e%4==0&&e%100!=0}var ig=e.i(20686),ip=e.i(10280);function iB(e){let A=it(e);return(0,Ap.format)(A,"yyyy-MM-dd'T'HH:mm:ss")}function im(e){return tJ(it(e),new Date,{addSuffix:!0})}function iw(e){let A=new Set,t=new Set;if(e?.nodes)for(let n of Object.values(e.nodes))n.data.data.base?.schema&&A.add(n.data.data.base.schema),n.data.data.current?.schema&&t.add(n.data.data.current.schema);return[A,t]}function iy(e){return Object.values(e).every(e=>null===e)?[(0,g.jsx)(v.Flex,{ml:"10px",children:"No information"},"no info")]:Object.entries(e).filter(([e,A])=>"url"!==e&&null!=A).map(([e,A])=>(0,g.jsxs)(rW.Item,{ml:"10px",children:[e,": ",A]},e))}function ix(){let{envInfo:e,reviewMode:A,lineageGraph:t}=(0,AY.useLineageGraphContext)(),{open:n,onOpen:r,onClose:i}=(0,A$.useDisclosure)(),o=e?.git,s=e?.pullRequest,a={...o,...s},l=e?.dbt?.base,c=e?.dbt?.current,u=l?.generated_at?iB(l.generated_at):"",d=c?.generated_at?iB(c.generated_at):"",h="",f="";l&&(h=l.generated_at?im(l.generated_at):""),c&&(f=c.generated_at?im(c.generated_at):"");let[p,B]=iw(t);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Aw.Tooltip,{content:"Environment Info",positioning:{placement:"bottom-end"},children:(0,g.jsxs)("div",{className:"flex items-center hover:cursor-pointer hover:text-black",onClick:r,children:[(0,g.jsxs)("div",{className:"hidden text-sm lg:flex lg:flex-col",children:[(0,g.jsxs)("div",{className:"flex gap-1",children:[(0,g.jsx)(e6.Text,{as:"span",color:"envBase",className:"no-track-pii-safe max-w-32 truncate",children:Array.from(p).join(", ")})," ","(",h,")"]}),(0,g.jsxs)("div",{className:"flex gap-1",children:[(0,g.jsx)(e6.Text,{as:"span",color:"envCurrent",className:"no-track-pii-safe max-w-32 truncate",children:Array.from(B).join(", ")})," ","(",f,")"]})]}),(0,g.jsx)(Ag.IconButton,{size:"sm",variant:"plain","aria-label":"Environment Info",children:(0,g.jsx)(U.Icon,{verticalAlign:"middle",as:Ab.IconInfo,boxSize:"16px"})})]})}),(0,g.jsx)(Az.Dialog.Root,{open:n,onOpenChange:i,size:"lg",children:(0,g.jsxs)(AW.Portal,{children:[(0,g.jsx)(Az.Dialog.Backdrop,{}),(0,g.jsx)(Az.Dialog.Positioner,{children:(0,g.jsxs)(Az.Dialog.Content,{children:[(0,g.jsx)(Az.Dialog.Header,{children:(0,g.jsx)(Az.Dialog.Title,{children:"Environment Information"})}),(0,g.jsx)(Az.Dialog.Body,{children:(0,g.jsxs)(v.Flex,{direction:"column",gap:"5px",children:[A?(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(v.Flex,{justifyContent:"left",gap:"5px",direction:"column",children:[(0,g.jsx)(Q.Heading,{size:"sm",children:"Review Information"}),(0,g.jsxs)(rW.Root,{children:[a.url&&(0,g.jsxs)(rW.Item,{ml:"10px",children:["url:"," ",(0,g.jsxs)(j.Link,{href:a.url,color:"blue.500",target:"_blank",children:[a.url," ",(0,g.jsx)(ip.LuExternalLink,{})]})]}),!(0,ig.default)(a)&&iy(a)]})]})}):(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(v.Flex,{justifyContent:"left",gap:"5px",direction:"column",children:[(0,g.jsx)(Q.Heading,{size:"sm",children:"Dev Information"}),(0,g.jsx)(rW.Root,{children:o&&iy(o)})]})}),(0,g.jsx)(AF.Separator,{}),e?.adapterType==="dbt"&&(0,g.jsxs)(v.Flex,{justifyContent:"left",gap:"5px",direction:"column",children:[(0,g.jsx)(Q.Heading,{size:"sm",children:"DBT"}),(0,g.jsx)(iA.ScrollArea,{borderWidth:"1px",height:"30rem",children:(0,g.jsxs)(iA.Root,{size:"sm",variant:"line",stickyHeader:!0,children:[(0,g.jsx)(iA.Header,{children:(0,g.jsxs)(iA.Row,{children:[(0,g.jsx)(iA.ColumnHeader,{}),(0,g.jsx)(iA.ColumnHeader,{children:"base"}),(0,g.jsx)(iA.ColumnHeader,{children:"current"})]})}),(0,g.jsxs)(iA.Body,{children:[(0,g.jsxs)(iA.Row,{children:[(0,g.jsx)(iA.Cell,{children:"schema"}),(0,g.jsx)(iA.Cell,{className:"no-track-pii-safe",children:Array.from(p).map(e=>(0,g.jsx)(Aw.Tooltip,{content:e,positioning:{placement:"bottom"},children:(0,g.jsx)("div",{className:"max-w-72 truncate",children:e})},e))}),(0,g.jsx)(iA.Cell,{className:"no-track-pii-safe",children:Array.from(B).map(e=>(0,g.jsx)(Aw.Tooltip,{content:e,positioning:{placement:"bottom"},children:(0,g.jsx)("div",{className:"max-w-72 truncate",children:e})},e))})]}),(0,g.jsxs)(iA.Row,{children:[(0,g.jsx)(iA.Cell,{children:"version"}),(0,g.jsx)(iA.Cell,{children:l?.dbt_version}),(0,g.jsx)(iA.Cell,{children:c?.dbt_version})]}),(0,g.jsxs)(iA.Row,{children:[(0,g.jsx)(iA.Cell,{children:"timestamp"}),(0,g.jsx)(iA.Cell,{children:u}),(0,g.jsx)(iA.Cell,{children:d})]})]})]})})]}),e?.adapterType==="sqlmesh"&&(0,g.jsxs)(v.Flex,{justifyContent:"left",gap:"5px",direction:"column",children:[(0,g.jsx)(Q.Heading,{size:"sm",children:"SQLMesh"}),(0,g.jsx)(iA.ScrollArea,{borderWidth:"1px",height:"30rem",children:(0,g.jsxs)(iA.Root,{variant:"line",stickyHeader:!0,children:[(0,g.jsx)(iA.Header,{children:(0,g.jsxs)(iA.Row,{children:[(0,g.jsx)(iA.ColumnHeader,{}),(0,g.jsx)(iA.ColumnHeader,{children:"base"}),(0,g.jsx)(iA.ColumnHeader,{children:"current"})]})}),(0,g.jsx)(iA.Body,{children:(0,g.jsxs)(iA.Row,{children:[(0,g.jsx)(iA.Cell,{children:"Environment"}),(0,g.jsx)(iA.Cell,{className:"no-track-pii-safe",children:e.sqlmesh?.base_env}),(0,g.jsx)(iA.Cell,{className:"no-track-pii-safe",children:e.sqlmesh?.current_env})]})})]})})]})]})}),(0,g.jsx)(Az.Dialog.Footer,{children:(0,g.jsx)(AV.Button,{colorPalette:"blue",mr:3,onClick:i,children:"Close"})}),(0,g.jsx)(Az.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AG.CloseButton,{size:"sm"})})]})})]})})]})}function iC({value:e,onChange:A,onRun:t,onRunBase:n,onRunDiff:r,label:i,CustomEditor:o,options:s={},manifestData:a,schemas:l,...c}){let{featureToggles:u}=(0,AC.useRecceInstanceContext)(),d="";return a&&(d=a.generated_at?im(a.generated_at):""),(0,E.useEffect)(()=>{let e=e=>{let A=document.querySelector(".monaco-editor");A?.contains(document.activeElement)&&" "===e.key&&e.stopPropagation()};return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}},[]),(0,g.jsxs)(g.Fragment,{children:[(i??t??n)&&(0,g.jsxs)(v.Flex,{backgroundColor:"#EDF2F880",height:"40px",minH:"40px",fontSize:"14px",align:"center",margin:"0",padding:"0px 16px",flex:"0 0 40px",children:[(0,g.jsx)(e6.Text,{as:"strong",className:"no-track-pii-safe",children:i?i.toUpperCase():""}),a&&(0,g.jsxs)("span",{className:"ml-1",children:["(",l&&(0,g.jsxs)("span",{className:"no-track-pii-safe",children:[l,", "]}),(0,g.jsx)("span",{children:d}),")"]}),(0,g.jsx)(ef.Spacer,{}),(t??n)&&(0,g.jsxs)(AV.Button,{size:"xs",variant:"outline",onClick:t??n,backgroundColor:"white",padding:"6px 12px",disabled:u.disableDatabaseQuery,children:[(0,g.jsx)(rO,{})," Run Query"]})]}),o??(0,g.jsx)(rL,{className:"no-track-pii-safe",language:"sql",theme:"vs",value:e,onChange:e=>{void 0!==e&&A&&A(e)},onMount:(e,A)=>{e.addCommand(A.KeyCode.Space,()=>{let t=e.getPosition();t&&(console.log("Inserting space at",t),e.executeEdits("",[{range:new A.Range(t.lineNumber,t.column,t.lineNumber,t.column),text:" ",forceMoveMarkers:!0}]))},"!suggestWidgetVisible && !findWidgetVisible"),t&&e.addCommand(A.KeyMod.CtrlCmd|A.KeyCode.Enter,t),n&&e.addCommand(A.KeyMod.Alt|A.KeyCode.Enter,n),r&&e.addCommand(A.KeyMod.CtrlCmd|A.KeyMod.Shift|A.KeyCode.Enter,r)},options:{domReadOnly:!1,readOnly:!1,extraEditorClassName:"no-track-pii-safe max-h-dvh",tabSize:2,fontSize:16,lineNumbers:"on",automaticLayout:!0,minimap:{enabled:!1},wordWrap:"on",wrappingIndent:"indent",...s}})]})}function ib({value:e,baseValue:A,onChange:t,onChangeBase:n,onRun:r,onRunBase:i,onRunDiff:o,options:s={},labels:a,SetupGuide:l,...c}){let u,d,h=a?a[0]:"Base",f=a?a[1]:"Current",{envInfo:p,lineageGraph:B}=(0,AY.useLineageGraphContext)();p?.dbt?.base&&p.dbt.current&&(u=p.dbt.base,d=p.dbt.current);let[m,w]=iw(B);return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(v.Flex,{height:"100%",gap:0,children:[(0,g.jsx)(n2.Stack,{height:"100%",width:"50%",gap:0,borderRight:"1px",borderColor:"#D4DBE4",children:(0,g.jsx)(iC,{label:h,value:A??"",onChange:n,onRunBase:i,options:s,CustomEditor:l,manifestData:u??void 0,schemas:Array.from(m).join(", "),...c})}),(0,g.jsx)(n2.Stack,{height:"100%",width:"50%",gap:0,children:(0,g.jsx)(iC,{label:f,value:e,onChange:t,onRun:r,options:s,manifestData:d??void 0,schemas:Array.from(w).join(", "),...c})})]})})}e.s([],43326),e.i(43326);let[iv,iQ]=(0,e.i(90577).createContext)({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:"<Alert />"}),{withProvider:iF,withContext:iU,useStyles:iE,PropsProvider:iI}=(0,eA.createSlotRecipeContext)({key:"alert"}),iS=iF("div","root",{forwardAsChild:!0,wrapElement:(e,A)=>(0,g.jsx)(iv,{value:{status:A.status||"info"},children:e})}),ik=iU("div","title"),ij=iU("div","description"),iH=iU("div","content"),iD={info:tw.InfoIcon,warning:tw.WarningIcon,success:tw.CheckCircleIcon,error:tw.WarningIcon,neutral:tw.InfoIcon},iL=(0,E.forwardRef)(function(e,A){let t=iQ(),n=iE(),r="string"==typeof t.status?iD[t.status]:E.Fragment,{children:i=(0,g.jsx)(r,{}),...o}=e;return(0,g.jsx)(I.chakra.span,{ref:A,...o,css:[n.indicator,e.css],children:i})});e.s(["Content",()=>iH,"Description",()=>ij,"Indicator",()=>iL,"Root",()=>iS,"RootPropsProvider",()=>iI,"Title",()=>ik],45179);var iR=e.i(45179),iR=iR;e.s([],22577),e.i(22577);var ee=ee;let{withProvider:iT,withContext:iM,useStyles:iO,PropsProvider:iN}=(0,eA.createSlotRecipeContext)({key:"progressCircle"}),iP=iT(ee.RootProvider,"root",{forwardAsChild:!0}),i_=iT(ee.Root,"root",{forwardAsChild:!0}),iK=iM(ee.Label,"label",{forwardAsChild:!0}),iV=iM(ee.Circle,"circle",{forwardAsChild:!0}),iG=iM(ee.CircleTrack,"circleTrack",{forwardAsChild:!0}),iz=iM(ee.CircleRange,"circleRange",{forwardAsChild:!0}),iW=iM(ee.ValueText,"valueText",{forwardAsChild:!0});ee.Context,e.s(["Circle",()=>iV,"Label",()=>iK,"PropsProvider",()=>iN,"Range",()=>iz,"Root",()=>i_,"RootProvider",()=>iP,"Track",()=>iG,"ValueText",()=>iW],25741);var i$=e.i(25741),i$=i$;let iX="10.25.0",iY=globalThis;function iJ(){return iq(iY),iY}function iq(e){let A=e.__SENTRY__=e.__SENTRY__||{};return A.version=A.version||iX,A[iX]=A[iX]||{}}function iZ(e,A,t=iY){let n=t.__SENTRY__=t.__SENTRY__||{},r=n[iX]=n[iX]||{};return r[e]||(r[e]=A())}let i0="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,i1=Object.prototype.toString,i2={};function i4(e){if(!("console"in iY))return e();let A=iY.console,t={},n=Object.keys(i2);n.forEach(e=>{let n=i2[e];t[e]=A[e],A[e]=n});try{return e()}finally{n.forEach(e=>{A[e]=t[e]})}}function i3(e,...A){i0&&function(){return i0?iZ("loggerSettings",()=>({enabled:!1})):{enabled:!1}}().enabled&&i4(()=>{iY.console[e](`Sentry Logger [${e}]:`,...A)})}let i5=function(...e){i3("log",...e)},i6=function(...e){i3("warn",...e)},i8=function(...e){i3("error",...e)};function i7(e=iY.crypto||iY.msCrypto){try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"")}catch{}return A||(A="10000000100040008000100000000000"),A.replace(/[018]/g,e=>(e^(15&16*Math.random())>>e/4).toString(16))}function i9(){return Date.now()/1e3}let oe="_sentrySpan";function oA(e,A){if(A)try{Object.defineProperty(e,oe,{value:A,writable:!0,configurable:!0})}catch{i0&&i5(`Failed to add non-enumerable property "${oe}" to object`,e)}else delete e[oe]}class ot{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:i7(),sampleRand:Math.random()}}clone(){let e=new ot;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,oA(e,this[oe]),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&function(e,A={}){if(A.user&&(!e.ipAddress&&A.user.ip_address&&(e.ipAddress=A.user.ip_address),e.did||A.did||(e.did=A.user.id||A.user.email||A.user.username)),e.timestamp=A.timestamp||(t??(t=function(){let{performance:e}=iY;if(!e?.now||!e.timeOrigin)return i9;let A=e.timeOrigin;return()=>(A+e.now())/1e3}()))(),A.abnormal_mechanism&&(e.abnormal_mechanism=A.abnormal_mechanism),A.ignoreDuration&&(e.ignoreDuration=A.ignoreDuration),A.sid&&(e.sid=32===A.sid.length?A.sid:i7()),void 0!==A.init&&(e.init=A.init),!e.did&&A.did&&(e.did=`${A.did}`),"number"==typeof A.started&&(e.started=A.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof A.duration)e.duration=A.duration;else{let A=e.timestamp-e.started;e.duration=A>=0?A:0}A.release&&(e.release=A.release),A.environment&&(e.environment=A.environment),!e.ipAddress&&A.ipAddress&&(e.ipAddress=A.ipAddress),!e.userAgent&&A.userAgent&&(e.userAgent=A.userAgent),"number"==typeof A.errors&&(e.errors=A.errors),A.status&&(e.status=A.status)}(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,A){return this._tags={...this._tags,[e]:A},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,A){return this._extra={...this._extra,[e]:A},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,A){return null===A?delete this._contexts[e]:this._contexts[e]=A,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let A="function"==typeof e?e(this):e,{tags:t,extra:n,user:r,contexts:i,level:o,fingerprint:s=[],propagationContext:a}=(A instanceof ot?A.getScopeData():"[object Object]"===i1.call(A)?e:void 0)||{};return this._tags={...this._tags,...t},this._extra={...this._extra,...n},this._contexts={...this._contexts,...i},r&&Object.keys(r).length&&(this._user=r),o&&(this._level=o),s.length&&(this._fingerprint=s),a&&(this._propagationContext=a),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,oA(this,void 0),this._attachments=[],this.setPropagationContext({traceId:i7(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,A){let t="number"==typeof A?A:100;if(t<=0)return this;let n={timestamp:i9(),...e,message:e.message?function(e,A=0){return"string"!=typeof e||0===A||e.length<=A?e:`${e.slice(0,A)}...`}(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>t&&(this._breadcrumbs=this._breadcrumbs.slice(-t),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:this[oe]}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=function e(A,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(A&&0===Object.keys(t).length)return A;let r={...A};for(let A in t)Object.prototype.hasOwnProperty.call(t,A)&&(r[A]=e(r[A],t[A],n-1));return r}(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,A){let t=A?.event_id||i7();if(!this._client)return i0&&i6("No client configured on scope - will not capture exception!"),t;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...A,event_id:t},this),t}captureMessage(e,A,t){let n=t?.event_id||i7();if(!this._client)return i0&&i6("No client configured on scope - will not capture message!"),n;let r=Error(e);return this._client.captureMessage(e,A,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureEvent(e,A){let t=A?.event_id||i7();return this._client?this._client.captureEvent(e,{...A,event_id:t},this):i0&&i6("No client configured on scope - will not capture event!"),t}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}class on{constructor(e,A){let t,n;t=e||new ot,n=A||new ot,this._stack=[{scope:t}],this._isolationScope=n}withScope(e){var A;let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return(A=t,A?.then&&"function"==typeof A.then)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function or(){let e=iq(iJ());return e.stack=e.stack||new on(iZ("defaultCurrentScope",()=>new ot),iZ("defaultIsolationScope",()=>new ot))}function oi(e){return or().withScope(e)}function oo(e,A){let t=or();return t.withScope(()=>(t.getStackTop().scope=e,A(e)))}function os(e){return or().withScope(()=>e(or().getIsolationScope()))}function oa(e){let A=iq(e);return A.acs?A.acs:{withIsolationScope:os,withScope:oi,withSetScope:oo,withSetIsolationScope:(e,A)=>os(A),getCurrentScope:()=>or().getScope(),getIsolationScope:()=>or().getIsolationScope()}}function ol(){return oa(iJ()).getCurrentScope()}function oc(...e){let A=oa(iJ());if(2===e.length){let[t,n]=e;return t?A.withSetScope(t,n):A.withScope(n)}return A.withScope(e[0])}function ou(){return ol().getClient()}let od=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function oh(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");let of=["user","level","extra","contexts","tags","fingerprint","propagationContext"],og="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function op(e={}){let A=iY.document,t=A?.head||A?.body;if(!t){og&&i8("[showReportDialog] Global document not defined");return}let n=ol(),r=ou(),i=r?.getDsn();if(!i){og&&i8("[showReportDialog] DSN not configured");return}let o={...e,user:{...n.getUser(),...e.user},eventId:e.eventId||oa(iJ()).getIsolationScope().lastEventId()},s=iY.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(e,A){let t,n,r=function(e){let A="string"==typeof e?function(e){let A=od.exec(e);if(!A)return void i4(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[t,n,r="",i="",o="",s=""]=A.slice(1),a="",l=s,c=l.split("/");if(c.length>1&&(a=c.slice(0,-1).join("/"),l=c.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return oh({host:i,pass:r,path:a,projectId:l,port:o,protocol:t,publicKey:n})}(e):oh(e);if(A&&function(e){if(!i0)return!0;let{port:A,projectId:t,protocol:n}=e;return!["protocol","publicKey","host","projectId"].find(A=>!e[A]&&(i8(`Invalid Sentry Dsn: ${A} missing`),!0))&&(t.match(/^\d+$/)?"http"!==n&&"https"!==n?(i8(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):!(A&&isNaN(parseInt(A,10)))||(i8(`Invalid Sentry Dsn: Invalid port ${A}`),!1):(i8(`Invalid Sentry Dsn: Invalid projectId ${t}`),!1))}(A))return A}(e);if(!r)return"";let i=`${(t=r.protocol?`${r.protocol}:`:"",n=r.port?`:${r.port}`:"",`${t}//${r.host}${n}${r.path?`/${r.path}`:""}/api/`)}embed/error-page/`,o=`dsn=${function(e,A=!1){let{host:t,path:n,pass:r,port:i,projectId:o,protocol:s,publicKey:a}=e;return`${s}://${a}${A&&r?`:${r}`:""}@${t}${i?`:${i}`:""}/${n?`${n}/`:n}${o}`}(r)}`;for(let e in A)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=A.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(e)}=${encodeURIComponent(A[e])}`;return`${i}?${o}`}(i,o);let{onLoad:a,onClose:l}=o;if(a&&(s.onload=a),l){let e=A=>{if("__sentry_reportdialog_closed__"===A.data)try{l()}finally{iY.removeEventListener("message",e)}};iY.addEventListener("message",e)}t.appendChild(s)}var oB=E;let om="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;e.i(5927).default;let ow={componentStack:null,error:null,eventId:null};class oy extends oB.Component{constructor(e){super(e),this.state=ow,this._openFallbackReportDialog=!0;const A=ou();A&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=A.on("afterSendEvent",A=>{!A.type&&this._lastEventId&&A.event_id===this._lastEventId&&op({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,A){let{componentStack:t}=A,{beforeCapture:n,onError:r,showDialog:i,dialogOptions:o}=this.props;oc(s=>{n&&n(s,e,t);let a=function(e,{componentStack:A},t){let n;if(null!==(n=E.version.match(/^([^.]+)/))&&parseInt(n[0])>=17&&function(e){switch(i1.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:var A=e,t=Error;try{return A instanceof t}catch{return!1}}}(e)&&A){let t,n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=A,t=new WeakSet,function e(A,n){if(!t.has(A)){if(A.cause)return t.add(A),e(A.cause,n);A.cause=n}}(e,n)}return oc(n=>(n.setContext("react",{componentStack:A}),ol().captureException(e,function(e){if(e){var A;return(A=e)instanceof ot||"function"==typeof A||Object.keys(e).some(e=>of.includes(e))?{captureContext:e}:e}}(t))))}(e,A,{mechanism:{handled:null!=this.props.handled?this.props.handled:!!this.props.fallback,type:"auto.function.react.error_boundary"}});r&&r(e,t,a),i&&(this._lastEventId=a,this._openFallbackReportDialog&&op({...o,eventId:a})),this.setState({error:e,componentStack:t,eventId:a})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:A,eventId:t}=this.state,{onUnmount:n}=this.props;n&&(this.state===ow?n(null,null,null):n(e,A,t)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:A,componentStack:t,eventId:n}=this.state;e&&e(A,t,n),this.setState(ow)}render(){let{fallback:e,children:A}=this.props,t=this.state;if(null===t.componentStack)return"function"==typeof A?A():A;let n="function"==typeof e?oB.createElement(e,{error:t.error,componentStack:t.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:t.eventId}):e;return oB.isValidElement(n)?n:(e&&om&&i6("fallback did not produce a valid ReactElement"),null)}}let ox=(0,E.forwardRef)(({isRunning:e,isAborting:A,progress:t,error:n,run:r,onCancel:i,viewOptions:o,onViewOptionsChanged:s,RunResultView:a,children:l,onExecuteRun:c},u)=>{let d=n?.response?.data?.detail??r?.error;if(d)return(0,g.jsxs)(iR.Root,{status:"error",title:`Error: ${d}`,children:[(0,g.jsx)(iR.Indicator,{}),(0,g.jsxs)(iR.Title,{children:["Error: ",(0,g.jsx)("span",{className:"no-track-pii-safe",children:d})]})]});if(e??r?.status==="running"){let e="Loading...";return t?.message?e=t.message:r?.progress?.message&&(e=r.progress.message),(0,g.jsx)(AQ.Center,{p:"1rem",height:"100%",bg:"rgb(249,249,249)",children:(0,g.jsxs)(AU.VStack,{children:[(0,g.jsxs)(v.Flex,{alignItems:"center",children:[t?.percentage==null?(0,g.jsx)(i$.Root,{value:null,size:"md",mr:"0.5rem",children:(0,g.jsx)(i$.Circle,{})}):(0,g.jsx)(i$.Root,{value:100*t.percentage,size:"md",mr:"0.5rem",children:(0,g.jsx)(i$.Circle,{})}),A?(0,g.jsx)("span",{children:"Aborting..."}):(0,g.jsx)("span",{className:"no-track-pii-safe",children:e})]}),!A&&(0,g.jsx)(AV.Button,{onClick:i,colorPalette:"blue",size:"sm",children:"Cancel"})]})})}if(!r)return(0,g.jsx)(AQ.Center,{bg:"rgb(249,249,249)",height:"100%",children:"Loading..."});if(l&&a)throw Error("RunView requires either a children or a RunResultView prop, but not both.");if(!l&&!a)throw Error("RunView requires at least one of children or RunResultView prop.");return(0,g.jsxs)(y.Box,{h:"100%",style:{contain:"size layout"},overflow:"auto",className:"no-track-pii-safe",children:[a&&(r.error??r.result)&&(0,g.jsx)(oy,{children:(0,g.jsx)(a,{ref:u,run:r,viewOptions:o,onViewOptionsChanged:s})}),l?.({run:r,viewOptions:o,onViewOptionsChanged:s})]})});e.s([],67466),e.i(67466);let{withProvider:oC,withContext:ob,useStyles:ov,PropsProvider:oQ}=(0,eA.createSlotRecipeContext)({key:"breadcrumb"}),oF=oC("nav","root",{defaultProps:{"aria-label":"breadcrumb"}}),oU=ob("ol","list"),oE=ob("li","item"),oI=ob("a","link"),oS=ob("span","currentLink",{defaultProps:{role:"link","aria-current":"page"}}),ok=ob("li","separator",{defaultProps:{"aria-hidden":!0,children:(0,g.jsx)(tw.ChevronRightIcon,{})}}),oj=ob("li","ellipsis",{defaultProps:{role:"presentation","aria-hidden":!0,children:(0,g.jsx)(tw.EllpsisIcon,{})}});e.s(["CurrentLink",()=>oS,"Ellipsis",()=>oj,"Item",()=>oE,"Link",()=>oI,"List",()=>oU,"PropsProvider",()=>oQ,"Root",()=>oF,"Separator",()=>ok],32865);var oH=e.i(32865),oH=oH,oD=e.i(18615);function oL({name:e,setName:A}){let[t,n]=(0,E.useState)(!1),[r,i]=(0,E.useState)(e),o=(0,E.useRef)(null),s=(0,E.useCallback)(()=>{A(r),n(!1)},[A,r]);return(0,E.useEffect)(()=>{let e=e=>{o.current&&!o.current.contains(e.target)&&s()};return t&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t,s]),(0,g.jsx)(oH.Root,{flex:"0 1 auto",fontSize:"12pt",fontWeight:"500",className:"no-track-pii-safe",overflow:"hidden",children:(0,g.jsx)(oH.Item,{cursor:"pointer",flex:"0 1 auto",overflow:"hidden",children:t?(0,g.jsx)(oD.Input,{ref:o,value:r,onChange:e=>{i(e.target.value)},onKeyDown:t=>{"Enter"===t.key?(A(r),n(!1)):"Escape"===t.key&&(i(e),n(!1))},size:"sm",w:"100%"}):(0,g.jsx)(y.Box,{flex:"0 1 auto",onClick:()=>{i(e),n(!0)},textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:e})})})}var oR=e.i(73465);let{withContext:oT,PropsProvider:oM}=(0,p.createRecipeContext)({key:"textarea"}),oO=oT(oR.Field.Textarea);function oN({value:e,onChange:A}){let{featureToggles:t}=(0,AC.useRecceInstanceContext)(),[n,r]=(0,E.useState)(!1),[i,o]=(0,E.useState)(),s=(0,E.useRef)(null),a=()=>{A&&(A(i),r(!1))};return((0,E.useEffect)(()=>{if(n&&s.current){let e=s.current;e.focus(),e.setSelectionRange(e.value.length,e.value.length)}},[n]),n)?(0,g.jsxs)(v.Flex,{direction:"column",align:"flex-end",height:"100%",className:"no-track-pii-safe",children:[(0,g.jsx)(oO,{value:i,onChange:e=>{o(e.target.value)},onKeyDown:e=>{"Escape"===e.key&&r(!1),(e.metaKey||e.ctrlKey)&&"Enter"===e.key&&(e.preventDefault(),a())},ref:s,flex:1}),(0,g.jsxs)(v.Flex,{gap:"12px",alignItems:"flex-end",children:[(0,g.jsx)(j.Link,{onClick:()=>{setTimeout(()=>{r(!1)},100)},colorPalette:"blue",children:"cancel"}),(0,g.jsx)(AV.Button,{mt:"8px",size:"sm",colorPalette:"blue",onClick:a,children:"Update"})]})]}):(0,g.jsx)(e6.Text,{className:"no-track-pii-safe",height:"100%",overflow:"auto",fontSize:"11pt",onClick:t.disableUpdateChecklist?void 0:()=>{o(e??""),r(!0)},whiteSpace:"pre-wrap",wordBreak:"break-word",color:e?"inherit":"lightgray",children:(e??"").trim()||"Add description here"})}function oP(e){return(e.description??"")||"_(no description)_"}function o_(e){if("string"==typeof e||"number"==typeof e)return""+e;let A="";if(Array.isArray(e))for(let t=0,n;t<e.length;t++)""!==(n=o_(e[t]))&&(A+=(A&&" ")+n);else for(let t in e)e[t]&&(A+=(A&&" ")+t);return A}oO.displayName="Textarea";var oK=e.i(80998),oV=e.i(96177);let oG={get url(){return`file://${e.P("node_modules/.pnpm/zustand@4.5.7_@types+react@19.2.5_react@19.2.0/node_modules/zustand/esm/vanilla.mjs")}`}},oz=e=>{let A,t=new Set,n=(e,n)=>{let r="function"==typeof e?e(A):e;if(!Object.is(r,A)){let e=A;A=(null!=n?n:"object"!=typeof r||null===r)?r:Object.assign({},A,r),t.forEach(t=>t(A,e))}},r=()=>A,i={setState:n,getState:r,getInitialState:()=>o,subscribe:e=>(t.add(e),()=>t.delete(e)),destroy:()=>{(oG.env?oG.env.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}},o=A=e(n,r,i);return i},{useDebugValue:oW}=E.default,{useSyncExternalStoreWithSelector:o$}=oV.default,oX=e=>e;function oY(e,A=oX,t){let n=o$(e.subscribe,e.getState,e.getServerState||e.getInitialState,A,t);return oW(n),n}let oJ=(e,A)=>{let t=e?oz(e):oz,n=(e,n=A)=>oY(t,e,n);return Object.assign(n,t),n};function oq(e,A){if(Object.is(e,A))return!0;if("object"!=typeof e||null===e||"object"!=typeof A||null===A)return!1;if(e instanceof Map&&A instanceof Map){if(e.size!==A.size)return!1;for(let[t,n]of e)if(!Object.is(n,A.get(t)))return!1;return!0}if(e instanceof Set&&A instanceof Set){if(e.size!==A.size)return!1;for(let t of e)if(!A.has(t))return!1;return!0}let t=Object.keys(e);if(t.length!==Object.keys(A).length)return!1;for(let n of t)if(!Object.prototype.hasOwnProperty.call(A,n)||!Object.is(e[n],A[n]))return!1;return!0}var oZ=e.i(19486);let o0=(0,E.createContext)(null),o1=o0.Provider,o2=oK.errorMessages.error001();function o4(e,A){let t=(0,E.useContext)(o0);if(null===t)throw Error(o2);return oY(t,e,A)}function o3(){let e=(0,E.useContext)(o0);if(null===e)throw Error(o2);return(0,E.useMemo)(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}let o5={display:"none"},o6={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},o8="react-flow__node-desc",o7="react-flow__edge-desc",o9=e=>e.ariaLiveMessage,se=e=>e.ariaLabelConfig;function sA({rfId:e}){let A=o4(o9);return(0,g.jsx)("div",{id:`react-flow__aria-live-${e}`,"aria-live":"assertive","aria-atomic":"true",style:o6,children:A})}function st({rfId:e,disableKeyboardA11y:A}){let t=o4(se);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{id:`${o8}-${e}`,style:o5,children:A?t["node.a11yDescription.default"]:t["node.a11yDescription.keyboardDisabled"]}),(0,g.jsx)("div",{id:`${o7}-${e}`,style:o5,children:t["edge.a11yDescription.default"]}),!A&&(0,g.jsx)(sA,{rfId:e})]})}let sn=(0,E.forwardRef)(({position:e="top-left",children:A,className:t,style:n,...r},i)=>{let o=`${e}`.split("-");return(0,g.jsx)("div",{className:o_(["react-flow__panel",t,...o]),style:n,ref:i,...r,children:A})});function sr({proOptions:e,position:A="bottom-right"}){return e?.hideAttribution?null:(0,g.jsx)(sn,{position:A,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:(0,g.jsx)("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}sn.displayName="Panel";let si=e=>{let A=[],t=[];for(let[,t]of e.nodeLookup)t.selected&&A.push(t.internals.userNode);for(let[,A]of e.edgeLookup)A.selected&&t.push(A);return{selectedNodes:A,selectedEdges:t}},so=e=>e.id;function ss(e,A){return oq(e.selectedNodes.map(so),A.selectedNodes.map(so))&&oq(e.selectedEdges.map(so),A.selectedEdges.map(so))}function sa({onSelectionChange:e}){let A=o3(),{selectedNodes:t,selectedEdges:n}=o4(si,ss);return(0,E.useEffect)(()=>{let r={nodes:t,edges:n};e?.(r),A.getState().onSelectionChangeHandlers.forEach(e=>e(r))},[t,n,e]),null}let sl=e=>!!e.onSelectionChangeHandlers;function sc({onSelectionChange:e}){let A=o4(sl);return e||A?(0,g.jsx)(sa,{onSelectionChange:e}):null}let su=[0,0],sd={x:0,y:0,zoom:1},sh=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","rfId"],sf=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),sg={translateExtent:oK.infiniteExtent,nodeOrigin:su,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function sp(e){let{setNodes:A,setEdges:t,setMinZoom:n,setMaxZoom:r,setTranslateExtent:i,setNodeExtent:o,reset:s,setDefaultNodesAndEdges:a}=o4(sf,oq),l=o3();(0,E.useEffect)(()=>(a(e.defaultNodes,e.defaultEdges),()=>{c.current=sg,s()}),[]);let c=(0,E.useRef)(sg);return(0,E.useEffect)(()=>{for(let s of sh){let a=e[s];a!==c.current[s]&&void 0!==e[s]&&("nodes"===s?A(a):"edges"===s?t(a):"minZoom"===s?n(a):"maxZoom"===s?r(a):"translateExtent"===s?i(a):"nodeExtent"===s?o(a):"ariaLabelConfig"===s?l.setState({ariaLabelConfig:(0,oK.mergeAriaLabelConfig)(a)}):"fitView"===s?l.setState({fitViewQueued:a}):"fitViewOptions"===s?l.setState({fitViewOptions:a}):l.setState({[s]:a}))}c.current=e},sh.map(A=>e[A])),null}function sB(){return"undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null}let sm="undefined"!=typeof document?document:null;function sw(e=null,A={target:sm,actInsideInputWithModifier:!0}){let[t,n]=(0,E.useState)(!1),r=(0,E.useRef)(!1),i=(0,E.useRef)(new Set([])),[o,s]=(0,E.useMemo)(()=>{if(null!==e){let A=(Array.isArray(e)?e:[e]).filter(e=>"string"==typeof e).map(e=>e.replace("+","\n").replace("\n\n","\n+").split("\n")),t=A.reduce((e,A)=>e.concat(...A),[]);return[A,t]}return[[],[]]},[e]);return(0,E.useEffect)(()=>{let t=A?.target??sm,a=A?.actInsideInputWithModifier??!0;if(null!==e){let e=e=>{if(r.current=e.ctrlKey||e.metaKey||e.shiftKey||e.altKey,(!r.current||r.current&&!a)&&(0,oK.isInputDOMNode)(e))return!1;let t=sx(e.code,s);if(i.current.add(e[t]),sy(o,i.current,!1)){let t=e.composedPath?.()?.[0]||e.target,i=t?.nodeName==="BUTTON"||t?.nodeName==="A";!1!==A.preventDefault&&(r.current||!i)&&e.preventDefault(),n(!0)}},l=e=>{let A=sx(e.code,s);sy(o,i.current,!0)?(n(!1),i.current.clear()):i.current.delete(e[A]),"Meta"===e.key&&i.current.clear(),r.current=!1},c=()=>{i.current.clear(),n(!1)};return t?.addEventListener("keydown",e),t?.addEventListener("keyup",l),window.addEventListener("blur",c),window.addEventListener("contextmenu",c),()=>{t?.removeEventListener("keydown",e),t?.removeEventListener("keyup",l),window.removeEventListener("blur",c),window.removeEventListener("contextmenu",c)}}},[e,n]),t}function sy(e,A,t){return e.filter(e=>t||e.length===A.size).some(e=>e.every(e=>A.has(e)))}function sx(e,A){return A.includes(e)?"code":"key"}function sC(e,A){let t=[],n=new Map,r=[];for(let A of e)if("add"===A.type){r.push(A);continue}else if("remove"===A.type||"replace"===A.type)n.set(A.id,[A]);else{let e=n.get(A.id);e?e.push(A):n.set(A.id,[A])}for(let e of A){let A=n.get(e.id);if(!A){t.push(e);continue}if("remove"===A[0].type)continue;if("replace"===A[0].type){t.push({...A[0].item});continue}let r={...e};for(let e of A){var i=e,o=r;switch(i.type){case"select":o.selected=i.selected;break;case"position":void 0!==i.position&&(o.position=i.position),void 0!==i.dragging&&(o.dragging=i.dragging);break;case"dimensions":void 0!==i.dimensions&&(o.measured??={},o.measured.width=i.dimensions.width,o.measured.height=i.dimensions.height,i.setAttributes&&((!0===i.setAttributes||"width"===i.setAttributes)&&(o.width=i.dimensions.width),(!0===i.setAttributes||"height"===i.setAttributes)&&(o.height=i.dimensions.height))),"boolean"==typeof i.resizing&&(o.resizing=i.resizing)}}t.push(r)}return r.length&&r.forEach(e=>{void 0!==e.index?t.splice(e.index,0,{...e.item}):t.push({...e.item})}),t}function sb(e,A){return{id:e,type:"select",selected:A}}function sv(e,A=new Set,t=!1){let n=[];for(let[r,i]of e){let e=A.has(r);(void 0!==i.selected||e)&&i.selected!==e&&(t&&(i.selected=e),n.push(sb(i.id,e)))}return n}function sQ({items:e=[],lookup:A}){let t=[],n=new Map(e.map(e=>[e.id,e]));for(let[n,r]of e.entries()){let e=A.get(r.id),i=e?.internals?.userNode??e;void 0!==i&&i!==r&&t.push({id:r.id,item:r,type:"replace"}),void 0===i&&t.push({item:r,type:"add",index:n})}for(let[e]of A)void 0===n.get(e)&&t.push({id:e,type:"remove"});return t}function sF(e){return{id:e.id,type:"remove"}}let sU=e=>(0,oK.isNodeBase)(e);function sE(e){return(0,E.forwardRef)(e)}let sI="undefined"!=typeof window?E.useLayoutEffect:E.useEffect;function sS(e){let[A,t]=(0,E.useState)(BigInt(0)),[n]=(0,E.useState)(()=>{var e;let A;return e=()=>t(e=>e+BigInt(1)),A=[],{get:()=>A,reset:()=>{A=[]},push:t=>{A.push(t),e()}}});return sI(()=>{let A=n.get();A.length&&(e(A),n.reset())},[A]),n}let sk=(0,E.createContext)(null);function sj({children:e}){let A=o3(),t=sS((0,E.useCallback)(e=>{let{nodes:t=[],setNodes:n,hasDefaultNodes:r,onNodesChange:i,nodeLookup:o,fitViewQueued:s}=A.getState(),a=t;for(let A of e)a="function"==typeof A?A(a):A;let l=sQ({items:a,lookup:o});r&&n(a),l.length>0?i?.(l):s&&window.requestAnimationFrame(()=>{let{fitViewQueued:e,nodes:t,setNodes:n}=A.getState();e&&n(t)})},[])),n=sS((0,E.useCallback)(e=>{let{edges:t=[],setEdges:n,hasDefaultEdges:r,onEdgesChange:i,edgeLookup:o}=A.getState(),s=t;for(let A of e)s="function"==typeof A?A(s):A;r?n(s):i&&i(sQ({items:s,lookup:o}))},[])),r=(0,E.useMemo)(()=>({nodeQueue:t,edgeQueue:n}),[]);return(0,g.jsx)(sk.Provider,{value:r,children:e})}let sH=e=>!!e.panZoom;function sD(){let e,A=(e=o3(),(0,E.useMemo)(()=>({zoomIn:A=>{let{panZoom:t}=e.getState();return t?t.scaleBy(1.2,{duration:A?.duration}):Promise.resolve(!1)},zoomOut:A=>{let{panZoom:t}=e.getState();return t?t.scaleBy(1/1.2,{duration:A?.duration}):Promise.resolve(!1)},zoomTo:(A,t)=>{let{panZoom:n}=e.getState();return n?n.scaleTo(A,{duration:t?.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(A,t)=>{let{transform:[n,r,i],panZoom:o}=e.getState();return o?(await o.setViewport({x:A.x??n,y:A.y??r,zoom:A.zoom??i},t),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{let[A,t,n]=e.getState().transform;return{x:A,y:t,zoom:n}},setCenter:async(A,t,n)=>e.getState().setCenter(A,t,n),fitBounds:async(A,t)=>{let{width:n,height:r,minZoom:i,maxZoom:o,panZoom:s}=e.getState(),a=(0,oK.getViewportForBounds)(A,n,r,i,o,t?.padding??.1);return s?(await s.setViewport(a,{duration:t?.duration,ease:t?.ease,interpolate:t?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(A,t={})=>{let{transform:n,snapGrid:r,snapToGrid:i,domNode:o}=e.getState();if(!o)return A;let{x:s,y:a}=o.getBoundingClientRect(),l={x:A.x-s,y:A.y-a},c=t.snapGrid??r,u=t.snapToGrid??i;return(0,oK.pointToRendererPoint)(l,n,u,c)},flowToScreenPosition:A=>{let{transform:t,domNode:n}=e.getState();if(!n)return A;let{x:r,y:i}=n.getBoundingClientRect(),o=(0,oK.rendererPointToPoint)(A,t);return{x:o.x+r,y:o.y+i}}}),[])),t=o3(),n=function(){let e=(0,E.useContext)(sk);if(!e)throw Error("useBatchContext must be used within a BatchProvider");return e}(),r=o4(sH),i=(0,E.useMemo)(()=>{let e=e=>t.getState().nodeLookup.get(e),A=e=>{n.nodeQueue.push(e)},r=e=>{n.edgeQueue.push(e)},i=e=>{let{nodeLookup:A,nodeOrigin:n}=t.getState(),r=sU(e)?e:A.get(e.id),i=r.parentId?(0,oK.evaluateAbsolutePosition)(r.position,r.measured,r.parentId,A,n):r.position,o={...r,position:i,width:r.measured?.width??r.width,height:r.measured?.height??r.height};return(0,oK.nodeToRect)(o)},o=(e,t,n={replace:!1})=>{A(A=>A.map(A=>{if(A.id===e){let e="function"==typeof t?t(A):t;return n.replace&&sU(e)?e:{...A,...e}}return A}))},s=(e,A,t={replace:!1})=>{r(n=>n.map(n=>{if(n.id===e){let e="function"==typeof A?A(n):A;return t.replace&&(0,oK.isEdgeBase)(e)?e:{...n,...e}}return n}))};return{getNodes:()=>t.getState().nodes.map(e=>({...e})),getNode:A=>e(A)?.internals.userNode,getInternalNode:e,getEdges:()=>{let{edges:e=[]}=t.getState();return e.map(e=>({...e}))},getEdge:e=>t.getState().edgeLookup.get(e),setNodes:A,setEdges:r,addNodes:e=>{let A=Array.isArray(e)?e:[e];n.nodeQueue.push(e=>[...e,...A])},addEdges:e=>{let A=Array.isArray(e)?e:[e];n.edgeQueue.push(e=>[...e,...A])},toObject:()=>{let{nodes:e=[],edges:A=[],transform:n}=t.getState(),[r,i,o]=n;return{nodes:e.map(e=>({...e})),edges:A.map(e=>({...e})),viewport:{x:r,y:i,zoom:o}}},deleteElements:async({nodes:e=[],edges:A=[]})=>{let{nodes:n,edges:r,onNodesDelete:i,onEdgesDelete:o,triggerNodeChanges:s,triggerEdgeChanges:a,onDelete:l,onBeforeDelete:c}=t.getState(),{nodes:u,edges:d}=await (0,oK.getElementsToRemove)({nodesToRemove:e,edgesToRemove:A,nodes:n,edges:r,onBeforeDelete:c}),h=d.length>0,f=u.length>0;if(h){let e=d.map(sF);o?.(d),a(e)}if(f){let e=u.map(sF);i?.(u),s(e)}return(f||h)&&l?.({nodes:u,edges:d}),{deletedNodes:u,deletedEdges:d}},getIntersectingNodes:(e,A=!0,n)=>{let r=(0,oK.isRectObject)(e),o=r?e:i(e),s=void 0!==n;return o?(n||t.getState().nodes).filter(n=>{let i=t.getState().nodeLookup.get(n.id);if(i&&!r&&(n.id===e.id||!i.internals.positionAbsolute))return!1;let a=(0,oK.nodeToRect)(s?n:i),l=(0,oK.getOverlappingArea)(a,o);return A&&l>0||l>=a.width*a.height||l>=o.width*o.height}):[]},isNodeIntersecting:(e,A,t=!0)=>{let n=(0,oK.isRectObject)(e)?e:i(e);if(!n)return!1;let r=(0,oK.getOverlappingArea)(n,A);return t&&r>0||r>=A.width*A.height||r>=n.width*n.height},updateNode:o,updateNodeData:(e,A,t={replace:!1})=>{o(e,e=>{let n="function"==typeof A?A(e):A;return t.replace?{...e,data:n}:{...e,data:{...e.data,...n}}},t)},updateEdge:s,updateEdgeData:(e,A,t={replace:!1})=>{s(e,e=>{let n="function"==typeof A?A(e):A;return t.replace?{...e,data:n}:{...e,data:{...e.data,...n}}},t)},getNodesBounds:e=>{let{nodeLookup:A,nodeOrigin:n}=t.getState();return(0,oK.getNodesBounds)(e,{nodeLookup:A,nodeOrigin:n})},getHandleConnections:({type:e,id:A,nodeId:n})=>Array.from(t.getState().connectionLookup.get(`${n}-${e}${A?`-${A}`:""}`)?.values()??[]),getNodeConnections:({type:e,handleId:A,nodeId:n})=>Array.from(t.getState().connectionLookup.get(`${n}${e?A?`-${e}-${A}`:`-${e}`:""}`)?.values()??[]),fitView:async e=>{let A=t.getState().fitViewResolver??(0,oK.withResolvers)();return t.setState({fitViewQueued:!0,fitViewOptions:e,fitViewResolver:A}),n.nodeQueue.push(e=>[...e]),A.promise}}},[]);return(0,E.useMemo)(()=>({...i,...A,viewportInitialized:r}),[r])}let sL=e=>e.selected,sR="undefined"!=typeof window?window:void 0,sT={position:"absolute",width:"100%",height:"100%",top:0,left:0},sM=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function sO({onPaneContextMenu:e,zoomOnScroll:A=!0,zoomOnPinch:t=!0,panOnScroll:n=!1,panOnScrollSpeed:r=.5,panOnScrollMode:i=oK.PanOnScrollMode.Free,zoomOnDoubleClick:o=!0,panOnDrag:s=!0,defaultViewport:a,translateExtent:l,minZoom:c,maxZoom:u,zoomActivationKeyCode:d,preventScrolling:h=!0,children:f,noWheelClassName:p,noPanClassName:B,onViewportChange:m,isControlledViewport:w,paneClickDistance:y,selectionOnDrag:x}){let C,b=o3(),v=(0,E.useRef)(null),{userSelectionActive:Q,lib:F,connectionInProgress:U}=o4(sM,oq),I=sw(d),S=(0,E.useRef)();C=o3(),(0,E.useEffect)(()=>{let e=()=>{if(!v.current||!(v.current.checkVisibility?.()??!0))return!1;let e=(0,oK.getDimensions)(v.current);(0===e.height||0===e.width)&&C.getState().onError?.("004",oK.errorMessages.error004()),C.setState({width:e.width||500,height:e.height||500})};if(v.current){e(),window.addEventListener("resize",e);let A=new ResizeObserver(()=>e());return A.observe(v.current),()=>{window.removeEventListener("resize",e),A&&v.current&&A.unobserve(v.current)}}},[]);let k=(0,E.useCallback)(e=>{m?.({x:e[0],y:e[1],zoom:e[2]}),w||b.setState({transform:e})},[m,w]);return(0,E.useEffect)(()=>{if(v.current){S.current=(0,oK.XYPanZoom)({domNode:v.current,minZoom:c,maxZoom:u,translateExtent:l,viewport:a,onDraggingChange:e=>b.setState({paneDragging:e}),onPanZoomStart:(e,A)=>{let{onViewportChangeStart:t,onMoveStart:n}=b.getState();n?.(e,A),t?.(A)},onPanZoom:(e,A)=>{let{onViewportChange:t,onMove:n}=b.getState();n?.(e,A),t?.(A)},onPanZoomEnd:(e,A)=>{let{onViewportChangeEnd:t,onMoveEnd:n}=b.getState();n?.(e,A),t?.(A)}});let{x:e,y:A,zoom:t}=S.current.getViewport();return b.setState({panZoom:S.current,transform:[e,A,t],domNode:v.current.closest(".react-flow")}),()=>{S.current?.destroy()}}},[]),(0,E.useEffect)(()=>{S.current?.update({onPaneContextMenu:e,zoomOnScroll:A,zoomOnPinch:t,panOnScroll:n,panOnScrollSpeed:r,panOnScrollMode:i,zoomOnDoubleClick:o,panOnDrag:s,zoomActivationKeyPressed:I,preventScrolling:h,noPanClassName:B,userSelectionActive:Q,noWheelClassName:p,lib:F,onTransformChange:k,connectionInProgress:U,selectionOnDrag:x,paneClickDistance:y})},[e,A,t,n,r,i,o,s,I,h,B,Q,p,F,k,U,x,y]),(0,g.jsx)("div",{className:"react-flow__renderer",ref:v,style:sT,children:f})}let sN=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function sP(){let{userSelectionActive:e,userSelectionRect:A}=o4(sN,oq);return e&&A?(0,g.jsx)("div",{className:"react-flow__selection react-flow__container",style:{width:A.width,height:A.height,transform:`translate(${A.x}px, ${A.y}px)`}}):null}let s_=(e,A)=>t=>{t.target===A.current&&e?.(t)},sK=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function sV({isSelecting:e,selectionKeyPressed:A,selectionMode:t=oK.SelectionMode.Full,panOnDrag:n,paneClickDistance:r,selectionOnDrag:i,onSelectionStart:o,onSelectionEnd:s,onPaneClick:a,onPaneContextMenu:l,onPaneScroll:c,onPaneMouseEnter:u,onPaneMouseMove:d,onPaneMouseLeave:h,children:f}){let p=o3(),{userSelectionActive:B,elementsSelectable:m,dragging:w,connectionInProgress:y}=o4(sK,oq),x=m&&(e||B),C=(0,E.useRef)(null),b=(0,E.useRef)(),v=(0,E.useRef)(new Set),Q=(0,E.useRef)(new Set),F=(0,E.useRef)(!1),U=e=>{if(F.current||y){F.current=!1;return}a?.(e),p.getState().resetSelectedElements(),p.setState({nodesSelectionActive:!1})},I=!0===n||Array.isArray(n)&&n.includes(0);return(0,g.jsxs)("div",{className:o_(["react-flow__pane",{draggable:I,dragging:w,selection:e}]),onClick:x?void 0:s_(U,C),onContextMenu:s_(e=>{Array.isArray(n)&&n?.includes(2)?e.preventDefault():l?.(e)},C),onWheel:s_(c?e=>c(e):void 0,C),onPointerEnter:x?void 0:u,onPointerMove:x?e=>{let{userSelectionRect:n,transform:i,nodeLookup:s,edgeLookup:a,connectionLookup:l,triggerNodeChanges:c,triggerEdgeChanges:u,defaultEdgeOptions:d,resetSelectedElements:h}=p.getState();if(!b.current||!n)return;let{x:f,y:g}=(0,oK.getEventPosition)(e.nativeEvent,b.current),{startX:B,startY:m}=n;if(!F.current){if(Math.hypot(f-B,g-m)<=(A?0:r))return;h(),o?.(e)}F.current=!0;let w={startX:B,startY:m,x:f<B?f:B,y:g<m?g:m,width:Math.abs(f-B),height:Math.abs(g-m)},y=v.current,x=Q.current;v.current=new Set((0,oK.getNodesInside)(s,w,i,t===oK.SelectionMode.Partial,!0).map(e=>e.id)),Q.current=new Set;let C=d?.selectable??!0;for(let e of v.current){let A=l.get(e);if(A)for(let{edgeId:e}of A.values()){let A=a.get(e);A&&(A.selectable??C)&&Q.current.add(e)}}(0,oK.areSetsEqual)(y,v.current)||c(sv(s,v.current,!0)),(0,oK.areSetsEqual)(x,Q.current)||u(sv(a,Q.current)),p.setState({userSelectionRect:w,userSelectionActive:!0,nodesSelectionActive:!1})}:d,onPointerUp:x?e=>{0===e.button&&(e.target?.releasePointerCapture?.(e.pointerId),!B&&e.target===C.current&&p.getState().userSelectionRect&&U?.(e),p.setState({userSelectionActive:!1,userSelectionRect:null}),F.current&&(s?.(e),p.setState({nodesSelectionActive:v.current.size>0})))}:void 0,onPointerDownCapture:x?t=>{let{domNode:n}=p.getState();if(b.current=n?.getBoundingClientRect(),!b.current)return;let r=t.target===C.current;if(!r&&t.target.closest(".nokey")||!e||!(i&&r||A)||0!==t.button||!t.isPrimary)return;t.target?.setPointerCapture?.(t.pointerId),F.current=!1;let{x:o,y:s}=(0,oK.getEventPosition)(t.nativeEvent,b.current);p.setState({userSelectionRect:{width:0,height:0,startX:o,startY:s,x:o,y:s}}),r||(t.stopPropagation(),t.preventDefault())}:void 0,onClickCapture:x?e=>{F.current&&(e.stopPropagation(),F.current=!1)}:void 0,onPointerLeave:h,ref:C,style:sT,children:[f,(0,g.jsx)(sP,{})]})}function sG({id:e,store:A,unselect:t=!1,nodeRef:n}){let{addSelectedNodes:r,unselectNodesAndEdges:i,multiSelectionActive:o,nodeLookup:s,onError:a}=A.getState(),l=s.get(e);l?(A.setState({nodesSelectionActive:!1}),l.selected?(t||l.selected&&o)&&(i({nodes:[l],edges:[]}),requestAnimationFrame(()=>n?.current?.blur())):r([e])):a?.("012",oK.errorMessages.error012(e))}function sz({nodeRef:e,disabled:A=!1,noDragClassName:t,handleSelector:n,nodeId:r,isSelectable:i,nodeClickDistance:o}){let s=o3(),[a,l]=(0,E.useState)(!1),c=(0,E.useRef)();return(0,E.useEffect)(()=>{c.current=(0,oK.XYDrag)({getStoreItems:()=>s.getState(),onNodeMouseDown:A=>{sG({id:A,store:s,nodeRef:e})},onDragStart:()=>{l(!0)},onDragStop:()=>{l(!1)}})},[]),(0,E.useEffect)(()=>{if(A)c.current?.destroy();else if(e.current)return c.current?.update({noDragClassName:t,handleSelector:n,domNode:e.current,isSelectable:i,nodeId:r,nodeClickDistance:o}),()=>{c.current?.destroy()}},[t,n,A,i,e,r]),a}function sW(){let e=o3();return(0,E.useCallback)(A=>{let{nodeExtent:t,snapToGrid:n,snapGrid:r,nodesDraggable:i,onError:o,updateNodePositions:s,nodeLookup:a,nodeOrigin:l}=e.getState(),c=new Map,u=e=>e.selected&&(e.draggable||i&&void 0===e.draggable),d=n?r[0]:5,h=n?r[1]:5,f=A.direction.x*d*A.factor,g=A.direction.y*h*A.factor;for(let[,e]of a){if(!u(e))continue;let A={x:e.internals.positionAbsolute.x+f,y:e.internals.positionAbsolute.y+g};n&&(A=(0,oK.snapPosition)(A,r));let{position:i,positionAbsolute:s}=(0,oK.calculateNodePosition)({nodeId:e.id,nextPosition:A,nodeLookup:a,nodeExtent:t,nodeOrigin:l,onError:o});e.position=i,e.internals.positionAbsolute=s,c.set(e.id,e)}s(c)},[])}let s$=(0,E.createContext)(null),sX=s$.Provider;s$.Consumer;let sY=()=>(0,E.useContext)(s$),sJ=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),sq=(0,E.memo)(sE(function({type:e="source",position:A=oK.Position.Top,isValidConnection:t,isConnectable:n=!0,isConnectableStart:r=!0,isConnectableEnd:i=!0,id:o,onConnect:s,children:a,className:l,onMouseDown:c,onTouchStart:u,...d},h){let f=o||null,p="target"===e,B=o3(),m=sY(),{connectOnClick:w,noPanClassName:y,rfId:x}=o4(sJ,oq),{connectingFrom:C,connectingTo:b,clickConnecting:v,isPossibleEndHandle:Q,connectionInProcess:F,clickConnectionInProcess:U,valid:E}=o4(A=>{let{connectionClickStartHandle:t,connectionMode:n,connection:r}=A,{fromHandle:i,toHandle:o,isValid:s}=r,a=o?.nodeId===m&&o?.id===f&&o?.type===e;return{connectingFrom:i?.nodeId===m&&i?.id===f&&i?.type===e,connectingTo:a,clickConnecting:t?.nodeId===m&&t?.id===f&&t?.type===e,isPossibleEndHandle:n===oK.ConnectionMode.Strict?i?.type!==e:m!==i?.nodeId||f!==i?.id,connectionInProcess:!!i,clickConnectionInProcess:!!t,valid:a&&s}},oq);m||B.getState().onError?.("010",oK.errorMessages.error010());let I=e=>{let{defaultEdgeOptions:A,onConnect:t,hasDefaultEdges:n}=B.getState(),r={...A,...e};if(n){let{edges:e,setEdges:A}=B.getState();A((0,oK.addEdge)(r,e))}t?.(r),s?.(r)},S=e=>{if(!m)return;let A=(0,oK.isMouseEvent)(e.nativeEvent);if(r&&(A&&0===e.button||!A)){let A=B.getState();oK.XYHandle.onPointerDown(e.nativeEvent,{handleDomNode:e.currentTarget,autoPanOnConnect:A.autoPanOnConnect,connectionMode:A.connectionMode,connectionRadius:A.connectionRadius,domNode:A.domNode,nodeLookup:A.nodeLookup,lib:A.lib,isTarget:p,handleId:f,nodeId:m,flowId:A.rfId,panBy:A.panBy,cancelConnection:A.cancelConnection,onConnectStart:A.onConnectStart,onConnectEnd:A.onConnectEnd,updateConnection:A.updateConnection,onConnect:I,isValidConnection:t||A.isValidConnection,getTransform:()=>B.getState().transform,getFromHandle:()=>B.getState().connection.fromHandle,autoPanSpeed:A.autoPanSpeed,dragThreshold:A.connectionDragThreshold})}A?c?.(e):u?.(e)};return(0,g.jsx)("div",{"data-handleid":f,"data-nodeid":m,"data-handlepos":A,"data-id":`${x}-${m}-${f}-${e}`,className:o_(["react-flow__handle",`react-flow__handle-${A}`,"nodrag",y,l,{source:!p,target:p,connectable:n,connectablestart:r,connectableend:i,clickconnecting:v,connectingfrom:C,connectingto:b,valid:E,connectionindicator:n&&(!F||Q)&&(F||U?i:r)}]),onMouseDown:S,onTouchStart:S,onClick:w?A=>{let{onClickConnectStart:n,onClickConnectEnd:i,connectionClickStartHandle:o,connectionMode:s,isValidConnection:a,lib:l,rfId:c,nodeLookup:u,connection:d}=B.getState();if(!m||!o&&!r)return;if(!o){n?.(A.nativeEvent,{nodeId:m,handleId:f,handleType:e}),B.setState({connectionClickStartHandle:{nodeId:m,type:e,id:f}});return}let h=(0,oK.getHostForElement)(A.target),g=t||a,{connection:p,isValid:w}=oK.XYHandle.isValid(A.nativeEvent,{handle:{nodeId:m,id:f,type:e},connectionMode:s,fromNodeId:o.nodeId,fromHandleId:o.id||null,fromType:o.type,isValidConnection:g,flowId:c,doc:h,lib:l,nodeLookup:u});w&&p&&I(p);let y=structuredClone(d);delete y.inProgress,y.toPosition=y.toHandle?y.toHandle.position:null,i?.(A,y),B.setState({connectionClickStartHandle:null})}:void 0,ref:h,...d,children:a})})),sZ={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},s0={input:function({data:e,isConnectable:A,sourcePosition:t=oK.Position.Bottom}){return(0,g.jsxs)(g.Fragment,{children:[e?.label,(0,g.jsx)(sq,{type:"source",position:t,isConnectable:A})]})},default:function({data:e,isConnectable:A,targetPosition:t=oK.Position.Top,sourcePosition:n=oK.Position.Bottom}){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(sq,{type:"target",position:t,isConnectable:A}),e?.label,(0,g.jsx)(sq,{type:"source",position:n,isConnectable:A})]})},output:function({data:e,isConnectable:A,targetPosition:t=oK.Position.Top}){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(sq,{type:"target",position:t,isConnectable:A}),e?.label]})},group:function(){return null}},s1=e=>{let{width:A,height:t,x:n,y:r}=(0,oK.getInternalNodesBounds)(e.nodeLookup,{filter:e=>!!e.selected});return{width:(0,oK.isNumeric)(A)?A:null,height:(0,oK.isNumeric)(t)?t:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${n}px,${r}px)`}};function s2({onSelectionContextMenu:e,noPanClassName:A,disableKeyboardA11y:t}){let n=o3(),{width:r,height:i,transformString:o,userSelectionActive:s}=o4(s1,oq),a=sW(),l=(0,E.useRef)(null);if((0,E.useEffect)(()=>{t||l.current?.focus({preventScroll:!0})},[t]),sz({nodeRef:l}),s||!r||!i)return null;let c=e?A=>{e(A,n.getState().nodes.filter(e=>e.selected))}:void 0;return(0,g.jsx)("div",{className:o_(["react-flow__nodesselection","react-flow__container",A]),style:{transform:o},children:(0,g.jsx)("div",{ref:l,className:"react-flow__nodesselection-rect",onContextMenu:c,tabIndex:t?void 0:-1,onKeyDown:t?void 0:e=>{Object.prototype.hasOwnProperty.call(sZ,e.key)&&(e.preventDefault(),a({direction:sZ[e.key],factor:e.shiftKey?4:1}))},style:{width:r,height:i}})})}let s4="undefined"!=typeof window?window:void 0,s3=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function s5({children:e,onPaneClick:A,onPaneMouseEnter:t,onPaneMouseMove:n,onPaneMouseLeave:r,onPaneContextMenu:i,onPaneScroll:o,paneClickDistance:s,deleteKeyCode:a,selectionKeyCode:l,selectionOnDrag:c,selectionMode:u,onSelectionStart:d,onSelectionEnd:h,multiSelectionKeyCode:f,panActivationKeyCode:p,zoomActivationKeyCode:B,elementsSelectable:m,zoomOnScroll:w,zoomOnPinch:y,panOnScroll:x,panOnScrollSpeed:C,panOnScrollMode:b,zoomOnDoubleClick:v,panOnDrag:Q,defaultViewport:F,translateExtent:U,minZoom:I,maxZoom:S,preventScrolling:k,onSelectionContextMenu:j,noWheelClassName:H,noPanClassName:D,disableKeyboardA11y:L,onViewportChange:R,isControlledViewport:T}){let{nodesSelectionActive:M,userSelectionActive:O}=o4(s3),N=sw(l,{target:s4}),P=sw(p,{target:s4}),_=P||Q,K=P||x,V=c&&!0!==_,G=N||O||V;return!function({deleteKeyCode:e,multiSelectionKeyCode:A}){let t=o3(),{deleteElements:n}=sD(),r=sw(e,{actInsideInputWithModifier:!1}),i=sw(A,{target:sR});(0,E.useEffect)(()=>{if(r){let{edges:e,nodes:A}=t.getState();n({nodes:A.filter(sL),edges:e.filter(sL)}),t.setState({nodesSelectionActive:!1})}},[r]),(0,E.useEffect)(()=>{t.setState({multiSelectionActive:i})},[i])}({deleteKeyCode:a,multiSelectionKeyCode:f}),(0,g.jsx)(sO,{onPaneContextMenu:i,elementsSelectable:m,zoomOnScroll:w,zoomOnPinch:y,panOnScroll:K,panOnScrollSpeed:C,panOnScrollMode:b,zoomOnDoubleClick:v,panOnDrag:!N&&_,defaultViewport:F,translateExtent:U,minZoom:I,maxZoom:S,zoomActivationKeyCode:B,preventScrolling:k,noWheelClassName:H,noPanClassName:D,onViewportChange:R,isControlledViewport:T,paneClickDistance:s,selectionOnDrag:V,children:(0,g.jsxs)(sV,{onSelectionStart:d,onSelectionEnd:h,onPaneClick:A,onPaneMouseEnter:t,onPaneMouseMove:n,onPaneMouseLeave:r,onPaneContextMenu:i,onPaneScroll:o,panOnDrag:_,isSelecting:!!G,selectionMode:u,selectionKeyPressed:N,paneClickDistance:s,selectionOnDrag:V,children:[e,M&&(0,g.jsx)(s2,{onSelectionContextMenu:j,noPanClassName:D,disableKeyboardA11y:L})]})})}s5.displayName="FlowRenderer";let s6=(0,E.memo)(s5),s8=e=>e.updateNodeInternals;var s7=(0,E.memo)(function({id:e,onClick:A,onMouseEnter:t,onMouseMove:n,onMouseLeave:r,onContextMenu:i,onDoubleClick:o,nodesDraggable:s,elementsSelectable:a,nodesConnectable:l,nodesFocusable:c,resizeObserver:u,noDragClassName:d,noPanClassName:h,disableKeyboardA11y:f,rfId:p,nodeTypes:B,nodeClickDistance:m,onError:w}){let{node:y,internals:x,isParent:C}=o4(A=>{let t=A.nodeLookup.get(e),n=A.parentLookup.has(e);return{node:t,internals:t.internals,isParent:n}},oq),b=y.type||"default",v=B?.[b]||s0[b];void 0===v&&(w?.("003",oK.errorMessages.error003(b)),b="default",v=B?.default||s0.default);let Q=!!(y.draggable||s&&void 0===y.draggable),F=!!(y.selectable||a&&void 0===y.selectable),U=!!(y.connectable||l&&void 0===y.connectable),I=!!(y.focusable||c&&void 0===y.focusable),S=o3(),k=(0,oK.nodeHasDimensions)(y),j=function({node:e,nodeType:A,hasDimensions:t,resizeObserver:n}){let r=o3(),i=(0,E.useRef)(null),o=(0,E.useRef)(null),s=(0,E.useRef)(e.sourcePosition),a=(0,E.useRef)(e.targetPosition),l=(0,E.useRef)(A),c=t&&!!e.internals.handleBounds;return(0,E.useEffect)(()=>{!i.current||e.hidden||c&&o.current===i.current||(o.current&&n?.unobserve(o.current),n?.observe(i.current),o.current=i.current)},[c,e.hidden]),(0,E.useEffect)(()=>()=>{o.current&&(n?.unobserve(o.current),o.current=null)},[]),(0,E.useEffect)(()=>{if(i.current){let t=l.current!==A,n=s.current!==e.sourcePosition,o=a.current!==e.targetPosition;(t||n||o)&&(l.current=A,s.current=e.sourcePosition,a.current=e.targetPosition,r.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,A,e.sourcePosition,e.targetPosition]),i}({node:y,nodeType:b,hasDimensions:k,resizeObserver:u}),H=sz({nodeRef:j,disabled:y.hidden||!Q,noDragClassName:d,handleSelector:y.dragHandle,nodeId:e,isSelectable:F,nodeClickDistance:m}),D=sW();if(y.hidden)return null;let L=(0,oK.getNodeDimensions)(y),R=void 0===y.internals.handleBounds?{width:y.width??y.initialWidth??y.style?.width,height:y.height??y.initialHeight??y.style?.height}:{width:y.width??y.style?.width,height:y.height??y.style?.height},T=F||Q||A||t||n||r,M=t?e=>t(e,{...x.userNode}):void 0,O=n?e=>n(e,{...x.userNode}):void 0,N=r?e=>r(e,{...x.userNode}):void 0,P=i?e=>i(e,{...x.userNode}):void 0,_=o?e=>o(e,{...x.userNode}):void 0;return(0,g.jsx)("div",{className:o_(["react-flow__node",`react-flow__node-${b}`,{[h]:Q},y.className,{selected:y.selected,selectable:F,parent:C,draggable:Q,dragging:H}]),ref:j,style:{zIndex:x.z,transform:`translate(${x.positionAbsolute.x}px,${x.positionAbsolute.y}px)`,pointerEvents:T?"all":"none",visibility:k?"visible":"hidden",...y.style,...R},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:M,onMouseMove:O,onMouseLeave:N,onContextMenu:P,onClick:t=>{let{selectNodesOnDrag:n,nodeDragThreshold:r}=S.getState();F&&(!n||!Q||r>0)&&sG({id:e,store:S,nodeRef:j}),A&&A(t,{...x.userNode})},onDoubleClick:_,onKeyDown:I?A=>{if(!(0,oK.isInputDOMNode)(A.nativeEvent)&&!f){if(oK.elementSelectionKeys.includes(A.key)&&F)sG({id:e,store:S,unselect:"Escape"===A.key,nodeRef:j});else if(Q&&y.selected&&Object.prototype.hasOwnProperty.call(sZ,A.key)){A.preventDefault();let{ariaLabelConfig:e}=S.getState();S.setState({ariaLiveMessage:e["node.a11yDescription.ariaLiveMessage"]({direction:A.key.replace("Arrow","").toLowerCase(),x:~~x.positionAbsolute.x,y:~~x.positionAbsolute.y})}),D({direction:sZ[A.key],factor:A.shiftKey?4:1})}}}:void 0,tabIndex:I?0:void 0,onFocus:I?()=>{if(f||!j.current?.matches(":focus-visible"))return;let{transform:A,width:t,height:n,autoPanOnNodeFocus:r,setCenter:i}=S.getState();!r||(0,oK.getNodesInside)(new Map([[e,y]]),{x:0,y:0,width:t,height:n},A,!0).length>0||i(y.position.x+L.width/2,y.position.y+L.height/2,{zoom:A[2]})}:void 0,role:y.ariaRole??(I?"group":void 0),"aria-roledescription":"node","aria-describedby":f?void 0:`${o8}-${p}`,"aria-label":y.ariaLabel,...y.domAttributes,children:(0,g.jsx)(sX,{value:e,children:(0,g.jsx)(v,{id:e,data:y.data,type:b,positionAbsoluteX:x.positionAbsolute.x,positionAbsoluteY:x.positionAbsolute.y,selected:y.selected??!1,selectable:F,draggable:Q,deletable:y.deletable??!0,isConnectable:U,sourcePosition:y.sourcePosition,targetPosition:y.targetPosition,dragging:H,dragHandle:y.dragHandle,zIndex:x.z,parentId:y.parentId,...L})})})});let s9=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function ae(e){var A;let{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,onError:o}=o4(s9,oq),s=(A=e.onlyRenderVisibleElements,o4((0,E.useCallback)(e=>A?(0,oK.getNodesInside)(e.nodeLookup,{x:0,y:0,width:e.width,height:e.height},e.transform,!0).map(e=>e.id):Array.from(e.nodeLookup.keys()),[A]),oq)),a=function(){let e=o4(s8),[A]=(0,E.useState)(()=>"undefined"==typeof ResizeObserver?null:new ResizeObserver(A=>{let t=new Map;A.forEach(e=>{let A=e.target.getAttribute("data-id");t.set(A,{id:A,nodeElement:e.target,force:!0})}),e(t)}));return(0,E.useEffect)(()=>()=>{A?.disconnect()},[A]),A}();return(0,g.jsx)("div",{className:"react-flow__nodes",style:sT,children:s.map(A=>(0,g.jsx)(s7,{id:A,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:a,nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,nodeClickDistance:e.nodeClickDistance,onError:o},A))})}ae.displayName="NodeRenderer";let aA=(0,E.memo)(ae),at={[oK.MarkerType.Arrow]:({color:e="none",strokeWidth:A=1})=>{let t={strokeWidth:A,...e&&{stroke:e}};return(0,g.jsx)("polyline",{className:"arrow",style:t,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},[oK.MarkerType.ArrowClosed]:({color:e="none",strokeWidth:A=1})=>{let t={strokeWidth:A,...e&&{stroke:e,fill:e}};return(0,g.jsx)("polyline",{className:"arrowclosed",style:t,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})}},an=({id:e,type:A,color:t,width:n=12.5,height:r=12.5,markerUnits:i="strokeWidth",strokeWidth:o,orient:s="auto-start-reverse"})=>{let a,l=(a=o3(),(0,E.useMemo)(()=>Object.prototype.hasOwnProperty.call(at,A)?at[A]:(a.getState().onError?.("009",oK.errorMessages.error009(A)),null),[A]));return l?(0,g.jsx)("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${n}`,markerHeight:`${r}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:s,refX:"0",refY:"0",children:(0,g.jsx)(l,{color:t,strokeWidth:o})}):null},ar=({defaultColor:e,rfId:A})=>{let t=o4(e=>e.edges),n=o4(e=>e.defaultEdgeOptions),r=(0,E.useMemo)(()=>(0,oK.createMarkerIds)(t,{id:A,defaultColor:e,defaultMarkerStart:n?.markerStart,defaultMarkerEnd:n?.markerEnd}),[t,n,A,e]);return r.length?(0,g.jsx)("svg",{className:"react-flow__marker","aria-hidden":"true",children:(0,g.jsx)("defs",{children:r.map(e=>(0,g.jsx)(an,{id:e.id,type:e.type,color:e.color,width:e.width,height:e.height,markerUnits:e.markerUnits,strokeWidth:e.strokeWidth,orient:e.orient},e.id))})}):null};ar.displayName="MarkerDefinitions";var ai=(0,E.memo)(ar);function ao({x:e,y:A,label:t,labelStyle:n,labelShowBg:r=!0,labelBgStyle:i,labelBgPadding:o=[2,4],labelBgBorderRadius:s=2,children:a,className:l,...c}){let[u,d]=(0,E.useState)({x:1,y:0,width:0,height:0}),h=o_(["react-flow__edge-textwrapper",l]),f=(0,E.useRef)(null);return((0,E.useEffect)(()=>{if(f.current){let e=f.current.getBBox();d({x:e.x,y:e.y,width:e.width,height:e.height})}},[t]),t)?(0,g.jsxs)("g",{transform:`translate(${e-u.width/2} ${A-u.height/2})`,className:h,visibility:u.width?"visible":"hidden",...c,children:[r&&(0,g.jsx)("rect",{width:u.width+2*o[0],x:-o[0],y:-o[1],height:u.height+2*o[1],className:"react-flow__edge-textbg",style:i,rx:s,ry:s}),(0,g.jsx)("text",{className:"react-flow__edge-text",y:u.height/2,dy:"0.3em",ref:f,style:n,children:t}),a]}):null}ao.displayName="EdgeText";let as=(0,E.memo)(ao);function aa({path:e,labelX:A,labelY:t,label:n,labelStyle:r,labelShowBg:i,labelBgStyle:o,labelBgPadding:s,labelBgBorderRadius:a,interactionWidth:l=20,...c}){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("path",{...c,d:e,fill:"none",className:o_(["react-flow__edge-path",c.className])}),l?(0,g.jsx)("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:l,className:"react-flow__edge-interaction"}):null,n&&(0,oK.isNumeric)(A)&&(0,oK.isNumeric)(t)?(0,g.jsx)(as,{x:A,y:t,label:n,labelStyle:r,labelShowBg:i,labelBgStyle:o,labelBgPadding:s,labelBgBorderRadius:a}):null]})}function al({pos:e,x1:A,y1:t,x2:n,y2:r}){return e===oK.Position.Left||e===oK.Position.Right?[.5*(A+n),t]:[A,.5*(t+r)]}function ac({sourceX:e,sourceY:A,sourcePosition:t=oK.Position.Bottom,targetX:n,targetY:r,targetPosition:i=oK.Position.Top}){let[o,s]=al({pos:t,x1:e,y1:A,x2:n,y2:r}),[a,l]=al({pos:i,x1:n,y1:r,x2:e,y2:A}),[c,u,d,h]=(0,oK.getBezierEdgeCenter)({sourceX:e,sourceY:A,targetX:n,targetY:r,sourceControlX:o,sourceControlY:s,targetControlX:a,targetControlY:l});return[`M${e},${A} C${o},${s} ${a},${l} ${n},${r}`,c,u,d,h]}function au(e){return(0,E.memo)(({id:A,sourceX:t,sourceY:n,targetX:r,targetY:i,sourcePosition:o,targetPosition:s,label:a,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:f,markerEnd:p,markerStart:B,interactionWidth:m})=>{let[w,y,x]=ac({sourceX:t,sourceY:n,sourcePosition:o,targetX:r,targetY:i,targetPosition:s}),C=e.isInternal?void 0:A;return(0,g.jsx)(aa,{id:C,path:w,labelX:y,labelY:x,label:a,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:f,markerEnd:p,markerStart:B,interactionWidth:m})})}let ad=au({isInternal:!1}),ah=au({isInternal:!0});function af(e){return(0,E.memo)(({id:A,sourceX:t,sourceY:n,targetX:r,targetY:i,label:o,labelStyle:s,labelShowBg:a,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,sourcePosition:h=oK.Position.Bottom,targetPosition:f=oK.Position.Top,markerEnd:p,markerStart:B,pathOptions:m,interactionWidth:w})=>{let[y,x,C]=(0,oK.getSmoothStepPath)({sourceX:t,sourceY:n,sourcePosition:h,targetX:r,targetY:i,targetPosition:f,borderRadius:m?.borderRadius,offset:m?.offset,stepPosition:m?.stepPosition}),b=e.isInternal?void 0:A;return(0,g.jsx)(aa,{id:b,path:y,labelX:x,labelY:C,label:o,labelStyle:s,labelShowBg:a,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:p,markerStart:B,interactionWidth:w})})}ad.displayName="SimpleBezierEdge",ah.displayName="SimpleBezierEdgeInternal";let ag=af({isInternal:!1}),ap=af({isInternal:!0});function aB(e){return(0,E.memo)(({id:A,...t})=>{let n=e.isInternal?void 0:A;return(0,g.jsx)(ag,{...t,id:n,pathOptions:(0,E.useMemo)(()=>({borderRadius:0,offset:t.pathOptions?.offset}),[t.pathOptions?.offset])})})}ag.displayName="SmoothStepEdge",ap.displayName="SmoothStepEdgeInternal";let am=aB({isInternal:!1}),aw=aB({isInternal:!0});function ay(e){return(0,E.memo)(({id:A,sourceX:t,sourceY:n,targetX:r,targetY:i,label:o,labelStyle:s,labelShowBg:a,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:h,markerStart:f,interactionWidth:p})=>{let[B,m,w]=(0,oK.getStraightPath)({sourceX:t,sourceY:n,targetX:r,targetY:i}),y=e.isInternal?void 0:A;return(0,g.jsx)(aa,{id:y,path:B,labelX:m,labelY:w,label:o,labelStyle:s,labelShowBg:a,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:h,markerStart:f,interactionWidth:p})})}am.displayName="StepEdge",aw.displayName="StepEdgeInternal";let ax=ay({isInternal:!1}),aC=ay({isInternal:!0});function ab(e){return(0,E.memo)(({id:A,sourceX:t,sourceY:n,targetX:r,targetY:i,sourcePosition:o=oK.Position.Bottom,targetPosition:s=oK.Position.Top,label:a,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:f,markerEnd:p,markerStart:B,pathOptions:m,interactionWidth:w})=>{let[y,x,C]=(0,oK.getBezierPath)({sourceX:t,sourceY:n,sourcePosition:o,targetX:r,targetY:i,targetPosition:s,curvature:m?.curvature}),b=e.isInternal?void 0:A;return(0,g.jsx)(aa,{id:b,path:y,labelX:x,labelY:C,label:a,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:f,markerEnd:p,markerStart:B,interactionWidth:w})})}ax.displayName="StraightEdge",aC.displayName="StraightEdgeInternal";let av=ab({isInternal:!1}),aQ=ab({isInternal:!0});av.displayName="BezierEdge",aQ.displayName="BezierEdgeInternal";let aF={default:aQ,straight:aC,step:aw,smoothstep:ap,simplebezier:ah},aU={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},aE="react-flow__edgeupdater";function aI({position:e,centerX:A,centerY:t,radius:n=10,onMouseDown:r,onMouseEnter:i,onMouseOut:o,type:s}){return(0,g.jsx)("circle",{onMouseDown:r,onMouseEnter:i,onMouseOut:o,className:o_([aE,`${aE}-${s}`]),cx:e===oK.Position.Left?A-n:e===oK.Position.Right?A+n:A,cy:e===oK.Position.Top?t-n:e===oK.Position.Bottom?t+n:t,r:n,stroke:"transparent",fill:"transparent"})}function aS({isReconnectable:e,reconnectRadius:A,edge:t,sourceX:n,sourceY:r,targetX:i,targetY:o,sourcePosition:s,targetPosition:a,onReconnect:l,onReconnectStart:c,onReconnectEnd:u,setReconnecting:d,setUpdateHover:h}){let f=o3(),p=(e,A)=>{if(0!==e.button)return;let{autoPanOnConnect:n,domNode:r,isValidConnection:i,connectionMode:o,connectionRadius:s,lib:a,onConnectStart:h,onConnectEnd:g,cancelConnection:p,nodeLookup:B,rfId:m,panBy:w,updateConnection:y}=f.getState(),x="target"===A.type;oK.XYHandle.onPointerDown(e.nativeEvent,{autoPanOnConnect:n,connectionMode:o,connectionRadius:s,domNode:r,handleId:A.id,nodeId:A.nodeId,nodeLookup:B,isTarget:x,edgeUpdaterType:A.type,lib:a,flowId:m,cancelConnection:p,panBy:w,isValidConnection:i,onConnect:e=>l?.(t,e),onConnectStart:(n,r)=>{d(!0),c?.(e,t,A.type),h?.(n,r)},onConnectEnd:g,onReconnectEnd:(e,n)=>{d(!1),u?.(e,t,A.type,n)},updateConnection:y,getTransform:()=>f.getState().transform,getFromHandle:()=>f.getState().connection.fromHandle,dragThreshold:f.getState().connectionDragThreshold,handleDomNode:e.currentTarget})},B=()=>h(!0),m=()=>h(!1);return(0,g.jsxs)(g.Fragment,{children:[(!0===e||"source"===e)&&(0,g.jsx)(aI,{position:s,centerX:n,centerY:r,radius:A,onMouseDown:e=>p(e,{nodeId:t.target,id:t.targetHandle??null,type:"target"}),onMouseEnter:B,onMouseOut:m,type:"source"}),(!0===e||"target"===e)&&(0,g.jsx)(aI,{position:a,centerX:i,centerY:o,radius:A,onMouseDown:e=>p(e,{nodeId:t.source,id:t.sourceHandle??null,type:"source"}),onMouseEnter:B,onMouseOut:m,type:"target"})]})}var ak=(0,E.memo)(function({id:e,edgesFocusable:A,edgesReconnectable:t,elementsSelectable:n,onClick:r,onDoubleClick:i,onContextMenu:o,onMouseEnter:s,onMouseMove:a,onMouseLeave:l,reconnectRadius:c,onReconnect:u,onReconnectStart:d,onReconnectEnd:h,rfId:f,edgeTypes:p,noPanClassName:B,onError:m,disableKeyboardA11y:w}){let y=o4(A=>A.edgeLookup.get(e)),x=o4(e=>e.defaultEdgeOptions),C=(y=x?{...x,...y}:y).type||"default",b=p?.[C]||aF[C];void 0===b&&(m?.("011",oK.errorMessages.error011(C)),C="default",b=p?.default||aF.default);let v=!!(y.focusable||A&&void 0===y.focusable),Q=void 0!==u&&(y.reconnectable||t&&void 0===y.reconnectable),F=!!(y.selectable||n&&void 0===y.selectable),U=(0,E.useRef)(null),[I,S]=(0,E.useState)(!1),[k,j]=(0,E.useState)(!1),H=o3(),{zIndex:D,sourceX:L,sourceY:R,targetX:T,targetY:M,sourcePosition:O,targetPosition:N}=o4((0,E.useCallback)(A=>{let t=A.nodeLookup.get(y.source),n=A.nodeLookup.get(y.target);if(!t||!n)return{zIndex:y.zIndex,...aU};let r=(0,oK.getEdgePosition)({id:e,sourceNode:t,targetNode:n,sourceHandle:y.sourceHandle||null,targetHandle:y.targetHandle||null,connectionMode:A.connectionMode,onError:m});return{zIndex:(0,oK.getElevatedEdgeZIndex)({selected:y.selected,zIndex:y.zIndex,sourceNode:t,targetNode:n,elevateOnSelect:A.elevateEdgesOnSelect}),...r||aU}},[y.source,y.target,y.sourceHandle,y.targetHandle,y.selected,y.zIndex]),oq),P=(0,E.useMemo)(()=>y.markerStart?`url('#${(0,oK.getMarkerId)(y.markerStart,f)}')`:void 0,[y.markerStart,f]),_=(0,E.useMemo)(()=>y.markerEnd?`url('#${(0,oK.getMarkerId)(y.markerEnd,f)}')`:void 0,[y.markerEnd,f]);if(y.hidden||null===L||null===R||null===T||null===M)return null;let K=i?e=>{i(e,{...y})}:void 0,V=o?e=>{o(e,{...y})}:void 0,G=s?e=>{s(e,{...y})}:void 0,z=a?e=>{a(e,{...y})}:void 0,W=l?e=>{l(e,{...y})}:void 0;return(0,g.jsx)("svg",{style:{zIndex:D},children:(0,g.jsxs)("g",{className:o_(["react-flow__edge",`react-flow__edge-${C}`,y.className,B,{selected:y.selected,animated:y.animated,inactive:!F&&!r,updating:I,selectable:F}]),onClick:A=>{let{addSelectedEdges:t,unselectNodesAndEdges:n,multiSelectionActive:i}=H.getState();F&&(H.setState({nodesSelectionActive:!1}),y.selected&&i?(n({nodes:[],edges:[y]}),U.current?.blur()):t([e])),r&&r(A,y)},onDoubleClick:K,onContextMenu:V,onMouseEnter:G,onMouseMove:z,onMouseLeave:W,onKeyDown:v?A=>{if(!w&&oK.elementSelectionKeys.includes(A.key)&&F){let{unselectNodesAndEdges:t,addSelectedEdges:n}=H.getState();"Escape"===A.key?(U.current?.blur(),t({edges:[y]})):n([e])}}:void 0,tabIndex:v?0:void 0,role:y.ariaRole??(v?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":null===y.ariaLabel?void 0:y.ariaLabel||`Edge from ${y.source} to ${y.target}`,"aria-describedby":v?`${o7}-${f}`:void 0,ref:U,...y.domAttributes,children:[!k&&(0,g.jsx)(b,{id:e,source:y.source,target:y.target,type:y.type,selected:y.selected,animated:y.animated,selectable:F,deletable:y.deletable??!0,label:y.label,labelStyle:y.labelStyle,labelShowBg:y.labelShowBg,labelBgStyle:y.labelBgStyle,labelBgPadding:y.labelBgPadding,labelBgBorderRadius:y.labelBgBorderRadius,sourceX:L,sourceY:R,targetX:T,targetY:M,sourcePosition:O,targetPosition:N,data:y.data,style:y.style,sourceHandleId:y.sourceHandle,targetHandleId:y.targetHandle,markerStart:P,markerEnd:_,pathOptions:"pathOptions"in y?y.pathOptions:void 0,interactionWidth:y.interactionWidth}),Q&&(0,g.jsx)(aS,{edge:y,isReconnectable:Q,reconnectRadius:c,onReconnect:u,onReconnectStart:d,onReconnectEnd:h,sourceX:L,sourceY:R,targetX:T,targetY:M,sourcePosition:O,targetPosition:N,setUpdateHover:S,setReconnecting:j})]})})});let aj=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function aH({defaultMarkerColor:e,onlyRenderVisibleElements:A,rfId:t,edgeTypes:n,noPanClassName:r,onReconnect:i,onEdgeContextMenu:o,onEdgeMouseEnter:s,onEdgeMouseMove:a,onEdgeMouseLeave:l,onEdgeClick:c,reconnectRadius:u,onEdgeDoubleClick:d,onReconnectStart:h,onReconnectEnd:f,disableKeyboardA11y:p}){let{edgesFocusable:B,edgesReconnectable:m,elementsSelectable:w,onError:y}=o4(aj,oq),x=o4((0,E.useCallback)(e=>{if(!A)return e.edges.map(e=>e.id);let t=[];if(e.width&&e.height)for(let A of e.edges){let n=e.nodeLookup.get(A.source),r=e.nodeLookup.get(A.target);n&&r&&(0,oK.isEdgeVisible)({sourceNode:n,targetNode:r,width:e.width,height:e.height,transform:e.transform})&&t.push(A.id)}return t},[A]),oq);return(0,g.jsxs)("div",{className:"react-flow__edges",children:[(0,g.jsx)(ai,{defaultColor:e,rfId:t}),x.map(e=>(0,g.jsx)(ak,{id:e,edgesFocusable:B,edgesReconnectable:m,elementsSelectable:w,noPanClassName:r,onReconnect:i,onContextMenu:o,onMouseEnter:s,onMouseMove:a,onMouseLeave:l,onClick:c,reconnectRadius:u,onDoubleClick:d,onReconnectStart:h,onReconnectEnd:f,rfId:t,onError:y,edgeTypes:n,disableKeyboardA11y:p},e))]})}aH.displayName="EdgeRenderer";let aD=(0,E.memo)(aH),aL=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function aR({children:e}){let A=o4(aL);return(0,g.jsx)("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:A},children:e})}let aT=e=>e.panZoom?.syncViewport;function aM(e){return e.connection.inProgress?{...e.connection,to:(0,oK.pointToRendererPoint)(e.connection.to,e.transform)}:{...e.connection}}let aO=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function aN({containerStyle:e,style:A,type:t,component:n}){let{nodesConnectable:r,width:i,height:o,isValid:s,inProgress:a}=o4(aO,oq);return i&&r&&a?(0,g.jsx)("svg",{style:e,width:i,height:o,className:"react-flow__connectionline react-flow__container",children:(0,g.jsx)("g",{className:o_(["react-flow__connection",(0,oK.getConnectionStatus)(s)]),children:(0,g.jsx)(aP,{style:A,type:t,CustomComponent:n,isValid:s})})}):null}let aP=({style:e,type:A=oK.ConnectionLineType.Bezier,CustomComponent:t,isValid:n})=>{let{inProgress:r,from:i,fromNode:o,fromHandle:s,fromPosition:a,to:l,toNode:c,toHandle:u,toPosition:d,pointer:h}=o4(aM,oq);if(!r)return;if(t)return(0,g.jsx)(t,{connectionLineType:A,connectionLineStyle:e,fromNode:o,fromHandle:s,fromX:i.x,fromY:i.y,toX:l.x,toY:l.y,fromPosition:a,toPosition:d,connectionStatus:(0,oK.getConnectionStatus)(n),toNode:c,toHandle:u,pointer:h});let f="",p={sourceX:i.x,sourceY:i.y,sourcePosition:a,targetX:l.x,targetY:l.y,targetPosition:d};switch(A){case oK.ConnectionLineType.Bezier:[f]=(0,oK.getBezierPath)(p);break;case oK.ConnectionLineType.SimpleBezier:[f]=ac(p);break;case oK.ConnectionLineType.Step:[f]=(0,oK.getSmoothStepPath)({...p,borderRadius:0});break;case oK.ConnectionLineType.SmoothStep:[f]=(0,oK.getSmoothStepPath)(p);break;default:[f]=(0,oK.getStraightPath)(p)}return(0,g.jsx)("path",{d:f,fill:"none",className:"react-flow__connection-path",style:e})};aP.displayName="ConnectionLine";let a_={};function aK(e=a_){(0,E.useRef)(e),o3(),(0,E.useEffect)(()=>{},[e])}function aV({nodeTypes:e,edgeTypes:A,onInit:t,onNodeClick:n,onEdgeClick:r,onNodeDoubleClick:i,onEdgeDoubleClick:o,onNodeMouseEnter:s,onNodeMouseMove:a,onNodeMouseLeave:l,onNodeContextMenu:c,onSelectionContextMenu:u,onSelectionStart:d,onSelectionEnd:h,connectionLineType:f,connectionLineStyle:p,connectionLineComponent:B,connectionLineContainerStyle:m,selectionKeyCode:w,selectionOnDrag:y,selectionMode:x,multiSelectionKeyCode:C,panActivationKeyCode:b,zoomActivationKeyCode:v,deleteKeyCode:Q,onlyRenderVisibleElements:F,elementsSelectable:U,defaultViewport:I,translateExtent:S,minZoom:k,maxZoom:j,preventScrolling:H,defaultMarkerColor:D,zoomOnScroll:L,zoomOnPinch:R,panOnScroll:T,panOnScrollSpeed:M,panOnScrollMode:O,zoomOnDoubleClick:N,panOnDrag:P,onPaneClick:_,onPaneMouseEnter:K,onPaneMouseMove:V,onPaneMouseLeave:G,onPaneScroll:z,onPaneContextMenu:W,paneClickDistance:$,nodeClickDistance:X,onEdgeContextMenu:Y,onEdgeMouseEnter:J,onEdgeMouseMove:q,onEdgeMouseLeave:Z,reconnectRadius:ee,onReconnect:eA,onReconnectStart:et,onReconnectEnd:en,noDragClassName:er,noWheelClassName:ei,noPanClassName:eo,disableKeyboardA11y:es,nodeExtent:ea,rfId:el,viewport:ec,onViewportChange:eu}){let ed,eh,ef,eg;return aK(e),aK(A),o3(),(0,E.useRef)(!1),(0,E.useEffect)(()=>{},[]),ed=sD(),eh=(0,E.useRef)(!1),(0,E.useEffect)(()=>{!eh.current&&ed.viewportInitialized&&t&&(setTimeout(()=>t(ed),1),eh.current=!0)},[t,ed.viewportInitialized]),ef=o4(aT),eg=o3(),(0,E.useEffect)(()=>{ec&&(ef?.(ec),eg.setState({transform:[ec.x,ec.y,ec.zoom]}))},[ec,ef]),(0,g.jsx)(s6,{onPaneClick:_,onPaneMouseEnter:K,onPaneMouseMove:V,onPaneMouseLeave:G,onPaneContextMenu:W,onPaneScroll:z,paneClickDistance:$,deleteKeyCode:Q,selectionKeyCode:w,selectionOnDrag:y,selectionMode:x,onSelectionStart:d,onSelectionEnd:h,multiSelectionKeyCode:C,panActivationKeyCode:b,zoomActivationKeyCode:v,elementsSelectable:U,zoomOnScroll:L,zoomOnPinch:R,zoomOnDoubleClick:N,panOnScroll:T,panOnScrollSpeed:M,panOnScrollMode:O,panOnDrag:P,defaultViewport:I,translateExtent:S,minZoom:k,maxZoom:j,onSelectionContextMenu:u,preventScrolling:H,noDragClassName:er,noWheelClassName:ei,noPanClassName:eo,disableKeyboardA11y:es,onViewportChange:eu,isControlledViewport:!!ec,children:(0,g.jsxs)(aR,{children:[(0,g.jsx)(aD,{edgeTypes:A,onEdgeClick:r,onEdgeDoubleClick:o,onReconnect:eA,onReconnectStart:et,onReconnectEnd:en,onlyRenderVisibleElements:F,onEdgeContextMenu:Y,onEdgeMouseEnter:J,onEdgeMouseMove:q,onEdgeMouseLeave:Z,reconnectRadius:ee,defaultMarkerColor:D,noPanClassName:eo,disableKeyboardA11y:es,rfId:el}),(0,g.jsx)(aN,{style:p,type:f,component:B,containerStyle:m}),(0,g.jsx)("div",{className:"react-flow__edgelabel-renderer"}),(0,g.jsx)(aA,{nodeTypes:e,onNodeClick:n,onNodeDoubleClick:i,onNodeMouseEnter:s,onNodeMouseMove:a,onNodeMouseLeave:l,onNodeContextMenu:c,nodeClickDistance:X,onlyRenderVisibleElements:F,noPanClassName:eo,noDragClassName:er,disableKeyboardA11y:es,nodeExtent:ea,rfId:el}),(0,g.jsx)("div",{className:"react-flow__viewport-portal"})]})})}aV.displayName="GraphView";let aG=(0,E.memo)(aV),az=({nodes:e,edges:A,defaultNodes:t,defaultEdges:n,width:r,height:i,fitView:o,fitViewOptions:s,minZoom:a=.5,maxZoom:l=2,nodeOrigin:c,nodeExtent:u}={})=>{let d=new Map,h=new Map,f=new Map,g=new Map,p=n??A??[],B=t??e??[],m=c??[0,0],w=u??oK.infiniteExtent;(0,oK.updateConnectionLookup)(f,g,p);let y=(0,oK.adoptUserNodes)(B,d,h,{nodeOrigin:m,nodeExtent:w,elevateNodesOnSelect:!1}),x=[0,0,1];if(o&&r&&i){let e=(0,oK.getInternalNodesBounds)(d,{filter:e=>!!((e.width||e.initialWidth)&&(e.height||e.initialHeight))}),{x:A,y:t,zoom:n}=(0,oK.getViewportForBounds)(e,r,i,a,l,s?.padding??.1);x=[A,t,n]}return{rfId:"1",width:r??0,height:i??0,transform:x,nodes:B,nodesInitialized:y,nodeLookup:d,parentLookup:h,edges:p,edgeLookup:g,connectionLookup:f,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:void 0!==t,hasDefaultEdges:void 0!==n,panZoom:null,minZoom:a,maxZoom:l,translateExtent:oK.infiniteExtent,nodeExtent:w,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:oK.ConnectionMode.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:m,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:o??!1,fitViewOptions:s,fitViewResolver:null,connection:{...oK.initialConnection},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:oK.devWarn,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:oK.defaultAriaLabelConfig}};function aW({initialNodes:e,initialEdges:A,defaultNodes:t,defaultEdges:n,initialWidth:r,initialHeight:i,initialMinZoom:o,initialMaxZoom:s,initialFitViewOptions:a,fitView:l,nodeOrigin:c,nodeExtent:u,children:d}){let[h]=(0,E.useState)(()=>(({nodes:e,edges:A,defaultNodes:t,defaultEdges:n,width:r,height:i,fitView:o,fitViewOptions:s,minZoom:a,maxZoom:l,nodeOrigin:c,nodeExtent:u})=>{let d,h;return d=(d,h)=>{async function f(){let{nodeLookup:e,panZoom:A,fitViewOptions:t,fitViewResolver:n,width:r,height:i,minZoom:o,maxZoom:s}=h();A&&(await (0,oK.fitViewport)({nodes:e,width:r,height:i,panZoom:A,minZoom:o,maxZoom:s},t),n?.resolve(!0),d({fitViewResolver:null}))}return{...az({nodes:e,edges:A,width:r,height:i,fitView:o,fitViewOptions:s,minZoom:a,maxZoom:l,nodeOrigin:c,nodeExtent:u,defaultNodes:t,defaultEdges:n}),setNodes:e=>{let{nodeLookup:A,parentLookup:t,nodeOrigin:n,elevateNodesOnSelect:r,fitViewQueued:i}=h(),o=(0,oK.adoptUserNodes)(e,A,t,{nodeOrigin:n,nodeExtent:u,elevateNodesOnSelect:r,checkEquality:!0});i&&o?(f(),d({nodes:e,nodesInitialized:o,fitViewQueued:!1,fitViewOptions:void 0})):d({nodes:e,nodesInitialized:o})},setEdges:e=>{let{connectionLookup:A,edgeLookup:t}=h();(0,oK.updateConnectionLookup)(A,t,e),d({edges:e})},setDefaultNodesAndEdges:(e,A)=>{if(e){let{setNodes:A}=h();A(e),d({hasDefaultNodes:!0})}if(A){let{setEdges:e}=h();e(A),d({hasDefaultEdges:!0})}},updateNodeInternals:e=>{let{triggerNodeChanges:A,nodeLookup:t,parentLookup:n,domNode:r,nodeOrigin:i,nodeExtent:o,debug:s,fitViewQueued:a}=h(),{changes:l,updatedInternals:c}=(0,oK.updateNodeInternals)(e,t,n,r,i,o);c&&((0,oK.updateAbsolutePositions)(t,n,{nodeOrigin:i,nodeExtent:o}),a?(f(),d({fitViewQueued:!1,fitViewOptions:void 0})):d({}),l?.length>0&&(s&&console.log("React Flow: trigger node changes",l),A?.(l)))},updateNodePositions:(e,A=!1)=>{let t=[],n=[],{nodeLookup:r,triggerNodeChanges:i}=h();for(let[i,o]of e){let e=r.get(i),s=!!(e?.expandParent&&e?.parentId&&o?.position),a={id:i,type:"position",position:s?{x:Math.max(0,o.position.x),y:Math.max(0,o.position.y)}:o.position,dragging:A};s&&e.parentId&&t.push({id:i,parentId:e.parentId,rect:{...o.internals.positionAbsolute,width:o.measured.width??0,height:o.measured.height??0}}),n.push(a)}if(t.length>0){let{parentLookup:e,nodeOrigin:A}=h(),i=(0,oK.handleExpandParent)(t,r,e,A);n.push(...i)}i(n)},triggerNodeChanges:e=>{let{onNodesChange:A,setNodes:t,nodes:n,hasDefaultNodes:r,debug:i}=h();e?.length&&(r&&t(sC(e,n)),i&&console.log("React Flow: trigger node changes",e),A?.(e))},triggerEdgeChanges:e=>{let{onEdgesChange:A,setEdges:t,edges:n,hasDefaultEdges:r,debug:i}=h();e?.length&&(r&&t(sC(e,n)),i&&console.log("React Flow: trigger edge changes",e),A?.(e))},addSelectedNodes:e=>{let{multiSelectionActive:A,edgeLookup:t,nodeLookup:n,triggerNodeChanges:r,triggerEdgeChanges:i}=h();A?r(e.map(e=>sb(e,!0))):(r(sv(n,new Set([...e]),!0)),i(sv(t)))},addSelectedEdges:e=>{let{multiSelectionActive:A,edgeLookup:t,nodeLookup:n,triggerNodeChanges:r,triggerEdgeChanges:i}=h();A?i(e.map(e=>sb(e,!0))):(i(sv(t,new Set([...e]))),r(sv(n,new Set,!0)))},unselectNodesAndEdges:({nodes:e,edges:A}={})=>{let{edges:t,nodes:n,nodeLookup:r,triggerNodeChanges:i,triggerEdgeChanges:o}=h(),s=(e||n).map(e=>{let A=r.get(e.id);return A&&(A.selected=!1),sb(e.id,!1)}),a=(A||t).map(e=>sb(e.id,!1));i(s),o(a)},setMinZoom:e=>{let{panZoom:A,maxZoom:t}=h();A?.setScaleExtent([e,t]),d({minZoom:e})},setMaxZoom:e=>{let{panZoom:A,minZoom:t}=h();A?.setScaleExtent([t,e]),d({maxZoom:e})},setTranslateExtent:e=>{h().panZoom?.setTranslateExtent(e),d({translateExtent:e})},resetSelectedElements:()=>{let{edges:e,nodes:A,triggerNodeChanges:t,triggerEdgeChanges:n,elementsSelectable:r}=h();if(!r)return;let i=A.reduce((e,A)=>A.selected?[...e,sb(A.id,!1)]:e,[]),o=e.reduce((e,A)=>A.selected?[...e,sb(A.id,!1)]:e,[]);t(i),n(o)},setNodeExtent:e=>{let{nodes:A,nodeLookup:t,parentLookup:n,nodeOrigin:r,elevateNodesOnSelect:i,nodeExtent:o}=h();(e[0][0]!==o[0][0]||e[0][1]!==o[0][1]||e[1][0]!==o[1][0]||e[1][1]!==o[1][1])&&((0,oK.adoptUserNodes)(A,t,n,{nodeOrigin:r,nodeExtent:e,elevateNodesOnSelect:i,checkEquality:!1}),d({nodeExtent:e}))},panBy:e=>{let{transform:A,width:t,height:n,panZoom:r,translateExtent:i}=h();return(0,oK.panBy)({delta:e,panZoom:r,transform:A,translateExtent:i,width:t,height:n})},setCenter:async(e,A,t)=>{let{width:n,height:r,maxZoom:i,panZoom:o}=h();if(!o)return Promise.resolve(!1);let s=void 0!==t?.zoom?t.zoom:i;return await o.setViewport({x:n/2-e*s,y:r/2-A*s,zoom:s},{duration:t?.duration,ease:t?.ease,interpolate:t?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{d({connection:{...oK.initialConnection}})},updateConnection:e=>{d({connection:e})},reset:()=>d({...az()})}},h=Object.is,d?oJ(d,h):oJ})({nodes:e,edges:A,defaultNodes:t,defaultEdges:n,width:r,height:i,fitView:l,minZoom:o,maxZoom:s,fitViewOptions:a,nodeOrigin:c,nodeExtent:u}));return(0,g.jsx)(o1,{value:h,children:(0,g.jsx)(sj,{children:d})})}function a$({children:e,nodes:A,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:o,fitView:s,fitViewOptions:a,minZoom:l,maxZoom:c,nodeOrigin:u,nodeExtent:d}){return(0,E.useContext)(o0)?(0,g.jsx)(g.Fragment,{children:e}):(0,g.jsx)(aW,{initialNodes:A,initialEdges:t,defaultNodes:n,defaultEdges:r,initialWidth:i,initialHeight:o,fitView:s,initialFitViewOptions:a,initialMinZoom:l,initialMaxZoom:c,nodeOrigin:u,nodeExtent:d,children:e})}let aX={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};var aY=sE(function({nodes:e,edges:A,defaultNodes:t,defaultEdges:n,className:r,nodeTypes:i,edgeTypes:o,onNodeClick:s,onEdgeClick:a,onInit:l,onMove:c,onMoveStart:u,onMoveEnd:d,onConnect:h,onConnectStart:f,onConnectEnd:p,onClickConnectStart:B,onClickConnectEnd:m,onNodeMouseEnter:w,onNodeMouseMove:y,onNodeMouseLeave:x,onNodeContextMenu:C,onNodeDoubleClick:b,onNodeDragStart:v,onNodeDrag:Q,onNodeDragStop:F,onNodesDelete:U,onEdgesDelete:I,onDelete:S,onSelectionChange:k,onSelectionDragStart:j,onSelectionDrag:H,onSelectionDragStop:D,onSelectionContextMenu:L,onSelectionStart:R,onSelectionEnd:T,onBeforeDelete:M,connectionMode:O,connectionLineType:N=oK.ConnectionLineType.Bezier,connectionLineStyle:P,connectionLineComponent:_,connectionLineContainerStyle:K,deleteKeyCode:V="Backspace",selectionKeyCode:G="Shift",selectionOnDrag:z=!1,selectionMode:W=oK.SelectionMode.Full,panActivationKeyCode:$="Space",multiSelectionKeyCode:X=(0,oK.isMacOs)()?"Meta":"Control",zoomActivationKeyCode:Y=(0,oK.isMacOs)()?"Meta":"Control",snapToGrid:J,snapGrid:q,onlyRenderVisibleElements:Z=!1,selectNodesOnDrag:ee,nodesDraggable:eA,autoPanOnNodeFocus:et,nodesConnectable:en,nodesFocusable:er,nodeOrigin:ei=su,edgesFocusable:eo,edgesReconnectable:es,elementsSelectable:ea=!0,defaultViewport:el=sd,minZoom:ec=.5,maxZoom:eu=2,translateExtent:ed=oK.infiniteExtent,preventScrolling:eh=!0,nodeExtent:ef,defaultMarkerColor:eg="#b1b1b7",zoomOnScroll:ep=!0,zoomOnPinch:eB=!0,panOnScroll:em=!1,panOnScrollSpeed:ew=.5,panOnScrollMode:ey=oK.PanOnScrollMode.Free,zoomOnDoubleClick:ex=!0,panOnDrag:eC=!0,onPaneClick:eb,onPaneMouseEnter:ev,onPaneMouseMove:eQ,onPaneMouseLeave:eF,onPaneScroll:eU,onPaneContextMenu:eE,paneClickDistance:eI=1,nodeClickDistance:eS=0,children:ek,onReconnect:ej,onReconnectStart:eH,onReconnectEnd:eD,onEdgeContextMenu:eL,onEdgeDoubleClick:eR,onEdgeMouseEnter:eT,onEdgeMouseMove:eM,onEdgeMouseLeave:eO,reconnectRadius:eN=10,onNodesChange:eP,onEdgesChange:e_,noDragClassName:eK="nodrag",noWheelClassName:eV="nowheel",noPanClassName:eG="nopan",fitView:ez,fitViewOptions:eW,connectOnClick:e$,attributionPosition:eX,proOptions:eY,defaultEdgeOptions:eJ,elevateNodesOnSelect:eq,elevateEdgesOnSelect:eZ,disableKeyboardA11y:e0=!1,autoPanOnConnect:e1,autoPanOnNodeDrag:e2,autoPanSpeed:e4,connectionRadius:e3,isValidConnection:e5,onError:e6,style:e8,id:e7,nodeDragThreshold:e9,connectionDragThreshold:Ae,viewport:AA,onViewportChange:At,width:An,height:Ar,colorMode:Ai="light",debug:Ao,onScroll:As,ariaLabelConfig:Aa,...Al},Ac){let Au=e7||"1",Ad=function(e){let[A,t]=(0,E.useState)("system"===e?null:e);return(0,E.useEffect)(()=>{if("system"!==e)return void t(e);let A=sB(),n=()=>t(A?.matches?"dark":"light");return n(),A?.addEventListener("change",n),()=>{A?.removeEventListener("change",n)}},[e]),null!==A?A:sB()?.matches?"dark":"light"}(Ai),Ah=(0,E.useCallback)(e=>{e.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),As?.(e)},[As]);return(0,g.jsx)("div",{"data-testid":"rf__wrapper",...Al,onScroll:Ah,style:{...e8,...aX},ref:Ac,className:o_(["react-flow",r,Ad]),id:e7,role:"application",children:(0,g.jsxs)(a$,{nodes:e,edges:A,width:An,height:Ar,fitView:ez,fitViewOptions:eW,minZoom:ec,maxZoom:eu,nodeOrigin:ei,nodeExtent:ef,children:[(0,g.jsx)(aG,{onInit:l,onNodeClick:s,onEdgeClick:a,onNodeMouseEnter:w,onNodeMouseMove:y,onNodeMouseLeave:x,onNodeContextMenu:C,onNodeDoubleClick:b,nodeTypes:i,edgeTypes:o,connectionLineType:N,connectionLineStyle:P,connectionLineComponent:_,connectionLineContainerStyle:K,selectionKeyCode:G,selectionOnDrag:z,selectionMode:W,deleteKeyCode:V,multiSelectionKeyCode:X,panActivationKeyCode:$,zoomActivationKeyCode:Y,onlyRenderVisibleElements:Z,defaultViewport:el,translateExtent:ed,minZoom:ec,maxZoom:eu,preventScrolling:eh,zoomOnScroll:ep,zoomOnPinch:eB,zoomOnDoubleClick:ex,panOnScroll:em,panOnScrollSpeed:ew,panOnScrollMode:ey,panOnDrag:eC,onPaneClick:eb,onPaneMouseEnter:ev,onPaneMouseMove:eQ,onPaneMouseLeave:eF,onPaneScroll:eU,onPaneContextMenu:eE,paneClickDistance:eI,nodeClickDistance:eS,onSelectionContextMenu:L,onSelectionStart:R,onSelectionEnd:T,onReconnect:ej,onReconnectStart:eH,onReconnectEnd:eD,onEdgeContextMenu:eL,onEdgeDoubleClick:eR,onEdgeMouseEnter:eT,onEdgeMouseMove:eM,onEdgeMouseLeave:eO,reconnectRadius:eN,defaultMarkerColor:eg,noDragClassName:eK,noWheelClassName:eV,noPanClassName:eG,rfId:Au,disableKeyboardA11y:e0,nodeExtent:ef,viewport:AA,onViewportChange:At}),(0,g.jsx)(sp,{nodes:e,edges:A,defaultNodes:t,defaultEdges:n,onConnect:h,onConnectStart:f,onConnectEnd:p,onClickConnectStart:B,onClickConnectEnd:m,nodesDraggable:eA,autoPanOnNodeFocus:et,nodesConnectable:en,nodesFocusable:er,edgesFocusable:eo,edgesReconnectable:es,elementsSelectable:ea,elevateNodesOnSelect:eq,elevateEdgesOnSelect:eZ,minZoom:ec,maxZoom:eu,nodeExtent:ef,onNodesChange:eP,onEdgesChange:e_,snapToGrid:J,snapGrid:q,connectionMode:O,translateExtent:ed,connectOnClick:e$,defaultEdgeOptions:eJ,fitView:ez,fitViewOptions:eW,onNodesDelete:U,onEdgesDelete:I,onDelete:S,onNodeDragStart:v,onNodeDrag:Q,onNodeDragStop:F,onSelectionDrag:H,onSelectionDragStart:j,onSelectionDragStop:D,onMove:c,onMoveStart:u,onMoveEnd:d,noPanClassName:eG,nodeOrigin:ei,rfId:Au,autoPanOnConnect:e1,autoPanOnNodeDrag:e2,autoPanSpeed:e4,onError:e6,connectionRadius:e3,isValidConnection:e5,selectNodesOnDrag:ee,nodeDragThreshold:e9,connectionDragThreshold:Ae,onBeforeDelete:M,debug:Ao,ariaLabelConfig:Aa}),(0,g.jsx)(sc,{onSelectionChange:k}),ek,(0,g.jsx)(sr,{proOptions:eY,position:eX}),(0,g.jsx)(st,{rfId:Au,disableKeyboardA11y:e0})]})})});function aJ({dimensions:e,lineWidth:A,variant:t,className:n}){return(0,g.jsx)("path",{strokeWidth:A,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:o_(["react-flow__background-pattern",t,n])})}function aq({radius:e,className:A}){return(0,g.jsx)("circle",{cx:e,cy:e,r:e,className:o_(["react-flow__background-pattern","dots",A])})}oK.errorMessages.error014(),(h=f||(f={})).Lines="lines",h.Dots="dots",h.Cross="cross";let aZ={[f.Dots]:1,[f.Lines]:1,[f.Cross]:6},a0=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function a1({id:e,variant:A=f.Dots,gap:t=20,size:n,lineWidth:r=1,offset:i=0,color:o,bgColor:s,style:a,className:l,patternClassName:c}){let u=(0,E.useRef)(null),{transform:d,patternId:h}=o4(a0,oq),p=n||aZ[A],B=A===f.Dots,m=A===f.Cross,w=Array.isArray(t)?t:[t,t],y=[w[0]*d[2]||1,w[1]*d[2]||1],x=p*d[2],C=Array.isArray(i)?i:[i,i],b=m?[x,x]:y,v=[C[0]*d[2]||1+b[0]/2,C[1]*d[2]||1+b[1]/2],Q=`${h}${e||""}`;return(0,g.jsxs)("svg",{className:o_(["react-flow__background",l]),style:{...a,...sT,"--xy-background-color-props":s,"--xy-background-pattern-color-props":o},ref:u,"data-testid":"rf__background",children:[(0,g.jsx)("pattern",{id:Q,x:d[0]%y[0],y:d[1]%y[1],width:y[0],height:y[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${v[0]},-${v[1]})`,children:B?(0,g.jsx)(aq,{radius:x/2,className:c}):(0,g.jsx)(aJ,{dimensions:b,lineWidth:r,variant:A,className:c})}),(0,g.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${Q})`})]})}a1.displayName="Background";let a2=(0,E.memo)(a1);function a4(){return(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:(0,g.jsx)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function a3(){return(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:(0,g.jsx)("path",{d:"M0 0h32v4.2H0z"})})}function a5(){return(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:(0,g.jsx)("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function a6(){return(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,g.jsx)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function a8(){return(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,g.jsx)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function a7({children:e,className:A,...t}){return(0,g.jsx)("button",{type:"button",className:o_(["react-flow__controls-button",A]),...t,children:e})}let a9=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function le({style:e,showZoom:A=!0,showFitView:t=!0,showInteractive:n=!0,fitViewOptions:r,onZoomIn:i,onZoomOut:o,onFitView:s,onInteractiveChange:a,className:l,children:c,position:u="bottom-left",orientation:d="vertical","aria-label":h}){let f=o3(),{isInteractive:p,minZoomReached:B,maxZoomReached:m,ariaLabelConfig:w}=o4(a9,oq),{zoomIn:y,zoomOut:x,fitView:C}=sD();return(0,g.jsxs)(sn,{className:o_(["react-flow__controls","horizontal"===d?"horizontal":"vertical",l]),position:u,style:e,"data-testid":"rf__controls","aria-label":h??w["controls.ariaLabel"],children:[A&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(a7,{onClick:()=>{y(),i?.()},className:"react-flow__controls-zoomin",title:w["controls.zoomIn.ariaLabel"],"aria-label":w["controls.zoomIn.ariaLabel"],disabled:m,children:(0,g.jsx)(a4,{})}),(0,g.jsx)(a7,{onClick:()=>{x(),o?.()},className:"react-flow__controls-zoomout",title:w["controls.zoomOut.ariaLabel"],"aria-label":w["controls.zoomOut.ariaLabel"],disabled:B,children:(0,g.jsx)(a3,{})})]}),t&&(0,g.jsx)(a7,{className:"react-flow__controls-fitview",onClick:()=>{C(r),s?.()},title:w["controls.fitView.ariaLabel"],"aria-label":w["controls.fitView.ariaLabel"],children:(0,g.jsx)(a5,{})}),n&&(0,g.jsx)(a7,{className:"react-flow__controls-interactive",onClick:()=>{f.setState({nodesDraggable:!p,nodesConnectable:!p,elementsSelectable:!p}),a?.(!p)},title:w["controls.interactive.ariaLabel"],"aria-label":w["controls.interactive.ariaLabel"],children:p?(0,g.jsx)(a8,{}):(0,g.jsx)(a6,{})}),c]})}le.displayName="Controls";let lA=(0,E.memo)(le),lt=(0,E.memo)(function({id:e,x:A,y:t,width:n,height:r,style:i,color:o,strokeColor:s,strokeWidth:a,className:l,borderRadius:c,shapeRendering:u,selected:d,onClick:h}){let{background:f,backgroundColor:p}=i||{};return(0,g.jsx)("rect",{className:o_(["react-flow__minimap-node",{selected:d},l]),x:A,y:t,rx:c,ry:c,width:n,height:r,style:{fill:o||f||p,stroke:s,strokeWidth:a},shapeRendering:u,onClick:h?A=>h(A,e):void 0})}),ln=e=>e.nodes.map(e=>e.id),lr=e=>e instanceof Function?e:()=>e,li=(0,E.memo)(function({id:e,nodeColorFunc:A,nodeStrokeColorFunc:t,nodeClassNameFunc:n,nodeBorderRadius:r,nodeStrokeWidth:i,shapeRendering:o,NodeComponent:s,onClick:a}){let{node:l,x:c,y:u,width:d,height:h}=o4(A=>{let{internals:t}=A.nodeLookup.get(e),n=t.userNode,{x:r,y:i}=t.positionAbsolute,{width:o,height:s}=(0,oK.getNodeDimensions)(n);return{node:n,x:r,y:i,width:o,height:s}},oq);return l&&!l.hidden&&(0,oK.nodeHasDimensions)(l)?(0,g.jsx)(s,{x:c,y:u,width:d,height:h,style:l.style,selected:!!l.selected,className:n(l),color:A(l),borderRadius:r,strokeColor:t(l),strokeWidth:i,shapeRendering:o,onClick:a,id:l.id}):null});var lo=(0,E.memo)(function({nodeStrokeColor:e,nodeColor:A,nodeClassName:t="",nodeBorderRadius:n=5,nodeStrokeWidth:r,nodeComponent:i=lt,onClick:o}){let s=o4(ln,oq),a=lr(A),l=lr(e),c=lr(t),u="undefined"==typeof window||window.chrome?"crispEdges":"geometricPrecision";return(0,g.jsx)(g.Fragment,{children:s.map(e=>(0,g.jsx)(li,{id:e,nodeColorFunc:a,nodeStrokeColorFunc:l,nodeClassNameFunc:c,nodeBorderRadius:n,nodeStrokeWidth:r,NodeComponent:i,onClick:o,shapeRendering:u},e))})});let ls=e=>!e.hidden,la=e=>{let A={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:A,boundingRect:e.nodeLookup.size>0?(0,oK.getBoundsOfRects)((0,oK.getInternalNodesBounds)(e.nodeLookup,{filter:ls}),A):A,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}};function ll({style:e,className:A,nodeStrokeColor:t,nodeColor:n,nodeClassName:r="",nodeBorderRadius:i=5,nodeStrokeWidth:o,nodeComponent:s,bgColor:a,maskColor:l,maskStrokeColor:c,maskStrokeWidth:u,position:d="bottom-right",onClick:h,onNodeClick:f,pannable:p=!1,zoomable:B=!1,ariaLabel:m,inversePan:w,zoomStep:y=1,offsetScale:x=5}){let C=o3(),b=(0,E.useRef)(null),{boundingRect:v,viewBB:Q,rfId:F,panZoom:U,translateExtent:I,flowWidth:S,flowHeight:k,ariaLabelConfig:j}=o4(la,oq),H=e?.width??200,D=e?.height??150,L=Math.max(v.width/H,v.height/D),R=L*H,T=L*D,M=x*L,O=v.x-(R-v.width)/2-M,N=v.y-(T-v.height)/2-M,P=R+2*M,_=T+2*M,K=`react-flow__minimap-desc-${F}`,V=(0,E.useRef)(0),G=(0,E.useRef)();V.current=L,(0,E.useEffect)(()=>{if(b.current&&U)return G.current=(0,oK.XYMinimap)({domNode:b.current,panZoom:U,getTransform:()=>C.getState().transform,getViewScale:()=>V.current}),()=>{G.current?.destroy()}},[U]),(0,E.useEffect)(()=>{G.current?.update({translateExtent:I,width:S,height:k,inversePan:w,pannable:p,zoomStep:y,zoomable:B})},[p,B,w,y,I,S,k]);let z=h?e=>{let[A,t]=G.current?.pointer(e)||[0,0];h(e,{x:A,y:t})}:void 0,W=f?(0,E.useCallback)((e,A)=>{f(e,C.getState().nodeLookup.get(A).internals.userNode)},[]):void 0,$=m??j["minimap.ariaLabel"];return(0,g.jsx)(sn,{position:d,style:{...e,"--xy-minimap-background-color-props":"string"==typeof a?a:void 0,"--xy-minimap-mask-background-color-props":"string"==typeof l?l:void 0,"--xy-minimap-mask-stroke-color-props":"string"==typeof c?c:void 0,"--xy-minimap-mask-stroke-width-props":"number"==typeof u?u*L:void 0,"--xy-minimap-node-background-color-props":"string"==typeof n?n:void 0,"--xy-minimap-node-stroke-color-props":"string"==typeof t?t:void 0,"--xy-minimap-node-stroke-width-props":"number"==typeof o?o:void 0},className:o_(["react-flow__minimap",A]),"data-testid":"rf__minimap",children:(0,g.jsxs)("svg",{width:H,height:D,viewBox:`${O} ${N} ${P} ${_}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":K,ref:b,onClick:z,children:[$&&(0,g.jsx)("title",{id:K,children:$}),(0,g.jsx)(lo,{onClick:W,nodeColor:n,nodeStrokeColor:t,nodeBorderRadius:i,nodeClassName:r,nodeStrokeWidth:o,nodeComponent:s}),(0,g.jsx)("path",{className:"react-flow__minimap-mask",d:`M${O-M},${N-M}h${P+2*M}v${_+2*M}h${-P-2*M}z
|
|
2
|
+
M${Q.x},${Q.y}h${Q.width}v${Q.height}h${-Q.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}ll.displayName="MiniMap";let lc=(0,E.memo)(ll),lu={[oK.ResizeControlVariant.Line]:"right",[oK.ResizeControlVariant.Handle]:"bottom-right"};(0,E.memo)(function({nodeId:e,position:A,variant:t=oK.ResizeControlVariant.Handle,className:n,style:r,children:i,color:o,minWidth:s=10,minHeight:a=10,maxWidth:l=Number.MAX_VALUE,maxHeight:c=Number.MAX_VALUE,keepAspectRatio:u=!1,resizeDirection:d,autoScale:h=!0,shouldResize:f,onResizeStart:p,onResize:B,onResizeEnd:m}){let w,y=sY(),x="string"==typeof e?e:y,C=o3(),b=(0,E.useRef)(null),v=t===oK.ResizeControlVariant.Handle,Q=o4((0,E.useCallback)((w=v&&h,e=>w?`${Math.max(1/e.transform[2],1)}`:void 0),[v,h]),oq),F=(0,E.useRef)(null),U=A??lu[t];(0,E.useEffect)(()=>{if(b.current&&x)return F.current||(F.current=(0,oK.XYResizer)({domNode:b.current,nodeId:x,getStoreItems:()=>{let{nodeLookup:e,transform:A,snapGrid:t,snapToGrid:n,nodeOrigin:r,domNode:i}=C.getState();return{nodeLookup:e,transform:A,snapGrid:t,snapToGrid:n,nodeOrigin:r,paneDomNode:i}},onChange:(e,A)=>{let{triggerNodeChanges:t,nodeLookup:n,parentLookup:r,nodeOrigin:i}=C.getState(),o=[],s={x:e.x,y:e.y},a=n.get(x);if(a&&a.expandParent&&a.parentId){let A=a.origin??i,t=e.width??a.measured.width??0,l=e.height??a.measured.height??0,c={id:a.id,parentId:a.parentId,rect:{width:t,height:l,...(0,oK.evaluateAbsolutePosition)({x:e.x??a.position.x,y:e.y??a.position.y},{width:t,height:l},a.parentId,n,A)}},u=(0,oK.handleExpandParent)([c],n,r,i);o.push(...u),s.x=e.x?Math.max(A[0]*t,e.x):void 0,s.y=e.y?Math.max(A[1]*l,e.y):void 0}if(void 0!==s.x&&void 0!==s.y){let e={id:x,type:"position",position:{...s}};o.push(e)}if(void 0!==e.width&&void 0!==e.height){let A={id:x,type:"dimensions",resizing:!0,setAttributes:!d||("horizontal"===d?"width":"height"),dimensions:{width:e.width,height:e.height}};o.push(A)}for(let e of A){let A={...e,type:"position"};o.push(A)}t(o)},onEnd:({width:e,height:A})=>{C.getState().triggerNodeChanges([{id:x,type:"dimensions",resizing:!1,dimensions:{width:e,height:A}}])}})),F.current.update({controlPosition:U,boundaries:{minWidth:s,minHeight:a,maxWidth:l,maxHeight:c},keepAspectRatio:u,resizeDirection:d,onResizeStart:p,onResize:B,onResizeEnd:m,shouldResize:f}),()=>{F.current?.destroy()}},[U,s,a,l,c,u,p,B,m,f]);let I=U.split("-");return(0,g.jsx)("div",{className:o_(["react-flow__resize-control","nodrag",...I,t,n]),ref:b,style:{...r,scale:Q,...o&&{[v?"backgroundColor":"borderColor"]:o}},children:i})});var ld=e.i(40271);let lh=(0,I.chakra)("div",{base:{borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});lh.displayName="StackSeparator";var lf=e.i(23043),lg=e.i(38208);function lp(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 5 19 12 12 19"},child:[]}]})(e)}function lB(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},child:[]}]})(e)}function lm(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12.01",y2:"8"},child:[]}]})(e)}function lw(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"16.5",y1:"9.4",x2:"7.5",y2:"4.21"},child:[]},{tag:"path",attr:{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"},child:[]},{tag:"polyline",attr:{points:"3.27 6.96 12 12.01 20.73 6.96"},child:[]},{tag:"line",attr:{x1:"12",y1:"22.08",x2:"12",y2:"12"},child:[]}]})(e)}async function ly(e){return(await AR.axiosClient.post("/api/cll",e)).data}async function lx(e){return(await AR.axiosClient.post("/api/checks",{type:"lineage_diff",params:{},view_options:e})).data}async function lC(e){return(await AR.axiosClient.post("/api/checks",{type:"schema_diff",params:e})).data}async function lb(e){return(await AR.axiosClient.post("/api/select",e)).data}var lv=e.i(62754),lQ=e.i(29134);let lF=(0,E.createContext)(void 0),lU=()=>{let e=(0,E.useContext)(lF);if(!e)throw Error("useLineageViewContext must be used within a LineageViewProvider");return e},lE=()=>(0,E.useContext)(lF);function lI({onClose:e}){let{cancel:A,actionState:t}=lU();return(0,g.jsx)(y.Box,{bg:"white",rounded:"md",shadow:"dark-lg",children:(0,g.jsxs)(F.HStack,{p:"5px 15px",mt:"4",separator:(0,g.jsx)(lh,{borderColor:"gray.200"}),gap:4,children:[(0,g.jsxs)(y.Box,{fontSize:"10pt",children:["Progress: ","per_node"===t.mode?`${t.completed} / ${t.total}`:t.currentRun?.progress?.percentage?`${100*t.currentRun.progress.percentage}%`:"completed"===t.status?"100%":"0%"," ","canceled"===t.status?" (canceled)":""]}),"running"===t.status||"canceling"===t.status?(0,g.jsx)(AV.Button,{size:"xs",variant:"outline",onClick:A,loading:"canceling"===t.status,loadingText:"Canceling",children:"Cancel"}):(0,g.jsx)(F.HStack,{children:(0,g.jsx)(AV.Button,{size:"xs",variant:"outline",onClick:e,children:"Close"})})]})})}var lS=e.i(99180);let lk=t1.VscDiffAdded,lj=t1.VscDiffRemoved,lH=t1.VscDiffModified;function lD(e){return"added"===e?{color:"green.solid",hexColor:String(lS.system.token("colors.green.solid")),backgroundColor:"green.subtle",hexBackgroundColor:String(lS.system.token("colors.green.subtle")),icon:lk}:"removed"===e?{color:"red.solid",hexColor:String(lS.system.token("colors.red.solid")),backgroundColor:"red.subtle",hexBackgroundColor:String(lS.system.token("colors.red.subtle")),icon:lj}:"modified"===e?{color:"orange.emphasized",hexColor:String(lS.system.token("colors.orange.emphasized")),backgroundColor:"orange.subtle",hexBackgroundColor:String(lS.system.token("colors.orange.subtle")),icon:lH}:{color:"gray.focusRing",hexColor:String(lS.system.token("colors.gray.focusRing")),backgroundColor:"white",hexBackgroundColor:String(lS.system.token("colors.white")),icon:void 0}}function lL(e){if("model"===e)return{color:String(lS.system.token("colors.cyan.subtle")),icon:Ai};if("metric"===e)return{color:String(lS.system.token("colors.rose.subtle")),icon:rR};if("source"===e)return{color:String(lS.system.token("colors.green.muted")),icon:Ao};if("exposure"===e)return{color:String(lS.system.token("colors.rose.subtle")),icon:rM};if("semantic_model"===e)return{color:String(lS.system.token("colors.rose.focusRing")),icon:rT};else if("seed"===e)return{color:String(lS.system.token("colors.green.emphasized")),icon:Al};else if("snapshot"===e)return{color:String(lS.system.token("colors.green.emphasized")),icon:AA};else return{color:"inherit",icon:void 0}}function lR(){return(0,g.jsx)(y.Box,{bg:"white",padding:"12px",borderWidth:"1px",borderColor:"gray.200",fontSize:"sm",children:Object.entries({added:["Added","Added resource"],removed:["Removed","Removed resource"],modified:["Modified","Modified resource"]}).map(([e,[A,t]])=>{let{icon:n,color:r}=lD(e);return(0,g.jsx)(Aw.Tooltip,{content:t,positioning:{placement:"right"},children:(0,g.jsxs)(v.Flex,{alignItems:"center",gap:"6px",marginBottom:"2px",children:[(0,g.jsx)(U.Icon,{color:r,as:n})," ",A]})},e)})})}var lT=e.i(86568);let lM=()=>{let{lineageGraph:e}=(0,AY.useLineageGraphContext)(),{centerNode:A,viewOptions:t}=lU(),n=t.column_level_lineage;if(!e)return(0,g.jsx)(g.Fragment,{});if(!n)return"Default View";if(void 0===n.node_id)return(0,g.jsx)(e6.Text,{as:"span",children:"Impact Radius for All Changed Models"});let r=n.node_id in e.nodes?e.nodes[n.node_id].data.name:n.node_id;if(n.column){let e=`${n.node_id}_${n.column}`;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(e6.Text,{as:"span",mr:"5px",children:["Column Lineage for"," "]}),(0,g.jsxs)(b,{onClick:()=>{A(e)},cursor:"pointer",children:[r,".",n.column]})]})}{let e=n.node_id;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(e6.Text,{as:"span",mr:"5px",children:"Impact Radius for"}),(0,g.jsx)(b,{onClick:()=>{A(e)},cursor:"pointer",children:r})]})}},lO=({action:e})=>{let{showColumnLevelLineage:A,resetColumnLevelLineage:t,interactive:n,viewOptions:r}=lU(),{data:i}=(0,lT.useRecceServerFlag)(),o=i?.single_env_onboarding??!1,{lineageGraph:s}=(0,AY.useLineageGraphContext)(),a=!s?.catalogMetadata.current;return(0,g.jsxs)(v.Flex,{direction:"row",gap:"5px",children:[!o&&(0,g.jsx)(y.Box,{borderRadius:"md",boxShadow:"md",border:"1px solid",borderColor:"gray.200",bg:"white",children:(0,g.jsx)(Aw.Tooltip,{openDelay:50,content:"Please provide catalog.json to enable Impact Radius",disabled:!a,positioning:{placement:"top"},children:(0,g.jsxs)(AV.Button,{size:"sm",variant:"ghost",whiteSpace:"nowrap",display:"inline-flex",disabled:!n||a,onClick:()=>{A({no_upstream:!0,change_analysis:!0})},children:[(0,g.jsx)(Ad,{})," Impact Radius"]})})}),r.column_level_lineage&&(0,g.jsxs)(v.Flex,{borderRadius:"md",boxShadow:"md",border:"1px solid",borderColor:"gray.200",bg:"white",fontSize:"0.8rem",p:"0 0.625rem",alignItems:"center",children:[(0,g.jsx)(lM,{}),e.isError&&(0,g.jsx)(Aw.Tooltip,{content:`Error: ${e.error.message}`,positioning:{placement:"bottom"},children:(0,g.jsx)(e6.Text,{as:"span",color:"red.500",ml:"2px",display:"inline-flex",alignItems:"center",children:(0,g.jsx)(U.Icon,{as:AX.PiInfo,color:"red.500",boxSize:"14px"})})}),e.isPending?(0,g.jsx)(ld.Spinner,{size:"xs",ml:"2px"}):(0,g.jsx)(Ag.IconButton,{variant:"ghost",size:"xs",ml:"2px","aria-label":"Reset Column Level Lineage",onClick:()=>{t()},children:(0,g.jsx)(AX.PiX,{size:"10px"})})]})]})};var tI=tI;let lN=({changeStatus:e})=>{if(!e)return(0,g.jsx)(g.Fragment,{});let{color:A,icon:t}=lD(e);return(0,g.jsx)(U.Icon,{boxSize:"14px",display:"inline-flex",color:A,as:t})},lP=({transformationType:e,legend:A})=>{let t="U",n="red";return("passthrough"===e?(t="P",n="gray"):"renamed"===e?(t="R",n="orange"):"derived"===e?(t="D",n="orange"):"source"===e?(t="S",n="blue"):(t="U",n="red"),e)?(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(tI.Root,{fontSize:"8pt",size:"sm",colorPalette:n,borderRadius:"full",paddingX:"4px",children:(0,g.jsx)(tI.Label,{children:t})})}):(0,g.jsx)(g.Fragment,{})};function l_(){return(0,g.jsx)(y.Box,{bg:"white",padding:"12px",borderWidth:"1px",borderColor:"gray.200",fontSize:"sm",children:Object.entries({passthrough:["Pass Through","The column is directly selected from the upstream table."],renamed:["Renamed","The column is selected from the upstream table but with a different name."],derived:["Derived","The column is created through transformations applied to upstream columns, such as calculations, conditions, functions, or aggregations."],source:["Source","The column is not derived from any upstream data. It may originate from a seed/source node, literal value, or data generation function."],unknown:["Unknown","We have no information about the transformation type. This could be due to a parse error, or other unknown reason."]}).map(([e,[A,t]])=>(0,g.jsx)(Aw.Tooltip,{content:t,positioning:{placement:"right"},children:(0,g.jsxs)(v.Flex,{alignItems:"center",gap:"6px",marginBottom:"2px",children:[(0,g.jsx)(lP,{legend:!0,transformationType:e})," ",A]})},e))})}var tI=tI,lK=e.i(52058);function lV(e,A){if(!e||!A)return;let t=Object.keys(e),n=Object.keys(A);if(t.length!==n.length)return!0;for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!0;for(let t of n)if(!e[t]||e[t].type!==A[t]?.type)return!0;return!1}var i$=i$,tI=tI,lG=e.i(5692),tI=tI;function lz(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 16L6 10H18L12 16Z"},child:[]}]})(e)}function lW(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 8L18 14H6L12 8Z"},child:[]}]})(e)}function l$(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM4 5V19H20V5H4ZM12 15H18V17H12V15ZM8.66685 12L5.83842 9.17157L7.25264 7.75736L11.4953 12L7.25264 16.2426L5.83842 14.8284L8.66685 12Z"},child:[]}]})(e)}function lX(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M18 3C19.6569 3 21 4.34315 21 6C21 7.65685 19.6569 9 18 9H15C13.6941 9 12.5831 8.16562 12.171 7.0009L11 7C9.9 7 9 7.9 9 9L9.0009 9.17102C10.1656 9.58312 11 10.6941 11 12C11 13.3059 10.1656 14.4169 9.0009 14.829L9 15C9 16.1 9.9 17 11 17L12.1707 17.0001C12.5825 15.8349 13.6937 15 15 15H18C19.6569 15 21 16.3431 21 18C21 19.6569 19.6569 21 18 21H15C13.6941 21 12.5831 20.1656 12.171 19.0009L11 19C8.79 19 7 17.21 7 15H5C3.34315 15 2 13.6569 2 12C2 10.3431 3.34315 9 5 9H7C7 6.79086 8.79086 5 11 5L12.1707 5.00009C12.5825 3.83485 13.6937 3 15 3H18ZM18 17H15C14.4477 17 14 17.4477 14 18C14 18.5523 14.4477 19 15 19H18C18.5523 19 19 18.5523 19 18C19 17.4477 18.5523 17 18 17ZM8 11H5C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13H8C8.55228 13 9 12.5523 9 12C9 11.4477 8.55228 11 8 11ZM18 5H15C14.4477 5 14 5.44772 14 6C14 6.55228 14.4477 7 15 7H18C18.5523 7 19 6.55228 19 6C19 5.44772 18.5523 5 18 5Z"},child:[]}]})(e)}function lY(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0049 22.0027C6.48204 22.0027 2.00488 17.5256 2.00488 12.0027C2.00488 6.4799 6.48204 2.00275 12.0049 2.00275C17.5277 2.00275 22.0049 6.4799 22.0049 12.0027C22.0049 17.5256 17.5277 22.0027 12.0049 22.0027ZM12.0049 20.0027C16.4232 20.0027 20.0049 16.421 20.0049 12.0027C20.0049 7.58447 16.4232 4.00275 12.0049 4.00275C7.5866 4.00275 4.00488 7.58447 4.00488 12.0027C4.00488 16.421 7.5866 20.0027 12.0049 20.0027ZM7.00488 9.00275L10.0049 5.50275L13.0049 9.00275H11.0049V13.0027H9.00488V9.00275H7.00488ZM17.0049 15.0027L14.0049 18.5027L11.0049 15.0027H13.0049V11.0027H15.0049V15.0027H17.0049Z"},child:[]}]})(e)}function lJ({node:e}){let{icon:A}=lL(e.data.resourceType);return(0,g.jsx)(Aw.Tooltip,{showArrow:!0,content:"Type of resource",children:(0,g.jsxs)(tI.Root,{children:[A&&(0,g.jsx)(tI.StartElement,{children:(0,g.jsx)(A,{})}),(0,g.jsx)(tI.Label,{children:e.data.resourceType})]})})}function lq({rowCount:e}){let A=e.base,t=e.curr,n=null===e.base?"N/A":`${e.base} rows`,r=null===e.curr?"N/A":`${e.curr} rows`;return null===A&&null===t?(0,g.jsx)(g.Fragment,{children:" Failed to load"}):null===A||null===t?(0,g.jsxs)(F.HStack,{children:[(0,g.jsx)(e6.Text,{children:n}),(0,g.jsx)(U.Icon,{as:lp}),(0,g.jsx)(e6.Text,{children:r})]}):A===t?(0,g.jsxs)(F.HStack,{children:[(0,g.jsx)(e6.Text,{children:r}),(0,g.jsx)(U.Icon,{as:lY,color:"gray.500"}),(0,g.jsx)(e6.Text,{color:"gray.500",children:"No Change"})]}):A<t?(0,g.jsxs)(F.HStack,{children:[(0,g.jsx)(e6.Text,{children:r}),(0,g.jsx)(U.Icon,{as:lW,color:"green.500"}),(0,g.jsx)(e6.Text,{color:"green.500",children:(0,lK.deltaPercentageString)(A,t)})]}):(0,g.jsxs)(F.HStack,{children:[(0,g.jsx)(e6.Text,{children:r}),(0,g.jsx)(U.Icon,{as:lz,color:"red.500"}),(0,g.jsx)(e6.Text,{color:"red.500",children:(0,lK.deltaPercentageString)(A,t)})]})}function lZ({rowCount:e,node:A,onRefresh:t,isFetching:n}){let{featureToggles:r}=(0,AC.useRecceInstanceContext)(),{runsAggregated:i}=(0,AY.useLineageGraphContext)(),o=i?.[A.id]?.row_count_diff.result,s=(0,n0.findByRunType)("row_count_diff").icon,a=e??o,l=a?`${a.base??"N/A"} -> ${a.curr??"N/A"} rows`:"";return(0,g.jsx)(Aw.Tooltip,{content:l,children:(0,g.jsx)(t3,{display:"metadata only"===r.mode,children:(0,g.jsx)(tI.Root,{asChild:!0,children:(0,g.jsxs)(v.Flex,{direction:"row",alignItems:"center",gap:"1",children:[(0,g.jsx)(s,{}),null!=a||n?(0,g.jsx)(lG.SkeletonText,{loading:!1,noOfLines:1,minWidth:"30px",fontSize:"xs",children:null!=a?(0,g.jsx)(lq,{rowCount:a}):"row count"}):(0,g.jsx)(e6.Text,{fontSize:"xs",children:"row count"}),t&&(0,g.jsx)(Ag.IconButton,{loading:n,"aria-label":"Query Row Count",size:"2xs",p:"0",variant:"ghost",onClick:t,disabled:r.disableDatabaseQuery,children:(0,g.jsx)(AX.PiRepeat,{})})]})})})})}function l0({rowCount:e,node:A,onRefresh:t,isFetching:n}){let r,{runsAggregated:i}=(0,AY.useLineageGraphContext)(),o=i?.[A.id]?.row_count.result,s=(0,n0.findByRunType)("row_count").icon,a=e??o;if(a){let e=a.curr??"N/A";r=`${e} rows`}return(0,g.jsxs)(tI.Root,{children:[(0,g.jsx)(tI.StartElement,{children:(0,g.jsx)(s,{})}),(0,g.jsx)(tI.Label,{children:a||n?(0,g.jsx)(lG.SkeletonText,{loading:n,lineClamp:1,height:2,minWidth:"30px",children:a?`${r}`:"row count"}):(0,g.jsx)(g.Fragment,{children:"row count"})}),t&&(0,g.jsx)(Ag.IconButton,{loading:n,"aria-label":"Query Row Count",size:"2xs",p:"0",variant:"ghost",onClick:t,disabled:"base"===A.data.from,children:(0,g.jsx)(AX.PiRepeat,{})})]})}let l1=({node:e,action:A})=>{let{status:t,skipReason:n,run:r}=A;if("pending"===t)return(0,g.jsx)(i$.Root,{value:0,size:"xs",children:(0,g.jsxs)(i$.Circle,{children:[(0,g.jsx)(i$.Track,{}),(0,g.jsx)(i$.Range,{})]})});if("skipped"===t)return(0,g.jsx)(tI.Root,{backgroundColor:"gray.100",children:(0,g.jsx)(tI.Label,{children:(0,g.jsxs)(v.Flex,{fontSize:"10pt",color:"gray.500",alignItems:"center",gap:"3px",children:[(0,g.jsx)(y.Box,{children:"Skipped"}),n&&(0,g.jsx)(Aw.Tooltip,{content:n,children:(0,g.jsx)(AX.PiInfo,{})})]})})});if(!r)return(0,g.jsx)(i$.Root,{value:null,size:"xs",children:(0,g.jsxs)(i$.Circle,{children:[(0,g.jsx)(i$.Track,{}),(0,g.jsx)(i$.Range,{})]})});let{error:i,run_id:o,progress:s}=r;if("running"===t)if(s?.percentage===void 0)return(0,g.jsx)(i$.Root,{value:null,size:"xs",children:(0,g.jsxs)(i$.Circle,{children:[(0,g.jsx)(i$.Track,{}),(0,g.jsx)(i$.Range,{})]})});else return(0,g.jsx)(i$.Root,{value:100*s.percentage,size:"xs",children:(0,g.jsxs)(i$.Circle,{children:[(0,g.jsx)(i$.Track,{}),(0,g.jsx)(i$.Range,{})]})});if(i)return(0,g.jsxs)(v.Flex,{fontSize:"10pt",color:"gray",children:[(0,g.jsx)(y.Box,{children:"Error"}),n&&(0,g.jsx)(Aw.Tooltip,{content:i,children:(0,g.jsx)(AX.PiWarning,{})})]});if((0,lv.isValueDiffRun)(r)&&r.result){let e=r.result,A=0;for(let t of e.data.data)t[2]<1&&A++;return(0,g.jsx)(tI.Root,{backgroundColor:A>0?"red.100":"green.100",children:(0,g.jsx)(tI.Label,{children:(0,g.jsx)(v.Flex,{fontSize:"10pt",color:A>0?"red":"green",alignItems:"center",gap:"3px",children:A>0?`${A} columns mismatched`:"All columns match"})})})}if((0,lv.isRowCountDiffRun)(r)&&r.result){let A=r.result;return(0,g.jsx)(lZ,{rowCount:A[e.data.name],node:e})}if((0,lv.isRowCountRun)(r)&&r.result){let A=r.result;return(0,g.jsx)(l0,{rowCount:A[e.data.name],node:e})}return(0,g.jsx)(g.Fragment,{children:o})};function l2({rowCount:e}){let A,t,n=e.base,r=e.curr,i=null===e.base?"N/A":`${e.base} Rows`,o=null===e.curr?"N/A":`${e.curr} Rows`;return null===n&&null===r?(A="Failed to load",t="gray"):null===n||null===r?(A=`${i} -> ${o}`,t=null===n?"green":"red"):n===r?(A="=",t="gray"):n!==r&&(A=`${(0,lK.deltaPercentageString)(n,r)} Rows`,t=n<r?"green":"red"),(0,g.jsx)(tI.Root,{colorPalette:t,children:(0,g.jsxs)(v.Flex,{gap:1,alignItems:"center",children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("row_count_diff").icon}),(0,g.jsx)(tI.Label,{children:A})]})})}let l4={breaking:"Breaking",non_breaking:"Non Breaking",partial_breaking:"Partial Breaking",unknown:"Unknown"},l3=({id:e,inverted:A})=>{let t,n,{lineageGraph:r,runsAggregated:i}=(0,AY.useLineageGraphContext)(),o=i?.[e],s=r?.nodes[e];if(!o&&!s)return(0,g.jsx)(g.Fragment,{});if(s?.data.data.base&&s.data.data.current&&(t=lV(s.data.data.base.columns,s.data.data.current.columns)),o?.row_count_diff){let e=o.row_count_diff.result;n=e.curr!==e.base}let a=A?"white":lD("modified").color;return(0,g.jsxs)(v.Flex,{flex:"1",children:[void 0!==t&&(0,g.jsx)(Aw.Tooltip,{content:`Schema (${t?"changed":"no change"})`,openDelay:500,children:(0,g.jsx)(y.Box,{height:"16px",children:(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("schema_diff").icon,color:t?a:A?"gray":"gray.100"})})}),(0,g.jsx)(ef.Spacer,{}),o?.row_count_diff&&void 0!==n&&(0,g.jsx)(Aw.Tooltip,{content:`Row count (${n?"changed":"="})`,openDelay:500,children:(0,g.jsx)(y.Box,{children:(0,g.jsx)(l2,{rowCount:o.row_count_diff.result})})})]})},l5=({checked:e,onClick:A})=>(0,g.jsx)(v.Flex,{onClick:A,alignSelf:"center",alignItems:"center",cursor:"pointer",children:e?(0,g.jsx)(U.Icon,{boxSize:"20px",as:An}):(0,g.jsx)(U.Icon,{boxSize:"20px",as:Ah})}),l6=({name:e,color:A,resourceType:t})=>(0,g.jsx)(y.Box,{flex:"1",color:A,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:(0,g.jsx)(Aw.Tooltip,{content:"model"===t?e:`${e} (${t})`,positioning:{placement:"top"},children:(0,g.jsx)("span",{children:e})})});var l8=e.i(81167);function l7(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6 18h12v2H6zm6-14.414-6.707 6.707 1.414 1.414L11 7.414V16h2V7.414l4.293 4.293 1.414-1.414z"},child:[]}]})(e)}function l9(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6 18h12v2H6zm5-14v8.586L6.707 8.293 5.293 9.707 12 16.414l6.707-6.707-1.414-1.414L13 12.586V4z"},child:[]}]})(e)}var ce=e.i(75155);function cA(e,A){let t=(0,ce.mergeKeys)(e,A);if(0===t.length)return[];if(0===e.length||0===A.length)return t.map((e,A)=>A===t.length-1?e:e+",");let n="";return t.forEach(t=>{e.includes(t)&&A.includes(t)&&(n=t)}),t.map((r,i)=>{let o;return(o=e.includes(r)?A.includes(r)?r:`--- ${r} (Removed)`:`--- ${r} (Added)`,r===n||i===t.length-1)?o:o+","})}var ct=e.i(75119),cn=e.i(905),cr=e.i(45364);let ci=({menuItems:e,open:A,onClose:t,x:n,y:r})=>{let{featureToggles:i}=(0,AC.useRecceInstanceContext)();return(0,g.jsx)(tB.Menu.Root,{open:A,onOpenChange:t,children:(0,g.jsx)(AW.Portal,{children:(0,g.jsx)(tB.Menu.Positioner,{children:(0,g.jsx)(tB.Menu.Content,{fontSize:"0.85rem",position:"absolute",width:"250px",style:{left:`${n}px`,top:`${r}px`},children:0===e.length?(0,g.jsx)(tB.Menu.Item,{value:"no-action",disabled:!0,children:"No action available"},"no action"):e.map(({isSeparator:e,label:A,isDisabled:n,action:r,itemIcon:o})=>{if(e)return(0,g.jsx)(tB.Menu.Separator,{},A);{let e=(0,g.jsxs)(tB.Menu.Item,{value:String(A),disabled:n,onClick:()=>{r&&r(),t()},children:[o," ",A]},A);return n?(0,g.jsx)(t3,{display:"metadata only"===i.mode,children:e},A):e}})})})})})},co=({isOpen:e,onClose:A,x:t,y:n,node:r})=>{let i=[],{selectParentNodes:o,selectChildNodes:s,getNodeColumnSet:a,selectMode:l,cll:c,showColumnLevelLineage:u}=lU(),{runAction:d}=(0,lQ.useRecceActionContext)(),{featureToggles:h}=(0,AC.useRecceInstanceContext)(),{isActionAvailable:f}=(0,AY.useLineageGraphContext)(),{data:p}=(0,lT.useRecceServerFlag)(),{lineageGraph:B}=(0,AY.useLineageGraphContext)(),m=!B?.catalogMetadata.current,w=p?.single_env_onboarding??!1,y=h.disableDatabaseQuery,{primaryKey:x}=(0,cn.default)(r?.data?.data.name),{setSqlQuery:C,setPrimaryKeys:b}=(0,ct.useRecceQueryContext)(),[,v]=(0,Af.useLocation)();if(!r?.data)return(0,g.jsx)(g.Fragment,{});let Q=r.data,F=Q.resourceType,E=Array.from(a(r.id)),I={source:"lineage_model_node"};if("modified"===Q.changeStatus&&i.push({label:"Show Impact Radius",itemIcon:(0,g.jsx)(Ad,{}),isDisabled:m,action:()=>{u({node_id:r.id,change_analysis:!0,no_upstream:!0})}}),!l&&F&&["model","seed","snapshot"].includes(F)){i.length>0&&i.push({label:"select group one",isSeparator:!0});let e=(0,n0.findByRunType)(w?"query":"query_diff"),A=cA(Object.keys(Q.data.base?.columns??{}),Object.keys(Q.data.current?.columns??{})),t=`select * from {{ ref("${Q.name}") }}`;if(A.length&&(t=`select
|
|
3
|
+
${A.join("\n ")}
|
|
4
|
+
from {{ ref("${Q.name}") }}`),i.push({label:"Query",itemIcon:(0,g.jsx)(U.Icon,{as:e.icon}),isDisabled:y,action:()=>{C(t),f("query_diff_with_primary_key")&&b(void 0!==x?[x]:void 0),v("/query")}}),E.length>0)if(void 0!==c){let A=new Set;x&&A.add(x),E.forEach(e=>{A.add(e)}),i.push({label:"Query Related Columns",itemIcon:(0,g.jsx)(U.Icon,{as:e.icon}),isDisabled:y,action:()=>{C(`select
|
|
5
|
+
${Array.from(A).join(",\n ")}
|
|
6
|
+
from {{ ref("${Q.name}") }}`),f("query_diff_with_primary_key")&&b(void 0!==x?[x]:void 0),v("/query")}})}else{let A=Object.entries(Q.change?.columns??{}).filter(([,e])=>"modified"===e).map(([e])=>e);if(A.length>0){let t=new Set;x&&t.add(x),A.forEach(e=>{t.add(e)}),i.push({label:"Query Modified Columns",itemIcon:(0,g.jsx)(U.Icon,{as:e.icon}),isDisabled:y,action:()=>{C(`select
|
|
7
|
+
${Array.from(t).join(",\n ")}
|
|
8
|
+
from {{ ref("${Q.name}") }}`),f("query_diff_with_primary_key")&&b(void 0!==x?[x]:void 0),v("/query")}})}}let n=(0,n0.findByRunType)(w?"row_count":"row_count_diff");i.push({label:n.title,itemIcon:(0,g.jsx)(U.Icon,{as:n.icon}),isDisabled:y,action:()=>{d(w?"row_count":"row_count_diff",{node_names:[Q.name]},{showForm:!1,trackProps:I})}});let o=(0,n0.findByRunType)(w?"profile":"profile_diff");if(i.push({label:o.title,itemIcon:(0,g.jsx)(U.Icon,{as:o.icon}),isDisabled:y,action:()=>{let e=Array.from(a(r.id));d(w?"profile":"profile_diff",{model:Q.name,columns:e},{showForm:!0,trackProps:I})}}),!w){let e=(0,n0.findByRunType)("value_diff");i.push({label:e.title,itemIcon:(0,g.jsx)(U.Icon,{as:e.icon}),isDisabled:y,action:()=>{let e=Array.from(a(r.id));d("value_diff",{model:Q.name,columns:e},{showForm:!0,trackProps:I})}})}}return w||(i.length>0&&i.push({label:"select group two",isSeparator:!0}),i.push({label:"Select Parent Nodes",itemIcon:(0,g.jsx)(l7,{}),action:()=>{o(r.id,1)}}),i.push({label:"Select Child Nodes",itemIcon:(0,g.jsx)(l9,{}),action:()=>{s(r.id,1)}}),i.push({label:"Select All Upstream Nodes",itemIcon:(0,g.jsx)(l7,{}),action:()=>{o(r.id)}}),i.push({label:"Select All Downstream Nodes",itemIcon:(0,g.jsx)(l9,{}),action:()=>{s(r.id)}})),(0,g.jsx)(ci,{x:t,y:n,menuItems:i,open:e,onClose:A})},cs=({isOpen:e,onClose:A,x:t,y:n,node:r})=>{let i=[],{runAction:o}=(0,lQ.useRecceActionContext)(),{isActionAvailable:s}=(0,AY.useLineageGraphContext)(),{featureToggles:a}=(0,AC.useRecceInstanceContext)(),{data:l}=(0,lT.useRecceServerFlag)(),c=l?.single_env_onboarding??!1,u=a.disableDatabaseQuery;if(r?.data===void 0)return(0,g.jsx)(g.Fragment,{});let d=r.data,h=d.node,f=d.column,p=d.type,B={source:"lineage_column_node"},m=h.data.base?.columns?.[f]===void 0||h.data.current?.columns?.[f]===void 0,w=(0,n0.findByRunType)(c?"profile":"profile_diff");if(i.push({label:w.title,itemIcon:(0,g.jsx)(U.Icon,{as:w.icon}),action:()=>{o("profile_diff",{model:h.name,columns:[f]},{showForm:!1,trackProps:B})},isDisabled:m||!s("profile_diff")||u}),!c){let e=(0,n0.findByRunType)("histogram_diff");i.push({label:e.title,itemIcon:(0,g.jsx)(U.Icon,{as:e.icon}),action:()=>{o("histogram_diff",{model:h.name,column_name:f,column_type:p},{showForm:!1,trackProps:B})},isDisabled:m||!p||!(0,cr.supportsHistogramDiff)(p)||u});let A=(0,n0.findByRunType)("top_k_diff");i.push({label:A.title,itemIcon:(0,g.jsx)(U.Icon,{as:A.icon}),action:()=>{o("top_k_diff",{model:h.name,column_name:f,k:50},{showForm:!1,trackProps:B})},isDisabled:m||u});let t=(0,n0.findByRunType)("value_diff");i.push({label:t.title,itemIcon:(0,g.jsx)(U.Icon,{as:t.icon}),action:()=>{o("value_diff",{model:h.name,columns:[f]},{showForm:!0,trackProps:B})},isDisabled:m||u})}return(0,g.jsx)(ci,{x:t,y:n,menuItems:i,open:e,onClose:A})},ca=({isOpen:e,onClose:A,x:t,y:n,node:r})=>{let{featureToggles:i}=(0,AC.useRecceInstanceContext)();return i.disableViewActionDropdown?(0,g.jsx)(ci,{menuItems:[],open:e,onClose:A,x:t,y:n}):r&&(0,lf.isLineageGraphNode)(r)?(0,g.jsx)(co,{x:t,y:n,isOpen:e,onClose:A,node:r}):r&&(0,lf.isLineageGraphColumnNode)(r)?(0,g.jsx)(cs,{x:t,y:n,isOpen:e,onClose:A,node:r}):void 0},cl="recce",cc={recommendationIgnored:`${cl}-recommendation-ignored`,recommendationShowed:`${cl}-recommendation-showed`,prevRefreshTimeStamp:`${cl}-prev-refresh-timestamp`,lineageNotificationDismissed:`${cl}-lineage-notification-dismissed`};function cu({notification:e,type:A}){let t=cc.lineageNotificationDismissed,[n,r]=(0,E.useState)(()=>"true"!==sessionStorage.getItem(t));return null!==e&&n?(0,g.jsxs)(v.Flex,{w:"100%",direction:"row",p:"5px 10px",gap:"5px",alignItems:"flex-start",borderRadius:"md",boxShadow:"md",border:"1px solid",borderColor:"gray.200",bg:{info:"blue.50",success:"green.50",warning:"yellow.50",error:"red.50"}[A],children:[e,(0,g.jsx)(ef.Spacer,{}),(0,g.jsx)(AG.CloseButton,{onClick:()=>{sessionStorage.setItem(t,"true"),r(!1)}})]}):null}var cd=e.i(46488),ch=e.i(93396);function cf(){let{isHistoryOpen:e,showHistory:A}=(0,lQ.useRecceActionContext)();if(!e)return(0,g.jsxs)(y.Box,{children:[(0,g.jsx)(y.Box,{fontSize:"8pt",children:"History"}),(0,g.jsxs)(AV.Button,{size:"2xs",variant:"outline",onClick:()=>{(0,Ax.trackHistoryAction)({name:e?"hide":"show"}),A()},children:[(0,g.jsx)(t1.VscHistory,{})," Show"]})]})}let cg=()=>(0,g.jsxs)(AU.VStack,{align:"start",gap:0,children:[(0,g.jsx)(e6.Text,{fontSize:"10pt",color:"gray.500",pb:1,children:"Select nodes by dbt node selector syntax"}),(0,g.jsxs)(e6.Text,{fontSize:"8pt",children:[(0,g.jsx)(b,{fontSize:"8pt",children:"model_name"})," Select a node"]}),(0,g.jsxs)(e6.Text,{fontSize:"8pt",children:[(0,g.jsx)(b,{fontSize:"8pt",children:"model_name+"})," Select downstream nodes"]}),(0,g.jsxs)(e6.Text,{fontSize:"8pt",children:[(0,g.jsx)(b,{fontSize:"8pt",children:"+model_name"})," Select upstream nodes"]}),(0,g.jsxs)(e6.Text,{fontSize:"8pt",children:[(0,g.jsx)(b,{fontSize:"8pt",children:"model*"})," Select by wildcard"]})]}),cp=({isDisabled:e})=>{let{viewOptions:A,onViewOptionsChanged:t}=lU(),n=A.view_mode??"changed_models";return(0,g.jsxs)(tB.Menu.Root,{children:[(0,g.jsx)(tB.Menu.Trigger,{asChild:!0,children:(0,g.jsxs)(AV.Button,{minWidth:"100px",size:"2xs",variant:"outline",disabled:e,children:[(0,g.jsx)(U.Icon,{as:lL("model").icon})," ","changed_models"===n?"Changed Models":"All"," ",(0,g.jsx)(AX.PiCaretDown,{})]})}),(0,g.jsx)(AW.Portal,{children:(0,g.jsx)(tB.Menu.Positioner,{children:(0,g.jsx)(tB.Menu.Content,{children:(0,g.jsxs)(tB.Menu.RadioItemGroup,{value:n,onValueChange:e=>{var n;n=e.value,t({...A,view_mode:n})},children:[(0,g.jsx)(tB.Menu.ItemGroupLabel,{children:"mode"}),(0,g.jsxs)(tB.Menu.RadioItem,{value:"changed_models",children:["Changed Models",(0,g.jsx)(tB.Menu.ItemIndicator,{})]}),(0,g.jsxs)(tB.Menu.RadioItem,{value:"all",children:["All",(0,g.jsx)(tB.Menu.ItemIndicator,{})]})]})})})})]})},cB=({isDisabled:e})=>{let{lineageGraph:A}=(0,AY.useLineageGraphContext)(),{viewOptions:t,onViewOptionsChanged:n}=lU(),r=new Set;for(let e of Object.values(A?.nodes??{}))e.data.packageName&&r.add(e.data.packageName);let i=A?.manifestMetadata.current?.project_name,o=t.packages?new Set(t.packages):i?new Set([i]):r,s=o.size===r.size,a=0===o.size,l=1===o.size?Array.from(o)[0]:s?"All Packages":a?"No Package":`${o.size} Packages`;return(0,g.jsxs)(tB.Menu.Root,{closeOnSelect:!1,children:[(0,g.jsx)(tB.Menu.Trigger,{asChild:!0,children:(0,g.jsxs)(AV.Button,{minWidth:"100px",size:"2xs",variant:"outline",disabled:e,children:[(0,g.jsx)(U.Icon,{as:lw})," ",l," ",(0,g.jsx)(AX.PiCaretDown,{})]})}),(0,g.jsx)(AW.Portal,{children:(0,g.jsx)(tB.Menu.Positioner,{children:(0,g.jsx)(tB.Menu.Content,{children:(0,g.jsxs)(tB.Menu.ItemGroup,{children:[(0,g.jsx)(tB.Menu.ItemGroupLabel,{children:"Select Packages"}),(0,g.jsx)(tB.Menu.Item,{value:"",asChild:!0,children:(0,g.jsxs)(ch.Checkbox.Root,{checked:s||a?s:"indeterminate",onCheckedChange:()=>{s?n({...t,packages:[]}):n({...t,packages:Array.from(r)})},children:[(0,g.jsx)(ch.Checkbox.HiddenInput,{}),(0,g.jsx)(ch.Checkbox.Control,{}),(0,g.jsx)(ch.Checkbox.Label,{children:"Select All"})]})}),(0,g.jsx)(tB.Menu.Separator,{}),Array.from(r).map(e=>(0,g.jsx)(tB.Menu.Item,{value:e,children:(0,g.jsxs)(ch.Checkbox.Root,{checked:o.has(e),onCheckedChange:()=>{let A;(A=new Set(o)).has(e)?A.delete(e):A.add(e),n({...t,packages:Array.from(A)})},children:[(0,g.jsx)(ch.Checkbox.HiddenInput,{}),(0,g.jsx)(ch.Checkbox.Control,{}),(0,g.jsx)(ch.Checkbox.Label,{className:"no-track-pii-safe",children:e})]})},e))]})})})})]})},cm=e=>{let[A,t]=(0,E.useState)(e.value),{data:n}=(0,lT.useRecceServerFlag)(),r=(0,E.useRef)(null);return(0,E.useEffect)(()=>{r.current&&(r.current.value=e.value)},[e.value]),(0,g.jsx)(Aw.Tooltip,{contentProps:{width:"300px",padding:2,shadow:"md",borderWidth:1,rounded:"md",color:"black",backgroundColor:"white"},content:e.tooltipComponent,positioning:{placement:"bottom-start"},closeOnClick:!1,disabled:!n?.single_env_onboarding,children:(0,g.jsx)(oD.Input,{ref:r,height:"24px",fontSize:"10pt",placeholder:"with selectors",disabled:e.isDisabled,value:A,onChange:e=>{t(e.target.value)},onKeyUp:n=>{"Enter"===n.key?e.onChange(A):"Escape"===n.key&&(n.preventDefault(),t(e.value),r.current&&r.current.blur())},onBlur:()=>{t(e.value)}})})},cw=({isDisabled:e})=>{let{viewOptions:A,onViewOptionsChanged:t}=lU();return(0,g.jsx)(cm,{isDisabled:e,value:A.select??"",onChange:e=>{t({...A,select:e||void 0})},tooltipComponent:(0,g.jsx)(cg,{})})},cy=({isDisabled:e})=>{let{viewOptions:A,onViewOptionsChanged:t}=lU();return(0,g.jsx)(cm,{isDisabled:e,value:A.exclude??"",onChange:e=>{t({...A,exclude:e||void 0})}})},cx=e=>(0,g.jsxs)(y.Box,{style:e.style,maxWidth:"300px",children:[(0,g.jsx)(y.Box,{fontSize:"8pt",children:(e.label??"").trim()||(0,g.jsx)(g.Fragment,{children:" "})}),e.children]}),cC=()=>{let{deselect:e,focusedNode:A,selectedNodes:t,...n}=lU(),{featureToggles:r}=(0,AC.useRecceInstanceContext)(),{data:i}=(0,lT.useRecceServerFlag)(),o=i?.single_env_onboarding,s=t.length>0,a=!A&&!s;return(0,g.jsx)(F.HStack,{width:"100%",padding:"4pt 8pt",className:"chakra-style-reset",children:(0,g.jsxs)(F.HStack,{flex:"1",children:[(0,g.jsx)(cf,{}),(0,g.jsx)(cx,{label:"Mode",style:{flexShrink:"1"},children:(0,g.jsx)(cp,{isDisabled:s})}),(0,g.jsx)(cx,{label:"Package",style:{flexShrink:"1"},children:(0,g.jsx)(cB,{isDisabled:s})}),(0,g.jsx)(cx,{label:"Select",style:{flex:"100 1 auto"},children:(0,g.jsx)(cw,{isDisabled:s})}),(0,g.jsx)(cx,{label:"Exclude",style:{flex:"100 1 auto"},children:(0,g.jsx)(cy,{isDisabled:s})}),(0,g.jsx)(ef.Spacer,{}),s&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(cx,{label:"",style:{flexShrink:"0"},children:(0,g.jsx)(e6.Text,{fontSize:"9pt",color:"gray.500",children:t.length>1?`${t.length} nodes selected`:`${t.length} node selected`})}),(0,g.jsx)(cx,{label:"",children:(0,g.jsx)(AV.Button,{variant:"outline",size:"2xs",fontSize:"9pt",onClick:()=>{e()},children:"Deselect"})}),o&&(0,g.jsx)(cx,{label:"Explore",children:(0,g.jsx)(cd.ButtonGroup,{attached:!0,variant:"outline",children:(0,g.jsxs)(tB.Menu.Root,{positioning:{placement:"bottom-end"},children:[(0,g.jsx)(tB.Menu.Trigger,{asChild:!0,children:(0,g.jsxs)(AV.Button,{size:"2xs",children:["Actions ",(0,g.jsx)(AX.PiCaretDown,{})]})}),(0,g.jsx)(AW.Portal,{children:(0,g.jsx)(tB.Menu.Positioner,{children:(0,g.jsx)(tB.Menu.Content,{children:(0,g.jsx)(tB.Menu.Item,{value:"row-count",disabled:r.disableDatabaseQuery,onClick:async()=>{await n.runRowCount()},children:(0,g.jsxs)(e6.Text,{textStyle:"sm",children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("row_count_diff").icon})," ","Row Count"]})})})})})]})})})]}),!o&&(0,g.jsx)(cx,{label:"Explore",children:(0,g.jsx)(cd.ButtonGroup,{attached:!0,variant:"outline",children:(0,g.jsxs)(tB.Menu.Root,{positioning:{placement:"bottom-end"},children:[(0,g.jsx)(tB.Menu.Trigger,{asChild:!0,children:(0,g.jsxs)(AV.Button,{size:"2xs",disabled:r.disableViewActionDropdown,children:["Actions ",(0,g.jsx)(AX.PiCaretDown,{})]})}),(0,g.jsx)(AW.Portal,{children:(0,g.jsx)(tB.Menu.Positioner,{children:(0,g.jsxs)(tB.Menu.Content,{children:[(0,g.jsxs)(tB.Menu.ItemGroup,{m:"0",p:"4px 12px",children:[(0,g.jsx)(tB.Menu.ItemGroupLabel,{children:"Diff"}),(0,g.jsx)(t3,{display:"metadata only"===r.mode,children:(0,g.jsx)(tB.Menu.Item,{value:"row-count-diff",disabled:r.disableDatabaseQuery,onClick:async()=>{await n.runRowCountDiff()},children:(0,g.jsxs)(e6.Text,{textStyle:"sm",children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("row_count_diff").icon})," ","Row Count Diff"]})})}),(0,g.jsx)(t3,{display:"metadata only"===r.mode,children:(0,g.jsx)(tB.Menu.Item,{value:"value-diff",disabled:r.disableDatabaseQuery,onClick:async()=>{await n.runValueDiff()},children:(0,g.jsxs)(e6.Text,{textStyle:"sm",children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("value_diff").icon})," ","Value Diff"]})})})]}),(0,g.jsx)(tB.Menu.Separator,{}),(0,g.jsxs)(tB.Menu.ItemGroup,{m:"0",px:"12px",children:[(0,g.jsx)(tB.Menu.ItemGroupLabel,{children:"Add to Checklist"}),(0,g.jsx)(tB.Menu.Item,{value:"lineage-diff",disabled:!(a||s&&t.length>1),onClick:()=>{n.addLineageDiffCheck(n.viewOptions.view_mode)},children:(0,g.jsxs)(e6.Text,{textStyle:"sm",children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("lineage_diff").icon})," ","Lineage Diff"]})}),(0,g.jsx)(tB.Menu.Item,{value:"schema-diff",disabled:!1,onClick:()=>{n.addSchemaDiffCheck()},children:(0,g.jsxs)(e6.Text,{textStyle:"sm",children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("schema_diff").icon})," ","Schema Diff"]})})]})]})})})]})})})]})})},cb=(0,E.forwardRef)(function(e,A){let{templateAreas:t,column:n,row:r,autoFlow:i,autoRows:o,templateRows:s,autoColumns:a,templateColumns:l,inline:c,...u}=e;return(0,g.jsx)(I.chakra.div,{...u,ref:A,css:[{display:c?"inline-grid":"grid",gridTemplateAreas:t,gridAutoColumns:a,gridColumn:n,gridRow:r,gridAutoFlow:i,gridAutoRows:o,gridTemplateRows:s,gridTemplateColumns:l},e.css]})});cb.displayName="Grid";var e5=e5;let cv=e=>(0,g.jsxs)(v.Flex,{flex:"1",minH:"48px",m:"4px",px:"16px",py:"12px",bg:"blue.50",border:"1px",borderRadius:"4px",borderColor:"blue.400",align:e.align??"center",gap:"12px",children:[(0,g.jsx)(U.Icon,{as:lm,width:"20px",height:"20px",color:"blue.900"}),e.children,(0,g.jsx)(ef.Spacer,{}),(0,g.jsx)(AG.CloseButton,{onClick:e.onClose})]}),cQ=()=>(0,g.jsxs)(j.Link,{href:"https://docs.datarecce.io/get-started/#prepare-dbt-artifacts",target:"_blank",color:"rgba(49, 130, 206, 1)",fontWeight:"bold",textDecoration:"underline",children:["Learn how ",(0,g.jsx)(ip.LuExternalLink,{})]});function cF({model:e,row:A,singleEnv:t,cllRunning:n}){let r=lE(),{runAction:i}=(0,lQ.useRecceActionContext)(),{featureToggles:o}=(0,AC.useRecceInstanceContext)(),{name:s,baseType:a,currentType:l,baseIndex:c,currentIndex:u}=A,d=l??a,h=!a||!l;return(0,g.jsx)(Aw.Tooltip,{content:"View column lineage",positioning:{placement:"top"},showArrow:!0,disabled:void 0===r||void 0!==c&&void 0===u,children:(0,g.jsxs)(v.Flex,{alignItems:"center",gap:"3px",children:[(0,g.jsx)(y.Box,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:s}),(0,g.jsx)(ef.Spacer,{}),n&&(0,g.jsx)(ld.Spinner,{size:"xs",color:"gray.400"}),!t&&"source"!==e.resource_type&&(0,g.jsxs)(tB.Menu.Root,{children:[(0,g.jsx)(tB.Menu.Trigger,{asChild:!0,children:(0,g.jsx)(Ag.IconButton,{display:"flex",className:"row-context-menu",variant:"plain",size:"sm",color:"gray",_hover:{color:"black"},disabled:o.disableDatabaseQuery,onClick:e=>{e.stopPropagation()},children:(0,g.jsx)(U.Icon,{as:t1.VscKebabVertical})})}),(0,g.jsx)(AW.Portal,{children:(0,g.jsx)(tB.Menu.Positioner,{children:(0,g.jsx)(tB.Menu.Content,{lineHeight:"20px",children:(0,g.jsxs)(tB.Menu.ItemGroup,{title:"Diff",m:"0",p:"4px 12px",children:[(0,g.jsx)(tB.Menu.Item,{value:"profile-diff",fontSize:"0.85rem",onClick:()=>{i("profile_diff",{model:e.name,columns:[s]},{showForm:!1})},disabled:h,children:"Profile Diff"}),(0,g.jsx)(tB.Menu.Item,{value:"histogram-diff",fontSize:"0.85rem",onClick:()=>{i("histogram_diff",{model:e.name,column_name:s,column_type:d},{showForm:!1})},disabled:h||!d||!(0,cr.supportsHistogramDiff)(d),children:"Histogram Diff"}),(0,g.jsx)(tB.Menu.Item,{value:"top-k-diff",fontSize:"0.85rem",onClick:()=>{i("top_k_diff",{model:e.name,column_name:s,k:50},{showForm:!1})},disabled:h,children:"Top-k Diff"}),(0,g.jsx)(tB.Menu.Item,{value:"value-diff",fontSize:"0.85rem",onClick:()=>{i("value_diff",{model:e.name,columns:[s]},{showForm:!0})},disabled:h,children:"Value Diff"})]})})})})]})]})})}function cU(e,A,t){function n(e){return void 0!==e.baseIndex&&void 0!==e.currentIndex&&!0===e.reordered?"column-index-reordered schema-column schema-column-index":"schema-column schema-column-index"}function r(e){return void 0!==e.baseIndex&&void 0!==e.currentIndex&&e.baseType!==e.currentType?"column-body-type-changed schema-column":"schema-column"}return{columns:[{key:"baseIndex",name:"",resizable:!0,minWidth:35,width:35,cellClass:n},{key:"currentIndex",name:"",resizable:!0,minWidth:35,width:35,cellClass:n},{key:"name",name:"Name",resizable:!0,renderCell:({row:e,column:n})=>A?(0,g.jsx)(cF,{model:A,row:e,cllRunning:t?.get(e.name)??!1}):e.name,cellClass:function(){return"schema-column"}},{key:"baseType",name:"Base Type",resizable:!0,cellClass:r},{key:"currentType",name:"Current Type",resizable:!0,cellClass:r}],rows:Object.values(e)}}var iR=iR,cE=e.i(62234);let cI=(0,E.forwardRef)(function({base:e,current:A,enableScreenshot:t=!1},n){let r,i,o=lE(),[s,a]=(0,E.useState)(new Map),{columns:l,rows:c}=(0,E.useMemo)(()=>{let t=function(e={},A={}){let t={};Object.entries((0,ce.mergeKeysWithStatus)(Object.keys(e),Object.keys(A))).forEach(([e,A])=>{t[e]={name:e,reordered:"reordered"===A,__status:void 0}});let n=0;return Object.entries(e).forEach(([e,A])=>{null!=A&&(t[e].baseIndex=n+=1,t[e].baseType=A.type)}),n=0,Object.entries(A).forEach(([e,A])=>{null!=A&&(t[e].currentIndex=n+=1,t[e].currentType=A.type)}),t}(e?.columns,A?.columns),n=A?.resource_type??e?.resource_type;return n&&["model","seed","snapshot","source"].includes(n)?cU(t,A??e,s):cU(t)},[e,A,s]),{lineageGraph:u}=(0,AY.useLineageGraphContext)(),d=!u?.catalogMetadata.base,h=!u?.catalogMetadata.current;d&&h?r="catalog.json not found on both environments. Run `recce debug` to troubleshoot.":d?r="catalog.json not found on base environment. Run `recce debug` to troubleshoot.":h&&(r="catalog.json not found on current environment. Run `recce debug` to troubleshoot.");let f=e&&void 0===e.columns,p=A&&void 0===A.columns;f&&p?i="catalog.json is outdated on both environments. Update catalog.json to get schema information.":f?i="catalog.json is outdated on base environment. Update catalog.json to get schema information.":p&&(i="catalog.json is outdated on current environment. Update catalog.json to get schema information.");let B=async t=>{(0,Ax.trackColumnLevelLineage)({action:"view",source:"schema_column"}),a(e=>new Map(e).set(t,!0));let n=A?.id??e?.id;n&&await o?.showColumnLevelLineage({node_id:n,column:t}),a(e=>new Map(e).set(t,!1))},m=o?.viewOptions.column_level_lineage,w=m?new Set([`${m.node_id}-${m.column}`]):new Set;return(0,g.jsxs)(v.Flex,{direction:"column",children:[r?(0,g.jsxs)(iR.Root,{status:"warning",fontSize:"12px",p:"8px",children:[(0,g.jsx)(iR.Indicator,{}),(0,g.jsx)(iR.Description,{children:r})]}):i?(0,g.jsxs)(iR.Root,{status:"warning",fontSize:"12px",p:"8px",children:[(0,g.jsx)(iR.Indicator,{}),(0,g.jsx)(iR.Description,{children:i})]}):(0,g.jsx)(g.Fragment,{}),c.length>0&&(0,g.jsx)(cE.ScreenshotDataGrid,{style:{blockSize:"auto",maxHeight:"100%",overflow:"auto",fontSize:"0.8rem",borderWidth:1},columns:l,rows:c,rowHeight:35,renderers:{noRowsFallback:(0,g.jsx)(cE.EmptyRowsRenderer,{})},className:"rdg-light no-track-pii-safe",ref:n,rowKeyGetter:t=>{let n=A?.id??e?.id;return`${n}-${t.name}`},selectedRows:w,onSelectedRowsChange:()=>{},onCellClick:async e=>{(void 0===e.row.baseIndex||void 0!==e.row.currentIndex)&&await B(e.row.name)},rowClass:e=>{let A;if(void 0===e.baseIndex)A="row-added";else{if(void 0===e.currentIndex)return"row-removed";A="row-normal"}return void 0!==o&&(A+=" row-selectable"),A}})]})}),cS=(0,E.forwardRef)(function({current:e},A){let t,n,r=lE(),[i,o]=(0,E.useState)(new Map),{columns:s,rows:a}=(0,E.useMemo)(()=>(function(e={},A,t){return{columns:[{key:"index",name:"",resizable:!0,minWidth:35,width:35,cellClass:"schema-column schema-column-index"},{key:"name",name:"Name",resizable:!0,renderCell:({row:e})=>A?(0,g.jsx)(cF,{model:A,row:e,cllRunning:t?.get(e.name)??!1,singleEnv:!0}):e.name,cellClass:"schema-column"},{key:"type",name:"Type",resizable:!0,cellClass:"schema-column"}],rows:Object.entries(e).filter(([e,A])=>null!=A).map(([e,A],t)=>({name:e,index:t+1,type:A.type,__status:void 0}))}})(e?.columns,e,i),[e,i]),{lineageGraph:l}=(0,AY.useLineageGraphContext)();l?.catalogMetadata.current||(t="catalog.json not found. Run `recce debug` to troubleshoot."),e&&void 0===e.columns&&(n="catalog.json is outdated. Update catalog.json to get schema information.");let c=async A=>{(0,Ax.trackColumnLevelLineage)({action:"view",source:"schema_column"}),o(e=>new Map(e).set(A,!0));let t=e?.id;t&&await r?.showColumnLevelLineage({node_id:t,column:A}),o(e=>new Map(e).set(A,!1))},u=r?.viewOptions.column_level_lineage,d=u?new Set([`${u.node_id}-${u.column}`]):new Set;return(0,g.jsxs)(v.Flex,{direction:"column",children:[t?(0,g.jsxs)(iR.Root,{status:"warning",fontSize:"12px",p:"8px",children:[(0,g.jsx)(iR.Indicator,{}),(0,g.jsx)(iR.Description,{children:t})]}):n?(0,g.jsxs)(iR.Root,{status:"warning",fontSize:"12px",p:"8px",children:[(0,g.jsx)(iR.Indicator,{}),(0,g.jsx)(iR.Description,{children:n})]}):(0,g.jsx)(g.Fragment,{}),a.length>0&&(0,g.jsx)(cE.ScreenshotDataGrid,{style:{blockSize:"auto",maxHeight:"100%",overflow:"auto",fontSize:"10pt",borderWidth:1},columns:s,rows:a,renderers:{noRowsFallback:(0,g.jsx)(cE.EmptyRowsRenderer,{})},className:"rdg-light",ref:A,rowKeyGetter:A=>{let t=e?.id;return`${t}-${A.name}`},selectedRows:d,onSelectedRowsChange:()=>{},onCellClick:async e=>{await c(e.row.name)},rowClass:()=>void 0!==r?"row-normal row-selectable":"row-normal"})]})}),ck=({node:e})=>{let{open:A,onOpen:t,onClose:n}=(0,A$.useDisclosure)(),[r,i]=(0,E.useState)(!1),{data:o,isLoading:s}=(0,lT.useRecceServerFlag)(),a=o?.single_env_onboarding;if(s)return(0,g.jsx)(g.Fragment,{});if("model"!==e.data.resourceType&&"snapshot"!==e.data.resourceType)return"Not available";let l={readOnly:!0,lineNumbers:"on",automaticLayout:!0,renderOverviewRuler:!1,wordWrap:"off",minimap:{enabled:!1}},c={readOnly:!0,lineNumbers:"on",automaticLayout:!0,wordWrap:"off",minimap:{enabled:!1}},u=e.data.data.base?.raw_code,d=e.data.data.current?.raw_code,h=e.data.data.base?.name??e.data.data.current?.name??"";return(0,g.jsxs)(y.Box,{className:"no-track-pii-safe",style:{position:"relative"},height:"100%",onMouseEnter:()=>{i(!0)},onMouseLeave:()=>{i(!1)},children:[a?(0,g.jsx)(iC,{language:"sql",theme:"light",value:u??"",options:c}):(0,g.jsx)(rj,{language:"sql",theme:"light",original:u,modified:d,keepCurrentOriginalModel:!0,keepCurrentModifiedModel:!0,options:{...l,renderSideBySide:!1}}),(0,g.jsx)(Ag.IconButton,{onClick:t,size:"md","aria-label":"Expand",variant:"ghost",style:{position:"absolute",top:"5px",right:"20px",opacity:r?.5:.1,transition:"opacity 0.3s ease-in-out"},children:(0,g.jsx)(As,{})}),(0,g.jsx)(Az.Dialog.Root,{open:A,onOpenChange:n,size:"xl",children:(0,g.jsxs)(AW.Portal,{children:[(0,g.jsx)(Az.Dialog.Backdrop,{}),(0,g.jsx)(Az.Dialog.Positioner,{children:(0,g.jsxs)(Az.Dialog.Content,{overflowY:"auto",height:"75%",children:[(0,g.jsxs)(Az.Dialog.Header,{children:[a?(0,g.jsxs)(Az.Dialog.Title,{children:[(0,g.jsx)("code",{children:h})," Model Code"]}):(0,g.jsxs)(Az.Dialog.Title,{children:[(0,g.jsx)("code",{children:h})," Model Code Diff"]}),(0,g.jsx)(Az.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AG.CloseButton,{size:"sm"})})]}),(0,g.jsx)(Az.Dialog.Body,{children:a?(0,g.jsx)(rL,{language:"sql",theme:"light",value:u??"",options:{...c,fontSize:16}}):(0,g.jsx)(rj,{language:"sql",theme:"light",original:u,modified:d,options:{...l,fontSize:16}})})]})})]})})]})};function cj(e){return(0,e7.GenIcon)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 472a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 0 1-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z"},child:[]}]})(e)}async function cH(e,A){return await (0,t5.submitRun)("query",e,A)}async function cD(e,A){return await (0,t5.submitRun)("query_base",e,A)}async function cL(e,A){return await (0,t5.submitRun)("query_diff",e,A)}let cR="recce-",cT={bypassSaveOverwrite:`${cR}-bypass-save-overwrite`,previewChangeFeedbackID:`${cR}-preview-change-feedback`,prepareEnvGuideID:`${cR}-prepare-env`};function cM({description:e,onLike:A,onDislike:t,onClickLink:n,externalLink:r,externalLinkText:i}){return(0,g.jsxs)(v.Flex,{gap:4,justifyContent:"center",alignContent:"center",alignItems:"center",children:[e,(0,g.jsx)(Ag.IconButton,{"aria-label":"thumbs up",variant:"ghost",width:"32px",height:"32px",onClick:A,children:(0,g.jsx)(k,{src:"/imgs/feedback/thumbs-up.png",alt:"like"})}),(0,g.jsx)(Ag.IconButton,{"aria-label":"thumbs down",variant:"ghost",width:"32px",height:"32px",onClick:t,children:(0,g.jsx)(k,{src:"/imgs/feedback/thumbs-down.png",alt:"dislike"})}),r&&i&&(0,g.jsxs)(j.Link,{href:r,target:"_blank",textDecoration:"underline",onClick:n,children:[i," ",(0,g.jsx)(ip.LuExternalLink,{})]})]})}var cO=e.i(29450),cN=e.i(12680),cP=e.i(61332);let c_=(0,E.forwardRef)(function({unstyled:e,...A},t){let n=(0,cP.useRecipe)({key:"inputAddon",recipe:A.recipe}),[r,i]=n.splitVariantProps(A),o=e?cN.EMPTY_SLOT_STYLES:n(r);return(0,g.jsx)(I.chakra.div,{ref:t,...i,css:[o,A.css]})}),cK=(0,I.chakra)("div",{base:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,color:"fg.muted",height:"full",fontSize:"sm",px:"3"},variants:{placement:{start:{insetInlineStart:"0"},end:{insetInlineEnd:"0"}}}});var cV=e.i(13160);let cG=(0,E.forwardRef)(function(e,A){let{startElement:t,startElementProps:n,endElement:r,endElementProps:i,startAddon:o,startAddonProps:s,endAddon:a,endAddonProps:l,children:c,startOffset:u="0px",endOffset:d="0px",...h}=e,f=E.Children.only(c),p=!!(o||a);return(0,g.jsxs)(cV.Group,{width:"full",ref:A,attached:p,skip:e=>e.type===cK,...h,children:[o&&(0,g.jsx)(c_,{...s,children:o}),t&&(0,g.jsx)(cK,{pointerEvents:"none",...n,children:t}),(0,E.cloneElement)(f,{...t&&{ps:`calc(var(--input-height) - ${u})`},...r&&{pe:`calc(var(--input-height) - ${d})`},...c.props}),r&&(0,g.jsx)(cK,{placement:"end",...i,children:r}),a&&(0,g.jsx)(c_,{...l,children:a})]})});var tI=tI,cz=e.i(58048);let cW=(0,E.forwardRef)(function(e,A){let{gap:t="0.5rem",justify:n,direction:r,align:i,...o}=e;return(0,g.jsx)(I.chakra.div,{ref:A,display:"flex",flexWrap:"wrap",justifyContent:n,alignItems:i,flexDirection:r,gap:t,...o,className:(0,S.cx)("chakra-wrap",e.className)})});cW.displayName="Wrap";let c$=(0,cz.defineStyle)({display:"flex",alignItems:"flex-start"}),cX=(0,E.forwardRef)(function(e,A){return(0,g.jsx)(I.chakra.div,{ref:A,css:[c$,e.css],...e,className:(0,S.cx)("chakra-wrap__listitem",e.className)})});var cY=e.i(28337);let cJ=e=>{let{defaultValues:A,suggestionList:t,onValuesChange:n,className:r}=e,[i,o]=(0,E.useState)(A??[]),[s,a]=(0,E.useState)(""),[l,c]=(0,E.useState)(!1),u=(0,E.useRef)(null),d=e=>{i.includes(e)||(a(""),o([...i,e]),n([...i,e]))},h=s.toLowerCase(),f=t?.filter(e=>""===h||e.toLowerCase().includes(h)).filter(e=>!i.includes(e))??[],p=i.length>0?(0,g.jsx)(AV.Button,{size:"2xs",variant:"ghost",color:"#3182CE",fontSize:e.size,paddingTop:"0",me:-2,onClick:()=>{a(""),o([]),n([])},children:"Clear"}):void 0;return(0,g.jsx)(cG,{width:e.width,className:r,endElement:p,children:(0,g.jsxs)(tB.Menu.Root,{size:"sm",lazyMount:!0,closeOnSelect:!1,onOpenChange:()=>u.current?.focus(),children:[(0,g.jsx)(tB.Menu.Trigger,{asChild:!0,children:(0,g.jsx)(AV.Button,{width:"100%",size:"2xs",colorPalette:"gray",variant:"outline",justifyContent:"flex-start",children:i.length>1?`${i.length} ${e.unitName}s selected`:1===i.length?i[0]:""})}),(0,g.jsx)(AW.Portal,{children:(0,g.jsx)(tB.Menu.Positioner,{children:(0,g.jsxs)(tB.Menu.Content,{zIndex:"popover",fontSize:e.size,width:e.width,className:"no-track-pii-safe",children:[(0,g.jsx)(tB.Menu.ItemGroup,{children:(0,g.jsxs)(cW,{border:"1px solid #e2e8f0",borderRadius:"4px",width:"calc(100% - 8px)",marginX:"4px",padding:"4px",children:[i.map(A=>(0,g.jsx)(cX,{children:(0,g.jsxs)(tI.Root,{paddingX:"0.5rem",size:"sm"===e.size||"md"===e.size||"lg"===e.size?e.size:"md",children:[(0,g.jsx)(tI.Label,{children:A}),(0,g.jsx)(tI.EndElement,{children:(0,g.jsx)(tI.CloseTrigger,{onClick:()=>{o(i.filter(e=>e!==A)),n(i.filter(e=>e!==A))}})})]},A)},A)),(0,g.jsx)(cX,{width:"100%",children:(0,g.jsx)(oD.Input,{ref:u,placeholder:"Filter or add custom keys",variant:"subtle",size:e.size,value:s,onChange:e=>{a(e.target.value),c(!0)},onKeyDown:e=>{let A=e.currentTarget.value.trim().replace(",","");switch(e.key){case",":case"Enter":d(A),a("");break;case"Backspace":""===e.currentTarget.value&&i.length>0&&(o(i.slice(0,-1)),n(i.slice(0,-1)))}},onBlur:()=>{u.current&&l&&u.current.focus()}})})]})}),(0,g.jsx)(tB.Menu.Separator,{}),(0,g.jsxs)(tB.Menu.ItemGroup,{children:[""!==s&&!t?.includes(s)&&(0,g.jsxs)(tB.Menu.Item,{value:"custom-value-by-filter",onClick:()=>{d(s),c(!1)},children:["Add '",s,"' to the list"]},"custom-value-by-filter"),f.map((e,A)=>(0,g.jsx)(tB.Menu.Item,{value:`option-${A}`,onClick:()=>{d(e)},children:e},cY.default.uniqueId(`option-${A}`))).slice(0,10),f.length>10&&(0,g.jsx)(Aw.Tooltip,{content:"Please use filter to find more items",positioning:{placement:"top"},children:(0,g.jsxs)(y.Box,{px:"12px",color:"gray",fontSize:"8pt",children:["and ",f.length-10," more items..."]})})]})]})})})]})})},cq=({defaultPrimaryKeys:e,onPrimaryKeysChange:A,...t})=>{let{lineageGraph:n,isActionAvailable:r}=(0,AY.useLineageGraphContext)(),i=(0,E.useMemo)(()=>{if(!n)return[];let e=new Set;for(let A in n.nodes){let t=n.nodes[A];Object.entries({...t.data.data.base?.columns??{},...t.data.data.current?.columns??{}}).forEach(([A,t])=>{t?.unique&&e.add(A)})}return Array.from(e).sort()},[n]);return(0,g.jsx)(v.Flex,{...t,children:(0,g.jsxs)(cO.Field.Root,{m:"0 0.5rem",gap:0,children:[(0,g.jsxs)(cO.Field.Label,{fontSize:"0.625rem",margin:0,children:["Diff with Primary Key(s) (suggested)"," ",(0,g.jsx)(Aw.Tooltip,{content:"Provide a primary key to perform query diff in data warehouse and only return changed rows.",positioning:{placement:"bottom-end"},children:(0,g.jsx)(AX.PiInfo,{color:"gray.600"})})]}),(0,g.jsx)(cJ,{className:"no-track-pii-safe",unitName:"key",defaultValues:e,suggestionList:i,onValuesChange:A,size:"2xs",width:"240px",placeholder:"Select or type to add keys",disabled:!r("query_diff_with_primary_key")})]})})};var e5=e5,cZ=e.i(6033);let c0=Symbol.for("yaml.alias"),c1=Symbol.for("yaml.document"),c2=Symbol.for("yaml.map"),c4=Symbol.for("yaml.pair"),c3=Symbol.for("yaml.scalar"),c5=Symbol.for("yaml.seq"),c6=Symbol.for("yaml.node.type"),c8=e=>!!e&&"object"==typeof e&&e[c6]===c0,c7=e=>!!e&&"object"==typeof e&&e[c6]===c1,c9=e=>!!e&&"object"==typeof e&&e[c6]===c2,ue=e=>!!e&&"object"==typeof e&&e[c6]===c4,uA=e=>!!e&&"object"==typeof e&&e[c6]===c3,ut=e=>!!e&&"object"==typeof e&&e[c6]===c5;function un(e){if(e&&"object"==typeof e)switch(e[c6]){case c2:case c5:return!0}return!1}function ur(e){if(e&&"object"==typeof e)switch(e[c6]){case c0:case c2:case c3:case c5:return!0}return!1}let ui=e=>(uA(e)||un(e))&&!!e.anchor,uo=Symbol("break visit"),us=Symbol("skip children"),ua=Symbol("remove node");function ul(e,A){let t=uh(A);c7(e)?uc(null,e.contents,t,Object.freeze([e]))===ua&&(e.contents=null):uc(null,e,t,Object.freeze([]))}function uc(e,A,t,n){let r=uf(e,A,t,n);if(ur(r)||ue(r))return ug(e,n,r),uc(e,r,t,n);if("symbol"!=typeof r){if(un(A)){n=Object.freeze(n.concat(A));for(let e=0;e<A.items.length;++e){let r=uc(e,A.items[e],t,n);if("number"==typeof r)e=r-1;else{if(r===uo)return uo;r===ua&&(A.items.splice(e,1),e-=1)}}}else if(ue(A)){n=Object.freeze(n.concat(A));let e=uc("key",A.key,t,n);if(e===uo)return uo;e===ua&&(A.key=null);let r=uc("value",A.value,t,n);if(r===uo)return uo;r===ua&&(A.value=null)}}return r}async function uu(e,A){let t=uh(A);c7(e)?await ud(null,e.contents,t,Object.freeze([e]))===ua&&(e.contents=null):await ud(null,e,t,Object.freeze([]))}async function ud(e,A,t,n){let r=await uf(e,A,t,n);if(ur(r)||ue(r))return ug(e,n,r),ud(e,r,t,n);if("symbol"!=typeof r){if(un(A)){n=Object.freeze(n.concat(A));for(let e=0;e<A.items.length;++e){let r=await ud(e,A.items[e],t,n);if("number"==typeof r)e=r-1;else{if(r===uo)return uo;r===ua&&(A.items.splice(e,1),e-=1)}}}else if(ue(A)){n=Object.freeze(n.concat(A));let e=await ud("key",A.key,t,n);if(e===uo)return uo;e===ua&&(A.key=null);let r=await ud("value",A.value,t,n);if(r===uo)return uo;r===ua&&(A.value=null)}}return r}function uh(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function uf(e,A,t,n){return"function"==typeof t?t(e,A,n):c9(A)?t.Map?.(e,A,n):ut(A)?t.Seq?.(e,A,n):ue(A)?t.Pair?.(e,A,n):uA(A)?t.Scalar?.(e,A,n):c8(A)?t.Alias?.(e,A,n):void 0}function ug(e,A,t){let n=A[A.length-1];if(un(n))n.items[e]=t;else if(ue(n))"key"===e?n.key=t:n.value=t;else if(c7(n))n.contents=t;else{let e=c8(n)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}ul.BREAK=uo,ul.SKIP=us,ul.REMOVE=ua,uu.BREAK=uo,uu.SKIP=us,uu.REMOVE=ua;let up={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},uB=e=>e.replace(/[!,[\]{}]/g,e=>up[e]);class um{constructor(e,A){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},um.defaultYaml,e),this.tags=Object.assign({},um.defaultTags,A)}clone(){let e=new um(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new um(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:um.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},um.defaultTags)}return e}add(e,A){this.atNextDocument&&(this.yaml={explicit:um.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},um.defaultTags),this.atNextDocument=!1);let t=e.trim().split(/[ \t]+/),n=t.shift();switch(n){case"%TAG":{if(2!==t.length&&(A(0,"%TAG directive should contain exactly two parts"),t.length<2))return!1;let[e,n]=t;return this.tags[e]=n,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==t.length)return A(0,"%YAML directive should contain exactly one part"),!1;let[e]=t;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return A(6,`Unsupported YAML version ${e}`,t),!1}}default:return A(0,`Unknown directive ${n}`,!0),!1}}tagName(e,A){if("!"===e)return"!";if("!"!==e[0])return A(`Not a valid tag: ${e}`),null;if("<"===e[1]){let t=e.slice(2,-1);return"!"===t||"!!"===t?(A(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&A("Verbatim tags must end with a >"),t)}let[,t,n]=e.match(/^(.*!)([^!]*)$/s);n||A(`The ${e} tag has no suffix`);let r=this.tags[t];if(r)try{return r+decodeURIComponent(n)}catch(e){return A(String(e)),null}return"!"===t?e:(A(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[A,t]of Object.entries(this.tags))if(e.startsWith(t))return A+uB(e.substring(t.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let A,t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);if(e&&n.length>0&&ur(e.contents)){let t={};ul(e.contents,(e,A)=>{ur(A)&&A.tag&&(t[A.tag]=!0)}),A=Object.keys(t)}else A=[];for(let[r,i]of n)("!!"!==r||"tag:yaml.org,2002:"!==i)&&(!e||A.some(e=>e.startsWith(i)))&&t.push(`%TAG ${r} ${i}`);return t.join("\n")}}function uw(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let A=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${A}`)}return!0}function uy(e){let A=new Set;return ul(e,{Value(e,t){t.anchor&&A.add(t.anchor)}}),A}function ux(e,A){for(let t=1;;++t){let n=`${e}${t}`;if(!A.has(n))return n}}function uC(e,A,t,n){if(n&&"object"==typeof n)if(Array.isArray(n))for(let A=0,t=n.length;A<t;++A){let t=n[A],r=uC(e,n,String(A),t);void 0===r?delete n[A]:r!==t&&(n[A]=r)}else if(n instanceof Map)for(let A of Array.from(n.keys())){let t=n.get(A),r=uC(e,n,A,t);void 0===r?n.delete(A):r!==t&&n.set(A,r)}else if(n instanceof Set)for(let A of Array.from(n)){let t=uC(e,n,A,A);void 0===t?n.delete(A):t!==A&&(n.delete(A),n.add(t))}else for(let[A,t]of Object.entries(n)){let r=uC(e,n,A,t);void 0===r?delete n[A]:r!==t&&(n[A]=r)}return e.call(A,t,n)}function ub(e,A,t){if(Array.isArray(e))return e.map((e,A)=>ub(e,String(A),t));if(e&&"function"==typeof e.toJSON){if(!t||!ui(e))return e.toJSON(A,t);let n={aliasCount:0,count:1,res:void 0};t.anchors.set(e,n),t.onCreate=e=>{n.res=e,delete t.onCreate};let r=e.toJSON(A,t);return t.onCreate&&t.onCreate(r),r}return"bigint"!=typeof e||t?.keep?e:Number(e)}um.defaultYaml={explicit:!1,version:"1.2"},um.defaultTags={"!!":"tag:yaml.org,2002:"};class uv{constructor(e){Object.defineProperty(this,c6,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:A,maxAliasCount:t,onAnchor:n,reviver:r}={}){if(!c7(e))throw TypeError("A document argument is required");let i={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===A,mapKeyWarned:!1,maxAliasCount:"number"==typeof t?t:100},o=ub(this,"",i);if("function"==typeof n)for(let{count:e,res:A}of i.anchors.values())n(A,e);return"function"==typeof r?uC(r,{"":o},"",o):o}}class uQ extends uv{constructor(e){super(c0),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,A){let t,n;for(let r of(A?.aliasResolveCache?t=A.aliasResolveCache:(t=[],ul(e,{Node:(e,A)=>{(c8(A)||ui(A))&&t.push(A)}}),A&&(A.aliasResolveCache=t)),t)){if(r===this)break;r.anchor===this.source&&(n=r)}return n}toJSON(e,A){if(!A)return{source:this.source};let{anchors:t,doc:n,maxAliasCount:r}=A,i=this.resolve(n,A);if(!i)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let o=t.get(i);if(o||(ub(i,null,A),o=t.get(i)),!o||void 0===o.res)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(r>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=function e(A,t,n){if(c8(t)){let e=t.resolve(A),r=n&&e&&n.get(e);return r?r.count*r.aliasCount:0}if(un(t)){let r=0;for(let i of t.items){let t=e(A,i,n);t>r&&(r=t)}return r}return ue(t)?Math.max(e(A,t.key,n),e(A,t.value,n)):1}(n,i,t)),o.count*o.aliasCount>r))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return o.res}toString(e,A,t){let n=`*${this.source}`;if(e){if(uw(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${n} `}return n}}let uF=e=>!e||"function"!=typeof e&&"object"!=typeof e;class uU extends uv{constructor(e){super(c3),this.value=e}toJSON(e,A){return A?.keep?this.value:ub(this.value,e,A)}toString(){return String(this.value)}}function uE(e,A,t){let n;if(c7(e)&&(e=e.contents),ur(e))return e;if(ue(e)){let A=t.schema[c2].createNode?.(t.schema,null,t);return A.items.push(e),A}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:o,schema:s,sourceObjects:a}=t;if(r&&e&&"object"==typeof e){if(n=a.get(e))return n.anchor??(n.anchor=i(e)),new uQ(n.anchor);n={anchor:null,node:null},a.set(e,n)}A?.startsWith("!!")&&(A="tag:yaml.org,2002:"+A.slice(2));let l=function(e,A,t){if(A){let e=t.filter(e=>e.tag===A),n=e.find(e=>!e.format)??e[0];if(!n)throw Error(`Tag ${A} not found`);return n}return t.find(A=>A.identify?.(e)&&!A.format)}(e,A,s.tags);if(!l){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let A=new uU(e);return n&&(n.node=A),A}l=e instanceof Map?s[c2]:Symbol.iterator in Object(e)?s[c5]:s[c2]}o&&(o(l),delete t.onTagObj);let c=l?.createNode?l.createNode(t.schema,e,t):"function"==typeof l?.nodeClass?.from?l.nodeClass.from(t.schema,e,t):new uU(e);return A?c.tag=A:l.default||(c.tag=l.tag),n&&(n.node=c),c}function uI(e,A,t){let n=t;for(let e=A.length-1;e>=0;--e){let t=A[e];if("number"==typeof t&&Number.isInteger(t)&&t>=0){let e=[];e[t]=n,n=e}else n=new Map([[t,n]])}return uE(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}uU.BLOCK_FOLDED="BLOCK_FOLDED",uU.BLOCK_LITERAL="BLOCK_LITERAL",uU.PLAIN="PLAIN",uU.QUOTE_DOUBLE="QUOTE_DOUBLE",uU.QUOTE_SINGLE="QUOTE_SINGLE";let uS=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class uk extends uv{constructor(e,A){super(e),Object.defineProperty(this,"schema",{value:A,configurable:!0,enumerable:!1,writable:!0})}clone(e){let A=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(A.schema=e),A.items=A.items.map(A=>ur(A)||ue(A)?A.clone(e):A),this.range&&(A.range=this.range.slice()),A}addIn(e,A){if(uS(e))this.add(A);else{let[t,...n]=e,r=this.get(t,!0);if(un(r))r.addIn(n,A);else if(void 0===r&&this.schema)this.set(t,uI(this.schema,n,A));else throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}}deleteIn(e){let[A,...t]=e;if(0===t.length)return this.delete(A);let n=this.get(A,!0);if(un(n))return n.deleteIn(t);throw Error(`Expected YAML collection at ${A}. Remaining path: ${t}`)}getIn(e,A){let[t,...n]=e,r=this.get(t,!0);return 0===n.length?!A&&uA(r)?r.value:r:un(r)?r.getIn(n,A):void 0}hasAllNullValues(e){return this.items.every(A=>{if(!ue(A))return!1;let t=A.value;return null==t||e&&uA(t)&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag})}hasIn(e){let[A,...t]=e;if(0===t.length)return this.has(A);let n=this.get(A,!0);return!!un(n)&&n.hasIn(t)}setIn(e,A){let[t,...n]=e;if(0===n.length)this.set(t,A);else{let e=this.get(t,!0);if(un(e))e.setIn(n,A);else if(void 0===e&&this.schema)this.set(t,uI(this.schema,n,A));else throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}}}let uj=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function uH(e,A){return/^\n+$/.test(e)?e.substring(1):A?e.replace(/^(?! *$)/gm,A):e}let uD=(e,A,t)=>e.endsWith("\n")?uH(t,A):t.includes("\n")?"\n"+uH(t,A):(e.endsWith(" ")?"":" ")+t,uL="flow",uR="block",uT="quoted";function uM(e,A,t="flow",{indentAtStart:n,lineWidth:r=80,minContentWidth:i=20,onFold:o,onOverflow:s}={}){let a,l,c;if(!r||r<0)return e;r<i&&(i=0);let u=Math.max(1+i,1+r-A.length);if(e.length<=u)return e;let d=[],h={},f=r-A.length;"number"==typeof n&&(n>r-Math.max(2,i)?d.push(0):f=r-n);let g=!1,p=-1,B=-1,m=-1;for(t===uR&&-1!==(p=uO(e,p,A.length))&&(f=p+u);c=e[p+=1];){if(t===uT&&"\\"===c){switch(B=p,e[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}m=p}if("\n"===c)t===uR&&(p=uO(e,p,A.length)),f=p+A.length+u,a=void 0;else{if(" "===c&&l&&" "!==l&&"\n"!==l&&" "!==l){let A=e[p+1];A&&" "!==A&&"\n"!==A&&" "!==A&&(a=p)}if(p>=f)if(a)d.push(a),f=a+u,a=void 0;else if(t===uT){for(;" "===l||" "===l;)l=c,c=e[p+=1],g=!0;let A=p>m+1?p-2:B-1;if(h[A])return e;d.push(A),h[A]=!0,f=A+u,a=void 0}else g=!0}l=c}if(g&&s&&s(),0===d.length)return e;o&&o();let w=e.slice(0,d[0]);for(let n=0;n<d.length;++n){let r=d[n],i=d[n+1]||e.length;0===r?w=`
|
|
9
|
+
${A}${e.slice(0,i)}`:(t===uT&&h[r]&&(w+=`${e[r]}\\`),w+=`
|
|
10
|
+
${A}${e.slice(r+1,i)}`)}return w}function uO(e,A,t){let n=A,r=A+1,i=e[r];for(;" "===i||" "===i;)if(A<r+t)i=e[++A];else{do i=e[++A];while(i&&"\n"!==i)n=A,i=e[r=A+1]}return n}let uN=(e,A)=>({indentAtStart:A?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});function uP(e,A){let t=JSON.stringify(e);if(A.options.doubleQuotedAsJSON)return t;let{implicitKey:n}=A,r=A.options.doubleQuotedMinMultiLineLength,i=A.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),o="",s=0;for(let e=0,A=t[e];A;A=t[++e])if(" "===A&&"\\"===t[e+1]&&"n"===t[e+2]&&(o+=t.slice(s,e)+"\\ ",e+=1,s=e,A="\\"),"\\"===A)switch(t[e+1]){case"u":{o+=t.slice(s,e);let A=t.substr(e+2,4);switch(A){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===A.substr(0,2)?o+="\\x"+A.substr(2):o+=t.substr(e,6)}e+=5,s=e+1}break;case"n":if(n||'"'===t[e+2]||t.length<r)e+=1;else{for(o+=t.slice(s,e)+"\n\n";"\\"===t[e+2]&&"n"===t[e+3]&&'"'!==t[e+4];)o+="\n",e+=2;o+=i," "===t[e+2]&&(o+="\\"),e+=1,s=e+1}break;default:e+=1}return o=s?o+t.slice(s):t,n?o:uM(o,i,uT,uN(A,!1))}function u_(e,A){if(!1===A.options.singleQuote||A.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return uP(e,A);let t=A.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),n="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
11
|
+
${t}`)+"'";return A.implicitKey?n:uM(n,t,uL,uN(A,!1))}function uK(e,A){let t,{singleQuote:n}=A.options;if(!1===n)t=uP;else{let A=e.includes('"'),r=e.includes("'");t=A&&!r?u_:r&&!A?uP:n?u_:uP}return t(e,A)}try{n=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{n=/\n+(?!\n|$)/g}function uV({comment:e,type:A,value:t},r,i,o){let s,a,l,c,{blockQuote:u,commentString:d,lineWidth:h}=r.options;if(!u||/\n[\t ]+$/.test(t))return uK(t,r);let f=r.indent||(r.forceBlockIndent||(c=t,/^(%|---|\.\.\.)/m.test(c))?" ":""),g="literal"===u||"folded"!==u&&A!==uU.BLOCK_FOLDED&&(A===uU.BLOCK_LITERAL||!function(e,A,t){if(!A||A<0)return!1;let n=A-t,r=e.length;if(r<=n)return!1;for(let A=0,t=0;A<r;++A)if("\n"===e[A]){if(A-t>n)return!0;if(r-(t=A+1)<=n)return!1}return!0}(t,h,f.length));if(!t)return g?"|\n":">\n";for(a=t.length;a>0;--a){let e=t[a-1];if("\n"!==e&&" "!==e&&" "!==e)break}let p=t.substring(a),B=p.indexOf("\n");-1===B?s="-":t===p||B!==p.length-1?(s="+",o&&o()):s="",p&&(t=t.slice(0,-p.length),"\n"===p[p.length-1]&&(p=p.slice(0,-1)),p=p.replace(n,`$&${f}`));let m=!1,w=-1;for(l=0;l<t.length;++l){let e=t[l];if(" "===e)m=!0;else if("\n"===e)w=l;else break}let y=t.substring(0,w<l?w+1:l);y&&(t=t.substring(y.length),y=y.replace(/\n+/g,`$&${f}`));let x=f?"2":"1",C=(m?x:"")+s;if(e&&(C+=" "+d(e.replace(/ ?[\r\n]+/g," ")),i&&i()),!g){let e=t.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${f}`),n=!1,i=uN(r,!0);"folded"!==u&&A!==uU.BLOCK_FOLDED&&(i.onOverflow=()=>{n=!0});let o=uM(`${y}${e}${p}`,f,uR,i);if(!n)return`>${C}
|
|
12
|
+
${f}${o}`}return t=t.replace(/\n+/g,`$&${f}`),`|${C}
|
|
13
|
+
${f}${y}${t}${p}`}function uG(e,A,t,n){let{implicitKey:r,inFlow:i}=A,o="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==uU.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=uU.QUOTE_DOUBLE);let a=e=>{switch(e){case uU.BLOCK_FOLDED:case uU.BLOCK_LITERAL:return r||i?uK(o.value,A):uV(o,A,t,n);case uU.QUOTE_DOUBLE:return uP(o.value,A);case uU.QUOTE_SINGLE:return u_(o.value,A);case uU.PLAIN:return function(e,A,t,n){let{type:r,value:i}=e,{actualString:o,implicitKey:s,indent:a,indentStep:l,inFlow:c}=A;if(s&&i.includes("\n")||c&&/[[\]{},]/.test(i))return uK(i,A);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return s||c||!i.includes("\n")?uK(i,A):uV(e,A,t,n);if(!s&&!c&&r!==uU.PLAIN&&i.includes("\n"))return uV(e,A,t,n);if(/^(%|---|\.\.\.)/m.test(i)){if(""===a)return A.forceBlockIndent=!0,uV(e,A,t,n);else if(s&&a===l)return uK(i,A)}let u=i.replace(/\n+/g,`$&
|
|
14
|
+
${a}`);if(o){let e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(u),{compat:t,tags:n}=A.doc.schema;if(n.some(e)||t?.some(e))return uK(i,A)}return s?u:uM(u,a,uL,uN(A,!1))}(o,A,t,n);default:return null}},l=a(s);if(null===l){let{defaultKeyType:e,defaultStringType:t}=A.options,n=r&&e||t;if(null===(l=a(n)))throw Error(`Unsupported default string type ${n}`)}return l}function uz(e,A){let t,n=Object.assign({blockQuote:!0,commentString:uj,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,A);switch(n.collectionStyle){case"block":t=!1;break;case"flow":t=!0;break;default:t=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:t,options:n}}function uW(e,A,t,n){let r;if(ue(e))return e.toString(A,t,n);if(c8(e)){if(A.doc.directives)return e.toString(A);if(A.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");A.resolvedAliases?A.resolvedAliases.add(e):A.resolvedAliases=new Set([e]),e=e.resolve(A.doc)}let i=ur(e)?e:A.doc.createNode(e,{onTagObj:e=>r=e});r??(r=function(e,A){let t,n;if(A.tag){let t=e.filter(e=>e.tag===A.tag);if(t.length>0)return t.find(e=>e.format===A.format)??t[0]}if(uA(A)){t=A.value;let r=e.filter(e=>e.identify?.(t));if(r.length>1){let e=r.filter(e=>e.test);e.length>0&&(r=e)}n=r.find(e=>e.format===A.format)??r.find(e=>!e.format)}else t=A,n=e.find(e=>e.nodeClass&&t instanceof e.nodeClass);if(!n){let e=t?.constructor?.name??(null===t?"null":typeof t);throw Error(`Tag not resolved for ${e} value`)}return n}(A.doc.schema.tags,i));let o=function(e,A,{anchors:t,doc:n}){if(!n.directives)return"";let r=[],i=(uA(e)||un(e))&&e.anchor;i&&uw(i)&&(t.add(i),r.push(`&${i}`));let o=e.tag??(A.default?null:A.tag);return o&&r.push(n.directives.tagString(o)),r.join(" ")}(i,r,A);o.length>0&&(A.indentAtStart=(A.indentAtStart??0)+o.length+1);let s="function"==typeof r.stringify?r.stringify(i,A,t,n):uA(i)?uG(i,A,t,n):i.toString(A,t,n);return o?uA(i)||"{"===s[0]||"["===s[0]?`${o} ${s}`:`${o}
|
|
15
|
+
${A.indent}${s}`:s}function u$(e,A){("debug"===e||"warn"===e)&&console.warn(A)}let uX={identify:e=>"<<"===e||"symbol"==typeof e&&"<<"===e.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new uU(Symbol("<<")),{addToJSMap:uY}),stringify:()=>"<<"};function uY(e,A,t){if(ut(t=e&&c8(t)?t.resolve(e.doc):t))for(let n of t.items)uJ(e,A,n);else if(Array.isArray(t))for(let n of t)uJ(e,A,n);else uJ(e,A,t)}function uJ(e,A,t){let n=e&&c8(t)?t.resolve(e.doc):t;if(!c9(n))throw Error("Merge sources must be maps or map aliases");for(let[t,r]of n.toJSON(null,e,Map))A instanceof Map?A.has(t)||A.set(t,r):A instanceof Set?A.add(t):Object.prototype.hasOwnProperty.call(A,t)||Object.defineProperty(A,t,{value:r,writable:!0,enumerable:!0,configurable:!0});return A}function uq(e,A,{key:t,value:n}){if(ur(t)&&t.addToJSMap)t.addToJSMap(e,A,n);else if((uX.identify(t)||uA(t)&&(!t.type||t.type===uU.PLAIN)&&uX.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===uX.tag&&e.default))uY(e,A,n);else{let r=ub(t,"",e);if(A instanceof Map)A.set(r,ub(n,r,e));else if(A instanceof Set)A.add(r);else{let i=function(e,A,t){if(null===A)return"";if("object"!=typeof A)return String(A);if(ur(e)&&t?.doc){let A=uz(t.doc,{});for(let e of(A.anchors=new Set,t.anchors.keys()))A.anchors.add(e.anchor);A.inFlow=!0,A.inStringifyKey=!0;let n=e.toString(A);if(!t.mapKeyWarned){let e=JSON.stringify(n);e.length>40&&(e=e.substring(0,36)+'..."'),u$(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return n}return JSON.stringify(A)}(t,r,e),o=ub(n,i,e);i in A?Object.defineProperty(A,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):A[i]=o}}return A}function uZ(e,A,t){return new u0(uE(e,void 0,t),uE(A,void 0,t))}class u0{constructor(e,A=null){Object.defineProperty(this,c6,{value:c4}),this.key=e,this.value=A}clone(e){let{key:A,value:t}=this;return ur(A)&&(A=A.clone(e)),ur(t)&&(t=t.clone(e)),new u0(A,t)}toJSON(e,A){let t=A?.mapAsMap?new Map:{};return uq(A,t,this)}toString(e,A,t){return e?.doc?function({key:e,value:A},t,n,r){let i,o,s,{allNullValues:a,doc:l,indent:c,indentStep:u,options:{commentString:d,indentSeq:h,simpleKeys:f}}=t,g=ur(e)&&e.comment||null;if(f){if(g)throw Error("With simple keys, key nodes cannot have comments");if(un(e)||!ur(e)&&"object"==typeof e)throw Error("With simple keys, collection cannot be used as a key value")}let p=!f&&(!e||g&&null==A&&!t.inFlow||un(e)||(uA(e)?e.type===uU.BLOCK_FOLDED||e.type===uU.BLOCK_LITERAL:"object"==typeof e));t=Object.assign({},t,{allNullValues:!1,implicitKey:!p&&(f||!a),indent:c+u});let B=!1,m=!1,w=uW(e,t,()=>B=!0,()=>m=!0);if(!p&&!t.inFlow&&w.length>1024){if(f)throw Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(t.inFlow){if(a||null==A)return B&&n&&n(),""===w?"?":p?`? ${w}`:w}else if(a&&!f||null==A&&p)return w=`? ${w}`,g&&!B?w+=uD(w,t.indent,d(g)):m&&r&&r(),w;B&&(g=null),p?(g&&(w+=uD(w,t.indent,d(g))),w=`? ${w}
|
|
16
|
+
${c}:`):(w=`${w}:`,g&&(w+=uD(w,t.indent,d(g)))),ur(A)?(i=!!A.spaceBefore,o=A.commentBefore,s=A.comment):(i=!1,o=null,s=null,A&&"object"==typeof A&&(A=l.createNode(A))),t.implicitKey=!1,!p&&!g&&uA(A)&&(t.indentAtStart=w.length+1),m=!1,!(!h&&u.length>=2&&!t.inFlow&&!p&&ut(A))||A.flow||A.tag||A.anchor||(t.indent=t.indent.substring(2));let y=!1,x=uW(A,t,()=>y=!0,()=>m=!0),C=" ";if(g||i||o){if(C=i?"\n":"",o){let e=d(o);C+=`
|
|
17
|
+
${uH(e,t.indent)}`}""!==x||t.inFlow?C+=`
|
|
18
|
+
${t.indent}`:"\n"===C&&(C="\n\n")}else if(!p&&un(A)){let e=x[0],n=x.indexOf("\n"),r=-1!==n,i=t.inFlow??A.flow??0===A.items.length;if(r||!i){let A=!1;if(r&&("&"===e||"!"===e)){let t=x.indexOf(" ");"&"===e&&-1!==t&&t<n&&"!"===x[t+1]&&(t=x.indexOf(" ",t+1)),(-1===t||n<t)&&(A=!0)}A||(C=`
|
|
19
|
+
${t.indent}`)}}else(""===x||"\n"===x[0])&&(C="");return w+=C+x,t.inFlow?y&&n&&n():s&&!y?w+=uD(w,t.indent,d(s)):m&&r&&r(),w}(this,e,A,t):JSON.stringify(this)}}function u1(e,A,t){return(A.inFlow??e.flow?function({items:e},A,{flowChars:t,itemIndent:n}){let{indent:r,indentStep:i,flowCollectionPadding:o,options:{commentString:s}}=A,a=Object.assign({},A,{indent:n+=i,inFlow:!0,type:null}),l=!1,c=0,u=[];for(let t=0;t<e.length;++t){let r=e[t],i=null;if(ur(r))r.spaceBefore&&u.push(""),u2(A,u,r.commentBefore,!1),r.comment&&(i=r.comment);else if(ue(r)){let e=ur(r.key)?r.key:null;e&&(e.spaceBefore&&u.push(""),u2(A,u,e.commentBefore,!1),e.comment&&(l=!0));let t=ur(r.value)?r.value:null;t?(t.comment&&(i=t.comment),t.commentBefore&&(l=!0)):null==r.value&&e?.comment&&(i=e.comment)}i&&(l=!0);let o=uW(r,a,()=>i=null);t<e.length-1&&(o+=","),i&&(o+=uD(o,n,s(i))),!l&&(u.length>c||o.includes("\n"))&&(l=!0),u.push(o),c=u.length}let{start:d,end:h}=t;if(0===u.length)return d+h;if(!l){let e=u.reduce((e,A)=>e+A.length+2,2);l=A.options.lineWidth>0&&e>A.options.lineWidth}if(!l)return`${d}${o}${u.join(" ")}${o}${h}`;{let e=d;for(let A of u)e+=A?`
|
|
20
|
+
${i}${r}${A}`:"\n";return`${e}
|
|
21
|
+
${r}${h}`}}:function({comment:e,items:A},t,{blockItemPrefix:n,flowChars:r,itemIndent:i,onChompKeep:o,onComment:s}){let a,{indent:l,options:{commentString:c}}=t,u=Object.assign({},t,{indent:i,type:null}),d=!1,h=[];for(let e=0;e<A.length;++e){let r=A[e],o=null;if(ur(r))!d&&r.spaceBefore&&h.push(""),u2(t,h,r.commentBefore,d),r.comment&&(o=r.comment);else if(ue(r)){let e=ur(r.key)?r.key:null;e&&(!d&&e.spaceBefore&&h.push(""),u2(t,h,e.commentBefore,d))}d=!1;let s=uW(r,u,()=>o=null,()=>d=!0);o&&(s+=uD(s,i,c(o))),d&&o&&(d=!1),h.push(n+s)}if(0===h.length)a=r.start+r.end;else{a=h[0];for(let e=1;e<h.length;++e){let A=h[e];a+=A?`
|
|
22
|
+
${l}${A}`:"\n"}}return e?(a+="\n"+uH(c(e),l),s&&s()):d&&o&&o(),a})(e,A,t)}function u2({indent:e,options:{commentString:A}},t,n,r){if(n&&r&&(n=n.replace(/^\n+/,"")),n){let r=uH(A(n),e);t.push(r.trimStart())}}function u4(e,A){let t=uA(A)?A.value:A;for(let n of e)if(ue(n)&&(n.key===A||n.key===t||uA(n.key)&&n.key.value===t))return n}class u3 extends uk{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(c2,e),this.items=[]}static from(e,A,t){let{keepUndefined:n,replacer:r}=t,i=new this(e),o=(e,o)=>{if("function"==typeof r)o=r.call(A,e,o);else if(Array.isArray(r)&&!r.includes(e))return;(void 0!==o||n)&&i.items.push(uZ(e,o,t))};if(A instanceof Map)for(let[e,t]of A)o(e,t);else if(A&&"object"==typeof A)for(let e of Object.keys(A))o(e,A[e]);return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i}add(e,A){let t;t=ue(e)?e:e&&"object"==typeof e&&"key"in e?new u0(e.key,e.value):new u0(e,e?.value);let n=u4(this.items,t.key),r=this.schema?.sortMapEntries;if(n){if(!A)throw Error(`Key ${t.key} already set`);uA(n.value)&&uF(t.value)?n.value.value=t.value:n.value=t.value}else if(r){let e=this.items.findIndex(e=>0>r(t,e));-1===e?this.items.push(t):this.items.splice(e,0,t)}else this.items.push(t)}delete(e){let A=u4(this.items,e);return!!A&&this.items.splice(this.items.indexOf(A),1).length>0}get(e,A){let t=u4(this.items,e),n=t?.value;return(!A&&uA(n)?n.value:n)??void 0}has(e){return!!u4(this.items,e)}set(e,A){this.add(new u0(e,A),!0)}toJSON(e,A,t){let n=t?new t:A?.mapAsMap?new Map:{};for(let e of(A?.onCreate&&A.onCreate(n),this.items))uq(A,n,e);return n}toString(e,A,t){if(!e)return JSON.stringify(this);for(let e of this.items)if(!ue(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),u1(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:t,onComment:A})}}let u5={collection:"map",default:!0,nodeClass:u3,tag:"tag:yaml.org,2002:map",resolve:(e,A)=>(c9(e)||A("Expected a mapping for this tag"),e),createNode:(e,A,t)=>u3.from(e,A,t)};class u6 extends uk{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(c5,e),this.items=[]}add(e){this.items.push(e)}delete(e){let A=u8(e);return"number"==typeof A&&this.items.splice(A,1).length>0}get(e,A){let t=u8(e);if("number"!=typeof t)return;let n=this.items[t];return!A&&uA(n)?n.value:n}has(e){let A=u8(e);return"number"==typeof A&&A<this.items.length}set(e,A){let t=u8(e);if("number"!=typeof t)throw Error(`Expected a valid index, not ${e}.`);let n=this.items[t];uA(n)&&uF(A)?n.value=A:this.items[t]=A}toJSON(e,A){let t=[];A?.onCreate&&A.onCreate(t);let n=0;for(let e of this.items)t.push(ub(e,String(n++),A));return t}toString(e,A,t){return e?u1(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:t,onComment:A}):JSON.stringify(this)}static from(e,A,t){let{replacer:n}=t,r=new this(e);if(A&&Symbol.iterator in Object(A)){let e=0;for(let i of A){if("function"==typeof n){let t=A instanceof Set?i:String(e++);i=n.call(A,t,i)}r.items.push(uE(i,void 0,t))}}return r}}function u8(e){let A=uA(e)?e.value:e;return A&&"string"==typeof A&&(A=Number(A)),"number"==typeof A&&Number.isInteger(A)&&A>=0?A:null}let u7={collection:"seq",default:!0,nodeClass:u6,tag:"tag:yaml.org,2002:seq",resolve:(e,A)=>(ut(e)||A("Expected a sequence for this tag"),e),createNode:(e,A,t)=>u6.from(e,A,t)},u9={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,A,t,n)=>uG(e,A=Object.assign({actualString:!0},A),t,n)},de={identify:e=>null==e,createNode:()=>new uU(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new uU(null),stringify:({source:e},A)=>"string"==typeof e&&de.test.test(e)?e:A.options.nullStr},dA={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new uU("t"===e[0]||"T"===e[0]),stringify:({source:e,value:A},t)=>e&&dA.test.test(e)&&A===("t"===e[0]||"T"===e[0])?e:A?t.options.trueStr:t.options.falseStr};function dt({format:e,minFractionDigits:A,tag:t,value:n}){if("bigint"==typeof n)return String(n);let r="number"==typeof n?n:Number(n);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let i=JSON.stringify(n);if(!e&&A&&(!t||"tag:yaml.org,2002:float"===t)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let t=A-(i.length-e-1);for(;t-- >0;)i+="0"}return i}let dn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:dt},dr={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let A=Number(e.value);return isFinite(A)?A.toExponential():dt(e)}},di={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let A=new uU(parseFloat(e)),t=e.indexOf(".");return -1!==t&&"0"===e[e.length-1]&&(A.minFractionDigits=e.length-t-1),A},stringify:dt},ds=e=>"bigint"==typeof e||Number.isInteger(e),da=(e,A,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(A),t);function dl(e,A,t){let{value:n}=e;return ds(n)&&n>=0?t+n.toString(A):dt(e)}let dc={identify:e=>ds(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,A,t)=>da(e,2,8,t),stringify:e=>dl(e,8,"0o")},du={identify:ds,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,A,t)=>da(e,0,10,t),stringify:dt},dd={identify:e=>ds(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,A,t)=>da(e,2,16,t),stringify:e=>dl(e,16,"0x")},dh=[u5,u7,u9,de,dA,dc,du,dd,dn,dr,di];function df(e){return"bigint"==typeof e||Number.isInteger(e)}let dg=({value:e})=>JSON.stringify(e),dp=[u5,u7].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:dg},{identify:e=>null==e,createNode:()=>new uU(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:dg},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:dg},{identify:df,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,A,{intAsBigInt:t})=>t?BigInt(e):parseInt(e,10),stringify:({value:e})=>df(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:dg}],{default:!0,tag:"",test:/^/,resolve:(e,A)=>(A(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),dB={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,A){if("function"!=typeof atob)return A("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let A=atob(e.replace(/[\n\r]/g,"")),t=new Uint8Array(A.length);for(let e=0;e<A.length;++e)t[e]=A.charCodeAt(e);return t}},stringify({comment:e,type:A,value:t},n,r,i){let o;if(!t)return"";if("function"==typeof btoa){let e="";for(let A=0;A<t.length;++A)e+=String.fromCharCode(t[A]);o=btoa(e)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(A??(A=uU.BLOCK_LITERAL),A!==uU.QUOTE_DOUBLE){let e=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),t=Math.ceil(o.length/e),r=Array(t);for(let A=0,n=0;A<t;++A,n+=e)r[A]=o.substr(n,e);o=r.join(A===uU.BLOCK_LITERAL?"\n":" ")}return uG({comment:e,type:A,value:o},n,r,i)}};function dm(e,A){if(ut(e))for(let t=0;t<e.items.length;++t){let n=e.items[t];if(!ue(n)){if(c9(n)){n.items.length>1&&A("Each pair must have its own sequence indicator");let e=n.items[0]||new u0(new uU(null));if(n.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${n.commentBefore}
|
|
23
|
+
${e.key.commentBefore}`:n.commentBefore),n.comment){let A=e.value??e.key;A.comment=A.comment?`${n.comment}
|
|
24
|
+
${A.comment}`:n.comment}n=e}e.items[t]=ue(n)?n:new u0(n)}}else A("Expected a sequence for this tag");return e}function dw(e,A,t){let{replacer:n}=t,r=new u6(e);r.tag="tag:yaml.org,2002:pairs";let i=0;if(A&&Symbol.iterator in Object(A))for(let e of A){let o,s;if("function"==typeof n&&(e=n.call(A,String(i++),e)),Array.isArray(e))if(2===e.length)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let A=Object.keys(e);if(1===A.length)s=e[o=A[0]];else throw TypeError(`Expected tuple with one key, not ${A.length} keys`)}else o=e;r.items.push(uZ(o,s,t))}return r}let dy={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:dm,createNode:dw};class dx extends u6{constructor(){super(),this.add=u3.prototype.add.bind(this),this.delete=u3.prototype.delete.bind(this),this.get=u3.prototype.get.bind(this),this.has=u3.prototype.has.bind(this),this.set=u3.prototype.set.bind(this),this.tag=dx.tag}toJSON(e,A){if(!A)return super.toJSON(e);let t=new Map;for(let e of(A?.onCreate&&A.onCreate(t),this.items)){let n,r;if(ue(e)?(n=ub(e.key,"",A),r=ub(e.value,n,A)):n=ub(e,"",A),t.has(n))throw Error("Ordered maps must not include duplicate keys");t.set(n,r)}return t}static from(e,A,t){let n=dw(e,A,t),r=new this;return r.items=n.items,r}}dx.tag="tag:yaml.org,2002:omap";let dC={collection:"seq",identify:e=>e instanceof Map,nodeClass:dx,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,A){let t=dm(e,A),n=[];for(let{key:e}of t.items)uA(e)&&(n.includes(e.value)?A(`Ordered maps must not include duplicate keys: ${e.value}`):n.push(e.value));return Object.assign(new dx,t)},createNode:(e,A,t)=>dx.from(e,A,t)};function db({value:e,source:A},t){return A&&(e?dv:dQ).test.test(A)?A:e?t.options.trueStr:t.options.falseStr}let dv={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new uU(!0),stringify:db},dQ={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new uU(!1),stringify:db},dF=e=>"bigint"==typeof e||Number.isInteger(e);function dU(e,A,t,{intAsBigInt:n}){let r=e[0];if(("-"===r||"+"===r)&&(A+=1),e=e.substring(A).replace(/_/g,""),n){switch(t){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let A=BigInt(e);return"-"===r?BigInt(-1)*A:A}let i=parseInt(e,t);return"-"===r?-1*i:i}function dE(e,A,t){let{value:n}=e;if(dF(n)){let e=n.toString(A);return n<0?"-"+t+e.substr(1):t+e}return dt(e)}class dI extends u3{constructor(e){super(e),this.tag=dI.tag}add(e){let A;A=ue(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new u0(e.key,null):new u0(e,null),u4(this.items,A.key)||this.items.push(A)}get(e,A){let t=u4(this.items,e);return!A&&ue(t)?uA(t.key)?t.key.value:t.key:t}set(e,A){if("boolean"!=typeof A)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof A}`);let t=u4(this.items,e);t&&!A?this.items.splice(this.items.indexOf(t),1):!t&&A&&this.items.push(new u0(e))}toJSON(e,A){return super.toJSON(e,A,Set)}toString(e,A,t){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),A,t);throw Error("Set items must all have null values")}static from(e,A,t){let{replacer:n}=t,r=new this(e);if(A&&Symbol.iterator in Object(A))for(let e of A)"function"==typeof n&&(e=n.call(A,e,e)),r.items.push(uZ(e,null,t));return r}}dI.tag="tag:yaml.org,2002:set";let dS={collection:"map",identify:e=>e instanceof Set,nodeClass:dI,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,A,t)=>dI.from(e,A,t),resolve(e,A){if(c9(e))if(e.hasAllNullValues(!0))return Object.assign(new dI,e);else A("Set items must all have null values");else A("Expected a mapping for this tag");return e}};function dk(e,A){let t=e[0],n="-"===t||"+"===t?e.substring(1):e,r=e=>A?BigInt(e):Number(e),i=n.replace(/_/g,"").split(":").reduce((e,A)=>e*r(60)+r(A),r(0));return"-"===t?r(-1)*i:i}function dj(e){let{value:A}=e,t=e=>e;if("bigint"==typeof A)t=e=>BigInt(e);else if(isNaN(A)||!isFinite(A))return dt(e);let n="";A<0&&(n="-",A*=t(-1));let r=t(60),i=[A%r];return A<60?i.unshift(0):(A=(A-i[0])/r,i.unshift(A%r),A>=60&&(A=(A-i[0])/r,i.unshift(A))),n+i.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let dH={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,A,{intAsBigInt:t})=>dk(e,t),stringify:dj},dD={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>dk(e,!1),stringify:dj},dL={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let A=e.match(dL.test);if(!A)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,t,n,r,i,o,s]=A.map(Number),a=Date.UTC(t,n-1,r,i||0,o||0,s||0,A[7]?Number((A[7]+"00").substr(1,3)):0),l=A[8];if(l&&"Z"!==l){let e=dk(l,!1);30>Math.abs(e)&&(e*=60),a-=6e4*e}return new Date(a)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},dR=[u5,u7,u9,de,dv,dQ,{identify:dF,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,A,t)=>dU(e,2,2,t),stringify:e=>dE(e,2,"0b")},{identify:dF,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,A,t)=>dU(e,1,8,t),stringify:e=>dE(e,8,"0")},{identify:dF,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,A,t)=>dU(e,0,10,t),stringify:dt},{identify:dF,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,A,t)=>dU(e,2,16,t),stringify:e=>dE(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:dt},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let A=Number(e.value);return isFinite(A)?A.toExponential():dt(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let A=new uU(parseFloat(e.replace(/_/g,""))),t=e.indexOf(".");if(-1!==t){let n=e.substring(t+1).replace(/_/g,"");"0"===n[n.length-1]&&(A.minFractionDigits=n.length)}return A},stringify:dt},dB,uX,dC,dy,dS,dH,dD,dL],dT=new Map([["core",dh],["failsafe",[u5,u7,u9]],["json",dp],["yaml11",dR],["yaml-1.1",dR]]),dM={binary:dB,bool:dA,float:di,floatExp:dr,floatNaN:dn,floatTime:dD,int:du,intHex:dd,intOct:dc,intTime:dH,map:u5,merge:uX,null:de,omap:dC,pairs:dy,seq:u7,set:dS,timestamp:dL},dO={"tag:yaml.org,2002:binary":dB,"tag:yaml.org,2002:merge":uX,"tag:yaml.org,2002:omap":dC,"tag:yaml.org,2002:pairs":dy,"tag:yaml.org,2002:set":dS,"tag:yaml.org,2002:timestamp":dL};function dN(e,A,t){let n=dT.get(A);if(n&&!e)return t&&!n.includes(uX)?n.concat(uX):n.slice();let r=n;if(!r)if(Array.isArray(e))r=[];else{let e=Array.from(dT.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${A}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let A of e)r=r.concat(A);else"function"==typeof e&&(r=e(r.slice()));return t&&(r=r.concat(uX)),r.reduce((e,A)=>{let t="string"==typeof A?dM[A]:A;if(!t){let e=JSON.stringify(A),t=Object.keys(dM).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${t}`)}return e.includes(t)||e.push(t),e},[])}let dP=(e,A)=>e.key<A.key?-1:+(e.key>A.key);class d_{constructor({compat:e,customTags:A,merge:t,resolveKnownTags:n,schema:r,sortMapEntries:i,toStringDefaults:o}){this.compat=Array.isArray(e)?dN(e,"compat"):e?dN(null,e):null,this.name="string"==typeof r&&r||"core",this.knownTags=n?dO:{},this.tags=dN(A,this.name,t),this.toStringOptions=o??null,Object.defineProperty(this,c2,{value:u5}),Object.defineProperty(this,c3,{value:u9}),Object.defineProperty(this,c5,{value:u7}),this.sortMapEntries="function"==typeof i?i:!0===i?dP:null}clone(){let e=Object.create(d_.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class dK{constructor(e,A,t){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,c6,{value:c1});let n=null;"function"==typeof A||Array.isArray(A)?n=A:void 0===t&&A&&(t=A,A=void 0);const r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},t);this.options=r;let{version:i}=r;t?._directives?(this.directives=t._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new um({version:i}),this.setSchema(i,t),this.contents=void 0===e?null:this.createNode(e,n,t)}clone(){let e=Object.create(dK.prototype,{[c6]:{value:c1}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=ur(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){dV(this.contents)&&this.contents.add(e)}addIn(e,A){dV(this.contents)&&this.contents.addIn(e,A)}createAlias(e,A){if(!e.anchor){let t=uy(this);e.anchor=!A||t.has(A)?ux(A||"a",t):A}return new uQ(e.anchor)}createNode(e,A,t){var n,r;let i,o,s,a;if("function"==typeof A)e=A.call({"":e},"",e),i=A;else if(Array.isArray(A)){let e=A.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(A=A.concat(e)),i=A}else void 0===t&&A&&(t=A,A=void 0);let{aliasDuplicateObjects:l,anchorPrefix:c,flow:u,keepUndefined:d,onTagObj:h,tag:f}=t??{},{onAnchor:g,setAnchors:p,sourceObjects:B}=(n=this,r=c||"a",o=[],s=new Map,a=null,{onAnchor:e=>{o.push(e),a??(a=uy(n));let A=ux(r,a);return a.add(A),A},setAnchors:()=>{for(let e of o){let A=s.get(e);if("object"==typeof A&&A.anchor&&(uA(A.node)||un(A.node)))A.node.anchor=A.anchor;else{let A=Error("Failed to resolve repeated object (this should not happen)");throw A.source=e,A}}},sourceObjects:s}),m={aliasDuplicateObjects:l??!0,keepUndefined:d??!1,onAnchor:g,onTagObj:h,replacer:i,schema:this.schema,sourceObjects:B},w=uE(e,f,m);return u&&un(w)&&(w.flow=!0),p(),w}createPair(e,A,t={}){return new u0(this.createNode(e,null,t),this.createNode(A,null,t))}delete(e){return!!dV(this.contents)&&this.contents.delete(e)}deleteIn(e){return uS(e)?null!=this.contents&&(this.contents=null,!0):!!dV(this.contents)&&this.contents.deleteIn(e)}get(e,A){return un(this.contents)?this.contents.get(e,A):void 0}getIn(e,A){return uS(e)?!A&&uA(this.contents)?this.contents.value:this.contents:un(this.contents)?this.contents.getIn(e,A):void 0}has(e){return!!un(this.contents)&&this.contents.has(e)}hasIn(e){return uS(e)?void 0!==this.contents:!!un(this.contents)&&this.contents.hasIn(e)}set(e,A){null==this.contents?this.contents=uI(this.schema,[e],A):dV(this.contents)&&this.contents.set(e,A)}setIn(e,A){uS(e)?this.contents=A:null==this.contents?this.contents=uI(this.schema,Array.from(e),A):dV(this.contents)&&this.contents.setIn(e,A)}setSchema(e,A={}){let t;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new um({version:"1.1"}),t={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new um({version:e}),t={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,t=null;break;default:{let A=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${A}`)}}if(A.schema instanceof Object)this.schema=A.schema;else if(t)this.schema=new d_(Object.assign(t,A));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:A,mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},s=ub(this.contents,A??"",o);if("function"==typeof r)for(let{count:e,res:A}of o.anchors.values())r(A,e);return"function"==typeof i?uC(i,{"":s},"",s):s}toJSON(e,A){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:A})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let A=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${A}`)}return function(e,A){let t=[],n=!0===A.directives;if(!1!==A.directives&&e.directives){let A=e.directives.toString(e);A?(t.push(A),n=!0):e.directives.docStart&&(n=!0)}n&&t.push("---");let r=uz(e,A),{commentString:i}=r.options;if(e.commentBefore){1!==t.length&&t.unshift("");let A=i(e.commentBefore);t.unshift(uH(A,""))}let o=!1,s=null;if(e.contents){if(ur(e.contents)){if(e.contents.spaceBefore&&n&&t.push(""),e.contents.commentBefore){let A=i(e.contents.commentBefore);t.push(uH(A,""))}r.forceBlockIndent=!!e.comment,s=e.contents.comment}let A=s?void 0:()=>o=!0,a=uW(e.contents,r,()=>s=null,A);s&&(a+=uD(a,"",i(s))),("|"===a[0]||">"===a[0])&&"---"===t[t.length-1]?t[t.length-1]=`--- ${a}`:t.push(a)}else t.push(uW(e.contents,r));if(e.directives?.docEnd)if(e.comment){let A=i(e.comment);A.includes("\n")?(t.push("..."),t.push(uH(A,""))):t.push(`... ${A}`)}else t.push("...");else{let A=e.comment;A&&o&&(A=A.replace(/^\n+/,"")),A&&((!o||s)&&""!==t[t.length-1]&&t.push(""),t.push(uH(i(A),"")))}return t.join("\n")+"\n"}(this,e)}}function dV(e){if(un(e))return!0;throw Error("Expected a YAML collection as document contents")}class dG extends Error{constructor(e,A,t,n){super(),this.name=e,this.code=t,this.message=n,this.pos=A}}class dz extends dG{constructor(e,A,t){super("YAMLParseError",e,A,t)}}class dW extends dG{constructor(e,A,t){super("YAMLWarning",e,A,t)}}let d$=(e,A)=>t=>{if(-1===t.pos[0])return;t.linePos=t.pos.map(e=>A.linePos(e));let{line:n,col:r}=t.linePos[0];t.message+=` at line ${n}, column ${r}`;let i=r-1,o=e.substring(A.lineStarts[n-1],A.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){let e=Math.min(i-39,o.length-79);o="…"+o.substring(e),i-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),n>1&&/^ *$/.test(o.substring(0,i))){let t=e.substring(A.lineStarts[n-2],A.lineStarts[n-1]);t.length>80&&(t=t.substring(0,79)+"…\n"),o=t+o}if(/[^ ]/.test(o)){let e=1,A=t.linePos[1];A&&A.line===n&&A.col>r&&(e=Math.max(1,Math.min(A.col-r,80-i)));let s=" ".repeat(i)+"^".repeat(e);t.message+=`:
|
|
25
|
+
|
|
26
|
+
${o}
|
|
27
|
+
${s}
|
|
28
|
+
`}};function dX(e,{flow:A,indicator:t,next:n,offset:r,onError:i,parentIndent:o,startOnNewline:s}){let a=!1,l=s,c=s,u="",d="",h=!1,f=!1,g=null,p=null,B=null,m=null,w=null,y=null,x=null;for(let r of e)switch(f&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),f=!1),g&&(l&&"comment"!==r.type&&"newline"!==r.type&&i(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),g=null),r.type){case"space":!A&&("doc-start"!==t||n?.type!=="flow-collection")&&r.source.includes(" ")&&(g=r),c=!0;break;case"comment":{c||i(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=r.source.substring(1)||" ";u?u+=d+e:u=e,d="",l=!1;break}case"newline":l?u?u+=r.source:y&&"seq-item-ind"===t||(a=!0):d+=r.source,l=!0,h=!0,(p||B)&&(m=r),c=!0;break;case"anchor":p&&i(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),r.source.endsWith(":")&&i(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),p=r,x??(x=r.offset),l=!1,c=!1,f=!0;break;case"tag":B&&i(r,"MULTIPLE_TAGS","A node can have at most one tag"),B=r,x??(x=r.offset),l=!1,c=!1,f=!0;break;case t:(p||B)&&i(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),y&&i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${A??"collection"}`),y=r,l="seq-item-ind"===t||"explicit-key-ind"===t,c=!1;break;case"comma":if(A){w&&i(r,"UNEXPECTED_TOKEN",`Unexpected , in ${A}`),w=r,l=!1,c=!1;break}default:i(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),l=!1,c=!1}let C=e[e.length-1],b=C?C.offset+C.source.length:r;return f&&n&&"space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&("scalar"!==n.type||""!==n.source)&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g&&(l&&g.indent<=o||n?.type==="block-map"||n?.type==="block-seq")&&i(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:w,found:y,spaceBefore:a,comment:u,hasNewline:h,anchor:p,tag:B,newlineAfterProp:m,end:b,start:x??b}}function dY(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end){for(let A of e.end)if("newline"===A.type)return!0}return!1;case"flow-collection":for(let A of e.items){for(let e of A.start)if("newline"===e.type)return!0;if(A.sep){for(let e of A.sep)if("newline"===e.type)return!0}if(dY(A.key)||dY(A.value))return!0}return!1;default:return!0}}function dJ(e,A,t){if(A?.type==="flow-collection"){let n=A.end[0];n.indent===e&&("]"===n.source||"}"===n.source)&&dY(A)&&t(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function dq(e,A,t){let{uniqueKeys:n}=e.options;if(!1===n)return!1;let r="function"==typeof n?n:(e,A)=>e===A||uA(e)&&uA(A)&&e.value===A.value;return A.some(e=>r(e.key,t))}let dZ="All mapping items must start at the same column";function d0(e,A,t,n){let r="";if(e){let i=!1,o="";for(let s of e){let{source:e,type:a}=s;switch(a){case"space":i=!0;break;case"comment":{t&&!i&&n(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let A=e.substring(1)||" ";r?r+=o+A:r=A,o="";break}case"newline":r&&(o+=e),i=!0;break;default:n(s,"UNEXPECTED_TOKEN",`Unexpected ${a} at node end`)}A+=e.length}}return{comment:r,offset:A}}let d1="Block collections are not allowed within flow collections",d2=e=>e&&("block-map"===e.type||"block-seq"===e.type);function d4(e,A,t,n,r,i){let o="block-map"===t.type?function({composeNode:e,composeEmptyNode:A},t,n,r,i){let o=new(i?.nodeClass??u3)(t.schema);t.atRoot&&(t.atRoot=!1);let s=n.offset,a=null;for(let i of n.items){let{start:l,key:c,sep:u,value:d}=i,h=dX(l,{indicator:"explicit-key-ind",next:c??u?.[0],offset:s,onError:r,parentIndent:n.indent,startOnNewline:!0}),f=!h.found;if(f){if(c&&("block-seq"===c.type?r(s,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in c&&c.indent!==n.indent&&r(s,"BAD_INDENT",dZ)),!h.anchor&&!h.tag&&!u){a=h.end,h.comment&&(o.comment?o.comment+="\n"+h.comment:o.comment=h.comment);continue}(h.newlineAfterProp||dY(c))&&r(c??l[l.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==n.indent&&r(s,"BAD_INDENT",dZ);t.atKey=!0;let g=h.end,p=c?e(t,c,h,r):A(t,g,l,null,h,r);t.schema.compat&&dJ(n.indent,c,r),t.atKey=!1,dq(t,o.items,p)&&r(g,"DUPLICATE_KEY","Map keys must be unique");let B=dX(u??[],{indicator:"map-value-ind",next:d,offset:p.range[2],onError:r,parentIndent:n.indent,startOnNewline:!c||"block-scalar"===c.type});if(s=B.end,B.found){f&&(d?.type!=="block-map"||B.hasNewline||r(s,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&h.start<B.found.offset-1024&&r(p.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let a=d?e(t,d,B,r):A(t,s,u,null,B,r);t.schema.compat&&dJ(n.indent,d,r),s=a.range[2];let l=new u0(p,a);t.options.keepSourceTokens&&(l.srcToken=i),o.items.push(l)}else{f&&r(p.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),B.comment&&(p.comment?p.comment+="\n"+B.comment:p.comment=B.comment);let e=new u0(p);t.options.keepSourceTokens&&(e.srcToken=i),o.items.push(e)}}return a&&a<s&&r(a,"IMPOSSIBLE","Map comment with trailing content"),o.range=[n.offset,s,a??s],o}(e,A,t,n,i):"block-seq"===t.type?function({composeNode:e,composeEmptyNode:A},t,n,r,i){let o=new(i?.nodeClass??u6)(t.schema);t.atRoot&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let s=n.offset,a=null;for(let{start:i,value:l}of n.items){let c=dX(i,{indicator:"seq-item-ind",next:l,offset:s,onError:r,parentIndent:n.indent,startOnNewline:!0});if(!c.found)if(c.anchor||c.tag||l)l&&"block-seq"===l.type?r(c.end,"BAD_INDENT","All sequence items must start at the same column"):r(s,"MISSING_CHAR","Sequence item without - indicator");else{a=c.end,c.comment&&(o.comment=c.comment);continue}let u=l?e(t,l,c,r):A(t,c.end,i,null,c,r);t.schema.compat&&dJ(n.indent,l,r),s=u.range[2],o.items.push(u)}return o.range=[n.offset,s,a??s],o}(e,A,t,n,i):function({composeNode:e,composeEmptyNode:A},t,n,r,i){let o="{"===n.start.source,s=o?"flow map":"flow sequence",a=new(i?.nodeClass??(o?u3:u6))(t.schema);a.flow=!0;let l=t.atRoot;l&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let c=n.offset+n.start.source.length;for(let i=0;i<n.items.length;++i){let l=n.items[i],{start:u,key:d,sep:h,value:f}=l,g=dX(u,{flow:s,indicator:"explicit-key-ind",next:d??h?.[0],offset:c,onError:r,parentIndent:n.indent,startOnNewline:!1});if(!g.found){if(!g.anchor&&!g.tag&&!h&&!f){0===i&&g.comma?r(g.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):i<n.items.length-1&&r(g.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),g.comment&&(a.comment?a.comment+="\n"+g.comment:a.comment=g.comment),c=g.end;continue}!o&&t.options.strict&&dY(d)&&r(d,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===i)g.comma&&r(g.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(g.comma||r(g.start,"MISSING_CHAR",`Missing , between ${s} items`),g.comment){let e="";e:for(let A of u)switch(A.type){case"comma":case"space":break;case"comment":e=A.source.substring(1);break e;default:break e}if(e){let A=a.items[a.items.length-1];ue(A)&&(A=A.value??A.key),A.comment?A.comment+="\n"+e:A.comment=e,g.comment=g.comment.substring(e.length+1)}}if(o||h||g.found){t.atKey=!0;let i=g.end,p=d?e(t,d,g,r):A(t,i,u,null,g,r);d2(d)&&r(p.range,"BLOCK_IN_FLOW",d1),t.atKey=!1;let B=dX(h??[],{flow:s,indicator:"map-value-ind",next:f,offset:p.range[2],onError:r,parentIndent:n.indent,startOnNewline:!1});if(B.found){if(!o&&!g.found&&t.options.strict){if(h)for(let e of h){if(e===B.found)break;if("newline"===e.type){r(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}g.start<B.found.offset-1024&&r(B.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else f&&("source"in f&&f.source&&":"===f.source[0]?r(f,"MISSING_CHAR",`Missing space after : in ${s}`):r(B.start,"MISSING_CHAR",`Missing , or : between ${s} items`));let m=f?e(t,f,B,r):B.found?A(t,B.end,h,null,B,r):null;m?d2(f)&&r(m.range,"BLOCK_IN_FLOW",d1):B.comment&&(p.comment?p.comment+="\n"+B.comment:p.comment=B.comment);let w=new u0(p,m);if(t.options.keepSourceTokens&&(w.srcToken=l),o)dq(t,a.items,p)&&r(i,"DUPLICATE_KEY","Map keys must be unique"),a.items.push(w);else{let e=new u3(t.schema);e.flow=!0,e.items.push(w);let A=(m??p).range;e.range=[p.range[0],A[1],A[2]],a.items.push(e)}c=m?m.range[2]:B.end}else{let n=f?e(t,f,g,r):A(t,g.end,h,null,g,r);a.items.push(n),c=n.range[2],d2(f)&&r(n.range,"BLOCK_IN_FLOW",d1)}}let u=o?"}":"]",[d,...h]=n.end,f=c;if(d&&d.source===u)f=d.offset+d.source.length;else{let e=s[0].toUpperCase()+s.substring(1),A=l?`${e} must end with a ${u}`:`${e} in block collection must be sufficiently indented and end with a ${u}`;r(c,l?"MISSING_CHAR":"BAD_INDENT",A),d&&1!==d.source.length&&h.unshift(d)}if(h.length>0){let e=d0(h,f,t.options.strict,r);e.comment&&(a.comment?a.comment+="\n"+e.comment:a.comment=e.comment),a.range=[n.offset,f,e.offset]}else a.range=[n.offset,f,f];return a}(e,A,t,n,i),s=o.constructor;return"!"===r||r===s.tagName?o.tag=s.tagName:r&&(o.tag=r),o}function d3(e,A,t){let n=A.offset,r=function({offset:e,props:A},t,n){if("block-scalar-header"!==A[0].type)return n(A[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:r}=A[0],i=r[0],o=0,s="",a=-1;for(let A=1;A<r.length;++A){let t=r[A];if(s||"-"!==t&&"+"!==t){let n=Number(t);!o&&n?o=n:-1===a&&(a=e+A)}else s=t}-1!==a&&n(a,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${r}`);let l=!1,c="",u=r.length;for(let e=1;e<A.length;++e){let r=A[e];switch(r.type){case"space":l=!0;case"newline":u+=r.source.length;break;case"comment":t&&!l&&n(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),u+=r.source.length,c=r.source.substring(1);break;case"error":n(r,"UNEXPECTED_TOKEN",r.message),u+=r.source.length;break;default:{let e=`Unexpected token in block scalar header: ${r.type}`;n(r,"UNEXPECTED_TOKEN",e);let A=r.source;A&&"string"==typeof A&&(u+=A.length)}}}return{mode:i,indent:o,chomp:s,comment:c,length:u}}(A,e.options.strict,t);if(!r)return{value:"",type:null,comment:"",range:[n,n,n]};let i=">"===r.mode?uU.BLOCK_FOLDED:uU.BLOCK_LITERAL,o=A.source?function(e){let A=e.split(/\n( *)/),t=A[0],n=t.match(/^( *)/),r=[n?.[1]?[n[1],t.slice(n[1].length)]:["",t]];for(let e=1;e<A.length;e+=2)r.push([A[e],A[e+1]]);return r}(A.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let A=o[e][1];if(""===A||"\r"===A)s=e;else break}if(0===s){let e="+"===r.chomp&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"",t=n+r.length;return A.source&&(t+=A.source.length),{value:e,type:i,comment:r.comment,range:[n,t,t]}}let a=A.indent+r.indent,l=A.offset+r.length,c=0;for(let A=0;A<s;++A){let[n,i]=o[A];if(""===i||"\r"===i)0===r.indent&&n.length>a&&(a=n.length);else{n.length<a&&t(l+n.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),0===r.indent&&(a=n.length),c=A,0!==a||e.atRoot||t(l,"BAD_INDENT","Block scalar values in collections must be indented");break}l+=n.length+i.length+1}for(let e=o.length-1;e>=s;--e)o[e][0].length>a&&(s=e+1);let u="",d="",h=!1;for(let e=0;e<c;++e)u+=o[e][0].slice(a)+"\n";for(let e=c;e<s;++e){let[A,n]=o[e];l+=A.length+n.length+1;let s="\r"===n[n.length-1];if(s&&(n=n.slice(0,-1)),n&&A.length<a){let e=r.indent?"explicit indentation indicator":"first line",i=`Block scalar lines must not be less indented than their ${e}`;t(l-n.length-(s?2:1),"BAD_INDENT",i),A=""}i===uU.BLOCK_LITERAL?(u+=d+A.slice(a)+n,d="\n"):A.length>a||" "===n[0]?(" "===d?d="\n":h||"\n"!==d||(d="\n\n"),u+=d+A.slice(a)+n,d="\n",h=!0):""===n?"\n"===d?u+="\n":d="\n":(u+=d+n,d=" ",h=!1)}switch(r.chomp){case"-":break;case"+":for(let e=s;e<o.length;++e)u+="\n"+o[e][0].slice(a);"\n"!==u[u.length-1]&&(u+="\n");break;default:u+="\n"}let f=n+r.length+A.source.length;return{value:u,type:i,comment:r.comment,range:[n,f,f]}}function d5(e,A,t){let n,r,{offset:i,type:o,source:s,end:a}=e,l=(e,A,n)=>t(i+e,A,n);switch(o){case"scalar":n=uU.PLAIN,r=function(e,A){let t="";switch(e[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":t=`block scalar indicator ${e[0]}`;break;case"@":case"`":t=`reserved character ${e[0]}`}return t&&A(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),d6(e)}(s,l);break;case"single-quoted-scalar":var c,u;n=uU.QUOTE_SINGLE,c=s,u=l,("'"!==c[c.length-1]||1===c.length)&&u(c.length,"MISSING_CHAR","Missing closing 'quote"),r=d6(c.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":n=uU.QUOTE_DOUBLE,r=function(e,A){let t="";for(let n=1;n<e.length-1;++n){let r=e[n];if("\r"!==r||"\n"!==e[n+1])if("\n"===r){let{fold:A,offset:r}=function(e,A){let t="",n=e[A+1];for(;(" "===n||" "===n||"\n"===n||"\r"===n)&&("\r"!==n||"\n"===e[A+2]);)"\n"===n&&(t+="\n"),A+=1,n=e[A+1];return t||(t=" "),{fold:t,offset:A}}(e,n);t+=A,n=r}else if("\\"===r){let r=e[++n],i=d8[r];if(i)t+=i;else if("\n"===r)for(r=e[n+1];" "===r||" "===r;)r=e[++n+1];else if("\r"===r&&"\n"===e[n+1])for(r=e[++n+1];" "===r||" "===r;)r=e[++n+1];else if("x"===r||"u"===r||"U"===r){let i={x:2,u:4,U:8}[r];t+=function(e,A,t,n){let r=e.substr(A,t),i=r.length===t&&/^[0-9a-fA-F]+$/.test(r)?parseInt(r,16):NaN;if(isNaN(i)){let r=e.substr(A-2,t+2);return n(A-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`),r}return String.fromCodePoint(i)}(e,n+1,i,A),n+=i}else{let r=e.substr(n-1,2);A(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`),t+=r}}else if(" "===r||" "===r){let A=n,i=e[n+1];for(;" "===i||" "===i;)i=e[++n+1];"\n"!==i&&("\r"!==i||"\n"!==e[n+2])&&(t+=n>A?e.slice(A,n+1):r)}else t+=r}return('"'!==e[e.length-1]||1===e.length)&&A(e.length,"MISSING_CHAR",'Missing closing "quote'),t}(s,l);break;default:return t(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[i,i+s.length,i+s.length]}}let d=i+s.length,h=d0(a,d,A,t);return{value:r,type:n,comment:h.comment,range:[i,d,h.offset]}}function d6(e){let A,t;try{A=RegExp("(.*?)(?<![ ])[ ]*\r?\n","sy"),t=RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n","sy")}catch{A=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=A.exec(e);if(!n)return e;let r=n[1],i=" ",o=A.lastIndex;for(t.lastIndex=o;n=t.exec(e);)""===n[1]?"\n"===i?r+=i:i="\n":(r+=i+n[1],i=" "),o=t.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=o,n=s.exec(e),r+i+(n?.[1]??"")}let d8={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function d7(e,A,t,n){let r,i,{value:o,type:s,comment:a,range:l}="block-scalar"===A.type?d3(e,A,n):d5(A,e.options.strict,n),c=t?e.directives.tagName(t.source,e=>n(t,"TAG_RESOLVE_FAILED",e)):null;r=e.options.stringKeys&&e.atKey?e.schema[c3]:c?function(e,A,t,n,r){if("!"===t)return e[c3];let i=[];for(let A of e.tags)if(!A.collection&&A.tag===t)if(!A.default||!A.test)return A;else i.push(A);for(let e of i)if(e.test?.test(A))return e;let o=e.knownTags[t];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(r(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,"tag:yaml.org,2002:str"!==t),e[c3])}(e.schema,o,c,t,n):"scalar"===A.type?function({atKey:e,directives:A,schema:t},n,r,i){let o=t.tags.find(A=>(!0===A.default||e&&"key"===A.default)&&A.test?.test(n))||t[c3];if(t.compat){let e=t.compat.find(e=>e.default&&e.test?.test(n))??t[c3];if(o.tag!==e.tag){let t=A.tagString(o.tag),n=A.tagString(e.tag);i(r,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${t} or ${n}`,!0)}}return o}(e,o,A,n):e.schema[c3];try{let s=r.resolve(o,e=>n(t??A,"TAG_RESOLVE_FAILED",e),e.options);i=uA(s)?s:new uU(s)}catch(e){n(t??A,"TAG_RESOLVE_FAILED",e instanceof Error?e.message:String(e)),i=new uU(o)}return i.range=l,i.source=o,s&&(i.type=s),c&&(i.tag=c),r.format&&(i.format=r.format),a&&(i.comment=a),i}let d9={composeNode:he,composeEmptyNode:hA};function he(e,A,t,n){let r,i=e.atKey,{spaceBefore:o,comment:s,anchor:a,tag:l}=t,c=!0;switch(A.type){case"alias":r=function({options:e},{offset:A,source:t,end:n},r){let i=new uQ(t.substring(1));""===i.source&&r(A,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&r(A+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=A+t.length,s=d0(n,o,e.strict,r);return i.range=[A,o,s.offset],s.comment&&(i.comment=s.comment),i}(e,A,n),(a||l)&&n(A,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":r=d7(e,A,l,n),a&&(r.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":r=function(e,A,t,n,r){let i=n.tag,o=i?A.directives.tagName(i.source,e=>r(i,"TAG_RESOLVE_FAILED",e)):null;if("block-seq"===t.type){let{anchor:e,newlineAfterProp:A}=n,t=e&&i?e.offset>i.offset?e:i:e??i;t&&(!A||A.offset<t.offset)&&r(t,"MISSING_CHAR","Missing newline after block sequence props")}let s="block-map"===t.type?"map":"block-seq"===t.type?"seq":"{"===t.start.source?"map":"seq";if(!i||!o||"!"===o||o===u3.tagName&&"map"===s||o===u6.tagName&&"seq"===s)return d4(e,A,t,r,o);let a=A.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!a){let n=A.schema.knownTags[o];if(!n||n.collection!==s)return n?r(i,"BAD_COLLECTION_TYPE",`${n.tag} used for ${s} collection, but expects ${n.collection??"scalar"}`,!0):r(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),d4(e,A,t,r,o);A.schema.tags.push(Object.assign({},n,{default:!1})),a=n}let l=d4(e,A,t,r,o,a),c=a.resolve?.(l,e=>r(i,"TAG_RESOLVE_FAILED",e),A.options)??l,u=ur(c)?c:new uU(c);return u.range=l.range,u.tag=o,a?.format&&(u.format=a.format),u}(d9,e,A,t,n),a&&(r.anchor=a.source.substring(1));break;default:{let i="error"===A.type?A.message:`Unsupported token (type: ${A.type})`;n(A,"UNEXPECTED_TOKEN",i),r=hA(e,A.offset,void 0,null,t,n),c=!1}}return a&&""===r.anchor&&n(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&e.options.stringKeys&&(!uA(r)||"string"!=typeof r.value||r.tag&&"tag:yaml.org,2002:str"!==r.tag)&&n(l??A,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(r.spaceBefore=!0),s&&("scalar"===A.type&&""===A.source?r.comment=s:r.commentBefore=s),e.options.keepSourceTokens&&c&&(r.srcToken=A),r}function hA(e,A,t,n,{spaceBefore:r,comment:i,anchor:o,tag:s,end:a},l){let c=d7(e,{type:"scalar",offset:function(e,A,t){if(A){t??(t=A.length);for(let n=t-1;n>=0;--n){let t=A[n];switch(t.type){case"space":case"comment":case"newline":e-=t.source.length;continue}for(t=A[++n];t?.type==="space";)e+=t.source.length,t=A[++n];break}}return e}(A,t,n),indent:-1,source:""},s,l);return o&&(c.anchor=o.source.substring(1),""===c.anchor&&l(o,"BAD_ALIAS","Anchor cannot be an empty string")),r&&(c.spaceBefore=!0),i&&(c.comment=i,c.range[2]=a),c}function ht(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];let{offset:A,source:t}=e;return[A,A+("string"==typeof t?t.length:1)]}function hn(e){let A="",t=!1,n=!1;for(let r=0;r<e.length;++r){let i=e[r];switch(i[0]){case"#":A+=(""===A?"":n?"\n\n":"\n")+(i.substring(1)||" "),t=!0,n=!1;break;case"%":e[r+1]?.[0]!=="#"&&(r+=1),t=!1;break;default:t||(n=!0),t=!1}}return{comment:A,afterEmptyLine:n}}class hr{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,A,t,n)=>{let r=ht(e);n?this.warnings.push(new dW(r,A,t)):this.errors.push(new dz(r,A,t))},this.directives=new um({version:e.version||"1.2"}),this.options=e}decorate(e,A){let{comment:t,afterEmptyLine:n}=hn(this.prelude);if(t){let r=e.contents;if(A)e.comment=e.comment?`${e.comment}
|
|
29
|
+
${t}`:t;else if(n||e.directives.docStart||!r)e.commentBefore=t;else if(un(r)&&!r.flow&&r.items.length>0){let e=r.items[0];ue(e)&&(e=e.key);let A=e.commentBefore;e.commentBefore=A?`${t}
|
|
30
|
+
${A}`:t}else{let e=r.commentBefore;r.commentBefore=e?`${t}
|
|
31
|
+
${e}`:t}}A?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:hn(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,A=!1,t=-1){for(let A of e)yield*this.next(A);yield*this.end(A,t)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(A,t,n)=>{let r=ht(e);r[0]+=A,this.onError(r,"BAD_DIRECTIVE",t,n)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let A=function(e,A,{offset:t,start:n,value:r,end:i},o){let s=new dK(void 0,Object.assign({_directives:A},e)),a={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=dX(n,{indicator:"doc-start",next:r??i?.[0],offset:t,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,r&&("block-map"===r.type||"block-seq"===r.type)&&!l.hasNewline&&o(l.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),s.contents=r?he(a,r,l,o):hA(a,l.end,n,null,l,o);let c=s.contents.range[2],u=d0(i,c,!1,o);return u.comment&&(s.comment=u.comment),s.range=[t,c,u.offset],s}(this.options,this.directives,e,this.onError);this.atDirectives&&!A.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(A,!1),this.doc&&(yield this.doc),this.doc=A,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let A=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,t=new dz(ht(e),"UNEXPECTED_TOKEN",A);this.atDirectives||!this.doc?this.errors.push(t):this.doc.errors.push(t);break}case"doc-end":{if(!this.doc){this.errors.push(new dz(ht(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let A=d0(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),A.comment){let e=this.doc.comment;this.doc.comment=e?`${e}
|
|
32
|
+
${A.comment}`:A.comment}this.doc.range[2]=A.offset;break}default:this.errors.push(new dz(ht(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,A=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new dK(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(A,"MISSING_CHAR","Missing directives-end indicator line"),e.range=[0,A,A],this.decorate(e,!1),yield e}}}function hi(e,A=!0,t){if(e){let n=(e,A,n)=>{let r="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(t)t(r,A,n);else throw new dz([r,r+1],A,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return d5(e,A,n);case"block-scalar":return d3({options:{strict:A}},e,n)}}return null}function ho(e,A){let{implicitKey:t=!1,indent:n,inFlow:r=!1,offset:i=-1,type:o="PLAIN"}=A,s=uG({type:o,value:e},{implicitKey:t,indent:n>0?" ".repeat(n):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}}),a=A.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(s[0]){case"|":case">":{let e=s.indexOf("\n"),A=s.substring(0,e),t=s.substring(e+1)+"\n",r=[{type:"block-scalar-header",offset:i,indent:n,source:A}];return ha(r,a)||r.push({type:"newline",offset:-1,indent:n,source:"\n"}),{type:"block-scalar",offset:i,indent:n,props:r,source:t}}case'"':return{type:"double-quoted-scalar",offset:i,indent:n,source:s,end:a};case"'":return{type:"single-quoted-scalar",offset:i,indent:n,source:s,end:a};default:return{type:"scalar",offset:i,indent:n,source:s,end:a}}}function hs(e,A,t={}){let{afterKey:n=!1,implicitKey:r=!1,inFlow:i=!1,type:o}=t,s="indent"in e?e.indent:null;if(n&&"number"==typeof s&&(s+=2),!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let A=e.props[0];if("block-scalar-header"!==A.type)throw Error("Invalid block scalar header");o=">"===A.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let a=uG({type:o,value:A},{implicitKey:r||null===s,indent:null!==s&&s>0?" ".repeat(s):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(a[0]){case"|":case">":!function(e,A){let t=A.indexOf("\n"),n=A.substring(0,t),r=A.substring(t+1)+"\n";if("block-scalar"===e.type){let A=e.props[0];if("block-scalar-header"!==A.type)throw Error("Invalid block scalar header");A.source=n,e.source=r}else{let{offset:A}=e,t="indent"in e?e.indent:-1,i=[{type:"block-scalar-header",offset:A,indent:t,source:n}];for(let A of(ha(i,"end"in e?e.end:void 0)||i.push({type:"newline",offset:-1,indent:t,source:"\n"}),Object.keys(e)))"type"!==A&&"offset"!==A&&delete e[A];Object.assign(e,{type:"block-scalar",indent:t,props:i,source:r})}}(e,a);break;case'"':hl(e,a,"double-quoted-scalar");break;case"'":hl(e,a,"single-quoted-scalar");break;default:hl(e,a,"scalar")}}function ha(e,A){if(A)for(let t of A)switch(t.type){case"space":case"comment":e.push(t);break;case"newline":return e.push(t),!0}return!1}function hl(e,A,t){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=t,e.source=A;break;case"block-scalar":{let n=e.props.slice(1),r=A.length;for(let A of("block-scalar-header"===e.props[0].type&&(r-=e.props[0].source.length),n))A.offset+=r;delete e.props,Object.assign(e,{type:t,source:A,end:n});break}case"block-map":case"block-seq":{let n={type:"newline",offset:e.offset+A.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:t,source:A,end:[n]});break}default:{let n="indent"in e?e.indent:-1,r="end"in e&&Array.isArray(e.end)?e.end.filter(e=>"space"===e.type||"comment"===e.type||"newline"===e.type):[];for(let A of Object.keys(e))"type"!==A&&"offset"!==A&&delete e[A];Object.assign(e,{type:t,indent:n,source:A,end:r})}}}let hc=e=>"type"in e?hu(e):hd(e);function hu(e){switch(e.type){case"block-scalar":{let A="";for(let t of e.props)A+=hu(t);return A+e.source}case"block-map":case"block-seq":{let A="";for(let t of e.items)A+=hd(t);return A}case"flow-collection":{let A=e.start.source;for(let t of e.items)A+=hd(t);for(let t of e.end)A+=t.source;return A}case"document":{let A=hd(e);if(e.end)for(let t of e.end)A+=t.source;return A}default:{let A=e.source;if("end"in e&&e.end)for(let t of e.end)A+=t.source;return A}}}function hd({start:e,key:A,sep:t,value:n}){let r="";for(let A of e)r+=A.source;if(A&&(r+=hu(A)),t)for(let e of t)r+=e.source;return n&&(r+=hu(n)),r}let hh=Symbol("break visit"),hf=Symbol("skip children"),hg=Symbol("remove item");function hp(e,A){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(A,t,n){let r=n(t,A);if("symbol"==typeof r)return r;for(let i of["key","value"]){let o=t[i];if(o&&"items"in o){for(let t=0;t<o.items.length;++t){let r=e(Object.freeze(A.concat([[i,t]])),o.items[t],n);if("number"==typeof r)t=r-1;else{if(r===hh)return hh;r===hg&&(o.items.splice(t,1),t-=1)}}"function"==typeof r&&"key"===i&&(r=r(t,A))}}return"function"==typeof r?r(t,A):r}(Object.freeze([]),e,A)}hp.BREAK=hh,hp.SKIP=hf,hp.REMOVE=hg,hp.itemAtPath=(e,A)=>{let t=e;for(let[e,n]of A){let A=t?.[e];if(!A||!("items"in A))return;t=A.items[n]}return t},hp.parentCollection=(e,A)=>{let t=hp.itemAtPath(e,A.slice(0,-1)),n=A[A.length-1][0],r=t?.[n];if(r&&"items"in r)return r;throw Error("Parent collection not found")};let hB=e=>!!e&&"items"in e,hm=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function hw(e){switch(e){case"\uFEFF":return"<BOM>";case"\x02":return"<DOC>";case"\x18":return"<FLOW_END>";case"\x1f":return"<SCALAR>";default:return JSON.stringify(e)}}function hy(e){switch(e){case"\uFEFF":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}e.s(["BOM",()=>"\uFEFF","DOCUMENT",()=>"\x02","FLOW_END",()=>"\x18","SCALAR",()=>"\x1f","isCollection",()=>hB,"isScalar",()=>hm,"prettyToken",()=>hw,"tokenType",()=>hy],19707),e.i(19707),e.s(["BOM",()=>"\uFEFF","DOCUMENT",()=>"\x02","FLOW_END",()=>"\x18","SCALAR",()=>"\x1f","createScalarToken",()=>ho,"isCollection",()=>hB,"isScalar",()=>hm,"prettyToken",()=>hw,"resolveAsScalar",()=>hi,"setScalarValue",()=>hs,"stringify",()=>hc,"tokenType",()=>hy,"visit",()=>hp],39511);var hx=e.i(39511);function hC(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}let hb=new Set("0123456789ABCDEFabcdef"),hv=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),hQ=new Set(",[]{}"),hF=new Set(" ,[]{}\n\r "),hU=e=>!e||hF.has(e);class hE{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,A=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!A;let t=this.next??"stream";for(;t&&(A||this.hasChars(1));)t=yield*this.parseNext(t)}atLineEnd(){let e=this.pos,A=this.buffer[e];for(;" "===A||" "===A;)A=this.buffer[++e];return!A||"#"===A||"\n"===A||"\r"===A&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let A=this.buffer[e];if(this.indentNext>0){let t=0;for(;" "===A;)A=this.buffer[++t+e];if("\r"===A){let A=this.buffer[t+e+1];if("\n"===A||!A&&!this.atEnd)return e+t+1}return"\n"!==A&&!(t>=this.indentNext)&&(A||this.atEnd)?-1:e+t}if("-"===A||"."===A){let A=this.buffer.substr(e,3);if(("---"===A||"..."===A)&&hC(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return(("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e)?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if("\uFEFF"===e[0]&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let A=e.length,t=e.indexOf("#");for(;-1!==t;){let n=e[t-1];if(" "===n||" "===n){A=t-1;break}t=e.indexOf("#",t+1)}for(;;){let t=e[A-1];if(" "===t||" "===t)A-=1;else break}let n=(yield*this.pushCount(A))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){let A=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-A),yield*this.pushNewline(),"stream"}return yield"\x02",yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let e=this.peek(3);if(("---"===e||"..."===e)&&hC(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===e?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!hC(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,A]=this.peek(2);if(!A&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&hC(A)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(null===e)return this.setNext("doc");let A=yield*this.pushIndicators();switch(e[A]){case"#":yield*this.pushCount(e.length-A);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(hU),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return A+=yield*this.parseBlockScalarHeader(),A+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-A),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,A,t=-1;do(e=yield*this.pushNewline())>0?(A=yield*this.pushSpaces(!1),this.indentValue=t=A):A=0,A+=yield*this.pushSpaces(!0);while(e+A>0)let n=this.getLine();if(null===n)return this.setNext("flow");if((-1!==t&&t<this.indentNext&&"#"!==n[0]||0===t&&(n.startsWith("---")||n.startsWith("..."))&&hC(n[3]))&&(t!==this.indentNext-1||1!==this.flowLevel||"]"!==n[0]&&"}"!==n[0]))return this.flowLevel=0,yield"\x18",yield*this.parseLineStart();let r=0;for(;","===n[r];)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(n[r+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(n.length-r),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(hU),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let e=this.charAt(1);if(this.flowKey||hC(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),A=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==A&&"'"===this.buffer[A+1];)A=this.buffer.indexOf("'",A+2);else for(;-1!==A;){let e=0;for(;"\\"===this.buffer[A-1-e];)e+=1;if(e%2==0)break;A=this.buffer.indexOf('"',A+1)}let t=this.buffer.substring(0,A),n=t.indexOf("\n",this.pos);if(-1!==n){for(;-1!==n;){let e=this.continueScalar(n+1);if(-1===e)break;n=t.indexOf("\n",e)}-1!==n&&(A=n-("\r"===t[n-1]?2:1))}if(-1===A){if(!this.atEnd)return this.setNext("quoted-scalar");A=this.buffer.length}return yield*this.pushToIndex(A+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let A=this.buffer[++e];if("+"===A)this.blockScalarKeep=!0;else if(A>"0"&&A<="9")this.blockScalarIndent=Number(A)-1;else if("-"!==A)break}return yield*this.pushUntil(e=>hC(e)||"#"===e)}*parseBlockScalar(){let e,A=this.pos-1,t=0;e:for(let n=this.pos;e=this.buffer[n];++n)switch(e){case" ":t+=1;break;case"\n":A=n,t=0;break;case"\r":{let e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=t:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let e=this.continueScalar(A+1);if(-1===e)break;A=this.buffer.indexOf("\n",e)}while(-1!==A)if(-1===A){if(!this.atEnd)return this.setNext("block-scalar");A=this.buffer.length}}let n=A+1;for(e=this.buffer[n];" "===e;)e=this.buffer[++n];if(" "===e){for(;" "===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++n];A=n-1}else if(!this.blockScalarKeep)for(;;){let e=A-1,n=this.buffer[e];"\r"===n&&(n=this.buffer[--e]);let r=e;for(;" "===n;)n=this.buffer[--e];if("\n"===n&&e>=this.pos&&e+1+t>r)A=e;else break}return yield"\x1f",yield*this.pushToIndex(A+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e,A=this.flowLevel>0,t=this.pos-1,n=this.pos-1;for(;e=this.buffer[++n];)if(":"===e){let e=this.buffer[n+1];if(hC(e)||A&&hQ.has(e))break;t=n}else if(hC(e)){let r=this.buffer[n+1];if("\r"===e&&("\n"===r?(n+=1,e="\n",r=this.buffer[n+1]):t=n),"#"===r||A&&hQ.has(r))break;if("\n"===e){let e=this.continueScalar(n+1);if(-1===e)break;n=Math.max(n,e-2)}}else{if(A&&hQ.has(e))break;t=n}return e||this.atEnd?(yield"\x1f",yield*this.pushToIndex(t+1,!0),A?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,A){let t=this.buffer.slice(this.pos,e);return t?(yield t,this.pos+=t.length,t.length):(A&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(hU))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,A=this.charAt(1);if(hC(A)||e&&hQ.has(A))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,A=this.buffer[e];for(;!hC(A)&&">"!==A;)A=this.buffer[++e];return yield*this.pushToIndex(">"===A?e+1:e,!1)}{let e=this.pos+1,A=this.buffer[e];for(;A;)if(hv.has(A))A=this.buffer[++e];else if("%"===A&&hb.has(this.buffer[e+1])&&hb.has(this.buffer[e+2]))A=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let A,t=this.pos-1;do A=this.buffer[++t];while(" "===A||e&&" "===A)let n=t-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=t),n}*pushUntil(e){let A=this.pos,t=this.buffer[A];for(;!e(t);)t=this.buffer[++A];return yield*this.pushToIndex(A,!1)}}class hI{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let A=0,t=this.lineStarts.length;for(;A<t;){let n=A+t>>1;this.lineStarts[n]<e?A=n+1:t=n}if(this.lineStarts[A]===e)return{line:A+1,col:1};if(0===A)return{line:0,col:e};let n=this.lineStarts[A-1];return{line:A,col:e-n+1}}}}function hS(e,A){for(let t=0;t<e.length;++t)if(e[t].type===A)return!0;return!1}function hk(e){for(let A=0;A<e.length;++A)switch(e[A].type){case"space":case"comment":case"newline":break;default:return A}return -1}function hj(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function hH(e){switch(e.type){case"document":return e.start;case"block-map":{let A=e.items[e.items.length-1];return A.sep??A.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function hD(e){if(0===e.length)return[];let A=e.length;e:for(;--A>=0;)switch(e[A].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++A]?.type==="space";);return e.splice(A,e.length)}function hL(e){if("flow-seq-start"===e.start.type)for(let A of e.items)!A.sep||A.value||hS(A.start,"explicit-key-ind")||hS(A.sep,"map-value-ind")||(A.key&&(A.value=A.key),delete A.key,hj(A.value)?A.value.end?Array.prototype.push.apply(A.value.end,A.sep):A.value.end=A.sep:Array.prototype.push.apply(A.start,A.sep),delete A.sep)}class hR{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new hE,this.onNewLine=e}*parse(e,A=!1){for(let t of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,A)))yield*this.next(t);A||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let A=hy(e);if(A)if("scalar"===A)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=A,yield*this.step(),A){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let A=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:A,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if("doc-end"===this.type&&(!e||"doc-end"!==e.type)){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let A=e??this.stack.pop();if(A)if(0===this.stack.length)yield A;else{let e=this.peek(1);switch("block-scalar"===A.type?A.indent="indent"in e?e.indent:0:"flow-collection"===A.type&&"document"===e.type&&(A.indent=0),"flow-collection"===A.type&&hL(A),e.type){case"document":e.value=A;break;case"block-scalar":e.props.push(A);break;case"block-map":{let t=e.items[e.items.length-1];if(t.value){e.items.push({start:[],key:A,sep:[]}),this.onKeyLine=!0;return}if(t.sep)t.value=A;else{Object.assign(t,{key:A,sep:[]}),this.onKeyLine=!t.explicitKey;return}break}case"block-seq":{let t=e.items[e.items.length-1];t.value?e.items.push({start:[],value:A}):t.value=A;break}case"flow-collection":{let t=e.items[e.items.length-1];!t||t.value?e.items.push({start:[],key:A,sep:[]}):t.sep?t.value=A:Object.assign(t,{key:A,sep:[]});return}default:yield*this.pop(),yield*this.pop(A)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===A.type||"block-seq"===A.type)){let t=A.items[A.items.length-1];t&&!t.sep&&!t.value&&t.start.length>0&&-1===hk(t.start)&&(0===A.indent||t.start.every(e=>"comment"!==e.type||e.indent<A.indent))&&("document"===e.type?e.end=t.start:e.items.push({start:t.start}),A.items.splice(-1,1))}}else yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};"doc-start"===this.type&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":-1!==hk(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return;case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let A=this.startBlockValue(e);A?this.stack.push(A):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){let A,t=hD(hH(this.peek(2)));e.end?((A=e.end).push(this.sourceToken),delete e.end):A=[this.sourceToken];let n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:A}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=n}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let A=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,A.value){let t="end"in A.value?A.value.end:void 0,n=Array.isArray(t)?t[t.length-1]:void 0;n?.type==="comment"?t?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else A.sep?A.sep.push(this.sourceToken):A.start.push(this.sourceToken);return;case"space":case"comment":if(A.value)e.items.push({start:[this.sourceToken]});else if(A.sep)A.sep.push(this.sourceToken);else{if(this.atIndentedComment(A.start,e.indent)){let t=e.items[e.items.length-2],n=t?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,A.start),n.push(this.sourceToken),e.items.pop();return}}A.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let t=!this.onKeyLine&&this.indent===e.indent,n=t&&(A.sep||A.explicitKey)&&"seq-item-ind"!==this.type,r=[];if(n&&A.sep&&!A.value){let t=[];for(let n=0;n<A.sep.length;++n){let r=A.sep[n];switch(r.type){case"newline":t.push(n);break;case"space":break;case"comment":r.indent>e.indent&&(t.length=0);break;default:t.length=0}}t.length>=2&&(r=A.sep.splice(t[1]))}switch(this.type){case"anchor":case"tag":n||A.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):A.sep?A.sep.push(this.sourceToken):A.start.push(this.sourceToken);return;case"explicit-key-ind":A.sep||A.explicitKey?n||A.value?(r.push(this.sourceToken),e.items.push({start:r,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(A.start.push(this.sourceToken),A.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(A.explicitKey)if(A.sep)if(A.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(hS(A.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(hj(A.key)&&!hS(A.sep,"newline")){let e=hD(A.start),t=A.key,n=A.sep;n.push(this.sourceToken),delete A.key,delete A.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:t,sep:n}]})}else r.length>0?A.sep=A.sep.concat(r,this.sourceToken):A.sep.push(this.sourceToken);else if(hS(A.start,"newline"))Object.assign(A,{key:null,sep:[this.sourceToken]});else{let e=hD(A.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else A.sep?A.value||n?e.items.push({start:r,key:null,sep:[this.sourceToken]}):hS(A.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):A.sep.push(this.sourceToken):Object.assign(A,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let t=this.flowScalar(this.type);n||A.value?(e.items.push({start:r,key:t,sep:[]}),this.onKeyLine=!0):A.sep?this.stack.push(t):(Object.assign(A,{key:t,sep:[]}),this.onKeyLine=!0);return}default:{let n=this.startBlockValue(e);if(n){if("block-seq"===n.type){if(!A.explicitKey&&A.sep&&!hS(A.sep,"newline"))return void(yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source}))}else t&&e.items.push({start:r});this.stack.push(n);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let A=e.items[e.items.length-1];switch(this.type){case"newline":if(A.value){let t="end"in A.value?A.value.end:void 0,n=Array.isArray(t)?t[t.length-1]:void 0;n?.type==="comment"?t?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else A.start.push(this.sourceToken);return;case"space":case"comment":if(A.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(A.start,e.indent)){let t=e.items[e.items.length-2],n=t?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,A.start),n.push(this.sourceToken),e.items.pop();return}}A.start.push(this.sourceToken)}return;case"anchor":case"tag":if(A.value||this.indent<=e.indent)break;A.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;A.value||hS(A.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):A.start.push(this.sourceToken);return}if(this.indent>e.indent){let A=this.startBlockValue(e);if(A)return void this.stack.push(A)}yield*this.pop(),yield*this.step()}*flowCollection(e){let A=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do yield*this.pop(),e=this.peek(1);while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":!A||A.sep?e.items.push({start:[this.sourceToken]}):A.start.push(this.sourceToken);return;case"map-value-ind":!A||A.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):A.sep?A.sep.push(this.sourceToken):Object.assign(A,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!A||A.value?e.items.push({start:[this.sourceToken]}):A.sep?A.sep.push(this.sourceToken):A.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let t=this.flowScalar(this.type);!A||A.value?e.items.push({start:[],key:t,sep:[]}):A.sep?this.stack.push(t):Object.assign(A,{key:t,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):(yield*this.pop(),yield*this.step())}else{let A=this.peek(2);if("block-map"!==A.type||("map-value-ind"!==this.type||A.indent!==e.indent)&&("newline"!==this.type||A.items[A.items.length-1].sep))if("map-value-ind"===this.type&&"flow-collection"!==A.type){let t=hD(hH(A));hL(e);let n=e.end.splice(1,e.end.length);n.push(this.sourceToken);let r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e);else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let A=hD(hH(e));return A.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:A,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let A=hD(hH(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:A,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,A){return"comment"===this.type&&!(this.indent<=A)&&e.every(e=>"newline"===e.type||"space"===e.type)}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function hT(e){let A=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||A&&new hI||null,prettyErrors:A}}function hM(e,A={}){let{lineCounter:t,prettyErrors:n}=hT(A),r=new hR(t?.addNewLine),i=new hr(A),o=Array.from(i.compose(r.parse(e)));if(n&&t)for(let A of o)A.errors.forEach(d$(e,t)),A.warnings.forEach(d$(e,t));return o.length>0?o:Object.assign([],{empty:!0},i.streamInfo())}function hO(e,A={}){let{lineCounter:t,prettyErrors:n}=hT(A),r=new hR(t?.addNewLine),i=new hr(A),o=null;for(let A of i.compose(r.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new dz(A.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=A;return n&&t&&(o.errors.forEach(d$(e,t)),o.warnings.forEach(d$(e,t))),o}function hN(e,A,t){let n;"function"==typeof A?n=A:void 0===t&&A&&"object"==typeof A&&(t=A);let r=hO(e,t);if(!r)return null;if(r.warnings.forEach(e=>u$(r.options.logLevel,e)),r.errors.length>0)if("silent"!==r.options.logLevel)throw r.errors[0];else r.errors=[];return r.toJS(Object.assign({reviver:n},t))}function hP(e,A,t){let n=null;if("function"==typeof A||Array.isArray(A)?n=A:void 0===t&&A&&(t=A),"string"==typeof t&&(t=t.length),"number"==typeof t){let e=Math.round(t);t=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=t??A??{};if(!e)return}return c7(e)&&!n?e.toString(t):new dK(e,n,t).toString(t)}e.s([],11706),e.i(11706),e.s(["Alias",()=>uQ,"CST",0,hx,"Composer",()=>hr,"Document",()=>dK,"Lexer",()=>hE,"LineCounter",()=>hI,"Pair",()=>u0,"Parser",()=>hR,"Scalar",()=>uU,"Schema",()=>d_,"YAMLError",()=>dG,"YAMLMap",()=>u3,"YAMLParseError",()=>dz,"YAMLSeq",()=>u6,"YAMLWarning",()=>dW,"isAlias",()=>c8,"isCollection",()=>un,"isDocument",()=>c7,"isMap",()=>c9,"isNode",()=>ur,"isPair",()=>ue,"isScalar",()=>uA,"isSeq",()=>ut,"parse",()=>hN,"parseAllDocuments",()=>hM,"parseDocument",()=>hO,"stringify",()=>hP,"visit",()=>ul,"visitAsync",()=>uu],76947);var h_=e.i(76947);function hK(e){for(var A=1;A<arguments.length;A++){var t=arguments[A];for(var n in t)e[n]=t[n]}return e}var hV=function e(A,t){function n(e,n,r){if("undefined"!=typeof document){"number"==typeof(r=hK({},t,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var o in r)r[o]&&(i+="; "+o,!0!==r[o]&&(i+="="+r[o].split(";")[0]));return document.cookie=e+"="+A.write(n,e)+i}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},r=0;r<t.length;r++){var i=t[r].split("="),o=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(n[s]=A.read(o,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(e,A){n(e,"",hK({},A,{expires:-1}))},withAttributes:function(A){return e(this.converter,hK({},this.attributes,A))},withConverter:function(A){return e(hK({},this.converter,A),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(A)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});let hG={src:e.i(97585).default,width:104,height:105,blurWidth:0,blurHeight:0};async function hz(){return(await AR.axiosClient.post("/api/connect")).data}function hW({handleParentClose:e,parentOpen:A=!1,ignoreCookie:t=!1,variant:n="auth"}){let{authed:r}=(0,AC.useRecceInstanceContext)(),[i,o]=(0,E.useState)(A||!r),s=hV.get("authState")??"pending",[a,l]=(0,E.useState)(t?"pending":s);if("ignored"===a&&!t||r)return null;let c={auth:{title:"Configure Cloud Token",action:"Get token and configure"},"enable-share":{title:"Enable Sharing with Cloud",action:"Enable sharing"},"user-profile":{title:"Configure Cloud Token",action:"Get token and configure"}}[n];return(0,g.jsx)(Az.Dialog.Root,{size:"lg",placement:"center",lazyMount:!0,open:i,onOpenChange:A=>{o(A.open),e&&e(A.open)},children:(0,g.jsxs)(AW.Portal,{children:[(0,g.jsx)(Az.Dialog.Backdrop,{}),(0,g.jsx)(Az.Dialog.Positioner,{children:(0,g.jsxs)(Az.Dialog.Content,{borderRadius:"2xl",children:["authenticating"!==a&&(0,g.jsx)(Az.Dialog.Header,{className:"text-center",fontSize:"2xl",children:(0,g.jsx)(Az.Dialog.Title,{children:c.title})}),"authenticating"!==a?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(Az.Dialog.Body,{className:"space-y-2 font-light",children:[(0,g.jsx)(e6.Text,{children:"To enable sharing, get your token from Recce Cloud and launch your local instance with it."}),(0,g.jsxs)("ul",{className:"list-inside list-disc",children:[(0,g.jsx)("li",{children:"Share your instance with teammates via Recce Cloud."}),(0,g.jsx)("li",{children:"Your instance will be securely and freely hosted for sharing."}),"auth"===n&&(0,g.jsx)("li",{children:"This step is recommended but optional."})]}),(0,g.jsxs)(e6.Text,{display:"flex",gap:1,children:["More directions",(0,g.jsxs)(j.Link,{variant:"underline",color:"blue.500",_focus:{outline:"none"},href:"https://cloud.datarecce.io/connect-to-cloud",target:"_blank",children:["here ",(0,g.jsx)(ip.LuExternalLink,{})]})]})]}),(0,g.jsx)(Az.Dialog.Footer,{children:(0,g.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,g.jsxs)(AV.Button,{className:"w-full !rounded-lg !font-medium",colorPalette:"brand",onClick:async()=>{l("authenticating");let{connection_url:e}=await hz();window.open(e,"_blank")},children:[c.action," ",(0,g.jsx)(ip.LuExternalLink,{})]}),(0,g.jsx)(Az.Dialog.ActionTrigger,{asChild:!0,children:(0,g.jsx)(AV.Button,{className:"!rounded-lg !font-medium",variant:"subtle",colorPalette:"gray",size:"sm",children:"auth"===n?"Skip":"Cancel"})}),"auth"===n&&(0,g.jsx)(Az.Dialog.ActionTrigger,{asChild:!0,children:(0,g.jsx)(AV.Button,{width:"100%",className:"!rounded-lg !font-medium !text-black",variant:"ghost",size:"sm",onClick:()=>{hV.set("authState","ignored",{expires:30}),l("ignored")},children:"Snooze for 30 days"})})]})})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Az.Dialog.Body,{className:"space-y-2 self-center font-light",children:(0,g.jsxs)(AU.VStack,{gap:4,paddingTop:"1rem",children:[(0,g.jsx)(k,{className:"mx-auto mb-2",h:"6rem",fit:"contain",src:hG.src}),(0,g.jsx)(e6.Text,{fontSize:"2xl",fontWeight:"medium",children:"Reload to Finish"}),(0,g.jsx)(e6.Text,{children:"Reload to complete connection to Recce Cloud"})]})}),(0,g.jsx)(Az.Dialog.Footer,{children:(0,g.jsx)(AV.Button,{className:"w-full",colorPalette:"brand",onClick:()=>{window.location.reload()},children:"Reload"})})]})]})})]})})}var h$=e.i(60214);function hX(e){let A=new Date,t=new Date;return(t.setDate(A.getDate()-1),null==e)?null:A.toDateString()===e.toDateString()?"Today, "+(0,Ap.format)(e,"HH:mm"):t.toDateString()===e.toDateString()?"Yesterday, "+(0,Ap.format)(e,"HH:mm"):(0,Ap.format)(e,"MMM d, HH:mm")}let hY=({run:e})=>{let A,t,n="running"===e.status,r=e.status;!r&&(e.result?r="finished":e.error&&(r="failed")),"finished"===r?(A="green",t="Finished"):"failed"===r?(A="red",t="Failed"):"cancelled"===r?(A="gray",t="Cancelled"):"running"===r?(A="blue",t="Running"):(A="green",t="Finished");let i=e.run_at?hX(new Date(e.run_at)):null;return(0,g.jsxs)(v.Flex,{justifyContent:"start",fontSize:"11pt",color:"gray.500",gap:"3px",alignItems:"center",overflow:"hidden",children:[n&&(0,g.jsx)(ld.Spinner,{size:"xs",color:`${A}.400`}),(0,g.jsx)(e6.Text,{fontWeight:500,color:`${A}.400`,children:t}),(0,g.jsx)(e6.Text,{children:"•"}),(0,g.jsx)(e6.Text,{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:i})]})},hJ=e=>{let A=h_.stringify(e,null,2);return(0,g.jsx)(rL,{className:"no-track-pii-safe",height:"100%",language:"yaml",theme:"vs",value:A,options:{extraEditorClassName:"no-track-pii-safe",readOnly:!0,fontSize:14,lineNumbers:"off",automaticLayout:!0,minimap:{enabled:!1},wordWrap:"on",wrappingIndent:"same",scrollBeyondLastLine:!1}})},hq=({runType:e})=>{let{open:A,onClose:t}=(0,A$.useDisclosure)({defaultOpen:!0});if(!A)return(0,g.jsx)(g.Fragment,{});switch(e){case"row_count":return(0,g.jsx)(cv,{onClose:t,children:(0,g.jsxs)(e6.Text,{children:["Enable row count diffing, and other Recce features, by configuring a base dbt environment to compare against. ",(0,g.jsx)(cQ,{})]})});case"profile":return(0,g.jsx)(cv,{onClose:t,children:(0,g.jsxs)(e6.Text,{children:["Enable data-profile diffing, and other Recce features, by configuring a base dbt environment to compare against."," ",(0,g.jsx)(cQ,{})]})});default:return(0,g.jsx)(g.Fragment,{})}},hZ=({disableCopyToClipboard:e,onCopyToClipboard:A,onMouseEnter:t,onMouseLeave:n})=>{let{authed:r}=(0,AC.useRecceInstanceContext)(),{handleShareClick:i}=(0,h$.useRecceShareStateContext)(),[o,s]=(0,E.useState)(!1);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(tB.Menu.Root,{children:[(0,g.jsx)(tB.Menu.Trigger,{asChild:!0,children:(0,g.jsxs)(AV.Button,{size:"xs",variant:"outline",colorPalette:"gray",children:["Share ",(0,g.jsx)(AX.PiCaretDown,{})]})}),(0,g.jsx)(AW.Portal,{children:(0,g.jsx)(tB.Menu.Positioner,{children:(0,g.jsxs)(tB.Menu.Content,{minW:"0",children:[(0,g.jsxs)(tB.Menu.Item,{value:"copy-to-clipboard",onClick:A,onMouseEnter:t,onMouseLeave:n,disabled:e,children:[(0,g.jsx)(AX.PiCopy,{})," Copy to Clipboard"]}),(0,g.jsx)(tB.Menu.Separator,{}),r?(0,g.jsxs)(tB.Menu.Item,{value:"share-to-cloud",onClick:async()=>{await i(),(0,Ax.trackShareState)({name:"create"})},children:[(0,g.jsx)(cZ.TbCloudUpload,{})," Share to Cloud"]}):(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(tB.Menu.Item,{value:"share",onClick:()=>{s(!0)},children:[(0,g.jsx)(cZ.TbCloudUpload,{})," Share"]})})]})})})]}),o&&(0,g.jsx)(hW,{parentOpen:o,handleParentClose:s,ignoreCookie:!0,variant:"enable-share"})]})},h0=({runId:e,onClose:A,isSingleEnvironment:t})=>{let n,{featureToggles:r}=(0,AC.useRecceInstanceContext)(),{runAction:i}=(0,lQ.useRecceActionContext)(),{error:o,run:s,onCancel:a,isRunning:l}=n1(e),[c,u]=(0,E.useState)(),[d,h]=(0,E.useState)("result");s&&(0,n0.runTypeHasRef)(s.type)&&(n=(0,n0.findByRunType)(s.type).RunResultView);let f=(0,E.useCallback)(()=>{s&&i(s.type,s.params)},[s,i]),p=s?.type==="query"||s?.type==="query_diff"||s?.type==="query_base",{ref:B,onCopyToClipboard:m,onMouseEnter:w,onMouseLeave:y}=nq(),x=!e||!s?.result||!!o||"result"!==d;return(0,g.jsxs)(v.Flex,{direction:"column",children:[t&&(0,g.jsx)(hq,{runType:s?.type}),(0,g.jsx)(e5.Root,{size:"lg",colorPalette:"iochmara",value:d,onValueChange:e=>{h(e.value)},flexDirection:"column",mb:"1px",children:(0,g.jsxs)(e5.List,{children:[(0,g.jsx)(e5.Trigger,{value:"result",children:"Result"}),(0,g.jsx)(e5.Trigger,{value:"params",children:"Params"}),p&&(0,g.jsx)(e5.Trigger,{value:"query",children:"Query"}),(0,g.jsx)(ef.Spacer,{}),(0,g.jsxs)(F.HStack,{overflow:"hidden",children:[s&&(0,g.jsx)(hY,{run:s}),(0,g.jsxs)(AV.Button,{variant:"outline",colorPalette:"gray",disabled:!e||l||r.disableDatabaseQuery,size:"xs",onClick:f,children:[(0,g.jsx)(AX.PiRepeat,{})," Rerun"]}),r.disableShare?(0,g.jsxs)(AV.Button,{variant:"outline",disabled:!e||!s?.result||!!o||"result"!==d,onMouseEnter:w,onMouseLeave:y,size:"sm",onClick:m,children:[(0,g.jsx)(AX.PiCopy,{})," Copy to Clipboard"]}):(0,g.jsx)(hZ,{disableCopyToClipboard:x,onCopyToClipboard:async()=>{await m(),(0,Ax.trackCopyToClipboard)({type:s?.type??"unknown",from:"run"})},onMouseEnter:w,onMouseLeave:y}),(0,g.jsx)(h2,{runId:e,viewOptions:c}),(0,g.jsx)(AG.CloseButton,{size:"sm",onClick:()=>{A&&A()}})]})]})}),"result"===d&&(0,g.jsx)(ox,{ref:B,error:o,run:s,onCancel:a,viewOptions:c,onViewOptionsChanged:u,RunResultView:n}),"params"===d&&s&&(0,g.jsx)(hJ,{type:s.type,params:s.params}),"query"===d&&s&&s.params&&((0,lv.isQueryRun)(s)||(0,lv.isQueryBaseRun)(s)||(0,lv.isQueryDiffRun)(s))&&((0,lv.isQueryDiffRun)(s)?(0,g.jsx)(ib,{value:s.params.sql_template,baseValue:s.params.base_sql_template,options:{readOnly:!0}}):(0,g.jsx)(iC,{value:s.params.sql_template,options:{readOnly:!0}}))]})},h1=({onClose:e,isSingleEnvironment:A})=>{let{runId:t}=(0,lQ.useRecceActionContext)();return(0,g.jsx)(h0,{runId:t,onClose:e,isSingleEnvironment:A})};function h2({runId:e,viewOptions:A}){let{featureToggles:t}=(0,AC.useRecceInstanceContext)(),{error:n,run:r}=n1(e),i=(0,AH.useQueryClient)(),[,o]=(0,Af.useLocation)(),s=r?.check_id,a=(0,E.useCallback)(()=>{s&&o(`/checks/${s}`)},[s,o]),l=(0,E.useCallback)(async()=>{if(!e)return;let t=await AT(e,A);await i.invalidateQueries({queryKey:AL.cacheKeys.checks()}),o(`/checks/${t.check_id}`)},[e,o,i,A]);return t.disableUpdateChecklist?(0,g.jsx)(g.Fragment,{}):r?.check_id?(0,g.jsxs)(AV.Button,{disabled:!e||!r.result||!!n,size:"sm",colorPalette:"iochmara",onClick:a,children:[(0,g.jsx)(AX.PiCheck,{})," Go to Check"]}):(0,g.jsxs)(AV.Button,{disabled:!e||!r?.result||!!n,size:"xs",colorPalette:"iochmara",onClick:l,children:[(0,g.jsx)(AX.PiCheck,{})," Add to Checklist"]})}function h4({current:e,primaryKeys:A,setPrimaryKeys:t,onRunResultOpen:n,runQuery:r,isPending:i}){return(0,g.jsxs)(v.Flex,{justifyContent:"right",alignItems:"center",padding:"4pt 8pt",gap:"5px",height:"54px",borderBottom:"1px solid lightgray",flex:"0 0 54px",children:[(0,g.jsxs)(y.Box,{children:[(0,g.jsxs)(Q.Heading,{as:"h2",size:"md",display:"flex",alignItems:"center",gap:"5px",children:[(0,g.jsx)(U.Icon,{as:cj,boxSize:"1.2em"}),"Sandbox"]}),(0,g.jsxs)(e6.Text,{fontSize:"xs",color:"gray.500",children:["Compare the run results based on the modified SQL code of model"," ",(0,g.jsx)("b",{children:e?.name})]})]}),(0,g.jsx)(ef.Spacer,{}),(0,g.jsx)(cq,{defaultPrimaryKeys:A,onPrimaryKeysChange:t}),(0,g.jsx)(Aw.Tooltip,{content:"Run diff to see the changes",children:(0,g.jsx)(AV.Button,{size:"xs",marginTop:"16px",fontSize:"14px",onClick:()=>{n(),r()},colorPalette:"blue",loading:i,children:"Run Diff"})})]})}function h3({currentModelID:e,height:A="32px",flex:t="0 0 auto"}){let{lineageGraph:n,envInfo:r}=(0,AY.useLineageGraphContext)(),i="0 16px",o=tq(iB(r?.dbt?.current?.generated_at??""),{addSuffix:!0}),s="N/A";if(n?.nodes[e]){let A=n.nodes[e];A.data.data.current?.schema&&(s=A.data.data.current.schema)}return(0,g.jsxs)(v.Flex,{gap:0,height:A,flex:t,fontSize:"14px",align:"center",margin:"0",backgroundColor:"#EDF2F880",children:[(0,g.jsx)(n2.Stack,{width:"50%",children:(0,g.jsxs)(e6.Text,{as:"b",margin:i,children:["ORIGINAL (Schema: ",s,", Last Updated: ",o,")"]})}),(0,g.jsx)(n2.Stack,{width:"50%",children:(0,g.jsx)(e6.Text,{as:"b",margin:i,children:"SANDBOX EDITOR"})})]})}function h5({current:e,onChange:A}){var t;let n,r=(t=e?.raw_code??"",n=(0,E.useRef)(null),(0,E.useEffect)(()=>{n.current&&t!==n.current.getValue()&&n.current.setValue(t)},[t]),{onMount(e){let t=e.getModifiedEditor();n.current=t,t.onDidChangeModelContent(()=>{A(t.getValue())})}});return(0,g.jsx)(y.Box,{flex:1,overflowY:"auto",children:(0,g.jsx)(rj,{language:"sql",theme:"vs",original:e?.raw_code,modified:e?.raw_code,options:{readOnly:!1,fontSize:14,lineNumbers:"on",automaticLayout:!0,renderOverviewRuler:!1,minimap:{enabled:!0}},onMount:r.onMount})})}function h6({isOpen:e,onClose:A,current:t}){let{open:n,onClose:r,onOpen:i}=(0,A$.useDisclosure)(),[o,s]=(0,E.useState)(t?.raw_code??""),[a,l]=(0,E.useState)(e),{showRunId:c,clearRunResult:u}=(0,lQ.useRecceActionContext)(),{primaryKeys:d,setPrimaryKeys:h}=(0,ct.useRecceQueryContext)(),{data:f,isLoading:p}=(0,lT.useRecceServerFlag)(),{mutate:B,isPending:m}=AD({mutationFn:async()=>{let e={current_model:t?.name??"",primary_keys:d,sql_template:o},{run_id:A}=await cL(e,{nowait:!0});return c(A),await (0,t5.waitRun)(A)},onSuccess(e){e.error?(0,Ax.trackPreviewChange)({action:"run",node:t?.name,status:"failure"}):((0,Ax.trackPreviewChange)({action:"run",node:t?.name,status:"success"}),setTimeout(()=>{x()},1e3),!p&&f?.single_env_onboarding&&setTimeout(()=>{b()},2e3))}}),{feedbackToast:x,closeToast:C}=function(e){let{feedbackId:A,description:t,onFeedbackSubmit:n,externalLink:r,externalLinkText:i}=e,[o,s]=(0,E.useState)(void 0);return{feedbackToast:function(e=!1){let a=localStorage.getItem(A);null!=o||("true"!==a||e)&&s(Am.toaster.create({id:A,duration:void 0,type:"success",description:(0,g.jsx)(F.HStack,{children:(0,g.jsx)(cM,{description:t,onLike:()=>{n("like"),Am.toaster.dismiss(o),localStorage.setItem(A,"true")},onDislike:()=>{n("dislike"),Am.toaster.dismiss(o),localStorage.setItem(A,"true")},externalLink:r,externalLinkText:i,onClickLink:()=>{n("link")}})})}))},closeToast:()=>{Am.toaster.dismiss(o)}}}({feedbackId:cT.previewChangeFeedbackID,description:"Enjoy preview change?",onFeedbackSubmit:e=>{switch(e){case"like":(0,Ax.trackPreviewChangeFeedback)({feedback:"like",node:t?.name});break;case"dislike":(0,Ax.trackPreviewChangeFeedback)({feedback:"dislike",node:t?.name});break;case"link":(0,Ax.trackPreviewChangeFeedback)({feedback:"form",node:t?.name});break;default:console.log("Not support feedback type")}},externalLink:"https://docs.google.com/forms/d/e/1FAIpQLSd7Lei7Ijwo7MinWaI0K6rzZi_21gV1BKetmiNEX254kDziDA/viewform?usp=header",externalLinkText:"Give us feedback"}),{guideToast:b,closeGuideToast:Q}=function(e){let[A,t]=(0,E.useState)(void 0),{guideId:n,description:r,externalLinkText:i,onExternalLinkClick:o}=e;return{guideToast:function(){null==A&&t(Am.toaster.create({id:n,duration:3e3,type:"success",description:r,action:{label:i??"link",onClick:()=>{o&&o()}}}))},closeGuideToast:()=>{Am.toaster.dismiss(A)}}}({guideId:cT.prepareEnvGuideID,description:"Want to compare data changes with production data?",externalLink:"https://docs.datarecce.io/get-started/#prepare-dbt-artifacts",externalLinkText:"Learn how.",onExternalLinkClick:()=>{(0,Ax.trackSingleEnvironment)({action:"external_link",from:"preview_changes",node:t?.name})}});return e!==a&&(l(e),e&&s(t?.raw_code??"")),(0,g.jsx)(Az.Dialog.Root,{open:e,size:"cover",onOpenChange:()=>{A(),r(),u(),C(),Q(),(0,Ax.trackPreviewChange)({action:"close",node:t?.name})},children:(0,g.jsxs)(AW.Portal,{children:[(0,g.jsx)(Az.Dialog.Backdrop,{}),(0,g.jsx)(Az.Dialog.Positioner,{children:(0,g.jsxs)(Az.Dialog.Content,{height:"100%",children:[(0,g.jsxs)(Az.Dialog.Header,{height:"40px",bg:"rgb(77, 209, 176)",px:0,py:4,children:[(0,g.jsxs)(v.Flex,{alignItems:"center",height:"100%",gap:"10px",children:[(0,g.jsx)(k,{boxSize:"20px",ml:"18px",src:"/logo/recce-logo-white.png",alt:"recce-logo-white"}),(0,g.jsx)(Az.Dialog.Title,{as:"h1",fontFamily:'"Montserrat", sans-serif',fontSize:"lg",color:"white",children:"RECCE"}),(0,g.jsx)(w,{fontSize:"sm",color:"white/80",variant:"outline",children:"Experiment"})]}),(0,g.jsx)(Az.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AG.CloseButton,{size:"sm"})})]}),(0,g.jsx)(Az.Dialog.Body,{p:0,children:(0,g.jsxs)(tl,{sizes:n?[50,50]:[100,0],minSize:100*!!n,gutterSize:5*!!n,style:{flex:"1",contain:"size",height:"100%"},children:[(0,g.jsxs)(v.Flex,{direction:"column",height:"100%",m:0,p:0,children:[(0,g.jsx)(h4,{current:t,primaryKeys:d??[],setPrimaryKeys:h,onRunResultOpen:i,runQuery:B,isPending:m}),(0,g.jsx)(h3,{height:"32pxs",flex:"0 0 auto",currentModelID:t?.id??""}),(0,g.jsx)(h5,{current:t,onChange:s})]}),n?(0,g.jsx)(h1,{onClose:r,disableAddToChecklist:!0}):(0,g.jsx)(y.Box,{})]})}),(0,g.jsx)(y.Box,{position:"fixed",bottom:"4",right:"4",opacity:.5,children:(0,g.jsx)(Aw.Tooltip,{content:"Give us feedback",children:(0,g.jsx)(Ag.IconButton,{"aria-label":"feedback",variant:"ghost",size:"md",onClick:()=>{x(!0)},children:(0,g.jsx)(t1.VscFeedback,{})})})})]})})]})})}function h8({node:e,onCloseNode:A}){let t="model"===e.data.resourceType||"seed"===e.data.resourceType||"source"===e.data.resourceType||"snapshot"===e.data.resourceType,{open:n,onOpen:r,onClose:i}=(0,A$.useDisclosure)(),{open:o,onClose:s}=(0,A$.useDisclosure)({defaultOpen:!0}),{runAction:a}=(0,lQ.useRecceActionContext)(),{isActionAvailable:l}=(0,AY.useLineageGraphContext)(),c=()=>{a("row_count",{node_names:[e.data.name]},{showForm:!1,showLast:!1})},u=()=>{a("row_count_diff",{node_names:[e.data.name]},{showForm:!1,showLast:!1})},{singleEnv:d}=(0,AC.useRecceInstanceContext)(),h=(e,A)=>e?"Unavailable for added or removed resources.":l(A)?"":"This action is not supported yet.",f=Object.keys(e.data.data.base?.columns??{}),p=Object.keys(e.data.data.current?.columns??{});return(0,g.jsxs)(cb,{height:"100%",templateRows:"auto auto 1fr",children:[(0,g.jsxs)(F.HStack,{children:[(0,g.jsx)(y.Box,{flex:"0 1 20%",p:"16px",children:(0,g.jsx)(Q.Heading,{size:"sm",className:"no-track-pii-safe",children:e.data.name})}),(0,g.jsx)(ef.Spacer,{}),d?(0,g.jsx)(h7,{node:e,baseColumns:f,currentColumns:p,refetchRowCount:c,disableReason:h}):(0,g.jsx)(h9,{node:e,baseColumns:f,currentColumns:p,disableReason:h,refetchRowCountDiff:u,onSandboxOpen:r}),(0,g.jsx)(y.Box,{flex:"0 1 1%",children:(0,g.jsx)(AG.CloseButton,{size:"2xs",onClick:A})})]}),(0,g.jsx)(y.Box,{color:"gray",paddingLeft:"16px",children:(0,g.jsxs)(F.HStack,{gap:"8px",children:[(0,g.jsx)(lJ,{node:e}),("model"===e.data.resourceType||"snapshot"===e.data.resourceType||"seed"===e.data.resourceType)&&(d?(0,g.jsx)(l0,{node:e,onRefresh:c}):(0,g.jsx)(lZ,{node:e,onRefresh:u}))]})}),t&&(0,g.jsxs)(e5.Root,{defaultValue:"columns",overflow:"auto",children:[d&&o&&(0,g.jsx)(y.Box,{p:"12px",children:(0,g.jsx)(cv,{onClose:s,align:"flex-start",children:(0,g.jsxs)(e6.Text,{children:["Enable the Recce Checklist and start adding checks for better data validation and review.",(0,g.jsx)("br",{}),(0,g.jsx)(cQ,{})]})})}),(0,g.jsxs)(e5.List,{children:[(0,g.jsx)(e5.Trigger,{value:"columns",children:"Columns"}),(0,g.jsx)(e5.Trigger,{value:"code",children:"Code"})]}),(0,g.jsxs)(e5.ContentGroup,{overflow:"auto",height:"calc(100% - 42px)",children:[(0,g.jsx)(e5.Content,{value:"columns",p:0,overflowY:"auto",height:"100%",children:d?(0,g.jsx)(cS,{current:e.data.data.current}):(0,g.jsx)(cI,{base:e.data.data.base,current:e.data.data.current})}),(0,g.jsx)(e5.Content,{value:"code",height:"100%",p:0,children:(0,g.jsx)(ck,{node:e})})]})]}),(0,g.jsx)(h6,{isOpen:n,onClose:i,current:e.data.data.current})]})}function h7({node:e,baseColumns:A,currentColumns:t,refetchRowCount:n,disableReason:r}){let[,i]=(0,Af.useLocation)(),{setSqlQuery:o}=(0,ct.useRecceQueryContext)(),{runAction:s}=(0,lQ.useRecceActionContext)(),{envInfo:a}=(0,AY.useLineageGraphContext)(),l="added"===e.data.changeStatus||"removed"===e.data.changeStatus,c=cA(A,t),u=`select * from {{ ref("${e.data.name}") }}`;return(c.length&&(u=`select
|
|
33
|
+
${c.join("\n ")}
|
|
34
|
+
from {{ ref("${e.data.name}") }}`),"model"===e.data.resourceType||"seed"===e.data.resourceType||"snapshot"===e.data.resourceType)?(0,g.jsxs)(tB.Menu.Root,{children:[(0,g.jsx)(tB.Menu.Trigger,{asChild:!0,children:(0,g.jsxs)(AV.Button,{size:"xs",variant:"outline",children:["Explore ",(0,g.jsx)(AX.PiCaretDown,{})]})}),(0,g.jsx)(AW.Portal,{children:(0,g.jsx)(tB.Menu.Positioner,{children:(0,g.jsxs)(tB.Menu.Content,{children:[(0,g.jsxs)(tB.Menu.Item,{value:"label",fontSize:"14px",onClick:()=>{a?.adapterType==="dbt"?o(u):a?.adapterType==="sqlmesh"&&o(`select * from ${e.data.name}`),i("/query")},children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("query").icon})," Query"]}),(0,g.jsxs)(tB.Menu.Item,{value:"row-count",fontSize:"14px",onClick:()=>{n()},children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("row_count").icon})," Row Count"]}),(0,g.jsx)(Aw.Tooltip,{content:r(l,"profile"),positioning:{placement:"left"},children:(0,g.jsxs)(tB.Menu.Item,{value:"profile",fontSize:"14px",disabled:l,onClick:()=>{s("profile",{model:e.data.name},{showForm:!0,showLast:!1})},children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("profile").icon})," Profile"]})})]})})})]}):(0,g.jsx)(g.Fragment,{})}function h9({node:e,baseColumns:A,currentColumns:t,disableReason:n,onSandboxOpen:r,refetchRowCountDiff:i}){let[,o]=(0,Af.useLocation)(),{runAction:s}=(0,lQ.useRecceActionContext)(),{setSqlQuery:a,setPrimaryKeys:l}=(0,ct.useRecceQueryContext)(),{envInfo:c,isActionAvailable:u}=(0,AY.useLineageGraphContext)(),{featureToggles:d}=(0,AC.useRecceInstanceContext)(),{primaryKey:h}=(0,cn.default)(e.data.name),f="metadata only"===d.mode,p="added"===e.data.changeStatus||"removed"===e.data.changeStatus,B=(0,E.useCallback)(async()=>{let A=e.id,t=await lC({node_id:A});o(`/checks/${t.check_id}`)},[e,o]),m=cA(A,t),w=`select * from {{ ref("${e.data.name}") }}`;m.length&&(w=`select
|
|
35
|
+
${m.join("\n ")}
|
|
36
|
+
from {{ ref("${e.data.name}") }}`);let y=(e,A)=>{if(f)return(0,g.jsx)(t3,{display:!0,children:e});let t=n(p,A);return(0,g.jsx)(Aw.Tooltip,{disabled:""===t,content:t,positioning:{placement:"left"},children:e})};return"model"===e.data.resourceType||"seed"===e.data.resourceType||"snapshot"===e.data.resourceType?(0,g.jsxs)(tB.Menu.Root,{children:[(0,g.jsx)(tB.Menu.Trigger,{asChild:!0,children:(0,g.jsxs)(AV.Button,{size:"2xs",variant:"outline",disabled:d.disableNodeActionDropdown,children:["Explore ",(0,g.jsx)(AX.PiCaretDown,{})]})}),(0,g.jsx)(AW.Portal,{children:(0,g.jsx)(tB.Menu.Positioner,{children:(0,g.jsxs)(tB.Menu.Content,{children:[(0,g.jsx)(t3,{display:f,children:(0,g.jsxs)(tB.Menu.Item,{value:"query",fontSize:"14px",disabled:d.disableDatabaseQuery,onClick:()=>{c?.adapterType==="dbt"?a(w):c?.adapterType==="sqlmesh"&&a(`select * from ${e.data.name}`),u("query_diff_with_primary_key")&&l(void 0!==h?[h]:void 0),o("/query")},children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("query_diff").icon})," Query"]})}),(0,g.jsx)(t3,{display:f,children:(0,g.jsxs)(tB.Menu.Item,{value:"sandbox",fontSize:"14px",disabled:d.disableDatabaseQuery,onClick:()=>{u("query_diff_with_primary_key")&&l(void 0!==h?[h]:void 0),r(),(0,Ax.trackPreviewChange)({action:"explore",node:e.data.name})},children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("sandbox").icon})," Sandbox (Experiment)"]})}),(0,g.jsx)(tB.Menu.Separator,{}),(0,g.jsxs)(tB.Menu.ItemGroup,{m:"0",p:"0",children:[(0,g.jsx)(tB.Menu.ItemGroupLabel,{children:"Diff"}),(0,g.jsx)(t3,{display:f,children:(0,g.jsxs)(tB.Menu.Item,{value:"row-count-diff",fontSize:"14px",disabled:d.disableDatabaseQuery,onClick:()=>{i()},children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("row_count_diff").icon})," Row Count Diff"]})}),y((0,g.jsxs)(tB.Menu.Item,{value:"profile-diff",fontSize:"14px",disabled:p||d.disableDatabaseQuery,onClick:()=>{s("profile_diff",{model:e.data.name},{showForm:!0,showLast:!1})},children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("profile_diff").icon})," Profile Diff"]}),"profile_diff"),y((0,g.jsxs)(tB.Menu.Item,{value:"value-diff",fontSize:"14px",disabled:p||d.disableDatabaseQuery,onClick:()=>{s("value_diff",{model:e.data.name},{showForm:!0,showLast:!1})},children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("value_diff").icon})," Value Diff"]}),"value_diff"),y((0,g.jsxs)(tB.Menu.Item,{value:"top-k-diff",fontSize:"14px",disabled:p||d.disableDatabaseQuery,onClick:()=>{s("top_k_diff",{model:e.data.name,column_name:"",k:50},{showForm:!0})},children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("top_k_diff").icon})," Top-K Diff"]}),"top_k_diff"),y((0,g.jsxs)(tB.Menu.Item,{value:"histogram-diff",fontSize:"14px",disabled:p||d.disableDatabaseQuery,onClick:()=>{s("histogram_diff",{model:e.data.name,column_name:"",column_type:""},{showForm:!0})},children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("histogram_diff").icon})," Histogram Diff"]}),"histogram_diff")]}),(0,g.jsx)(tB.Menu.Separator,{}),(0,g.jsxs)(tB.Menu.ItemGroup,{m:"0",p:"4px 12px",children:[(0,g.jsx)(tB.Menu.ItemGroupLabel,{children:"Add to Checklist"}),(0,g.jsxs)(tB.Menu.Item,{value:"schema-diff",fontSize:"14px",onClick:()=>{B()},children:[(0,g.jsx)(U.Icon,{as:(0,n0.findByRunType)("schema_diff").icon})," Schema Diff"]})]})]})})})]}):(0,g.jsx)(g.Fragment,{})}var fe=e.i(9624);function fA(e){return e?.organization_name&&e.web_url?`${e.web_url}/organizations/${e.organization_name}/settings`:t4.RECCE_SUPPORT_CALENDAR_URL}function ft(){let{featureToggles:e}=(0,AC.useRecceInstanceContext)(),{data:A}=(0,e8.useQuery)({queryKey:AL.cacheKeys.instanceInfo(),queryFn:fe.getRecceInstanceInfo});return"metadata only"!==e.mode?null:(0,g.jsx)("div",{className:"flex items-center w-full px-2 py-0.5 bg-cyan-50",children:(0,g.jsxs)(F.HStack,{flex:"1",fontSize:"sm",color:"cyan.600",children:[(0,g.jsx)(AX.PiInfo,{}),(0,g.jsx)(e6.Text,{children:"Query functions disabled without a data warehouse connection."}),(0,g.jsx)(AV.Button,{bgColor:"iochmara.400",size:"2xs",onClick:()=>{window.open(fA(A),"_blank")},children:"Connect to Data Warehouse"})]})})}var rW=rW;function fn(){return(0,g.jsx)(v.Flex,{flex:"1",h:"100%",minH:0,m:"2",p:"4",bg:"blue.50",borderRadius:"lg",boxShadow:"md",justifyContent:"center",children:(0,g.jsxs)(v.Flex,{w:"80%",direction:"column",overflowY:"auto",gap:6,px:8,pb:8,children:[(0,g.jsxs)(v.Flex,{direction:"column",alignItems:"center",gap:4,children:[(0,g.jsx)(v.Flex,{p:2,bg:"white",borderRadius:"full",alignItems:"center",justifyContent:"center",boxShadow:"md",children:(0,g.jsx)(U.Icon,{as:l$,boxSize:7,color:"blue.500"})}),(0,g.jsx)(Q.Heading,{mt:"4",size:"lg",children:"Wait, there's more!"}),(0,g.jsxs)(e6.Text,{fontSize:"md",textAlign:"center",children:["Recce is currently running in"," ",(0,g.jsx)(e6.Text,{fontWeight:"bold",as:"span",children:"limited functionality mode"})," ","so you can run queries but"," ",(0,g.jsx)(e6.Text,{fontWeight:"bold",as:"span",children:"can't diff the results yet!"})]})]}),(0,g.jsxs)(v.Flex,{direction:"column",gap:2,children:[(0,g.jsx)(e6.Text,{fontSize:"md",children:"To unlock the full power of Recce, set up a base environment of dbt artifacts for comparison."}),(0,g.jsx)(e6.Text,{children:"Once configured, you'll be able to:"}),(0,g.jsxs)(rW.Root,{children:[(0,g.jsx)(rW.Item,{children:(0,g.jsx)(e6.Text,{children:"Run statistical data diffs"})}),(0,g.jsx)(rW.Item,{children:(0,g.jsx)(e6.Text,{children:"Run query diffs"})}),(0,g.jsx)(rW.Item,{children:(0,g.jsx)(e6.Text,{children:"Save checks to your Recce Checklist"})}),(0,g.jsx)(rW.Item,{children:(0,g.jsx)(e6.Text,{children:"...and more!"})})]}),(0,g.jsx)(e6.Text,{fontSize:"md",children:"Take the next step toward better data impact assessment."})]}),(0,g.jsx)(v.Flex,{w:"100%",direction:"column",mt:6,children:(0,g.jsx)(AV.Button,{colorPalette:"blue",size:"lg",onClick:()=>{window.open("https://docs.datarecce.io/get-started/#prepare-dbt-artifacts","_blank")},children:"Start Now"})})]})})}function fr(){return(0,g.jsxs)(v.Flex,{direction:"row",gap:"10px",alignItems:"flex-start",children:[(0,g.jsx)(U.Icon,{as:lX,color:"blue.500",boxSize:"5"}),(0,g.jsxs)(v.Flex,{direction:"column",gap:"5px",children:[(0,g.jsxs)(e6.Text,{fontWeight:"bold",children:["Single Environment Mode"," ",(0,g.jsx)(e6.Text,{color:"red",as:"span",children:"Limited Functionality"})]}),(0,g.jsx)(e6.Text,{fontSize:"sm",children:"Single Environment Mode allows you to explore your dbt project but won't show data comparisons between environments."}),(0,g.jsx)(e6.Text,{fontSize:"sm",children:"To set up full environment comparison:"}),(0,g.jsxs)(rW.Root,{ps:"4",children:[(0,g.jsx)(rW.Item,{children:(0,g.jsx)(e6.Text,{fontSize:"sm",children:"Run `recce debug` for setup assistance"})}),(0,g.jsx)(rW.Item,{children:(0,g.jsxs)(e6.Text,{fontSize:"sm",children:["Visit"," ",(0,g.jsx)(j.Link,{color:"blue.500",fontSize:"sm",fontWeight:"medium",target:"_blank",href:"https://docs.datarecce.io/configure-diff/",children:"docs"})," ","for configuration details"]})})]})]})]})}let fi={mode:"per_node",status:"pending",completed:0,total:0,actions:{}},fo=function(){let{open:e,onOpen:A,onClose:t}=(0,A$.useDisclosure)(),[n,r]=(0,E.useState)(0),[i,o]=(0,E.useState)(),s=(0,E.useRef)(null),a=(0,E.useCallback)(e=>(r(e),new Promise(e=>{o(()=>e),A()})),[A]),l=()=>{i?.(!1),t()};return{confirm:a,AlertDialog:(0,g.jsx)(Az.Dialog.Root,{size:"xl",open:e,role:"alertdialog",initialFocusEl:()=>s.current,onOpenChange:l,children:(0,g.jsxs)(AW.Portal,{children:[(0,g.jsx)(Az.Dialog.Backdrop,{}),(0,g.jsx)(Az.Dialog.Positioner,{children:(0,g.jsxs)(Az.Dialog.Content,{children:[(0,g.jsx)(Az.Dialog.Header,{fontSize:"lg",fontWeight:"bold",children:(0,g.jsxs)(Az.Dialog.Title,{children:["Value Diff on ",n," nodes"]})}),(0,g.jsx)(Az.Dialog.Body,{gap:"20px",as:v.Flex,direction:"column",children:(0,g.jsxs)(y.Box,{children:["Value diff will be executed on ",n," nodes in the Lineage, which can add extra costs to your bill."]})}),(0,g.jsxs)(Az.Dialog.Footer,{gap:1,children:[(0,g.jsx)(AV.Button,{ref:s,onClick:l,variant:"outline",colorPalette:"gray",children:"Cancel"}),(0,g.jsx)(AV.Button,{colorPalette:"iochmara",onClick:()=>{i?.(!0),t()},ml:3,children:"Execute"})]}),(0,g.jsx)(Az.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AG.CloseButton,{size:"sm"})})]})})]})})}},fs={lineageGraphNode:function(e){let{data:A}=e,{id:t,resourceType:n,changeStatus:r}=A,i=o4(e=>e.transform[2]>.3),{icon:o}=lL(n),[s,a]=(0,E.useState)(!1),{interactive:l,selectNode:c,selectMode:u,focusedNode:d,getNodeAction:h,getNodeColumnSet:f,isNodeHighlighted:p,isNodeSelected:B,isNodeShowingChangeAnalysis:m,showContextMenu:w,viewOptions:x,cll:C,showColumnLevelLineage:b}=lU(),Q=C?.current.nodes[t]?.change_category,I=p(t),S=B(t),k=x.column_level_lineage?.node_id===t&&void 0===x.column_level_lineage.column,j=d?.id===t||k,H=m(t),{icon:D,color:L,backgroundColor:R}=r?lD(r):{icon:void 0,color:"gray.400",backgroundColor:"gray.100"},T=A.name,M=f(A.id),O=M.size>0,N="action_result"===u?h(A.id):void 0,P=i?"selecting"===u?S?L:"white":"action_result"!==u?j||S||s?R:"white":N?j||S||s?R:L:"white":j||S||s?L:R,_="selecting"===u?S?"white":"inherit":"action_result"===u&&N&&!S?"white":"inherit",K="selecting"===u?S?"white":"inherit":"action_result"===u&&N&&!S?"white":"inherit",V="selecting"===u?S?"white":L:"action_result"===u?N&&!S?"white":"inherit":L;return(0,g.jsxs)(v.Flex,{cursor:"selecting"===u?"pointer":"inherit",direction:"column",width:"300px",transition:"box-shadow 0.2s ease-in-out",padding:0,filter:"action_result"===u?N?"none":"opacity(0.2) grayscale(50%)":I||j||S||s?"none":"opacity(0.2) grayscale(50%)",onMouseEnter:()=>{a(!0)},onMouseLeave:()=>{a(!1)},children:[(0,g.jsxs)(v.Flex,{borderColor:L,borderWidth:"2px",borderTopRadius:8,borderBottomRadius:8*!O,backgroundColor:P,height:"60px",children:[(0,g.jsx)(v.Flex,{bg:L,padding:l?"8px":"2px",borderRightWidth:"2px",borderColor:"selecting"===u?"#00000020":L,alignItems:"top",visibility:i?"inherit":"hidden",children:l&&(0,g.jsx)(l5,{checked:"selecting"===u&&S||"action_result"===u&&!!N,onClick:e=>{"action_result"!==u&&(e.stopPropagation(),c(A.id))}})}),(0,g.jsxs)(v.Flex,{flex:"1 0 auto",mx:"1",width:"100px",direction:"column",children:[(0,g.jsxs)(v.Flex,{width:"100%",textAlign:"left",fontWeight:"600",flex:"1",p:1,gap:"5px",alignItems:"center",visibility:i?"inherit":"hidden",children:[(0,g.jsx)(l6,{name:T,color:_,resourceType:n}),s?(0,g.jsxs)(g.Fragment,{children:["modified"===r&&(0,g.jsx)(Aw.Tooltip,{content:"Show Impact Radius",positioning:{placement:"top"},openDelay:500,children:(0,g.jsx)(AQ.Center,{children:(0,g.jsx)(U.Icon,{boxSize:"14px",as:Ad,color:"gray",cursor:"pointer",_hover:{color:"black"},onClick:e=>{e.preventDefault(),e.stopPropagation(),b({node_id:t,change_analysis:!0,no_upstream:!0})}})})}),(0,g.jsx)(U.Icon,{as:t1.VscKebabVertical,color:"gray",cursor:"pointer",_hover:{color:"black"},onClick:A=>{A.preventDefault(),A.stopPropagation(),w(A,e)}})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(U.Icon,{boxSize:"16px",color:K,as:o}),r&&(0,g.jsx)(U.Icon,{color:V,as:D})]})]}),(0,g.jsx)(v.Flex,{flex:"1 0 auto",mx:"1",direction:"column",paddingBottom:"1",visibility:i?"inherit":"hidden",children:(0,g.jsx)(F.HStack,{gap:"8px",children:N?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ef.Spacer,{}),(0,g.jsx)(l1,{node:A,action:N})]}):H?(0,g.jsx)(y.Box,{height:"20px",color:"gray",fontSize:"9pt",margin:0,fontWeight:600,children:Q?l4[Q]:""}):"action_result"!==u&&"model"===A.resourceType?(0,g.jsx)(l3,{id:A.id,inverted:"selecting"===u&&S}):(0,g.jsx)(g.Fragment,{})})})]})]}),O&&(0,g.jsx)(y.Box,{p:"10px 10px",borderColor:L,borderWidth:"2px",borderTopWidth:0,borderBottomRadius:8,children:(0,g.jsx)(y.Box,{height:`${M.size*lf.COLUMN_HEIGHT}px`,overflow:"auto"})}),Object.keys(A.parents).length>0&&(0,g.jsx)(sq,{type:"target",position:oK.Position.Left,isConnectable:!1}),Object.keys(A.children).length>0&&(0,g.jsx)(sq,{type:"source",position:oK.Position.Right,isConnectable:!1})]})},lineageGraphColumnNode:function(e){let{id:A,data:t}=e,{id:n}=t.node,{column:r,type:i,transformationType:o,changeStatus:s}=t,a=o4(e=>e.transform[2]>.3),{viewOptions:l,showContextMenu:c,isNodeHighlighted:u,isNodeShowingChangeAnalysis:d}=lU(),h=l.column_level_lineage?.node_id,f=r===l.column_level_lineage?.column&&n===h,[p,B]=E.default.useState(!1),m=u(A),w=d(n);return a?(0,g.jsxs)(v.Flex,{width:"280px",padding:"0px 10px",border:"1px solid gray",backgroundColor:f?"#f0f0f0":"inherit",_hover:{backgroundColor:"#f0f0f0"},onMouseEnter:()=>{B(!0)},onMouseLeave:()=>{B(!1)},filter:m?"none":"opacity(0.2) grayscale(50%)",cursor:"pointer",children:[(0,g.jsxs)(v.Flex,{fontSize:"11px",color:"black",width:"100%",gap:"3px",alignItems:"center",height:`${lf.COLUMN_HEIGHT-1}px`,children:[w&&s?(0,g.jsx)(lN,{changeStatus:s}):(0,g.jsx)(lP,{transformationType:o}),(0,g.jsx)(y.Box,{height:`${lf.COLUMN_HEIGHT+1}px`,children:r}),(0,g.jsx)(ef.Spacer,{}),p?(0,g.jsx)(U.Icon,{as:t1.VscKebabVertical,boxSize:"14px",display:"inline-flex",cursor:"pointer",_hover:{color:"black"},onClick:A=>{A.preventDefault(),A.stopPropagation(),c(A,e)}}):(0,g.jsx)(y.Box,{height:`${lf.COLUMN_HEIGHT+1} px`,children:i})]}),(0,g.jsx)(sq,{type:"target",position:oK.Position.Left,isConnectable:!1,style:{left:0,visibility:"hidden"}}),(0,g.jsx)(sq,{type:"source",position:oK.Position.Right,isConnectable:!1,style:{right:0,visibility:"hidden"}})]}):(0,g.jsx)(g.Fragment,{})}},fa=[],fl={lineageGraphEdge:function(e){let{source:A,target:t,sourceX:n,sourceY:r,targetX:i,targetY:o,sourcePosition:s,targetPosition:a,style:l={},markerEnd:c,data:u}=e,d={...l},{isEdgeHighlighted:h}=lU();u?.changeStatus&&(d.stroke=lD(u.changeStatus).hexColor,d.strokeDasharray="5"),h(A,t)||(d.filter="opacity(0.2) grayscale(50%)");let[f]=(0,oK.getBezierPath)({sourceX:n,sourceY:r,sourcePosition:s,targetX:i,targetY:o,targetPosition:a});return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(aa,{path:f,markerEnd:c,style:{...d,...l}})})}},fc=e=>e.data.changeStatus?lD(e.data.changeStatus).hexColor:"lightgray",fu=(0,E.forwardRef)(function({interactive:e=!1,...A},t){var n;let r,i=sD(),o=(0,E.useRef)(null),{successToast:s,failToast:a}=n$(),{copyToClipboard:l,ImageDownloadModal:c,ref:u}=nJ({renderLibrary:"html-to-image",imageType:"png",shadowEffect:!0,backgroundColor:"white",ignoreElements:e=>{try{return e.classList.contains(nY)}catch{if(e.className)return e.className.includes(nY);return!1}},onSuccess:()=>{s("Copied the Lineage View as an image to clipboard")},onError:e=>{console.error("Error taking screenshot",e),a("Failed to copy image to clipboard",e)}}),[d,h,f]=function(e){let[A,t]=(0,E.useState)(e),n=(0,E.useCallback)(e=>t(A=>sC(e,A)),[]);return[A,t,n]}(fa),[p,B,m]=function(e){let[A,t]=(0,E.useState)(e),n=(0,E.useCallback)(e=>t(A=>sC(e,A)),[]);return[A,t,n]}([]),{lineageGraph:w,retchLineageGraph:x,isLoading:C,error:b,refetchRunsAggregated:Q}=(0,AY.useLineageGraphContext)(),{featureToggles:F,singleEnv:I}=(0,AC.useRecceInstanceContext)(),{runId:S,showRunId:k,closeRunResult:j,runAction:H,isRunResultOpen:D}=(0,lQ.useRecceActionContext)(),{run:L}=n1(S),[R,T]=(0,E.useState)({...A.viewOptions}),M=(0,E.useRef)([]).current,[O,N]=(0,E.useState)(void 0),P=AD({mutationFn:ly}),[_,K]=(0,E.useState)({}),V=(0,E.useCallback)(e=>d.filter(lf.isLineageGraphNode).find(A=>A.data.name===e),[d]);(0,E.useImperativeHandle)(t,()=>({copyToClipboard:l}));let G=(0,E.useMemo)(()=>!!(w&&w.modifiedSet.length>0),[w]),z=R.view_mode??"changed_models",W=(0,E.useMemo)(()=>d.filter(e=>"lineageGraphNode"===e.type).map(e=>e.id),[d]),$=(0,E.useMemo)(()=>w?W.map(e=>w.nodes[e]):[],[w,W]),[X,Y]=(0,E.useState)(),J=X?w?.nodes[X]:void 0,[q,Z]=(0,E.useState)(),[ee,eA]=(0,E.useState)(new Set),et=(0,E.useMemo)(()=>w?Array.from(ee).map(e=>w.nodes[e]):[],[w,ee]),en=((e,{onActionStarted:A,onActionNodeUpdated:t,onActionCompleted:n})=>{let r=(0,E.useRef)({...fi}).current,{showRunId:i}=(0,lQ.useRecceActionContext)(),o=async(o,s,a)=>{r.mode="multi_nodes",r.actions={};let l=r.mode,c=r.actions;A(),r.status="running";let u=[];for(let A of e){let e=s(A);e?(c[A.id]={mode:l,status:"skipped",skipReason:e},t(A)):(c[A.id]={mode:l,status:"pending"},u.push(A))}let d=a(u);try{let{run_id:e}=await (0,t5.submitRun)(o,d,{nowait:!0});for(i(e),r.currentRun={run_id:e},r.total=1;;){let A=await (0,t5.waitRun)(e,2);r.currentRun=A;let n=A.error?"failure":A.result?"success":"running";for(let e of u)c[e.id]={mode:l,status:n,run:A},t(e);if(A.error||A.result)break}}catch(e){}if(r.completed=1,"canceling"===r.status){r.status="canceled",n();return}r.status="completed",n()},s=async(i,o)=>{r.mode="per_node",r.actions={};let s=r.mode,a=r.actions;for(let n of(A(),r.status="running",e))a[n.id]={mode:s,status:"pending"},t(n);for(let A of(r.completed=0,r.total=e.length,e)){let{params:e,skipReason:l}=o(A);if(l)a[A.id]={mode:s,status:"skipped",skipReason:l},t(A);else try{let{run_id:n}=await (0,t5.submitRun)(i,e,{nowait:!0});for(r.currentRun={run_id:n},a[A.id]={mode:s,status:"running"},t(A);;){let e=await (0,t5.waitRun)(n,2);r.currentRun=e;let i=e.error?"failure":e.result?"success":"running";if(a[A.id]={mode:s,status:i,run:e},t(A),e.error||e.result)break}}catch(e){}finally{r.currentRun=void 0}if(r.completed++,"canceling"===r.status){r.status="canceled",n();return}}r.status="completed",n()},a=async()=>{let A=[];for(let n of e)"model"!==n.data.resourceType?(r.actions[n.id]={mode:"multi_nodes",status:"skipped",skipReason:"Not a model"},t(n)):A.push(n.data.name);await o("row_count",e=>{if("model"!==e.data.resourceType)return"Not a model"},e=>({node_names:e.map(e=>e.data.name)}))},l=async()=>{let A=[];for(let n of e)"model"!==n.data.resourceType?(r.actions[n.id]={mode:"multi_nodes",status:"skipped",skipReason:"Not a model"},t(n)):A.push(n.data.name);await o("row_count_diff",e=>{if("model"!==e.data.resourceType)return"Not a model"},e=>({node_names:e.map(e=>e.data.name)}))},c=async()=>{r.status="canceling",r.currentRun?.run_id&&await (0,t5.cancelRun)(r.currentRun.run_id)};return{actionState:r,runRowCount:a,runRowCountDiff:l,runValueDiff:async()=>{await s("value_diff",e=>{let A=e.data.data.current?.primary_key;return A?{params:{model:e.data.name,primary_key:A}}:{skipReason:"No primary key found. The first unique column is used as primary key."}})},addLineageDiffCheck:async()=>{let A=e.map(e=>e.id);return await lx({node_ids:A})},addSchemaDiffCheck:async()=>{let A;if(1===e.length)A=await lC({node_id:e[0].id});else{let t=e.map(e=>e.id);A=await lC({node_id:t})}return A},cancel:c,reset:()=>{Object.assign(r,fi)}}})(et.length>0?et:$,{onActionStarted:()=>{Z("action_result")},onActionNodeUpdated:e=>{h(A=>A.map(A=>A.id===e.id?{...A}:A))},onActionCompleted:()=>{}}),er=(0,E.useMemo)(()=>{if(!w)return new Set;let e=new Set;if(O){for(let[A,t]of Object.entries(O.current.nodes))!1!==t.impacted&&e.add(A);for(let A of Object.keys(O.current.columns))e.add(A)}else e="action_result"===q?new Set(Object.keys(en.actionState.actions)):J?(0,l8.union)((0,lf.selectUpstream)(w,[J.id]),(0,lf.selectDownstream)(w,[J.id])):G?(0,lf.selectDownstream)(w,w.modifiedSet):new Set(W);return new Set(e)},[w,O,q,J,G,en.actionState.actions,W]),ei=(()=>{let{open:e,onClose:A,onOpen:t}=(0,A$.useDisclosure)(),[n,r]=(0,E.useState)({x:0,y:0}),[i,o]=(0,E.useState)();return{props:{x:n.x,y:n.y,node:i,isOpen:e,onClose:A},showContextMenu:(e,A,n)=>{r({x:e,y:A}),o(n),t()},closeContextMenu:()=>{r({x:0,y:0}),o(void 0),A()}}})(),eo=()=>{ei.closeContextMenu()};(0,E.useLayoutEffect)(()=>{(async()=>{let e,t;if(!w)return;if(R.node_ids)t=R.node_ids;else{let e=w.manifestMetadata.current?.project_name,n={view_mode:R.view_mode??(G?"changed_models":"all"),packages:e?[e]:void 0,...A.viewOptions};try{t=(await lb({select:n.select,exclude:n.exclude,packages:n.packages,view_mode:n.view_mode})).nodes}catch(e){n.view_mode="all",t=(await lb({select:n.select,exclude:n.exclude,packages:n.packages,view_mode:n.view_mode})).nodes}T(n)}if(R.column_level_lineage)try{e=await P.mutateAsync(R.column_level_lineage)}catch(e){if(e instanceof lg.AxiosError)return void Am.toaster.create({title:"Column Level Lineage error",description:e.response?.data.detail??e.message,type:"error",closable:!0})}let[n,r,i]=(0,lf.toReactFlow)(w,{selectedNodes:t,cll:e});(0,lf.layout)(n,r),h(n),B(r),K(i),N(e)})()},[w]);let es=()=>{Y(void 0)},ea=async e=>{let A=d.find(A=>A.id===e);if(A){if(A.parentId){let e=A.parentId;A=d.find(A=>A.id===e)??A}if(null!=A.measured){let{width:e,height:t}=A.measured;if(e&&t){let n=A.position.x+e/2,r=A.position.y+t/2,o=i.getZoom();await i.setCenter(n,r,{zoom:o,duration:200})}}}},el=(()=>{let[,e]=(0,Af.useLocation)();return(0,E.useCallback)(A=>{A.check_id&&e(`/checks/${A.check_id}`)},[e])})();n=async()=>{"selecting"!==q&&(X?await ea(X):await i.fitView({nodes:d,duration:200}))},r=(0,E.useRef)({width:0,height:0}),(0,E.useEffect)(()=>{let e=o.current,A=new ResizeObserver(e=>{for(let A of e){let e=A.contentRect.width,t=A.contentRect.height;(Math.abs(t-r.current.height)>10||Math.abs(e-r.current.width)>10)&&r.current.height>0&&t>0&&r.current.width>0&&e>0&&n(),r.current={width:e,height:t}}});return e&&A.observe(e),()=>{e&&A.unobserve(e)}},[n,o]);let ec=async(e,A=!1)=>{let t=R.column_level_lineage;await ef({...R,column_level_lineage:e},!1),A||M.push(t),e?.node_id?Y(e.node_id):Y(void 0)},eu=async e=>{if(e){if(0===M.length)return;let e=M.pop();e?await ec(e,!0):await ec(void 0,!0)}else await ec(void 0,!0)},ed=(A,t)=>{if(e&&w){if((0,lf.isLineageGraphColumnNode)(t))return void(!q&&ec({node_id:t.data.node.id,column:t.data.column}));if(eo(),q)if("action_result"===q){let e=en.actionState.actions[t.id];e.run?.run_id&&k(e.run.run_id),Y(t.id)}else{let e=new Set(ee);ee.has(t.id)?e.delete(t.id):e.add(t.id),eA(e),0===e.size&&Z(void 0)}else Y(t.id)}},eh=async e=>{let A,t,{viewOptions:n=R}=e,{fitView:r}=e;if(!w)return;if(R.select!==n.select||R.exclude!==n.exclude||R.packages!==n.packages||R.view_mode!==n.view_mode){try{let e=await lb({select:n.select,exclude:n.exclude,packages:n.packages,view_mode:n.view_mode});n={...n,column_level_lineage:void 0},A=e.nodes}catch(e){e instanceof lg.AxiosError&&Am.toaster.create({title:"Select node error",description:e.response?.data.detail??e.message,type:"error",closable:!0});return}Y(void 0)}else A=d.map(e=>e.id);if(n.column_level_lineage)try{t=await P.mutateAsync(n.column_level_lineage)}catch(e){if(e instanceof lg.AxiosError)return void Am.toaster.create({title:"Column Level Lineage error",description:e.response?.data.detail??e.message,type:"error",closable:!0})}let[o,s,a]=(0,lf.toReactFlow)(w,{selectedNodes:A,cll:t});h(o),B(s),K(a),N(t),L&&((0,lv.isTopKDiffRun)(L)||(0,lv.isProfileDiffRun)(L)||(0,lv.isHistogramDiffRun)(L)||(0,lv.isValueDiffRun)(L)||(0,lv.isValueDiffDetailRun)(L))&&L.params?.model&&!V(L.params.model)&&j(),r&&(await new Promise(e=>setTimeout(e,1)),i.fitView({nodes:o,duration:200}))},ef=async(e,A=!0)=>{T(e),await eh({viewOptions:e,fitView:A})},eg=fo();(0,E.useEffect)(()=>{let A=L?.type;if(e&&D&&!(!A||["query_diff","query","row_count"].includes(A))&&!q){let e;((0,lv.isTopKDiffRun)(L)||(0,lv.isProfileDiffRun)(L)||(0,lv.isHistogramDiffRun)(L)||(0,lv.isValueDiffRun)(L)||(0,lv.isValueDiffDetailRun)(L))&&(e=L.params?.model);let A=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});if(e){let t=V(e);t?(0,lf.isLineageGraphNode)(t)&&J!==t.data.data&&ed(A,t):ef({...R,view_mode:"all"})}else es()}},[L,R,D,q,V,J,e]);let ep=(A,t)=>{if(!e||"action_result"===q)return;A.preventDefault();let n=u.current,r=n.getBoundingClientRect(),i=A.clientX-r.left,o=A.clientY-r.top+n.offsetTop;ei.showContextMenu(i,o,t)},eB=()=>{Z(void 0),eA(new Set),Y(void 0),j(),Q?.()},em={interactive:e,nodes:d,focusedNode:J,selectedNodes:et,viewOptions:R,showContextMenu:ep,onViewOptionsChanged:ef,selectMode:q,selectNode:e=>{if(q){if("selecting"===q){let A=new Set(ee);ee.has(e)?A.delete(e):A.add(e),eA(A),0===A.size&&Z(void 0)}}else w&&(eA(new Set([e])),Z("selecting"),Y(void 0),en.reset())},selectParentNodes:(e,A=1e3)=>{if("action_result"===q||void 0===w)return;!q&&(Z("selecting"),en.reset(),R.column_level_lineage&&ef({...R,column_level_lineage:void 0}));let t=(0,lf.selectUpstream)(w,[e],A);eA((0,l8.union)(ee,t))},selectChildNodes:(e,A=1e3)=>{if("action_result"===q||void 0===w)return;!q&&(Z("selecting"),en.reset(),R.column_level_lineage&&ef({...R,column_level_lineage:void 0}));let t=(0,lf.selectDownstream)(w,[e],A);eA((0,l8.union)(ee,t))},deselect:eB,isNodeHighlighted:e=>er.has(e),isNodeSelected:e=>ee.has(e),isEdgeHighlighted:(e,A)=>O?e in O.current.parent_map&&A in O.current.parent_map[e]:er.has(e)&&er.has(A),isNodeShowingChangeAnalysis:e=>{if(!w)return!1;let A=e in w.nodes?w.nodes[e]:void 0;if(R.column_level_lineage?.change_analysis){let t=R.column_level_lineage;return t.node_id&&!t.column?t.node_id===e&&!!A?.data.changeStatus:!!A?.data.changeStatus}return!1},getNodeAction:e=>en.actionState.actions[e],getNodeColumnSet:e=>e in _?new Set(_[e]):new Set,runRowCount:async()=>{"selecting"===q?(await en.runRowCount(),(0,Ax.trackMultiNodesAction)({type:"row_count",selected:"multi"})):J?(H("row_count",{node_names:[J.data.name]},{showForm:!1,showLast:!1}),(0,Ax.trackMultiNodesAction)({type:"row_count",selected:"single"})):(H("row_count",{select:R.select,exclude:R.exclude,packages:R.packages,view_mode:R.view_mode}),(0,Ax.trackMultiNodesAction)({type:"row_count",selected:"none"}))},runRowCountDiff:async()=>{"selecting"===q?(await en.runRowCountDiff(),(0,Ax.trackMultiNodesAction)({type:"row_count_diff",selected:"multi"})):J?(H("row_count_diff",{node_names:[J.data.name]},{showForm:!1,showLast:!1}),(0,Ax.trackMultiNodesAction)({type:"row_count_diff",selected:"single"})):(H("row_count_diff",{select:R.select,exclude:R.exclude,packages:R.packages,view_mode:R.view_mode}),(0,Ax.trackMultiNodesAction)({type:"row_count_diff",selected:"none"}))},runValueDiff:async()=>{if(J)H("value_diff",{model:J.data.name},{showForm:!0,showLast:!1}),(0,Ax.trackMultiNodesAction)({type:"value_diff",selected:"single"});else{let e="selecting"===q?et.length:W.length;await eg.confirm(e)&&(await en.runValueDiff(),(0,Ax.trackMultiNodesAction)({type:"value_diff",selected:"selecting"===q?"multi":"none"}))}},addLineageDiffCheck:async()=>{let e;"selecting"===q?(e=await en.addLineageDiffCheck(),eB(),(0,Ax.trackMultiNodesAction)({type:"lineage_diff",selected:"multi"})):J||(e=await lx(R),(0,Ax.trackMultiNodesAction)({type:"lineage_diff",selected:"none"})),e&&el(e)},addSchemaDiffCheck:async()=>{let e;"selecting"===q?et.length>0&&(e=await en.addSchemaDiffCheck(),eB(),(0,Ax.trackMultiNodesAction)({type:"schema_diff",selected:"multi"})):J?(e=await lC({node_id:J.id}),(0,Ax.trackMultiNodesAction)({type:"schema_diff",selected:"single"})):(e=await lC({select:R.select,exclude:R.exclude,packages:R.packages,view_mode:R.view_mode}),(0,Ax.trackMultiNodesAction)({type:"schema_diff",selected:"none"})),e&&el(e)},cancel:en.cancel,actionState:en.actionState,centerNode:ea,cll:O,showColumnLevelLineage:ec,resetColumnLevelLineage:eu};return C?(0,g.jsx)(v.Flex,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:(0,g.jsx)(ld.Spinner,{size:"xl"})}):b?(0,g.jsx)(AQ.Center,{h:"100%",children:(0,g.jsxs)(AU.VStack,{children:[(0,g.jsx)(y.Box,{children:"Failed to load lineage data. This could be because the server has been terminated or there is a network error."}),(0,g.jsxs)(y.Box,{children:["[Reason: ",b,"]"]}),(0,g.jsx)(AV.Button,{colorPalette:"blue",onClick:()=>{x&&x()},children:"Retry"})]})}):w&&d!=fa?"changed_models"!==z||w.modifiedSet.length?(0,g.jsxs)(lF.Provider,{value:em,children:[(0,g.jsxs)(ta,{sizes:J?[70,30]:[100,0],minSize:400*!!J,gutterSize:5*!!J,style:{height:"100%",width:"100%"},children:[(0,g.jsxs)(AU.VStack,{ref:o,separator:(0,g.jsx)(lh,{borderColor:"gray.200"}),gap:0,style:{contain:"strict"},position:"relative",children:[e&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(cC,{}),"metadata only"===F.mode&&(0,g.jsx)(ft,{})]}),(0,g.jsxs)(aY,{proOptions:{hideAttribution:!0},nodeTypes:fs,edgeTypes:fl,nodes:d,edges:p,onNodesChange:f,onEdgesChange:m,onNodeClick:ed,onNodeContextMenu:ep,onClick:eo,onInit:async()=>{if(G)await i.fitView();else{let e=(0,oK.getNodesBounds)(d,{});await i.setCenter(e.x+e.width/2,e.y+e.height/2,{zoom:1})}},maxZoom:1,minZoom:.1,nodesDraggable:e,ref:u,children:[(0,g.jsx)(a2,{color:"#ccc"}),(0,g.jsx)(lA,{showInteractive:!1,position:"top-right",className:nY,children:(0,g.jsx)(a7,{title:"copy image",onClick:async()=>{await l(),(0,Ax.trackCopyToClipboard)({type:z,from:"lineage_view"})},children:(0,g.jsx)(U.Icon,{as:lB})})}),(0,g.jsx)(c,{}),(0,g.jsx)(sn,{position:"bottom-left",children:(0,g.jsxs)(v.Flex,{direction:"column",gap:"5px",children:[G&&(0,g.jsx)(lR,{}),R.column_level_lineage&&(0,g.jsx)(l_,{})]})}),(0,g.jsx)(sn,{position:"top-center",children:(0,g.jsx)(cu,{notification:I?(0,g.jsx)(fr,{}):null,type:"info"})}),(0,g.jsx)(sn,{position:"top-left",children:(0,g.jsxs)(v.Flex,{direction:"column",gap:"5px",children:[(0,g.jsx)(lO,{action:P}),0==d.length&&(0,g.jsx)(e6.Text,{fontSize:"xl",color:"grey",opacity:.5,children:"No nodes"})]})}),(0,g.jsx)(lc,{nodeColor:fc,nodeStrokeWidth:3,zoomable:!0,pannable:!0}),"action_result"===q&&(0,g.jsx)(sn,{position:"bottom-center",className:nY,children:(0,g.jsx)(lI,{onClose:()=>{eB()}})})]}),(0,g.jsx)(ca,{...ei.props})]}),J?(0,g.jsx)(y.Box,{borderLeft:"solid 1px lightgray",height:"100%",children:(0,g.jsx)(h8,{node:J,onCloseNode:es})}):(0,g.jsx)(y.Box,{})]}),eg.AlertDialog]}):(0,g.jsx)(AQ.Center,{h:"100%",children:(0,g.jsxs)(AU.VStack,{children:[(0,g.jsx)(g.Fragment,{children:"No change detected"}),(0,g.jsx)(AV.Button,{colorPalette:"blue",onClick:async()=>{await ef({...R,view_mode:"all"})},children:"Show all nodes"})]})}):(0,g.jsx)(g.Fragment,{})}),fd=(0,E.forwardRef)(function({check:e},A){let t={...e.params,...e.view_options};return(0,g.jsx)(v.Flex,{direction:"column",height:"100%",children:(0,g.jsx)(aW,{children:(0,g.jsx)(fu,{viewOptions:t,interactive:!1,ref:A})})})});function fh({yamlTemplate:e}){return(0,g.jsx)(rL,{height:"300px",language:"yaml",theme:"vs",value:e,options:{readOnly:!0,fontSize:14,lineNumbers:"off",automaticLayout:!0,minimap:{enabled:!1},wordWrap:"on",wrappingIndent:"same",scrollBeyondLastLine:!1}})}var rW=rW;let ff=({node:e,selected:A,onSelect:t,schemaChanged:n})=>{let r,i,{icon:o}=lL(e.data.resourceType),{base:s,current:a}=e.data.data;return n?(r=(0,n0.findByRunType)("schema_diff").icon,i=lD("modified").color):!s&&a?(r=lD("added").icon,i=lD("added").color):s&&!a&&(r=lD("removed").icon,i=lD("removed").color),(0,g.jsx)(rW.Item,{children:(0,g.jsxs)(v.Flex,{width:"100%",fontSize:"10pt",p:"5px 8px",cursor:"pointer",_hover:{bg:"gray.200"},bg:A?"gray.100":"inherit",onClick:()=>{t(e.id)},alignItems:"center",gap:"5px",children:[(0,g.jsx)(U.Icon,{as:o}),(0,g.jsx)(y.Box,{flex:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",children:e.data.name}),r&&i&&(0,g.jsx)(U.Icon,{as:r,color:i})]})})},fg=(0,E.forwardRef)(function({check:e},A){let{lineageGraph:t}=(0,AY.useLineageGraphContext)(),n=e.params,r=[...AL.cacheKeys.check(e.check_id),"select"],{isLoading:i,error:o,data:s}=(0,e8.useQuery)({queryKey:r,queryFn:async()=>lb({select:n.select,exclude:n.exclude,packages:n.packages,view_mode:n.view_mode}),refetchOnMount:!0,enabled:!n.node_id}),[a,l]=(0,E.useMemo)(()=>{let e=[],A=[],r=[],i=[];if(n.node_id)for(let A of n.node_id instanceof Array?n.node_id:[n.node_id]){let n=t?.nodes[A];n&&e.push(n)}else for(let A of s?.nodes??[]){let n=t?.nodes[A];n&&e.push(n)}let o=e.filter(e=>"model"===e.data.resourceType||"seed"===e.data.resourceType||"source"===e.data.resourceType||"snapshot"===e.data.resourceType);for(let e of o)lV(e.data.data.base?.columns,e.data.data.current?.columns)?A.push(e.id):!e.data.data.base&&e.data.data.current?r.push(e.id):e.data.data.base&&!e.data.data.current&&i.push(e.id);function a(e){return A.includes(e.id)?3:r.includes(e.id)?2:+!!i.includes(e.id)}return o.sort((e,A)=>{let t=a(e),n=a(A);return t!==n?n-t:e.data.name.localeCompare(A.data.name)}),[o,A]},[n.node_id,s?.nodes,t]),[c,u]=(0,E.useState)(0);if(i)return(0,g.jsx)(AQ.Center,{bg:"rgb(249,249,249)",height:"100%",children:"Loading..."});if(o)return(0,g.jsxs)(AQ.Center,{bg:"rgb(249,249,249)",height:"100%",className:"no-track-pii-safe",children:["Error: ",o.message]});if(0==a.length)return(0,g.jsx)(AQ.Center,{bg:"rgb(249,249,249)",height:"100%",children:"No nodes matched"});if(c<a.length){let e=a[c];return(0,g.jsxs)(ta,{sizes:[80,20],minSize:30,style:{height:"100%"},children:[(0,g.jsx)(cI,{base:e.data.data.base,current:e.data.data.current,enableScreenshot:!0,ref:A}),(0,g.jsx)(rW.Root,{overflow:"auto",backgroundColor:"white",as:"ul",listStyle:"none",children:a.map((e,A)=>(0,g.jsx)(ff,{node:e,schemaChanged:l.includes(e.id),selected:A===c,onSelect:()=>{u(A)}},e.id))})]})}return(0,g.jsx)(g.Fragment,{})}),fp=(e,A)=>"schema_diff"!==e&&"lineage_diff"!==e&&(!A?.result||!!A.error),fB=({checkId:e,refreshCheckList:A})=>{let t,{featureToggles:n}=(0,AC.useRecceInstanceContext)(),{setLatestSelectedCheckId:r}=(0,AK.useRecceCheckContext)(),i=(0,AH.useQueryClient)(),[,o]=(0,Af.useLocation)(),{successToast:s,failToast:a}=n$(),{markedAsApprovedToast:l}=nZ(),[c,u]=(0,E.useState)(),[d]=(0,E.useState)(),[h,f]=(0,E.useState)(!1),{open:p,onOpen:B,onClose:m}=(0,A$.useDisclosure)(),[w,x]=(0,E.useState)((0,g.jsx)(fm,{})),{isLoading:C,error:b,data:I}=(0,e8.useQuery)({queryKey:AL.cacheKeys.check(e),queryFn:async()=>AO(e),refetchOnMount:!0}),S=c??I?.last_run?.run_id,{run:k,error:j}=n1(S),H=c?!k||"running"===k.status:k?.status==="running",D=I?.type?(0,n0.findByRunType)(I.type):void 0;D&&(t=D.RunResultView);let L=I?.is_preset??!1,R=(0,E.useRef)(null),{mutate:T}=AD({mutationFn:A=>AN(e,A),onSuccess:async()=>{await i.invalidateQueries({queryKey:AL.cacheKeys.check(e)}),await i.invalidateQueries({queryKey:AL.cacheKeys.checks()})}}),{mutate:M}=AD({mutationFn:()=>AP(e),onSuccess:async()=>{r(""),await i.invalidateQueries({queryKey:AL.cacheKeys.checks()}),o("/checks")}}),O=(0,E.useCallback)(async()=>{!I?.type||(u((await (0,t5.submitRunFromCheck)(e,{nowait:!0})).run_id),await i.invalidateQueries({queryKey:AL.cacheKeys.check(e)}),A&&A())},[I,e,i,A]),N=(0,E.useCallback)(async()=>{if(f(!0),S)return await (0,t5.cancelRun)(S)},[S]),P=async()=>{if(!I)return;let e=function(e){return t_`
|
|
37
|
+
<details><summary>${`${e.is_checked?"✅ ":""}${e.name}`}</summary>
|
|
38
|
+
|
|
39
|
+
${function(e){if("query"===e.type||"query_diff"===e.type){let A,t;return`${oP(e)}
|
|
40
|
+
|
|
41
|
+
${A=e.params,t="",A&&"sql_template"in A&&(t=A.sql_template),tP`
|
|
42
|
+
**SQL**
|
|
43
|
+
\`\`\`sql
|
|
44
|
+
${t}
|
|
45
|
+
\`\`\`
|
|
46
|
+
`}`}return oP(e)}(e)}
|
|
47
|
+
|
|
48
|
+
</details>`}(I);if(!window.isSecureContext)return void a("Failed to copy the check to clipboard",Error("Copy to clipboard is available only in secure contexts (HTTPS)"));try{await navigator.clipboard.writeText(e),s("Copied the check to the clipboard")}catch(e){a("Failed to copy the check to clipboard",e)}},_=(0,E.useCallback)(()=>{let e=I?.is_checked;T({is_checked:!e}),e||l()},[I?.is_checked,T,l]),[K,V]=(0,E.useState)("result"),{ref:G,onCopyToClipboard:z,onMouseEnter:W,onMouseLeave:$}=nq(),X=function({name:e,description:A,type:t,params:n,viewOptions:r}){let i={name:e,description:A,type:t,params:n};return r&&(i.view_options=r),h_.stringify({checks:[i]})}({name:I?.name??"",description:I?.description??"",type:I?.type??"",params:I?.params,viewOptions:I?.view_options});if(C)return(0,g.jsx)(AQ.Center,{h:"100%",children:"Loading"});if(b)return(0,g.jsxs)(AQ.Center,{h:"100%",children:["Error: ",(0,g.jsx)("span",{className:"no-track-pii-safe",children:b.message})]});if(!I)return(0,g.jsx)(tl,{minSize:100,sizes:[30,70],style:{height:"100%",width:"100%",maxHeight:"100%"},children:(0,g.jsx)(y.Box,{style:{contain:"strict"},display:"flex",flexDirection:"column",children:(0,g.jsx)(v.Flex,{p:"0px 16px",alignItems:"center",h:"40px",children:(0,g.jsx)(oL,{name:"Check not found",setName:()=>{}})})})});let Y=k?.run_at?tq(new Date(k.run_at),{addSuffix:!0}):null;return(0,g.jsxs)(tl,{minSize:100,sizes:[30,70],style:{height:"100%",width:"100%",maxHeight:"100%"},children:[(0,g.jsxs)(y.Box,{style:{contain:"strict"},display:"flex",flexDirection:"column",children:[(0,g.jsxs)(v.Flex,{p:"0px 16px",alignItems:"center",h:"40px",children:[(0,g.jsx)(oL,{name:I.name,setName:e=>{T({name:e})}}),L&&(0,g.jsx)(Aw.Tooltip,{content:"Preset Check defined in recce config",children:(0,g.jsxs)(tI.Root,{size:"sm",flex:"0 0 auto",ml:"2",children:[(0,g.jsx)(tI.StartElement,{children:(0,g.jsx)(tZ,{size:"14px"})}),(0,g.jsx)(tI.Label,{children:"Preset"})]})}),(0,g.jsx)(ef.Spacer,{}),(0,g.jsxs)(F.HStack,{mr:"10px",children:[Y&&(0,g.jsx)(y.Box,{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",fontSize:"10pt",children:Y}),(0,g.jsxs)(tB.Menu.Root,{children:[(0,g.jsx)(tB.Menu.Trigger,{asChild:!0,children:(0,g.jsx)(Ag.IconButton,{rounded:"full",variant:"ghost",size:"sm",children:(0,g.jsx)(U.Icon,{as:t1.VscKebabVertical})})}),(0,g.jsx)(AW.Portal,{children:(0,g.jsx)(tB.Menu.Positioner,{children:(0,g.jsxs)(tB.Menu.Content,{children:[(0,g.jsx)(tB.Menu.Item,{value:"preset-check-template",onClick:()=>{x((0,g.jsx)(fm,{})),B()},children:(0,g.jsxs)(v.Flex,{alignItems:"center",gap:1,textStyle:"sm",children:[(0,g.jsx)(t0,{})," Get Preset Check Template"]})}),(0,g.jsx)(tB.Menu.Item,{value:"copy-markdown",onClick:()=>P(),children:(0,g.jsxs)(v.Flex,{alignItems:"center",gap:1,textStyle:"sm",children:[(0,g.jsx)(AX.PiCopy,{})," Copy Markdown"]})}),(0,g.jsx)(tm.MenuSeparator,{}),(0,g.jsx)(tB.Menu.Item,{value:"delete",color:"red.solid",onClick:()=>{M()},disabled:n.disableUpdateChecklist,children:(0,g.jsxs)(v.Flex,{alignItems:"center",gap:1,textStyle:"sm",children:[(0,g.jsx)(AX.PiTrashFill,{})," Delete"]})})]})})})]}),(0,g.jsx)(Aw.Tooltip,{content:fp(I.type,k)?"Run the check first":I.is_checked?"Mark as Pending":"Mark as Approved",positioning:{placement:"bottom-end"},children:(0,g.jsxs)(AV.Button,{flex:"0 0 auto",size:"sm",colorPalette:I.is_checked?"green":"gray",variant:I.is_checked?"solid":"outline",onClick:()=>{_()},disabled:fp(I.type,k)||n.disableUpdateChecklist,children:[I.is_checked?(0,g.jsx)(AX.PiCheckCircle,{}):(0,g.jsx)(U.Icon,{as:t1.VscCircleLarge,color:"lightgray"})," ",I.is_checked?"Approved":"Mark as Approved"]})})]})]}),(0,g.jsx)(y.Box,{flex:"1",p:"8px 16px",minHeight:"100px",children:(0,g.jsx)(oN,{value:I.description,onChange:e=>{T({description:e})}},I.check_id)})]}),(0,g.jsx)(y.Box,{style:{contain:"strict"},children:(0,g.jsxs)(e5.Root,{height:"100%",display:"flex",flexDirection:"column",value:K,onValueChange:e=>{V(e.value)},children:[(0,g.jsxs)(e5.List,{height:"50px",children:[(0,g.jsx)(e5.Trigger,{value:"result",fontSize:"0.75rem",children:"Result"}),("query"===I.type||"query_diff"===I.type)&&(0,g.jsx)(e5.Trigger,{value:"query",fontSize:"0.75rem",children:"Query"}),(0,g.jsx)(ef.Spacer,{}),(0,g.jsxs)(F.HStack,{mr:"10px",children:[t&&(0,g.jsx)(Aw.Tooltip,{content:"Rerun",children:(0,g.jsxs)(AV.Button,{variant:"outline",loading:H,size:"sm",onClick:()=>O(),disabled:n.disableDatabaseQuery,children:[(0,g.jsx)(AX.PiRepeat,{})," Rerun"]})}),(0,g.jsxs)(AV.Button,{variant:"outline",disabled:fp(I.type,k)||"result"!==K,onMouseEnter:W,onMouseLeave:$,size:"sm",onClick:async()=>{"lineage_diff"===I.type?R.current?.copyToClipboard():await z(),(0,Ax.trackCopyToClipboard)({type:I.type,from:"check"})},children:[(0,g.jsx)(AX.PiCopy,{})," Copy to Clipboard"]})]})]}),(0,g.jsxs)(e5.ContentGroup,{height:"100%",flex:"1",style:{contain:"strict"},children:[(0,g.jsxs)(e5.Content,{value:"result",p:0,width:"100%",height:"100%",children:[t&&(I.last_run||S?(0,g.jsx)(ox,{ref:G,isRunning:H,isAborting:h,run:S?k:I.last_run,error:j,progress:d,RunResultView:t,viewOptions:I.view_options,onViewOptionsChanged:e=>{T({view_options:e})},onCancel:N,onExecuteRun:O}):(0,g.jsx)(AQ.Center,{bg:"rgb(249,249,249)",height:"100%",children:(0,g.jsxs)(AU.VStack,{gap:4,children:[(0,g.jsx)(y.Box,{children:"This action is part of the initial preset and has not been performed yet. Once performed, the result will be shown here."}),(0,g.jsx)(t3,{display:"metadata only"===n.mode,children:(0,g.jsx)(AV.Button,{onClick:O,colorPalette:"blue",size:"sm",disabled:n.disableDatabaseQuery,children:"Run Query"})})]})})),"schema_diff"===I.type&&(0,g.jsx)(fg,{check:I,ref:G},I.check_id),"lineage_diff"===I.type&&(0,g.jsx)(fd,{check:I,ref:R},I.check_id)]}),("query"===I.type||"query_diff"===I.type||"query_base"===I.type)&&(0,g.jsx)(e5.Content,{value:"query",p:0,height:"100%",width:"100%",children:I.params.base_sql_template?(0,g.jsx)(ib,{value:I.params.sql_template||"",baseValue:I.params.base_sql_template??"",options:{readOnly:!0}}):(0,g.jsx)(iC,{value:I.params.sql_template||"",options:{readOnly:!0}})})]})]})}),(0,g.jsx)(Az.Dialog.Root,{open:p,onOpenChange:m,placement:"center",size:"xl",children:(0,g.jsxs)(AW.Portal,{children:[w,(0,g.jsx)(Az.Dialog.Positioner,{children:(0,g.jsxs)(Az.Dialog.Content,{overflowY:"auto",height:"40%",width:"60%",children:[(0,g.jsx)(Az.Dialog.Header,{children:(0,g.jsx)(Az.Dialog.Title,{children:"Preset Check Template"})}),(0,g.jsxs)(Az.Dialog.Body,{children:[(0,g.jsxs)(Q.Heading,{size:"sm",fontWeight:"bold",children:["Please"," ",(0,g.jsx)(e6.Text,{as:"span",cursor:"pointer",_hover:{textDecoration:"underline"},color:"blue.500",onClick:async()=>{await navigator.clipboard.writeText(X),s("Copied the template to the clipboard")},children:"copy"})," ","the following template and paste it into the"," ",(0,g.jsx)(tp,{query:"recce.yml",styles:{px:"1",py:"0",bg:"red.100"},children:"recce.yml"})," ","file."]}),(0,g.jsx)("br",{}),(0,g.jsx)(fh,{yamlTemplate:X})]}),(0,g.jsx)(Az.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AG.CloseButton,{size:"sm"})})]})})]})})]})};function fm(){return(0,g.jsx)(Az.Dialog.Backdrop,{bg:"blackAlpha.300",backdropFilter:"blur(10px) "})}let fw=()=>{let e=(0,AH.useQueryClient)(),[,A]=(0,Af.useLocation)(),{mutate:t,isPending:n}=AD({mutationFn:()=>lC({select:"state:modified"}),onSuccess:async t=>{await e.invalidateQueries({queryKey:AL.cacheKeys.checks()}),A(`/checks/${t.check_id}`)}});return(0,g.jsx)(AQ.Center,{h:"100%",w:"100%",children:(0,g.jsxs)(AU.VStack,{gap:6,textAlign:"center",maxW:"400px",children:[(0,g.jsx)(U.Icon,{as:cZ.TbChecklist,boxSize:16,color:"gray.400"}),(0,g.jsxs)(AU.VStack,{gap:2,children:[(0,g.jsx)(Q.Heading,{size:"lg",color:"gray.600",children:"No checks yet"}),(0,g.jsx)(e6.Text,{color:"gray.500",fontSize:"md",children:"Checks help you validate data quality and catch issues."})]}),(0,g.jsxs)(AU.VStack,{gap:3,w:"100%",children:[(0,g.jsx)(e6.Text,{fontSize:"sm",color:"gray.600",fontWeight:"medium",children:"Get started with your first check:"}),(0,g.jsx)(AV.Button,{colorPalette:"blue",onClick:()=>{t()},loading:n,size:"lg",w:"100%",children:(0,g.jsxs)(F.HStack,{children:[(0,g.jsx)(U.Icon,{as:cZ.TbPlus}),(0,g.jsx)(e6.Text,{children:"Create Schema Diff Check"})]})}),(0,g.jsx)(e6.Text,{fontSize:"xs",color:"gray.400",mt:2,children:"The schema checks compare modified models between environments to detect changes, additions, or removals."})]})]})})};var fy=E;function fx(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var fC="function"==typeof Symbol&&Symbol.observable||"@@observable",fb=()=>Math.random().toString(36).substring(7).split("").join("."),fv={INIT:`@@redux/INIT${fb()}`,REPLACE:`@@redux/REPLACE${fb()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${fb()}`};function fQ(e,A){return function(...t){return A(e.apply(this,t))}}function fF(e,A){if("function"==typeof e)return fQ(e,A);if("object"!=typeof e||null===e)throw Error(fx(16));let t={};for(let n in e){let r=e[n];"function"==typeof r&&(t[n]=fQ(r,A))}return t}function fU(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,A)=>(...t)=>e(A(...t)))}e.i(75103);var fE=Symbol.for(E.version.startsWith("19")?"react.transitional.element":"react.element"),fI=Symbol.for("react.portal"),fS=Symbol.for("react.fragment"),fk=Symbol.for("react.strict_mode"),fj=Symbol.for("react.profiler"),fH=Symbol.for("react.consumer"),fD=Symbol.for("react.context"),fL=Symbol.for("react.forward_ref"),fR=Symbol.for("react.suspense"),fT=Symbol.for("react.suspense_list"),fM=Symbol.for("react.memo"),fO=Symbol.for("react.lazy");function fN(e){return function(A){let t=e(A);function n(){return t}return n.dependsOnOwnProps=!1,n}}function fP(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function f_(e,A){return function(A,{displayName:t}){let n=function(e,A){return n.dependsOnOwnProps?n.mapToProps(e,A):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(A,t){n.mapToProps=e,n.dependsOnOwnProps=fP(e);let r=n(A,t);return"function"==typeof r&&(n.mapToProps=r,n.dependsOnOwnProps=fP(r),r=n(A,t)),r},n}}function fK(e,A){return(t,n)=>{throw Error(`Invalid value of type ${typeof e} for ${A} argument when connecting component ${n.wrappedComponentName}.`)}}function fV(e,A,t){return{...t,...e,...A}}var fG={notify(){},get:()=>[]};function fz(e,A){let t,n=fG,r=0,i=!1;function o(){l.onStateChange&&l.onStateChange()}function s(){if(r++,!t){let r,i;t=A?A.addNestedSub(o):e.subscribe(o),r=null,i=null,n={clear(){r=null,i=null},notify(){let e=r;for(;e;)e.callback(),e=e.next},get(){let e=[],A=r;for(;A;)e.push(A),A=A.next;return e},subscribe(e){let A=!0,t=i={callback:e,next:null,prev:i};return t.prev?t.prev.next=t:r=t,function(){A&&null!==r&&(A=!1,t.next?t.next.prev=t.prev:i=t.prev,t.prev?t.prev.next=t.next:r=t.next)}}}}}function a(){r--,t&&0===r&&(t(),t=void 0,n.clear(),n=fG)}let l={addNestedSub:function(e){s();let A=n.subscribe(e),t=!1;return()=>{t||(t=!0,A(),a())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,a())},getListeners:()=>n};return l}var fW="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,f$="undefined"!=typeof navigator&&"ReactNative"===navigator.product,fX=fW||f$?E.useLayoutEffect:E.useEffect;function fY(e,A){return e===A?0!==e||0!==A||1/e==1/A:e!=e&&A!=A}function fJ(e,A){if(fY(e,A))return!0;if("object"!=typeof e||null===e||"object"!=typeof A||null===A)return!1;let t=Object.keys(e),n=Object.keys(A);if(t.length!==n.length)return!1;for(let n=0;n<t.length;n++)if(!Object.prototype.hasOwnProperty.call(A,t[n])||!fY(e[t[n]],A[t[n]]))return!1;return!0}var fq={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},fZ={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},f0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f1={[fL]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[fM]:f0};function f2(e){return function(e){if("object"==typeof e&&null!==e){let{$$typeof:A}=e;switch(A){case fE:switch(e=e.type){case fS:case fj:case fk:case fR:case fT:return e;default:switch(e=e&&e.$$typeof){case fD:case fL:case fO:case fM:case fH:return e;default:return A}}case fI:return A}}}(e)===fM?f0:f1[e.$$typeof]||fq}var f4=Object.defineProperty,f3=Object.getOwnPropertyNames,f5=Object.getOwnPropertySymbols,f6=Object.getOwnPropertyDescriptor,f8=Object.getPrototypeOf,f7=Object.prototype;function f9(e,A){if("string"!=typeof A){if(f7){let t=f8(A);t&&t!==f7&&f9(e,t)}let t=f3(A);f5&&(t=t.concat(f5(A)));let n=f2(e),r=f2(A);for(let i=0;i<t.length;++i){let o=t[i];if(!fZ[o]&&!(r&&r[o])&&!(n&&n[o])){let t=f6(A,o);try{f4(e,o,t)}catch(e){}}}}return e}var ge=Symbol.for("react-redux-context"),gA="undefined"!=typeof globalThis?globalThis:{},gt=function(){if(!E.createContext)return{};let e=gA[ge]??=new Map,A=e.get(E.createContext);return A||(A=E.createContext(null),e.set(E.createContext,A)),A}(),gn=[null,null];function gr(e,A,t,n,r,i){e.current=n,t.current=!1,r.current&&(r.current=null,i())}function gi(e,A){return e===A}var go=function(e,A,t,{pure:n,areStatesEqual:r=gi,areOwnPropsEqual:i=fJ,areStatePropsEqual:o=fJ,areMergedPropsEqual:s=fJ,forwardRef:a=!1,context:l=gt}={}){let c=e?"function"==typeof e?f_(e,"mapStateToProps"):fK(e,"mapStateToProps"):fN(()=>({})),u=A&&"object"==typeof A?fN(e=>(function(e,A){let t={};for(let n in e){let r=e[n];"function"==typeof r&&(t[n]=(...e)=>A(r(...e)))}return t})(A,e)):A?"function"==typeof A?f_(A,"mapDispatchToProps"):fK(A,"mapDispatchToProps"):fN(e=>({dispatch:e})),d=t?"function"==typeof t?function(e,{displayName:A,areMergedPropsEqual:n}){let r,i=!1;return function(e,A,o){let s=t(e,A,o);return i?n(s,r)||(r=s):(i=!0,r=s),r}}:fK(t,"mergeProps"):()=>fV,h=!!e;return e=>{let A=e.displayName||e.name||"Component",t=`Connect(${A})`,n={shouldHandleStateChanges:h,displayName:t,wrappedComponentName:A,WrappedComponent:e,initMapStateToProps:c,initMapDispatchToProps:u,initMergeProps:d,areStatesEqual:r,areStatePropsEqual:o,areOwnPropsEqual:i,areMergedPropsEqual:s};function f(A){var t;let r,[i,o,s]=E.useMemo(()=>{let{reactReduxForwardedRef:e,...t}=A;return[A.context,e,t]},[A]),a=E.useMemo(()=>(i?.Consumer,l),[i,l]),c=E.useContext(a),u=!!A.store&&!!A.store.getState&&!!A.store.dispatch,d=!!c&&!!c.store,f=u?A.store:c.store,g=d?c.getServerState:f.getState,p=E.useMemo(()=>(function(e,{initMapStateToProps:A,initMapDispatchToProps:t,initMergeProps:n,...r}){return function(e,A,t,n,{areStatesEqual:r,areOwnPropsEqual:i,areStatePropsEqual:o}){let s,a,l,c,u,d=!1;return function(h,f){return d?function(d,h){let f=!i(h,a),g=!r(d,s,h,a);if(s=d,a=h,f&&g)return l=e(s,a),A.dependsOnOwnProps&&(c=A(n,a)),u=t(l,c,a);if(f)return e.dependsOnOwnProps&&(l=e(s,a)),A.dependsOnOwnProps&&(c=A(n,a)),u=t(l,c,a);if(g){let A,n;return n=!o(A=e(s,a),l),l=A,n&&(u=t(l,c,a)),u}return u}(h,f):(l=e(s=h,a=f),c=A(n,a),u=t(l,c,a),d=!0,u)}}(A(e,r),t(e,r),n(e,r),e,r)})(f.dispatch,n),[f]),[B,m]=E.useMemo(()=>{if(!h)return gn;let e=fz(f,u?void 0:c.subscription),A=e.notifyNestedSubs.bind(e);return[e,A]},[f,u,c]),w=E.useMemo(()=>u?c:{...c,subscription:B},[u,c,B]),y=E.useRef(void 0),x=E.useRef(s),C=E.useRef(void 0),b=E.useRef(!1),v=E.useRef(!1),Q=E.useRef(void 0);fX(()=>(v.current=!0,()=>{v.current=!1}),[]);let F=E.useMemo(()=>()=>C.current&&s===x.current?C.current:p(f.getState(),s),[f,s]),U=E.useMemo(()=>e=>{if(!B)return()=>{};if(!h)return()=>{};let A=!1,t=null,n=()=>{let n,r;if(A||!v.current)return;let i=f.getState();try{n=p(i,x.current)}catch(e){r=e,t=e}r||(t=null),n===y.current?b.current||m():(y.current=n,C.current=n,b.current=!0,e())};return B.onStateChange=n,B.trySubscribe(),n(),()=>{if(A=!0,B.tryUnsubscribe(),B.onStateChange=null,t)throw t}},[B]);t=[x,y,b,s,C,m],fX(()=>gr(...t),void 0);try{r=E.useSyncExternalStore(U,F,g?()=>p(g(),s):F)}catch(e){throw Q.current&&(e.message+=`
|
|
49
|
+
The error may be correlated with this previous error:
|
|
50
|
+
${Q.current.stack}
|
|
51
|
+
|
|
52
|
+
`),e}fX(()=>{Q.current=void 0,C.current=void 0,y.current=r});let I=E.useMemo(()=>E.createElement(e,{...r,ref:o}),[o,e,r]);return E.useMemo(()=>h?E.createElement(a.Provider,{value:w},I):I,[a,I,w])}let g=E.memo(f);if(g.WrappedComponent=e,g.displayName=f.displayName=t,a){let A=E.forwardRef(function(e,A){return E.createElement(g,{...e,reactReduxForwardedRef:A})});return A.displayName=t,A.WrappedComponent=e,f9(A,e)}return f9(g,e)}},gs=function(e){let{children:A,context:t,serverState:n,store:r}=e,i=E.useMemo(()=>{let e=fz(r);return{store:r,subscription:e,getServerState:n?()=>n:void 0}},[r,n]),o=E.useMemo(()=>r.getState(),[r]);return fX(()=>{let{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==r.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[i,o]),E.createElement((t||gt).Provider,{value:i},A)};function ga(e=gt){return function(){return E.useContext(e)}}var gl=ga(),gc=function(e){var A=e.top,t=e.right,n=e.bottom,r=e.left;return{top:A,right:t,bottom:n,left:r,width:t-r,height:n-A,x:r,y:A,center:{x:(t+r)/2,y:(n+A)/2}}},gu=function(e,A){return{top:e.top-A.top,left:e.left-A.left,bottom:e.bottom+A.bottom,right:e.right+A.right}},gd=function(e,A){return{top:e.top+A.top,left:e.left+A.left,bottom:e.bottom-A.bottom,right:e.right-A.right}},gh={top:0,right:0,bottom:0,left:0},gf=function(e){var A=e.borderBox,t=e.margin,n=void 0===t?gh:t,r=e.border,i=void 0===r?gh:r,o=e.padding,s=void 0===o?gh:o,a=gc(gu(A,n)),l=gc(gd(A,i)),c=gc(gd(l,s));return{marginBox:a,borderBox:gc(A),paddingBox:l,contentBox:c,margin:n,border:i,padding:s}},gg=function(e){var A=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var t=Number(A);return isNaN(t)&&function(e,A){if(!e)throw Error("Invariant failed")}(!1),t},gp=function(e,A){var t=e.borderBox,n=e.border,r=e.margin,i=e.padding;return gf({borderBox:{top:t.top+A.y,left:t.left+A.x,bottom:t.bottom+A.y,right:t.right+A.x},border:n,margin:r,padding:i})},gB=function(e,A){return void 0===A&&(A={x:window.pageXOffset,y:window.pageYOffset}),gp(e,A)},gm=function(e,A){return gf({borderBox:e,margin:{top:gg(A.marginTop),right:gg(A.marginRight),bottom:gg(A.marginBottom),left:gg(A.marginLeft)},padding:{top:gg(A.paddingTop),right:gg(A.paddingRight),bottom:gg(A.paddingBottom),left:gg(A.paddingLeft)},border:{top:gg(A.borderTopWidth),right:gg(A.borderRightWidth),bottom:gg(A.borderBottomWidth),left:gg(A.borderLeftWidth)}})},gw=function(e){return gm(e.getBoundingClientRect(),window.getComputedStyle(e))};let gy=function(e){var A=[],t=null,n=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];A=r,t||(t=requestAnimationFrame(function(){t=null,e.apply(void 0,A)}))};return n.cancel=function(){t&&(cancelAnimationFrame(t),t=null)},n};var gx=e.i(30330);function gC(e,A){}gC.bind(null,"warn");let gb=gC.bind(null,"error");function gv(){}function gQ(e,A,t){let n=A.map(A=>{var n;let r=(n=A.options,{...t,...n});return e.addEventListener(A.eventName,A.fn,r),function(){e.removeEventListener(A.eventName,A.fn,r)}});return function(){n.forEach(e=>{e()})}}class gF extends Error{}function gU(e,A){throw new gF("Invariant failed")}gF.prototype.toString=function(){return this.message};class gE extends fy.default.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=gv,this.onWindowError=e=>{let A=this.getCallbacks();A.isDragging()&&A.tryAbort(),e.error instanceof gF&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=gQ(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(e instanceof gF)return void this.setState({});throw e}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}let gI=`
|
|
53
|
+
Press space bar to start a drag.
|
|
54
|
+
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
55
|
+
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
56
|
+
`,gS=(e,A)=>{let t=e.droppableId===A.droppableId,n=e.index+1,r=A.index+1;return t?`
|
|
57
|
+
You have moved the item from position ${n}
|
|
58
|
+
to position ${r}
|
|
59
|
+
`:`
|
|
60
|
+
You have moved the item from position ${n}
|
|
61
|
+
in list ${e.droppableId}
|
|
62
|
+
to list ${A.droppableId}
|
|
63
|
+
in position ${r}
|
|
64
|
+
`},gk=(e,A,t)=>A.droppableId===t.droppableId?`
|
|
65
|
+
The item ${e}
|
|
66
|
+
has been combined with ${t.draggableId}`:`
|
|
67
|
+
The item ${e}
|
|
68
|
+
in list ${A.droppableId}
|
|
69
|
+
has been combined with ${t.draggableId}
|
|
70
|
+
in list ${t.droppableId}
|
|
71
|
+
`,gj=e=>`
|
|
72
|
+
The item has returned to its starting position
|
|
73
|
+
of ${e.index+1}
|
|
74
|
+
`,gH=e=>`
|
|
75
|
+
You have lifted an item in position ${e.source.index+1}
|
|
76
|
+
`,gD=e=>{let A=e.destination;if(A)return gS(e.source,A);let t=e.combine;return t?gk(e.draggableId,e.source,t):"You are over an area that cannot be dropped on"},gL=e=>{if("CANCEL"===e.reason)return`
|
|
77
|
+
Movement cancelled.
|
|
78
|
+
${gj(e.source)}
|
|
79
|
+
`;let A=e.destination,t=e.combine;return A?`
|
|
80
|
+
You have dropped the item.
|
|
81
|
+
${gS(e.source,A)}
|
|
82
|
+
`:t?`
|
|
83
|
+
You have dropped the item.
|
|
84
|
+
${gk(e.draggableId,e.source,t)}
|
|
85
|
+
`:`
|
|
86
|
+
The item has been dropped while not over a drop area.
|
|
87
|
+
${gj(e.source)}
|
|
88
|
+
`};function gR(e,A){if(e.length!==A.length)return!1;for(let r=0;r<e.length;r++){var t,n;if(!((t=e[r])===(n=A[r])||Number.isNaN(t)&&Number.isNaN(n))&&1)return!1}return!0}function gT(e,A){let t=(0,fy.useState)(()=>({inputs:A,result:e()}))[0],n=(0,fy.useRef)(!0),r=(0,fy.useRef)(t),i=n.current||A&&r.current.inputs&&gR(A,r.current.inputs)?r.current:{inputs:A,result:e()};return(0,fy.useEffect)(()=>{n.current=!1,r.current=i},[i]),i.result}function gM(e,A){return gT(()=>e,A)}let gO={x:0,y:0},gN=(e,A)=>({x:e.x+A.x,y:e.y+A.y}),gP=(e,A)=>({x:e.x-A.x,y:e.y-A.y}),g_=(e,A)=>e.x===A.x&&e.y===A.y,gK=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),gV=(e,A,t=0)=>"x"===e?{x:A,y:t}:{x:t,y:A},gG=(e,A)=>Math.sqrt((A.x-e.x)**2+(A.y-e.y)**2),gz=(e,A)=>Math.min(...A.map(A=>gG(e,A))),gW=e=>A=>({x:e(A.x),y:e(A.y)}),g$=(e,A)=>({top:e.top+A.y,left:e.left+A.x,bottom:e.bottom+A.y,right:e.right+A.x}),gX=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}];var gY=({page:e,withPlaceholder:A,axis:t,frame:n})=>{var r,i;let o=((e,A)=>{if(A&&A.shouldClipSubject){var t;let n;return t=A.pageMarginBox,(n=gc({top:Math.max(e.top,t.top),right:Math.min(e.right,t.right),bottom:Math.min(e.bottom,t.bottom),left:Math.max(e.left,t.left)})).width<=0||n.height<=0?null:n}return gc(e)})((r=e.marginBox,i=n?g$(r,n.scroll.diff.displacement):r,A&&A.increasedBy?{...i,[t.end]:i[t.end]+A.increasedBy[t.line]}:i),n);return{page:e,withPlaceholder:A,active:o}},gJ=(e,A)=>{e.frame||gU();let t=e.frame,n=gP(A,t.scroll.initial),r=gK(n),i={...t,scroll:{initial:t.scroll.initial,current:A,diff:{value:n,displacement:r},max:t.scroll.max}},o=gY({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:o}};function gq(e,A=gR){let t=null;function n(...r){if(t&&t.lastThis===this&&A(r,t.lastArgs))return t.lastResult;let i=e.apply(this,r);return t={lastResult:i,lastArgs:r,lastThis:this},i}return n.clear=function(){t=null},n}let gZ=gq(e=>e.reduce((e,A)=>(e[A.descriptor.id]=A,e),{})),g0=gq(e=>e.reduce((e,A)=>(e[A.descriptor.id]=A,e),{})),g1=gq(e=>Object.values(e)),g2=gq(e=>Object.values(e));var g4=gq((e,A)=>g2(A).filter(A=>e===A.descriptor.droppableId).sort((e,A)=>e.descriptor.index-A.descriptor.index));function g3(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function g5(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var g6=gq((e,A)=>A.filter(A=>A.descriptor.id!==e.descriptor.id)),g8=(e,A)=>e.descriptor.droppableId===A.descriptor.id;let g7={point:gO,value:0},g9={invisible:{},visible:{},all:[]},pe={displaced:g9,displacedBy:g7,at:null};var pA=(e,A)=>t=>e<=t&&t<=A,pt=e=>{let A=pA(e.top,e.bottom),t=pA(e.left,e.right);return n=>{if(A(n.top)&&A(n.bottom)&&t(n.left)&&t(n.right))return!0;let r=A(n.top)||A(n.bottom),i=t(n.left)||t(n.right);if(r&&i)return!0;let o=n.top<e.top&&n.bottom>e.bottom,s=n.left<e.left&&n.right>e.right;return!!o&&!!s||o&&i||s&&r}},pn=e=>{let A=pA(e.top,e.bottom),t=pA(e.left,e.right);return e=>A(e.top)&&A(e.bottom)&&t(e.left)&&t(e.right)};let pr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},pi={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},po=({target:e,destination:A,viewport:t,withDroppableDisplacement:n,isVisibleThroughFrameFn:r})=>{let i=n?g$(e,A.frame?A.frame.scroll.diff.displacement:gO):e;return!!A.subject.active&&r(A.subject.active)(i)&&r(t)(i)},ps=e=>po({...e,isVisibleThroughFrameFn:pn});function pa({afterDragging:e,destination:A,displacedBy:t,viewport:n,forceShouldAnimate:r,last:i}){return e.reduce(function(e,o){let s=gc(gu(o.page.marginBox,{top:t.point.y,right:0,bottom:0,left:t.point.x})),a=o.descriptor.id;if(e.all.push(a),!po({target:s,destination:A,viewport:n,withDroppableDisplacement:!0,isVisibleThroughFrameFn:pt}))return e.invisible[o.descriptor.id]=!0,e;let l=((e,A,t)=>{if("boolean"==typeof t)return t;if(!A)return!0;let{invisible:n,visible:r}=A;if(n[e])return!1;let i=r[e];return!i||i.shouldAnimate})(a,i,r);return e.visible[a]={draggableId:a,shouldAnimate:l},e},{all:[],visible:{},invisible:{}})}function pl({insideDestination:e,inHomeList:A,displacedBy:t,destination:n}){let r=function(e,A){if(!e.length)return 0;let t=e[e.length-1].descriptor.index;return A.inHomeList?t:t+1}(e,{inHomeList:A});return{displaced:g9,displacedBy:t,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:r}}}}function pc({draggable:e,insideDestination:A,destination:t,viewport:n,displacedBy:r,last:i,index:o,forceShouldAnimate:s}){let a=g8(e,t);if(null==o)return pl({insideDestination:A,inHomeList:a,displacedBy:r,destination:t});let l=A.find(e=>e.descriptor.index===o);if(!l)return pl({insideDestination:A,inHomeList:a,displacedBy:r,destination:t});let c=g6(e,A),u=A.indexOf(l);return{displaced:pa({afterDragging:c.slice(u),destination:t,displacedBy:r,last:i,viewport:n.frame,forceShouldAnimate:s}),displacedBy:r,at:{type:"REORDER",destination:{droppableId:t.descriptor.id,index:o}}}}function pu(e,A){return!!A.effected[e]}let pd=(e,A)=>A.margin[e.start]+A.borderBox[e.size]/2,ph=(e,A,t)=>A[e.crossAxisStart]+t.margin[e.crossAxisStart]+t.borderBox[e.crossAxisSize]/2,pf=({axis:e,moveRelativeTo:A,isMoving:t})=>gV(e.line,A.marginBox[e.end]+pd(e,t),ph(e,A.marginBox,t)),pg=({axis:e,moveRelativeTo:A,isMoving:t})=>gV(e.line,A.marginBox[e.start]-(t.margin[e.end]+t.borderBox[e.size]/2),ph(e,A.marginBox,t));var pp=(e,A)=>{let t=e.frame;return t?gN(A,t.scroll.diff.displacement):A},pB=e=>{let A=(({impact:e,draggable:A,droppable:t,draggables:n,afterCritical:r})=>{let i=A.page.borderBox.center,o=e.at;return t&&o?"REORDER"===o.type?(({impact:e,draggable:A,draggables:t,droppable:n,afterCritical:r})=>{let i=g4(n.descriptor.id,t),o=A.page,s=n.axis;if(!i.length)return(({axis:e,moveInto:A,isMoving:t})=>gV(e.line,A.contentBox[e.start]+pd(e,t),ph(e,A.contentBox,t)))({axis:s,moveInto:n.page,isMoving:o});let{displaced:a,displacedBy:l}=e,c=a.all[0];if(c){let e=t[c];return pu(c,r)?pg({axis:s,moveRelativeTo:e.page,isMoving:o}):pg({axis:s,moveRelativeTo:gp(e.page,l.point),isMoving:o})}let u=i[i.length-1];return u.descriptor.id===A.descriptor.id?o.borderBox.center:pu(u.descriptor.id,r)?pf({axis:s,moveRelativeTo:gp(u.page,gK(r.displacedBy.point)),isMoving:o}):pf({axis:s,moveRelativeTo:u.page,isMoving:o})})({impact:e,draggable:A,draggables:n,droppable:t,afterCritical:r}):(({afterCritical:e,impact:A,draggables:t})=>{let n=g5(A);n||gU();let r=n.draggableId;return gN(t[r].page.borderBox.center,(({displaced:e,afterCritical:A,combineWith:t,displacedBy:n})=>{let r=!!(e.visible[t]||e.invisible[t]);return pu(t,A)?r?gO:gK(n.point):r?n.point:gO})({displaced:A.displaced,afterCritical:e,combineWith:r,displacedBy:A.displacedBy}))})({impact:e,draggables:n,afterCritical:r}):i})(e),t=e.droppable;return t?pp(t,A):A},pm=(e,A)=>{let t=gP(A,e.scroll.initial),n=gK(t);return{frame:gc({top:A.y,bottom:A.y+e.frame.height,left:A.x,right:A.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:A,diff:{value:t,displacement:n}}}};function pw(e,A){return e.map(e=>A[e])}var py=({pageBorderBoxCenter:e,draggable:A,viewport:t})=>{let n=gP(gN(t.scroll.diff.displacement,e),A.page.borderBox.center);return gN(A.client.borderBox.center,n)},px=({draggable:e,destination:A,newPageBorderBoxCenter:t,viewport:n,withDroppableDisplacement:r,onlyOnMainAxis:i=!1})=>{let o,s=gP(t,e.page.borderBox.center),a={target:g$(e.page.borderBox,s),destination:A,withDroppableDisplacement:r,viewport:n};return i?po({...a,isVisibleThroughFrameFn:(o=a.destination.axis,e=>{let A=pA(e.top,e.bottom),t=pA(e.left,e.right);return e=>o===pr?A(e.top)&&A(e.bottom):t(e.left)&&t(e.right)})}):ps(a)};let pC=e=>{let A=e.subject.active;return A||gU(),A},pb=(e,A)=>{let t=e.page.borderBox.center;return pu(e.descriptor.id,A)?gP(t,A.displacedBy.point):t};var pv=gq(function(e,A){let t=A[e.line];return{value:t,point:gV(e.line,t)}});let pQ=(e,A)=>({...e,scroll:{...e.scroll,max:A}}),pF=(e,A,t)=>{let n=e.frame;g8(A,e)&&gU(),e.subject.withPlaceholder&&gU();let r=pv(e.axis,A.displaceBy).point,i=((e,A,t)=>{let n=e.axis;if("virtual"===e.descriptor.mode)return gV(n.line,A[n.line]);let r=e.subject.page.contentBox[n.size],i=g4(e.descriptor.id,t).reduce((e,A)=>e+A.client.marginBox[n.size],0)+A[n.line]-r;return i<=0?null:gV(n.line,i)})(e,r,t),o={placeholderSize:r,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){let A=gY({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame});return{...e,subject:A}}let s=i?gN(n.scroll.max,i):n.scroll.max,a=pQ(n,s),l=gY({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:a});return{...e,subject:l,frame:a}};var pU=e=>{let A=e.at;return A?"REORDER"===A.type?A.destination.droppableId:A.combine.droppableId:null};function pE(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function pI(e){let A=pA(e.top,e.bottom),t=pA(e.left,e.right);return function(e){return A(e.y)&&t(e.x)}}function pS({displaced:e,id:A}){return!!(e.visible[A]||e.invisible[A])}var pk=({pageOffset:e,draggable:A,draggables:t,droppables:n,previousImpact:r,viewport:i,afterCritical:o})=>{var s,a;let l,c=gc(g$(A.page.borderBox,e)),u=function({pageBorderBox:e,draggable:A,droppables:t}){let n=g1(t).filter(A=>{if(!A.isEnabled)return!1;let t=A.subject.active;if(!t||!(e.left<t.right)||!(e.right>t.left)||!(e.top<t.bottom)||!(e.bottom>t.top))return!1;if(pI(t)(e.center))return!0;let n=A.axis,r=t.center[n.crossAxisLine],i=e[n.crossAxisStart],o=e[n.crossAxisEnd],s=pA(t[n.crossAxisStart],t[n.crossAxisEnd]),a=s(i),l=s(o);return!a&&!l||(a?i<r:o>r)});return n.length?1===n.length?n[0].descriptor.id:function({pageBorderBox:e,draggable:A,candidates:t}){let n=A.page.borderBox.center,r=t.map(A=>{let t=A.axis,r=gV(A.axis.line,e.center[t.line],A.page.borderBox.center[t.crossAxisLine]);return{id:A.descriptor.id,distance:gG(n,r)}}).sort((e,A)=>A.distance-e.distance);return r[0]?r[0].id:null}({pageBorderBox:e,draggable:A,candidates:n}):null}({pageBorderBox:c,draggable:A,droppables:n});if(!u)return pe;let d=n[u],h=g4(d.descriptor.id,t),f=(s=d,a=c,(l=s.frame)?gc(g$(a,l.scroll.diff.value)):a);return(({draggable:e,pageBorderBoxWithDroppableScroll:A,previousImpact:t,destination:n,insideDestination:r,afterCritical:i})=>{if(!n.isCombineEnabled)return null;let o=n.axis,s=pv(n.axis,e.displaceBy),a=s.value,l=A[o.start],c=A[o.end],u=g6(e,r).find(e=>{let A=e.descriptor.id,n=e.page.borderBox,r=n[o.size]/4,s=pu(A,i),u=pS({displaced:t.displaced,id:A});return s?u?c>n[o.start]+r&&c<n[o.end]-r:l>n[o.start]-a+r&&l<n[o.end]-a-r:u?c>n[o.start]+a+r&&c<n[o.end]+a-r:l>n[o.start]+r&&l<n[o.end]-r});return u?{displacedBy:s,displaced:t.displaced,at:{type:"COMBINE",combine:{draggableId:u.descriptor.id,droppableId:n.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:f,draggable:A,previousImpact:r,destination:d,insideDestination:h,afterCritical:o})||(({pageBorderBoxWithDroppableScroll:e,draggable:A,destination:t,insideDestination:n,last:r,viewport:i,afterCritical:o})=>{let s=t.axis,a=pv(t.axis,A.displaceBy),l=a.value,c=e[s.start],u=e[s.end],d=g6(A,n).find(e=>{let A=e.descriptor.id,t=e.page.borderBox.center[s.line],n=pu(A,o),i=pS({displaced:r,id:A});return n?i?u<=t:c<t-l:i?u<=t+l:c<t})||null,h=function({draggable:e,closest:A,inHomeList:t}){return A?t&&A.descriptor.index>e.descriptor.index?A.descriptor.index-1:A.descriptor.index:null}({draggable:A,closest:d,inHomeList:g8(A,t)});return pc({draggable:A,insideDestination:n,destination:t,viewport:i,last:r,displacedBy:a,index:h})})({pageBorderBoxWithDroppableScroll:f,draggable:A,destination:d,insideDestination:h,last:r.displaced,viewport:i,afterCritical:o})},pj=(e,A)=>({...e,[A.descriptor.id]:A}),pH=({state:e,clientSelection:A,dimensions:t,viewport:n,impact:r,scrollJumpRequest:i})=>{let o=n||e.viewport,s=t||e.dimensions,a=A||e.current.client.selection,l=gP(a,e.initial.client.selection),c={offset:l,selection:a,borderBoxCenter:gN(e.initial.client.borderBoxCenter,l)},u={selection:gN(c.selection,o.scroll.current),borderBoxCenter:gN(c.borderBoxCenter,o.scroll.current),offset:gN(c.offset,o.scroll.diff.value)},d={client:c,page:u};if("COLLECTING"===e.phase)return{...e,dimensions:s,viewport:o,current:d};let h=s.draggables[e.critical.draggable.id],f=r||pk({pageOffset:u.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:o,afterCritical:e.afterCritical}),g=(({draggable:e,draggables:A,droppables:t,previousImpact:n,impact:r})=>{let i=(({previousImpact:e,impact:A,droppables:t})=>{let n=pU(e),r=pU(A);if(!n||n===r)return t;let i=t[n];return i.subject.withPlaceholder?pj(t,(e=>{let A=e.subject.withPlaceholder;A||gU();let t=e.frame;if(!t){let A=gY({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:A}}let n=A.oldFrameMaxScroll;n||gU();let r=pQ(t,n),i=gY({page:e.subject.page,axis:e.axis,frame:r,withPlaceholder:null});return{...e,subject:i,frame:r}})(i)):t})({previousImpact:n,impact:r,droppables:t}),o=pU(r);if(!o)return i;let s=t[o];return g8(e,s)||s.subject.withPlaceholder?i:pj(i,pF(s,e,A))})({draggable:h,impact:f,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:d,dimensions:{draggables:s.draggables,droppables:g},impact:f,viewport:o,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null}},pD=({impact:e,viewport:A,draggables:t,destination:n,forceShouldAnimate:r})=>{var i;let o=e.displaced,s=pa({afterDragging:(i=o.all,i.map(e=>t[e])),destination:n,displacedBy:e.displacedBy,viewport:A.frame,forceShouldAnimate:r,last:o});return{...e,displaced:s}},pL=({impact:e,draggable:A,droppable:t,draggables:n,viewport:r,afterCritical:i})=>py({pageBorderBoxCenter:pB({impact:e,draggable:A,draggables:n,droppable:t,afterCritical:i}),draggable:A,viewport:r}),pR=({state:e,dimensions:A,viewport:t})=>{"SNAP"!==e.movementMode&&gU();let n=e.impact,r=t||e.viewport,i=A||e.dimensions,{draggables:o,droppables:s}=i,a=o[e.critical.draggable.id],l=pU(n);l||gU();let c=s[l],u=pD({impact:n,viewport:r,destination:c,draggables:o}),d=pL({impact:u,draggable:a,droppable:c,draggables:o,viewport:r,afterCritical:e.afterCritical});return pH({impact:u,clientSelection:d,state:e,dimensions:i,viewport:r})},pT=({draggable:e,home:A,draggables:t,viewport:n})=>{let r,i=pv(A.axis,e.displaceBy),o=g4(A.descriptor.id,t),s=o.indexOf(e);-1===s&&gU();let a=o.slice(s+1),l=a.reduce((e,A)=>(e[A.descriptor.id]=!0,e),{}),c={inVirtualList:"virtual"===A.descriptor.mode,displacedBy:i,effected:l};return{impact:{displaced:pa({afterDragging:a,destination:A,displacedBy:i,last:null,viewport:n.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:{index:(r=e.descriptor).index,droppableId:r.droppableId}}},afterCritical:c}};let pM=e=>{},pO=e=>{},pN=(e,A,t)=>{let n,r=(n=e.dimensions,{draggables:n.draggables,droppables:pj(n.droppables,A)});return"SNAP"!==e.movementMode||t?pH({state:e,dimensions:r}):pR({state:e,dimensions:r})};function pP(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}let p_={phase:"IDLE",completed:null,shouldFlush:!1};var pK=(e=p_,A)=>{if("FLUSH"===A.type)return{...p_,shouldFlush:!0};if("INITIAL_PUBLISH"===A.type){"IDLE"!==e.phase&&gU();let{critical:t,clientSelection:n,viewport:r,dimensions:i,movementMode:o}=A.payload,s=i.draggables[t.draggable.id],a=i.droppables[t.droppable.id],l={selection:n,borderBoxCenter:s.client.borderBox.center,offset:gO},c={client:l,page:{selection:gN(l.selection,r.scroll.initial),borderBoxCenter:gN(l.selection,r.scroll.initial),offset:gN(l.selection,r.scroll.diff.value)}},u=g1(i.droppables).every(e=>!e.isFixedOnPage),{impact:d,afterCritical:h}=pT({draggable:s,home:a,draggables:i.draggables,viewport:r});return{phase:"DRAGGING",isDragging:!0,critical:t,movementMode:o,dimensions:i,initial:c,current:c,isWindowScrollAllowed:u,impact:d,afterCritical:h,onLiftImpact:d,viewport:r,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===A.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&gU(),{...e,phase:"COLLECTING"});if("PUBLISH_WHILE_DRAGGING"===A.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&gU(),(({state:e,published:A})=>{pM();let t=A.modified.map(A=>gJ(e.dimensions.droppables[A.droppableId],A.scroll)),n={...e.dimensions.droppables,...gZ(t)},r=g0((({additions:e,updatedDroppables:A,viewport:t})=>{let n=t.scroll.diff.value;return e.map(e=>{let r,i=gN(n,((r=A[e.descriptor.droppableId].frame)||gU(),r).scroll.diff.value);return(({draggable:e,offset:A,initialWindowScroll:t})=>{let n=gp(e.client,A),r=gB(n,t);return{...e,placeholder:{...e.placeholder,client:n},client:n,page:r}})({draggable:e,offset:i,initialWindowScroll:t.scroll.initial})})})({additions:A.additions,updatedDroppables:n,viewport:e.viewport})),i={...e.dimensions.draggables,...r};A.removals.forEach(e=>{delete i[e]});let o={droppables:n,draggables:i},s=pU(e.impact),a=s?o.droppables[s]:null,{impact:l,afterCritical:c}=pT({draggable:o.draggables[e.critical.draggable.id],home:o.droppables[e.critical.droppable.id],draggables:i,viewport:e.viewport}),u=a&&a.isCombineEnabled?e.impact:l,d=pk({pageOffset:e.current.page.offset,draggable:o.draggables[e.critical.draggable.id],draggables:o.draggables,droppables:o.droppables,previousImpact:u,viewport:e.viewport,afterCritical:c});pO();let h={...e,phase:"DRAGGING",impact:d,onLiftImpact:l,dimensions:o,afterCritical:c,forceShouldAnimate:!1};return"COLLECTING"===e.phase?h:{...h,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}})({state:e,published:A.payload});if("MOVE"===A.type){if("DROP_PENDING"===e.phase)return e;pE(e)||gU();let{client:t}=A.payload;return g_(t,e.current.client.selection)?e:pH({state:e,clientSelection:t,impact:"SNAP"===e.movementMode?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===A.type){if("DROP_PENDING"===e.phase||"COLLECTING"===e.phase)return pP(e);pE(e)||gU();let{id:t,newScroll:n}=A.payload,r=e.dimensions.droppables[t];return r?pN(e,gJ(r,n),!1):e}if("UPDATE_DROPPABLE_IS_ENABLED"===A.type){if("DROP_PENDING"===e.phase)return e;pE(e)||gU();let{id:t,isEnabled:n}=A.payload,r=e.dimensions.droppables[t];return r||gU(),r.isEnabled===n&&gU(),pN(e,{...r,isEnabled:n},!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===A.type){if("DROP_PENDING"===e.phase)return e;pE(e)||gU();let{id:t,isCombineEnabled:n}=A.payload,r=e.dimensions.droppables[t];return r||gU(),r.isCombineEnabled===n&&gU(),pN(e,{...r,isCombineEnabled:n},!0)}if("MOVE_BY_WINDOW_SCROLL"===A.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;pE(e)||gU(),e.isWindowScrollAllowed||gU();let t=A.payload.newScroll;if(g_(e.viewport.scroll.current,t))return pP(e);let n=pm(e.viewport,t);return"SNAP"===e.movementMode?pR({state:e,viewport:n}):pH({state:e,viewport:n})}if("UPDATE_VIEWPORT_MAX_SCROLL"===A.type){if(!pE(e))return e;let t=A.payload.maxScroll;if(g_(t,e.viewport.scroll.max))return e;let n={...e.viewport,scroll:{...e.viewport.scroll,max:t}};return{...e,viewport:n}}if("MOVE_UP"===A.type||"MOVE_DOWN"===A.type||"MOVE_LEFT"===A.type||"MOVE_RIGHT"===A.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&gU();let t=(({state:e,type:A})=>{var t,n;let r,i=(t=e.impact,n=e.dimensions.droppables,(r=pU(t))?n[r]:null),o=!!i,s=e.dimensions.droppables[e.critical.droppable.id],a=i||s,l=a.axis.direction,c="vertical"===l&&("MOVE_UP"===A||"MOVE_DOWN"===A)||"horizontal"===l&&("MOVE_LEFT"===A||"MOVE_RIGHT"===A);if(c&&!o)return null;let u="MOVE_DOWN"===A||"MOVE_RIGHT"===A,d=e.dimensions.draggables[e.critical.draggable.id],h=e.current.page.borderBoxCenter,{draggables:f,droppables:g}=e.dimensions;return c?(({isMovingForward:e,draggable:A,destination:t,draggables:n,previousImpact:r,viewport:i,previousPageBorderBoxCenter:o,previousClientSelection:s,afterCritical:a})=>{if(!t.isEnabled)return null;let l=g4(t.descriptor.id,n),c=g8(A,t),u=(({isMovingForward:e,draggable:A,destination:t,insideDestination:n,previousImpact:r})=>{if(!t.isCombineEnabled||!g3(r))return null;function i(e){let A={type:"COMBINE",combine:{draggableId:e,droppableId:t.descriptor.id}};return{...r,at:A}}let o=r.displaced.all,s=o.length?o[0]:null;if(e)return s?i(s):null;let a=g6(A,n);if(!s)return a.length?i(a[a.length-1].descriptor.id):null;let l=a.findIndex(e=>e.descriptor.id===s);-1===l&&gU();let c=l-1;return c<0?null:i(a[c].descriptor.id)})({isMovingForward:e,draggable:A,destination:t,insideDestination:l,previousImpact:r})||(({isMovingForward:e,isInHomeList:A,draggable:t,draggables:n,destination:r,insideDestination:i,previousImpact:o,viewport:s,afterCritical:a})=>{let l=o.at;if(l||gU(),"REORDER"===l.type){let n=(({isMovingForward:e,isInHomeList:A,insideDestination:t,location:n})=>{if(!t.length)return null;let r=n.index,i=e?r+1:r-1,o=t[0].descriptor.index,s=t[t.length-1].descriptor.index;return i<o||i>(A?s:s+1)?null:i})({isMovingForward:e,isInHomeList:A,location:l.destination,insideDestination:i});return null==n?null:pc({draggable:t,insideDestination:i,destination:r,viewport:s,last:o.displaced,displacedBy:o.displacedBy,index:n})}let c=(({isMovingForward:e,destination:A,draggables:t,combine:n,afterCritical:r})=>{if(!A.isCombineEnabled)return null;let i=n.draggableId,o=t[i].descriptor.index;return pu(i,r)?e?o:o-1:e?o+1:o})({isMovingForward:e,destination:r,displaced:o.displaced,draggables:n,combine:l.combine,afterCritical:a});return null==c?null:pc({draggable:t,insideDestination:i,destination:r,viewport:s,last:o.displaced,displacedBy:o.displacedBy,index:c})})({isMovingForward:e,isInHomeList:c,draggable:A,draggables:n,destination:t,insideDestination:l,previousImpact:r,viewport:i,afterCritical:a});if(!u)return null;let d=pB({impact:u,draggable:A,droppable:t,draggables:n,afterCritical:a});if(px({draggable:A,destination:t,newPageBorderBoxCenter:d,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:py({pageBorderBoxCenter:d,draggable:A,viewport:i}),impact:u,scrollJumpRequest:null};let h=gP(d,o),f=(({impact:e,viewport:A,destination:t,draggables:n,maxScrollChange:r})=>{let i=pm(A,gN(A.scroll.current,r)),o=t.frame?gJ(t,gN(t.frame.scroll.current,r)):t,s=e.displaced,a=pa({afterDragging:pw(s.all,n),destination:t,displacedBy:e.displacedBy,viewport:i.frame,last:s,forceShouldAnimate:!1}),l=pa({afterDragging:pw(s.all,n),destination:o,displacedBy:e.displacedBy,viewport:A.frame,last:s,forceShouldAnimate:!1}),c={},u={},d=[s,a,l];return s.all.forEach(e=>{let A=function(e,A){for(let t=0;t<A.length;t++){let n=A[t].visible[e];if(n)return n}return null}(e,d);if(A){u[e]=A;return}c[e]=!0}),{...e,displaced:{all:s.all,invisible:c,visible:u}}})({impact:u,viewport:i,destination:t,draggables:n,maxScrollChange:h});return{clientSelection:s,impact:f,scrollJumpRequest:h}})({isMovingForward:u,previousPageBorderBoxCenter:h,draggable:d,destination:a,draggables:f,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):(({isMovingForward:e,previousPageBorderBoxCenter:A,draggable:t,isOver:n,draggables:r,droppables:i,viewport:o,afterCritical:s})=>{let a=(({isMovingForward:e,pageBorderBoxCenter:A,source:t,droppables:n,viewport:r})=>{let i=t.subject.active;if(!i)return null;let o=t.axis,s=pA(i[o.start],i[o.end]),a=g1(n).filter(e=>e!==t).filter(e=>e.isEnabled).filter(e=>!!e.subject.active).filter(e=>pt(r.frame)(pC(e))).filter(A=>{let t=pC(A);return e?i[o.crossAxisEnd]<t[o.crossAxisEnd]:t[o.crossAxisStart]<i[o.crossAxisStart]}).filter(e=>{let A=pC(e),t=pA(A[o.start],A[o.end]);return s(A[o.start])||s(A[o.end])||t(i[o.start])||t(i[o.end])}).sort((A,t)=>{let n=pC(A)[o.crossAxisStart],r=pC(t)[o.crossAxisStart];return e?n-r:r-n}).filter((e,A,t)=>pC(e)[o.crossAxisStart]===pC(t[0])[o.crossAxisStart]);if(!a.length)return null;if(1===a.length)return a[0];let l=a.filter(e=>pA(pC(e)[o.start],pC(e)[o.end])(A[o.line]));return 1===l.length?l[0]:l.length>1?l.sort((e,A)=>pC(e)[o.start]-pC(A)[o.start])[0]:a.sort((e,t)=>{let n=gz(A,gX(pC(e))),r=gz(A,gX(pC(t)));return n!==r?n-r:pC(e)[o.start]-pC(t)[o.start]})[0]})({isMovingForward:e,pageBorderBoxCenter:A,source:n,droppables:i,viewport:o});if(!a)return null;let l=g4(a.descriptor.id,r),c=(({pageBorderBoxCenter:e,viewport:A,destination:t,insideDestination:n,afterCritical:r})=>n.filter(e=>{let n;return ps({target:(n=e.page.borderBox,pu(e.descriptor.id,r)?g$(n,gK(r.displacedBy.point)):n),destination:t,viewport:A.frame,withDroppableDisplacement:!0})}).sort((A,n)=>{let i=gG(e,pp(t,pb(A,r))),o=gG(e,pp(t,pb(n,r)));return i<o?-1:o<i?1:A.descriptor.index-n.descriptor.index})[0]||null)({pageBorderBoxCenter:A,viewport:o,destination:a,insideDestination:l,afterCritical:s}),u=(({previousPageBorderBoxCenter:e,moveRelativeTo:A,insideDestination:t,draggable:n,draggables:r,destination:i,viewport:o,afterCritical:s})=>{let a;if(!A){if(t.length)return null;let e={displaced:g9,displacedBy:g7,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},A=pB({impact:e,draggable:n,droppable:i,draggables:r,afterCritical:s}),a=g8(n,i)?i:pF(i,n,r);return px({draggable:n,destination:a,newPageBorderBoxCenter:A,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}let l=e[i.axis.line]<=A.page.borderBox.center[i.axis.line],c=(a=A.descriptor.index,A.descriptor.id===n.descriptor.id||l?a:a+1),u=pv(i.axis,n.displaceBy);return pc({draggable:n,insideDestination:t,destination:i,viewport:o,displacedBy:u,last:g9,index:c})})({previousPageBorderBoxCenter:A,destination:a,draggable:t,draggables:r,moveRelativeTo:c,insideDestination:l,viewport:o,afterCritical:s});return u?{clientSelection:py({pageBorderBoxCenter:pB({impact:u,draggable:t,droppable:a,draggables:r,afterCritical:s}),draggable:t,viewport:o}),impact:u,scrollJumpRequest:null}:null})({isMovingForward:u,previousPageBorderBoxCenter:h,draggable:d,isOver:a,draggables:f,droppables:g,viewport:e.viewport,afterCritical:e.afterCritical})})({state:e,type:A.type});return t?pH({state:e,impact:t.impact,clientSelection:t.clientSelection,scrollJumpRequest:t.scrollJumpRequest}):e}if("DROP_PENDING"===A.type){let t=A.payload.reason;return"COLLECTING"!==e.phase&&gU(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:t}}if("DROP_ANIMATE"===A.type){let{completed:t,dropDuration:n,newHomeClientOffset:r}=A.payload;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&gU(),{phase:"DROP_ANIMATING",completed:t,dropDuration:n,newHomeClientOffset:r,dimensions:e.dimensions}}if("DROP_COMPLETE"===A.type){let{completed:e}=A.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};function pV(e,A){return e instanceof Object&&"type"in e&&e.type===A}let pG=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),pz=()=>({type:"COLLECTION_STARTING",payload:null}),pW=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),p$=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),pX=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),pY=e=>({type:"MOVE",payload:e}),pJ=()=>({type:"MOVE_UP",payload:null}),pq=()=>({type:"MOVE_DOWN",payload:null}),pZ=()=>({type:"MOVE_RIGHT",payload:null}),p0=()=>({type:"MOVE_LEFT",payload:null}),p1=()=>({type:"FLUSH",payload:null}),p2=e=>({type:"DROP_COMPLETE",payload:e}),p4=e=>({type:"DROP",payload:e}),p3=()=>({type:"DROP_ANIMATION_FINISHED",payload:null}),p5="cubic-bezier(.2,1,.1,1)",p6=0,p8=.7,p7=.75,p9={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Be=`${p9.outOfTheWay}s cubic-bezier(0.2, 0, 0, 1)`,BA={fluid:`opacity ${Be}`,snap:`transform ${Be}, opacity ${Be}`,drop:e=>{let A=`${e}s ${p5}`;return`transform ${A}, opacity ${A}`},outOfTheWay:`transform ${Be}`,placeholder:`height ${Be}, width ${Be}, margin ${Be}`},Bt=e=>g_(e,gO)?void 0:`translate(${e.x}px, ${e.y}px)`,{minDropTime:Bn,maxDropTime:Br}=p9,Bi=Br-Bn,Bo=({getState:e,dispatch:A})=>t=>n=>{if(!pV(n,"DROP"))return void t(n);let r=e(),i=n.payload.reason;if("COLLECTING"===r.phase)return void A({type:"DROP_PENDING",payload:{reason:i}});if("IDLE"===r.phase)return;"DROP_PENDING"===r.phase&&r.isWaiting&&gU(),"DRAGGING"!==r.phase&&"DROP_PENDING"!==r.phase&&gU();let o=r.critical,s=r.dimensions,a=s.draggables[r.critical.draggable.id],{impact:l,didDropInsideDroppable:c}=(({draggables:e,reason:A,lastImpact:t,home:n,viewport:r,onLiftImpact:i})=>t.at&&"DROP"===A?"REORDER"===t.at.type?{impact:t,didDropInsideDroppable:!0}:{impact:{...t,displaced:g9},didDropInsideDroppable:!0}:{impact:pD({draggables:e,impact:i,destination:n,viewport:r,forceShouldAnimate:!0}),didDropInsideDroppable:!1})({reason:i,lastImpact:r.impact,afterCritical:r.afterCritical,onLiftImpact:r.onLiftImpact,home:r.dimensions.droppables[r.critical.droppable.id],viewport:r.viewport,draggables:r.dimensions.draggables}),u=c?g3(l):null,d=c?g5(l):null,h={index:o.draggable.index,droppableId:o.droppable.id},f={draggableId:a.descriptor.id,type:a.descriptor.type,source:h,reason:i,mode:r.movementMode,destination:u,combine:d},g=(({impact:e,draggable:A,dimensions:t,viewport:n,afterCritical:r})=>{let{draggables:i,droppables:o}=t,s=pU(e),a=s?o[s]:null,l=o[A.descriptor.droppableId];return gP(pL({impact:e,draggable:A,draggables:i,afterCritical:r,droppable:a||l,viewport:n}),A.client.borderBox.center)})({impact:l,draggable:a,dimensions:s,viewport:r.viewport,afterCritical:r.afterCritical}),p={critical:r.critical,afterCritical:r.afterCritical,result:f,impact:l};if(!(!g_(r.current.client.offset,g)||f.combine))return void A(p2({completed:p}));let B=(({current:e,destination:A,reason:t})=>{let n=gG(e,A);if(n<=0)return Bn;if(n>=1500)return Br;let r=Bn+n/1500*Bi;return Number(("CANCEL"===t?.6*r:r).toFixed(2))})({current:r.current.client.offset,destination:g,reason:i});A({type:"DROP_ANIMATE",payload:{newHomeClientOffset:g,dropDuration:B,completed:p}})};var Bs=()=>({x:window.pageXOffset,y:window.pageYOffset});let Ba=e=>{let A=function({onWindowScroll:e}){let A=gy(function(){e(Bs())}),t={eventName:"scroll",options:{passive:!0,capture:!1},fn:e=>{(e.target===window||e.target===window.document)&&A()}},n=gv;function r(){return n!==gv}return{start:function(){r()&&gU(),n=gQ(window,[t])},stop:function(){r()||gU(),A.cancel(),n(),n=gv},isActive:r}}({onWindowScroll:A=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:A}})}});return e=>t=>{!A.isActive()&&pV(t,"INITIAL_PUBLISH")&&A.start(),A.isActive()&&(pV(t,"DROP_COMPLETE")||pV(t,"DROP_ANIMATE")||pV(t,"FLUSH"))&&A.stop(),e(t)}},Bl=(e,A)=>{pM(),A(),pO()},Bc=(e,A)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:A});function Bu(e,A,t,n){let r,i,o,s;if(!e)return void t(n(A));let a=(r=!1,i=!1,o=setTimeout(()=>{i=!0}),(s=e=>{r||i||(r=!0,t(e),clearTimeout(o))}).wasCalled=()=>r,s);e(A,{announce:a}),a.wasCalled()||t(n(A))}let Bd=e=>A=>t=>{if(!pV(t,"DROP_ANIMATION_FINISHED"))return void A(t);let n=e.getState();"DROP_ANIMATING"!==n.phase&&gU(),e.dispatch(p2({completed:n.completed}))},Bh=e=>{let A=null,t=null;return n=>r=>{if((pV(r,"FLUSH")||pV(r,"DROP_COMPLETE")||pV(r,"DROP_ANIMATION_FINISHED"))&&(t&&(cancelAnimationFrame(t),t=null),A&&(A(),A=null)),n(r),!pV(r,"DROP_ANIMATE"))return;let i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch(p3())}};t=requestAnimationFrame(()=>{t=null,A=gQ(window,[i])})}},Bf=e=>A=>t=>{if(A(t),!pV(t,"PUBLISH_WHILE_DRAGGING"))return;let n=e.getState();"DROP_PENDING"!==n.phase||n.isWaiting||e.dispatch(p4({reason:n.reason}))},Bg=()=>({additions:{},removals:{},modified:{}});var Bp=({scrollHeight:e,scrollWidth:A,height:t,width:n})=>{let r=gP({x:A,y:e},{x:n,y:t});return{x:Math.max(0,r.x),y:Math.max(0,r.y)}},BB=()=>{let e=document.documentElement;return e||gU(),e},Bm=()=>{let e=BB();return Bp({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function Bw(e,A,t){return t.descriptor.id!==A.id&&t.descriptor.type===A.type&&"virtual"===e.droppable.getById(t.descriptor.droppableId).descriptor.mode}var By=(e,A)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==A&&"DROP"===e.completed.result.reason,Bx=e=>{window.scrollBy(e.x,e.y)};let BC=gq(e=>g1(e).filter(e=>!!e.isEnabled&&!!e.frame)),Bb={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Bv=({startOfRange:e,endOfRange:A,current:t})=>{let n=A-e;return 0===n?0:(t-e)/n},BQ=({distanceToEdge:e,thresholds:A,dragStartTime:t,shouldUseTimeDampening:n,getAutoScrollerOptions:r})=>{let i=((e,A,t=()=>Bb)=>{let n=t();if(e>A.startScrollingFrom)return 0;if(e<=A.maxScrollValueAt)return n.maxPixelScroll;if(e===A.startScrollingFrom)return 1;let r=Bv({startOfRange:A.maxScrollValueAt,endOfRange:A.startScrollingFrom,current:e});return Math.ceil(n.maxPixelScroll*n.ease(1-r))})(e,A,r);return 0===i?0:n?Math.max(((e,A,t)=>{let n=t(),r=n.durationDampening.accelerateAt,i=n.durationDampening.stopDampeningAt,o=Date.now()-A;if(o>=i)return e;if(o<r)return 1;let s=Bv({startOfRange:r,endOfRange:i,current:o});return Math.ceil(e*n.ease(s))})(i,t,r),1):i},BF=({container:e,distanceToEdges:A,dragStartTime:t,axis:n,shouldUseTimeDampening:r,getAutoScrollerOptions:i})=>{let o=((e,A,t=()=>Bb)=>{let n=t(),r=e[A.size]*n.startFromPercentage;return{startScrollingFrom:r,maxScrollValueAt:e[A.size]*n.maxScrollAtPercentage}})(e,n,i);return A[n.end]<A[n.start]?BQ({distanceToEdge:A[n.end],thresholds:o,dragStartTime:t,shouldUseTimeDampening:r,getAutoScrollerOptions:i}):-1*BQ({distanceToEdge:A[n.start],thresholds:o,dragStartTime:t,shouldUseTimeDampening:r,getAutoScrollerOptions:i})};let BU=gW(e=>0===e?0:e);var BE=({dragStartTime:e,container:A,subject:t,center:n,shouldUseTimeDampening:r,getAutoScrollerOptions:i})=>{let o={top:n.y-A.top,right:A.right-n.x,bottom:A.bottom-n.y,left:n.x-A.left},s=BF({container:A,distanceToEdges:o,dragStartTime:e,axis:pr,shouldUseTimeDampening:r,getAutoScrollerOptions:i}),a=BU({x:BF({container:A,distanceToEdges:o,dragStartTime:e,axis:pi,shouldUseTimeDampening:r,getAutoScrollerOptions:i}),y:s});if(g_(a,gO))return null;let l=(({container:e,subject:A,proposedScroll:t})=>{let n=A.height>e.height,r=A.width>e.width;return r||n?r&&n?null:{x:r?0:t.x,y:n?0:t.y}:t})({container:A,subject:t,proposedScroll:a});return l?g_(l,gO)?null:l:null};let BI=gW(e=>0===e?0:e>0?1:-1),BS=(i=(e,A)=>e<0?e:e>A?e-A:0,({current:e,max:A,change:t})=>{let n=gN(e,t),r={x:i(n.x,A.x),y:i(n.y,A.y)};return g_(r,gO)?null:r}),Bk=({max:e,current:A,change:t})=>{let n={x:Math.max(A.x,e.x),y:Math.max(A.y,e.y)},r=BI(t),i=BS({max:n,current:A,change:r});return!i||0!==r.x&&0===i.x||0!==r.y&&0===i.y},Bj=(e,A)=>Bk({current:e.scroll.current,max:e.scroll.max,change:A}),BH=(e,A)=>{let t=e.frame;return!!t&&Bk({current:t.scroll.current,max:t.scroll.max,change:A})};var BD=({state:e,dragStartTime:A,shouldUseTimeDampening:t,scrollWindow:n,scrollDroppable:r,getAutoScrollerOptions:i})=>{let o=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){let r=(({viewport:e,subject:A,center:t,dragStartTime:n,shouldUseTimeDampening:r,getAutoScrollerOptions:i})=>{let o=BE({dragStartTime:n,container:e.frame,subject:A,center:t,shouldUseTimeDampening:r,getAutoScrollerOptions:i});return o&&Bj(e,o)?o:null})({dragStartTime:A,viewport:e.viewport,subject:s,center:o,shouldUseTimeDampening:t,getAutoScrollerOptions:i});if(r)return void n(r)}let a=(({center:e,destination:A,droppables:t})=>{if(A){let e=t[A];return e.frame?e:null}return BC(t).find(A=>(A.frame||gU(),pI(A.frame.pageMarginBox)(e)))||null})({center:o,destination:pU(e.impact),droppables:e.dimensions.droppables});if(!a)return;let l=(({droppable:e,subject:A,center:t,dragStartTime:n,shouldUseTimeDampening:r,getAutoScrollerOptions:i})=>{let o=e.frame;if(!o)return null;let s=BE({dragStartTime:n,container:o.pageMarginBox,subject:A,center:t,shouldUseTimeDampening:r,getAutoScrollerOptions:i});return s&&BH(e,s)?s:null})({dragStartTime:A,droppable:a,subject:s,center:o,shouldUseTimeDampening:t,getAutoScrollerOptions:i});l&&r(a.descriptor.id,l)};let BL="data-rfd",BR={base:o=`${BL}-drag-handle`,draggableId:`${o}-draggable-id`,contextId:`${o}-context-id`},BT={base:s=`${BL}-draggable`,contextId:`${s}-context-id`,id:`${s}-id`},BM={base:a=`${BL}-droppable`,contextId:`${a}-context-id`,id:`${a}-id`},BO={contextId:`${BL}-scroll-container-context-id`},BN=(e,A)=>e.map(e=>{let t=e.styles[A];return t?`${e.selector} { ${t} }`:""}).join(" "),BP="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?fy.useLayoutEffect:fy.useEffect,B_=()=>{let e=document.querySelector("head");return e||gU(),e},BK=e=>{let A=document.createElement("style");return e&&A.setAttribute("nonce",e),A.type="text/css",A};function BV(e,A){return Array.from(e.querySelectorAll(A))}var BG=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function Bz(e){return e instanceof BG(e).HTMLElement}function BW(e,A){let t=BV(document,`[${BR.contextId}="${e}"]`);if(!t.length)return null;let n=t.find(e=>e.getAttribute(BR.draggableId)===A);return n&&Bz(n)?n:null}function B$(){let e={draggables:{},droppables:{}},A=[];function t(e){A.length&&A.forEach(A=>A(e))}function n(A){return e.draggables[A]||null}function r(A){return e.droppables[A]||null}return{draggable:{register:A=>{e.draggables[A.descriptor.id]=A,t({type:"ADDITION",value:A})},update:(A,t)=>{let n=e.draggables[t.descriptor.id];n&&n.uniqueId===A.uniqueId&&(delete e.draggables[t.descriptor.id],e.draggables[A.descriptor.id]=A)},unregister:A=>{let r=A.descriptor.id,i=n(r);!i||A.uniqueId===i.uniqueId&&(delete e.draggables[r],e.droppables[A.descriptor.droppableId]&&t({type:"REMOVAL",value:A}))},getById:function(e){let A=n(e);return A||gU(),A},findById:n,exists:e=>!!n(e),getAllByType:A=>Object.values(e.draggables).filter(e=>e.descriptor.type===A)},droppable:{register:A=>{e.droppables[A.descriptor.id]=A},unregister:A=>{let t=r(A.descriptor.id);t&&A.uniqueId===t.uniqueId&&delete e.droppables[A.descriptor.id]},getById:function(e){let A=r(e);return A||gU(),A},findById:r,exists:e=>!!r(e),getAllByType:A=>Object.values(e.droppables).filter(e=>e.descriptor.type===A)},subscribe:function(e){return A.push(e),function(){let t=A.indexOf(e);-1!==t&&A.splice(t,1)}},clean:function(){e.draggables={},e.droppables={},A.length=0}}}var BX=fy.default.createContext(null),BY=()=>{let e=document.body;return e||gU(),e};let BJ={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Bq={separator:"::"};function BZ(e,A=Bq){let t=fy.default.useId();return gT(()=>`${e}${A.separator}${t}`,[A.separator,e,t])}var B0=fy.default.createContext(null);let B1=/(\d+)\.(\d+)\.(\d+)/,B2=e=>{let A=B1.exec(e);null==A&&gU();let t=Number(A[1]);return{major:t,minor:Number(A[2]),patch:Number(A[3]),raw:e}};function B4(e){}function B3(e,A){B4(()=>{(0,fy.useEffect)(()=>{try{e()}catch(e){gb(`
|
|
89
|
+
A setup problem was encountered.
|
|
90
|
+
|
|
91
|
+
> ${e.message}
|
|
92
|
+
`)}},A)})}function B5(e){let A=(0,fy.useRef)(e);return(0,fy.useEffect)(()=>{A.current=e}),A}function B6(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}let B8={13:!0,9:!0};var B7=e=>{B8[e.keyCode]&&e.preventDefault()};let B9=(l="visibilitychange","undefined"==typeof document?l:[l,`ms${l}`,`webkit${l}`,`moz${l}`,`o${l}`].find(e=>`on${e}`in document)||l),me={type:"IDLE"};function mA(){}let mt={34:!0,33:!0,36:!0,35:!0},mn={type:"IDLE"},mr=["input","button","textarea","select","option","optgroup","video","audio"],mi=(c="matches","undefined"==typeof document?c:[c,"msMatchesSelector","webkitMatchesSelector"].find(e=>e in Element.prototype)||c);function mo(e){e.preventDefault()}function ms({expected:e,phase:A,isLockActive:t,shouldWarn:n}){return!!t()&&e===A}function ma({lockAPI:e,store:A,registry:t,draggableId:n}){if(e.isClaimed())return!1;let r=t.draggable.findById(n);return!!r&&!!r.options.isEnabled&&!!By(A.getState(),n)}let ml=[function(e){let A=(0,fy.useRef)(me),t=(0,fy.useRef)(gv),n=gT(()=>({eventName:"mousedown",fn:function(A){if(A.defaultPrevented||0!==A.button||A.ctrlKey||A.metaKey||A.shiftKey||A.altKey)return;let n=e.findClosestDraggableId(A);if(!n)return;let r=e.tryGetLock(n,o,{sourceEvent:A});if(!r)return;A.preventDefault();let i={x:A.clientX,y:A.clientY};t.current(),l(r,i)}}),[e]),r=gT(()=>({eventName:"webkitmouseforcewillbegin",fn:A=>{if(A.defaultPrevented)return;let t=e.findClosestDraggableId(A);if(!t)return;let n=e.findOptionsForDraggable(t);!n||n.shouldRespectForcePress||e.canGetLock(t)&&A.preventDefault()}}),[e]),i=gM(function(){t.current=gQ(window,[r,n],{passive:!1,capture:!0})},[r,n]),o=gM(()=>{"IDLE"!==A.current.type&&(A.current=me,t.current(),i())},[i]),s=gM(()=>{let e=A.current;o(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[o]),a=gM(function(){t.current=gQ(window,function({cancel:e,completed:A,getPhase:t,setPhase:n}){return[{eventName:"mousemove",fn:e=>{var A;let{button:r,clientX:i,clientY:o}=e;if(0!==r)return;let s={x:i,y:o},a=t();if("DRAGGING"===a.type){e.preventDefault(),a.actions.move(s);return}"PENDING"!==a.type&&gU(),A=a.point,(Math.abs(s.x-A.x)>=5||Math.abs(s.y-A.y)>=5)&&(e.preventDefault(),n({type:"DRAGGING",actions:a.actions.fluidLift(s)}))}},{eventName:"mouseup",fn:n=>{let r=t();"DRAGGING"!==r.type?e():(n.preventDefault(),r.actions.drop({shouldBlockNextClick:!0}),A())}},{eventName:"mousedown",fn:A=>{"DRAGGING"===t().type&&A.preventDefault(),e()}},{eventName:"keydown",fn:A=>{if("PENDING"===t().type)return void e();if(27===A.keyCode){A.preventDefault(),e();return}B7(A)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===t().type&&e()}},{eventName:"webkitmouseforcedown",fn:A=>{let n=t();("IDLE"===n.type&&gU(),n.actions.shouldRespectForcePress())?e():A.preventDefault()}},{eventName:B9,fn:e}]}({cancel:s,completed:o,getPhase:()=>A.current,setPhase:e=>{A.current=e}}),{capture:!0,passive:!1})},[s,o]),l=gM(function(e,t){"IDLE"!==A.current.type&&gU(),A.current={type:"PENDING",point:t,actions:e},a()},[a]);BP(function(){return i(),function(){t.current()}},[i])},function(e){let A=(0,fy.useRef)(mA),t=gT(()=>({eventName:"keydown",fn:function(t){if(t.defaultPrevented||32!==t.keyCode)return;let r=e.findClosestDraggableId(t);if(!r)return;let i=e.tryGetLock(r,a,{sourceEvent:t});if(!i)return;t.preventDefault();let o=!0,s=i.snapLift();function a(){o||gU(),o=!1,A.current(),n()}A.current(),A.current=gQ(window,function(e,A){function t(){A(),e.cancel()}return[{eventName:"keydown",fn:n=>{if(27===n.keyCode){n.preventDefault(),t();return}if(32===n.keyCode){n.preventDefault(),A(),e.drop();return}if(40===n.keyCode){n.preventDefault(),e.moveDown();return}if(38===n.keyCode){n.preventDefault(),e.moveUp();return}if(39===n.keyCode){n.preventDefault(),e.moveRight();return}if(37===n.keyCode){n.preventDefault(),e.moveLeft();return}mt[n.keyCode]?n.preventDefault():B7(n)}},{eventName:"mousedown",fn:t},{eventName:"mouseup",fn:t},{eventName:"click",fn:t},{eventName:"touchstart",fn:t},{eventName:"resize",fn:t},{eventName:"wheel",fn:t,options:{passive:!0}},{eventName:B9,fn:t}]}(s,a),{capture:!0,passive:!1})}}),[e]),n=gM(function(){A.current=gQ(window,[t],{passive:!1,capture:!0})},[t]);BP(function(){return n(),function(){A.current()}},[n])},function(e){let A=(0,fy.useRef)(mn),t=(0,fy.useRef)(gv),n=gM(function(){return A.current},[]),r=gM(function(e){A.current=e},[]),i=gT(()=>({eventName:"touchstart",fn:function(A){if(A.defaultPrevented)return;let n=e.findClosestDraggableId(A);if(!n)return;let r=e.tryGetLock(n,s,{sourceEvent:A});if(!r)return;let{clientX:i,clientY:o}=A.touches[0];t.current(),u(r,{x:i,y:o})}}),[e]),o=gM(function(){t.current=gQ(window,[i],{capture:!0,passive:!1})},[i]),s=gM(()=>{let e=A.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),r(mn),t.current(),o())},[o,r]),a=gM(()=>{let e=A.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),l=gM(function(){let e={capture:!0,passive:!1},A={cancel:a,completed:s,getPhase:n},r=gQ(window,function({cancel:e,completed:A,getPhase:t}){return[{eventName:"touchmove",options:{capture:!1},fn:A=>{let n=t();if("DRAGGING"!==n.type)return void e();n.hasMoved=!0;let{clientX:r,clientY:i}=A.touches[0];A.preventDefault(),n.actions.move({x:r,y:i})}},{eventName:"touchend",fn:n=>{let r=t();"DRAGGING"!==r.type?e():(n.preventDefault(),r.actions.drop({shouldBlockNextClick:!0}),A())}},{eventName:"touchcancel",fn:A=>{"DRAGGING"!==t().type||A.preventDefault(),e()}},{eventName:"touchforcechange",fn:A=>{let n=t();"IDLE"===n.type&&gU();let r=A.touches[0];if(!r||!(r.force>=.15))return;let i=n.actions.shouldRespectForcePress();if("PENDING"===n.type){i&&e();return}i?n.hasMoved?A.preventDefault():e():A.preventDefault()}},{eventName:B9,fn:e}]}(A),e),i=gQ(window,function({cancel:e,getPhase:A}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:t=>{"DRAGGING"!==A().type||27===t.keyCode&&t.preventDefault(),e()}},{eventName:B9,fn:e}]}(A),e);t.current=function(){r(),i()}},[a,n,s]),c=gM(function(){let e=n();"PENDING"!==e.type&&gU(),r({type:"DRAGGING",actions:e.actions.fluidLift(e.point),hasMoved:!1})},[n,r]),u=gM(function(e,A){"IDLE"!==n().type&&gU(),r({type:"PENDING",point:A,actions:e,longPressTimerId:setTimeout(c,120)}),l()},[l,n,r,c]);BP(function(){return o(),function(){t.current();let e=n();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),r(mn))}},[n,o,r]),BP(function(){return gQ(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}];function mc(e){return e.current||gU(),e.current}function mu(e){var A;let t,n,r,i,o,s,a,l,c,u,d,h,f,g,p,B,m,w,y,x,{contextId:C,setCallbacks:b,sensors:v,nonce:Q,dragHandleUsageInstructions:F}=e,U=(0,fy.useRef)(null);B3(()=>{let e;((e,A)=>{let t=B2(e),n=B2(A);if(n.major>t.major||!(n.major<t.major)&&(n.minor>t.minor||!(n.minor<t.minor)&&n.patch>=t.patch))return})("^18.0.0 || ^19.0.0",fy.default.version),(e=document.doctype)&&(e.name.toLowerCase(),e.publicId)},[]);let E=B5(e),I=gM(()=>{let e;return{onBeforeCapture:A=>{(0,oZ.flushSync)(()=>{e.onBeforeCapture&&e.onBeforeCapture(A)})},onBeforeDragStart:(e=E.current).onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}},[E]),S=gM(()=>{let e;return e=E.current,{...Bb,...e.autoScrollerOptions,durationDampening:{...Bb.durationDampening,...e.autoScrollerOptions}}},[E]),k=(t=gT(()=>{let e;return e=A,`rfd-announcement-${e}`},[A=C]),n=(0,fy.useRef)(null),(0,fy.useEffect)(function(){let e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,gx.default)(e.style,BJ),BY().appendChild(e),function(){setTimeout(function(){let A=BY();A.contains(e)&&A.removeChild(e),e===n.current&&(n.current=null)})}},[t]),gM(e=>{let A=n.current;if(A){A.textContent=e;return}},[])),j=function({contextId:e,text:A}){let t=BZ("hidden-text",{separator:"-"}),n=gT(()=>(function({contextId:e,uniqueId:A}){return`rfd-hidden-text-${e}-${A}`})({contextId:e,uniqueId:t}),[t,e]);return(0,fy.useEffect)(function(){let e=document.createElement("div");return e.id=n,e.textContent=A,e.style.display="none",BY().appendChild(e),function(){let A=BY();A.contains(e)&&A.removeChild(e)}},[n,A]),n}({contextId:C,text:F}),H=(r=gT(()=>{let e,A,t,n,r,i;return A=`
|
|
93
|
+
cursor: -webkit-grab;
|
|
94
|
+
cursor: grab;
|
|
95
|
+
`,t={selector:(e=e=>`[${e}="${C}"]`)(BR.contextId),styles:{always:`
|
|
96
|
+
-webkit-touch-callout: none;
|
|
97
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
98
|
+
touch-action: manipulation;
|
|
99
|
+
`,resting:A,dragging:"pointer-events: none;",dropAnimating:A}},n=`
|
|
100
|
+
transition: ${BA.outOfTheWay};
|
|
101
|
+
`,r={selector:e(BT.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}},{always:BN(i=[r,t,{selector:e(BM.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:`
|
|
102
|
+
cursor: grabbing;
|
|
103
|
+
cursor: -webkit-grabbing;
|
|
104
|
+
user-select: none;
|
|
105
|
+
-webkit-user-select: none;
|
|
106
|
+
-moz-user-select: none;
|
|
107
|
+
-ms-user-select: none;
|
|
108
|
+
overflow-anchor: none;
|
|
109
|
+
`}}],"always"),resting:BN(i,"resting"),dragging:BN(i,"dragging"),dropAnimating:BN(i,"dropAnimating"),userCancel:BN(i,"userCancel")}},[C]),i=(0,fy.useRef)(null),o=(0,fy.useRef)(null),s=gM(gq(e=>{let A=o.current;A||gU(),A.textContent=e}),[]),BP(()=>{(i.current||o.current)&&gU();let e=BK(Q),A=BK(Q);return i.current=e,o.current=A,e.setAttribute(`${BL}-always`,C),A.setAttribute(`${BL}-dynamic`,C),B_().appendChild(e),B_().appendChild(A),a(r.always),s(r.resting),()=>{let e=e=>{let A=e.current;A||gU(),B_().removeChild(A),e.current=null};e(i),e(o)}},[Q,a=gM(e=>{let A=i.current;A||gU(),A.textContent=e},[]),s,r.always,r.resting,C]),l=gM(()=>s(r.dragging),[s,r.dragging]),c=gM(e=>{"DROP"===e?s(r.dropAnimating):s(r.userCancel)},[s,r.dropAnimating,r.userCancel]),gT(()=>({dragging:l,dropping:c,resting:u}),[l,c,u=gM(()=>{o.current&&s(r.resting)},[s,r.resting])])),D=gM(e=>{mc(U).dispatch(e)},[]),L=gT(()=>fF({publishWhileDragging:pG,updateDroppableScroll:pW,updateDroppableIsEnabled:p$,updateDroppableIsCombineEnabled:pX,collectionStarting:pz},D),[D]),R=(d=gT(B$,[]),(0,fy.useEffect)(()=>function(){d.clean()},[d]),d),T=gT(()=>{let e,A,t;return e=null,A=function({registry:e,callbacks:A}){let t=Bg(),n=null,r=()=>{n||(A.collectionStarting(),n=requestAnimationFrame(()=>{n=null,pM();let{additions:r,removals:i,modified:o}=t,s=Object.keys(r).map(A=>e.draggable.getById(A).getDimension(gO)).sort((e,A)=>e.descriptor.index-A.descriptor.index),a=Object.keys(o).map(A=>{let t=e.droppable.getById(A).callbacks.getScrollWhileDragging();return{droppableId:A,scroll:t}}),l={additions:s,removals:Object.keys(i),modified:a};t=Bg(),pO(),A.publish(l)}))};return{add:e=>{let A=e.descriptor.id;t.additions[A]=e,t.modified[e.descriptor.droppableId]=!0,t.removals[A]&&delete t.removals[A],r()},remove:e=>{let A=e.descriptor;t.removals[A.id]=!0,t.modified[A.droppableId]=!0,t.additions[A.id]&&delete t.additions[A.id],r()},stop:()=>{n&&(cancelAnimationFrame(n),n=null,t=Bg())}}}({callbacks:{publish:L.publishWhileDragging,collectionStarting:L.collectionStarting},registry:R}),t=t=>{e||gU();let n=e.critical.draggable;"ADDITION"===t.type&&Bw(R,n,t.value)&&A.add(t.value),"REMOVAL"===t.type&&Bw(R,n,t.value)&&A.remove(t.value)},{updateDroppableIsEnabled:(A,t)=>{R.droppable.exists(A)||gU(),e&&L.updateDroppableIsEnabled({id:A,isEnabled:t})},updateDroppableIsCombineEnabled:(A,t)=>{e&&(R.droppable.exists(A)||gU(),L.updateDroppableIsCombineEnabled({id:A,isCombineEnabled:t}))},scrollDroppable:(A,t)=>{e&&R.droppable.getById(A).callbacks.scroll(t)},updateDroppableScroll:(A,t)=>{e&&(R.droppable.exists(A)||gU(),L.updateDroppableScroll({id:A,newScroll:t}))},startPublishing:A=>{e&&gU();let n=R.draggable.getById(A.draggableId),r=R.droppable.getById(n.descriptor.droppableId),i={draggable:n.descriptor,droppable:r.descriptor};return e={critical:i,unsubscribe:R.subscribe(t)},(({critical:e,scrollOptions:A,registry:t})=>{let n,r,i,o,s,a;pM();let l=(n=Bs(),r=Bm(),i=n.y,o=n.x,a=(s=BB()).clientWidth,{frame:gc({top:i,left:o,right:o+a,bottom:i+s.clientHeight}),scroll:{initial:n,current:n,max:r,diff:{value:gO,displacement:gO}}}),c=l.scroll.current,u=e.droppable,d=t.droppable.getAllByType(u.type).map(e=>e.callbacks.getDimensionAndWatchScroll(c,A)),h={draggables:g0(t.draggable.getAllByType(e.draggable.type).map(e=>e.getDimension(c))),droppables:gZ(d)};return pO(),{dimensions:h,critical:e,viewport:l}})({critical:i,registry:R,scrollOptions:A.scrollOptions})},stopPublishing:()=>{if(!e)return;A.stop();let t=e.critical.droppable;R.droppable.getAllByType(t.type).forEach(e=>e.callbacks.dragStopped()),e.unsubscribe(),e=null}}},[R,L]),M=gT(()=>(({scrollDroppable:e,scrollWindow:A,move:t,getAutoScrollerOptions:n})=>{let r=(({scrollWindow:e,scrollDroppable:A,getAutoScrollerOptions:t=()=>Bb})=>{let n=gy(e),r=gy(A),i=null,o=e=>{i||gU();let{shouldUseTimeDampening:A,dragStartTime:o}=i;BD({state:e,scrollWindow:n,scrollDroppable:r,dragStartTime:o,shouldUseTimeDampening:A,getAutoScrollerOptions:t})};return{start:e=>{pM(),i&&gU();let A=Date.now(),n=!1,r=()=>{n=!0};BD({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r,getAutoScrollerOptions:t}),i={dragStartTime:A,shouldUseTimeDampening:n},pO(),n&&o(e)},stop:()=>{i&&(n.cancel(),r.cancel(),i=null)},scroll:o}})({scrollWindow:A,scrollDroppable:e,getAutoScrollerOptions:n}),i=(({move:e,scrollDroppable:A,scrollWindow:t})=>n=>{let r=n.scrollJumpRequest;if(!r)return;let i=pU(n.impact);i||gU();let o=((e,t)=>{let n;if(!BH(e,t))return t;let r=(n=e.frame)&&BH(e,t)?BS({current:n.scroll.current,max:n.scroll.max,change:t}):null;if(!r)return A(e.descriptor.id,t),null;let i=gP(t,r);return A(e.descriptor.id,i),gP(t,i)})(n.dimensions.droppables[i],r);if(!o)return;let s=n.viewport,a=((e,A,n)=>{if(!e||!Bj(A,n))return n;let r=((e,A)=>{if(!Bj(e,A))return null;let t=e.scroll.max;return BS({current:e.scroll.current,max:t,change:A})})(A,n);if(!r)return t(n),null;let i=gP(n,r);return t(i),gP(n,i)})(n.isWindowScrollAllowed,s,o);a&&e({client:gN(n.current.client.selection,a)})})({move:t,scrollWindow:A,scrollDroppable:e});return{scroll:e=>{n().disabled||"DRAGGING"!==e.phase||("FLUID"===e.movementMode?r.scroll(e):e.scrollJumpRequest&&i(e))},start:r.start,stop:r.stop}})({scrollWindow:Bx,scrollDroppable:T.scrollDroppable,getAutoScrollerOptions:S,...fF({move:pY},D)}),[T.scrollDroppable,D,S]),O=(h=(0,fy.useRef)({}),f=(0,fy.useRef)(null),g=(0,fy.useRef)(null),p=(0,fy.useRef)(!1),B=gM(function(e,A){let t={id:e,focus:A};return h.current[e]=t,function(){let A=h.current;A[e]!==t&&delete A[e]}},[]),m=gM(function(e){let A=BW(C,e);A&&A!==document.activeElement&&A.focus()},[C]),w=gM(function(e,A){f.current===e&&(f.current=A)},[]),y=gM(function(){g.current||p.current&&(g.current=requestAnimationFrame(()=>{g.current=null;let e=f.current;e&&m(e)}))},[m]),x=gM(function(e){f.current=null;let A=document.activeElement;A&&A.getAttribute(BR.draggableId)===e&&(f.current=e)},[]),BP(()=>(p.current=!0,function(){p.current=!1;let e=g.current;e&&cancelAnimationFrame(e)}),[]),gT(()=>({register:B,tryRecordFocus:x,tryRestoreFocusRecorded:y,tryShiftRecord:w}),[B,x,y,w])),N=gT(()=>(({dimensionMarshal:e,focusMarshal:A,styleMarshal:t,getResponders:n,announce:r,autoScroller:i})=>{let o,s,a,l,c,u;return function e(A,t,n){if("function"!=typeof A)throw Error(fx(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(fx(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw Error(fx(1));return n(e)(A,t)}let r=A,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((e,A)=>{s.set(A,e)}))}function u(){if(l)throw Error(fx(3));return i}function d(e){if("function"!=typeof e)throw Error(fx(4));if(l)throw Error(fx(5));let A=!0;c();let t=a++;return s.set(t,e),function(){if(A){if(l)throw Error(fx(6));A=!1,c(),s.delete(t),o=null}}}function h(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let A=e;for(;null!==Object.getPrototypeOf(A);)A=Object.getPrototypeOf(A);return Object.getPrototypeOf(e)===A||null===Object.getPrototypeOf(e)}(e))throw Error(fx(7));if(void 0===e.type)throw Error(fx(8));if("string"!=typeof e.type)throw Error(fx(17));if(l)throw Error(fx(9));try{l=!0,i=r(i,e)}finally{l=!1}return(o=s).forEach(e=>{e()}),e}return h({type:fv.INIT}),{dispatch:h,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw Error(fx(10));r=e,h({type:fv.REPLACE})},[fC]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(fx(11));function A(){e.next&&e.next(u())}return A(),{unsubscribe:d(A)}},[fC](){return this}}}}}(pK,fU(function(...e){return A=>(t,n)=>{let r=A(t,n),i=()=>{throw Error(fx(15))},o={getState:r.getState,dispatch:(e,...A)=>i(e,...A)};return i=fU(...e.map(e=>e(o)))(r.dispatch),{...r,dispatch:i}}}(()=>e=>A=>{pV(A,"INITIAL_PUBLISH")&&t.dragging(),pV(A,"DROP_ANIMATE")&&t.dropping(A.payload.completed.result.reason),(pV(A,"FLUSH")||pV(A,"DROP_COMPLETE"))&&t.resting(),e(A)},()=>A=>t=>{(pV(t,"DROP_COMPLETE")||pV(t,"FLUSH")||pV(t,"DROP_ANIMATE"))&&e.stopPublishing(),A(t)},({getState:A,dispatch:t})=>n=>r=>{if(!pV(r,"LIFT"))return void n(r);let{id:i,clientSelection:o,movementMode:s}=r.payload,a=A();"DROP_ANIMATING"===a.phase&&t(p2({completed:a.completed})),"IDLE"!==A().phase&&gU(),t(p1()),t({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:s}});let{critical:l,dimensions:c,viewport:u}=e.startPublishing({draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===s}});t({type:"INITIAL_PUBLISH",payload:{critical:l,dimensions:c,clientSelection:o,movementMode:s,viewport:u}})},Bo,Bd,Bh,Bf,e=>A=>t=>{if(pV(t,"DROP_COMPLETE")||pV(t,"DROP_ANIMATE")||pV(t,"FLUSH")){i.stop(),A(t);return}if(pV(t,"INITIAL_PUBLISH")){A(t);let n=e.getState();"DRAGGING"!==n.phase&&gU(),i.start(n);return}A(t),i.scroll(e.getState())},Ba,(o=!1,()=>e=>t=>{if(pV(t,"INITIAL_PUBLISH")){o=!0,A.tryRecordFocus(t.payload.critical.draggable.id),e(t),A.tryRestoreFocusRecorded();return}if(e(t),o){if(pV(t,"FLUSH")){o=!1,A.tryRestoreFocusRecorded();return}if(pV(t,"DROP_COMPLETE")){o=!1;let e=t.payload.completed.result;e.combine&&A.tryShiftRecord(e.draggableId,e.combine.draggableId),A.tryRestoreFocusRecorded()}}}),(s=[],a={add:e=>{let A=setTimeout(()=>(e=>{let A=s.findIndex(A=>A.timerId===e);-1===A&&gU();let[t]=s.splice(A,1);t.callback()})(A));s.push({timerId:A,callback:e})},flush:()=>{if(!s.length)return;let e=[...s];s.length=0,e.forEach(e=>{clearTimeout(e.timerId),e.callback()})}},l=null,u={beforeCapture:(e,A)=>{l&&gU(),Bl("onBeforeCapture",()=>{let t=n().onBeforeCapture;t&&t({draggableId:e,mode:A})})},beforeStart:(e,A)=>{l&&gU(),Bl("onBeforeDragStart",()=>{let t=n().onBeforeDragStart;t&&t(Bc(e,A))})},start:(e,A)=>{l&&gU();let t=Bc(e,A);l={mode:A,lastCritical:e,lastLocation:t.source,lastCombine:null},a.add(()=>{Bl("onDragStart",()=>Bu(n().onDragStart,t,r,gH))})},update:(e,A)=>{var t,i;let o=g3(A),s=g5(A);l||gU();let c=!((e,A)=>{if(e===A)return!0;let t=e.draggable.id===A.draggable.id&&e.draggable.droppableId===A.draggable.droppableId&&e.draggable.type===A.draggable.type&&e.draggable.index===A.draggable.index,n=e.droppable.id===A.droppable.id&&e.droppable.type===A.droppable.type;return t&&n})(e,l.lastCritical);c&&(l.lastCritical=e);let u=(t=l.lastLocation,(null!=t||null!=o)&&(null==t||null==o||t.droppableId!==o.droppableId||t.index!==o.index));u&&(l.lastLocation=o);let d=(i=l.lastCombine,(null!=i||null!=s)&&(null==i||null==s||i.draggableId!==s.draggableId||i.droppableId!==s.droppableId));if(d&&(l.lastCombine=s),!c&&!u&&!d)return;let h={...Bc(e,l.mode),combine:s,destination:o};a.add(()=>{Bl("onDragUpdate",()=>Bu(n().onDragUpdate,h,r,gD))})},flush:()=>{l||gU(),a.flush()},drop:c=e=>{l||gU(),l=null,Bl("onDragEnd",()=>Bu(n().onDragEnd,e,r,gL))},abort:()=>{l&&c({...Bc(l.lastCritical,l.mode),combine:null,destination:null,reason:"CANCEL"})}},e=>A=>t=>{if(pV(t,"BEFORE_INITIAL_CAPTURE"))return void u.beforeCapture(t.payload.draggableId,t.payload.movementMode);if(pV(t,"INITIAL_PUBLISH")){let e=t.payload.critical;u.beforeStart(e,t.payload.movementMode),A(t),u.start(e,t.payload.movementMode);return}if(pV(t,"DROP_COMPLETE")){let e=t.payload.completed.result;u.flush(),A(t),u.drop(e);return}if(A(t),pV(t,"FLUSH"))return void u.abort();let n=e.getState();"DRAGGING"===n.phase&&u.update(n.critical,n.impact)}))))})({announce:k,autoScroller:M,dimensionMarshal:T,focusMarshal:O,getResponders:I,styleMarshal:H}),[k,M,T,O,I,H]);U.current=N;let P=gM(()=>{let e=mc(U);"IDLE"!==e.getState().phase&&e.dispatch(p1())},[]),_=gM(()=>{let e=mc(U).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]);b(gT(()=>({isDragging:_,tryAbort:P}),[_,P]));let K=gM(e=>By(mc(U).getState(),e),[]),V=gM(()=>pE(mc(U).getState()),[]),G=gT(()=>({marshal:T,focus:O,contextId:C,canLift:K,isMovementAllowed:V,dragHandleUsageInstructionsId:j,registry:R}),[C,T,j,O,K,V,R]);return!function({contextId:e,store:A,registry:t,customSensors:n,enableDefaultSensors:r}){let i=[...r?ml:[],...n||[]],o=(0,fy.useState)(()=>(function(){let e=null;function A(){e||gU(),e=null}return{isClaimed:function(){return!!e},isActive:function(A){return A===e},claim:function(A){e&&gU();let t={abandon:A};return e=t,t},release:A,tryAbandon:function(){e&&(e.abandon(),A())}}})())[0],s=gM(function(e,A){B6(e)&&!B6(A)&&o.tryAbandon()},[o]);BP(function(){let e=A.getState();return A.subscribe(()=>{let t=A.getState();s(e,t),e=t})},[o,A,s]),BP(()=>o.tryAbandon,[o.tryAbandon]);let a=gM(e=>ma({lockAPI:o,registry:t,store:A,draggableId:e}),[o,t,A]),l=gM((n,r,i)=>(function({lockAPI:e,contextId:A,store:t,registry:n,draggableId:r,forceSensorStop:i,sourceEvent:o}){var s;let a,l;if(!ma({lockAPI:e,store:t,registry:n,draggableId:r}))return null;let c=n.draggable.getById(r),u=(s=c.descriptor.id,(a=BV(document,`[${BT.contextId}="${A}"]`).find(e=>e.getAttribute(BT.id)===s))&&Bz(a)?a:null);if(!u||o&&!c.options.canDragInteractiveElements&&Bz(l=o.target)&&function e(A,t){if(null==t)return!1;if(mr.includes(t.tagName.toLowerCase()))return!0;let n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==A&&e(A,t.parentElement)}(u,l))return null;let d=e.claim(i||gv),h="PRE_DRAG";function f(){return c.options.shouldRespectForcePress}function g(){return e.isActive(d)}let p=(function(e,A){ms({expected:e,phase:h,isLockActive:g,shouldWarn:!0})&&t.dispatch(A())}).bind(null,"DRAGGING");function B(A){function n(){e.release(),h="COMPLETED"}function r(e,i={shouldBlockNextClick:!1}){A.cleanup(),i.shouldBlockNextClick&&setTimeout(gQ(window,[{eventName:"click",fn:mo,options:{once:!0,passive:!1,capture:!0}}])),n(),t.dispatch(p4({reason:e}))}return"PRE_DRAG"!==h&&(n(),gU()),t.dispatch({type:"LIFT",payload:A.liftActionArgs}),h="DRAGGING",{isActive:()=>ms({expected:"DRAGGING",phase:h,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:f,drop:e=>r("DROP",e),cancel:e=>r("CANCEL",e),...A.actions}}return{isActive:()=>ms({expected:"PRE_DRAG",phase:h,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:f,fluidLift:function(e){let A=gy(e=>{p(()=>pY({client:e}))});return{...B({liftActionArgs:{id:r,clientSelection:e,movementMode:"FLUID"},cleanup:()=>A.cancel(),actions:{move:A}}),move:A}},snapLift:function(){return B({liftActionArgs:{id:r,clientSelection:gc(u.getBoundingClientRect()).center,movementMode:"SNAP"},cleanup:gv,actions:{moveUp:()=>p(pJ),moveRight:()=>p(pZ),moveDown:()=>p(pq),moveLeft:()=>p(p0)}})},abort:function(){ms({expected:"PRE_DRAG",phase:h,isLockActive:g,shouldWarn:!0})&&e.release()}}})({lockAPI:o,registry:t,contextId:e,store:A,draggableId:n,forceSensorStop:r||null,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null}),[e,o,t,A]),c=gM(A=>{let t;return(t=function(e,A){let t=A.target;if(!(t instanceof BG(t).Element))return null;let n=`[${BR.contextId}="${e}"]`,r=t.closest?t.closest(n):function e(A,t){return null==A?null:A[mi](t)?A:e(A.parentElement,t)}(t,n);return r&&Bz(r)?r:null}(e,A))?t.getAttribute(BR.draggableId):null},[e]),u=gM(e=>{let A=t.draggable.findById(e);return A?A.options:null},[t.draggable]),d=gM(function(){o.isClaimed()&&(o.tryAbandon(),"IDLE"!==A.getState().phase&&A.dispatch(p1()))},[o,A]),h=gM(()=>o.isClaimed(),[o]),f=gT(()=>({canGetLock:a,tryGetLock:l,findClosestDraggableId:c,findOptionsForDraggable:u,tryReleaseLock:d,isLockClaimed:h}),[a,l,c,u,d,h]);B4(()=>{let e=B5(i);B3(()=>{e.current.length!==i.length&&gU(!1)})});for(let e=0;e<i.length;e++)i[e](f)}({contextId:C,store:N,registry:R,customSensors:v||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,fy.useEffect)(()=>P,[P]),fy.default.createElement(B0.Provider,{value:G},fy.default.createElement(gs,{context:BX,store:N},e.children))}function md(e){let A=fy.default.useId(),t=e.dragHandleUsageInstructions||gI;return fy.default.createElement(gE,null,n=>fy.default.createElement(mu,{nonce:e.nonce,contextId:A,setCallbacks:n,dragHandleUsageInstructions:t,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}var mh=fy.default.createContext(null);function mf(e){e&&Bz(e)||gU()}function mg(e){let A=(0,fy.useContext)(e);return A||gU(),A}function mp(e){e.preventDefault()}var mB=(e,A)=>e===A,mm=e=>{let{combine:A,destination:t}=e;return t?t.droppableId:A?A.droppableId:null};function mw(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}let my={mapped:{type:"SECONDARY",offset:gO,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:mw(null)}},mx=go(()=>{let e,A,t,n,r,i,o,s,a=(e=gq((e,A)=>({x:e,y:A})),A=gq((e,A,t=null,n=null,r=null)=>({isDragging:!0,isClone:A,isDropAnimating:!!r,dropAnimation:r,mode:e,draggingOver:t,combineWith:n,combineTargetFor:null})),t=gq((e,t,n,r,i=null,o=null,s=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:o,mode:t,offset:e,dimension:n,forceShouldAnimate:s,snapshot:A(t,r,i,o,null)}})),(n,r)=>{if(B6(n)){let A;if(n.critical.draggable.id!==r.draggableId)return null;let i=n.current.client.offset,o=n.dimensions.draggables[r.draggableId],s=pU(n.impact),a=(A=n.impact).at&&"COMBINE"===A.at.type?A.at.combine.draggableId:null,l=n.forceShouldAnimate;return t(e(i.x,i.y),n.movementMode,o,r.isClone,s,a,l)}if("DROP_ANIMATING"===n.phase){let e=n.completed;if(e.result.draggableId!==r.draggableId)return null;let t=r.isClone,i=n.dimensions.draggables[r.draggableId],o=e.result,s=o.mode,a=mm(o),l=o.combine?o.combine.draggableId:null,c={duration:n.dropDuration,curve:p5,moveTo:n.newHomeClientOffset,opacity:l?p6:null,scale:l?p7:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:i,dropping:c,draggingOver:a,combineWith:l,mode:s,forceShouldAnimate:null,snapshot:A(s,t,a,l,c)}}}return null}),l=(n=gq((e,A)=>({x:e,y:A})),r=gq(mw),i=gq((e,A=null,t)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:A,shouldAnimateDisplacement:t,snapshot:r(A)}})),o=e=>e?i(gO,e,!0):null,s=(e,A,t,r)=>{let s=t.displaced.visible[e],a=!!(r.inVirtualList&&r.effected[e]),l=g5(t),c=l&&l.draggableId===e?A:null;if(!s){if(!a)return o(c);if(t.displaced.invisible[e])return null;let A=gK(r.displacedBy.point);return i(n(A.x,A.y),c,!0)}if(a)return o(c);let u=t.displacedBy.point;return i(n(u.x,u.y),c,s.shouldAnimate)},(e,A)=>{if(B6(e))return e.critical.draggable.id===A.draggableId?null:s(A.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){let t=e.completed;return t.result.draggableId===A.draggableId?null:s(A.draggableId,t.result.draggableId,t.impact,t.afterCritical)}return null});return(e,A)=>a(e,A)||l(e,A)||my},{dropAnimationFinished:p3},null,{context:BX,areStatePropsEqual:mB})(e=>{let A=(0,fy.useRef)(null),t=gM((e=null)=>{A.current=e},[]),n=gM(()=>A.current,[]),{contextId:r,dragHandleUsageInstructionsId:i,registry:o}=mg(B0),{type:s,droppableId:a}=mg(mh),l=gT(()=>({id:e.draggableId,index:e.index,type:s,droppableId:a}),[e.draggableId,e.index,s,a]),{children:c,draggableId:u,isEnabled:d,shouldRespectForcePress:h,canDragInteractiveElements:f,isClone:g,mapped:p,dropAnimationFinished:B}=e;B3(()=>{let A=e.draggableId;A||gU(!1),"string"!=typeof A&&gU(!1),Number.isInteger(e.index)||gU(!1),"DRAGGING"!==e.mapped.type&&(mf(n()),e.isEnabled&&(BW(r,A)||gU(!1)))}),B4(()=>{let e=(0,fy.useRef)(g);B3(()=>{g!==e.current&&gU(!1)},[g])}),g||function(e){let A=BZ("draggable"),{descriptor:t,registry:n,getDraggableRef:r,canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:s}=e,a=gT(()=>({canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:s}),[i,s,o]),l=gM(e=>{let A=r();return A||gU(),function(e,A,t=gO){let n=window.getComputedStyle(A),r=gm(A.getBoundingClientRect(),n),i=gB(r,t),o={client:r,tagName:A.tagName.toLowerCase(),display:n.display};return{descriptor:e,placeholder:o,displaceBy:{x:r.marginBox.width,y:r.marginBox.height},client:r,page:i}}(t,A,e)},[t,r]),c=gT(()=>({uniqueId:A,descriptor:t,options:a,getDimension:l}),[t,l,a,A]),u=(0,fy.useRef)(c),d=(0,fy.useRef)(!0);BP(()=>(n.draggable.register(u.current),()=>n.draggable.unregister(u.current)),[n.draggable]),BP(()=>{if(d.current){d.current=!1;return}let e=u.current;u.current=c,n.draggable.update(c,e)},[c,n.draggable])}(gT(()=>({descriptor:l,registry:o,getDraggableRef:n,canDragInteractiveElements:f,shouldRespectForcePress:h,isEnabled:d}),[l,o,n,f,h,d]));let m=gT(()=>d?{tabIndex:0,role:"button","aria-describedby":i,"data-rfd-drag-handle-draggable-id":u,"data-rfd-drag-handle-context-id":r,draggable:!1,onDragStart:mp}:null,[r,i,u,d]),w=gM(e=>{"DRAGGING"===p.type&&p.dropping&&"transform"===e.propertyName&&(0,oZ.flushSync)(B)},[B,p]),y=gT(()=>{let e="DRAGGING"===p.type?function(e){let A=e.dimension.client,{offset:t,combineWith:n,dropping:r}=e,i=!!n,o=null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode,s=!!r,a=s?((e,A)=>{let t=Bt(e);if(t)return A?`${t} scale(${p7})`:t})(t,i):Bt(t);return{position:"fixed",top:A.marginBox.top,left:A.marginBox.left,boxSizing:"border-box",width:A.borderBox.width,height:A.borderBox.height,transition:r?BA.drop(r.duration):o?BA.snap:BA.fluid,transform:a,opacity:((e,A)=>{if(e)return A?p6:p8})(i,s),zIndex:s?4500:5e3,pointerEvents:"none"}}(p):{transform:Bt(p.offset),transition:p.shouldAnimateDisplacement?void 0:"none"};return{innerRef:t,draggableProps:{"data-rfd-draggable-context-id":r,"data-rfd-draggable-id":u,style:e,onTransitionEnd:"DRAGGING"===p.type&&p.dropping?w:void 0},dragHandleProps:m}},[r,m,u,p,w,t]),x=gT(()=>({draggableId:l.id,type:l.type,source:{index:l.index,droppableId:l.droppableId}}),[l.droppableId,l.id,l.index,l.type]);return fy.default.createElement(fy.default.Fragment,null,c(y,p.snapshot,x))});function mC(e){return mg(mh).isUsingCloneFor!==e.draggableId||e.isClone?fy.default.createElement(mx,e):null}function mb(e){let A="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,t=!!e.disableInteractiveElementBlocking,n=!!e.shouldRespectForcePress;return fy.default.createElement(mC,(0,gx.default)({},e,{isClone:!1,isEnabled:A,canDragInteractiveElements:t,shouldRespectForcePress:n}))}let mv=e=>A=>e===A,mQ=mv("scroll"),mF=mv("auto");mv("visible");let mU=(e,A)=>A(e.overflowX)||A(e.overflowY),mE=e=>{let A,t;return null==e||e===document.body||e===document.documentElement?null:mU(t={overflowX:(A=window.getComputedStyle(e)).overflowX,overflowY:A.overflowY},mQ)||mU(t,mF)?e:mE(e.parentElement)};var mI=e=>({x:e.scrollLeft,y:e.scrollTop});let mS=e=>!!e&&("fixed"===window.getComputedStyle(e).position||mS(e.parentElement)),mk={passive:!1},mj={passive:!0};var mH=e=>e.shouldPublishImmediately?mk:mj;let mD=e=>e&&e.env.closestScrollable||null;function mL(){}let mR={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};var mT=fy.default.memo(e=>{let A=(0,fy.useRef)(null),t=gM(()=>{A.current&&(clearTimeout(A.current),A.current=null)},[]),{animate:n,onTransitionEnd:r,onClose:i,contextId:o}=e,[s,a]=(0,fy.useState)("open"===e.animate);(0,fy.useEffect)(()=>s?"open"!==n?(t(),a(!1),mL):A.current?mL:(A.current=setTimeout(()=>{A.current=null,a(!1)}),t):mL,[n,s,t]);let l=gM(e=>{"height"===e.propertyName&&(r(),"close"===n&&i())},[n,i,r]),c=(({isAnimatingOpenOnMount:e,placeholder:A,animate:t})=>{let n=(({isAnimatingOpenOnMount:e,placeholder:A,animate:t})=>e||"close"===t?mR:{height:A.client.borderBox.height,width:A.client.borderBox.width,margin:A.client.margin})({isAnimatingOpenOnMount:e,placeholder:A,animate:t});return{display:A.display,boxSizing:"border-box",width:n.width,height:n.height,marginTop:n.margin.top,marginRight:n.margin.right,marginBottom:n.margin.bottom,marginLeft:n.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==t?BA.placeholder:null}})({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return fy.default.createElement(e.placeholder.tagName,{style:c,"data-rfd-placeholder-context-id":o,onTransitionEnd:l,ref:e.innerRef})});function mM(e){return"boolean"==typeof e}function mO(e,A){A.forEach(A=>A(e))}let mN=[function({props:e}){e.droppableId||gU(),"string"!=typeof e.droppableId&&gU()},function({props:e}){mM(e.isDropDisabled)||gU(),mM(e.isCombineEnabled)||gU(),mM(e.ignoreContainerClipping)||gU()},function({getDroppableRef:e}){mf(e())}],mP=[function({props:e,getPlaceholderRef:A}){if(!e.placeholder||A())return}],m_=[function({props:e}){e.renderClone||gU()},function({getPlaceholderRef:e}){e()&&gU()}];class mK extends fy.default.PureComponent{constructor(...e){super(...e),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,A){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:A.isVisible?{isVisible:!0,data:A.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!e.on,data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;let e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}let mV={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||gU(),document.body}},mG=e=>{let A,t={...e};for(A in mV)void 0===e[A]&&(t={...t,[A]:mV[A]});return t},mz=(e,A)=>A.draggables[e.draggable.id],mW=go(()=>{let e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},A={...e,shouldAnimatePlaceholder:!1},t=gq(e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}})),n=gq((n,r,i,o,s,a)=>{let l=s.descriptor.id;if(s.descriptor.droppableId===n){let e=a?{render:a,dragging:t(s.descriptor)}:null;return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:{isDraggingOver:i,draggingOverWith:i?l:null,draggingFromThisWith:l,isUsingPlaceholder:!0},useClone:e}}return r?o?{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:i,draggingOverWith:l,draggingFromThisWith:null,isUsingPlaceholder:!0},useClone:null}:e:A});return(t,r)=>{let i=mG(r),o=i.droppableId,s=i.type,a=!i.isDropDisabled,l=i.renderClone;if(B6(t)){let e=t.critical;if(s!==e.droppable.type)return A;let r=mz(e,t.dimensions),i=pU(t.impact)===o;return n(o,a,i,i,r,l)}if("DROP_ANIMATING"===t.phase){let e=t.completed;if(s!==e.critical.droppable.type)return A;let r=mz(e.critical,t.dimensions);return n(o,a,mm(e.result)===o,pU(e.impact)===o,r,l)}if("IDLE"===t.phase&&t.completed&&!t.shouldFlush){let n=t.completed;if(s!==n.critical.droppable.type)return A;let r=pU(n.impact)===o,i=!!(n.impact.at&&"COMBINE"===n.impact.at.type),a=n.critical.droppable.id===o;if(r)return i?e:A;if(a)return e}return A}},{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},(e,A,t)=>({...mG(t),...e,...A}),{context:BX,areStatePropsEqual:mB})(e=>{var A;let t=(0,fy.useContext)(B0);t||gU();let{contextId:n,isMovementAllowed:r}=t,i=(0,fy.useRef)(null),o=(0,fy.useRef)(null),{children:s,droppableId:a,type:l,mode:c,direction:u,ignoreContainerClipping:d,isDropDisabled:h,isCombineEnabled:f,snapshot:g,useClone:p,updateViewportMaxScroll:B,getContainerForClone:m}=e,w=gM(()=>i.current,[]),y=gM((e=null)=>{i.current=e},[]),x=gM(()=>o.current,[]),C=gM((e=null)=>{o.current=e},[]);A={props:e,getDroppableRef:w,getPlaceholderRef:x},B3(()=>{mO(A,mN),"standard"===A.props.mode&&mO(A,mP),"virtual"===A.props.mode&&mO(A,m_)});let b=gM(()=>{r()&&B({maxScroll:Bm()})},[r,B]);!function(e){let A=(0,fy.useRef)(null),t=mg(B0),n=BZ("droppable"),{registry:r,marshal:i}=t,o=B5(e),s=gT(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),a=(0,fy.useRef)(s),l=gT(()=>gq((e,t)=>{A.current||gU(),i.updateDroppableScroll(s.id,{x:e,y:t})}),[s.id,i]),c=gM(()=>{let e=A.current;return e&&e.env.closestScrollable?mI(e.env.closestScrollable):gO},[]),u=gM(()=>{let e=c();l(e.x,e.y)},[c,l]),d=gT(()=>gy(u),[u]),h=gM(()=>{let e=A.current,t=mD(e);(e&&t||gU(),e.scrollOptions.shouldPublishImmediately)?u():d()},[d,u]),f=gM((e,n)=>{A.current&&gU();let r=o.current,i=r.getDroppableRef();i||gU();let a={closestScrollable:mE(i),isFixedOnPage:mS(i)},l={ref:i,descriptor:s,env:a,scrollOptions:n};A.current=l;let c=(({ref:e,descriptor:A,env:t,windowScroll:n,direction:r,isDropDisabled:i,isCombineEnabled:o,shouldClipSubject:s})=>{let a=t.closestScrollable,l=((e,A)=>{let t=gw(e);if(!A||e!==A)return t;let n=t.paddingBox.top-A.scrollTop,r=t.paddingBox.left-A.scrollLeft,i=n+A.scrollHeight;return gf({borderBox:gu({top:n,right:r+A.scrollWidth,bottom:i,left:r},t.border),margin:t.margin,border:t.border,padding:t.padding})})(e,a),c=gB(l,n),u=(()=>{if(!a)return null;let e=gw(a),A={scrollHeight:a.scrollHeight,scrollWidth:a.scrollWidth};return{client:e,page:gB(e,n),scroll:mI(a),scrollSize:A,shouldClipSubject:s}})();return(({descriptor:e,isEnabled:A,isCombineEnabled:t,isFixedOnPage:n,direction:r,client:i,page:o,closest:s})=>{let a=(()=>{if(!s)return null;let{scrollSize:e,client:A}=s,t=Bp({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:A.paddingBox.height,width:A.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:A,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:t,diff:{value:gO,displacement:gO}}}})(),l="vertical"===r?pr:pi,c=gY({page:o,withPlaceholder:null,axis:l,frame:a});return{descriptor:e,isCombineEnabled:t,isFixedOnPage:n,axis:l,isEnabled:A,client:i,page:o,frame:a,subject:c}})({descriptor:A,isEnabled:!i,isCombineEnabled:o,isFixedOnPage:t.isFixedOnPage,direction:r,client:l,page:c,closest:u})})({ref:i,descriptor:s,env:a,windowScroll:e,direction:r.direction,isDropDisabled:r.isDropDisabled,isCombineEnabled:r.isCombineEnabled,shouldClipSubject:!r.ignoreContainerClipping}),u=a.closestScrollable;return u&&(u.setAttribute(BO.contextId,t.contextId),u.addEventListener("scroll",h,mH(l.scrollOptions))),c},[t.contextId,s,h,o]),g=gM(()=>{let e=A.current,t=mD(e);return e&&t||gU(),mI(t)},[]),p=gM(()=>{let e=A.current;e||gU();let t=mD(e);A.current=null,t&&(d.cancel(),t.removeAttribute(BO.contextId),t.removeEventListener("scroll",h,mH(e.scrollOptions)))},[h,d]),B=gM(e=>{let t=A.current;t||gU();let n=mD(t);n||gU(),n.scrollTop+=e.y,n.scrollLeft+=e.x},[]),m=gT(()=>({getDimensionAndWatchScroll:f,getScrollWhileDragging:g,dragStopped:p,scroll:B}),[p,f,g,B]),w=gT(()=>({uniqueId:n,descriptor:s,callbacks:m}),[m,s,n]);BP(()=>(a.current=w.descriptor,r.droppable.register(w),()=>{A.current&&p(),r.droppable.unregister(w)}),[m,s,p,w,i,r.droppable]),BP(()=>{A.current&&i.updateDroppableIsEnabled(a.current.id,!e.isDropDisabled)},[e.isDropDisabled,i]),BP(()=>{A.current&&i.updateDroppableIsCombineEnabled(a.current.id,e.isCombineEnabled)},[e.isCombineEnabled,i])}({droppableId:a,type:l,mode:c,direction:u,isDropDisabled:h,isCombineEnabled:f,ignoreContainerClipping:d,getDroppableRef:w});let v=gT(()=>fy.default.createElement(mK,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:e,data:A,animate:t})=>fy.default.createElement(mT,{placeholder:A,onClose:e,innerRef:C,animate:t,contextId:n,onTransitionEnd:b})),[n,b,e.placeholder,e.shouldAnimatePlaceholder,C]),Q=gT(()=>({innerRef:y,placeholder:v,droppableProps:{"data-rfd-droppable-id":a,"data-rfd-droppable-context-id":n}}),[n,a,v,y]),F=p?p.dragging.draggableId:null,U=gT(()=>({droppableId:a,type:l,isUsingCloneFor:F}),[a,F,l]);return fy.default.createElement(mh.Provider,{value:U},s(Q,g),function(){if(!p)return null;let{dragging:e,render:A}=p,t=fy.default.createElement(mC,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(t,n)=>A(t,n,e));return oZ.default.createPortal(t,m())}())}),m$=({check:e,selected:A,onSelect:t,onMarkAsApproved:n})=>{let{featureToggles:r}=(0,AC.useRecceInstanceContext)(),i=(0,AH.useQueryClient)(),o=e.check_id,{mutate:s}=AD({mutationFn:e=>AN(o,e),onSuccess:async()=>{await i.invalidateQueries({queryKey:AL.cacheKeys.check(o)}),await i.invalidateQueries({queryKey:AL.cacheKeys.checks()})}}),{run:a}=n1(e.last_run?.run_id),l=(0,n0.findByRunType)(e.type).icon,c=fp(e.type,a)||r.disableUpdateChecklist,u=fp(e.type,a);return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(v.Flex,{width:"100%",p:"10px 20px",cursor:"pointer",_hover:{bg:"Cornsilk"},bg:A?"Floralwhite":"inherit",borderBlockEndWidth:"1px",borderLeftWidth:"3px",borderLeftColor:A?"orange":"transparent",onClick:()=>{t(e.check_id)},alignItems:"center",gap:"5px",children:[(0,g.jsx)(U.Icon,{as:l}),(0,g.jsx)(y.Box,{flex:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",className:"no-track-pii-safe",children:e.name}),(0,g.jsx)(Aw.Tooltip,{content:u?"Run the check first":"Click to mark as approved",positioning:{placement:"top"},showArrow:!0,children:(0,g.jsx)(v.Flex,{children:(0,g.jsxs)(ch.Checkbox.Root,{checked:e.is_checked,colorPalette:"green",variant:"solid",size:"sm",onCheckedChange:e=>{e.checked?n():s({is_checked:e.checked})},disabled:c,children:[(0,g.jsx)(ch.Checkbox.HiddenInput,{}),(0,g.jsx)(ch.Checkbox.Control,{borderColor:"border.inverted",backgroundColor:c?"bg.emphasized":void 0})]})})})]})})},mX=({checks:e,selectedItem:A,onCheckSelected:t,onChecksReordered:n})=>{let[r,i]=(0,E.useState)(!1),o=(0,AH.useQueryClient)(),{mutate:s}=AD({mutationFn:e=>AN(e,{is_checked:!0}),onSuccess:async(e,A)=>{await o.invalidateQueries({queryKey:AL.cacheKeys.check(A)}),await o.invalidateQueries({queryKey:AL.cacheKeys.checks()})}}),{open:a,onOpen:l,onClose:c}=(0,A$.useDisclosure)(),{markedAsApprovedToast:u}=nZ(),d=()=>{A&&("true"===localStorage.getItem("bypassMarkAsApprovedWarning")?(s(A),u()):l())};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(md,{onDragEnd:e=>{e.destination&&n(e.source.index,e.destination.index)},children:(0,g.jsx)(mW,{droppableId:"checklist",children:n=>(0,g.jsxs)(AU.VStack,{...n.droppableProps,ref:n.innerRef,className:"no-track-pii-safe",w:"full",gap:"0",flex:"1",overflow:"auto",children:[e.map((e,n)=>(0,g.jsx)(mb,{draggableId:e.check_id,index:n,children:(n,r)=>{if(r.isDragging){let e=n.draggableProps;if(null!=e.style&&"left"in e.style){let A=e.style.left-0,t=e.style.top-80;e.style.left=A,e.style.top=t}}return(0,g.jsx)(v.Flex,{ref:n.innerRef,...n.draggableProps,...n.dragHandleProps,w:"full",children:(0,g.jsx)(m$,{check:e,selected:e.check_id===A,onSelect:t,onMarkAsApproved:d},e.check_id)})}},e.check_id)),n.placeholder]})})}),(0,g.jsx)(Az.Dialog.Root,{open:a,onOpenChange:c,placement:"center",children:(0,g.jsxs)(AW.Portal,{children:[(0,g.jsx)(Az.Dialog.Backdrop,{}),(0,g.jsx)(Az.Dialog.Positioner,{children:(0,g.jsxs)(Az.Dialog.Content,{width:"400px",children:[(0,g.jsx)(Az.Dialog.Header,{children:(0,g.jsx)(Az.Dialog.Title,{children:"Mark as Approved?"})}),(0,g.jsx)(AF.Separator,{}),(0,g.jsxs)(y.Box,{p:"16px",fontSize:"sm",gap:"16px",children:[(0,g.jsx)("p",{children:"Please ensure you have reviewed the contents of this check before marking it as approved."}),(0,g.jsxs)(ch.Checkbox.Root,{checked:r,onCheckedChange:e=>{i(!!e.checked)},fontWeight:"bold",size:"sm",pt:"8px",children:[(0,g.jsx)(ch.Checkbox.HiddenInput,{}),(0,g.jsx)(ch.Checkbox.Control,{}),(0,g.jsx)(ch.Checkbox.Label,{children:"Don't show this again"})]})]}),(0,g.jsx)(AF.Separator,{}),(0,g.jsxs)(Az.Dialog.Footer,{gap:0,children:[(0,g.jsx)(AV.Button,{variant:"outline",size:"xs",mr:2,onClick:c,children:"Cancel"}),(0,g.jsx)(AV.Button,{colorPalette:"iochmara",size:"xs",onClick:()=>{A&&(s(A),r&&localStorage.setItem("bypassMarkAsApprovedWarning","true"),u(),c())},children:"Mark as approved"})]}),(0,g.jsx)(Az.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AG.CloseButton,{size:"sm"})})]})})]})})]})},mY=()=>{let[,e]=(0,Af.useLocation)(),[,A]=(0,Af.useRoute)("/checks/:checkId"),{latestSelectedCheckId:t,setLatestSelectedCheckId:n}=(0,AK.useRecceCheckContext)(),r=(0,AH.useQueryClient)(),i=A?.checkId;(0,E.useEffect)(()=>{i&&n(i)},[i,n]);let{isLoading:o,error:s,data:a,status:l,refetch:c}=(0,e8.useQuery)({queryKey:AL.cacheKeys.checks(),queryFn:AM,refetchOnMount:!0}),u=(0,E.useCallback)(A=>{e(`/checks/${A}`)},[e]),[d,h]=(0,E.useState)(a??[]),[f,p]=(0,E.useState)(a);a!==f&&(p(a),h(a??[]));let{mutate:B}=AD({mutationFn:e=>A_(e),onSuccess:async()=>{await r.invalidateQueries({queryKey:AL.cacheKeys.checks()})}}),m=(0,E.useCallback)((e,A)=>{let t=[...d],[n]=t.splice(e,1);t.splice(A,0,n),B({source:e,destination:A}),h(t)},[d,B]);return((0,E.useEffect)(()=>{"success"===l&&!i&&a.length>0&&(t?e(`/checks/${t}`):e(`/checks/${a[0].check_id}`))},[l,i,a,e,t]),o)?(0,g.jsx)(g.Fragment,{}):s?(0,g.jsxs)(g.Fragment,{children:["Error: ",(0,g.jsx)("span",{className:"no-track-pii-safe",children:s.message})]}):a?.length?(0,g.jsxs)(ta,{style:{height:"100%"},minSize:50,sizes:[20,80],children:[(0,g.jsx)(y.Box,{borderRight:"lightgray solid 1px",height:"100%",style:{contain:"size"},children:(0,g.jsxs)(AU.VStack,{gap:0,h:"100%",style:{contain:"strict"},alignItems:"stretch",children:[(0,g.jsx)(v.Flex,{justifyContent:"right",padding:"0px 10px",children:(0,g.jsx)(AJ,{checksOnly:!0})}),(0,g.jsx)(AF.Separator,{}),(0,g.jsx)(mX,{checks:d,selectedItem:i,onCheckSelected:u,onChecksReordered:m})]})}),(0,g.jsx)(y.Box,{height:"100%",children:(0,g.jsx)(Af.Switch,{children:(0,g.jsx)(Af.Route,{path:"/checks/:checkId",children:e=>(0,g.jsx)(fB,{checkId:e.checkId,refreshCheckList:c},e.checkId)})})})]}):(0,g.jsxs)(ta,{style:{height:"100%"},minSize:50,sizes:[20,80],children:[(0,g.jsx)(y.Box,{borderRight:"lightgray solid 1px",height:"100%",style:{contain:"size"},children:(0,g.jsxs)(AU.VStack,{gap:0,h:"100%",style:{contain:"strict"},alignItems:"stretch",children:[(0,g.jsx)(v.Flex,{justifyContent:"flex-end",padding:"0px 10px",children:(0,g.jsx)(AJ,{checksOnly:!0})}),(0,g.jsx)(AF.Separator,{}),(0,g.jsx)(AQ.Center,{h:"100%",children:(0,g.jsx)(y.Box,{textAlign:"center",color:"gray.500",children:"No checks"})})]})}),(0,g.jsx)(y.Box,{children:(0,g.jsx)(AQ.Center,{h:"100%",children:(0,g.jsx)(fw,{})})})]})},mJ=e=>(0,g.jsx)(AQ.Center,{height:"100%",backgroundColor:"gray.50",children:(0,g.jsxs)(v.Flex,{p:4,direction:"column",justifyContent:"flex-start",backgroundColor:"white",border:"solid lightgray 1px",minHeight:"200px",children:[(0,g.jsx)(Q.Heading,{width:"800px",size:"md",children:"You have encountered an error"}),(0,g.jsx)(y.Box,{flex:"1",fontSize:"10pt",children:String(e.error)}),(0,g.jsx)(AV.Button,{justifySelf:"center",alignSelf:"center",mt:"20px",colorPalette:"blue",size:"sm",onClick:()=>{e.resetError()},children:"Reset"})]})}),mq=({children:e})=>(0,g.jsx)(oy,{fallback:mJ,children:e});e.s([],69238),e.i(69238),e.s([],40617),e.i(40617);let[mZ,m0]=(0,L.createContext)({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),m1=e=>e.children(m0()),m2=(0,E.forwardRef)((e,A)=>{let t=m0(),n=(0,H.mergeProps)(t.getControlProps(),e);return(0,g.jsx)(D.ark.span,{...n,ref:A})});m2.displayName="SwitchControl";var m4=e.i(40292);let m3=(0,E.forwardRef)((e,A)=>{let t=m0(),n=(0,H.mergeProps)(t.getHiddenInputProps(),e),r=(0,m4.useFieldContext)();return(0,g.jsx)(D.ark.input,{"aria-describedby":r?.ariaDescribedby,...n,ref:A})});m3.displayName="SwitchHiddenInput";let m5=(0,E.forwardRef)((e,A)=>{let t=m0(),n=(0,H.mergeProps)(t.getLabelProps(),e);return(0,g.jsx)(D.ark.span,{...n,ref:A})});m5.displayName="SwitchLabel";var m6=e.i(93424);let m8=(0,E.forwardRef)((e,A)=>{let[t,n]=(0,V.createSplitProps)()(e,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),r=(e=>{let A=(0,E.useId)(),{getRootNode:t}=(0,W.useEnvironmentContext)(),{dir:n}=(0,$.useLocaleContext)(),r=(0,m4.useFieldContext)(),i={id:A,ids:{label:r?.ids.label,hiddenInput:r?.ids.control},dir:n,disabled:r?.disabled,readOnly:r?.readOnly,invalid:r?.invalid,required:r?.required,getRootNode:t,...e},o=(0,z.useMachine)(m6.machine,i);return m6.connect(o,z.normalizeProps)})(t),i=(0,H.mergeProps)(r.getRootProps(),n);return(0,g.jsx)(mZ,{value:r,children:(0,g.jsx)(D.ark.label,{...i,ref:A})})});m8.displayName="SwitchRoot";let m7=(0,E.forwardRef)((e,A)=>{let[{value:t},n]=(0,V.createSplitProps)()(e,["value"]),r=(0,H.mergeProps)(t.getRootProps(),n);return(0,g.jsx)(mZ,{value:t,children:(0,g.jsx)(D.ark.label,{...r,ref:A})})});m7.displayName="SwitchRootProvider";let m9=(0,E.forwardRef)((e,A)=>{let t=m0(),n=(0,H.mergeProps)(t.getThumbProps(),e);return(0,g.jsx)(D.ark.span,{...n,ref:A})});m9.displayName="SwitchThumb",e.s(["Context",()=>m1,"Control",()=>m2,"HiddenInput",()=>m3,"Label",()=>m5,"Root",()=>m8,"RootProvider",()=>m7,"Thumb",()=>m9],44056);var we=e.i(44056),we=we,wA=e.i(14243);let{withProvider:wt,withContext:wn,useStyles:wr,PropsProvider:wi}=(0,eA.createSlotRecipeContext)({key:"switch"}),wo=wt(we.RootProvider,"root",{forwardAsChild:!0}),ws=wt(we.Root,"root",{forwardAsChild:!0}),wa=wn(we.Label,"label",{forwardAsChild:!0}),wl=wn(we.Thumb,"thumb",{forwardAsChild:!0}),wc=wn(we.Control,"control",{forwardAsChild:!0,defaultProps:{children:(0,g.jsx)(wl,{})}}),wu=(0,E.forwardRef)(function(e,A){let t=m0(),n=wr(),{fallback:r,children:i,unstyled:o,...s}=e;return(0,g.jsx)(I.chakra.span,{ref:A,"data-checked":(0,wA.dataAttr)(t.checked),...s,css:[o?void 0:n.indicator,e.css],children:t.checked?i:r})}),wd=(0,E.forwardRef)(function(e,A){let t=m0(),{fallback:n,children:r,...i}=e;return(0,g.jsx)(I.chakra.span,{ref:A,"data-checked":(0,wA.dataAttr)(t.checked),...i,children:t.checked?r:n})}),wh=we.Context,wf=we.HiddenInput;e.s(["Context",()=>wh,"Control",()=>wc,"HiddenInput",()=>wf,"Indicator",()=>wu,"Label",()=>wa,"PropsProvider",()=>wi,"Root",()=>ws,"RootProvider",()=>wo,"Thumb",()=>wl,"ThumbIndicator",()=>wd],20548);var wg=e.i(20548),wg=wg;function wp(){let{data:e}=(0,e8.useQuery)({queryKey:AL.cacheKeys.instanceInfo(),queryFn:fe.getRecceInstanceInfo});return(0,g.jsx)("div",{className:"flex flex-1 h-full min-h-0 m-2 p-4 bg-blue-50 rounded-lg shadow-md justify-center",children:(0,g.jsxs)("div",{className:"w-4/5 flex flex-col overflow-y-auto gap-6 px-8 pb-8",children:[(0,g.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,g.jsx)("div",{className:"p-2 bg-white rounded-full flex items-center justify-center shadow-md",children:(0,g.jsx)(U.Icon,{as:l$,boxSize:7,color:"blue.500"})}),(0,g.jsx)(Q.Heading,{mt:"4",size:"lg",children:"Wait, there's more!"}),(0,g.jsxs)(e6.Text,{fontSize:"md",textAlign:"center",children:["Query functions disabled without a"," ",(0,g.jsx)(e6.Text,{fontWeight:"bold",as:"span",children:"data warehouse connection"})]})]}),(0,g.jsx)("div",{className:"w-1/2 flex flex-col mt-6 mx-auto",children:(0,g.jsx)(AV.Button,{colorPalette:"blue",size:"lg",onClick:()=>{window.open(fA(e),"_blank")},children:"Connect to Data Warehouse"})})]})})}let wB=()=>{let{isCustomQueries:e,setCustomQueries:A,sqlQuery:t,setBaseSqlQuery:n}=(0,ct.useRecceQueryContext)();return(0,g.jsxs)(y.Box,{children:[(0,g.jsxs)(v.Flex,{fontSize:"0.75rem",gap:1,alignItems:"center",children:["Custom Queries"," ",(0,g.jsx)(Aw.Tooltip,{content:"Custom queries allow you to use two SQL queries to compare results between current and base environments.",children:(0,g.jsx)(AX.PiInfoFill,{color:"gray.600",fontSize:"1rem"})})]}),(0,g.jsxs)(wg.Root,{size:"sm",colorPalette:"iochmara",checked:e,onCheckedChange:()=>{!e&&n&&n(t),A(!e)},children:[(0,g.jsx)(wg.HiddenInput,{}),(0,g.jsx)(wg.Control,{}),(0,g.jsx)(wg.Label,{})]})]})},wm=()=>{let{sqlQuery:e,baseSqlQuery:A,setSqlQuery:t,setBaseSqlQuery:n,primaryKeys:r,setPrimaryKeys:i,isCustomQueries:o}=(0,ct.useRecceQueryContext)(),{lineageGraph:s,envInfo:a}=(0,AY.useLineageGraphContext)(),{featureToggles:l,singleEnv:c}=(0,AC.useRecceInstanceContext)(),u=e;a?.adapterType==="sqlmesh"&&e===ct.defaultSqlQuery&&(u="select * from db.mymodel"),"read only"===l.mode&&(u=`--- Would like to do query here? Book a demo with us at ${t4.RECCE_SUPPORT_CALENDAR_URL}
|
|
110
|
+
${u}`);let{showRunId:d}=(0,lQ.useRecceActionContext)(),{mutate:h,isPending:f}=AD({mutationFn:async e=>{let t="query_base"===e?A??"":u,n=function(e){switch(e){case"query":return cH;case"query_base":return cD;case"query_diff":return cL;default:throw Error(`Unknown query type: ${e}`)}}(e),i={sql_template:t};"query_diff"===e&&(i.primary_keys=r,o&&(i.base_sql_template=A));let{run_id:s}=await n(i,{nowait:!0});return d(s),await (0,t5.waitRun)(s)}}),p=(0,E.useMemo)(()=>{let e={};if(!s)return"N/A";for(let A in s.nodes){let t=s.nodes[A].data.data.current?.schema;t&&(e[t]=(e[t]||0)+1)}return Object.keys(e).reduce((A,t)=>e[t]>(e[A]||0)?t:A,"N/A")},[s]);return c||"metadata only"===l.mode?(0,g.jsxs)(v.Flex,{direction:"column",height:"100%",children:[(0,g.jsxs)(v.Flex,{justifyContent:"right",alignItems:"center",padding:"4pt 8pt",gap:"5px",height:"54px",borderBottom:"1px solid lightgray",children:[(0,g.jsx)(cf,{}),(0,g.jsx)(ef.Spacer,{}),c?(0,g.jsx)(Aw.Tooltip,{content:"Please configure the base environment before running the diff",positioning:{placement:"left"},children:(0,g.jsx)(AV.Button,{colorPalette:"iochmara",disabled:!0,size:"xs",fontSize:"14px",marginTop:"16px",children:"Run Diff"})}):(0,g.jsx)(t3,{display:"metadata only"===l.mode,children:(0,g.jsx)(AV.Button,{colorPalette:"iochmara",disabled:!0,size:"xs",fontSize:"14px",marginTop:"16px",children:"Run Diff"})})]}),(0,g.jsx)(ib,{value:u,onChange:t,onRun:()=>{h("query")},labels:["base (production)",`current (${p})`],SetupGuide:"metadata only"===l.mode?(0,g.jsx)(wp,{}):(0,g.jsx)(fn,{})})]}):(0,g.jsxs)(v.Flex,{direction:"column",height:"100%",children:[(0,g.jsxs)(v.Flex,{justifyContent:"right",alignItems:"flex-end",padding:"4pt 8pt",gap:"5px",height:"54px",borderBottom:"1px solid lightgray",flex:"0 0 54px",children:[(0,g.jsx)(cf,{}),(0,g.jsx)(wB,{}),(0,g.jsx)(ef.Spacer,{}),(0,g.jsx)(cq,{defaultPrimaryKeys:r,onPrimaryKeysChange:i}),(0,g.jsx)(AV.Button,{colorPalette:"iochmara",onClick:()=>{h("query_diff")},disabled:f||l.disableDatabaseQuery,size:"2xs",children:"Run Diff"})]}),(0,g.jsx)(y.Box,{width:"100%",flex:"1",children:o?(0,g.jsx)(ib,{value:u,baseValue:A,onChange:t,onChangeBase:n,onRun:()=>{h("query")},onRunBase:()=>{h("query_base")},onRunDiff:()=>{h("query_diff")}}):(0,g.jsx)(iC,{value:u,onChange:t,onRun:()=>{h("query")},onRunDiff:()=>{h("query_diff")}})})]})},ww=({runId:e})=>{let A,{error:t,data:n}=(0,e8.useQuery)({queryKey:AL.cacheKeys.run(e),queryFn:async()=>(0,t5.waitRun)(e)});return n&&(0,n0.runTypeHasRef)(n.type)&&(A=(0,n0.findByRunType)(n.type).RunResultView),(0,g.jsx)(ox,{error:t,run:n,RunResultView:A})};e.s([],41338),e.i(41338),e.s([],79166),e.i(79166);let[wy,wx]=(0,L.createContext)({name:"AvatarContext",hookName:"useAvatarContext",providerName:"<AvatarProvider />"}),wC=e=>e.children(wx()),wb=(0,E.forwardRef)((e,A)=>{let t=wx(),n=(0,H.mergeProps)(t.getFallbackProps(),e);return(0,g.jsx)(D.ark.span,{...n,ref:A})});wb.displayName="AvatarFallback";let wv=(0,E.forwardRef)((e,A)=>{let t=wx(),n=(0,H.mergeProps)(t.getImageProps(),e);return(0,g.jsx)(D.ark.img,{...n,ref:A})});wv.displayName="AvatarImage";var wQ=e.i(42582);let wF=(0,E.forwardRef)((e,A)=>{let[t,n]=(0,V.createSplitProps)()(e,["id","ids","onStatusChange"]),r=(e=>{let A=(0,E.useId)(),{getRootNode:t}=(0,W.useEnvironmentContext)(),{dir:n}=(0,$.useLocaleContext)(),r={id:A,dir:n,getRootNode:t,...e},i=(0,z.useMachine)(wQ.machine,r);return wQ.connect(i,z.normalizeProps)})(t),i=(0,H.mergeProps)(r.getRootProps(),n);return(0,g.jsx)(wy,{value:r,children:(0,g.jsx)(D.ark.div,{...i,ref:A})})});wF.displayName="AvatarRoot";let wU=(0,E.forwardRef)((e,A)=>{let[{value:t},n]=(0,V.createSplitProps)()(e,["value"]),r=(0,H.mergeProps)(t.getRootProps(),n);return(0,g.jsx)(wy,{value:t,children:(0,g.jsx)(D.ark.div,{...r,ref:A})})});wU.displayName="AvatarRootProvider",e.s(["Context",()=>wC,"Fallback",()=>wb,"Image",()=>wv,"Root",()=>wF,"RootProvider",()=>wU],64036);var wE=e.i(64036),wE=wE,wI=e.i(12766);let{withProvider:wS,withContext:wk,useStyles:wj,useClassNames:wH,PropsProvider:wD}=(0,eA.createSlotRecipeContext)({key:"avatar"}),wL=wS(wE.RootProvider,"root",{forwardAsChild:!0}),wR=wS(wE.Root,"root",{forwardAsChild:!0}),wT=(0,I.chakra)(wE.Fallback,{},{forwardAsChild:!0}),wM=(0,E.forwardRef)(function(e,A){let t,n,r,i=wj(),o=wH(),{name:s,...a}=e;return(0,g.jsx)(wT,{ref:A,...a,className:(0,S.cx)(e.className,o.fallback),css:[i.fallback,e.css],children:e.children||e.asChild?e.children:e.name?(n=null!=(t=e.name.trim().split(" "))[0]?t[0]:"",r=t.length>1?t[t.length-1]:"",n&&r?`${n.charAt(0)}${r.charAt(0)}`:n.charAt(0)):(0,g.jsx)(wN,{})})}),wO=wk(wE.Image,"image",{forwardAsChild:!0,defaultProps:{draggable:"false",referrerPolicy:"no-referrer"}}),wN=(0,E.forwardRef)(function(e,A){return(0,g.jsx)(I.chakra.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:"1.2em",width:"1.2em",ref:A,...e,children:(0,g.jsx)("path",{d:"M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z"})})}),wP=wE.Context;(0,E.forwardRef)(function(e,A){let t=(0,wI.useSlotRecipe)({key:"avatar"}),[n,r]=(0,E.useMemo)(()=>t.splitVariantProps(e),[e,t]);return(0,g.jsx)(wD,{value:n,children:(0,g.jsx)(cV.Group,{gap:"0",spaceX:"-3",ref:A,...r})})}),e.s(["Context",()=>wP,"Fallback",()=>wM,"Icon",()=>wN,"Image",()=>wO,"PropsProvider",()=>wD,"Root",()=>wR,"RootProvider",()=>wL],68479);var w_=e.i(68479),w_=w_,wK=e.i(31368);async function wV(){try{return(await AR.axiosClient.get("/api/users")).data}catch(e){throw console.error("Error fetching user data:",e),e}}async function wG(e){try{return(await wK.default.get(`https://api.github.com/user/${e}`)).data.avatar_url}catch(e){return console.warn("Failed to fetch GitHub avatar:",e),null}}function wz(){let{data:e,isLoading:A,error:t}=(0,e8.useQuery)({queryKey:AL.cacheKeys.user(),queryFn:wV,retry:!1}),{data:n}=(0,e8.useQuery)({queryKey:["github-avatar",e?.id],queryFn:()=>e?wG(e.id):Promise.resolve(null),enabled:!!e?.id&&"github"===e.login_type,retry:!1,staleTime:3e5}),r=(0,E.useRef)(null),i=!A&&!t&&e;return(0,g.jsxs)(tB.Menu.Root,{positioning:{getAnchorRect:()=>r.current?.getBoundingClientRect()??null},children:[(0,g.jsx)(tB.Menu.Trigger,{asChild:!0,children:A?(0,g.jsx)(y.Box,{width:"32px",height:"32px",borderRadius:"full",bg:"white",color:"brand.500",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",children:(0,g.jsx)(ld.Spinner,{size:"sm"})}):(0,g.jsxs)(w_.Root,{outlineStyle:"solid",outlineWidth:"1px",outlineColor:"white",ref:r,size:"xs",cursor:"pointer",children:[(0,g.jsx)(w_.Fallback,{name:e?.login??"U"}),n&&(0,g.jsx)(w_.Image,{src:n})]})}),(0,g.jsx)(AW.Portal,{children:(0,g.jsx)(tB.Menu.Positioner,{children:(0,g.jsxs)(tB.Menu.Content,{bg:"white",borderColor:"gray.200",boxShadow:"lg",minW:"180px",children:[(0,g.jsxs)(y.Box,{px:3,py:2,children:[A&&(0,g.jsxs)(y.Box,{display:"flex",alignItems:"center",gap:2,children:[(0,g.jsx)(e6.Text,{fontSize:"sm",color:"gray.800",children:"Loading..."}),(0,g.jsx)(ld.Spinner,{size:"sm"})]}),t&&(0,g.jsx)(e6.Text,{fontSize:"xs",color:"red.500",children:"Failed to load user information"}),i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(e6.Text,{fontWeight:"semibold",fontSize:"sm",color:"gray.800",children:e.login}),e.email&&(0,g.jsx)(e6.Text,{fontSize:"xs",color:"gray.400",children:e.email})]})]}),(0,g.jsx)(tB.Menu.Separator,{}),(0,g.jsxs)(tB.Menu.Item,{value:"recce cloud",onClick:()=>window.open("https://cloud.datarecce.io/","_blank"),children:[(0,g.jsx)(U.Icon,{as:Ar,mr:2}),"Recce Cloud"]}),(0,g.jsxs)(tB.Menu.Item,{value:"get live support",onClick:()=>window.open(t4.RECCE_SUPPORT_CALENDAR_URL,"_blank"),children:[(0,g.jsx)(U.Icon,{as:Ac,mr:2}),"Get live support"]})]})})})]})}let wW=()=>{var e;let A,{featureToggles:t}=(0,AC.useRecceInstanceContext)(),{fileName:n,cloudMode:r,isDemoSite:i,envInfo:o}=(0,AY.useLineageGraphContext)(),s=(0,A$.useDisclosure)(),a=(0,A$.useDisclosure)(),l=!n&&!r&&!i,{data:c}=(0,e8.useQuery)({queryKey:AL.cacheKeys.checks(),queryFn:AM,enabled:l}),u=void 0!=c&&c.filter(e=>!e.is_preset).length>0;e=l&&u,(0,E.useEffect)(()=>{let A=e=>{e.preventDefault()};return e&&window.addEventListener("beforeunload",A),()=>{e&&window.removeEventListener("beforeunload",A)}},[e]);let[{newFileName:d,errorMessage:h,modified:f,overwriteWithMethod:p,bypass:B},m]=(0,E.useState)({newFileName:n??"recce_state.json"}),w=(0,E.useRef)(null),{toastSuccess:x,toastError:C}={toastSuccess:e=>{Am.toaster.create({description:e,type:"success",duration:5e3,closable:!0})},toastError:(e,A)=>{let t=e;null!=A&&(t=A instanceof lg.AxiosError?`${e}. ${String(A.response?.data?.detail)}`:`${e}. ${A}`),Am.toaster.create({description:t,type:"error",duration:5e3,closable:!0})}},b=(0,AH.useQueryClient)(),Q=async(e,A)=>{if(!d)return;let t="true"===localStorage.getItem(cT.bypassSaveOverwrite);try{"save"===e?await (0,Ay.saveAs)({filename:d,overwrite:A??t}):await (0,Ay.rename)({filename:d,overwrite:A??t}),x("save"===e?"Save file successfully":"Rename file successfully"),await b.invalidateQueries({queryKey:AL.cacheKeys.lineage()}),B&&localStorage.setItem(cT.bypassSaveOverwrite,"true")}catch(A){if(A instanceof lg.AxiosError&&A.response?.status===409){m(A=>({...A,overwriteWithMethod:e})),a.onOpen();return}C("save"===e?"Save file failed":"Rename file failed",A)}finally{s.onClose()}};if(r||i)return(0,g.jsx)(g.Fragment,{});if(t.disableSaveToFile&&n){let e=o?.stateMetadata?.generated_at,t=e?hX(new Date(e)):null;A=t?`${n} (${t})`:null}return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(v.Flex,{justifyContent:"center",alignItems:"center",children:[(0,g.jsx)(y.Box,{fontWeight:"600",children:A??n??"New Instance"+(u?" (unsaved)":"")}),!t.disableSaveToFile&&(0,g.jsx)(Aw.Tooltip,{content:n?"Change Filename":"Save",openDelay:1e3,children:(0,g.jsx)(Ag.IconButton,{onClick:()=>{m({newFileName:n??"recce_state.json",modified:!n}),s.onOpen()},"aria-label":n?"Change Filename":"Save",variant:"ghost",size:"sm",colorPalette:"gray",children:(0,g.jsx)(U.Icon,{as:n?Ab.IconEdit:Ab.IconSave,boxSize:"16px",verticalAlign:"middle"})})})]}),(0,g.jsx)(Az.Dialog.Root,{open:s.open,onOpenChange:s.onClose,placement:"center",children:(0,g.jsxs)(AW.Portal,{children:[(0,g.jsx)(Az.Dialog.Backdrop,{}),(0,g.jsx)(Az.Dialog.Positioner,{children:(0,g.jsxs)(Az.Dialog.Content,{children:[(0,g.jsx)(Az.Dialog.Header,{children:(0,g.jsx)(Az.Dialog.Title,{children:n?"Change Filename":"Save File"})}),(0,g.jsx)(Az.Dialog.Body,{onKeyDown:e=>{e.stopPropagation()},children:(0,g.jsxs)(cO.Field.Root,{invalid:!!h,children:[(0,g.jsx)(cO.Field.Label,{children:"File name:"}),(0,g.jsx)(oD.Input,{ref:w,value:d,placeholder:"Enter filename",onChange:e=>{let A,t=e.target.value;t?t.endsWith(".json")?/^[a-zA-Z0-9 _-]+\.json$/.test(t)?n&&t===n&&(A="Filename is the same as the current one."):A="Invalid filename. Only alphanumeric, space, _ and - are allowed.":A="Filename must end with .json.":A="Filename cannot be empty.",m(e=>({...e,modified:!0,newFileName:t,errorMessage:A}))},onKeyDown:e=>{"Enter"===e.key?h||(n?Q("rename"):Q("save")):"Escape"===e.key&&s.onClose()}}),(0,g.jsx)(cO.Field.ErrorText,{children:h})]})}),(0,g.jsxs)(Az.Dialog.Footer,{gap:"5px",children:[(0,g.jsx)(AV.Button,{size:"sm",colorPalette:n?void 0:"blue",onClick:async()=>{await Q("save")},disabled:!d||!!h||!f,children:n?"Save as New File":"Confirm"}),n&&(0,g.jsx)(AV.Button,{size:"sm",colorPalette:"blue",onClick:async()=>{await Q("rename")},disabled:!d||!!h||!f,children:"Rename"})]}),(0,g.jsx)(Az.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AG.CloseButton,{size:"sm"})})]})})]})}),(0,g.jsx)(Az.Dialog.Root,{open:a.open,onOpenChange:a.onClose,initialFocusEl:()=>w.current,placement:"center",children:(0,g.jsxs)(AW.Portal,{children:[(0,g.jsx)(Az.Dialog.Backdrop,{}),(0,g.jsx)(Az.Dialog.Positioner,{children:(0,g.jsxs)(Az.Dialog.Content,{children:[(0,g.jsx)(Az.Dialog.Header,{children:(0,g.jsx)(Az.Dialog.Title,{children:"Overwrite File?"})}),(0,g.jsxs)(Az.Dialog.Body,{borderTop:"solid 1px lightgray",borderBottom:"solid 1px lightgray",onKeyDown:e=>{e.stopPropagation()},children:[(0,g.jsx)(y.Box,{fontSize:"12pt",children:"save"===p?"Saving a file with this name will overwrite the existing file. Are you sure you wish to continue?":"Renaming the file with this name will overwrite the existing file. Are you sure you wish to continue?"}),(0,g.jsxs)(ch.Checkbox.Root,{size:"xs",checked:B,onCheckedChange:e=>{m(A=>({...A,bypass:!!e.checked}))},children:[(0,g.jsx)(ch.Checkbox.HiddenInput,{}),(0,g.jsx)(ch.Checkbox.Control,{}),(0,g.jsx)(ch.Checkbox.Label,{fontWeight:"bold",pt:"8px",children:"Don't show this again"})]})]}),(0,g.jsxs)(Az.Dialog.Footer,{gap:"5px",children:[(0,g.jsx)(AV.Button,{variant:"outline",onClick:()=>{a.onClose(),s.onOpen(),m(e=>({...e,overwriteWithMethod:void 0}))},size:"sm",children:"Back"}),(0,g.jsx)(AV.Button,{size:"sm",colorPalette:"blue",onClick:()=>{p&&(Q(p,!0),a.onClose())},children:"Overwrite"})]}),(0,g.jsx)(Az.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AG.CloseButton,{size:"sm"})})]})})]})})]})};var w$=e.i(7880);let wX=["Processing...","Still processing, please wait...","Almost there, thanks for your patience..."];function wY(){let{successToast:e,failToast:A}=n$(),[,t]=(0,w$.useCopyToClipboard)(),{authed:n}=(0,AC.useRecceInstanceContext)(),{shareUrl:r,isLoading:i,error:o,handleShareClick:s}=(0,h$.useRecceShareStateContext)(),[a,l]=(0,E.useState)(!1),[c,u]=(0,E.useState)(0),[d,h]=(0,E.useState)(i);i!==d&&(h(i),i&&u(0)),(0,w$.useInterval)(()=>{u(e=>Math.min(e+1,wX.length-1))},i?3e4:null);let f=async()=>{try{await t(String(r)),e("Copied the link to clipboard")}catch(e){A("Failed to copy the link",e)}};return n?(0,g.jsxs)(v.Flex,{flex:"1",alignItems:"center",gap:"5px",children:[(0,g.jsxs)(AV.Button,{size:"xs",variant:"outline",colorPalette:"gray",onClick:async()=>{await s(),(0,Ax.trackShareState)({name:"create"})},loading:i,children:[(0,g.jsx)(cZ.TbCloudUpload,{})," Share"," ",r?(0,g.jsx)(AX.PiCheckCircle,{color:"green"}):void 0]}),i&&(0,g.jsx)(e6.Text,{fontSize:"14",color:"gray.500",children:wX[c]}),(0,g.jsxs)(v.Flex,{gap:"5px",alignItems:"center",children:[r&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(v.Flex,{overflowX:"auto",whiteSpace:"nowrap",maxWidth:"350px",children:(0,g.jsx)(e6.Text,{fontSize:"14",children:r})}),(0,g.jsx)(Ag.IconButton,{size:"2xs","aria-label":"Copy the share URL",onClick:async()=>{await f(),(0,Ax.trackShareState)({name:"copy"})},children:(0,g.jsx)(AX.PiCopy,{})})]}),o&&(0,g.jsx)(e6.Text,{fontSize:"14",color:"red.500",children:o})]})]}):(0,g.jsxs)(v.Flex,{flex:"1",alignItems:"center",children:[(0,g.jsxs)(AV.Button,{size:"xs",colorPalette:"gray",variant:"outline",onClick:()=>{l(!0)},children:[(0,g.jsx)(cZ.TbCloudUpload,{})," Share"]}),a&&(0,g.jsx)(hW,{parentOpen:a,handleParentClose:l,ignoreCookie:!0,variant:"enable-share"})]})}e.s([],63839),e.i(63839),e.s([],27565),e.i(27565);let[wJ,wq]=(0,L.createContext)({name:"RadioGroupContext",hookName:"useRadioGroupContext",providerName:"<RadioGroupProvider />"}),wZ=e=>e.children(wq()),w0=(0,E.forwardRef)((e,A)=>{let t=wq(),n=(0,H.mergeProps)(t.getIndicatorProps(),e);return(0,g.jsx)(D.ark.div,{...n,ref:A})});w0.displayName="RadioGroupIndicator";let[w1,w2]=(0,L.createContext)({name:"RadioGroupItemContext",hookName:"useRadioGroupItemContext",providerName:"<RadioGroupItemProvider />"}),[w4,w3]=(0,L.createContext)({name:"RadioGroupItemPropsContext",hookName:"useRadioGroupItemPropsContext",providerName:"<RadioGroupItemPropsProvider />"}),w5=(0,E.forwardRef)((e,A)=>{let[t,n]=(0,V.createSplitProps)()(e,["value","disabled","invalid"]),r=wq(),i=(0,H.mergeProps)(r.getItemProps(t),n),o=r.getItemState(t);return(0,g.jsx)(w1,{value:o,children:(0,g.jsx)(w4,{value:t,children:(0,g.jsx)(D.ark.label,{...i,ref:A})})})});w5.displayName="RadioGroupItem";let w6=e=>e.children(w2()),w8=(0,E.forwardRef)((e,A)=>{let t=wq(),n=w3(),r=(0,H.mergeProps)(t.getItemControlProps(n),e);return(0,g.jsx)(D.ark.div,{...r,ref:A})});w8.displayName="RadioGroupItemControl";let w7=(0,E.forwardRef)((e,A)=>{let t=wq(),n=w3(),r=(0,H.mergeProps)(t.getItemHiddenInputProps(n),e);return(0,g.jsx)(D.ark.input,{...r,ref:A})});w7.displayName="RadioGroupItemHiddenInput";let w9=(0,E.forwardRef)((e,A)=>{let t=wq(),n=w3(),r=(0,H.mergeProps)(t.getItemTextProps(n),e);return(0,g.jsx)(D.ark.span,{...r,ref:A})});w9.displayName="RadioGroupItemText";let ye=(0,E.forwardRef)((e,A)=>{let t=wq(),n=(0,H.mergeProps)(t.getLabelProps(),e);return(0,g.jsx)(D.ark.label,{...n,ref:A})});ye.displayName="RadioGroupLabel";var yA=e.i(96019);let yt=(0,E.forwardRef)((e,A)=>{let[t,n]=(0,V.createSplitProps)()(e,["defaultValue","disabled","form","id","ids","name","onValueChange","orientation","readOnly","value"]),r=(e=>{let A=(0,E.useId)(),{getRootNode:t}=(0,W.useEnvironmentContext)(),{dir:n}=(0,$.useLocaleContext)(),r={id:A,dir:n,getRootNode:t,...e},i=(0,z.useMachine)(yA.machine,r);return yA.connect(i,z.normalizeProps)})(t),i=(0,H.mergeProps)(r.getRootProps(),n);return(0,g.jsx)(wJ,{value:r,children:(0,g.jsx)(D.ark.div,{...i,ref:A})})});yt.displayName="RadioGroupRoot";let yn=(0,E.forwardRef)((e,A)=>{let[{value:t},n]=(0,V.createSplitProps)()(e,["value"]),r=(0,H.mergeProps)(t.getRootProps(),n);return(0,g.jsx)(wJ,{value:t,children:(0,g.jsx)(D.ark.div,{...r,ref:A})})});yn.displayName="RadioGroupRootProvider",e.s(["Context",()=>wZ,"Indicator",()=>w0,"Item",()=>w5,"ItemContext",()=>w6,"ItemControl",()=>w8,"ItemHiddenInput",()=>w7,"ItemText",()=>w9,"Label",()=>ye,"Root",()=>yt,"RootProvider",()=>yn],64178);var yr=e.i(64178),yr=yr;let yi=(0,E.forwardRef)(function(e,A){let t=(0,cP.useRecipe)({key:"radiomark",recipe:e.recipe}),[n,r]=t.splitVariantProps(e),{checked:i,disabled:o,unstyled:s,children:a,...l}=r,c=s?cN.EMPTY_STYLES:t(n),u={ref:A,"data-checked":(0,wA.dataAttr)(i),"data-disabled":(0,wA.dataAttr)(o),...l,css:[c,e.css]};return(0,g.jsx)(I.chakra.span,{...u,children:i&&(0,g.jsx)("span",{className:"dot"})})});yi.displayName="Radiomark";let{withProvider:yo,withContext:ys,useStyles:ya,PropsProvider:yl}=(0,eA.createSlotRecipeContext)({key:"radioGroup"}),yc=yo(yr.RootProvider,"root",{forwardAsChild:!0}),yu=yo(yr.Root,"root",{forwardAsChild:!0}),yd=ys(yr.Label,"label",{forwardAsChild:!0}),yh=ys(yr.Item,"item",{forwardAsChild:!0}),yf=ys(yr.ItemText,"itemText",{forwardAsChild:!0}),yg=ys(yr.ItemControl,"itemControl",{forwardAsChild:!0}),yp=(0,E.forwardRef)(function(e,A){let t=ya();return(0,g.jsx)(yr.ItemContext,{children:n=>(0,g.jsx)(yr.ItemControl,{asChild:!0,children:(0,g.jsx)(yi,{ref:A,unstyled:!0,...e,checked:n.checked,disabled:n.disabled,css:[t.itemControl,e.css]})})})}),yB=yr.Context,ym=yr.ItemContext,yw=yr.ItemHiddenInput;e.s(["Context",()=>yB,"Item",()=>yh,"ItemContext",()=>ym,"ItemControl",()=>yg,"ItemHiddenInput",()=>yw,"ItemIndicator",()=>yp,"ItemText",()=>yf,"Label",()=>yd,"PropsProvider",()=>yl,"Root",()=>yu,"RootProvider",()=>yc],6436);var yy=e.i(6436),yy=yy,yx=e.i(30520);function yC(){return(0,g.jsx)(Aw.Tooltip,{content:"Syncing",children:(0,g.jsx)(y.Box,{mx:"10px",children:(0,g.jsx)(ld.Spinner,{size:"sm"})})})}function yb(){let[e,A]=(0,E.useState)(!1),t=(0,AH.useQueryClient)(),[n,r]=(0,Af.useLocation)(),{open:i,onOpen:o,onClose:s}=(0,A$.useDisclosure)(),[a,l]=(0,E.useState)(""),{data:c}=(0,yx.useRecceInstanceInfo)(),u=(0,E.useCallback)(async e=>{if(s(),A(!0),"conflict"===(await (0,Ay.syncState)(e)).status){o(),A(!1);return}for(;await (0,Ay.isStateSyncing)();)await new Promise(e=>setTimeout(e,1e3));Am.toaster.create({description:"Sync Completed",type:"success",duration:5e3,closable:!0}),A(!1),l(""),await t.invalidateQueries({queryKey:AL.cacheKeys.lineage()}),await t.invalidateQueries({queryKey:AL.cacheKeys.checks()}),await t.invalidateQueries({queryKey:AL.cacheKeys.runs()}),/^\/checks\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/.test(n)&&r("/checks")},[t,n,r,o,s]);return e?(0,g.jsx)(yC,{}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Aw.Tooltip,{content:"Sync with Cloud",children:(0,g.jsx)(Ag.IconButton,{size:"sm",variant:"plain","aria-label":"Sync state",onClick:()=>u(c?.session_id?{method:"merge"}:{}),children:(0,g.jsx)(U.Icon,{as:Ab.IconSync,verticalAlign:"middle",boxSize:"16px"})})}),(0,g.jsx)(Az.Dialog.Root,{open:i,onOpenChange:s,children:(0,g.jsxs)(AW.Portal,{children:[(0,g.jsx)(Az.Dialog.Backdrop,{}),(0,g.jsxs)(Az.Dialog.Positioner,{children:[(0,g.jsxs)(Az.Dialog.Content,{children:[(0,g.jsx)(Az.Dialog.Header,{fontSize:"lg",fontWeight:"bold",children:(0,g.jsx)(Az.Dialog.Title,{children:"Sync with Cloud"})}),(0,g.jsxs)(Az.Dialog.Body,{children:[(0,g.jsx)(y.Box,{children:"New changes have been detected in the cloud. Please choose a method to sync your state"}),(0,g.jsx)(y.Box,{mt:"5px",children:(0,g.jsx)(yy.Root,{onValueChange:e=>{l(e.value)},value:a,children:(0,g.jsxs)(n2.Stack,{direction:"column",children:[(0,g.jsxs)(yy.Item,{value:"merge",children:[(0,g.jsx)(yy.ItemHiddenInput,{}),(0,g.jsx)(yy.ItemIndicator,{}),(0,g.jsxs)(yy.ItemText,{children:["Merge",(0,g.jsx)(Aw.Tooltip,{content:"This will merge the local and remote states.",children:(0,g.jsx)("span",{children:(0,g.jsx)(U.Icon,{as:AX.PiInfo,ml:2,cursor:"pointer"})})})]})]}),(0,g.jsxs)(yy.Item,{value:"overwrite",children:[(0,g.jsx)(yy.ItemHiddenInput,{}),(0,g.jsx)(yy.ItemIndicator,{}),(0,g.jsxs)(yy.ItemText,{children:["Overwrite",(0,g.jsx)(Aw.Tooltip,{content:"This will overwrite the remote state file with the local state.",children:(0,g.jsx)("span",{children:(0,g.jsx)(U.Icon,{as:AX.PiInfo,ml:2,cursor:"pointer"})})})]})]}),(0,g.jsxs)(yy.Item,{value:"revert",children:[(0,g.jsx)(yy.ItemHiddenInput,{}),(0,g.jsx)(yy.ItemIndicator,{}),(0,g.jsxs)(yy.ItemText,{children:["Revert",(0,g.jsx)(Aw.Tooltip,{content:"This will discard local changes and revert to the cloud state.",children:(0,g.jsx)("span",{children:(0,g.jsx)(U.Icon,{as:AX.PiInfo,ml:2,cursor:"pointer"})})})]})]})]})})})]}),(0,g.jsxs)(Az.Dialog.Footer,{children:[(0,g.jsx)(AV.Button,{onClick:s,mr:3,children:"Cancel"}),(0,g.jsx)(AV.Button,{colorPalette:"blue",onClick:()=>u({method:a||void 0}),disabled:!a,children:"Sync"})]})]}),(0,g.jsx)(Az.Dialog.CloseTrigger,{asChild:!0,children:(0,g.jsx)(AG.CloseButton,{size:"sm"})})]})]})})]})}function yv(){return(0,g.jsx)(aW,{children:(0,g.jsx)(fu,{interactive:!0})})}let yQ=function(e){var A=typeof e;return null!=e&&("object"==A||"function"==A)};var yF=e.g&&e.g.Object===Object&&e.g,yU="object"==typeof self&&self&&self.Object===Object&&self,yE=yF||yU||Function("return this")();let yI=function(){return yE.Date.now()};var yS=/\s/;let yk=function(e){for(var A=e.length;A--&&yS.test(e.charAt(A)););return A};var yj=/^\s+/,yH=yE.Symbol,yD=Object.prototype,yL=yD.hasOwnProperty,yR=yD.toString,yT=yH?yH.toStringTag:void 0;let yM=function(e){var A=yL.call(e,yT),t=e[yT];try{e[yT]=void 0;var n=!0}catch(e){}var r=yR.call(e);return n&&(A?e[yT]=t:delete e[yT]),r};var yO=Object.prototype.toString,yN=yH?yH.toStringTag:void 0;let yP=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":yN&&yN in Object(e)?yM(e):yO.call(e)},y_=function(e){return"symbol"==typeof e||null!=e&&"object"==typeof e&&"[object Symbol]"==yP(e)};var yK=0/0,yV=/^[-+]0x[0-9a-f]+$/i,yG=/^0b[01]+$/i,yz=/^0o[0-7]+$/i,yW=parseInt;let y$=function(e){if("number"==typeof e)return e;if(y_(e))return yK;if(yQ(e)){var A,t="function"==typeof e.valueOf?e.valueOf():e;e=yQ(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=(A=e)?A.slice(0,yk(A)+1).replace(yj,""):A;var n=yG.test(e);return n||yz.test(e)?yW(e.slice(2),n?2:8):yV.test(e)?yK:+e};var yX=Math.max,yY=Math.min;let yJ=function(e,A,t){var n,r,i,o,s,a,l=0,c=!1,u=!1,d=!0;if("function"!=typeof e)throw TypeError("Expected a function");function h(A){var t=n,i=r;return n=r=void 0,l=A,o=e.apply(i,t)}function f(e){var t=e-a,n=e-l;return void 0===a||t>=A||t<0||u&&n>=i}function g(){var e,t,n,r=yI();if(f(r))return p(r);s=setTimeout(g,(e=r-a,t=r-l,n=A-e,u?yY(n,i-t):n))}function p(e){return(s=void 0,d&&n)?h(e):(n=r=void 0,o)}function B(){var e,t=yI(),i=f(t);if(n=arguments,r=this,a=t,i){if(void 0===s)return l=e=a,s=setTimeout(g,A),c?h(e):o;if(u)return clearTimeout(s),s=setTimeout(g,A),h(a)}return void 0===s&&(s=setTimeout(g,A)),o}return A=y$(A)||0,yQ(t)&&(c=!!t.leading,i=(u="maxWait"in t)?yX(y$(t.maxWait)||0,A):i,d="trailing"in t?!!t.trailing:d),B.cancel=function(){void 0!==s&&clearTimeout(s),l=0,n=a=r=s=void 0},B.flush=function(){return void 0===s?o:p(yI())},B},yq=function(e,A,t){var n=!0,r=!0;if("function"!=typeof e)throw TypeError("Expected a function");return yQ(t)&&(n="leading"in t?!!t.leading:n,r="trailing"in t?!!t.trailing:r),yJ(e,A,{leading:n,maxWait:A,trailing:r})};var yZ=function(){return(yZ=Object.assign||function(e){for(var A,t=1,n=arguments.length;t<n;t++)for(var r in A=arguments[t])Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r]);return e}).apply(this,arguments)};function y0(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function y1(e){return e&&e.ownerDocument?e.ownerDocument:document}var y2=function(e){return Array.prototype.reduce.call(e,function(e,A){var t=A.name.match(/data-simplebar-(.+)/);if(t){var n=t[1].replace(/\W+(.)/g,function(e,A){return A.toUpperCase()});switch(A.value){case"true":case void 0:e[n]=!0;break;case"false":e[n]=!1;break;default:e[n]=A.value}}return e},{})};function y4(e,A){var t;e&&(t=e.classList).add.apply(t,A.split(" "))}function y3(e,A){e&&A.split(" ").forEach(function(A){e.classList.remove(A)})}function y5(e){return".".concat(e.split(" ").join("."))}var y6=!!("undefined"!=typeof window&&window.document&&window.document.createElement),y8=Object.freeze({__proto__:null,addClasses:y4,canUseDOM:y6,classNamesToQuery:y5,getElementDocument:y1,getElementWindow:y0,getOptions:y2,removeClasses:y3}),y7=null,y9=null;function xe(){if(null===y7){if("undefined"==typeof document)return y7=0;var e=document.body,A=document.createElement("div");A.classList.add("simplebar-hide-scrollbar"),e.appendChild(A);var t=A.getBoundingClientRect().right;e.removeChild(A),y7=t}return y7}y6&&window.addEventListener("resize",function(){y9!==window.devicePixelRatio&&(y9=window.devicePixelRatio,y7=null)});var xA=function(){function e(A,t){void 0===t&&(t={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var e=y0(n.el);n.scrollXTicking||(e.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(e.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,y4(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){y3(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(y4(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){y3(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(e){n.mouseX=e.clientX,n.mouseY=e.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(e){var A,t;n.axis.x.track.el&&n.axis.y.track.el&&n.axis.x.scrollbar.el&&n.axis.y.scrollbar.el&&(n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(A=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(t=n.isWithinBounds(n.axis.y.track.rect)),(A||t)&&(e.stopPropagation(),"pointerdown"===e.type&&"touch"!==e.pointerType&&(A&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(e,"x"):n.onTrackClick(e,"x")),t&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(e,"y"):n.onTrackClick(e,"y")))))},this.drag=function(A){if(n.draggedAxis&&n.contentWrapperEl){var t,r,i,o,s,a,l,c,u,d,h,f=n.axis[n.draggedAxis].track,g=null!=(r=null==(t=f.rect)?void 0:t[n.axis[n.draggedAxis].sizeAttr])?r:0,p=n.axis[n.draggedAxis].scrollbar,B=null!=(o=null==(i=n.contentWrapperEl)?void 0:i[n.axis[n.draggedAxis].scrollSizeAttr])?o:0,m=parseInt(null!=(a=null==(s=n.elStyles)?void 0:s[n.axis[n.draggedAxis].sizeAttr])?a:"0px",10);A.preventDefault(),A.stopPropagation();var w=("y"===n.draggedAxis?A.pageY:A.pageX)-(null!=(c=null==(l=f.rect)?void 0:l[n.axis[n.draggedAxis].offsetAttr])?c:0)-n.axis[n.draggedAxis].dragOffset,y=(w="x"===n.draggedAxis&&n.isRtl?(null!=(d=null==(u=f.rect)?void 0:u[n.axis[n.draggedAxis].sizeAttr])?d:0)-p.size-w:w)/(g-p.size)*(B-m);"x"===n.draggedAxis&&n.isRtl&&(y=(null==(h=e.getRtlHelpers())?void 0:h.isScrollingToNegative)?-y:y),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=y}},this.onEndDrag=function(e){n.isDragging=!1;var A=y1(n.el),t=y0(n.el);e.preventDefault(),e.stopPropagation(),y3(n.el,n.classNames.dragging),n.onStopScrolling(),A.removeEventListener("mousemove",n.drag,!0),A.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=t.setTimeout(function(){A.removeEventListener("click",n.preventClick,!0),A.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=A,this.options=yZ(yZ({},e.defaultOptions),t),this.classNames=yZ(yZ({},e.defaultOptions.classNames),t.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},"object"!=typeof this.el||!this.el.nodeName)throw Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=yq(this._onMouseMove,64),this.onWindowResize=yJ(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=yJ(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=yJ(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var A=document.createElement("div");A.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var t=A.firstElementChild,n=null==t?void 0:t.firstElementChild;if(!n)return null;document.body.appendChild(t),t.scrollLeft=0;var r=e.getOffset(t),i=e.getOffset(n);t.scrollLeft=-999;var o=e.getOffset(n);return document.body.removeChild(t),e.rtlHelpers={isScrollOriginAtZero:r.left!==i.left,isScrollingToNegative:i.left!==o.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{if(this.contentWrapperEl&&"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style)return 0;return xe()}catch(e){return xe()}},e.getOffset=function(e){var A=e.getBoundingClientRect(),t=y1(e),n=y0(e);return{top:A.top+(n.pageYOffset||t.documentElement.scrollTop),left:A.left+(n.pageXOffset||t.documentElement.scrollLeft)}},e.prototype.init=function(){y6&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var e,A;this.wrapperEl=this.el.querySelector(y5(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(y5(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(y5(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(y5(this.classNames.offset)),this.maskEl=this.el.querySelector(y5(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,y5(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(y5(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(y5(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(y5(this.classNames.track)).concat(y5(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(y5(this.classNames.track)).concat(y5(this.classNames.vertical))),this.axis.x.scrollbar.el=(null==(e=this.axis.x.track.el)?void 0:e.querySelector(y5(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=(null==(A=this.axis.y.track.el)?void 0:A.querySelector(y5(this.classNames.scrollbar)))||null,this.options.autoHide||(y4(this.axis.x.scrollbar.el,this.classNames.visible),y4(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var e,A=this,t=y0(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),null==(e=this.contentWrapperEl)||e.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var n=!1,r=t.ResizeObserver||ResizeObserver;this.resizeObserver=new r(function(){n&&t.requestAnimationFrame(function(){A.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),t.requestAnimationFrame(function(){n=!0})}this.mutationObserver=new t.MutationObserver(function(){t.requestAnimationFrame(function(){A.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var e=y0(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var A=this.contentEl.offsetWidth,t=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1||A>0,r=this.contentWrapperEl.offsetWidth,i=this.elStyles.overflowX,o=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var s=this.contentEl.scrollHeight,a=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=t?"auto":"100%",this.placeholderEl.style.width=n?"".concat(A||a,"px"):"auto",this.placeholderEl.style.height="".concat(s,"px");var l=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=0!==A&&a>A,this.axis.y.isOverflowing=s>l,this.axis.x.isOverflowing="hidden"!==i&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==o&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,u=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&a>r-u,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&s>l-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(e){if(void 0===e&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var A,t,n,r=this.contentEl[this.axis[e].scrollSizeAttr],i=null!=(t=null==(A=this.axis[e].track.el)?void 0:A[this.axis[e].offsetSizeAttr])?t:0;return n=Math.max(~~(i/r*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(n=Math.min(n,this.options.scrollbarMaxSize)),n},e.prototype.positionScrollbar=function(A){void 0===A&&(A="y");var t,n,r,i=this.axis[A].scrollbar;if(this.axis[A].isOverflowing&&this.contentWrapperEl&&i.el&&this.elStyles){var o=this.contentWrapperEl[this.axis[A].scrollSizeAttr],s=(null==(t=this.axis[A].track.el)?void 0:t[this.axis[A].offsetSizeAttr])||0,a=parseInt(this.elStyles[this.axis[A].sizeAttr],10),l=this.contentWrapperEl[this.axis[A].scrollOffsetAttr];l="x"===A&&this.isRtl&&(null==(n=e.getRtlHelpers())?void 0:n.isScrollOriginAtZero)?-l:l,"x"===A&&this.isRtl&&(l=(null==(r=e.getRtlHelpers())?void 0:r.isScrollingToNegative)?l:-l);var c=l/(o-a),u=~~((s-i.size)*c);u="x"===A&&this.isRtl?-u+(s-i.size):u,i.el.style.transform="x"===A?"translate3d(".concat(u,"px, 0, 0)"):"translate3d(0, ".concat(u,"px, 0)")}},e.prototype.toggleTrackVisibility=function(e){void 0===e&&(e="y");var A=this.axis[e].track.el,t=this.axis[e].scrollbar.el;A&&t&&this.contentWrapperEl&&(this.axis[e].isOverflowing||this.axis[e].forceVisible?(A.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(A.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?t.style.display="block":t.style.display="none")},e.prototype.showScrollbar=function(e){void 0===e&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(y4(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(e){void 0===e&&(e="y"),!this.isDragging&&this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(y3(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(e){void 0===e&&(e="y");var A=this.axis[e];A.track.el&&A.scrollbar.el&&(A.track.rect=A.track.el.getBoundingClientRect(),A.scrollbar.rect=A.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(A.track.rect)?(this.showScrollbar(e),y4(A.track.el,this.classNames.hover),this.isWithinBounds(A.scrollbar.rect)?y4(A.scrollbar.el,this.classNames.hover):y3(A.scrollbar.el,this.classNames.hover)):(y3(A.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},e.prototype.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),y3(this.axis[e].track.el,this.classNames.hover),y3(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},e.prototype.onDragStart=function(e,A){void 0===A&&(A="y"),this.isDragging=!0;var t,n=y1(this.el),r=y0(this.el),i=this.axis[A].scrollbar,o="y"===A?e.pageY:e.pageX;this.axis[A].dragOffset=o-((null==(t=i.rect)?void 0:t[this.axis[A].offsetAttr])||0),this.draggedAxis=A,y4(this.el,this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(e,A){var t,n,r,i,o=this;void 0===A&&(A="y");var s=this.axis[A];if(this.options.clickOnTrack&&s.scrollbar.el&&this.contentWrapperEl){e.preventDefault();var a=y0(this.el);this.axis[A].scrollbar.rect=s.scrollbar.el.getBoundingClientRect();var l=null!=(n=null==(t=this.axis[A].scrollbar.rect)?void 0:t[this.axis[A].offsetAttr])?n:0,c=parseInt(null!=(i=null==(r=this.elStyles)?void 0:r[this.axis[A].sizeAttr])?i:"0px",10),u=this.contentWrapperEl[this.axis[A].scrollOffsetAttr],d=("y"===A?this.mouseY-l:this.mouseX-l)<0?-1:1,h=-1===d?u-c:u+c,f=function(){o.contentWrapperEl&&(-1===d?u>h&&(u-=40,o.contentWrapperEl[o.axis[A].scrollOffsetAttr]=u,a.requestAnimationFrame(f)):u<h&&(u+=40,o.contentWrapperEl[o.axis[A].scrollOffsetAttr]=u,a.requestAnimationFrame(f)))};f()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var e=y0(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},e.prototype.findChild=function(e,A){var t=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(e){return t.call(e,A)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=y2,e.helpers=y8,e}(),xt=function(){return(xt=Object.assign||function(e){for(var A,t=1,n=arguments.length;t<n;t++)for(var r in A=arguments[t])Object.prototype.hasOwnProperty.call(A,r)&&(e[r]=A[r]);return e}).apply(this,arguments)},xn=E.forwardRef(function(e,A){var t=e.children,n=e.scrollableNodeProps,r=void 0===n?{}:n,i=function(e,A){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>A.indexOf(n)&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>A.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(t[n[r]]=e[n[r]]);return t}(e,["children","scrollableNodeProps"]),o=E.useRef(),s=E.useRef(),a=E.useRef(),l={},c={};Object.keys(i).forEach(function(e){Object.prototype.hasOwnProperty.call(xA.defaultOptions,e)?l[e]=i[e]:c[e]=i[e]});var u=xt(xt({},xA.defaultOptions.classNames),l.classNames),d=xt(xt({},r),{className:"".concat(u.contentWrapper).concat(r.className?" ".concat(r.className):""),tabIndex:l.tabIndex||xA.defaultOptions.tabIndex,role:"region","aria-label":l.ariaLabel||xA.defaultOptions.ariaLabel});return E.useEffect(function(){var e;return s.current=d.ref?d.ref.current:s.current,o.current&&(e=new xA(o.current,xt(xt(xt({},l),s.current&&{scrollableNode:s.current}),a.current&&{contentNode:a.current})),"function"==typeof A?A(e):A&&(A.current=e)),function(){null==e||e.unMount(),e=null,"function"==typeof A&&A(null)}},[]),E.createElement("div",xt({"data-simplebar":"init",ref:o},c),E.createElement("div",{className:u.wrapper},E.createElement("div",{className:u.heightAutoObserverWrapperEl},E.createElement("div",{className:u.heightAutoObserverEl})),E.createElement("div",{className:u.mask},E.createElement("div",{className:u.offset},"function"==typeof t?t({scrollableNodeRef:s,scrollableNodeProps:xt(xt({},d),{ref:s}),contentNodeRef:a,contentNodeProps:{className:u.contentEl,ref:a}}):E.createElement("div",xt({},d),E.createElement("div",{className:u.contentEl},t)))),E.createElement("div",{className:u.placeholder})),E.createElement("div",{className:"".concat(u.track," ").concat(u.horizontal)},E.createElement("div",{className:u.scrollbar})),E.createElement("div",{className:"".concat(u.track," ").concat(u.vertical)},E.createElement("div",{className:u.scrollbar})))});xn.displayName="SimpleBar";let xr=({run:e,isSelected:A,onSelectRun:t,onAddToChecklist:n,onGoToCheck:r})=>{let{featureToggles:i}=(0,AC.useRecceInstanceContext)(),{data:o}=(0,e8.useQuery)({queryKey:AL.cacheKeys.run(e.run_id),queryFn:async()=>await (0,t5.waitRun)(e.run_id),enabled:"running"===e.status,retry:!1}),s=(0,n0.findByRunType)(e.type).icon,a=e.check_id,l=i.disableUpdateChecklist;return(0,g.jsxs)(v.Flex,{minWidth:"200px",direction:"column",width:"100%",p:"5px 20px",cursor:"pointer",borderBottom:"solid 1px lightgray",borderLeft:"4px",borderLeftColor:A?"orange.400":"transparent",backgroundColor:A?"orange.50":"transparent",onClick:()=>{t(e.run_id)},_hover:{bg:A?"orange.50":"gray.200"},children:[(0,g.jsxs)(v.Flex,{onClick:()=>{},alignItems:"center",gap:"12px",children:[(0,g.jsx)(U.Icon,{as:s}),(0,g.jsx)(y.Box,{className:"no-track-pii-safe",flex:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",color:e.name?"inherit":"gray.500",fontSize:"11pt",fontWeight:"500",children:(e.name??"").trim()||"<no name>"}),a?(0,g.jsx)(Aw.Tooltip,{content:"Go to Check","aria-label":"Go to Check",children:(0,g.jsx)(e6.Text,{onClick:e=>{e.preventDefault(),e.stopPropagation(),r(a)},children:(0,g.jsx)(U.Icon,{color:"green",as:At})})}):l?null:(0,g.jsx)(Aw.Tooltip,{content:"Add to Checklist","aria-label":"Add to Checklist",children:(0,g.jsx)(e6.Text,{onClick:A=>{A.preventDefault(),A.stopPropagation(),(0,Ax.trackHistoryAction)({name:"add_to_checklist"}),n(e.run_id)},children:(0,g.jsx)(U.Icon,{as:Au})})})]}),(0,g.jsx)(v.Flex,{justifyContent:"start",fontSize:"11pt",color:"gray.500",gap:"3px",alignItems:"center",children:(0,g.jsx)(hY,{run:o??e})})]})},xi=({runAt:e})=>{var A;let t,n,r=e?(A=new Date(e),t=new Date,((n=new Date).setDate(t.getDate()-1),null==A)?null:t.toDateString()===A.toDateString()?"Today":n.toDateString()===A.toDateString()?"Yesterday":(0,Ap.format)(A,"MMM d")):null;return(0,g.jsx)(v.Flex,{minWidth:"200px",width:"100%",p:"5px 20px",borderBottom:"solid 1px lightgray",color:"gray.500",fontSize:"11pt",children:r})},xo=()=>{let{closeHistory:e}=(0,lQ.useRecceActionContext)(),{data:A,isLoading:t}=(0,e8.useQuery)({queryKey:AL.cacheKeys.runs(),queryFn:async()=>await (0,t5.listRuns)(),retry:!1});return(0,g.jsxs)(v.Flex,{direction:"column",height:"100%",children:[(0,g.jsxs)(F.HStack,{width:"100%",flex:"0 0 54px",paddingInline:"24px 8px",borderBottom:"solid 1px lightgray",children:[(0,g.jsx)(Q.Heading,{size:"md",children:"History"}),(0,g.jsx)(ef.Spacer,{}),(0,g.jsx)(Ag.IconButton,{variant:"ghost","aria-label":"Close History",onClick:()=>{(0,Ax.trackHistoryAction)({name:"hide"}),e()},children:(0,g.jsx)(AX.PiX,{})})]}),(0,g.jsx)(y.Box,{flex:"1 1 auto",children:t?"Loading...":A?.length===0?(0,g.jsx)(AQ.Center,{height:"100%",color:"gray.400",children:"No runs"}):(0,g.jsx)(xn,{style:{minHeight:"100%",height:0},children:(A??[]).map((e,t)=>{if(null!=A){let n=0===t?null:new Date(A[t-1].run_at).toDateString();return(0,g.jsx)(xs,{run:e,previousDate:n},e.run_id)}})})})]})};function xs({run:e,previousDate:A}){let[,t]=(0,Af.useLocation)(),n=(0,AH.useQueryClient)(),{showRunId:r,runId:i}=(0,lQ.useRecceActionContext)(),o=new Date(e.run_at).toDateString(),s=(0,E.useCallback)(async()=>{if(!i)return;let e=await AT(i);await n.invalidateQueries({queryKey:AL.cacheKeys.checks()}),t(`/checks/${e.check_id}`)},[i,t,n]),a=(0,E.useCallback)(e=>{(0,Ax.trackHistoryAction)({name:"go_to_check"}),t(`/checks/${e}`)},[t]);return(0,g.jsxs)(E.default.Fragment,{children:[null!=A&&A!==o&&(0,g.jsx)(xi,{runAt:e.run_at},o),(0,g.jsx)(xr,{run:e,isSelected:e.run_id===i,onSelectRun:e=>{(0,Ax.trackHistoryAction)({name:"click_run"}),r(e,!1)},onGoToCheck:a,onAddToChecklist:s},e.run_id)]})}let xa=e=>`The server will be closed in ${e} seconds.`,xl=({children:e,path:A})=>{let[t]=(0,Af.useRoute)(A);return(0,g.jsx)(y.Box,{display:t?"block":"none",height:"100%",children:e})};function xc({icon:e,href:A,...t}){return(0,g.jsx)(j.Link,{height:"20px",color:"white",href:A,target:"_blank",...t,children:(0,g.jsx)(U.Icon,{color:"white",boxSize:"20px",as:e})})}function xu(){let{version:e,latestVersion:A}=function(){let[e,A]=(0,E.useState)(""),[t,n]=(0,E.useState)("");return(0,E.useEffect)(()=>{!async function(){try{let{version:e,latestVersion:t}=(await AR.axiosClient.get("/api/version")).data;A(e),n(t)}catch(e){console.error("Error fetching version number:",e)}}()},[]),{version:e,latestVersion:t}}(),t=(0,E.useMemo)(()=>RegExp("^\\d+\\.\\d+\\.\\d+$"),[]);return((0,E.useEffect)(()=>{if(t.test(e)&&e!==A){let e="recce-update-toast-shown";sessionStorage.getItem(e)||setTimeout(()=>{Am.toaster.create({id:"recce-update-available",title:"Update available",description:(0,g.jsxs)("span",{children:["A new version of Recce (v",A,") is available.",(0,g.jsx)("br",{}),"Please run ",(0,g.jsx)(b,{children:"pip install --upgrade recce"})," to update Recce.",(0,g.jsx)("br",{}),(0,g.jsx)(j.Link,{color:"brand.700",fontWeight:"bold",href:`https://github.com/DataRecce/recce/releases/tag/v${A}`,_hover:{textDecoration:"underline"},target:"_blank",children:"Click here to view the detail of latest release"})]}),duration:6e4,closable:!0}),sessionStorage.setItem(e,"true")},0)}},[e,A,t]),t.test(e))?(0,g.jsx)(w,{fontSize:"sm",color:"white/80",variant:"outline",textTransform:"uppercase",children:(0,g.jsx)(j.Link,{href:`https://github.com/DataRecce/recce/releases/tag/v${e}`,_hover:{textDecoration:"none"},children:(0,g.jsx)(e6.Text,{color:"white/80",children:e})})}):(0,g.jsx)(w,{fontSize:"sm",color:"white/80",variant:"outline",textTransform:"uppercase",children:e})}function xd(){let{reviewMode:e,isDemoSite:A,envInfo:t,cloudMode:n}=(0,AY.useLineageGraphContext)(),{featureToggles:r,lifetimeExpiredAt:i,authed:o}=(0,AC.useRecceInstanceContext)(),{url:s,id:a}=t?.pullRequest??{},l=s?s.split("/").pop():null,c=n||o?"https://cloud.datarecce.io/":"https://reccehq.com/",[u,d]=(0,E.useState)(!1);return!function(e){let A=Am.toaster,[t,n]=(0,E.useState)(null),r=(0,E.useRef)(void 0),i=(0,E.useCallback)(()=>{if(!e)return 0;let A=new Date;return Math.max(0,Math.floor((e.getTime()-A.getTime())/1e3))},[e]),o=(0,E.useCallback)(()=>{null!=t&&(A.remove(t),n(null))},[A,t]),s=(0,E.useCallback)(()=>{if(null==t)return;let e=i();e<=0?o():A.update(t,{description:xa(e)})},[t,i,A,o]),a=(0,E.useCallback)(()=>{if(!e)return;o();let t=i();t<=0||(n(A.create({id:"lifetime-countdown",description:xa(t)})),r.current=setInterval(s,1e3))},[e,A,i,s,o]),l=i(),c=e?1e3*Math.max(0,l-60):null;(0,w$.useTimeout)(a,c),(0,E.useEffect)(()=>o,[o])}(i),(0,g.jsxs)(v.Flex,{gap:"10px",minHeight:"40px",alignItems:"center",bg:"rgb(255, 110, 66)",children:[(0,g.jsx)(j.Link,{href:c,target:"_blank",_hover:{textDecoration:"none"},children:(0,g.jsxs)(v.Flex,{gap:"10px",alignItems:"center",children:[(0,g.jsx)(k,{boxSize:"20px",ml:"18px",src:"/logo/recce-logo-white.png",alt:"recce-logo-white"}),(0,g.jsx)(Q.Heading,{as:"h1",fontFamily:'"Montserrat", sans-serif',fontSize:"lg",color:"white",children:"RECCE"})]})}),(0,g.jsx)(xu,{}),(r.mode??e)&&(0,g.jsx)(w,{fontSize:"sm",color:"white/80",variant:"outline",textTransform:"uppercase",children:r.mode??"review mode"}),n&&a&&(0,g.jsx)(w,{fontSize:"sm",color:"white/80",variant:"outline",textTransform:"uppercase",children:(0,g.jsxs)(F.HStack,{children:[(0,g.jsx)(y.Box,{children:"cloud mode"}),(0,g.jsx)(y.Box,{borderLeftWidth:"1px",borderLeftColor:"white/80",paddingLeft:"8px",children:(0,g.jsxs)(j.Link,{href:s,_hover:{textDecoration:"none"},target:"_blank",children:[(0,g.jsx)(U.Icon,{color:"white/80",as:t1.VscGitPullRequest,boxSize:"3",marginRight:.5,fontWeight:"extrabold",strokeWidth:"1"}),(0,g.jsx)(e6.Text,{color:"white/80",children:`#${String(a)}`})]})})]})}),A&&s&&l&&(0,g.jsx)(w,{fontSize:"sm",color:"white/80",variant:"outline",textTransform:"uppercase",children:(0,g.jsxs)(F.HStack,{children:[(0,g.jsx)(y.Box,{children:"demo mode"}),(0,g.jsx)(y.Box,{borderLeftWidth:"1px",borderLeftColor:"white/80",paddingLeft:"8px",children:(0,g.jsxs)(j.Link,{href:s,_hover:{textDecoration:"none"},target:"_blank",children:[(0,g.jsx)(U.Icon,{color:"white/80",as:t1.VscGitPullRequest,boxSize:"3",marginRight:.5,fontWeight:"extrabold",strokeWidth:"1"}),(0,g.jsx)(e6.Text,{color:"white/80",children:`#${l}`})]})})]})}),(0,g.jsx)(ef.Spacer,{}),(A||"read only"===r.mode)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(xc,{icon:e9,href:"https://github.com/DataRecce/recce"}),(0,g.jsx)(xc,{icon:Ae,href:"https://getdbt.slack.com/archives/C05C28V7CPP"}),(0,g.jsx)(xc,{mr:2,icon:Aa,href:"https://docs.datarecce.io"})]}),!A&&"read only"!==r.mode&&(0,g.jsx)(g.Fragment,{children:o||n?(0,g.jsx)(y.Box,{mr:2,children:(0,g.jsx)(wz,{})}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(y.Box,{as:"button",color:"white",fontSize:"sm",fontWeight:"semibold",bg:"brand.700",borderRadius:"md",px:3,py:1,mr:2,cursor:"pointer",onClick:()=>{d(!0)},children:"Connect to Cloud"}),u&&(0,g.jsx)(hW,{parentOpen:u,handleParentClose:d,ignoreCookie:!0,variant:"user-profile"})]})})]})}function xh({queryKey:e,fetchCallback:A,selectCallback:t}){let{data:n,isLoading:r,error:i}=(0,e8.useQuery)({queryKey:e,queryFn:A,select:t});return r||i||0===n?(0,g.jsx)(g.Fragment,{}):(0,g.jsx)(y.Box,{ml:"2px",maxH:"20px",height:"80%",aspectRatio:1,borderRadius:"full",bg:"tomato",alignContent:"center",color:"white",fontSize:"xs",children:n})}function xf(){let{isDemoSite:e,cloudMode:A,isLoading:t}=(0,AY.useLineageGraphContext)(),{featureToggles:n}=(0,AC.useRecceInstanceContext)(),[r,i]=(0,Af.useLocation)(),[o,s]=(0,E.useState)("/lineage"),{data:a,isLoading:l}=(0,lT.useRecceServerFlag)(),c=[{name:"Lineage",href:"/lineage"},{name:"Query",href:"/query"},{name:"Checklist",href:"/checks",badge:(0,g.jsx)(xh,{queryKey:AL.cacheKeys.checks(),fetchCallback:AM,selectCallback:e=>e.filter(e=>!e.is_checked).length}),disable:a?.single_env_onboarding===!0}];return(0,E.useEffect)(()=>{s(`/${r.split("/")[1]}`)},[r]),(0,g.jsx)(e5.Root,{colorPalette:"iochmara",defaultValue:"/lineage",value:o,onValueChange:e=>{s(e.value)},children:(0,g.jsxs)(e5.List,{display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",children:[(0,g.jsx)(y.Box,{display:"flex",children:c.map(({name:e,href:A,badge:n,disable:o})=>(0,g.jsxs)(e5.Trigger,{value:A,onClick:()=>{(0,Ax.trackNavigation)({from:r,to:A}),i(A)},disabled:!!t||l||o,hidden:o,children:[e,n]},A))}),(0,g.jsxs)(v.Flex,{alignItems:"center",gap:"12px",justifyContent:"center",children:[!t&&!e&&(0,g.jsx)(wW,{}),!t&&!e&&!a?.single_env_onboarding&&!n.disableShare&&(0,g.jsx)(wY,{})]}),!t&&(0,g.jsxs)(v.Flex,{justifyContent:"right",alignItems:"center",mr:"8px",children:[(0,g.jsx)(ix,{}),A&&(0,g.jsx)(yb,{}),(0,g.jsx)(Av,{})]})]})})}function xg(){let{isRunResultOpen:e,isHistoryOpen:A,closeRunResult:t}=(0,lQ.useRecceActionContext)(),{data:n}=(0,lT.useRecceServerFlag)(),[r]=(0,Af.useLocation)(),i=e&&!r.startsWith("/checks"),o=A&&!r.startsWith("/checks");return(0,g.jsxs)(ta,{sizes:[0,100],minSize:300*!!o,gutterSize:5*!!o,style:{height:"100%"},children:[(0,g.jsx)(y.Box,{style:{contain:"size"},children:o&&(0,g.jsx)(xo,{})}),(0,g.jsxs)(tl,{sizes:i?[50,50]:[100,0],minSize:100*!!i,gutterSize:5*!!i,style:{flex:"1",contain:"size"},children:[(0,g.jsx)(y.Box,{p:0,style:{contain:"content"},children:(0,g.jsxs)(mq,{children:[(0,g.jsx)(xl,{path:"/lineage",children:(0,g.jsx)(yv,{})}),(0,g.jsxs)(Af.Switch,{children:[(0,g.jsx)(Af.Route,{path:"/query",children:(0,g.jsx)(wm,{})}),(0,g.jsx)(Af.Route,{path:"/checks/:slug?",children:(0,g.jsx)(mY,{})}),(0,g.jsx)(Af.Route,{path:"/runs/:runId",children:({runId:e})=>(0,g.jsx)(ww,{runId:e})}),(0,g.jsx)(Af.Route,{path:"/ssr",children:(0,g.jsx)(eh.Root,{size:"xs",value:null,colorPalette:"iochmara",children:(0,g.jsx)(eh.Track,{children:(0,g.jsx)(eh.Range,{})})})}),(0,g.jsx)(Af.Route,{children:(0,g.jsx)(Af.Redirect,{to:"/lineage"})})]})]})}),i?(0,g.jsx)(h1,{onClose:t,isSingleEnvironment:!!n?.single_env_onboarding}):(0,g.jsx)(y.Box,{})]})]})}function xp({children:e}){return(0,g.jsx)(v.Flex,{direction:"column",height:"100vh",overflow:"hidden",children:e})}function xB(){let{isDemoSite:e,isLoading:A,isCodespace:t}=(0,AY.useLineageGraphContext)(),{featureToggles:n}=(0,AC.useRecceInstanceContext)();return(0,E.useEffect)(()=>{(0,Ax.trackInit)()},[]),(0,g.jsxs)(xp,{children:[(0,g.jsx)(xd,{}),(0,g.jsx)(xf,{}),(0,g.jsx)(xg,{}),!A&&!e&&!t&&null===n.mode&&(0,g.jsx)(hW,{})]})}e.s(["default",()=>xB],31713)}]);
|