mage-ai 0.9.8__py3-none-any.whl → 0.9.9__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 mage-ai might be problematic. Click here for more details.
- mage_ai/ai/constants.py +1 -0
- mage_ai/ai/generator.py +6 -0
- mage_ai/ai/{gen_doc_for_pipeline.py → generator_cmds.py} +5 -0
- mage_ai/ai/llm_pipeline_wizard.py +108 -3
- mage_ai/api/policies/BlockPolicy.py +1 -0
- mage_ai/api/policies/BlockTemplatePolicy.py +9 -0
- mage_ai/api/policies/LlmPolicy.py +3 -2
- mage_ai/api/policies/OauthAccessTokenPolicy.py +31 -0
- mage_ai/api/policies/PipelinePolicy.py +1 -0
- mage_ai/api/policies/ProjectPolicy.py +9 -0
- mage_ai/api/policies/SearchResultPolicy.py +32 -0
- mage_ai/api/policies/VariablePolicy.py +8 -0
- mage_ai/api/presenters/BlockTemplatePresenter.py +1 -0
- mage_ai/api/presenters/OauthAccessTokenPresenter.py +9 -0
- mage_ai/api/presenters/ProjectPresenter.py +2 -0
- mage_ai/api/presenters/SearchResultPresenter.py +73 -0
- mage_ai/api/resources/BlockResource.py +43 -4
- mage_ai/api/resources/BlockTemplateResource.py +15 -2
- mage_ai/api/resources/CustomTemplateResource.py +15 -3
- mage_ai/api/resources/FileContentResource.py +8 -1
- mage_ai/api/resources/FileResource.py +22 -2
- mage_ai/api/resources/OauthAccessTokenResource.py +24 -0
- mage_ai/api/resources/PipelineResource.py +70 -2
- mage_ai/api/resources/ProjectResource.py +15 -1
- mage_ai/api/resources/SearchResultResource.py +68 -0
- mage_ai/api/resources/VariableResource.py +25 -14
- mage_ai/cache/base.py +3 -0
- mage_ai/cache/block_action_object/__init__.py +282 -0
- mage_ai/cache/block_action_object/constants.py +4 -0
- mage_ai/cache/constants.py +1 -0
- mage_ai/data_integrations/destinations/constants.py +2 -0
- mage_ai/data_preparation/executors/k8s_pipeline_executor.py +1 -1
- mage_ai/data_preparation/models/block/__init__.py +20 -1
- mage_ai/data_preparation/models/block/dbt/utils/__init__.py +1 -0
- mage_ai/data_preparation/models/custom_templates/custom_block_template.py +8 -3
- mage_ai/data_preparation/models/custom_templates/utils.py +6 -3
- mage_ai/data_preparation/models/file.py +3 -0
- mage_ai/data_preparation/models/pipeline.py +10 -1
- mage_ai/data_preparation/models/{project.py → project/__init__.py} +17 -0
- mage_ai/data_preparation/models/project/constants.py +5 -0
- mage_ai/data_preparation/repo_manager.py +9 -6
- mage_ai/data_preparation/templates/constants.py +478 -1
- mage_ai/data_preparation/templates/template.py +9 -1
- mage_ai/orchestration/db/__init__.py +25 -0
- mage_ai/orchestration/pipeline_scheduler.py +23 -0
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/404.html.html +2 -2
- mage_ai/server/frontend_dist/_next/static/OwvTROmputQCA1Z9HEGDv/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{1005-ce36fe7ed460d006.js → 1005-16c1a6678de5311e.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1424-e22139f33196c5c1.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1484-a76b2c31e4808379.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2485-b569baad92049d6b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{2786-d8b593e5d7c42665.js → 2786-acce6ea0d9b4898e.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3654-573457b62efff6e2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3881-0eb04f7f7a244347.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{4317-b112fe7bb532b998.js → 4317-3fe63fc9401685d6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{4822-52d9d661b6bd1ae9.js → 4822-045cc7cdd7c95163.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{547-14029bdacc0ed267.js → 547-4ad2cdae967055b6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6299-cf188c1b7a1bc33c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{7815-6dc55b5fd5d1f48a.js → 7815-fbd99c8f259d9e8b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{8312-cdc4d6c3b9f53099.js → 8312-c88a3b1012e5448b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{8952-492bf0e29d215ddd.js → 8952-e94a7334fcd5c68b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9055-d0d25298cb5f4e45.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-c7557dc9e725825e.js → _app-fa38a24707c76411.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-b9dac983c75798f2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{settings-17bb362b9683079c.js → settings-453aaa7bf78f8101.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/{[user]-bfa53c0ee79920a0.js → [user]-3b502aa6d1a04cad.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/{new-2f7e6bf8e2a37380.js → new-dd41d718cbb5990c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-ec748f838b7b8fad.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-bcc24120f5911f76.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{overview-8ffbc4b0e8a43266.js → overview-6f20b9e9cbec91d6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-373f6b8c9161e819.js → [...slug]-55212dfc15881ef2.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{backfills-226bf0c5c1bfe004.js → backfills-6b4a82cd0516e121.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-0705c99df236ec8a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-4ade07836fd577c9.js → logs-c294f5d74bd2d50f.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-fd9eb711e89425e9.js → monitors-1b9e4abc54842cdf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-027666ed18d3151e.js → runs-17ebe87e94242ae5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-48b60ca236a26818.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-de58e6b91e5e4552.js → syncs-5153f4665aaf8b17.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-432843576e1ed09e.js → [...slug]-1306e85191f6b47c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-ae31b1d0d8a4634d.js → triggers-2e731d343a26d46a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-0fab737dbc9074fc.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-b2354688508b0755.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-a4f01b5c429757cc.js → users-6522c963087f18e8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{sign-in-1140f8ee7e89381a.js → sign-in-7dcd1257ca9660bb.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/{[...slug]-f59b3f04c5a49351.js → [...slug]-78a07e7fe8973811.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{templates-dbb209ce131390a9.js → templates-19df643f52679d5a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-a1cf445565b68809.js +1 -0
- mage_ai/server/frontend_dist/files.html +2 -2
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/settings.html +2 -2
- mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist/manage/users.html +2 -2
- mage_ai/server/frontend_dist/manage.html +2 -2
- mage_ai/server/frontend_dist/overview.html +2 -2
- mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +2 -2
- mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +16 -16
- mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
- mage_ai/server/frontend_dist/templates.html +2 -2
- mage_ai/server/frontend_dist/terminal.html +2 -2
- mage_ai/server/frontend_dist/test.html +2 -2
- mage_ai/server/frontend_dist/triggers.html +2 -2
- mage_ai/server/frontend_dist/version-control.html +2 -2
- mage_ai/server/server.py +5 -0
- mage_ai/services/search/__init__.py +0 -0
- mage_ai/services/search/block_action_objects.py +33 -0
- mage_ai/services/search/constants.py +1 -0
- mage_ai/shared/array.py +7 -0
- mage_ai/shared/parsers.py +11 -2
- mage_ai/tests/shared/test_parsers.py +73 -0
- mage_ai/usage_statistics/constants.py +1 -0
- mage_ai/usage_statistics/logger.py +19 -1
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/METADATA +9 -7
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/RECORD +142 -129
- mage_ai/server/frontend_dist/_next/static/RcIgkp9pBXE1Rb4tOGR1L/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1424-de97c5aa0477894b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1484-c9d6bc33227070dd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2485-86c97f516c1abb9f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3215-c2f5f19b650f9a50.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3654-bff4740b63cf280c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3881-7f121dbbe6e273cd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6299-97f283be01adf6a8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-0df5a20d6f1aa606.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-1f6cb7656299cbd1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-4894eabb442a039c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-a9bd86bee73b5762.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-cf51793c2112915c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-f1131ffe0d2a4a06.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-170943ca00445486.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-2ecda1f1437013f2.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{RcIgkp9pBXE1Rb4tOGR1L → OwvTROmputQCA1Z9HEGDv}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{RcIgkp9pBXE1Rb4tOGR1L → OwvTROmputQCA1Z9HEGDv}/_ssgManifest.js +0 -0
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8952],{75968:function(n,e,t){t.d(e,{J8:function(){return b},MS:function(){return h},Ts:function(){return v},_o:function(){return m},eY:function(){return f},fA:function(){return p},h5:function(){return k},oI:function(){return g}});var o=t(82394),i=t(86422),r=t(82635),u=t(98781),c=t(90211),l=t(33766),d=t(60701);function a(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?a(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var f=function(n,e){var t=(null===e||void 0===e?void 0:e.upstream_blocks)||[];return i.iZ.includes(null===n||void 0===n?void 0:n.type)||i.iZ.includes(null===e||void 0===e?void 0:e.type)||i.tf.DATA_LOADER===(null===e||void 0===e?void 0:e.type)&&i.tf.SENSOR!==n.type||t.push(n.uuid),t},p=function(n,e,t){var o=[];return(null===n||void 0===n?void 0:n.type)!==u.qL.STREAMING||i.iZ.includes(null===e||void 0===e?void 0:e.type)||i.iZ.includes(null===t||void 0===t?void 0:t.type)||(o=o.concat((null===e||void 0===e?void 0:e.downstream_blocks)||[])),o},v=function(n,e,t,o){for(var r,u=[],l=e.findIndex((function(e){return e.uuid===n.uuid}));!r&&l>=0;){var d;r=e[l-1],i.tf.SCRATCHPAD===(null===(d=r)||void 0===d?void 0:d.type)&&(r=null),l-=1}return r&&u.push(r.uuid),i.Ut.map((function(e){return{label:function(){return"Convert to ".concat((0,c.wX)(i.V4[e]))},onClick:function(){return o({converted_from_type:e,converted_from_uuid:n.uuid,type:e,upstream_blocks:u})},uuid:"".concat(t,"/convert_to/").concat(e)}}))},b=function(n,e,t,o,r,u){var c=n||{},a=c.configuration,f=c.downstream_blocks,p=c.has_callback,v=c.language,b=c.metadata,h=c.replicated_block,m=c.type,k=c.upstream_blocks,g=c.uuid,y=a||{},O=y.dynamic,x=y.reduce_output,E=i.tf.DBT===m,C=[];if(i.tf.SCRATCHPAD!==m&&![i.tf.CALLBACK,i.tf.EXTENSION,i.tf.MARKDOWN].includes(m)){C.push.apply(C,[{label:function(){return E?"Execute and run all upstream blocks":"Execute with all upstream blocks"},onClick:function(){return e({block:n,runUpstream:!0})},uuid:"execute_upstream"},{label:function(){return E?"Execute and run incomplete upstream blocks":"Execute with incomplete upstream blocks"},onClick:function(){return e({block:n,runIncompleteUpstream:!0})},uuid:"execute_incomplete_upstream"}]),E||C.push({label:function(){return"Execute block and run tests"},onClick:function(){return e({block:n,runTests:!0})},uuid:"run_tests"});var T,S,A=u||{},_=A.addNewBlock,I=A.blocksMapping,j=A.fetchFileTree,D=A.fetchPipeline,w=A.savePipelineContent,R=A.updatePipeline,Z=[];if(null===f||void 0===f||f.forEach((function(n){var e=null===I||void 0===I?void 0:I[n];e&&e.upstream_blocks.forEach((function(n){var e,t;null!==I&&void 0!==I&&null!==(e=I[n])&&void 0!==e&&null!==(t=e.configuration)&&void 0!==t&&t.dynamic&&Z.push(I[n])}))})),E&&i.t6.SQL===v)null!==b&&void 0!==b&&null!==(T=b.dbt)&&void 0!==T&&null!==(S=T.block)&&void 0!==S&&S.snapshot||C.unshift.apply(C,[{label:function(){return"Run model"},onClick:function(){return e({block:n,runSettings:{run_model:!0}})},tooltip:function(){return"Execute command dbt run."},uuid:"run_model"},{label:function(){return"Test model"},onClick:function(){return e({block:n,runSettings:{test_model:!0}})},tooltip:function(){return"Execute command dbt test."},uuid:"test_model"},{label:function(){return"Build model"},onClick:function(){return e({block:n,runSettings:{build_model:!0}})},tooltip:function(){return"Execute command dbt build."},uuid:"build_model"},{label:function(){return"Add upstream models"},onClick:function(){R({pipeline:{add_upstream_for_block_uuid:null===n||void 0===n?void 0:n.uuid}})},tooltip:function(){return"Add upstream models for this model to the pipeline."},uuid:"add_upstream_models"}]);if(E||!w||!O&&0!==Z.length||C.push({label:function(){return O?"Disable block as dynamic":"Set block as dynamic"},onClick:function(){return w({block:s(s({},n),{},{configuration:s(s({},a),{},{dynamic:!O})})})},uuid:"dynamic"}),I)(null===k||void 0===k?void 0:k.find((function(n){var e,t;return null===I||void 0===I||null===(e=I[n])||void 0===e||null===(t=e.configuration)||void 0===t?void 0:t.dynamic})))&&C.push({label:function(){return x?"Don\u2019t reduce output":"Reduce output"},onClick:function(){return w({block:s(s({},n),{},{configuration:s(s({},a),{},{reduce_output:!x})})})},uuid:"reduce_output"});C.push({label:function(){return p?"Remove callback":"Add callback"},onClick:function(){if(p)return w({block:s(s({},n),{},{has_callback:!p})}).then((function(){j(),D()}));(0,l.u7)({sideview:d.cH.CALLBACKS})},uuid:"has_callback"}),E||C.push({disabled:!!h,label:function(){return"Replicate block"},onClick:function(){return _({replicated_block:g})},uuid:"Replicate block"})}return C.push({label:function(){return"Delete block"},onClick:function(){t(n),o(!1)},uuid:"delete_block"}),r?[C.pop()]:C};function h(n){var e=n.tags,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[],r=t.conditionFailed;return null===e||void 0===e||e.forEach((function(n){i.L8.DBT_SNAPSHOT===n?o.push({description:"This is a dbt snapshot file.",title:(0,c.vg)(i.L8.DBT_SNAPSHOT)}):i.L8.DYNAMIC===n?o.push({description:"This block will create N blocks for each of its downstream blocks.",title:(0,c.vg)(i.L8.DYNAMIC)}):i.L8.DYNAMIC_CHILD===n?o.push({description:"This block is dynamically created by its upstream parent block that is dynamic.",title:(0,c.vg)(i.L8.DYNAMIC_CHILD)}):i.L8.REDUCE_OUTPUT===n?o.push({description:"Reduce output from all dynamically created blocks into a single array output.",title:(0,c.vg)(i.L8.REDUCE_OUTPUT)}):i.L8.REPLICA===n?o.push({description:"This block is a replica of another block in the current pipeline.",title:(0,c.vg)(i.L8.REPLICA)}):i.L8.CONDITION===n?r?o.push({description:"This block condition evaluated as false.",title:"Condition unmet"}):o.push({description:"This block has a condition that will be run before its execution.",title:(0,c.vg)(i.L8.CONDITION)}):o.push({title:n})})),o}function m(n){var e=n.block,t=n.dynamic,o=n.dynamicUpstreamBlock,i=n.hasError,r=(n.reduceOutput,n.reduceOutputUpstreamBlock),u=n.selected,c=o&&!r;return{borderColorShareProps:{blockColor:null===e||void 0===e?void 0:e.color,blockType:null===e||void 0===e?void 0:e.type,dynamicBlock:t,dynamicChildBlock:c,hasError:i,selected:u},tags:h(e)}}function k(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e&&(null===e||void 0===e?void 0:e.length)>=0?e.map((function(n){return{data:n,execution_state:r.uF.IDLE,type:r.Gi.TEXT_PLAIN}})):n.filter((function(n){return null===n||void 0===n?void 0:n.type}))}function g(n){return{hasError:!!n.find((function(n){return n.error})),hasOutput:n.length>=1}}},35438:function(n,e,t){t.d(e,{Ai:function(){return u},Jo:function(){return r},bJ:function(){return c},rl:function(){return o}});var o,i=t(86422),r=(t(49125).iI,1e4),u={compact:!0},c={height:10,width:10};i.tf.DATA_EXPORTER,i.tf.SENSOR,i.Lq.GREY,i.Lq.PINK,i.Lq.TEAL,i.Lq.YELLOW;!function(n){n.NORTH="NORTH",n.SOUTH="SOUTH"}(o||(o={}))},48952:function(n,e,t){t.d(e,{Z:function(){return On}});var o=t(75582),i=t(21831),r=t(82394),u=t(26304),c=t(77837),l=t(38860),d=t.n(l),a=t(51774),s=t.n(a),f=t(38626),p=t(4804),v=t(82684),b=t(83455),h=t(18283),m=t(86422),k=t(16634),g=t(93461),y=t(67971),O=t(86673),x=t(54283),E=t(19711),C=t(23831),T=t(10503),S=t(73942),A=t(49125),_=3*A.iI,I=f.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-kc7274-0"})(["border-radius:","px;border:1px solid transparent;min-width:fit-content;overflow:hidden;"," "," "," "," "," "," "," ",""],S.n_,(function(n){return"\n background-color: ".concat((n.theme.background||C.Z.background).codeTextarea,";\n ")}),(function(n){return n.borderColor&&"\n border-color: ".concat(n.borderColor,";\n ")}),(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||C.Z.content).active,";\n ")}),(function(n){return(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border-color: ".concat((n.theme.content||C.Z.content).muted,";\n border-style: dotted;\n cursor: not-allowed;\n opacity: 0.5;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||C.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||C.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),j=f.default.div.withConfig({displayName:"indexstyle__StatusStyle",componentId:"sc-kc7274-1"})(["height:","px;width:","px;"],2*A.iI,2*A.iI),D=f.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-kc7274-2"})(["align-items:center;border-radius:","px;border:2px solid transparent;display:flex;height:","px;justify-content:center;width:","px;"," ",""],S.BG,5*A.iI,5*A.iI,(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n border-color: ").concat(n.backgroundColor,";\n ")}),(function(n){return n.borderColor&&"\n border-color: ".concat(n.borderColor,";\n ")})),w=f.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-kc7274-3"})(["padding:","px;",""],1*A.iI,(function(n){return"\n background-color: ".concat((n.theme.background||C.Z.background).dashboard,";\n ")})),R=f.default.div.withConfig({displayName:"indexstyle__BodyStyle",componentId:"sc-kc7274-4"})(["padding-left:","px;padding-right:","px;"],1*A.iI,1*A.iI),Z=(f.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-kc7274-5"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*A.iI),t(98781)),N=t(75968),L=t(25958),P=A.cd,B=A.cd*A.iI,M=2*A.iI,H=7.43,U=2*A.iI+5*A.iI,G=2*A.iI+5*A.iI+B+B+M,F=30*A.iI;function V(n){var e=(0,N.MS)(n);return(null===e||void 0===e?void 0:e.length)>=1?(null===e||void 0===e?void 0:e.map((function(n){return n.title})).join(", "))||"":m.dO[null===n||void 0===n?void 0:n.language]||""}function K(n,e){var t,o=n.type,i=(null===m.V4||void 0===m.V4?void 0:m.V4[o])||o;if(Z.qL.INTEGRATION===(null===e||void 0===e?void 0:e.type)&&m.tf.TRANSFORMER!==n.type){var r,u={};if(m.t6.YAML===n.language&&(u=(0,p.Qc)(n.content)),m.tf.DATA_LOADER===n.type)t="".concat(n.uuid,": ").concat(null===(r=u)||void 0===r?void 0:r.source);else if(m.tf.DATA_EXPORTER===n.type){var c;t="".concat(n.uuid,": ").concat(null===(c=u)||void 0===c?void 0:c.destination)}}else if(m.tf.DBT===n.type&&m.t6.SQL===n.language){var l=(0,L.IU)(n),d=l.name,a=l.project;t=d,i="".concat(i,"/").concat(a)}return null!==n&&void 0!==n&&n.replicated_block&&(t=null===n||void 0===n?void 0:n.replicated_block,i=null===n||void 0===n?void 0:n.uuid),t||(t=n.uuid),{displayText:t,subtitle:i}}function q(n,e){return K(n,e).displayText||""}function X(n,e){return K(n,e).subtitle||""}function J(n){var e=0;return null===n||void 0===n||n.forEach((function(n,t){var o=n.uuid;e+=4+o.length*H,t>=1&&(e+=4)})),e}function Q(n,e,t){var o,i=0,r=2+U,u=Y(n,e,t)-(2+2*A.iI),c=V(n),l=(null===c||void 0===c?void 0:c.length)*H;if(l>=1){var d=1;l>u&&(d=Math.ceil(l/u)),i+=1,r+=18*d}var a=t||{},s=a.blockStatus;return[a.callbackBlocks,a.conditionalBlocks,a.extensionBlocks].forEach((function(n){if((null===n||void 0===n?void 0:n.length)>=1){var e=J(n),t=1;e>u&&(t=Math.ceil(e/u)),i+=1,r+=18.5*t+4*(t-1)}})),"undefined"!==typeof(null===s||void 0===s||null===(o=s[n.uuid])||void 0===o?void 0:o.runtime)&&(r+=18,i+=1),r+=(i+=1)*(1*A.iI)}function Y(n,e,t){var o,r,u=Math.max(8.62*(null===(o=q(n,e))||void 0===o?void 0:o.length),(null===(r=X(n,e))||void 0===r?void 0:r.length)*H),c=V(n),l=(null===c||void 0===c?void 0:c.length)*H,d=t||{},a=d.callbackBlocks,s=d.conditionalBlocks,f=d.extensionBlocks,p=Math.max.apply(Math,(0,i.Z)([a,s,f].map((function(n){return J(n)})).concat(l)));return p>u&&(u=Math.min(F,p)),2+G+u}var z,W=t(44162),$=t(35438),nn=t(90211),en=function(n){var e=n/1e3,t=4-Math.floor(e).toString().length,o=(0,nn.QV)(e,t>=0?t:0),i="s";return o>1e3&&(o=(0,nn.QV)(o/60,0),i="m"),"".concat(o).concat(i)},tn=function(n,e){var t=n||{},o=t.id,i=t.side,r=null===e||void 0===e?void 0:e.id;return i===$.rl.NORTH?null===o||void 0===o?void 0:o.endsWith("".concat(r,"-to")):i===$.rl.SOUTH&&(null===o||void 0===o?void 0:o.startsWith(r))},on=t(28598),rn=(z={},(0,r.Z)(z,m.tf.DATA_EXPORTER,T.zS),(0,r.Z)(z,m.tf.DATA_LOADER,T.rH),(0,r.Z)(z,m.tf.DBT,T.xE),(0,r.Z)(z,m.tf.SENSOR,T.LM),(0,r.Z)(z,m.tf.TRANSFORMER,T.Sv),z);var un=function(n){var e=n.block,t=n.callbackBlocks,o=n.conditionalBlocks,i=n.disabled,r=n.extensionBlocks,u=n.height,c=n.hideStatus,l=n.pipeline,d=n.selected,a=n.hasFailed,s=n.isCancelled,p=n.isConditionFailed,b=n.isInProgress,S=n.isQueued,A=n.isSuccessful,Z=n.runtime,N=(0,v.useContext)(f.ThemeContext),L=!(b||S||a||A||s||p),B=a&&!(b||S),H=!B&&A&&!(b||S),U="";L?U="No status":H?U="Successful execution":B?U="Failed execution":b?U="Currently executiing":s&&(U="Cancelled execution");var G=e.color,F=e.type,K=(0,W.qn)(F,{blockColor:G,theme:N}).accent,J=(0,v.useMemo)((function(){return V(e)}),[e]),Q=(0,v.useMemo)((function(){var n,e,t=rn[F]||T.EJ,o=!1;return[m.tf.CALLBACK,m.tf.CHART,m.tf.CONDITIONAL,m.tf.CUSTOM,m.tf.DATA_EXPORTER,m.tf.DATA_LOADER,m.tf.EXTENSION,m.tf.SCRATCHPAD,m.tf.SENSOR,m.tf.MARKDOWN,m.tf.TRANSFORMER].includes(F)?n=K:[m.tf.DBT].includes(F)&&(e=K),[m.tf.DATA_EXPORTER].includes(F)&&(o=!0),(0,on.jsx)(D,{backgroundColor:n,borderColor:e,children:(0,on.jsx)("div",{style:{height:_,width:_},children:(0,on.jsx)(t,{inverted:o,size:_})})})}),[K,F]);return(0,on.jsxs)(I,{borderColor:K,disabled:i,height:u,isCancelled:s,isConditionFailed:p,selected:d,children:[(0,on.jsx)(w,{children:(0,on.jsxs)(y.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,on.jsxs)(g.Z,{flex:1,children:[Q,(0,on.jsx)(O.Z,{mr:P}),(0,on.jsxs)(g.Z,{flexDirection:"column",children:[(0,on.jsx)(E.ZP,{bold:!0,monospace:!0,children:q(e,l)}),(0,on.jsx)(E.ZP,{default:!0,monospace:!0,small:!0,children:X(e,l)})]})]}),(0,on.jsx)(O.Z,{mr:"15px"}),(0,on.jsx)(j,{title:U,children:!c&&(0,on.jsxs)(on.Fragment,{children:[b&&(0,on.jsx)(x.Z,{color:(N||C.Z).content.active,small:!0}),H&&(0,on.jsx)(T.Jr,{size:M,success:!0}),B&&(0,on.jsx)(T.x8,{danger:!0,size:M}),L&&(0,on.jsx)(k.Z,{borderSize:1,muted:!0,size:M})]})})]})}),(0,on.jsxs)(R,{children:[(null===J||void 0===J?void 0:J.length)>=1&&(0,on.jsx)(O.Z,{mt:1,children:(0,on.jsx)(E.ZP,{default:!0,monospace:!0,small:!0,children:J})}),[o,t,r].map((function(n,e){if((null===n||void 0===n?void 0:n.length)>=1)return(0,on.jsx)("div",{style:{marginTop:4},children:(0,on.jsx)(y.Z,{alignItems:"center",flexWrap:"wrap",children:n.reduce((function(n,e,t){return t>=1&&n.push((0,on.jsx)("div",{style:{width:4}},"space-".concat(e.uuid))),n.push((0,on.jsx)("div",{style:{marginTop:4},children:(0,on.jsx)(h.Z,{color:(0,W.qn)(e.type,{blockColor:e.color,theme:N}).accentLight,monospace:!0,small:!0,children:e.uuid})},"badge-".concat(e.uuid))),n}),[])})},"badge-blocks-".concat(e))})),Z&&(0,on.jsx)(O.Z,{mt:1,children:(0,on.jsx)(E.ZP,{monospace:!0,muted:!0,small:!0,children:en(Z)})})]})]})},cn=t(11135),ln=t(82531),dn=t(37391),an=f.default.div.withConfig({displayName:"indexstyle__GraphContainerStyle",componentId:"sc-bc2ei5-0"})(["div{","}",""],dn.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),sn=(f.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-bc2ei5-1"})(["border-radius:","px;border:1px solid transparent;min-width:fit-content;"," "," "," "," "," ",""],S.BG,(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||C.Z.content).active,";\n ")}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border-color: ".concat((n.theme.content||C.Z.content).active,";\n border-style: dashed;\n cursor: not-allowed;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||C.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),f.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-bc2ei5-2"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*A.iI),t(66050)),fn=t(24224);var pn=t(96510),vn=["forwardedRef"];function bn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function hn(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?bn(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):bn(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var mn=s()((0,c.Z)(d().mark((function n(){var e,o;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(2920)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,o=e.Canvas,n.abrupt("return",(function(n){var e=n.forwardedRef,t=(0,u.Z)(n,vn);return(0,on.jsx)(o,hn({ref:e},t))}));case 5:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),kn=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(2920)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Node);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),gn=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(2920)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Edge);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),yn=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(2920)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Port);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}});var On=function(n){var e=n.blockRefs,t=n.blockStatus,r=n.blocks,u=n.disabled,c=n.editingBlock,l=n.enablePorts,d=void 0!==l&&l,a=n.fetchPipeline,s=n.height,h=n.heightOffset,k=void 0===h?10*A.iI:h,g=n.messages,x=n.noStatus,C=n.onClickNode,T=n.pannable,S=void 0===T||T,_=n.pipeline,I=n.runningBlocks,j=void 0===I?[]:I,D=n.selectedBlock,w=n.setEditingBlock,R=n.setErrors,P=n.setSelectedBlock,B=n.setZoom,M=n.showDynamicBlocks,H=void 0!==M&&M,U=n.treeRef,G=n.zoomable,F=void 0===G||G,V=(0,v.useContext)(f.ThemeContext),K=(0,v.useRef)(null),q=U||K,X=(0,v.useState)([]),J=X[0],z=X[1],nn=(0,v.useState)(!1),en=nn[0],rn=nn[1],dn=(0,v.useState)(null),vn=dn[0],bn=dn[1],On=d&&en,xn=(null===c||void 0===c?void 0:c.upstreamBlocks)||{},En=xn.block,Cn=xn.values,Tn=void 0===Cn?[]:Cn,Sn=(0,v.useMemo)((function(){return Tn.length}),[Tn]),An=(0,v.useMemo)((function(){var n;return(null===_||void 0===_||null===(n=_.blocks)||void 0===n?void 0:n.filter((function(n){var e=n.type;return!m.iZ.includes(e)})))||[]}),[null===_||void 0===_?void 0:_.blocks]),_n=(0,v.useMemo)((function(){return An}),[An,H]),In=(0,v.useMemo)((function(){if(r)return r;if(_){var n={},e=[];return e.push.apply(e,(0,i.Z)(null===_||void 0===_?void 0:_.blocks)),e.push.apply(e,(0,i.Z)(null===_||void 0===_?void 0:_.callbacks)),e.push.apply(e,(0,i.Z)(null===_||void 0===_?void 0:_.conditionals)),Object.values(null===_||void 0===_?void 0:_.extensions).forEach((function(n){var t=n.blocks;e.push.apply(e,(0,i.Z)(t))})),e.reduce((function(e,t){return n[t.uuid]||e.push(t),e}),[])}return[]}),[r,_]),jn=(0,v.useMemo)((function(){return(0,fn.HK)(In||[],(function(n){return n.uuid}))}),[In]),Dn=(0,v.useMemo)((function(){var n={};return null===_n||void 0===_n||_n.map((function(e){var t;n[e.uuid]=null===e||void 0===e||null===(t=e.callback_blocks)||void 0===t?void 0:t.reduce((function(n,e){var t=null===jn||void 0===jn?void 0:jn[e];return t?n.concat(t):n}),[])})),n}),[_n,jn]),wn=(0,v.useMemo)((function(){var n={};return null===_n||void 0===_n||_n.map((function(e){var t;n[e.uuid]=null===e||void 0===e||null===(t=e.conditional_blocks)||void 0===t?void 0:t.reduce((function(n,e){var t=null===jn||void 0===jn?void 0:jn[e];return t?n.concat(t):n}),[])})),n}),[_n,jn]),Rn=(0,v.useMemo)((function(){var n={};return null===_n||void 0===_n||_n.map((function(e){var t,i=[];null===(t=Object.entries((null===_||void 0===_?void 0:_.extensions)||{}))||void 0===t||t.forEach((function(n){var t=(0,o.Z)(n,2),r=t[0],u=t[1].blocks;null===u||void 0===u||u.forEach((function(n){var t=n.upstream_blocks,o=n.uuid;if(null!==t&&void 0!==t&&t.includes(null===e||void 0===e?void 0:e.uuid)){var u=null===jn||void 0===jn?void 0:jn[o];u&&i.push(hn(hn({},u),{},{extension_uuid:r}))}}))})),n[e.uuid]=i})),n}),[_n,jn,_]),Zn=(0,v.useMemo)((function(){return(0,fn.HK)(j,(function(n){return n.uuid}))}),[j]),Nn=(0,b.Db)(ln.ZP.blocks.pipelines.useUpdate(null===_||void 0===_?void 0:_.uuid,encodeURIComponent(null===En||void 0===En?void 0:En.uuid)),{onSuccess:function(n){return(0,pn.wD)(n,{callback:function(){w({upstreamBlocks:null}),null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===R||void 0===R?void 0:R({errors:e,response:n})}})}}),Ln=(0,o.Z)(Nn,2),Pn=Ln[0],Bn=Ln[1].isLoading,Mn=(0,b.Db)((function(n){var e=n.fromBlock,t=n.portSide,o=n.toBlock,i=n.removeDependency,r=o,u=o.upstream_blocks.concat(e.uuid);return i||t!==$.rl.NORTH||(r=e,u=e.upstream_blocks.concat(o.uuid)),ln.ZP.blocks.pipelines.useUpdate(null===_||void 0===_?void 0:_.uuid,encodeURIComponent(r.uuid))({block:hn(hn({},r),{},{upstream_blocks:i?o.upstream_blocks.filter((function(n){return n!==e.uuid})):u})})}),{onSuccess:function(n){return(0,pn.wD)(n,{callback:function(){null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===R||void 0===R?void 0:R({errors:e,response:n})}})}}),Hn=(0,o.Z)(Mn,1)[0],Un=(0,v.useCallback)((function(n){var t=n.type,o=n.uuid;if(null===P||void 0===P||P(n),z([]),null!==e&&void 0!==e&&e.current){var i,r=e.current["".concat(t,"s/").concat(o,".py")];null===r||void 0===r||null===(i=r.current)||void 0===i||i.scrollIntoView()}}),[e,P]),Gn=(0,v.useCallback)((function(n){z([]),w((function(e){var t=e.upstreamBlocks.values||[],o=t.findIndex((function(e){var t=e.uuid;return n.uuid===t}));return hn(hn({},e),{},{upstreamBlocks:hn(hn({},e.upstreamBlocks),{},{values:o>=0?(0,fn.oM)(t,o):t.concat(n)})})}))}),[w]),Fn=(0,v.useMemo)((function(){var n={};return _n.forEach((function(e){e.upstream_blocks.forEach((function(t){n[t]||(n[t]=[]),n[t].push(e)}))})),n}),[_n]),Vn=(0,v.useCallback)((function(n){var e,t;if(Z.qL.INTEGRATION===(null===_||void 0===_?void 0:_.type)&&m.tf.TRANSFORMER!==n.type){var o,i={};if(m.t6.YAML===n.language&&(i=(0,p.Qc)(n.content)),m.tf.DATA_LOADER===n.type)e="".concat(n.uuid,": ").concat(null===(o=i)||void 0===o?void 0:o.source);else if(m.tf.DATA_EXPORTER===n.type){var r;e="".concat(n.uuid,": ").concat(null===(r=i)||void 0===r?void 0:r.destination)}}else if(m.tf.DBT===n.type&&m.t6.SQL===n.language){var u=(0,L.IU)(n);e=u.name,t=u.project}return null!==n&&void 0!==n&&n.replicated_block&&(e=null===n||void 0===n?void 0:n.replicated_block,t=null===n||void 0===n?void 0:n.uuid),e||(e=n.uuid),{displayText:e,kicker:t,subtitle:undefined}}),[_]),Kn=(0,v.useMemo)((function(){var n=[],e=[];return _n.forEach((function(o){var r=Vn(o),u=r.displayText,c=r.kicker,l=r.subtitle,d=o.tags,a=void 0===d?[]:d,s=o.upstream_blocks,f=void 0===s?[]:s,p=o.uuid,v=Fn[p],b=[];v?b.push.apply(b,(0,i.Z)(v.map((function(n){return hn(hn({},$.bJ),{},{id:"".concat(p,"-").concat(n.uuid,"-from"),side:$.rl.SOUTH})})))):b.push(hn(hn({},$.bJ),{},{id:"".concat(p,"-from"),side:$.rl.SOUTH})),0===f.length&&b.push(hn(hn({},$.bJ),{},{id:"".concat(p,"-to"),side:$.rl.NORTH})),null===f||void 0===f||f.forEach((function(n){b.push(hn(hn({},$.bJ),{},{id:"".concat(n,"-").concat(p,"-to"),side:$.rl.NORTH})),e.push({from:n,fromPort:"".concat(n,"-").concat(p,"-from"),id:"".concat(n,"-").concat(p),to:p,toPort:"".concat(n,"-").concat(p,"-to")})}));(null===a||void 0===a?void 0:a.length)>=1&&A.iI,c&&A.iI,l&&A.iI;var h=u;[c,l].forEach((function(n){n&&n.length>h.length&&(h=n)}));var m=null===Dn||void 0===Dn?void 0:Dn[null===o||void 0===o?void 0:o.uuid],k=null===wn||void 0===wn?void 0:wn[null===o||void 0===o?void 0:o.uuid],g=null===Rn||void 0===Rn?void 0:Rn[null===o||void 0===o?void 0:o.uuid];n.push({data:{block:o},height:Q(o,_,{blockStatus:t,callbackBlocks:m,conditionalBlocks:k,extensionBlocks:g}),id:p,ports:b,width:Y(o,_,{blockStatus:t,callbackBlocks:m,conditionalBlocks:k,extensionBlocks:g})})})),{edges:e,nodes:n}}),[t,_n,Dn,wn,Vn,Fn,Rn,_]),qn=Kn.edges,Xn=Kn.nodes,Jn=(0,v.useCallback)((function(n){if(x)return{};if(t){var e=t[function(n){var e=n.uuid,t=n.replicated_block;return t?"".concat(e,":").concat(t):e}(n)]||{},o=e.status,i=e.runtime;return{hasFailed:sn.V.FAILED===o,isCancelled:sn.V.CANCELLED===o,isConditionFailed:sn.V.CONDITION_FAILED===o,isInProgress:sn.V.RUNNING===o,isQueued:sn.V.INITIAL===o,isSuccessful:sn.V.COMPLETED===o,runtime:i}}var r,u=(0,N.h5)((null===g||void 0===g?void 0:g[n.uuid])||[]),c=(0,N.oI)(u),l=c.hasError,d=c.hasOutput,a=Zn[n.uuid];return{hasFailed:!a&&(l||m.DA.FAILED===n.status),isInProgress:a,isQueued:a&&(null===(r=j[0])||void 0===r?void 0:r.uuid)!==n.uuid,isSuccessful:!a&&(!l&&d||m.DA.EXECUTED===n.status)}}),[t,g,x,j,Zn]),Qn=(0,v.useMemo)((function(){var n=0;return s&&(n+=s),k&&(n-=k),Math.max(0,n)}),[s,k]);return(0,on.jsxs)(on.Fragment,{children:[En&&(0,on.jsxs)(O.Z,{my:3,px:A.cd,children:[(0,on.jsxs)(O.Z,{mb:A.cd,children:[(0,on.jsxs)(E.ZP,{children:["Select parent block(s) for ",(0,on.jsx)(E.ZP,{color:(0,W.qn)(En.type,{blockColor:En.color,theme:V}).accent,inline:!0,monospace:!0,children:En.uuid}),":"]}),(0,on.jsx)(O.Z,{mt:1,children:Tn.map((function(n,e){var t,o,i=n.uuid;return(0,on.jsxs)(E.ZP,{color:(0,W.qn)(null===(t=jn[i])||void 0===t?void 0:t.type,{blockColor:null===(o=jn[i])||void 0===o?void 0:o.type,theme:V}).accent,inline:!0,monospace:!0,children:[i,Sn>=2&&e<=Sn-2?(0,on.jsx)(E.ZP,{inline:!0,children:",\xa0"}):null]},i)}))})]}),(0,on.jsxs)(y.Z,{alignItems:"center",children:[(0,on.jsx)(cn.ZP,{compact:!0,inline:!0,loading:Bn,onClick:function(){return Pn({block:hn(hn({},En),{},{upstream_blocks:Tn.map((function(n){return n.uuid}))})})},uuid:"DependencyGraph/save_parents",children:"Save dependencies"}),(0,on.jsx)(O.Z,{ml:1}),(0,on.jsx)(cn.ZP,{compact:!0,inline:!0,noBackground:!0,onClick:function(){z([]),w({upstreamBlocks:null})},uuid:"DependencyGraph/cancel_save_parents",children:"Cancel"})]})]}),(0,on.jsx)(an,{height:Qn,onDoubleClick:function(){var n,e;return null===q||void 0===q||null===(n=q.current)||void 0===n||null===(e=n.fitCanvas)||void 0===e?void 0:e.call(n)},children:(0,on.jsx)(mn,{arrow:null,disabled:u,edge:function(n){var e,t=jn[n.source];return(0,on.jsx)(gn,hn(hn({},n),{},{onClick:function(n,e){bn(null),z([e.id])},onRemove:function(n,e){var t=jn[e.from],o=jn[e.to];Hn({fromBlock:t,removeDependency:!0,toBlock:o}),z([])},removable:d&&!(null!==c&&void 0!==c&&c.upstreamBlocks),style:{stroke:null===(e=(0,W.qn)(null===t||void 0===t?void 0:t.type,{blockColor:null===t||void 0===t?void 0:t.color,theme:V}))||void 0===e?void 0:e.accent}}))},edges:qn,fit:!0,forwardedRef:q,maxHeight:$.Jo,maxWidth:$.Jo,maxZoom:1,minZoom:-.7,node:function(n){var e,t,o,i,r,l;return(0,on.jsx)(kn,hn(hn({},n),{},{dragType:"port",linkable:!0,onClick:function(n,e){var t=e.data.block;bn(null),(null===En||void 0===En?void 0:En.uuid)===t.uuid||(En?Gn(t):(null===C||void 0===C||C({block:t}),setTimeout((function(){Un(t)}),1)))},onEnter:function(){null!==c&&void 0!==c&&c.upstreamBlocks||rn(!0)},onLeave:function(){return rn(!1)},port:On&&(null===vn||tn(vn,n))?(0,on.jsx)(yn,{onDrag:function(){return rn(!0)},onDragEnd:function(){rn(!1),bn(null)},onDragStart:function(n,e,t){var o=null===t||void 0===t?void 0:t.side;bn({id:null===t||void 0===t?void 0:t.id,side:o})},onEnter:function(){return rn(!0)},rx:10,ry:10,style:{fill:(0,W.qn)(null===n||void 0===n||null===(e=n.properties)||void 0===e||null===(t=e.data)||void 0===t||null===(o=t.block)||void 0===o?void 0:o.type,{blockColor:null===n||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.data)||void 0===r||null===(l=r.block)||void 0===l?void 0:l.color,theme:V}).accent,stroke:"white",strokeWidth:"1px"}}):null,style:{fill:"transparent",stroke:"transparent",strokeWidth:0},children:function(n){var e=n.height,t=n.node.data.block,o=Jn(t),i=Vn(t);i.displayText,i.kicker,i.subtitle;return(0,on.jsx)("foreignObject",{height:e,style:{pointerEvents:"none"},width:n.width,x:0,y:0,children:(0,on.jsx)(un,hn({block:t,callbackBlocks:null===Dn||void 0===Dn?void 0:Dn[null===t||void 0===t?void 0:t.uuid],conditionalBlocks:null===wn||void 0===wn?void 0:wn[null===t||void 0===t?void 0:t.uuid],disabled:(null===En||void 0===En?void 0:En.uuid)===t.uuid,extensionBlocks:null===Rn||void 0===Rn?void 0:Rn[null===t||void 0===t?void 0:t.uuid],height:e,hideStatus:u||x,pipeline:_,selected:En?!!(0,fn.sE)(Tn,(function(n){return n.uuid===t.uuid})):(null===D||void 0===D?void 0:D.uuid)===t.uuid},o),t.uuid)})}}))},nodes:Xn,onNodeLink:function(n,e,t,o){var i,r=jn[e.id],u=jn[t.id],c=(null===_||void 0===_?void 0:_.type)===Z.qL.INTEGRATION&&((null===r||void 0===r?void 0:r.type)===m.tf.DATA_EXPORTER||(null===r||void 0===r?void 0:r.type)===m.tf.DATA_LOADER&&(null===u||void 0===u?void 0:u.type)===m.tf.DATA_EXPORTER);if(!(null!==r&&void 0!==r&&null!==(i=r.upstream_blocks)&&void 0!==i&&i.includes(u.uuid)||e.id===t.id||c)){var l=null===o||void 0===o?void 0:o.side;Hn({fromBlock:r,portSide:l||$.rl.SOUTH,toBlock:u})}},onNodeLinkCheck:function(n,e,t){return!qn.some((function(n){return n.from===e.id&&n.to===t.id}))},onZoomChange:function(n){return null===B||void 0===B?void 0:B(n)},pannable:S,selections:J,zoomable:F})})]})}},60701:function(n,e,t){t.d(e,{Qq:function(){return f},Z7:function(){return p},cH:function(){return i},du:function(){return a},fp:function(){return d},j5:function(){return s},uM:function(){return l}});var o,i,r=t(82394),u=t(10503),c=t(24224),l="sideview",d=90;!function(n){n.ADDON_BLOCKS="addon_blocks",n.BLOCK_SETTINGS="block_settings",n.CALLBACKS="callbacks",n.CHARTS="charts",n.DATA="data",n.EXTENSIONS="power_ups",n.FILE_VERSIONS="file_versions",n.GRAPHS="graphs",n.REPORTS="reports",n.SECRETS="secrets",n.SETTINGS="settings",n.TERMINAL="terminal",n.TREE="tree",n.VARIABLES="variables"}(i||(i={}));i.BLOCK_SETTINGS,i.CALLBACKS,i.CHARTS,i.DATA,i.EXTENSIONS,i.TREE;var a=[i.DATA],s=[{key:i.TREE,label:"Tree"},{buildLabel:function(n){var e=(n.pipeline||{}).widgets,t=void 0===e?[]:e;return(null===t||void 0===t?void 0:t.length)>=1?"Charts (".concat(t.length,")"):"Charts"},key:i.CHARTS},{buildLabel:function(n){var e=n.variables;return(null===e||void 0===e?void 0:e.length)>=1?"Variables (".concat(e.length,")"):"Variables"},key:i.VARIABLES},{buildLabel:function(n){var e=n.secrets;return(null===e||void 0===e?void 0:e.length)>=1?"Secrets (".concat(e.length,")"):"Secrets"},key:i.SECRETS},{buildLabel:function(n){n.pipeline;return"Add-on blocks"},key:i.ADDON_BLOCKS},{buildLabel:function(n){var e=(n.pipeline||{}).extensions,t=void 0===e?{}:e,o=0;return Object.values(t).forEach((function(n){var e=n.blocks;o+=(null===e||void 0===e?void 0:e.length)||0})),o>=1?"Power ups (".concat(o,")"):"Power ups"},key:i.EXTENSIONS},{key:i.DATA,label:"Data"},{key:i.TERMINAL,label:"Terminal"},{key:i.BLOCK_SETTINGS,label:"Block settings"}],f=(0,c.HK)(s,(function(n){return n.key})),p=(o={},(0,r.Z)(o,i.ADDON_BLOCKS,u.EJ),(0,r.Z)(o,i.BLOCK_SETTINGS,u.JG),(0,r.Z)(o,i.CALLBACKS,u.AQ),(0,r.Z)(o,i.CHARTS,u.GQ),(0,r.Z)(o,i.DATA,u.iA),(0,r.Z)(o,i.EXTENSIONS,u.Bf),(0,r.Z)(o,i.SECRETS,u.Yo),(0,r.Z)(o,i.SETTINGS,u.Zr),(0,r.Z)(o,i.TERMINAL,u.oI),(0,r.Z)(o,i.TREE,u.mp),(0,r.Z)(o,i.VARIABLES,u.LO),o)},66050:function(n,e,t){var o;t.d(e,{V:function(){return o}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running",n.UPSTREAM_FAILED="upstream_failed",n.CONDITION_FAILED="condition_failed"}(o||(o={}))},18283:function(n,e,t){var o=t(82394),i=t(26304),r=(t(82684),t(38626)),u=t(23831),c=t(73942),l=t(2005),d=t(49125),a=t(31012),s=t(28598),f=["children"];function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function v(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var b=r.default.p.withConfig({displayName:"Badge__BadgeStyle",componentId:"sc-tfqsp0-0"})(["border-radius:","px;display:inline;font-family:",";margin:0;",";"," "," ",";",";"," "," "," "," "," "," "," ",""],c.BG,l.ry,a.iD,(function(n){return n.small&&"\n ".concat(a.HC,";\n ")}),(function(n){return n.xxsmall&&"\n font-size: ".concat(a.VK,"px;\n line-height: ").concat(a.VK,"px;\n ")}),(function(n){return!n.regular&&"\n padding: 2px 4px;\n "}),(function(n){return n.regular&&"\n padding: ".concat(1*d.iI,"px ").concat(1.25*d.iI,"px;\n ")}),(function(n){return n.noVerticalPadding&&"\n padding-bottom: 0;\n padding-top: 0;\n "}),(function(n){return!n.disabled&&!n.inverted&&"\n background-color: ".concat((n.theme||u.Z).background.row,";\n color: ").concat((n.theme||u.Z).content.default,";\n ")}),(function(n){return!n.disabled&&n.inverted&&"\n background-color: ".concat((n.theme||u.Z).background.dark,";\n color: ").concat((n.theme||u.Z).content.inverted,";\n ")}),(function(n){return n.cyan&&"\n background-color: ".concat((n.theme||u.Z).accent.cyan,";\n color: ").concat((n.theme||u.Z).monotone.black,";\n ")}),(function(n){return n.disabled&&"\n background-color: ".concat((n.theme||u.Z).feature.disabled,";\n color: ").concat((n.theme||u.Z).content.disabled,";\n ")}),(function(n){return n.color&&"\n background-color: ".concat(n.color," !important;\n color: ").concat((n.theme||u.Z).content.active,";\n ")}),(function(n){return n.quantifier&&"\n border-radius: 34px;\n line-height: 10px;\n padding: 4px 6px;\n "}),(function(n){return n.monospace&&"\n font-family: ".concat(l.Vp,";\n word-break: break-all;\n ")}));e.Z=function(n){var e=n.children,t=(0,i.Z)(n,f);return(0,s.jsx)(b,v(v({},t),{},{children:e}))}},25958:function(n,e,t){t.d(e,{$1:function(){return r},Dy:function(){return i},IU:function(){return u}});var o=t(17717),i="--full-refresh";function r(n,e){var t,i=null===e||void 0===e?void 0:e.fullPath,r=null===n||void 0===n||null===(t=n.configuration)||void 0===t?void 0:t.file_path;if(i)return null===n||void 0===n?void 0:n.uuid;if(r){var u=r.split(o.sep),c=u[u.length-1].split(".");return c.pop(),c.join(".")}}function u(n){var e,t=null===n||void 0===n||null===(e=n.configuration)||void 0===e?void 0:e.file_path;if(t){var i=t.split(o.sep),r=i[0],u=i[i.length-1].split(".");return u.pop(),{directory:i.slice(1,i.length-1).join(o.sep),filePath:t,name:u.join("."),project:r}}return{filePath:t}}},33766:function(n,e,t){t.d(e,{O2:function(){return s},g_:function(){return p},u7:function(){return f}});var o=t(75582),i=t(82394),r=t(34376),u=t.n(r),c=t(59e3),l=t(24224);function d(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?d(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var s="_offset";function f(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.preserveParams,i=e.pushHistory,r=e.replaceParams,l=(0,c.iV)(),d={};t&&t.forEach((function(n){l[n]&&(d[n]=l[n])}));var s,f=r?d:l;s=window.location.pathname;var p=i?u().push:u().replace,v=a(a({},f),n);Object.entries(n).forEach((function(n){var e=(0,o.Z)(n,2),t=e[0],i=e[1];"undefined"!==typeof i&&null!==i||delete v[t]}));var b=(0,c.uM)(v);b.length>=1&&(b="?".concat(b));var h="".concat(s.split("?")[0]).concat(b);return p(u().router.pathname,h,{shallow:!0})}function p(n,e,t){var i=t.addingMultipleValues,r=t.isList,u=t.itemsPerPage,c=t.pushHistory,d=void 0!==c&&c,p=t.resetLimitParams,v=a({},n);i?Object.entries(e).forEach((function(n){var e=(0,o.Z)(n,2),t=e[0],i=e[1];if(Array.isArray(i)){var r="".concat(t,"[]");v[r]=i.map(String)}})):r?Object.entries(e).forEach((function(n){var e=(0,o.Z)(n,2),t=e[0],i=e[1],r=String(i),u="".concat(t,"[]"),c=v[u];c&&Array.isArray(c)?(c=c.map(String)).includes(r)?v[u]=(0,l.Od)(c,(function(n){return n===r})):v[u]=c.concat(r):v[u]=[r]})):v=a(a({},v),e),p&&(v._limit=u||20,v[s]=0),f(v,{pushHistory:d})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8952],{75968:function(n,e,t){t.d(e,{J8:function(){return b},MS:function(){return h},Ts:function(){return v},_o:function(){return m},eY:function(){return f},fA:function(){return p},h5:function(){return k},oI:function(){return g}});var o=t(82394),i=t(86422),r=t(82635),u=t(98781),c=t(90211),l=t(33766),d=t(60701);function a(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?a(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var f=function(n,e){var t=(null===e||void 0===e?void 0:e.upstream_blocks)||[];return i.iZ.includes(null===n||void 0===n?void 0:n.type)||i.iZ.includes(null===e||void 0===e?void 0:e.type)||i.tf.DATA_LOADER===(null===e||void 0===e?void 0:e.type)&&i.tf.SENSOR!==n.type||t.push(n.uuid),t},p=function(n,e,t){var o=[];return(null===n||void 0===n?void 0:n.type)!==u.qL.STREAMING||i.iZ.includes(null===e||void 0===e?void 0:e.type)||i.iZ.includes(null===t||void 0===t?void 0:t.type)||(o=o.concat((null===e||void 0===e?void 0:e.downstream_blocks)||[])),o},v=function(n,e,t,o){for(var r,u=[],l=e.findIndex((function(e){return e.uuid===n.uuid}));!r&&l>=0;){var d;r=e[l-1],i.tf.SCRATCHPAD===(null===(d=r)||void 0===d?void 0:d.type)&&(r=null),l-=1}return r&&u.push(r.uuid),i.Ut.map((function(e){return{label:function(){return"Convert to ".concat((0,c.wX)(i.V4[e]))},onClick:function(){return o({converted_from_type:e,converted_from_uuid:n.uuid,type:e,upstream_blocks:u})},uuid:"".concat(t,"/convert_to/").concat(e)}}))},b=function(n,e,t,o,r,u){var c=n||{},a=c.configuration,f=c.downstream_blocks,p=c.has_callback,v=c.language,b=c.metadata,h=c.replicated_block,m=c.type,k=c.upstream_blocks,g=c.uuid,y=a||{},O=y.dynamic,x=y.reduce_output,E=i.tf.DBT===m,C=[];if(i.tf.SCRATCHPAD!==m&&![i.tf.CALLBACK,i.tf.EXTENSION,i.tf.MARKDOWN].includes(m)){C.push.apply(C,[{label:function(){return E?"Execute and run all upstream blocks":"Execute with all upstream blocks"},onClick:function(){return e({block:n,runUpstream:!0})},uuid:"execute_upstream"},{label:function(){return E?"Execute and run incomplete upstream blocks":"Execute with incomplete upstream blocks"},onClick:function(){return e({block:n,runIncompleteUpstream:!0})},uuid:"execute_incomplete_upstream"}]),E||C.push({label:function(){return"Execute block and run tests"},onClick:function(){return e({block:n,runTests:!0})},uuid:"run_tests"});var T,S,A=u||{},_=A.addNewBlock,I=A.blocksMapping,j=A.fetchFileTree,D=A.fetchPipeline,w=A.savePipelineContent,R=A.updatePipeline,Z=[];if(null===f||void 0===f||f.forEach((function(n){var e=null===I||void 0===I?void 0:I[n];e&&e.upstream_blocks.forEach((function(n){var e,t;null!==I&&void 0!==I&&null!==(e=I[n])&&void 0!==e&&null!==(t=e.configuration)&&void 0!==t&&t.dynamic&&Z.push(I[n])}))})),E&&i.t6.SQL===v)null!==b&&void 0!==b&&null!==(T=b.dbt)&&void 0!==T&&null!==(S=T.block)&&void 0!==S&&S.snapshot||C.unshift.apply(C,[{label:function(){return"Run model"},onClick:function(){return e({block:n,runSettings:{run_model:!0}})},tooltip:function(){return"Execute command dbt run."},uuid:"run_model"},{label:function(){return"Test model"},onClick:function(){return e({block:n,runSettings:{test_model:!0}})},tooltip:function(){return"Execute command dbt test."},uuid:"test_model"},{label:function(){return"Build model"},onClick:function(){return e({block:n,runSettings:{build_model:!0}})},tooltip:function(){return"Execute command dbt build."},uuid:"build_model"},{label:function(){return"Add upstream models"},onClick:function(){R({pipeline:{add_upstream_for_block_uuid:null===n||void 0===n?void 0:n.uuid}})},tooltip:function(){return"Add upstream models for this model to the pipeline."},uuid:"add_upstream_models"}]);if(E||!w||!O&&0!==Z.length||C.push({label:function(){return O?"Disable block as dynamic":"Set block as dynamic"},onClick:function(){return w({block:s(s({},n),{},{configuration:s(s({},a),{},{dynamic:!O})})})},uuid:"dynamic"}),I)(null===k||void 0===k?void 0:k.find((function(n){var e,t;return null===I||void 0===I||null===(e=I[n])||void 0===e||null===(t=e.configuration)||void 0===t?void 0:t.dynamic})))&&C.push({label:function(){return x?"Don\u2019t reduce output":"Reduce output"},onClick:function(){return w({block:s(s({},n),{},{configuration:s(s({},a),{},{reduce_output:!x})})})},uuid:"reduce_output"});C.push({label:function(){return p?"Remove callback":"Add callback"},onClick:function(){if(p)return w({block:s(s({},n),{},{has_callback:!p})}).then((function(){j(),D()}));(0,l.u7)({sideview:d.cH.CALLBACKS})},uuid:"has_callback"}),E||C.push({disabled:!!h,label:function(){return"Replicate block"},onClick:function(){return _({replicated_block:g})},uuid:"Replicate block"})}return C.push({label:function(){return"Delete block"},onClick:function(){t(n),o(!1)},uuid:"delete_block"}),r?[C.pop()]:C};function h(n){var e=n.tags,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[],r=t.conditionFailed;return null===e||void 0===e||e.forEach((function(n){i.L8.DBT_SNAPSHOT===n?o.push({description:"This is a dbt snapshot file.",title:(0,c.vg)(i.L8.DBT_SNAPSHOT)}):i.L8.DYNAMIC===n?o.push({description:"This block will create N blocks for each of its downstream blocks.",title:(0,c.vg)(i.L8.DYNAMIC)}):i.L8.DYNAMIC_CHILD===n?o.push({description:"This block is dynamically created by its upstream parent block that is dynamic.",title:(0,c.vg)(i.L8.DYNAMIC_CHILD)}):i.L8.REDUCE_OUTPUT===n?o.push({description:"Reduce output from all dynamically created blocks into a single array output.",title:(0,c.vg)(i.L8.REDUCE_OUTPUT)}):i.L8.REPLICA===n?o.push({description:"This block is a replica of another block in the current pipeline.",title:(0,c.vg)(i.L8.REPLICA)}):i.L8.CONDITION===n?r?o.push({description:"This block condition evaluated as false.",title:"Condition unmet"}):o.push({description:"This block has a condition that will be run before its execution.",title:(0,c.vg)(i.L8.CONDITION)}):o.push({title:n})})),o}function m(n){var e=n.block,t=n.dynamic,o=n.dynamicUpstreamBlock,i=n.hasError,r=(n.reduceOutput,n.reduceOutputUpstreamBlock),u=n.selected,c=o&&!r;return{borderColorShareProps:{blockColor:null===e||void 0===e?void 0:e.color,blockType:null===e||void 0===e?void 0:e.type,dynamicBlock:t,dynamicChildBlock:c,hasError:i,selected:u},tags:h(e)}}function k(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e&&(null===e||void 0===e?void 0:e.length)>=0?e.map((function(n){return{data:n,execution_state:r.uF.IDLE,type:r.Gi.TEXT_PLAIN}})):n.filter((function(n){return null===n||void 0===n?void 0:n.type}))}function g(n){return{hasError:!!n.find((function(n){return n.error})),hasOutput:n.length>=1}}},35438:function(n,e,t){t.d(e,{Ai:function(){return u},Jo:function(){return r},bJ:function(){return c},rl:function(){return o}});var o,i=t(86422),r=(t(49125).iI,1e4),u={compact:!0},c={height:10,width:10};i.tf.DATA_EXPORTER,i.tf.SENSOR,i.Lq.GREY,i.Lq.PINK,i.Lq.TEAL,i.Lq.YELLOW;!function(n){n.NORTH="NORTH",n.SOUTH="SOUTH"}(o||(o={}))},48952:function(n,e,t){t.d(e,{Z:function(){return On}});var o=t(75582),i=t(21831),r=t(82394),u=t(26304),c=t(77837),l=t(38860),d=t.n(l),a=t(51774),s=t.n(a),f=t(38626),p=t(4804),v=t(82684),b=t(83455),h=t(18283),m=t(86422),k=t(16634),g=t(93461),y=t(67971),O=t(86673),x=t(54283),E=t(19711),C=t(23831),T=t(22341),S=t(73942),A=t(49125),_=3*A.iI,I=f.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-kc7274-0"})(["border-radius:","px;border:1px solid transparent;min-width:fit-content;overflow:hidden;"," "," "," "," "," "," "," ",""],S.n_,(function(n){return"\n background-color: ".concat((n.theme.background||C.Z.background).codeTextarea,";\n ")}),(function(n){return n.borderColor&&"\n border-color: ".concat(n.borderColor,";\n ")}),(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||C.Z.content).active,";\n ")}),(function(n){return(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border-color: ".concat((n.theme.content||C.Z.content).muted,";\n border-style: dotted;\n cursor: not-allowed;\n opacity: 0.5;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||C.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||C.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),j=f.default.div.withConfig({displayName:"indexstyle__StatusStyle",componentId:"sc-kc7274-1"})(["height:","px;width:","px;"],2*A.iI,2*A.iI),D=f.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-kc7274-2"})(["align-items:center;border-radius:","px;border:2px solid transparent;display:flex;height:","px;justify-content:center;width:","px;"," ",""],S.BG,5*A.iI,5*A.iI,(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n border-color: ").concat(n.backgroundColor,";\n ")}),(function(n){return n.borderColor&&"\n border-color: ".concat(n.borderColor,";\n ")})),w=f.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-kc7274-3"})(["padding:","px;",""],1*A.iI,(function(n){return"\n background-color: ".concat((n.theme.background||C.Z.background).dashboard,";\n ")})),R=f.default.div.withConfig({displayName:"indexstyle__BodyStyle",componentId:"sc-kc7274-4"})(["padding-left:","px;padding-right:","px;"],1*A.iI,1*A.iI),Z=(f.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-kc7274-5"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*A.iI),t(98781)),N=t(75968),L=t(25958),P=A.cd,B=A.cd*A.iI,M=2*A.iI,H=7.43,U=2*A.iI+5*A.iI,G=2*A.iI+5*A.iI+B+B+M,F=30*A.iI;function V(n){var e=(0,N.MS)(n);return(null===e||void 0===e?void 0:e.length)>=1?(null===e||void 0===e?void 0:e.map((function(n){return n.title})).join(", "))||"":m.dO[null===n||void 0===n?void 0:n.language]||""}function K(n,e){var t,o=n.type,i=(null===m.V4||void 0===m.V4?void 0:m.V4[o])||o;if(Z.qL.INTEGRATION===(null===e||void 0===e?void 0:e.type)&&m.tf.TRANSFORMER!==n.type){var r,u={};if(m.t6.YAML===n.language&&(u=(0,p.Qc)(n.content)),m.tf.DATA_LOADER===n.type)t="".concat(n.uuid,": ").concat(null===(r=u)||void 0===r?void 0:r.source);else if(m.tf.DATA_EXPORTER===n.type){var c;t="".concat(n.uuid,": ").concat(null===(c=u)||void 0===c?void 0:c.destination)}}else if(m.tf.DBT===n.type&&m.t6.SQL===n.language){var l=(0,L.IU)(n),d=l.name,a=l.project;t=d,i="".concat(i,"/").concat(a)}return null!==n&&void 0!==n&&n.replicated_block&&(t=null===n||void 0===n?void 0:n.replicated_block,i=null===n||void 0===n?void 0:n.uuid),t||(t=n.uuid),{displayText:t,subtitle:i}}function q(n,e){return K(n,e).displayText||""}function X(n,e){return K(n,e).subtitle||""}function J(n){var e=0;return null===n||void 0===n||n.forEach((function(n,t){var o=n.uuid;e+=4+o.length*H,t>=1&&(e+=4)})),e}function Q(n,e,t){var o,i=0,r=2+U,u=Y(n,e,t)-(2+2*A.iI),c=V(n),l=(null===c||void 0===c?void 0:c.length)*H;if(l>=1){var d=1;l>u&&(d=Math.ceil(l/u)),i+=1,r+=18*d}var a=t||{},s=a.blockStatus;return[a.callbackBlocks,a.conditionalBlocks,a.extensionBlocks].forEach((function(n){if((null===n||void 0===n?void 0:n.length)>=1){var e=J(n),t=1;e>u&&(t=Math.ceil(e/u)),i+=1,r+=18.5*t+4*(t-1)}})),"undefined"!==typeof(null===s||void 0===s||null===(o=s[n.uuid])||void 0===o?void 0:o.runtime)&&(r+=18,i+=1),r+=(i+=1)*(1*A.iI)}function Y(n,e,t){var o,r,u=Math.max(8.62*(null===(o=q(n,e))||void 0===o?void 0:o.length),(null===(r=X(n,e))||void 0===r?void 0:r.length)*H),c=V(n),l=(null===c||void 0===c?void 0:c.length)*H,d=t||{},a=d.callbackBlocks,s=d.conditionalBlocks,f=d.extensionBlocks,p=Math.max.apply(Math,(0,i.Z)([a,s,f].map((function(n){return J(n)})).concat(l)));return p>u&&(u=Math.min(F,p)),2+G+u}var z,W=t(44162),$=t(35438),nn=t(90211),en=function(n){var e=n/1e3,t=4-Math.floor(e).toString().length,o=(0,nn.QV)(e,t>=0?t:0),i="s";return o>1e3&&(o=(0,nn.QV)(o/60,0),i="m"),"".concat(o).concat(i)},tn=function(n,e){var t=n||{},o=t.id,i=t.side,r=null===e||void 0===e?void 0:e.id;return i===$.rl.NORTH?null===o||void 0===o?void 0:o.endsWith("".concat(r,"-to")):i===$.rl.SOUTH&&(null===o||void 0===o?void 0:o.startsWith(r))},on=t(28598),rn=(z={},(0,r.Z)(z,m.tf.DATA_EXPORTER,T.zS),(0,r.Z)(z,m.tf.DATA_LOADER,T.rH),(0,r.Z)(z,m.tf.DBT,T.xE),(0,r.Z)(z,m.tf.SENSOR,T.LM),(0,r.Z)(z,m.tf.TRANSFORMER,T.Sv),z);var un=function(n){var e=n.block,t=n.callbackBlocks,o=n.conditionalBlocks,i=n.disabled,r=n.extensionBlocks,u=n.height,c=n.hideStatus,l=n.pipeline,d=n.selected,a=n.hasFailed,s=n.isCancelled,p=n.isConditionFailed,b=n.isInProgress,S=n.isQueued,A=n.isSuccessful,Z=n.runtime,N=(0,v.useContext)(f.ThemeContext),L=!(b||S||a||A||s||p),B=a&&!(b||S),H=!B&&A&&!(b||S),U="";L?U="No status":H?U="Successful execution":B?U="Failed execution":b?U="Currently executiing":s&&(U="Cancelled execution");var G=e.color,F=e.type,K=(0,W.qn)(F,{blockColor:G,theme:N}).accent,J=(0,v.useMemo)((function(){return V(e)}),[e]),Q=(0,v.useMemo)((function(){var n,e,t=rn[F]||T.EJ,o=!1;return[m.tf.CALLBACK,m.tf.CHART,m.tf.CONDITIONAL,m.tf.CUSTOM,m.tf.DATA_EXPORTER,m.tf.DATA_LOADER,m.tf.EXTENSION,m.tf.SCRATCHPAD,m.tf.SENSOR,m.tf.MARKDOWN,m.tf.TRANSFORMER].includes(F)?n=K:[m.tf.DBT].includes(F)&&(e=K),[m.tf.DATA_EXPORTER].includes(F)&&(o=!0),(0,on.jsx)(D,{backgroundColor:n,borderColor:e,children:(0,on.jsx)("div",{style:{height:_,width:_},children:(0,on.jsx)(t,{inverted:o,size:_})})})}),[K,F]);return(0,on.jsxs)(I,{borderColor:K,disabled:i,height:u,isCancelled:s,isConditionFailed:p,selected:d,children:[(0,on.jsx)(w,{children:(0,on.jsxs)(y.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,on.jsxs)(g.Z,{flex:1,children:[Q,(0,on.jsx)(O.Z,{mr:P}),(0,on.jsxs)(g.Z,{flexDirection:"column",children:[(0,on.jsx)(E.ZP,{bold:!0,monospace:!0,children:q(e,l)}),(0,on.jsx)(E.ZP,{default:!0,monospace:!0,small:!0,children:X(e,l)})]})]}),(0,on.jsx)(O.Z,{mr:"15px"}),(0,on.jsx)(j,{title:U,children:!c&&(0,on.jsxs)(on.Fragment,{children:[b&&(0,on.jsx)(x.Z,{color:(N||C.Z).content.active,small:!0}),H&&(0,on.jsx)(T.Jr,{size:M,success:!0}),B&&(0,on.jsx)(T.x8,{danger:!0,size:M}),L&&(0,on.jsx)(k.Z,{borderSize:1,muted:!0,size:M})]})})]})}),(0,on.jsxs)(R,{children:[(null===J||void 0===J?void 0:J.length)>=1&&(0,on.jsx)(O.Z,{mt:1,children:(0,on.jsx)(E.ZP,{default:!0,monospace:!0,small:!0,children:J})}),[o,t,r].map((function(n,e){if((null===n||void 0===n?void 0:n.length)>=1)return(0,on.jsx)("div",{style:{marginTop:4},children:(0,on.jsx)(y.Z,{alignItems:"center",flexWrap:"wrap",children:n.reduce((function(n,e,t){return t>=1&&n.push((0,on.jsx)("div",{style:{width:4}},"space-".concat(e.uuid))),n.push((0,on.jsx)("div",{style:{marginTop:4},children:(0,on.jsx)(h.Z,{color:(0,W.qn)(e.type,{blockColor:e.color,theme:N}).accentLight,monospace:!0,small:!0,children:e.uuid})},"badge-".concat(e.uuid))),n}),[])})},"badge-blocks-".concat(e))})),Z&&(0,on.jsx)(O.Z,{mt:1,children:(0,on.jsx)(E.ZP,{monospace:!0,muted:!0,small:!0,children:en(Z)})})]})]})},cn=t(11135),ln=t(82531),dn=t(37391),an=f.default.div.withConfig({displayName:"indexstyle__GraphContainerStyle",componentId:"sc-bc2ei5-0"})(["div{","}",""],dn.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),sn=(f.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-bc2ei5-1"})(["border-radius:","px;border:1px solid transparent;min-width:fit-content;"," "," "," "," "," ",""],S.BG,(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||C.Z.content).active,";\n ")}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border-color: ".concat((n.theme.content||C.Z.content).active,";\n border-style: dashed;\n cursor: not-allowed;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||C.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),f.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-bc2ei5-2"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*A.iI),t(66050)),fn=t(24224);var pn=t(96510),vn=["forwardedRef"];function bn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function hn(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?bn(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):bn(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var mn=s()((0,c.Z)(d().mark((function n(){var e,o;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(2920)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,o=e.Canvas,n.abrupt("return",(function(n){var e=n.forwardedRef,t=(0,u.Z)(n,vn);return(0,on.jsx)(o,hn({ref:e},t))}));case 5:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),kn=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(2920)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Node);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),gn=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(2920)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Edge);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),yn=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(2920)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Port);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}});var On=function(n){var e=n.blockRefs,t=n.blockStatus,r=n.blocks,u=n.disabled,c=n.editingBlock,l=n.enablePorts,d=void 0!==l&&l,a=n.fetchPipeline,s=n.height,h=n.heightOffset,k=void 0===h?10*A.iI:h,g=n.messages,x=n.noStatus,C=n.onClickNode,T=n.pannable,S=void 0===T||T,_=n.pipeline,I=n.runningBlocks,j=void 0===I?[]:I,D=n.selectedBlock,w=n.setEditingBlock,R=n.setErrors,P=n.setSelectedBlock,B=n.setZoom,M=n.showDynamicBlocks,H=void 0!==M&&M,U=n.treeRef,G=n.zoomable,F=void 0===G||G,V=(0,v.useContext)(f.ThemeContext),K=(0,v.useRef)(null),q=U||K,X=(0,v.useState)([]),J=X[0],z=X[1],nn=(0,v.useState)(!1),en=nn[0],rn=nn[1],dn=(0,v.useState)(null),vn=dn[0],bn=dn[1],On=d&&en,xn=(null===c||void 0===c?void 0:c.upstreamBlocks)||{},En=xn.block,Cn=xn.values,Tn=void 0===Cn?[]:Cn,Sn=(0,v.useMemo)((function(){return Tn.length}),[Tn]),An=(0,v.useMemo)((function(){var n;return(null===_||void 0===_||null===(n=_.blocks)||void 0===n?void 0:n.filter((function(n){var e=n.type;return!m.iZ.includes(e)})))||[]}),[null===_||void 0===_?void 0:_.blocks]),_n=(0,v.useMemo)((function(){return An}),[An,H]),In=(0,v.useMemo)((function(){if(r)return r;if(_){var n={},e=[];return e.push.apply(e,(0,i.Z)(null===_||void 0===_?void 0:_.blocks)),e.push.apply(e,(0,i.Z)(null===_||void 0===_?void 0:_.callbacks)),e.push.apply(e,(0,i.Z)(null===_||void 0===_?void 0:_.conditionals)),Object.values(null===_||void 0===_?void 0:_.extensions).forEach((function(n){var t=n.blocks;e.push.apply(e,(0,i.Z)(t))})),e.reduce((function(e,t){return n[t.uuid]||e.push(t),e}),[])}return[]}),[r,_]),jn=(0,v.useMemo)((function(){return(0,fn.HK)(In||[],(function(n){return n.uuid}))}),[In]),Dn=(0,v.useMemo)((function(){var n={};return null===_n||void 0===_n||_n.map((function(e){var t;n[e.uuid]=null===e||void 0===e||null===(t=e.callback_blocks)||void 0===t?void 0:t.reduce((function(n,e){var t=null===jn||void 0===jn?void 0:jn[e];return t?n.concat(t):n}),[])})),n}),[_n,jn]),wn=(0,v.useMemo)((function(){var n={};return null===_n||void 0===_n||_n.map((function(e){var t;n[e.uuid]=null===e||void 0===e||null===(t=e.conditional_blocks)||void 0===t?void 0:t.reduce((function(n,e){var t=null===jn||void 0===jn?void 0:jn[e];return t?n.concat(t):n}),[])})),n}),[_n,jn]),Rn=(0,v.useMemo)((function(){var n={};return null===_n||void 0===_n||_n.map((function(e){var t,i=[];null===(t=Object.entries((null===_||void 0===_?void 0:_.extensions)||{}))||void 0===t||t.forEach((function(n){var t=(0,o.Z)(n,2),r=t[0],u=t[1].blocks;null===u||void 0===u||u.forEach((function(n){var t=n.upstream_blocks,o=n.uuid;if(null!==t&&void 0!==t&&t.includes(null===e||void 0===e?void 0:e.uuid)){var u=null===jn||void 0===jn?void 0:jn[o];u&&i.push(hn(hn({},u),{},{extension_uuid:r}))}}))})),n[e.uuid]=i})),n}),[_n,jn,_]),Zn=(0,v.useMemo)((function(){return(0,fn.HK)(j,(function(n){return n.uuid}))}),[j]),Nn=(0,b.Db)(ln.ZP.blocks.pipelines.useUpdate(null===_||void 0===_?void 0:_.uuid,encodeURIComponent(null===En||void 0===En?void 0:En.uuid)),{onSuccess:function(n){return(0,pn.wD)(n,{callback:function(){w({upstreamBlocks:null}),null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===R||void 0===R?void 0:R({errors:e,response:n})}})}}),Ln=(0,o.Z)(Nn,2),Pn=Ln[0],Bn=Ln[1].isLoading,Mn=(0,b.Db)((function(n){var e=n.fromBlock,t=n.portSide,o=n.toBlock,i=n.removeDependency,r=o,u=o.upstream_blocks.concat(e.uuid);return i||t!==$.rl.NORTH||(r=e,u=e.upstream_blocks.concat(o.uuid)),ln.ZP.blocks.pipelines.useUpdate(null===_||void 0===_?void 0:_.uuid,encodeURIComponent(r.uuid))({block:hn(hn({},r),{},{upstream_blocks:i?o.upstream_blocks.filter((function(n){return n!==e.uuid})):u})})}),{onSuccess:function(n){return(0,pn.wD)(n,{callback:function(){null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===R||void 0===R?void 0:R({errors:e,response:n})}})}}),Hn=(0,o.Z)(Mn,1)[0],Un=(0,v.useCallback)((function(n){var t=n.type,o=n.uuid;if(null===P||void 0===P||P(n),z([]),null!==e&&void 0!==e&&e.current){var i,r=e.current["".concat(t,"s/").concat(o,".py")];null===r||void 0===r||null===(i=r.current)||void 0===i||i.scrollIntoView()}}),[e,P]),Gn=(0,v.useCallback)((function(n){z([]),w((function(e){var t=e.upstreamBlocks.values||[],o=t.findIndex((function(e){var t=e.uuid;return n.uuid===t}));return hn(hn({},e),{},{upstreamBlocks:hn(hn({},e.upstreamBlocks),{},{values:o>=0?(0,fn.oM)(t,o):t.concat(n)})})}))}),[w]),Fn=(0,v.useMemo)((function(){var n={};return _n.forEach((function(e){e.upstream_blocks.forEach((function(t){n[t]||(n[t]=[]),n[t].push(e)}))})),n}),[_n]),Vn=(0,v.useCallback)((function(n){var e,t;if(Z.qL.INTEGRATION===(null===_||void 0===_?void 0:_.type)&&m.tf.TRANSFORMER!==n.type){var o,i={};if(m.t6.YAML===n.language&&(i=(0,p.Qc)(n.content)),m.tf.DATA_LOADER===n.type)e="".concat(n.uuid,": ").concat(null===(o=i)||void 0===o?void 0:o.source);else if(m.tf.DATA_EXPORTER===n.type){var r;e="".concat(n.uuid,": ").concat(null===(r=i)||void 0===r?void 0:r.destination)}}else if(m.tf.DBT===n.type&&m.t6.SQL===n.language){var u=(0,L.IU)(n);e=u.name,t=u.project}return null!==n&&void 0!==n&&n.replicated_block&&(e=null===n||void 0===n?void 0:n.replicated_block,t=null===n||void 0===n?void 0:n.uuid),e||(e=n.uuid),{displayText:e,kicker:t,subtitle:undefined}}),[_]),Kn=(0,v.useMemo)((function(){var n=[],e=[];return _n.forEach((function(o){var r=Vn(o),u=r.displayText,c=r.kicker,l=r.subtitle,d=o.tags,a=void 0===d?[]:d,s=o.upstream_blocks,f=void 0===s?[]:s,p=o.uuid,v=Fn[p],b=[];v?b.push.apply(b,(0,i.Z)(v.map((function(n){return hn(hn({},$.bJ),{},{id:"".concat(p,"-").concat(n.uuid,"-from"),side:$.rl.SOUTH})})))):b.push(hn(hn({},$.bJ),{},{id:"".concat(p,"-from"),side:$.rl.SOUTH})),0===f.length&&b.push(hn(hn({},$.bJ),{},{id:"".concat(p,"-to"),side:$.rl.NORTH})),null===f||void 0===f||f.forEach((function(n){b.push(hn(hn({},$.bJ),{},{id:"".concat(n,"-").concat(p,"-to"),side:$.rl.NORTH})),e.push({from:n,fromPort:"".concat(n,"-").concat(p,"-from"),id:"".concat(n,"-").concat(p),to:p,toPort:"".concat(n,"-").concat(p,"-to")})}));(null===a||void 0===a?void 0:a.length)>=1&&A.iI,c&&A.iI,l&&A.iI;var h=u;[c,l].forEach((function(n){n&&n.length>h.length&&(h=n)}));var m=null===Dn||void 0===Dn?void 0:Dn[null===o||void 0===o?void 0:o.uuid],k=null===wn||void 0===wn?void 0:wn[null===o||void 0===o?void 0:o.uuid],g=null===Rn||void 0===Rn?void 0:Rn[null===o||void 0===o?void 0:o.uuid];n.push({data:{block:o},height:Q(o,_,{blockStatus:t,callbackBlocks:m,conditionalBlocks:k,extensionBlocks:g}),id:p,ports:b,width:Y(o,_,{blockStatus:t,callbackBlocks:m,conditionalBlocks:k,extensionBlocks:g})})})),{edges:e,nodes:n}}),[t,_n,Dn,wn,Vn,Fn,Rn,_]),qn=Kn.edges,Xn=Kn.nodes,Jn=(0,v.useCallback)((function(n){if(x)return{};if(t){var e=t[function(n){var e=n.uuid,t=n.replicated_block;return t?"".concat(e,":").concat(t):e}(n)]||{},o=e.status,i=e.runtime;return{hasFailed:sn.V.FAILED===o,isCancelled:sn.V.CANCELLED===o,isConditionFailed:sn.V.CONDITION_FAILED===o,isInProgress:sn.V.RUNNING===o,isQueued:sn.V.INITIAL===o,isSuccessful:sn.V.COMPLETED===o,runtime:i}}var r,u=(0,N.h5)((null===g||void 0===g?void 0:g[n.uuid])||[]),c=(0,N.oI)(u),l=c.hasError,d=c.hasOutput,a=Zn[n.uuid];return{hasFailed:!a&&(l||m.DA.FAILED===n.status),isInProgress:a,isQueued:a&&(null===(r=j[0])||void 0===r?void 0:r.uuid)!==n.uuid,isSuccessful:!a&&(!l&&d||m.DA.EXECUTED===n.status)}}),[t,g,x,j,Zn]),Qn=(0,v.useMemo)((function(){var n=0;return s&&(n+=s),k&&(n-=k),Math.max(0,n)}),[s,k]);return(0,on.jsxs)(on.Fragment,{children:[En&&(0,on.jsxs)(O.Z,{my:3,px:A.cd,children:[(0,on.jsxs)(O.Z,{mb:A.cd,children:[(0,on.jsxs)(E.ZP,{children:["Select parent block(s) for ",(0,on.jsx)(E.ZP,{color:(0,W.qn)(En.type,{blockColor:En.color,theme:V}).accent,inline:!0,monospace:!0,children:En.uuid}),":"]}),(0,on.jsx)(O.Z,{mt:1,children:Tn.map((function(n,e){var t,o,i=n.uuid;return(0,on.jsxs)(E.ZP,{color:(0,W.qn)(null===(t=jn[i])||void 0===t?void 0:t.type,{blockColor:null===(o=jn[i])||void 0===o?void 0:o.type,theme:V}).accent,inline:!0,monospace:!0,children:[i,Sn>=2&&e<=Sn-2?(0,on.jsx)(E.ZP,{inline:!0,children:",\xa0"}):null]},i)}))})]}),(0,on.jsxs)(y.Z,{alignItems:"center",children:[(0,on.jsx)(cn.ZP,{compact:!0,inline:!0,loading:Bn,onClick:function(){return Pn({block:hn(hn({},En),{},{upstream_blocks:Tn.map((function(n){return n.uuid}))})})},uuid:"DependencyGraph/save_parents",children:"Save dependencies"}),(0,on.jsx)(O.Z,{ml:1}),(0,on.jsx)(cn.ZP,{compact:!0,inline:!0,noBackground:!0,onClick:function(){z([]),w({upstreamBlocks:null})},uuid:"DependencyGraph/cancel_save_parents",children:"Cancel"})]})]}),(0,on.jsx)(an,{height:Qn,onDoubleClick:function(){var n,e;return null===q||void 0===q||null===(n=q.current)||void 0===n||null===(e=n.fitCanvas)||void 0===e?void 0:e.call(n)},children:(0,on.jsx)(mn,{arrow:null,disabled:u,edge:function(n){var e,t=jn[n.source];return(0,on.jsx)(gn,hn(hn({},n),{},{onClick:function(n,e){bn(null),z([e.id])},onRemove:function(n,e){var t=jn[e.from],o=jn[e.to];Hn({fromBlock:t,removeDependency:!0,toBlock:o}),z([])},removable:d&&!(null!==c&&void 0!==c&&c.upstreamBlocks),style:{stroke:null===(e=(0,W.qn)(null===t||void 0===t?void 0:t.type,{blockColor:null===t||void 0===t?void 0:t.color,theme:V}))||void 0===e?void 0:e.accent}}))},edges:qn,fit:!0,forwardedRef:q,maxHeight:$.Jo,maxWidth:$.Jo,maxZoom:1,minZoom:-.7,node:function(n){var e,t,o,i,r,l;return(0,on.jsx)(kn,hn(hn({},n),{},{dragType:"port",linkable:!0,onClick:function(n,e){var t=e.data.block;bn(null),(null===En||void 0===En?void 0:En.uuid)===t.uuid||(En?Gn(t):(null===C||void 0===C||C({block:t}),setTimeout((function(){Un(t)}),1)))},onEnter:function(){null!==c&&void 0!==c&&c.upstreamBlocks||rn(!0)},onLeave:function(){return rn(!1)},port:On&&(null===vn||tn(vn,n))?(0,on.jsx)(yn,{onDrag:function(){return rn(!0)},onDragEnd:function(){rn(!1),bn(null)},onDragStart:function(n,e,t){var o=null===t||void 0===t?void 0:t.side;bn({id:null===t||void 0===t?void 0:t.id,side:o})},onEnter:function(){return rn(!0)},rx:10,ry:10,style:{fill:(0,W.qn)(null===n||void 0===n||null===(e=n.properties)||void 0===e||null===(t=e.data)||void 0===t||null===(o=t.block)||void 0===o?void 0:o.type,{blockColor:null===n||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.data)||void 0===r||null===(l=r.block)||void 0===l?void 0:l.color,theme:V}).accent,stroke:"white",strokeWidth:"1px"}}):null,style:{fill:"transparent",stroke:"transparent",strokeWidth:0},children:function(n){var e=n.height,t=n.node.data.block,o=Jn(t),i=Vn(t);i.displayText,i.kicker,i.subtitle;return(0,on.jsx)("foreignObject",{height:e,style:{pointerEvents:"none"},width:n.width,x:0,y:0,children:(0,on.jsx)(un,hn({block:t,callbackBlocks:null===Dn||void 0===Dn?void 0:Dn[null===t||void 0===t?void 0:t.uuid],conditionalBlocks:null===wn||void 0===wn?void 0:wn[null===t||void 0===t?void 0:t.uuid],disabled:(null===En||void 0===En?void 0:En.uuid)===t.uuid,extensionBlocks:null===Rn||void 0===Rn?void 0:Rn[null===t||void 0===t?void 0:t.uuid],height:e,hideStatus:u||x,pipeline:_,selected:En?!!(0,fn.sE)(Tn,(function(n){return n.uuid===t.uuid})):(null===D||void 0===D?void 0:D.uuid)===t.uuid},o),t.uuid)})}}))},nodes:Xn,onNodeLink:function(n,e,t,o){var i,r=jn[e.id],u=jn[t.id],c=(null===_||void 0===_?void 0:_.type)===Z.qL.INTEGRATION&&((null===r||void 0===r?void 0:r.type)===m.tf.DATA_EXPORTER||(null===r||void 0===r?void 0:r.type)===m.tf.DATA_LOADER&&(null===u||void 0===u?void 0:u.type)===m.tf.DATA_EXPORTER);if(!(null!==r&&void 0!==r&&null!==(i=r.upstream_blocks)&&void 0!==i&&i.includes(u.uuid)||e.id===t.id||c)){var l=null===o||void 0===o?void 0:o.side;Hn({fromBlock:r,portSide:l||$.rl.SOUTH,toBlock:u})}},onNodeLinkCheck:function(n,e,t){return!qn.some((function(n){return n.from===e.id&&n.to===t.id}))},onZoomChange:function(n){return null===B||void 0===B?void 0:B(n)},pannable:S,selections:J,zoomable:F})})]})}},60701:function(n,e,t){t.d(e,{Qq:function(){return f},Z7:function(){return p},cH:function(){return i},du:function(){return a},fp:function(){return d},j5:function(){return s},uM:function(){return l}});var o,i,r=t(82394),u=t(22341),c=t(24224),l="sideview",d=90;!function(n){n.ADDON_BLOCKS="addon_blocks",n.BLOCK_SETTINGS="block_settings",n.CALLBACKS="callbacks",n.CHARTS="charts",n.DATA="data",n.EXTENSIONS="power_ups",n.FILE_VERSIONS="file_versions",n.GRAPHS="graphs",n.REPORTS="reports",n.SECRETS="secrets",n.SETTINGS="settings",n.TERMINAL="terminal",n.TREE="tree",n.VARIABLES="variables"}(i||(i={}));i.BLOCK_SETTINGS,i.CALLBACKS,i.CHARTS,i.DATA,i.EXTENSIONS,i.TREE;var a=[i.DATA],s=[{key:i.TREE,label:"Tree"},{buildLabel:function(n){var e=(n.pipeline||{}).widgets,t=void 0===e?[]:e;return(null===t||void 0===t?void 0:t.length)>=1?"Charts (".concat(t.length,")"):"Charts"},key:i.CHARTS},{buildLabel:function(n){var e=n.variables;return(null===e||void 0===e?void 0:e.length)>=1?"Variables (".concat(e.length,")"):"Variables"},key:i.VARIABLES},{buildLabel:function(n){var e=n.secrets;return(null===e||void 0===e?void 0:e.length)>=1?"Secrets (".concat(e.length,")"):"Secrets"},key:i.SECRETS},{buildLabel:function(n){n.pipeline;return"Add-on blocks"},key:i.ADDON_BLOCKS},{buildLabel:function(n){var e=(n.pipeline||{}).extensions,t=void 0===e?{}:e,o=0;return Object.values(t).forEach((function(n){var e=n.blocks;o+=(null===e||void 0===e?void 0:e.length)||0})),o>=1?"Power ups (".concat(o,")"):"Power ups"},key:i.EXTENSIONS},{key:i.DATA,label:"Data"},{key:i.TERMINAL,label:"Terminal"},{key:i.BLOCK_SETTINGS,label:"Block settings"}],f=(0,c.HK)(s,(function(n){return n.key})),p=(o={},(0,r.Z)(o,i.ADDON_BLOCKS,u.EJ),(0,r.Z)(o,i.BLOCK_SETTINGS,u.JG),(0,r.Z)(o,i.CALLBACKS,u.AQ),(0,r.Z)(o,i.CHARTS,u.GQ),(0,r.Z)(o,i.DATA,u.iA),(0,r.Z)(o,i.EXTENSIONS,u.Bf),(0,r.Z)(o,i.SECRETS,u.Yo),(0,r.Z)(o,i.SETTINGS,u.Zr),(0,r.Z)(o,i.TERMINAL,u.oI),(0,r.Z)(o,i.TREE,u.mp),(0,r.Z)(o,i.VARIABLES,u.LO),o)},66050:function(n,e,t){var o;t.d(e,{V:function(){return o}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running",n.UPSTREAM_FAILED="upstream_failed",n.CONDITION_FAILED="condition_failed"}(o||(o={}))},18283:function(n,e,t){var o=t(82394),i=t(26304),r=(t(82684),t(38626)),u=t(23831),c=t(73942),l=t(2005),d=t(49125),a=t(31012),s=t(28598),f=["children"];function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function v(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var b=r.default.p.withConfig({displayName:"Badge__BadgeStyle",componentId:"sc-tfqsp0-0"})(["border-radius:","px;display:inline;font-family:",";margin:0;",";"," "," ",";",";"," "," "," "," "," "," "," ",""],c.BG,l.ry,a.iD,(function(n){return n.small&&"\n ".concat(a.HC,";\n ")}),(function(n){return n.xxsmall&&"\n font-size: ".concat(a.VK,"px;\n line-height: ").concat(a.VK,"px;\n ")}),(function(n){return!n.regular&&"\n padding: 2px 4px;\n "}),(function(n){return n.regular&&"\n padding: ".concat(1*d.iI,"px ").concat(1.25*d.iI,"px;\n ")}),(function(n){return n.noVerticalPadding&&"\n padding-bottom: 0;\n padding-top: 0;\n "}),(function(n){return!n.disabled&&!n.inverted&&"\n background-color: ".concat((n.theme||u.Z).background.row,";\n color: ").concat((n.theme||u.Z).content.default,";\n ")}),(function(n){return!n.disabled&&n.inverted&&"\n background-color: ".concat((n.theme||u.Z).background.dark,";\n color: ").concat((n.theme||u.Z).content.inverted,";\n ")}),(function(n){return n.cyan&&"\n background-color: ".concat((n.theme||u.Z).accent.cyan,";\n color: ").concat((n.theme||u.Z).monotone.black,";\n ")}),(function(n){return n.disabled&&"\n background-color: ".concat((n.theme||u.Z).feature.disabled,";\n color: ").concat((n.theme||u.Z).content.disabled,";\n ")}),(function(n){return n.color&&"\n background-color: ".concat(n.color," !important;\n color: ").concat((n.theme||u.Z).content.active,";\n ")}),(function(n){return n.quantifier&&"\n border-radius: 34px;\n line-height: 10px;\n padding: 4px 6px;\n "}),(function(n){return n.monospace&&"\n font-family: ".concat(l.Vp,";\n word-break: break-all;\n ")}));e.Z=function(n){var e=n.children,t=(0,i.Z)(n,f);return(0,s.jsx)(b,v(v({},t),{},{children:e}))}},25958:function(n,e,t){t.d(e,{$1:function(){return r},Dy:function(){return i},IU:function(){return u}});var o=t(17717),i="--full-refresh";function r(n,e){var t,i=null===e||void 0===e?void 0:e.fullPath,r=null===n||void 0===n||null===(t=n.configuration)||void 0===t?void 0:t.file_path;if(i)return null===n||void 0===n?void 0:n.uuid;if(r){var u=r.split(o.sep),c=u[u.length-1].split(".");return c.pop(),c.join(".")}}function u(n){var e,t=null===n||void 0===n||null===(e=n.configuration)||void 0===e?void 0:e.file_path;if(t){var i=t.split(o.sep),r=i[0],u=i[i.length-1].split(".");return u.pop(),{directory:i.slice(1,i.length-1).join(o.sep),filePath:t,name:u.join("."),project:r}}return{filePath:t}}},33766:function(n,e,t){t.d(e,{O2:function(){return s},g_:function(){return p},u7:function(){return f}});var o=t(75582),i=t(82394),r=t(34376),u=t.n(r),c=t(59e3),l=t(24224);function d(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?d(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var s="_offset";function f(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.preserveParams,i=e.pushHistory,r=e.replaceParams,l=(0,c.iV)(),d={};t&&t.forEach((function(n){l[n]&&(d[n]=l[n])}));var s,f=r?d:l;s=window.location.pathname;var p=i?u().push:u().replace,v=a(a({},f),n);Object.entries(n).forEach((function(n){var e=(0,o.Z)(n,2),t=e[0],i=e[1];"undefined"!==typeof i&&null!==i||delete v[t]}));var b=(0,c.uM)(v);b.length>=1&&(b="?".concat(b));var h="".concat(s.split("?")[0]).concat(b);return p(u().router.pathname,h,{shallow:!0})}function p(n,e,t){var i=t.addingMultipleValues,r=t.isList,u=t.itemsPerPage,c=t.pushHistory,d=void 0!==c&&c,p=t.resetLimitParams,v=a({},n);i?Object.entries(e).forEach((function(n){var e=(0,o.Z)(n,2),t=e[0],i=e[1];if(Array.isArray(i)){var r="".concat(t,"[]");v[r]=i.map(String)}})):r?Object.entries(e).forEach((function(n){var e=(0,o.Z)(n,2),t=e[0],i=e[1],r=String(i),u="".concat(t,"[]"),c=v[u];c&&Array.isArray(c)?(c=c.map(String)).includes(r)?v[u]=(0,l.Od)(c,(function(n){return n===r})):v[u]=c.concat(r):v[u]=[r]})):v=a(a({},v),e),p&&(v._limit=u||20,v[s]=0),f(v,{pushHistory:d})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9055],{62302:function(e,t,n){var r=n(82684);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var o=["html","dangerouslySetInnerHTML"];t.Z=function(e){var t=e.html,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,o),s=(0,r.useRef)(null),a=(0,r.useRef)(!0);return(0,r.useEffect)((function(){if(!t||!s.current)throw new Error("html prop cant't be null");if(a.current){a.current=!1;var e=document.createRange().createContextualFragment(t);s.current.innerHTML="",s.current.appendChild(e)}}),[t,s]),r.createElement("div",i({},n,{ref:s}))}},90857:function(e){e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n}},55021:function(e,t,n){n.d(t,{k:function(){return i}});var r=n(554);function i(e,t,...n){if("undefined"!==typeof r&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,(function(){return n[r++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}},33382:function(e,t,n){function r(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<o.length;c++){const s=o[c];if(!a(s))return!1;const u=e[s],l=t[s];if(i=n?n.call(r,u,l,s):void 0,!1===i||void 0===i&&u!==l)return!1}return!0}n.d(t,{w:function(){return r}})},1254:function(e,t,n){n.d(t,{PD:function(){return T}});var r={};function i(e){let t=null;return()=>(null==t&&(t=e()),t)}n.r(r),n.d(r,{FILE:function(){return a},HTML:function(){return l},TEXT:function(){return u},URL:function(){return c}});class o{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const i=[];return n.forEach((e=>i.push(e))),i}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter((e=>e!==r))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class s{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const a="__NATIVE_FILE__",c="__NATIVE_URL__",u="__NATIVE_TEXT__",l="__NATIVE_HTML__";function f(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const d={[a]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[l]:{exposeProperties:{html:(e,t)=>f(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[c]:{exposeProperties:{urls:(e,t)=>f(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[u]:{exposeProperties:{text:(e,t)=>f(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function h(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(d).filter((e=>{const n=d[e];return!!(null===n||void 0===n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const g=i((()=>/firefox/i.test(navigator.userAgent))),p=i((()=>Boolean(window.safari)));class m{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:i,c3s:o}=this;let s=t.length-1;if(e===t[s])return n[s];let a,c=0,u=o.length-1;for(;c<=u;){a=Math.floor(.5*(c+u));const r=t[a];if(r<e)c=a+1;else{if(!(r>e))return n[a];u=a-1}}s=Math.max(0,u);const l=e-t[s],f=l*l;return n[s]+r[s]*l+i[s]*f+o[s]*l*f}constructor(e,t){const{length:n}=e,r=[];for(let h=0;h<n;h++)r.push(h);r.sort(((t,n)=>e[t]<e[n]?-1:1));const i=[],o=[],s=[];let a,c;for(let h=0;h<n-1;h++)a=e[h+1]-e[h],c=t[h+1]-t[h],o.push(a),i.push(c),s.push(c/a);const u=[s[0]];for(let h=0;h<o.length-1;h++){const e=s[h],t=s[h+1];if(e*t<=0)u.push(0);else{a=o[h];const n=o[h+1],r=a+n;u.push(3*r/((r+n)/e+(r+a)/t))}}u.push(s[s.length-1]);const l=[],f=[];let d;for(let h=0;h<u.length-1;h++){d=s[h];const e=u[h],t=1/o[h],n=e+u[h+1]-d-d;l.push((d-e-n)*t),f.push(n*t*t)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=l,this.c3s=f}}function v(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function b(e){return{x:e.clientX,y:e.clientY}}function y(e,t,n,r,i){const o=function(e){var t;return"IMG"===e.nodeName&&(g()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),s=v(o?e:t),a={x:n.x-s.x,y:n.y-s.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:l,anchorY:f}=r,{dragPreviewWidth:d,dragPreviewHeight:h}=function(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return p()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,t,c,u),{offsetX:b,offsetY:y}=i,D=0===y||y;return{x:0===b||b?b:new m([0,.5,1],[a.x,a.x/c*d,a.x+d-c]).interpolate(l),y:D?y:(()=>{let e=new m([0,.5,1],[a.y,a.y/u*h,a.y+h-u]).interpolate(f);return p()&&o&&(e+=(window.devicePixelRatio-1)*h),e})()}}class D{get window(){return this.globalContext?this.globalContext:"undefined"!==typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){O(e,t,n[t])}))}return e}class S{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return w({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return w({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(r).some((t=>r[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=d[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new s(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&v(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!==typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!==typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=b(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,i=h(r);if(this.monitor.isDragging()){if(r&&"function"===typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){const{anchorX:e,anchorY:o,offsetX:s,offsetY:a}=this.getCurrentSourcePreviewNodeOptions(),c=y(t,i,n,{anchorX:e,anchorY:o},{offsetX:s,offsetY:a});r.setDragImage(i,c.x,c.y)}}try{null===r||void 0===r||r.setData("application/json",{})}catch(o){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(i)this.beginDragNativeItem(i);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=h(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:b(e)});t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=b(e),this.scheduleHover(t);(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):h(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:b(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"===typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new D(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new o(this.isNodeInDocument)}}const T=function(e,t,n){return new S(e,t,n)}},733:function(e,t,n){n.d(t,{L:function(){return r}});const r=(0,n(82684).createContext)({dragDropManager:void 0})},65701:function(e,t,n){n.d(t,{W:function(){return ve}});var r=n(28598);function i(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 o="function"===typeof Symbol&&Symbol.observable||"@@observable",s=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};function c(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(i(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(i(1));return n(u)(e,t)}if("function"!==typeof e)throw new Error(i(2));var s=e,l=t,f=[],d=f,h=!1;function g(){d===f&&(d=f.slice())}function p(){if(h)throw new Error(i(3));return l}function m(e){if("function"!==typeof e)throw new Error(i(4));if(h)throw new Error(i(5));var t=!0;return g(),d.push(e),function(){if(t){if(h)throw new Error(i(6));t=!1,g();var n=d.indexOf(e);d.splice(n,1),f=null}}}function v(e){if(!c(e))throw new Error(i(7));if("undefined"===typeof e.type)throw new Error(i(8));if(h)throw new Error(i(9));try{h=!0,l=s(l,e)}finally{h=!1}for(var t=f=d,n=0;n<t.length;n++){(0,t[n])()}return e}function b(e){if("function"!==typeof e)throw new Error(i(10));s=e,v({type:a.REPLACE})}function y(){var e,t=m;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(i(11));function n(){e.next&&e.next(p())}return n(),{unsubscribe:t(n)}}})[o]=function(){return this},e}return v({type:a.INIT}),(r={dispatch:v,subscribe:m,getState:p,replaceReducer:b})[o]=y,r}var l=n(55021);function f(e){return"object"===typeof e}const d="dnd-core/INIT_COORDS",h="dnd-core/BEGIN_DRAG",g="dnd-core/PUBLISH_DRAG_SOURCE",p="dnd-core/HOVER",m="dnd-core/DROP",v="dnd-core/END_DRAG";function b(e,t){return{type:d,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const y={type:d,payload:{clientOffset:null,sourceClientOffset:null}};function D(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:i,getSourceClientOffset:o}=n,s=e.getMonitor(),a=e.getRegistry();e.dispatch(b(i)),function(e,t,n){(0,l.k)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,l.k)(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,s,a);const c=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,s);if(null==c)return void e.dispatch(y);let u=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");!function(e){(0,l.k)("function"===typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),u=o(c)}e.dispatch(b(i,u));const d=a.getSource(c).beginDrag(s,c);if(null==d)return;!function(e){(0,l.k)(f(e),"Item must be an object.")}(d),a.pinSource(c);const g=a.getSourceType(c);return{type:h,payload:{itemType:g,item:d,sourceId:c,clientOffset:i||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){O(e,t,n[t])}))}return e}function S(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){(0,l.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,l.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const i=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);i.forEach(((i,o)=>{const s=function(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;(function(e){(0,l.k)("undefined"===typeof e||f(e),"Drop result must either be an object or undefined.")})(o),"undefined"===typeof o&&(o=0===t?{}:r.getDropResult());return o}(i,o,r,n),a={type:m,payload:{dropResult:w({},t,s)}};e.dispatch(a)}))}}function T(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){(0,l.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();if(null!=r){n.getSource(r,!0).endDrag(t,r),n.unpinSource()}return{type:v}}}function k(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function C(e){return function(t,{clientOffset:n}={}){!function(e){(0,l.k)(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),i=e.getMonitor(),o=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r];k(t.getTargetType(i),n)||e.splice(r,1)}}(r,o,i.getItemType()),function(e,t,n){(0,l.k)(t.isDragging(),"Cannot call hover while not dragging."),(0,l.k)(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];(0,l.k)(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array.");const i=n.getTarget(t);(0,l.k)(i,"Expected targetIds to be registered.")}}(r,i,o),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,i,o),{type:p,payload:{targetIds:r,clientOffset:n||null}}}}function I(e){return function(){if(e.getMonitor().isDragging())return{type:g}}}class x{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:D(e),publishDragSource:I(e),hover:C(e),drop:S(e),endDrag:T(e)}}(this);return Object.keys(n).reduce(((r,i)=>{const o=n[i];var s;return r[i]=(s=o,(...n)=>{const r=s.apply(e,n);"undefined"!==typeof r&&t(r)}),r}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function E(e,t){return{x:e.x-t.x,y:e.y-t.y}}const P=[],N=[];P.__IS_NONE__=!0,N.__IS_ALL__=!0;class R{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;(0,l.k)("function"===typeof e,"listener must be a function."),(0,l.k)("undefined"===typeof n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),i=t.stateId;try{const o=i===r||i===r+1&&!function(e,t){return e!==P&&(e===N||"undefined"===typeof t||(n=e,t.filter((e=>n.indexOf(e)>-1))).length>0);var n}(t.dirtyHandlerIds,n);o||e()}finally{r=i}}))}subscribeToOffsetChange(e){(0,l.k)("function"===typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return(0,l.k)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if((0,l.k)(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return k(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if((0,l.k)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!k(r,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const s=o.indexOf(e);return n?s===o.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?E((o=r,{x:(i=t).x+o.x,y:i.y+o.y}),n):null;var i,o}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?E(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const L="undefined"!==typeof global?global:self,M=L.MutationObserver||L.WebKitMutationObserver;function A(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const j="function"===typeof M?function(e){let t=1;const n=new M(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:A;class _{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const F=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=j(this.flush),this.requestErrorThrow=A((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},H=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new _(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(F.registerPendingError);const z="dnd-core/ADD_SOURCE",U="dnd-core/ADD_TARGET",B="dnd-core/REMOVE_SOURCE",$="dnd-core/REMOVE_TARGET";function W(e,t){t&&Array.isArray(e)?e.forEach((e=>W(e,!1))):(0,l.k)("string"===typeof e||"symbol"===typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var q;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(q||(q={}));let V=0;function X(e){const t=(V++).toString();switch(e){case q.SOURCE:return`S${t}`;case q.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function G(e){switch(e[0]){case"S":return q.SOURCE;case"T":return q.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Y(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}class K{addSource(e,t){W(e),function(e){(0,l.k)("function"===typeof e.canDrag,"Expected canDrag to be a function."),(0,l.k)("function"===typeof e.beginDrag,"Expected beginDrag to be a function."),(0,l.k)("function"===typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(q.SOURCE,e,t);return this.store.dispatch(function(e){return{type:z,payload:{sourceId:e}}}(n)),n}addTarget(e,t){W(e,!0),function(e){(0,l.k)("function"===typeof e.canDrop,"Expected canDrop to be a function."),(0,l.k)("function"===typeof e.hover,"Expected hover to be a function."),(0,l.k)("function"===typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(q.TARGET,e,t);return this.store.dispatch(function(e){return{type:U,payload:{targetId:e}}}(n)),n}containsHandler(e){return Y(this.dragSources,e)||Y(this.dropTargets,e)}getSource(e,t=!1){(0,l.k)(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return(0,l.k)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return(0,l.k)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return(0,l.k)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return G(e)===q.SOURCE}isTargetId(e){return G(e)===q.TARGET}removeSource(e){var t;(0,l.k)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:B,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},F.enqueueTask(H.create(t))}removeTarget(e){(0,l.k)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:$,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);(0,l.k)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){(0,l.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=X(e);return this.types.set(r,t),e===q.SOURCE?this.dragSources.set(r,n):e===q.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Z=(e,t)=>e===t;function J(e=P,t){switch(t.type){case p:break;case z:case U:case $:case B:return P;default:return N}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach(((e,t)=>{1===e&&i.push(t)})),i}(n,r);if(!(i.length>0||!function(e,t,n=Z){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r)))return P;const o=r[r.length-1],s=n[n.length-1];return o!==s&&(o&&i.push(o),s&&i.push(s)),i}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ee={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function te(e=ee,t){const{payload:n}=t;switch(t.type){case d:case h:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case p:return r=e.clientOffset,i=n.clientOffset,!r&&!i||r&&i&&r.x===i.x&&r.y===i.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Q(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case v:case m:return ee;default:return e}var r,i}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ne(e,t,n[t])}))}return e}const ie={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function oe(e=ie,t){const{payload:n}=t;switch(t.type){case h:return re({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case g:return re({},e,{isSourcePublic:!0});case p:return re({},e,{targetIds:n.targetIds});case $:return-1===e.targetIds.indexOf(n.targetId)?e:re({},e,{targetIds:(r=e.targetIds,i=n.targetId,r.filter((e=>e!==i)))});case m:return re({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case v:return re({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,i}function se(e=0,t){switch(t.type){case z:case U:return e+1;case B:case $:return e-1;default:return e}}function ae(e=0){return e+1}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ce(e,t,n[t])}))}return e}function le(e={},t){return{dirtyHandlerIds:J(e.dirtyHandlerIds,{type:t.type,payload:ue({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",i=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:i||null),n))})}),dragOffset:te(e.dragOffset,t),refCount:se(e.refCount,t),dragOperation:oe(e.dragOperation,t),stateId:ae(e.stateId)};var n,r,i}function fe(e,t,n={},r=!1){const i=function(e){const t="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return u(le,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),o=new R(i,new K(i)),s=new x(i,o),a=e(s,t,n);return s.receiveBackend(a),s}var de=n(82684),he=n(733);function ge(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}let pe=0;const me=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ve=(0,de.memo)((function(e){var{children:t}=e,n=ge(e,["children"]);const[i,o]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=be(),n,r){const i=t;i[me]||(i[me]={dragDropManager:fe(e,t,n,r)});return i[me]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return(0,de.useEffect)((()=>{if(o){const e=be();return++pe,()=>{0===--pe&&(e[me]=null)}}}),[]),(0,r.jsx)(he.L.Provider,{value:i,children:t})}));function be(){return"undefined"!==typeof global?global:window}},15716:function(e,t,n){n.d(t,{J:function(){return a}});var r=n(90857),i=n(82684),o=n(42738);function s(e,t,n){const[s,a]=function(e,t,n){const[s,a]=(0,i.useState)((()=>t(e))),c=(0,i.useCallback)((()=>{const i=t(e);r(s,i)||(a(i),n&&n())}),[s,e,n]);return(0,o.L)(c),[s,c]}(e,t,n);return(0,o.L)((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(a,{handlerIds:[t]})}),[e,a]),s}function a(e,t,n){return s(t,e||(()=>({})),(()=>n.reconnect()))}},10975:function(e,t,n){n.d(t,{c:function(){return O}});var r=n(55021),i=n(15716),o=n(60452),s=n(82684);function a(e){return(0,s.useMemo)((()=>e.hooks.dragSource()),[e])}function c(e){return(0,s.useMemo)((()=>e.hooks.dragPreview()),[e])}var u=n(33382),l=n(20941),f=n(92963);class d{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!(0,u.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!(0,u.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=(0,f.p)({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,(0,l.d)(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,(0,l.d)(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}var h=n(77655),g=n(42738);let p=!1,m=!1;class v{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){(0,r.k)(!p,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return p=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{p=!1}}isDragging(){if(!this.sourceId)return!1;(0,r.k)(!m,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return m=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{m=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}var b=n(99130);class y{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"===typeof e.item?e.item:"function"===typeof e.item?e.item(t):{},null!==n&&void 0!==n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"===typeof e.canDrag?e.canDrag:"function"!==typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:i}=n;return i?i(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function D(e,t,n){const i=(0,h.N)(),o=function(e,t,n){const r=(0,s.useMemo)((()=>new y(e,t,n)),[t,n]);return(0,s.useEffect)((()=>{r.spec=e}),[e]),r}(e,t,n),a=function(e){return(0,s.useMemo)((()=>{const t=e.type;return(0,r.k)(null!=t,"spec.type must be defined"),t}),[e])}(e);(0,g.L)((function(){if(null!=a){const[e,r]=(0,b.w)(a,o,i);return t.receiveHandlerId(e),n.receiveHandlerId(e),r}}),[i,t,n,o,a])}function O(e,t){const n=(0,o.w)(e,t);(0,r.k)(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const u=function(){const e=(0,h.N)();return(0,s.useMemo)((()=>new v(e)),[e])}(),l=function(e,t){const n=(0,h.N)(),r=(0,s.useMemo)((()=>new d(n.getBackend())),[n]);return(0,g.L)((()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource())),[r,e]),(0,g.L)((()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview())),[r,t]),r}(n.options,n.previewOptions);return D(n,u,l),[(0,i.J)(n.collect,u,l),a(l),c(l)]}},77655:function(e,t,n){n.d(t,{N:function(){return s}});var r=n(55021),i=n(82684),o=n(733);function s(){const{dragDropManager:e}=(0,i.useContext)(o.L);return(0,r.k)(null!=e,"Expected drag drop context"),e}},14567:function(e,t,n){n.d(t,{L:function(){return y}});var r=n(15716),i=n(60452),o=n(82684);function s(e){return(0,o.useMemo)((()=>e.hooks.dropTarget()),[e])}var a=n(33382),c=n(20941),u=n(92963);class l{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!(0,a.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=(0,u.p)({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,(0,c.d)(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}var f=n(77655),d=n(42738);var h=n(55021);let g=!1;class p{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;(0,h.k)(!g,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return g=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{g=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}var m=n(99130);class v{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function b(e,t,n){const r=(0,f.N)(),i=function(e,t){const n=(0,o.useMemo)((()=>new v(e,t)),[t]);return(0,o.useEffect)((()=>{n.spec=e}),[e]),n}(e,t),s=function(e){const{accept:t}=e;return(0,o.useMemo)((()=>((0,h.k)(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);(0,d.L)((function(){const[e,o]=(0,m.n)(s,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}),[r,t,i,n,s.map((e=>e.toString())).join("|")])}function y(e,t){const n=(0,i.w)(e,t),a=function(){const e=(0,f.N)();return(0,o.useMemo)((()=>new p(e)),[e])}(),c=function(e){const t=(0,f.N)(),n=(0,o.useMemo)((()=>new l(t.getBackend())),[t]);return(0,d.L)((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return b(n,a,c),[(0,r.J)(n.collect,a,c),s(c)]}},42738:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(82684);const i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},60452:function(e,t,n){n.d(t,{w:function(){return i}});var r=n(82684);function i(e,t){const n=[...t||[]];return null==t&&"function"!==typeof e&&n.push(e),(0,r.useMemo)((()=>"function"===typeof e?e():e),n)}},20941:function(e,t,n){function r(e){return null!==e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}n.d(t,{d:function(){return r}})},99130:function(e,t,n){function r(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function i(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}n.d(t,{n:function(){return r},w:function(){return i}})},92963:function(e,t,n){n.d(t,{p:function(){return s}});var r=n(55021),i=n(82684);function o(e){return(t=null,n=null)=>{if(!(0,i.isValidElement)(t)){const r=t;return e(r,n),r}const o=t;!function(e){if("string"===typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(o);return function(e,t){const n=e.ref;return(0,r.k)("string"!==typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,i.cloneElement)(e,{ref:e=>{a(n,e),a(t,e)}}):(0,i.cloneElement)(e,{ref:t})}(o,n?t=>e(t,n):e)}}function s(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=o(r);t[n]=()=>e}})),t}function a(e,t){"function"===typeof e?e(t):e.current=t}},5882:function(e,t,n){n.d(t,{Z:function(){return $e}});var r=n(76075),i=n(80226);const o={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return 87===t||119===t?(e.consume(t),o):n(t)}function o(t){return 87===t||119===t?(e.consume(t),s):n(t)}function s(t){return 46===t?(e.consume(t),a):n(t)}function a(e){return null===e||(0,i.Ch)(e)?n(e):t(e)}},partial:!0},s={tokenize:function(e,t,n){let r,o;return s;function s(t){return 38===t?e.check(u,l,a)(t):46===t||95===t?e.check(c,l,a)(t):null===t||(0,i.Av)(t)||(0,i.B8)(t)||45!==t&&(0,i.Xh)(t)?l(t):(e.consume(t),s)}function a(t){return 46===t?(o=r,r=void 0,e.consume(t),s):(95===t&&(r=!0),e.consume(t),s)}function l(e){return o||r?n(e):t(e)}},partial:!0},a={tokenize:function(e,t){let n=0;return r;function r(s){return 38===s?e.check(u,t,i)(s):(40===s&&n++,41===s?e.check(c,o,i)(s):v(s)?t(s):m(s)?e.check(c,t,i)(s):(e.consume(s),r))}function i(t){return e.consume(t),r}function o(e){return n--,n<0?t(e):i(e)}},partial:!0},c={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(i){return m(i)?(e.consume(i),r):v(i)?t(i):n(i)}},partial:!0},u={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return(0,i.jv)(t)?(e.consume(t),r):59===t?(e.consume(t),o):n(t)}function o(e){return v(e)?t(e):n(e)}},partial:!0},l={tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!y(r.previous)||w(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(o,e.attempt(s,e.attempt(a,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:y},f={tokenize:function(e,t,n){const r=this;return function(t){if(72!==t&&104!==t||!D(r.previous)||w(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),o};function o(t){return 84===t||116===t?(e.consume(t),c):n(t)}function c(t){return 84===t||116===t?(e.consume(t),u):n(t)}function u(t){return 80===t||112===t?(e.consume(t),l):n(t)}function l(t){return 83===t||115===t?(e.consume(t),f):f(t)}function f(t){return 58===t?(e.consume(t),d):n(t)}function d(t){return 47===t?(e.consume(t),h):n(t)}function h(t){return 47===t?(e.consume(t),g):n(t)}function g(t){return null===t||(0,i.Av)(t)||(0,i.B8)(t)||(0,i.Xh)(t)?n(t):e.attempt(s,e.attempt(a,p),n)(t)}function p(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:D},d={tokenize:function(e,t,n){const r=this;let o,s;return function(t){if(!b(t)||!O(r.previous)||w(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return b(t)?(e.consume(t),a):64===t?(e.consume(t),u):n(t)}function u(t){return 46===t?e.check(c,h,l)(t):45===t||95===t?e.check(c,n,f)(t):(0,i.H$)(t)?(!s&&(0,i.pY)(t)&&(s=!0),e.consume(t),u):h(t)}function l(t){return e.consume(t),o=!0,s=void 0,u}function f(t){return e.consume(t),d}function d(t){return 46===t?e.check(c,n,l)(t):u(t)}function h(r){return o&&!s?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(r)):n(r)}},previous:O},h={},g={text:h};let p=48;for(;p<123;)h[p]=d,p++,58===p?p=65:91===p&&(p=97);function m(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function v(e){return null===e||60===e||(0,i.z3)(e)}function b(e){return 43===e||45===e||46===e||95===e||(0,i.H$)(e)}function y(e){return null===e||40===e||42===e||95===e||126===e||(0,i.z3)(e)}function D(e){return null===e||!(0,i.jv)(e)}function O(e){return 47!==e&&D(e)}function w(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}h[43]=d,h[45]=d,h[46]=d,h[95]=d,h[72]=[d,f],h[104]=[d,f],h[87]=[d,l],h[119]=[d,l];var S=n(84430),T=n(576),k=n(43774);const C={tokenize:function(e,t,n){const r=this;return(0,T.f)(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function I(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){s=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!s||!s._balanced)return n(i);const a=(0,k.d)(r.sliceSerialize({start:s.end,end:r.now()}));if(94!==a.codePointAt(0)||!o.includes(a.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function x(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},c=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...c),e}function E(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),c};function c(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(a>999||93===c&&!s||null===c||91===c||(0,i.z3)(c))return n(c);if(93===c){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes((0,k.d)(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return(0,i.z3)(c)||(s=!0),a++,e.consume(c),92===c?l:u}function l(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}}function P(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a,c=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",l):n(t)}function l(t){if(c>999||93===t&&!a||null===t||91===t||(0,i.z3)(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return s=(0,k.d)(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return(0,i.z3)(t)||(a=!0),c++,e.consume(t),92===t?f:l}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,l):l(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(s)||o.push(s),(0,T.f)(e,h,"gfmFootnoteDefinitionWhitespace")):n(t)}function h(e){return t(e)}}function N(e,t,n){return e.check(S.w,t,e.attempt(C,t,n))}function R(e){e.exit("gfmFootnoteDefinition")}var L=n(78043),M=n(38600),A=n(16821);function j(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const i=this.previous,o=this.events;let s=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),a(t)};function a(o){const c=(0,M.r)(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);const u=e.exit("strikethroughSequenceTemporary"),l=(0,M.r)(o);return u._open=!l||2===l&&Boolean(c),u._close=!c||2===c&&Boolean(l),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],a=t.parser.constructs.insideSpan.null;a&&(0,L.d)(s,s.length,0,(0,A.C)(a,e.slice(r+1,n),t)),(0,L.d)(s,s.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,L.d)(e,r-1,n-r+3,s),n=r+s.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null!==t&&void 0!==t||(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}const _={flow:{null:{tokenize:function(e,t,n){const r=this,o=[];let s,a,c=0;return function(t){if(e.enter("table")._align=o,e.enter("tableHead"),e.enter("tableRow"),124===t)return u(t);return c++,e.enter("temporaryTableCellContent"),d(t)};function u(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),s=!0,l}function l(t){return null===t||(0,i.Ch)(t)?function(t){if(null===t)return n(t);e.exit("tableRow"),e.exit("tableHead");const i=r.interrupt;return r.interrupt=!0,e.attempt({tokenize:P,partial:!0},(function(t){return r.interrupt=i,e.enter("tableDelimiterRow"),g(t)}),(function(e){return r.interrupt=i,n(e)}))(t)}(t):(0,i.xz)(t)?(e.enter("whitespace"),e.consume(t),f):(s&&(s=void 0,c++),124===t?u(t):(e.enter("temporaryTableCellContent"),d(t)))}function f(t){return(0,i.xz)(t)?(e.consume(t),f):(e.exit("whitespace"),l(t))}function d(t){return null===t||124===t||(0,i.z3)(t)?(e.exit("temporaryTableCellContent"),l(t)):(e.consume(t),92===t?h:d)}function h(t){return 92===t||124===t?(e.consume(t),d):d(t)}function g(t){return null===t||(0,i.Ch)(t)?y(t):(0,i.xz)(t)?(e.enter("whitespace"),e.consume(t),p):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),a=!0,o.push("none"),m):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),o.push("left"),v):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),g):n(t)}function p(t){return(0,i.xz)(t)?(e.consume(t),p):(e.exit("whitespace"),g(t))}function m(t){return 45===t?(e.consume(t),m):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),o[o.length-1]="left"===o[o.length-1]?"center":"right",b):g(t))}function v(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),a=!0,m):n(t)}function b(t){return null===t||(0,i.Ch)(t)?y(t):(0,i.xz)(t)?(e.enter("whitespace"),e.consume(t),p):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),g):n(t)}function y(t){return e.exit("tableDelimiterRow"),a&&c===o.length?null===t?D(t):e.check(F,D,e.attempt({tokenize:P,partial:!0},(0,T.f)(e,O,"linePrefix",4),D))(t):n(t)}function D(n){return e.exit("table"),t(n)}function O(t){return e.enter("tableBody"),w(t)}function w(t){return e.enter("tableRow"),124===t?S(t):(e.enter("temporaryTableCellContent"),I(t))}function S(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),k}function k(t){return null===t||(0,i.Ch)(t)?function(t){if(e.exit("tableRow"),null===t)return E(t);return e.check(F,E,e.attempt({tokenize:P,partial:!0},(0,T.f)(e,w,"linePrefix",4),E))(t)}(t):(0,i.xz)(t)?(e.enter("whitespace"),e.consume(t),C):124===t?S(t):(e.enter("temporaryTableCellContent"),I(t))}function C(t){return(0,i.xz)(t)?(e.consume(t),C):(e.exit("whitespace"),k(t))}function I(t){return null===t||124===t||(0,i.z3)(t)?(e.exit("temporaryTableCellContent"),k(t)):(e.consume(t),92===t?x:I)}function x(t){return 92===t||124===t?(e.consume(t),I):I(t)}function E(t){return e.exit("tableBody"),D(t)}function P(e,t,n){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,T.f)(e,o,"linePrefix")};function o(o){if(r.parser.lazy[r.now().line]||null===o||(0,i.Ch)(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?n(o):(r._gfmTableDynamicInterruptHack=!0,e.check(r.parser.constructs.flow,(function(e){return r._gfmTableDynamicInterruptHack=!1,n(e)}),(function(e){return r._gfmTableDynamicInterruptHack=!1,t(e)}))(o))}}},resolve:function(e,t){let n,r,i,o,s,a,c,u=-1;for(;++u<e.length;){const l=e[u][1];if(i&&("temporaryTableCellContent"===l.type&&(o=o||u,s=u),("tableCellDivider"===l.type||"tableRow"===l.type)&&s)){const n={type:"tableContent",start:e[o][1].start,end:e[s][1].end},r={type:"chunkText",start:n.start,end:n.end,contentType:"text"};e.splice(o,s-o+1,["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]),u-=s-o-3,o=void 0,s=void 0}if("exit"===e[u][0]&&void 0!==a&&a+(c?0:1)<u&&("tableCellDivider"===l.type||"tableRow"===l.type&&(a+3<u||"whitespace"!==e[a][1].type))){const i={type:r?"tableDelimiter":n?"tableHeader":"tableData",start:e[a][1].start,end:e[u][1].end};e.splice(u+("tableCellDivider"===l.type?1:0),0,["exit",i,t]),e.splice(a,0,["enter",i,t]),u+=2,a=u+1,c=!0}"tableRow"===l.type&&(i="enter"===e[u][0],i&&(a=u+1,c=!1)),"tableDelimiterRow"===l.type&&(r="enter"===e[u][0],r&&(a=u+1,c=!1)),"tableHead"===l.type&&(n="enter"===e[u][0])}return e}}}},F={tokenize:function(e,t,n){let r=0;return function(t){return e.enter("check"),e.consume(t),o};function o(s){return-1===s||32===s?(e.consume(s),r++,4===r?t:o):null===s||(0,i.z3)(s)?t(s):n(s)}},partial:!0};const H={tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return(0,i.z3)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):n(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return(0,i.Ch)(r)?t(r):(0,i.xz)(r)?e.check({tokenize:U},t,n)(r):n(r)}}},z={text:{91:H}};function U(e,t,n){return(0,T.f)(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}function B(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}var $=n(89505);const W=function(e){if(void 0===e||null===e)return V;if("string"===typeof e)return function(e){return q(t);function t(t){return t&&t.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=W(e[n]);return q(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1}}(e):function(e){return q(t);function t(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"===typeof e)return q(e);throw new Error("Expected function, string, or object as test")};function q(e){return function(t,...n){return Boolean(t&&"object"===typeof t&&"type"in t&&Boolean(e.call(this,t,...n)))}}function V(){return!0}const X={}.hasOwnProperty,G=function(e,t,n,r){let i,o;"string"===typeof t||t instanceof RegExp?(o=[[t,n]],i=r):(o=t,i=n),i||(i={});const s=W(i.ignore||[]),a=function(e){const t=[];if("object"!==typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([Y(e[n][0]),K(e[n][1])])}else{let n;for(n in e)X.call(e,n)&&t.push([Y(n),K(e[n])])}return t}(o);let c=-1;for(;++c<a.length;)(0,$.S4)(e,"text",u);return e;function u(e,t){let n,r=-1;for(;++r<t.length;){const e=t[r];if(s(e,n?n.children.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=a[c][0],i=a[c][1];let o=0;const s=n.children.indexOf(e);let u=!1,l=[];r.lastIndex=0;let f=r.exec(e.value);for(;f;){const n=f.index,s={index:f.index,input:f.input,stack:[...t,e]};let a=i(...f,s);if("string"===typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1!==a&&(o!==n&&l.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(a)?l.push(...a):a&&l.push(a),o=n+f[0].length,u=!0),!r.global)break;f=r.exec(e.value)}u?(o<e.value.length&&l.push({type:"text",value:e.value.slice(o)}),n.children.splice(s,1,...l)):l=[e];return s+l.length}(e,t)}};function Y(e){return"string"===typeof e?new RegExp(function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function K(e){return"function"===typeof e?e:()=>e}const Z="phrasing",J=["autolink","link","image","label"],Q={transforms:[function(e){G(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ne],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,re]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:te,literalAutolinkHttp:te,literalAutolinkWww:te},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},ee={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Z,notInConstruct:J},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Z,notInConstruct:J},{character:":",before:"[ps]",after:"\\/",inConstruct:Z,notInConstruct:J}]};function te(e){this.config.enter.autolinkProtocol.call(this,e)}function ne(e,t,n,r,i){let o="";if(!ie(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const s=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=B(e,"(");let o=B(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function re(e,t,n,r){return!(!ie(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ie(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,i.B8)(n)||(0,i.Xh)(n))&&(!t||47!==n)}var oe=n(83531);function se(e){return e.label||!e.identifier?e.label||"":(0,oe.v)(e.identifier)}function ae(e,t,n,r){let i=r.join.length;for(;i--;){const o=r.join[i](e,t,n,r);if(!0===o||1===o)break;if("number"===typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const ce=/\r?\n|\r/g;function ue(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function le(e,t){return fe(e,t.inConstruct,!0)&&!fe(e,t.notInConstruct,!1)}function fe(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function de(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],s={};let a=-1;for(;++a<e.unsafe.length;){const t=e.unsafe[a];if(!le(e.stack,t))continue;const n=ue(t);let o;for(;o=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=o.index+(e?o[1].length:0);i.includes(r)?(s[r].before&&!e&&(s[r].before=!1),s[r].after&&!n&&(s[r].after=!1)):(i.push(r),s[r]={before:e,after:n})}}i.sort(he);let c=n.before?n.before.length:0;const u=r.length-(n.after?n.after.length:0);for(a=-1;++a<i.length;){const e=i[a];e<c||e>=u||(e+1<u&&i[a+1]===e+1&&s[e].after&&!s[e+1].before&&!s[e+1].after||i[a-1]===e-1&&s[e].before&&!s[e-1].before&&!s[e-1].after||(c!==e&&o.push(ge(r.slice(c,e),"\\")),c=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(o.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),c++):o.push("\\")))}return o.push(ge(r.slice(c,u),n.after)),o.join("")}function he(e,t){return e-t}function ge(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let s,a=-1,c=0;for(;s=n.exec(o);)r.push(s.index);for(;++a<r.length;)c!==r[a]&&i.push(e.slice(c,r[a])),i.push("\\"),c=r[a];return i.push(e.slice(c)),i.join("")}function pe(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),s=n[n.length-1];return i+=n.length-1,o=1===n.length?o+s.length:1+s.length+r,t},current:function(){return{now:{line:i,column:o},lineShift:r}},shift:function(e){r+=e}}}function me(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ve(){this.buffer()}function be(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,k.d)(this.sliceSerialize(e)).toLowerCase()}function ye(e){this.exit(e)}function De(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Oe(){this.buffer()}function we(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,k.d)(this.sliceSerialize(e)).toLowerCase()}function Se(e){this.exit(e)}function Te(e,t,n,r){const i=pe(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(de(n,se(e),{...i.current(),before:o,after:"]"})),a(),s(),o+=i.move("]"),o}function ke(e,t,n,r){const i=pe(r);let o=i.move("[^");const s=n.enter("footnoteDefinition"),a=n.enter("label");return o+=i.move(de(n,se(e),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(function(e,t){const n=[];let r,i=0,o=0;for(;r=ce.exec(e);)s(e.slice(i,r.index)),n.push(r[0]),i=r.index+r[0].length,o++;return s(e.slice(i)),n.join("");function s(e){n.push(t(e,o,!e))}}(function(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),s=[];let a=-1;for(r.push(-1);++a<i.length;){const n=i[a];r[r.length-1]=a,s.push(o.move(t.handle(n,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),a<i.length-1&&s.push(o.move(ae(n,i[a+1],e,t)))}return r.pop(),s.join("")}(e,n,i.current()),Ce)),s(),o}function Ce(e,t,n){return 0===t?e:(n?"":" ")+e}function Ie(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let s=-1,a=n.before;r.push(-1);let c=t.createTracker(n);for(;++s<i.length;){const u=i[s];let l;if(r[r.length-1]=s,s+1<i.length){let n=t.handle.handlers[i[s+1].type];n&&n.peek&&(n=n.peek),l=n?n(i[s+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else l=n.after;o.length>0&&("\r"===a||"\n"===a)&&"html"===u.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" ",c=t.createTracker(n),c.move(o.join(""))),o.push(c.move(t.handle(u,e,t,{...c.current(),before:a,after:l}))),a=o[o.length-1].slice(-1)}return r.pop(),o.join("")}Te.peek=function(){return"["};Pe.peek=function(){return"~"};const xe={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Ee={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:Pe}};function Pe(e,t,n,r){const i=pe(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=Ie(e,n,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function Ne(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=ue(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function Re(e){return e.length}function Le(e){const t="string"===typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}Ne.peek=function(){return"`"};const Me={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map((e=>"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:je,tableHeader:je,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,_e));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:Ae,tableHeader:Ae,tableRow:Ae}};function Ae(e){this.exit(e)}function je(e){this.enter({type:"tableCell",children:[]},e)}function _e(e,t){return"|"===t?t:e}function Fe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n,r){return a(function(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("table");for(;++i<r.length;)o[i]=c(r[i],t,n);return s(),o}(e,n,r),e.align)},tableRow:function(e,t,n,r){const i=a([c(e,n,r)]);return i.slice(0,i.indexOf("\n"))},tableCell:s,inlineCode:function(e,t,n){let r=Ne(e,0,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r}}};function s(e,t,n,r){const i=n.enter("tableCell"),s=n.enter("phrasing"),a=Ie(e,n,{...r,before:o,after:o});return s(),i(),a}function a(e,t){return function(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||Re,i=[],o=[],s=[],a=[];let c=0,u=-1;for(;++u<e.length;){const n=[],i=[];let f=-1;for(e[u].length>c&&(c=e[u].length);++f<e[u].length;){const o=null===(l=e[u][f])||void 0===l?"":String(l);if(!1!==t.alignDelimiters){const e=r(o);i[f]=e,(void 0===a[f]||e>a[f])&&(a[f]=e)}n.push(o)}o[u]=n,s[u]=i}var l;let f=-1;if("object"===typeof n&&"length"in n)for(;++f<c;)i[f]=Le(n[f]);else{const e=Le(n);for(;++f<c;)i[f]=e}f=-1;const d=[],h=[];for(;++f<c;){const e=i[f];let n="",r="";99===e?(n=":",r=":"):108===e?n=":":114===e&&(r=":");let o=!1===t.alignDelimiters?1:Math.max(1,a[f]-n.length-r.length);const s=n+"-".repeat(o)+r;!1!==t.alignDelimiters&&(o=n.length+o+r.length,o>a[f]&&(a[f]=o),h[f]=o),d[f]=s}o.splice(1,0,d),s.splice(1,0,h),u=-1;const g=[];for(;++u<o.length;){const e=o[u],n=s[u];f=-1;const r=[];for(;++f<c;){const o=e[f]||"";let s="",u="";if(!1!==t.alignDelimiters){const e=a[f]-(n[f]||0),t=i[f];114===t?s=" ".repeat(e):99===t?e%2?(s=" ".repeat(e/2+.5),u=" ".repeat(e/2-.5)):(s=" ".repeat(e/2),u=s):u=" ".repeat(e)}!1===t.delimiterStart||f||r.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===o||!1===t.delimiterStart&&!f||r.push(" "),!1!==t.alignDelimiters&&r.push(s),r.push(o),!1!==t.alignDelimiters&&r.push(u),!1!==t.padding&&r.push(" "),!1===t.delimiterEnd&&f===c-1||r.push("|")}g.push(!1===t.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return g.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function c(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("tableRow");for(;++i<r.length;)o[i]=s(r[i],0,t,n);return a(),o}}function He(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||function(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(o=("number"===typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(s))+e;return(n?o:o+" ".repeat(s-o.length))+e}));return c(),u}const ze={exit:{taskListCheckValueChecked:Be,taskListCheckValueUnchecked:Be,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"===typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"===typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}}},Ue={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,n,r){const i=e.children[0],o="boolean"===typeof e.checked&&i&&"paragraph"===i.type,s="["+(e.checked?"x":" ")+"] ",a=pe(r);o&&a.move(s);let c=He(e,t,n,{...r,...a.current()});o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+s})));return c}}};function Be(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function $e(e={}){const t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){return(0,r.W)([g,{document:{91:{tokenize:P,continuation:{tokenize:N},exit:R}},text:{91:{tokenize:E},93:{add:"after",tokenize:I,resolveTo:x}}},j(e),_,z])}(e)),n("fromMarkdownExtensions",[Q,{enter:{gfmFootnoteDefinition:me,gfmFootnoteDefinitionLabelString:ve,gfmFootnoteCall:De,gfmFootnoteCallString:Oe},exit:{gfmFootnoteDefinition:ye,gfmFootnoteDefinitionLabelString:be,gfmFootnoteCall:Se,gfmFootnoteCallString:we}},xe,Me,ze]),n("toMarkdownExtensions",function(e){return{extensions:[ee,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:ke,footnoteReference:Te}},Ee,Fe(e),Ue]}}(e))}}}]);
|