openplanr 3.1.1 → 3.2.0
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.
- package/CHANGELOG.md +48 -0
- package/dist/cli/commands/groups/delivery.d.ts.map +1 -1
- package/dist/cli/commands/groups/delivery.js +2 -0
- package/dist/cli/commands/groups/delivery.js.map +1 -1
- package/dist/cli/commands/planning-artifacts.d.ts.map +1 -1
- package/dist/cli/commands/planning-artifacts.js +22 -12
- package/dist/cli/commands/planning-artifacts.js.map +1 -1
- package/dist/cli/commands/ship.d.ts +3 -0
- package/dist/cli/commands/ship.d.ts.map +1 -0
- package/dist/cli/commands/ship.js +65 -0
- package/dist/cli/commands/ship.js.map +1 -0
- package/dist/dashboard/.vite/manifest.json +1 -1
- package/dist/dashboard/assets/{index-G7ygVDGg.js → index-L8qtwqv6.js} +2 -2
- package/dist/dashboard/assets/{index-G7ygVDGg.js.map → index-L8qtwqv6.js.map} +1 -1
- package/dist/dashboard/dashboard-manifest.json +8 -8
- package/dist/dashboard/index.html +1 -1
- package/dist/models/schema.d.ts +39 -23
- package/dist/models/schema.d.ts.map +1 -1
- package/dist/models/schema.js +19 -12
- package/dist/models/schema.js.map +1 -1
- package/dist/models/types.d.ts +6 -0
- package/dist/models/types.d.ts.map +1 -1
- package/dist/services/id-service.d.ts +1 -5
- package/dist/services/id-service.d.ts.map +1 -1
- package/dist/services/id-service.js +1 -34
- package/dist/services/id-service.js.map +1 -1
- package/dist/services/ship-checks/changes.d.ts +24 -0
- package/dist/services/ship-checks/changes.d.ts.map +1 -0
- package/dist/services/ship-checks/changes.js +135 -0
- package/dist/services/ship-checks/changes.js.map +1 -0
- package/dist/services/ship-checks/contract.d.ts +81 -0
- package/dist/services/ship-checks/contract.d.ts.map +1 -0
- package/dist/services/ship-checks/contract.js +7 -0
- package/dist/services/ship-checks/contract.js.map +1 -0
- package/dist/services/ship-checks/discover.d.ts +10 -0
- package/dist/services/ship-checks/discover.d.ts.map +1 -0
- package/dist/services/ship-checks/discover.js +250 -0
- package/dist/services/ship-checks/discover.js.map +1 -0
- package/dist/services/ship-checks/glob.d.ts +5 -0
- package/dist/services/ship-checks/glob.d.ts.map +1 -0
- package/dist/services/ship-checks/glob.js +39 -0
- package/dist/services/ship-checks/glob.js.map +1 -0
- package/dist/services/ship-checks/hooks.d.ts +7 -0
- package/dist/services/ship-checks/hooks.d.ts.map +1 -0
- package/dist/services/ship-checks/hooks.js +65 -0
- package/dist/services/ship-checks/hooks.js.map +1 -0
- package/dist/services/ship-checks/packages.d.ts +29 -0
- package/dist/services/ship-checks/packages.d.ts.map +1 -0
- package/dist/services/ship-checks/packages.js +197 -0
- package/dist/services/ship-checks/packages.js.map +1 -0
- package/dist/services/ship-checks/related-tests.d.ts +13 -0
- package/dist/services/ship-checks/related-tests.d.ts.map +1 -0
- package/dist/services/ship-checks/related-tests.js +73 -0
- package/dist/services/ship-checks/related-tests.js.map +1 -0
- package/dist/services/ship-checks/scope.d.ts +8 -0
- package/dist/services/ship-checks/scope.d.ts.map +1 -0
- package/dist/services/ship-checks/scope.js +66 -0
- package/dist/services/ship-checks/scope.js.map +1 -0
- package/dist/services/ship-checks/task-requirements.d.ts +14 -0
- package/dist/services/ship-checks/task-requirements.d.ts.map +1 -0
- package/dist/services/ship-checks/task-requirements.js +145 -0
- package/dist/services/ship-checks/task-requirements.js.map +1 -0
- package/dist/services/ship-checks/workflows.d.ts +21 -0
- package/dist/services/ship-checks/workflows.d.ts.map +1 -0
- package/dist/services/ship-checks/workflows.js +208 -0
- package/dist/services/ship-checks/workflows.js.map +1 -0
- package/dist/services/template-service.d.ts +2 -0
- package/dist/services/template-service.d.ts.map +1 -1
- package/dist/services/template-service.js +4 -0
- package/dist/services/template-service.js.map +1 -1
- package/dist/utils/slugify.d.ts +1 -8
- package/dist/utils/slugify.d.ts.map +1 -1
- package/dist/utils/slugify.js +1 -25
- package/dist/utils/slugify.js.map +1 -1
- package/docs/CLI.md +48 -1
- package/lib/backlog-item.d.mts +49 -0
- package/lib/backlog-item.mjs +339 -0
- package/lib/host-packages/adapter-registry.json +5 -5
- package/lib/host-packages/capability-map.json +1 -1
- package/lib/host-packages/claude/.claude-plugin/marketplace.json +2 -2
- package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +1 -1
- package/lib/host-packages/claude/openplanr/.openplanr-content.json +126 -90
- package/lib/host-packages/claude/openplanr/CONNECTORS.md +4 -6
- package/lib/host-packages/claude/openplanr/README.md +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-artifact-shell.mjs +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-document.mjs +385 -79
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-handoff.mjs +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-resource-pack.mjs +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review.mjs +45 -4
- package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-runtime-support-e34c388a8e59.mjs → claude/openplanr/runtime/design/scripts/design-runtime-support-6774fd3d5d02.mjs} +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share.mjs +8 -5
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +40 -7
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/{design-shared-protocol-contracts-31a760fc.mjs → design-shared-protocol-contracts-b5f28f94.mjs} +284 -45
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-upload-spool.mjs +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design.mjs +215 -55
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +23 -23
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +246 -45
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +12 -12
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +47 -14
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +11 -10
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -3
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +16 -11
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +7 -11
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +163 -274
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +494 -967
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +346 -678
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +382 -810
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +406 -730
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +259 -522
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +585 -937
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +115 -240
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +7 -17
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +3 -4
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +215 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +2766 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +134 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +2170 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +16 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +8 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +3883 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +966 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/{16-studio-shell.js → 20-studio-shell.js} +122 -227
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +1583 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +101 -47
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +5 -1
- package/lib/host-packages/{openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0 → claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.20.0}/design-document.schema.json +78 -5
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +247 -45
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design.mjs +45 -12
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +5 -1
- package/lib/host-packages/claude/openplanr/skills/connect/references/connectors.md +4 -6
- package/lib/host-packages/claude/openplanr/skills/design/SKILL.md +12 -0
- package/lib/host-packages/claude/openplanr/skills/design/references/craft.md +14 -3
- package/lib/host-packages/claude/openplanr/skills/design/references/design-system.md +33 -1
- package/lib/host-packages/claude/openplanr/skills/design/references/discovery.md +18 -4
- package/lib/host-packages/claude/openplanr/skills/design/references/generation.md +74 -1
- package/lib/host-packages/claude/openplanr/skills/design/references/hosted-canvas.md +62 -0
- package/lib/host-packages/claude/openplanr/skills/design/references/review.md +46 -1
- package/lib/host-packages/claude/openplanr/skills/design/references/utilities.md +6 -0
- package/lib/host-packages/claude/openplanr/skills/design/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/craft.md +14 -3
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/design-system.md +33 -1
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/discovery.md +18 -4
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/generation.md +74 -1
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/review.md +46 -1
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/utilities.md +6 -0
- package/lib/host-packages/claude/openplanr/skills/design-loop/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/claude/openplanr/skills/design-review/references/craft.md +14 -3
- package/lib/host-packages/claude/openplanr/skills/design-review/references/design-system.md +33 -1
- package/lib/host-packages/claude/openplanr/skills/design-review/references/discovery.md +18 -4
- package/lib/host-packages/claude/openplanr/skills/design-review/references/generation.md +74 -1
- package/lib/host-packages/claude/openplanr/skills/design-review/references/review.md +46 -1
- package/lib/host-packages/claude/openplanr/skills/design-review/references/utilities.md +6 -0
- package/lib/host-packages/claude/openplanr/skills/design-review/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/claude/openplanr/skills/investigate/SKILL.md +10 -1
- package/lib/host-packages/claude/openplanr/skills/investigate/references/findings.md +92 -0
- package/lib/host-packages/claude/openplanr/skills/investigate/scripts/backlog-item.mjs +339 -0
- package/lib/host-packages/claude/openplanr/skills/plan/SKILL.md +3 -0
- package/lib/host-packages/claude/openplanr/skills/plan/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/claude/openplanr/skills/share/references/connectors.md +4 -6
- package/lib/host-packages/claude/openplanr/skills/ship/SKILL.md +15 -4
- package/lib/host-packages/claude/openplanr/skills/ship/references/findings.md +92 -0
- package/lib/host-packages/claude/openplanr/skills/ship/references/result-contract.md +3 -1
- package/lib/host-packages/claude/openplanr/skills/ship/scripts/backlog-item.mjs +339 -0
- package/lib/host-packages/claude/openplanr/skills/sprint/references/connectors.md +4 -6
- package/lib/host-packages/claude/openplanr/skills/status/references/connectors.md +4 -6
- package/lib/host-packages/claude/openplanr/skills/sync/references/connectors.md +4 -6
- package/lib/host-packages/cursor/openplanr/.openplanr-content.json +125 -89
- package/lib/host-packages/cursor/openplanr/CONNECTORS.md +4 -6
- package/lib/host-packages/cursor/openplanr/manifest.json +1 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-connect/references/connectors.md +4 -6
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/craft.md +14 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/design-system.md +33 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/discovery.md +18 -4
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/generation.md +74 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/hosted-canvas.md +62 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/review.md +46 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/utilities.md +6 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/craft.md +14 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/design-system.md +33 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/discovery.md +18 -4
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/generation.md +74 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/review.md +46 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/utilities.md +6 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/craft.md +14 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/design-system.md +33 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/discovery.md +18 -4
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/generation.md +74 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/review.md +46 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/utilities.md +6 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/cursor/openplanr/rules/planr-design.mdc +12 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-investigate/references/findings.md +92 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-investigate/scripts/backlog-item.mjs +339 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-investigate.mdc +10 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/cursor/openplanr/rules/planr-plan.mdc +3 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-share/references/connectors.md +4 -6
- package/lib/host-packages/cursor/openplanr/rules/planr-ship/references/findings.md +92 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-ship/references/result-contract.md +3 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-ship/scripts/backlog-item.mjs +339 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-ship.mdc +15 -4
- package/lib/host-packages/cursor/openplanr/rules/planr-sprint/references/connectors.md +4 -6
- package/lib/host-packages/cursor/openplanr/rules/planr-status/references/connectors.md +4 -6
- package/lib/host-packages/cursor/openplanr/rules/planr-sync/references/connectors.md +4 -6
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-artifact-shell.mjs +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-document.mjs +385 -79
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-handoff.mjs +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-resource-pack.mjs +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review.mjs +45 -4
- package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-runtime-support-e34c388a8e59.mjs → cursor/openplanr/runtime/design/scripts/design-runtime-support-6774fd3d5d02.mjs} +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share.mjs +8 -5
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +40 -7
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs +1 -1
- package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs → cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs} +284 -45
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-upload-spool.mjs +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design.mjs +215 -55
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +23 -23
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +246 -45
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +12 -12
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +47 -14
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +11 -10
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -3
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +16 -11
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +7 -11
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +163 -274
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +494 -967
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +346 -678
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +382 -810
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +406 -730
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +259 -522
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +585 -937
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +115 -240
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +7 -17
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +3 -4
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +215 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +2766 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +134 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +2170 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +16 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +8 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +3883 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +966 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/{16-studio-shell.js → 20-studio-shell.js} +122 -227
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +1583 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +101 -47
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +5 -1
- package/lib/host-packages/{claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0 → cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.20.0}/design-document.schema.json +78 -5
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +247 -45
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design.mjs +45 -12
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +5 -1
- package/lib/host-packages/openai/.claude-plugin/marketplace.json +2 -2
- package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +1 -1
- package/lib/host-packages/openai/openplanr/.openplanr-content.json +128 -92
- package/lib/host-packages/openai/openplanr/CONNECTORS.md +4 -6
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-artifact-shell.mjs +1 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +1 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-document.mjs +385 -79
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-handoff.mjs +1 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-resource-pack.mjs +1 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review.mjs +45 -4
- package/lib/host-packages/{claude/openplanr/runtime/design/scripts/design-runtime-support-e34c388a8e59.mjs → openai/openplanr/runtime/design/scripts/design-runtime-support-6774fd3d5d02.mjs} +1 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share.mjs +8 -5
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +40 -7
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs +1 -1
- package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs → openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs} +284 -45
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-upload-spool.mjs +1 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design.mjs +215 -55
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +23 -23
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +246 -45
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +12 -12
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +47 -14
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +11 -10
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -3
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +16 -11
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +7 -11
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +163 -274
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +494 -967
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +346 -678
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +382 -810
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +406 -730
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +259 -522
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +585 -937
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +115 -240
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +7 -17
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +3 -4
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +215 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +2766 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +134 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +2170 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +16 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +8 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +3883 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +966 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/{16-studio-shell.js → 20-studio-shell.js} +122 -227
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +1583 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +101 -47
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +5 -1
- package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0 → openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.20.0}/design-document.schema.json +78 -5
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +247 -45
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design.mjs +45 -12
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +5 -1
- package/lib/host-packages/openai/openplanr/skills/connect/references/connectors.md +4 -6
- package/lib/host-packages/openai/openplanr/skills/design/SKILL.md +12 -0
- package/lib/host-packages/openai/openplanr/skills/design/openplanr.skill.json +11 -0
- package/lib/host-packages/openai/openplanr/skills/design/references/craft.md +14 -3
- package/lib/host-packages/openai/openplanr/skills/design/references/design-system.md +33 -1
- package/lib/host-packages/openai/openplanr/skills/design/references/discovery.md +18 -4
- package/lib/host-packages/openai/openplanr/skills/design/references/generation.md +74 -1
- package/lib/host-packages/openai/openplanr/skills/design/references/hosted-canvas.md +62 -0
- package/lib/host-packages/openai/openplanr/skills/design/references/review.md +46 -1
- package/lib/host-packages/openai/openplanr/skills/design/references/utilities.md +6 -0
- package/lib/host-packages/openai/openplanr/skills/design/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/craft.md +14 -3
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/design-system.md +33 -1
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/discovery.md +18 -4
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/generation.md +74 -1
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/review.md +46 -1
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/utilities.md +6 -0
- package/lib/host-packages/openai/openplanr/skills/design-loop/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/openai/openplanr/skills/design-review/references/craft.md +14 -3
- package/lib/host-packages/openai/openplanr/skills/design-review/references/design-system.md +33 -1
- package/lib/host-packages/openai/openplanr/skills/design-review/references/discovery.md +18 -4
- package/lib/host-packages/openai/openplanr/skills/design-review/references/generation.md +74 -1
- package/lib/host-packages/openai/openplanr/skills/design-review/references/review.md +46 -1
- package/lib/host-packages/openai/openplanr/skills/design-review/references/utilities.md +6 -0
- package/lib/host-packages/openai/openplanr/skills/design-review/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/openai/openplanr/skills/investigate/SKILL.md +10 -1
- package/lib/host-packages/openai/openplanr/skills/investigate/openplanr.skill.json +22 -0
- package/lib/host-packages/openai/openplanr/skills/investigate/references/findings.md +92 -0
- package/lib/host-packages/openai/openplanr/skills/investigate/scripts/backlog-item.mjs +339 -0
- package/lib/host-packages/openai/openplanr/skills/plan/SKILL.md +3 -0
- package/lib/host-packages/openai/openplanr/skills/plan/schemas/design-document.schema.json +78 -5
- package/lib/host-packages/openai/openplanr/skills/share/references/connectors.md +4 -6
- package/lib/host-packages/openai/openplanr/skills/ship/SKILL.md +15 -4
- package/lib/host-packages/openai/openplanr/skills/ship/openplanr.skill.json +22 -0
- package/lib/host-packages/openai/openplanr/skills/ship/references/findings.md +92 -0
- package/lib/host-packages/openai/openplanr/skills/ship/references/result-contract.md +3 -1
- package/lib/host-packages/openai/openplanr/skills/ship/scripts/backlog-item.mjs +339 -0
- package/lib/host-packages/openai/openplanr/skills/sprint/references/connectors.md +4 -6
- package/lib/host-packages/openai/openplanr/skills/status/references/connectors.md +4 -6
- package/lib/host-packages/openai/openplanr/skills/sync/references/connectors.md +4 -6
- package/package.json +3 -3
- package/dist/templates/backlog/backlog-item.md.hbs +0 -40
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +0 -3589
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +0 -184
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +0 -5229
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +0 -1733
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +0 -1844
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +0 -3589
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +0 -184
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +0 -5229
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +0 -1733
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +0 -1844
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +0 -3589
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +0 -184
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +0 -5229
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +0 -1733
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +0 -1844
|
@@ -1,143 +1,93 @@
|
|
|
1
1
|
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var entangledRenderLanes = 0;
|
|
12
|
-
var workInProgressRootExitStatus = 0;
|
|
13
|
-
var workInProgressRootSkippedLanes = 0;
|
|
14
|
-
var workInProgressRootInterleavedUpdatedLanes = 0;
|
|
15
|
-
var workInProgressRootPingedLanes = 0;
|
|
16
|
-
var workInProgressDeferredLane = 0;
|
|
17
|
-
var workInProgressSuspendedRetryLanes = 0;
|
|
18
|
-
var workInProgressRootConcurrentErrors = null;
|
|
19
|
-
var workInProgressRootRecoverableErrors = null;
|
|
20
|
-
var workInProgressRootDidIncludeRecursiveRenderUpdate = false;
|
|
21
|
-
var globalMostRecentFallbackTime = 0;
|
|
22
|
-
var globalMostRecentTransitionTime = 0;
|
|
23
|
-
var workInProgressRootRenderTargetTime = Infinity;
|
|
24
|
-
var workInProgressTransitions = null;
|
|
25
|
-
var legacyErrorBoundariesThatAlreadyFailed = null;
|
|
26
|
-
var pendingEffectsStatus = 0;
|
|
27
|
-
var pendingEffectsRoot = null;
|
|
28
|
-
var pendingFinishedWork = null;
|
|
29
|
-
var pendingEffectsLanes = 0;
|
|
30
|
-
var pendingEffectsRemainingLanes = 0;
|
|
31
|
-
var pendingPassiveTransitions = null;
|
|
32
|
-
var pendingRecoverableErrors = null;
|
|
33
|
-
var pendingViewTransition = null;
|
|
34
|
-
var pendingViewTransitionEvents = null;
|
|
35
|
-
var pendingTransitionTypes = null;
|
|
36
|
-
var nestedUpdateCount = 0;
|
|
37
|
-
var rootWithNestedUpdates = null;
|
|
2
|
+
var DefaultAsyncDispatcher = {
|
|
3
|
+
getCacheForType: function(resourceType) {
|
|
4
|
+
var cache = readContext(CacheContext), cacheForType = cache.data.get(resourceType);
|
|
5
|
+
return cacheForType === void 0 && (cacheForType = resourceType(), cache.data.set(resourceType, cacheForType)), cacheForType;
|
|
6
|
+
},
|
|
7
|
+
cacheSignal: function() {
|
|
8
|
+
return readContext(CacheContext).controller.signal;
|
|
9
|
+
}
|
|
10
|
+
}, PossiblyWeakMap = typeof WeakMap == "function" ? WeakMap : Map, executionContext = 0, workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, workInProgressRootSkippedLanes = 0, workInProgressRootInterleavedUpdatedLanes = 0, workInProgressRootPingedLanes = 0, workInProgressDeferredLane = 0, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, globalMostRecentFallbackTime = 0, globalMostRecentTransitionTime = 0, workInProgressRootRenderTargetTime = 1 / 0, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, pendingEffectsLanes = 0, pendingEffectsRemainingLanes = 0, pendingPassiveTransitions = null, pendingRecoverableErrors = null, pendingViewTransition = null, pendingViewTransitionEvents = null, pendingTransitionTypes = null, nestedUpdateCount = 0, rootWithNestedUpdates = null;
|
|
38
11
|
function requestUpdateLane() {
|
|
39
|
-
return
|
|
12
|
+
return (executionContext & 2) !== 0 && workInProgressRootRenderLanes !== 0 ? workInProgressRootRenderLanes & -workInProgressRootRenderLanes : ReactSharedInternals.T !== null ? requestTransitionLane() : resolveUpdatePriority();
|
|
40
13
|
}
|
|
41
14
|
function requestDeferredLane() {
|
|
42
|
-
if (
|
|
43
|
-
if (
|
|
15
|
+
if (workInProgressDeferredLane === 0)
|
|
16
|
+
if ((workInProgressRootRenderLanes & 536870912) === 0 || isHydrating) {
|
|
44
17
|
var lane = nextTransitionDeferredLane;
|
|
45
|
-
nextTransitionDeferredLane <<= 1;
|
|
46
|
-
0 === (nextTransitionDeferredLane & 3932160) && (nextTransitionDeferredLane = 262144);
|
|
47
|
-
workInProgressDeferredLane = lane;
|
|
18
|
+
nextTransitionDeferredLane <<= 1, (nextTransitionDeferredLane & 3932160) === 0 && (nextTransitionDeferredLane = 262144), workInProgressDeferredLane = lane;
|
|
48
19
|
} else workInProgressDeferredLane = 536870912;
|
|
49
|
-
lane = suspenseHandlerStackCursor.current;
|
|
50
|
-
null !== lane && (lane.flags |= 32);
|
|
51
|
-
return workInProgressDeferredLane;
|
|
20
|
+
return lane = suspenseHandlerStackCursor.current, lane !== null && (lane.flags |= 32), workInProgressDeferredLane;
|
|
52
21
|
}
|
|
53
22
|
function scheduleViewTransitionEvent(fiber, callback) {
|
|
54
|
-
if (
|
|
23
|
+
if (callback != null) {
|
|
55
24
|
var state = fiber.stateNode, instance = state.ref;
|
|
56
|
-
|
|
25
|
+
instance === null && (instance = state.ref = createViewTransitionInstance(
|
|
57
26
|
getViewTransitionName(fiber.memoizedProps, state)
|
|
58
|
-
));
|
|
59
|
-
null === pendingViewTransitionEvents && (pendingViewTransitionEvents = []);
|
|
60
|
-
pendingViewTransitionEvents.push(callback.bind(null, instance));
|
|
27
|
+
)), pendingViewTransitionEvents === null && (pendingViewTransitionEvents = []), pendingViewTransitionEvents.push(callback.bind(null, instance));
|
|
61
28
|
}
|
|
62
29
|
}
|
|
63
30
|
function scheduleUpdateOnFiber(root2, fiber, lane) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
workInProgressRootRenderLanes,
|
|
76
|
-
workInProgressDeferredLane,
|
|
77
|
-
false
|
|
78
|
-
)), ensureRootIsScheduled(root2);
|
|
31
|
+
(root2 === workInProgressRoot && (workInProgressSuspendedReason === 2 || workInProgressSuspendedReason === 9) || root2.cancelPendingCommit !== null) && (prepareFreshStack(root2, 0), markRootSuspended(
|
|
32
|
+
root2,
|
|
33
|
+
workInProgressRootRenderLanes,
|
|
34
|
+
workInProgressDeferredLane,
|
|
35
|
+
!1
|
|
36
|
+
)), markRootUpdated$1(root2, lane), ((executionContext & 2) === 0 || root2 !== workInProgressRoot) && (root2 === workInProgressRoot && ((executionContext & 2) === 0 && (workInProgressRootInterleavedUpdatedLanes |= lane), workInProgressRootExitStatus === 4 && markRootSuspended(
|
|
37
|
+
root2,
|
|
38
|
+
workInProgressRootRenderLanes,
|
|
39
|
+
workInProgressDeferredLane,
|
|
40
|
+
!1
|
|
41
|
+
)), ensureRootIsScheduled(root2));
|
|
79
42
|
}
|
|
80
43
|
function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
81
|
-
if (
|
|
82
|
-
var shouldTimeSlice = !forceSync &&
|
|
44
|
+
if ((executionContext & 6) !== 0) throw Error(formatProdErrorMessage(327));
|
|
45
|
+
var shouldTimeSlice = !forceSync && (lanes & 127) === 0 && (lanes & root$jscomp$0.expiredLanes) === 0 || checkIfRootIsPrerendering(root$jscomp$0, lanes), exitStatus = shouldTimeSlice ? renderRootConcurrent(root$jscomp$0, lanes) : renderRootSync(root$jscomp$0, lanes, !0), renderWasConcurrent = shouldTimeSlice;
|
|
83
46
|
do {
|
|
84
|
-
if (
|
|
85
|
-
workInProgressRootIsPrerendering && !shouldTimeSlice && markRootSuspended(root$jscomp$0, lanes, 0,
|
|
47
|
+
if (exitStatus === 0) {
|
|
48
|
+
workInProgressRootIsPrerendering && !shouldTimeSlice && markRootSuspended(root$jscomp$0, lanes, 0, !1);
|
|
86
49
|
break;
|
|
87
50
|
} else {
|
|
88
|
-
forceSync = root$jscomp$0.current.alternate
|
|
89
|
-
|
|
90
|
-
exitStatus = renderRootSync(root$jscomp$0, lanes, false);
|
|
91
|
-
renderWasConcurrent = false;
|
|
51
|
+
if (forceSync = root$jscomp$0.current.alternate, renderWasConcurrent && !isRenderConsistentWithExternalStores(forceSync)) {
|
|
52
|
+
exitStatus = renderRootSync(root$jscomp$0, lanes, !1), renderWasConcurrent = !1;
|
|
92
53
|
continue;
|
|
93
54
|
}
|
|
94
|
-
if (
|
|
95
|
-
renderWasConcurrent = lanes
|
|
96
|
-
if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
|
|
55
|
+
if (exitStatus === 2) {
|
|
56
|
+
if (renderWasConcurrent = lanes, root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
|
|
97
57
|
var JSCompiler_inline_result = 0;
|
|
98
58
|
else
|
|
99
|
-
JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913, JSCompiler_inline_result =
|
|
100
|
-
if (
|
|
59
|
+
JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913, JSCompiler_inline_result = JSCompiler_inline_result !== 0 ? JSCompiler_inline_result : JSCompiler_inline_result & 536870912 ? 536870912 : 0;
|
|
60
|
+
if (JSCompiler_inline_result !== 0) {
|
|
101
61
|
lanes = JSCompiler_inline_result;
|
|
102
62
|
a: {
|
|
103
63
|
var root2 = root$jscomp$0;
|
|
104
64
|
exitStatus = workInProgressRootConcurrentErrors;
|
|
105
65
|
var wasRootDehydrated = root2.current.memoizedState.isDehydrated;
|
|
106
|
-
wasRootDehydrated && (prepareFreshStack(root2, JSCompiler_inline_result).flags |= 256)
|
|
107
|
-
JSCompiler_inline_result = renderRootSync(
|
|
66
|
+
if (wasRootDehydrated && (prepareFreshStack(root2, JSCompiler_inline_result).flags |= 256), JSCompiler_inline_result = renderRootSync(
|
|
108
67
|
root2,
|
|
109
68
|
JSCompiler_inline_result,
|
|
110
|
-
|
|
111
|
-
)
|
|
112
|
-
if (2 !== JSCompiler_inline_result && 6 !== JSCompiler_inline_result) {
|
|
69
|
+
!1
|
|
70
|
+
), JSCompiler_inline_result !== 2 && JSCompiler_inline_result !== 6) {
|
|
113
71
|
if (workInProgressRootDidAttachPingListener && !wasRootDehydrated) {
|
|
114
|
-
root2.errorRecoveryDisabledLanes |= renderWasConcurrent;
|
|
115
|
-
workInProgressRootInterleavedUpdatedLanes |= renderWasConcurrent;
|
|
116
|
-
exitStatus = 4;
|
|
72
|
+
root2.errorRecoveryDisabledLanes |= renderWasConcurrent, workInProgressRootInterleavedUpdatedLanes |= renderWasConcurrent, exitStatus = 4;
|
|
117
73
|
break a;
|
|
118
74
|
}
|
|
119
|
-
renderWasConcurrent = workInProgressRootRecoverableErrors
|
|
120
|
-
workInProgressRootRecoverableErrors = exitStatus;
|
|
121
|
-
null !== renderWasConcurrent && (null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = renderWasConcurrent : workInProgressRootRecoverableErrors.push.apply(
|
|
75
|
+
renderWasConcurrent = workInProgressRootRecoverableErrors, workInProgressRootRecoverableErrors = exitStatus, renderWasConcurrent !== null && (workInProgressRootRecoverableErrors === null ? workInProgressRootRecoverableErrors = renderWasConcurrent : workInProgressRootRecoverableErrors.push.apply(
|
|
122
76
|
workInProgressRootRecoverableErrors,
|
|
123
77
|
renderWasConcurrent
|
|
124
78
|
));
|
|
125
79
|
}
|
|
126
80
|
exitStatus = JSCompiler_inline_result;
|
|
127
81
|
}
|
|
128
|
-
renderWasConcurrent =
|
|
129
|
-
if (2 !== exitStatus) continue;
|
|
82
|
+
if (renderWasConcurrent = !1, exitStatus !== 2) continue;
|
|
130
83
|
}
|
|
131
84
|
}
|
|
132
|
-
if (
|
|
133
|
-
prepareFreshStack(root$jscomp$0, 0);
|
|
134
|
-
markRootSuspended(root$jscomp$0, lanes, 0, true);
|
|
85
|
+
if (exitStatus === 1) {
|
|
86
|
+
prepareFreshStack(root$jscomp$0, 0), markRootSuspended(root$jscomp$0, lanes, 0, !0);
|
|
135
87
|
break;
|
|
136
88
|
}
|
|
137
89
|
a: {
|
|
138
|
-
shouldTimeSlice = root$jscomp$0
|
|
139
|
-
renderWasConcurrent = exitStatus;
|
|
140
|
-
switch (renderWasConcurrent) {
|
|
90
|
+
switch (shouldTimeSlice = root$jscomp$0, renderWasConcurrent = exitStatus, renderWasConcurrent) {
|
|
141
91
|
case 0:
|
|
142
92
|
case 1:
|
|
143
93
|
throw Error(formatProdErrorMessage(345));
|
|
@@ -162,15 +112,13 @@
|
|
|
162
112
|
throw Error(formatProdErrorMessage(329));
|
|
163
113
|
}
|
|
164
114
|
if ((lanes & 62914560) === lanes && (exitStatus = globalMostRecentFallbackTime + 300 - now(), 10 < exitStatus)) {
|
|
165
|
-
markRootSuspended(
|
|
115
|
+
if (markRootSuspended(
|
|
166
116
|
shouldTimeSlice,
|
|
167
117
|
lanes,
|
|
168
118
|
workInProgressDeferredLane,
|
|
169
119
|
!workInProgressRootDidSkipSuspendedSiblings
|
|
170
|
-
);
|
|
171
|
-
|
|
172
|
-
pendingEffectsLanes = lanes;
|
|
173
|
-
shouldTimeSlice.timeoutHandle = scheduleTimeout(
|
|
120
|
+
), getNextLanes(shouldTimeSlice, 0, !0) !== 0) break a;
|
|
121
|
+
pendingEffectsLanes = lanes, shouldTimeSlice.timeoutHandle = scheduleTimeout(
|
|
174
122
|
completeRootWhenReady.bind(
|
|
175
123
|
null,
|
|
176
124
|
shouldTimeSlice,
|
|
@@ -211,55 +159,50 @@
|
|
|
211
159
|
}
|
|
212
160
|
}
|
|
213
161
|
break;
|
|
214
|
-
} while (
|
|
162
|
+
} while (!0);
|
|
215
163
|
ensureRootIsScheduled(root$jscomp$0);
|
|
216
164
|
}
|
|
217
165
|
function completeRootWhenReady(root2, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, updatedLanes, suspendedRetryLanes, didSkipSuspendedSiblings, exitStatus, suspendedCommitReason, completedRenderStartTime, completedRenderEndTime) {
|
|
218
166
|
root2.timeoutHandle = -1;
|
|
219
167
|
var subtreeFlags = finishedWork.subtreeFlags, isViewTransitionEligible = (lanes & 335544064) === lanes;
|
|
220
|
-
suspendedCommitReason = null
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
)
|
|
259
|
-
);
|
|
260
|
-
markRootSuspended(root2, lanes, spawnedLane, !didSkipSuspendedSiblings);
|
|
261
|
-
return;
|
|
262
|
-
}
|
|
168
|
+
if (suspendedCommitReason = null, (isViewTransitionEligible || subtreeFlags & 8192 || (subtreeFlags & 16785408) === 16785408) && (suspendedCommitReason = {
|
|
169
|
+
stylesheets: null,
|
|
170
|
+
count: 0,
|
|
171
|
+
imgCount: 0,
|
|
172
|
+
imgBytes: 0,
|
|
173
|
+
suspenseyImages: [],
|
|
174
|
+
waitingForImages: !0,
|
|
175
|
+
waitingForViewTransition: !1,
|
|
176
|
+
unsuspend: noop$1
|
|
177
|
+
}, appearingViewTransitions = null, accumulateSuspenseyCommitOnFiber(
|
|
178
|
+
finishedWork,
|
|
179
|
+
lanes,
|
|
180
|
+
suspendedCommitReason
|
|
181
|
+
), isViewTransitionEligible && (subtreeFlags = suspendedCommitReason, isViewTransitionEligible = root2.containerInfo, isViewTransitionEligible = (isViewTransitionEligible.nodeType === 9 ? isViewTransitionEligible : isViewTransitionEligible.ownerDocument).__reactViewTransition, isViewTransitionEligible != null && (subtreeFlags.count++, subtreeFlags.waitingForViewTransition = !0, subtreeFlags = onUnsuspend.bind(subtreeFlags), isViewTransitionEligible.finished.then(subtreeFlags, subtreeFlags))), subtreeFlags = (lanes & 62914560) === lanes ? globalMostRecentFallbackTime - now() : (lanes & 4194048) === lanes ? globalMostRecentTransitionTime - now() : 0, subtreeFlags = waitForCommitToBeReady(
|
|
182
|
+
suspendedCommitReason,
|
|
183
|
+
subtreeFlags
|
|
184
|
+
), subtreeFlags !== null)) {
|
|
185
|
+
pendingEffectsLanes = lanes, root2.cancelPendingCommit = subtreeFlags(
|
|
186
|
+
completeRoot.bind(
|
|
187
|
+
null,
|
|
188
|
+
root2,
|
|
189
|
+
finishedWork,
|
|
190
|
+
lanes,
|
|
191
|
+
recoverableErrors,
|
|
192
|
+
transitions,
|
|
193
|
+
didIncludeRenderPhaseUpdate,
|
|
194
|
+
spawnedLane,
|
|
195
|
+
updatedLanes,
|
|
196
|
+
suspendedRetryLanes,
|
|
197
|
+
didSkipSuspendedSiblings,
|
|
198
|
+
exitStatus,
|
|
199
|
+
suspendedCommitReason,
|
|
200
|
+
null,
|
|
201
|
+
completedRenderStartTime,
|
|
202
|
+
completedRenderEndTime
|
|
203
|
+
)
|
|
204
|
+
), markRootSuspended(root2, lanes, spawnedLane, !didSkipSuspendedSiblings);
|
|
205
|
+
return;
|
|
263
206
|
}
|
|
264
207
|
completeRoot(
|
|
265
208
|
root2,
|
|
@@ -279,143 +222,102 @@
|
|
|
279
222
|
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
280
223
|
for (var node = finishedWork; ; ) {
|
|
281
224
|
var tag = node.tag;
|
|
282
|
-
if ((
|
|
225
|
+
if ((tag === 0 || tag === 11 || tag === 15) && node.flags & 16384 && (tag = node.updateQueue, tag !== null && (tag = tag.stores, tag !== null)))
|
|
283
226
|
for (var i = 0; i < tag.length; i++) {
|
|
284
227
|
var check = tag[i], getSnapshot = check.getSnapshot;
|
|
285
228
|
check = check.value;
|
|
286
229
|
try {
|
|
287
|
-
if (!objectIs(getSnapshot(), check)) return
|
|
288
|
-
} catch
|
|
289
|
-
return
|
|
230
|
+
if (!objectIs(getSnapshot(), check)) return !1;
|
|
231
|
+
} catch {
|
|
232
|
+
return !1;
|
|
290
233
|
}
|
|
291
234
|
}
|
|
292
|
-
tag = node.child
|
|
293
|
-
if (node.subtreeFlags & 16384 && null !== tag)
|
|
235
|
+
if (tag = node.child, node.subtreeFlags & 16384 && tag !== null)
|
|
294
236
|
tag.return = node, node = tag;
|
|
295
237
|
else {
|
|
296
238
|
if (node === finishedWork) break;
|
|
297
|
-
for (;
|
|
298
|
-
if (
|
|
239
|
+
for (; node.sibling === null; ) {
|
|
240
|
+
if (node.return === null || node.return === finishedWork) return !0;
|
|
299
241
|
node = node.return;
|
|
300
242
|
}
|
|
301
|
-
node.sibling.return = node.return;
|
|
302
|
-
node = node.sibling;
|
|
243
|
+
node.sibling.return = node.return, node = node.sibling;
|
|
303
244
|
}
|
|
304
245
|
}
|
|
305
|
-
return
|
|
246
|
+
return !0;
|
|
306
247
|
}
|
|
307
248
|
function markRootSuspended(root2, suspendedLanes, spawnedLane, didAttemptEntireTree) {
|
|
308
|
-
suspendedLanes = getEntangledLanes(root2, suspendedLanes);
|
|
309
|
-
suspendedLanes &= ~workInProgressRootPingedLanes;
|
|
310
|
-
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
|
|
311
|
-
root2.suspendedLanes |= suspendedLanes;
|
|
312
|
-
root2.pingedLanes &= ~suspendedLanes;
|
|
313
|
-
didAttemptEntireTree && (root2.warmLanes |= suspendedLanes);
|
|
314
|
-
didAttemptEntireTree = root2.expirationTimes;
|
|
249
|
+
suspendedLanes = getEntangledLanes(root2, suspendedLanes), suspendedLanes &= ~workInProgressRootPingedLanes, suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes, root2.suspendedLanes |= suspendedLanes, root2.pingedLanes &= ~suspendedLanes, didAttemptEntireTree && (root2.warmLanes |= suspendedLanes), didAttemptEntireTree = root2.expirationTimes;
|
|
315
250
|
for (var lanes = suspendedLanes; 0 < lanes; ) {
|
|
316
251
|
var index$6 = 31 - clz32(lanes), lane = 1 << index$6;
|
|
317
|
-
didAttemptEntireTree[index$6] = -1;
|
|
318
|
-
lanes &= ~lane;
|
|
252
|
+
didAttemptEntireTree[index$6] = -1, lanes &= ~lane;
|
|
319
253
|
}
|
|
320
|
-
|
|
254
|
+
spawnedLane !== 0 && markSpawnedDeferredLane(root2, spawnedLane, suspendedLanes);
|
|
321
255
|
}
|
|
322
256
|
function flushSyncWork$1() {
|
|
323
|
-
return
|
|
257
|
+
return (executionContext & 6) === 0 ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0;
|
|
324
258
|
}
|
|
325
259
|
function resetWorkInProgressStack() {
|
|
326
|
-
if (
|
|
327
|
-
if (
|
|
260
|
+
if (workInProgress !== null) {
|
|
261
|
+
if (workInProgressSuspendedReason === 0)
|
|
328
262
|
var interruptedWork = workInProgress.return;
|
|
329
263
|
else
|
|
330
264
|
interruptedWork = workInProgress, lastContextDependency = currentlyRenderingFiber$1 = null, resetHooksOnUnwind(interruptedWork), thenableState$1 = null, thenableIndexCounter$1 = 0, interruptedWork = workInProgress;
|
|
331
|
-
for (;
|
|
265
|
+
for (; interruptedWork !== null; )
|
|
332
266
|
unwindInterruptedWork(interruptedWork.alternate, interruptedWork), interruptedWork = interruptedWork.return;
|
|
333
267
|
workInProgress = null;
|
|
334
268
|
}
|
|
335
269
|
}
|
|
336
270
|
function prepareFreshStack(root2, lanes) {
|
|
337
271
|
var timeoutHandle = root2.timeoutHandle;
|
|
338
|
-
|
|
339
|
-
timeoutHandle = root2.cancelPendingCommit;
|
|
340
|
-
null !== timeoutHandle && (root2.cancelPendingCommit = null, timeoutHandle());
|
|
341
|
-
pendingEffectsLanes = 0;
|
|
342
|
-
resetWorkInProgressStack();
|
|
343
|
-
workInProgressRoot = root2;
|
|
344
|
-
workInProgress = timeoutHandle = createWorkInProgress(root2.current, null);
|
|
345
|
-
workInProgressRootRenderLanes = lanes;
|
|
346
|
-
workInProgressSuspendedReason = 0;
|
|
347
|
-
workInProgressThrownValue = null;
|
|
348
|
-
workInProgressRootDidSkipSuspendedSiblings = false;
|
|
349
|
-
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root2, lanes);
|
|
350
|
-
workInProgressRootDidAttachPingListener = false;
|
|
351
|
-
workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = workInProgressRootExitStatus = 0;
|
|
352
|
-
workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null;
|
|
353
|
-
workInProgressRootDidIncludeRecursiveRenderUpdate = false;
|
|
354
|
-
entangledRenderLanes = getEntangledLanes(root2, lanes);
|
|
355
|
-
finishQueueingConcurrentUpdates();
|
|
356
|
-
return timeoutHandle;
|
|
272
|
+
return timeoutHandle !== -1 && (root2.timeoutHandle = -1, cancelTimeout(timeoutHandle)), timeoutHandle = root2.cancelPendingCommit, timeoutHandle !== null && (root2.cancelPendingCommit = null, timeoutHandle()), pendingEffectsLanes = 0, resetWorkInProgressStack(), workInProgressRoot = root2, workInProgress = timeoutHandle = createWorkInProgress(root2.current, null), workInProgressRootRenderLanes = lanes, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root2, lanes), workInProgressRootDidAttachPingListener = !1, workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = workInProgressRootExitStatus = 0, workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, entangledRenderLanes = getEntangledLanes(root2, lanes), finishQueueingConcurrentUpdates(), timeoutHandle;
|
|
357
273
|
}
|
|
358
274
|
function handleThrow(root2, thrownValue) {
|
|
359
|
-
currentlyRenderingFiber = null
|
|
360
|
-
ReactSharedInternals.H = ContextOnlyDispatcher;
|
|
361
|
-
thrownValue === SuspenseException || thrownValue === SuspenseActionException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 3) : thrownValue === SuspenseyCommitException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 4) : workInProgressSuspendedReason = thrownValue === SelectiveHydrationException ? 8 : null !== thrownValue && "object" === typeof thrownValue && "function" === typeof thrownValue.then ? 6 : 1;
|
|
362
|
-
workInProgressThrownValue = thrownValue;
|
|
363
|
-
null === workInProgress && (workInProgressRootExitStatus = 1, logUncaughtError(
|
|
275
|
+
currentlyRenderingFiber = null, ReactSharedInternals.H = ContextOnlyDispatcher, thrownValue === SuspenseException || thrownValue === SuspenseActionException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 3) : thrownValue === SuspenseyCommitException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 4) : workInProgressSuspendedReason = thrownValue === SelectiveHydrationException ? 8 : thrownValue !== null && typeof thrownValue == "object" && typeof thrownValue.then == "function" ? 6 : 1, workInProgressThrownValue = thrownValue, workInProgress === null && (workInProgressRootExitStatus = 1, logUncaughtError(
|
|
364
276
|
root2,
|
|
365
277
|
createCapturedValueAtFiber(thrownValue, root2.current)
|
|
366
278
|
));
|
|
367
279
|
}
|
|
368
280
|
function shouldRemainOnPreviousScreen() {
|
|
369
281
|
var handler = suspenseHandlerStackCursor.current;
|
|
370
|
-
return
|
|
282
|
+
return handler === null ? !0 : (workInProgressRootRenderLanes & 4194048) === workInProgressRootRenderLanes ? shellBoundary === null : (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes || (workInProgressRootRenderLanes & 536870912) !== 0 ? handler === shellBoundary : !1;
|
|
371
283
|
}
|
|
372
284
|
function pushDispatcher() {
|
|
373
285
|
var prevDispatcher = ReactSharedInternals.H;
|
|
374
|
-
ReactSharedInternals.H = ContextOnlyDispatcher;
|
|
375
|
-
return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher;
|
|
286
|
+
return ReactSharedInternals.H = ContextOnlyDispatcher, prevDispatcher === null ? ContextOnlyDispatcher : prevDispatcher;
|
|
376
287
|
}
|
|
377
288
|
function pushAsyncDispatcher() {
|
|
378
289
|
var prevAsyncDispatcher = ReactSharedInternals.A;
|
|
379
|
-
ReactSharedInternals.A = DefaultAsyncDispatcher;
|
|
380
|
-
return prevAsyncDispatcher;
|
|
290
|
+
return ReactSharedInternals.A = DefaultAsyncDispatcher, prevAsyncDispatcher;
|
|
381
291
|
}
|
|
382
292
|
function renderDidSuspendDelayIfPossible() {
|
|
383
|
-
workInProgressRootExitStatus = 4
|
|
384
|
-
workInProgressRootDidSkipSuspendedSiblings || (workInProgressRootRenderLanes & 4194048) !== workInProgressRootRenderLanes && null !== suspenseHandlerStackCursor.current || (workInProgressRootIsPrerendering = true);
|
|
385
|
-
0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727) || null === workInProgressRoot || markRootSuspended(
|
|
293
|
+
workInProgressRootExitStatus = 4, workInProgressRootDidSkipSuspendedSiblings || (workInProgressRootRenderLanes & 4194048) !== workInProgressRootRenderLanes && suspenseHandlerStackCursor.current !== null || (workInProgressRootIsPrerendering = !0), (workInProgressRootSkippedLanes & 134217727) === 0 && (workInProgressRootInterleavedUpdatedLanes & 134217727) === 0 || workInProgressRoot === null || markRootSuspended(
|
|
386
294
|
workInProgressRoot,
|
|
387
295
|
workInProgressRootRenderLanes,
|
|
388
296
|
workInProgressDeferredLane,
|
|
389
|
-
|
|
297
|
+
!1
|
|
390
298
|
);
|
|
391
299
|
}
|
|
392
300
|
function renderRootSync(root2, lanes, shouldYieldForPrerendering) {
|
|
393
301
|
var prevExecutionContext = executionContext;
|
|
394
302
|
executionContext |= 2;
|
|
395
303
|
var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher();
|
|
396
|
-
|
|
397
|
-
workInProgressTransitions = null, prepareFreshStack(root2, lanes);
|
|
398
|
-
lanes = false;
|
|
304
|
+
(workInProgressRoot !== root2 || workInProgressRootRenderLanes !== lanes) && (workInProgressTransitions = null, prepareFreshStack(root2, lanes)), lanes = !1;
|
|
399
305
|
var exitStatus = workInProgressRootExitStatus;
|
|
400
306
|
a: do
|
|
401
307
|
try {
|
|
402
|
-
if (
|
|
308
|
+
if (workInProgressSuspendedReason !== 0 && workInProgress !== null) {
|
|
403
309
|
var unitOfWork = workInProgress, thrownValue = workInProgressThrownValue;
|
|
404
310
|
switch (workInProgressSuspendedReason) {
|
|
405
311
|
case 8:
|
|
406
|
-
resetWorkInProgressStack();
|
|
407
|
-
exitStatus = 6;
|
|
312
|
+
resetWorkInProgressStack(), exitStatus = 6;
|
|
408
313
|
break a;
|
|
409
314
|
case 3:
|
|
410
315
|
case 2:
|
|
411
316
|
case 9:
|
|
412
317
|
case 6:
|
|
413
|
-
|
|
318
|
+
suspenseHandlerStackCursor.current === null && (lanes = !0);
|
|
414
319
|
var reason = workInProgressSuspendedReason;
|
|
415
|
-
workInProgressSuspendedReason = 0
|
|
416
|
-
workInProgressThrownValue = null;
|
|
417
|
-
throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason);
|
|
418
|
-
if (shouldYieldForPrerendering && workInProgressRootIsPrerendering) {
|
|
320
|
+
if (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason), shouldYieldForPrerendering && workInProgressRootIsPrerendering) {
|
|
419
321
|
exitStatus = 0;
|
|
420
322
|
break a;
|
|
421
323
|
}
|
|
@@ -424,23 +326,16 @@
|
|
|
424
326
|
reason = workInProgressSuspendedReason, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason);
|
|
425
327
|
}
|
|
426
328
|
}
|
|
427
|
-
workLoopSync();
|
|
428
|
-
exitStatus = workInProgressRootExitStatus;
|
|
329
|
+
workLoopSync(), exitStatus = workInProgressRootExitStatus;
|
|
429
330
|
break;
|
|
430
331
|
} catch (thrownValue$184) {
|
|
431
332
|
handleThrow(root2, thrownValue$184);
|
|
432
333
|
}
|
|
433
|
-
while (
|
|
434
|
-
lanes && root2.shellSuspendCounter
|
|
435
|
-
lastContextDependency = currentlyRenderingFiber$1 = null;
|
|
436
|
-
executionContext = prevExecutionContext;
|
|
437
|
-
ReactSharedInternals.H = prevDispatcher;
|
|
438
|
-
ReactSharedInternals.A = prevAsyncDispatcher;
|
|
439
|
-
null === workInProgress && (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates());
|
|
440
|
-
return exitStatus;
|
|
334
|
+
while (!0);
|
|
335
|
+
return lanes && root2.shellSuspendCounter++, lastContextDependency = currentlyRenderingFiber$1 = null, executionContext = prevExecutionContext, ReactSharedInternals.H = prevDispatcher, ReactSharedInternals.A = prevAsyncDispatcher, workInProgress === null && (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates()), exitStatus;
|
|
441
336
|
}
|
|
442
337
|
function workLoopSync() {
|
|
443
|
-
for (;
|
|
338
|
+
for (; workInProgress !== null; ) performUnitOfWork(workInProgress);
|
|
444
339
|
}
|
|
445
340
|
function renderRootConcurrent(root2, lanes) {
|
|
446
341
|
var prevExecutionContext = executionContext;
|
|
@@ -452,28 +347,22 @@
|
|
|
452
347
|
);
|
|
453
348
|
a: do
|
|
454
349
|
try {
|
|
455
|
-
if (
|
|
350
|
+
if (workInProgressSuspendedReason !== 0 && workInProgress !== null) {
|
|
456
351
|
lanes = workInProgress;
|
|
457
352
|
var thrownValue = workInProgressThrownValue;
|
|
458
353
|
b: switch (workInProgressSuspendedReason) {
|
|
459
354
|
case 1:
|
|
460
|
-
workInProgressSuspendedReason = 0;
|
|
461
|
-
workInProgressThrownValue = null;
|
|
462
|
-
throwAndUnwindWorkLoop(root2, lanes, thrownValue, 1);
|
|
355
|
+
workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, lanes, thrownValue, 1);
|
|
463
356
|
break;
|
|
464
357
|
case 2:
|
|
465
358
|
case 9:
|
|
466
359
|
if (isThenableResolved(thrownValue)) {
|
|
467
|
-
workInProgressSuspendedReason = 0;
|
|
468
|
-
workInProgressThrownValue = null;
|
|
469
|
-
replaySuspendedUnitOfWork(lanes);
|
|
360
|
+
workInProgressSuspendedReason = 0, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes);
|
|
470
361
|
break;
|
|
471
362
|
}
|
|
472
363
|
lanes = function() {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
};
|
|
476
|
-
thrownValue.then(lanes, lanes);
|
|
364
|
+
workInProgressSuspendedReason !== 2 && workInProgressSuspendedReason !== 9 || workInProgressRoot !== root2 || (workInProgressSuspendedReason = 7), ensureRootIsScheduled(root2);
|
|
365
|
+
}, thrownValue.then(lanes, lanes);
|
|
477
366
|
break a;
|
|
478
367
|
case 3:
|
|
479
368
|
workInProgressSuspendedReason = 7;
|
|
@@ -493,29 +382,23 @@
|
|
|
493
382
|
case 27:
|
|
494
383
|
var hostFiber = workInProgress;
|
|
495
384
|
if (resource ? preloadResource(resource) : hostFiber.stateNode.complete) {
|
|
496
|
-
workInProgressSuspendedReason = 0;
|
|
497
|
-
workInProgressThrownValue = null;
|
|
385
|
+
workInProgressSuspendedReason = 0, workInProgressThrownValue = null;
|
|
498
386
|
var sibling = hostFiber.sibling;
|
|
499
|
-
if (
|
|
387
|
+
if (sibling !== null) workInProgress = sibling;
|
|
500
388
|
else {
|
|
501
389
|
var returnFiber = hostFiber.return;
|
|
502
|
-
|
|
390
|
+
returnFiber !== null ? (workInProgress = returnFiber, completeUnitOfWork(returnFiber)) : workInProgress = null;
|
|
503
391
|
}
|
|
504
392
|
break b;
|
|
505
393
|
}
|
|
506
394
|
}
|
|
507
|
-
workInProgressSuspendedReason = 0;
|
|
508
|
-
workInProgressThrownValue = null;
|
|
509
|
-
throwAndUnwindWorkLoop(root2, lanes, thrownValue, 5);
|
|
395
|
+
workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, lanes, thrownValue, 5);
|
|
510
396
|
break;
|
|
511
397
|
case 6:
|
|
512
|
-
workInProgressSuspendedReason = 0;
|
|
513
|
-
workInProgressThrownValue = null;
|
|
514
|
-
throwAndUnwindWorkLoop(root2, lanes, thrownValue, 6);
|
|
398
|
+
workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, lanes, thrownValue, 6);
|
|
515
399
|
break;
|
|
516
400
|
case 8:
|
|
517
|
-
resetWorkInProgressStack();
|
|
518
|
-
workInProgressRootExitStatus = 6;
|
|
401
|
+
resetWorkInProgressStack(), workInProgressRootExitStatus = 6;
|
|
519
402
|
break a;
|
|
520
403
|
default:
|
|
521
404
|
throw Error(formatProdErrorMessage(462));
|
|
@@ -526,29 +409,19 @@
|
|
|
526
409
|
} catch (thrownValue$186) {
|
|
527
410
|
handleThrow(root2, thrownValue$186);
|
|
528
411
|
}
|
|
529
|
-
while (
|
|
530
|
-
lastContextDependency = currentlyRenderingFiber$1 = null;
|
|
531
|
-
ReactSharedInternals.H = prevDispatcher;
|
|
532
|
-
ReactSharedInternals.A = prevAsyncDispatcher;
|
|
533
|
-
executionContext = prevExecutionContext;
|
|
534
|
-
if (null !== workInProgress) return 0;
|
|
535
|
-
workInProgressRoot = null;
|
|
536
|
-
workInProgressRootRenderLanes = 0;
|
|
537
|
-
finishQueueingConcurrentUpdates();
|
|
538
|
-
return workInProgressRootExitStatus;
|
|
412
|
+
while (!0);
|
|
413
|
+
return lastContextDependency = currentlyRenderingFiber$1 = null, ReactSharedInternals.H = prevDispatcher, ReactSharedInternals.A = prevAsyncDispatcher, executionContext = prevExecutionContext, workInProgress !== null ? 0 : (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates(), workInProgressRootExitStatus);
|
|
539
414
|
}
|
|
540
415
|
function workLoopConcurrentByScheduler() {
|
|
541
|
-
for (;
|
|
416
|
+
for (; workInProgress !== null && !shouldYield(); )
|
|
542
417
|
performUnitOfWork(workInProgress);
|
|
543
418
|
}
|
|
544
419
|
function performUnitOfWork(unitOfWork) {
|
|
545
420
|
var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes);
|
|
546
|
-
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
|
547
|
-
null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next;
|
|
421
|
+
unitOfWork.memoizedProps = unitOfWork.pendingProps, next === null ? completeUnitOfWork(unitOfWork) : workInProgress = next;
|
|
548
422
|
}
|
|
549
423
|
function replaySuspendedUnitOfWork(unitOfWork) {
|
|
550
|
-
var next = unitOfWork;
|
|
551
|
-
var current = next.alternate;
|
|
424
|
+
var next = unitOfWork, current = next.alternate;
|
|
552
425
|
switch (next.tag) {
|
|
553
426
|
case 15:
|
|
554
427
|
case 0:
|
|
@@ -574,18 +447,14 @@
|
|
|
574
447
|
case 5:
|
|
575
448
|
resetHooksOnUnwind(next);
|
|
576
449
|
var fiber = next;
|
|
577
|
-
fiber === hydrationParentFiber && (isHydrating ? (popToNextHostParent(fiber),
|
|
450
|
+
fiber === hydrationParentFiber && (isHydrating ? (popToNextHostParent(fiber), fiber.tag === 5 && fiber.stateNode != null && (nextHydratableInstance = fiber.stateNode)) : (popToNextHostParent(fiber), isHydrating = !0));
|
|
578
451
|
default:
|
|
579
452
|
unwindInterruptedWork(current, next), next = workInProgress = resetWorkInProgress(next, entangledRenderLanes), next = beginWork(current, next, entangledRenderLanes);
|
|
580
453
|
}
|
|
581
|
-
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
|
582
|
-
null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next;
|
|
454
|
+
unitOfWork.memoizedProps = unitOfWork.pendingProps, next === null ? completeUnitOfWork(unitOfWork) : workInProgress = next;
|
|
583
455
|
}
|
|
584
456
|
function throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, suspendedReason) {
|
|
585
|
-
lastContextDependency = currentlyRenderingFiber$1 = null;
|
|
586
|
-
resetHooksOnUnwind(unitOfWork);
|
|
587
|
-
thenableState$1 = null;
|
|
588
|
-
thenableIndexCounter$1 = 0;
|
|
457
|
+
lastContextDependency = currentlyRenderingFiber$1 = null, resetHooksOnUnwind(unitOfWork), thenableState$1 = null, thenableIndexCounter$1 = 0;
|
|
589
458
|
var returnFiber = unitOfWork.return;
|
|
590
459
|
try {
|
|
591
460
|
if (throwException(
|
|
@@ -595,37 +464,26 @@
|
|
|
595
464
|
thrownValue,
|
|
596
465
|
workInProgressRootRenderLanes
|
|
597
466
|
)) {
|
|
598
|
-
workInProgressRootExitStatus = 1
|
|
599
|
-
logUncaughtError(
|
|
467
|
+
workInProgressRootExitStatus = 1, logUncaughtError(
|
|
600
468
|
root2,
|
|
601
469
|
createCapturedValueAtFiber(thrownValue, root2.current)
|
|
602
|
-
);
|
|
603
|
-
workInProgress = null;
|
|
470
|
+
), workInProgress = null;
|
|
604
471
|
return;
|
|
605
472
|
}
|
|
606
473
|
} catch (error) {
|
|
607
|
-
if (
|
|
608
|
-
workInProgressRootExitStatus = 1
|
|
609
|
-
logUncaughtError(
|
|
474
|
+
if (returnFiber !== null) throw workInProgress = returnFiber, error;
|
|
475
|
+
workInProgressRootExitStatus = 1, logUncaughtError(
|
|
610
476
|
root2,
|
|
611
477
|
createCapturedValueAtFiber(thrownValue, root2.current)
|
|
612
|
-
);
|
|
613
|
-
workInProgress = null;
|
|
478
|
+
), workInProgress = null;
|
|
614
479
|
return;
|
|
615
480
|
}
|
|
616
|
-
|
|
617
|
-
if (isHydrating || 1 === suspendedReason) root2 = true;
|
|
618
|
-
else if (workInProgressRootIsPrerendering || 0 !== (workInProgressRootRenderLanes & 536870912))
|
|
619
|
-
root2 = false;
|
|
620
|
-
else if (workInProgressRootDidSkipSuspendedSiblings = root2 = true, 2 === suspendedReason || 9 === suspendedReason || 3 === suspendedReason || 6 === suspendedReason)
|
|
621
|
-
suspendedReason = suspenseHandlerStackCursor.current, null !== suspendedReason && 13 === suspendedReason.tag && (suspendedReason.flags |= 16384);
|
|
622
|
-
unwindUnitOfWork(unitOfWork, root2);
|
|
623
|
-
} else completeUnitOfWork(unitOfWork);
|
|
481
|
+
unitOfWork.flags & 32768 ? (isHydrating || suspendedReason === 1 ? root2 = !0 : workInProgressRootIsPrerendering || (workInProgressRootRenderLanes & 536870912) !== 0 ? root2 = !1 : (workInProgressRootDidSkipSuspendedSiblings = root2 = !0, (suspendedReason === 2 || suspendedReason === 9 || suspendedReason === 3 || suspendedReason === 6) && (suspendedReason = suspenseHandlerStackCursor.current, suspendedReason !== null && suspendedReason.tag === 13 && (suspendedReason.flags |= 16384))), unwindUnitOfWork(unitOfWork, root2)) : completeUnitOfWork(unitOfWork);
|
|
624
482
|
}
|
|
625
483
|
function completeUnitOfWork(unitOfWork) {
|
|
626
484
|
var completedWork = unitOfWork;
|
|
627
485
|
do {
|
|
628
|
-
if (
|
|
486
|
+
if ((completedWork.flags & 32768) !== 0) {
|
|
629
487
|
unwindUnitOfWork(
|
|
630
488
|
completedWork,
|
|
631
489
|
workInProgressRootDidSkipSuspendedSiblings
|
|
@@ -638,53 +496,42 @@
|
|
|
638
496
|
completedWork,
|
|
639
497
|
entangledRenderLanes
|
|
640
498
|
);
|
|
641
|
-
if (
|
|
499
|
+
if (next !== null) {
|
|
642
500
|
workInProgress = next;
|
|
643
501
|
return;
|
|
644
502
|
}
|
|
645
|
-
completedWork = completedWork.sibling
|
|
646
|
-
if (null !== completedWork) {
|
|
503
|
+
if (completedWork = completedWork.sibling, completedWork !== null) {
|
|
647
504
|
workInProgress = completedWork;
|
|
648
505
|
return;
|
|
649
506
|
}
|
|
650
507
|
workInProgress = completedWork = unitOfWork;
|
|
651
|
-
} while (
|
|
652
|
-
|
|
508
|
+
} while (completedWork !== null);
|
|
509
|
+
workInProgressRootExitStatus === 0 && (workInProgressRootExitStatus = 5);
|
|
653
510
|
}
|
|
654
511
|
function unwindUnitOfWork(unitOfWork, skipSiblings) {
|
|
655
512
|
do {
|
|
656
513
|
var next = unwindWork(unitOfWork.alternate, unitOfWork);
|
|
657
|
-
if (
|
|
658
|
-
next.flags &= 32767;
|
|
659
|
-
workInProgress = next;
|
|
514
|
+
if (next !== null) {
|
|
515
|
+
next.flags &= 32767, workInProgress = next;
|
|
660
516
|
return;
|
|
661
517
|
}
|
|
662
|
-
next = unitOfWork.return
|
|
663
|
-
null !== next && (next.flags |= 32768, next.subtreeFlags = 0, next.deletions = null);
|
|
664
|
-
if (!skipSiblings && (unitOfWork = unitOfWork.sibling, null !== unitOfWork)) {
|
|
518
|
+
if (next = unitOfWork.return, next !== null && (next.flags |= 32768, next.subtreeFlags = 0, next.deletions = null), !skipSiblings && (unitOfWork = unitOfWork.sibling, unitOfWork !== null)) {
|
|
665
519
|
workInProgress = unitOfWork;
|
|
666
520
|
return;
|
|
667
521
|
}
|
|
668
522
|
workInProgress = unitOfWork = next;
|
|
669
|
-
} while (
|
|
670
|
-
workInProgressRootExitStatus = 6;
|
|
671
|
-
workInProgress = null;
|
|
523
|
+
} while (unitOfWork !== null);
|
|
524
|
+
workInProgressRootExitStatus = 6, workInProgress = null;
|
|
672
525
|
}
|
|
673
526
|
function completeRoot(root2, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes, didSkipSuspendedSiblings, exitStatus, suspendedState) {
|
|
674
527
|
root2.cancelPendingCommit = null;
|
|
675
528
|
do
|
|
676
529
|
flushPendingEffects();
|
|
677
|
-
while (
|
|
678
|
-
if (
|
|
679
|
-
if (
|
|
530
|
+
while (pendingEffectsStatus !== 0);
|
|
531
|
+
if ((executionContext & 6) !== 0) throw Error(formatProdErrorMessage(327));
|
|
532
|
+
if (finishedWork !== null) {
|
|
680
533
|
if (finishedWork === root2.current) throw Error(formatProdErrorMessage(177));
|
|
681
|
-
root2 === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0)
|
|
682
|
-
pendingFinishedWork = finishedWork;
|
|
683
|
-
pendingEffectsRoot = root2;
|
|
684
|
-
pendingEffectsLanes = lanes;
|
|
685
|
-
pendingPassiveTransitions = transitions;
|
|
686
|
-
pendingRecoverableErrors = recoverableErrors;
|
|
687
|
-
commitRoot(
|
|
534
|
+
root2 === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0), pendingFinishedWork = finishedWork, pendingEffectsRoot = root2, pendingEffectsLanes = lanes, pendingPassiveTransitions = transitions, pendingRecoverableErrors = recoverableErrors, commitRoot(
|
|
688
535
|
root2,
|
|
689
536
|
finishedWork,
|
|
690
537
|
lanes,
|
|
@@ -697,39 +544,24 @@
|
|
|
697
544
|
}
|
|
698
545
|
function commitRoot(root2, finishedWork, lanes, spawnedLane, updatedLanes, suspendedRetryLanes, suspendedState) {
|
|
699
546
|
var remainingLanes = finishedWork.lanes | finishedWork.childLanes;
|
|
700
|
-
pendingEffectsRemainingLanes = remainingLanes
|
|
701
|
-
remainingLanes |= concurrentlyUpdatedLanes;
|
|
702
|
-
markRootFinished(
|
|
547
|
+
if (pendingEffectsRemainingLanes = remainingLanes, remainingLanes |= concurrentlyUpdatedLanes, markRootFinished(
|
|
703
548
|
root2,
|
|
704
549
|
lanes,
|
|
705
550
|
remainingLanes,
|
|
706
551
|
spawnedLane,
|
|
707
552
|
updatedLanes,
|
|
708
553
|
suspendedRetryLanes
|
|
709
|
-
)
|
|
710
|
-
|
|
711
|
-
(
|
|
712
|
-
|
|
713
|
-
flushPassiveEffects();
|
|
714
|
-
return null;
|
|
715
|
-
})) : (root2.callbackNode = null, root2.callbackPriority = 0);
|
|
716
|
-
shouldStartViewTransition = false;
|
|
717
|
-
spawnedLane = 0 !== (finishedWork.flags & 13878);
|
|
718
|
-
if (0 !== (finishedWork.subtreeFlags & 13878) || spawnedLane) {
|
|
719
|
-
spawnedLane = ReactSharedInternals.T;
|
|
720
|
-
ReactSharedInternals.T = null;
|
|
721
|
-
updatedLanes = ReactDOMSharedInternals.p;
|
|
722
|
-
ReactDOMSharedInternals.p = 2;
|
|
723
|
-
suspendedRetryLanes = executionContext;
|
|
724
|
-
executionContext |= 4;
|
|
554
|
+
), pendingViewTransitionEvents = null, (lanes & 335544064) === lanes ? (pendingTransitionTypes = claimQueuedTransitionTypes(root2), spawnedLane = 10262) : (pendingTransitionTypes = null, spawnedLane = 10256), (finishedWork.subtreeFlags & spawnedLane) !== 0 || (finishedWork.flags & spawnedLane) !== 0 ? (root2.callbackNode = null, root2.callbackPriority = 0, scheduleCallback$1(NormalPriority$1, function() {
|
|
555
|
+
return flushPassiveEffects(), null;
|
|
556
|
+
})) : (root2.callbackNode = null, root2.callbackPriority = 0), shouldStartViewTransition = !1, spawnedLane = (finishedWork.flags & 13878) !== 0, (finishedWork.subtreeFlags & 13878) !== 0 || spawnedLane) {
|
|
557
|
+
spawnedLane = ReactSharedInternals.T, ReactSharedInternals.T = null, updatedLanes = ReactDOMSharedInternals.p, ReactDOMSharedInternals.p = 2, suspendedRetryLanes = executionContext, executionContext |= 4;
|
|
725
558
|
try {
|
|
726
559
|
commitBeforeMutationEffects(root2, finishedWork, lanes);
|
|
727
560
|
} finally {
|
|
728
561
|
executionContext = suspendedRetryLanes, ReactDOMSharedInternals.p = updatedLanes, ReactSharedInternals.T = spawnedLane;
|
|
729
562
|
}
|
|
730
563
|
}
|
|
731
|
-
pendingEffectsStatus = 1
|
|
732
|
-
shouldStartViewTransition ? pendingViewTransition = startViewTransition(
|
|
564
|
+
pendingEffectsStatus = 1, shouldStartViewTransition ? pendingViewTransition = startViewTransition(
|
|
733
565
|
suspendedState,
|
|
734
566
|
root2.containerInfo,
|
|
735
567
|
pendingTransitionTypes,
|
|
@@ -744,38 +576,34 @@
|
|
|
744
576
|
) : (flushMutationEffects(), flushLayoutEffects(), flushSpawnedWork());
|
|
745
577
|
}
|
|
746
578
|
function reportViewTransitionError(error) {
|
|
747
|
-
if (
|
|
579
|
+
if (pendingEffectsStatus !== 0) {
|
|
748
580
|
var onRecoverableError = pendingEffectsRoot.onRecoverableError;
|
|
749
581
|
onRecoverableError(error, { componentStack: null });
|
|
750
582
|
}
|
|
751
583
|
}
|
|
752
584
|
function flushAfterMutationEffects() {
|
|
753
|
-
|
|
585
|
+
pendingEffectsStatus === 3 && (pendingEffectsStatus = 0, commitAfterMutationEffectsOnFiber(pendingFinishedWork, pendingEffectsRoot), pendingEffectsStatus = 4);
|
|
754
586
|
}
|
|
755
587
|
function flushMutationEffects() {
|
|
756
|
-
if (
|
|
588
|
+
if (pendingEffectsStatus === 1) {
|
|
757
589
|
pendingEffectsStatus = 0;
|
|
758
|
-
var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, rootMutationHasEffect =
|
|
759
|
-
if (
|
|
760
|
-
rootMutationHasEffect = ReactSharedInternals.T;
|
|
761
|
-
ReactSharedInternals.T = null;
|
|
590
|
+
var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, rootMutationHasEffect = (finishedWork.flags & 13878) !== 0;
|
|
591
|
+
if ((finishedWork.subtreeFlags & 13878) !== 0 || rootMutationHasEffect) {
|
|
592
|
+
rootMutationHasEffect = ReactSharedInternals.T, ReactSharedInternals.T = null;
|
|
762
593
|
var previousPriority = ReactDOMSharedInternals.p;
|
|
763
594
|
ReactDOMSharedInternals.p = 2;
|
|
764
595
|
var prevExecutionContext = executionContext;
|
|
765
596
|
executionContext |= 4;
|
|
766
597
|
try {
|
|
767
|
-
inUpdateViewTransition = rootViewTransitionAffected =
|
|
768
|
-
commitMutationEffectsOnFiber(finishedWork, root2, lanes);
|
|
769
|
-
lanes = selectionInformation;
|
|
598
|
+
inUpdateViewTransition = rootViewTransitionAffected = !1, commitMutationEffectsOnFiber(finishedWork, root2, lanes), lanes = selectionInformation;
|
|
770
599
|
var curFocusedElem = getActiveElementDeep(root2.containerInfo), priorFocusedElem = lanes.focusedElem, priorSelectionRange = lanes.selectionRange;
|
|
771
600
|
if (curFocusedElem !== priorFocusedElem && priorFocusedElem && priorFocusedElem.ownerDocument && containsNode(
|
|
772
601
|
priorFocusedElem.ownerDocument.documentElement,
|
|
773
602
|
priorFocusedElem
|
|
774
603
|
)) {
|
|
775
|
-
if (
|
|
604
|
+
if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
|
|
776
605
|
var start2 = priorSelectionRange.start, end = priorSelectionRange.end;
|
|
777
|
-
|
|
778
|
-
if ("selectionStart" in priorFocusedElem)
|
|
606
|
+
if (end === void 0 && (end = start2), "selectionStart" in priorFocusedElem)
|
|
779
607
|
priorFocusedElem.selectionStart = start2, priorFocusedElem.selectionEnd = Math.min(
|
|
780
608
|
end,
|
|
781
609
|
priorFocusedElem.value.length
|
|
@@ -783,7 +611,7 @@
|
|
|
783
611
|
else {
|
|
784
612
|
var doc = priorFocusedElem.ownerDocument || document, win = doc && doc.defaultView || window;
|
|
785
613
|
if (win.getSelection) {
|
|
786
|
-
var selection = win.getSelection(), length = priorFocusedElem.textContent.length, start$jscomp$0 = Math.min(priorSelectionRange.start, length), end$jscomp$0 = void 0
|
|
614
|
+
var selection = win.getSelection(), length = priorFocusedElem.textContent.length, start$jscomp$0 = Math.min(priorSelectionRange.start, length), end$jscomp$0 = priorSelectionRange.end === void 0 ? start$jscomp$0 : Math.min(priorSelectionRange.end, length);
|
|
787
615
|
!selection.extend && start$jscomp$0 > end$jscomp$0 && (curFocusedElem = end$jscomp$0, end$jscomp$0 = start$jscomp$0, start$jscomp$0 = curFocusedElem);
|
|
788
616
|
var startMarker = getNodeForCharacterOffset(
|
|
789
617
|
priorFocusedElem,
|
|
@@ -792,46 +620,38 @@
|
|
|
792
620
|
priorFocusedElem,
|
|
793
621
|
end$jscomp$0
|
|
794
622
|
);
|
|
795
|
-
if (startMarker && endMarker && (
|
|
623
|
+
if (startMarker && endMarker && (selection.rangeCount !== 1 || selection.anchorNode !== startMarker.node || selection.anchorOffset !== startMarker.offset || selection.focusNode !== endMarker.node || selection.focusOffset !== endMarker.offset)) {
|
|
796
624
|
var range = doc.createRange();
|
|
797
|
-
range.setStart(startMarker.node, startMarker.offset);
|
|
798
|
-
selection.removeAllRanges();
|
|
799
|
-
start$jscomp$0 > end$jscomp$0 ? (selection.addRange(range), selection.extend(endMarker.node, endMarker.offset)) : (range.setEnd(endMarker.node, endMarker.offset), selection.addRange(range));
|
|
625
|
+
range.setStart(startMarker.node, startMarker.offset), selection.removeAllRanges(), start$jscomp$0 > end$jscomp$0 ? (selection.addRange(range), selection.extend(endMarker.node, endMarker.offset)) : (range.setEnd(endMarker.node, endMarker.offset), selection.addRange(range));
|
|
800
626
|
}
|
|
801
627
|
}
|
|
802
628
|
}
|
|
803
629
|
}
|
|
804
|
-
doc = [];
|
|
805
|
-
|
|
806
|
-
1 === selection.nodeType && doc.push({
|
|
630
|
+
for (doc = [], selection = priorFocusedElem; selection = selection.parentNode; )
|
|
631
|
+
selection.nodeType === 1 && doc.push({
|
|
807
632
|
element: selection,
|
|
808
633
|
left: selection.scrollLeft,
|
|
809
634
|
top: selection.scrollTop
|
|
810
635
|
});
|
|
811
|
-
|
|
812
|
-
for (priorFocusedElem = 0; priorFocusedElem < doc.length; priorFocusedElem++) {
|
|
636
|
+
for (typeof priorFocusedElem.focus == "function" && priorFocusedElem.focus(), priorFocusedElem = 0; priorFocusedElem < doc.length; priorFocusedElem++) {
|
|
813
637
|
var info = doc[priorFocusedElem];
|
|
814
|
-
info.element.scrollLeft = info.left;
|
|
815
|
-
info.element.scrollTop = info.top;
|
|
638
|
+
info.element.scrollLeft = info.left, info.element.scrollTop = info.top;
|
|
816
639
|
}
|
|
817
640
|
}
|
|
818
|
-
_enabled = !!eventsEnabled;
|
|
819
|
-
selectionInformation = eventsEnabled = null;
|
|
641
|
+
_enabled = !!eventsEnabled, selectionInformation = eventsEnabled = null;
|
|
820
642
|
} finally {
|
|
821
643
|
executionContext = prevExecutionContext, ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = rootMutationHasEffect;
|
|
822
644
|
}
|
|
823
645
|
}
|
|
824
|
-
root2.current = finishedWork;
|
|
825
|
-
pendingEffectsStatus = 2;
|
|
646
|
+
root2.current = finishedWork, pendingEffectsStatus = 2;
|
|
826
647
|
}
|
|
827
648
|
}
|
|
828
649
|
function flushLayoutEffects() {
|
|
829
|
-
if (
|
|
650
|
+
if (pendingEffectsStatus === 2) {
|
|
830
651
|
pendingEffectsStatus = 0;
|
|
831
|
-
var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, rootHasLayoutEffect =
|
|
832
|
-
if (
|
|
833
|
-
rootHasLayoutEffect = ReactSharedInternals.T;
|
|
834
|
-
ReactSharedInternals.T = null;
|
|
652
|
+
var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, rootHasLayoutEffect = (finishedWork.flags & 8772) !== 0;
|
|
653
|
+
if ((finishedWork.subtreeFlags & 8772) !== 0 || rootHasLayoutEffect) {
|
|
654
|
+
rootHasLayoutEffect = ReactSharedInternals.T, ReactSharedInternals.T = null;
|
|
835
655
|
var previousPriority = ReactDOMSharedInternals.p;
|
|
836
656
|
ReactDOMSharedInternals.p = 2;
|
|
837
657
|
var prevExecutionContext = executionContext;
|
|
@@ -846,32 +666,23 @@
|
|
|
846
666
|
}
|
|
847
667
|
}
|
|
848
668
|
function flushSpawnedWork() {
|
|
849
|
-
if (
|
|
669
|
+
if (pendingEffectsStatus === 4 || pendingEffectsStatus === 3) {
|
|
850
670
|
pendingEffectsStatus = 0;
|
|
851
671
|
var committedViewTransition = pendingViewTransition;
|
|
852
|
-
pendingViewTransition = null;
|
|
853
|
-
requestPaint();
|
|
672
|
+
pendingViewTransition = null, requestPaint();
|
|
854
673
|
var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, recoverableErrors = pendingRecoverableErrors, passiveSubtreeMask = (lanes & 335544064) === lanes ? 10262 : 10256;
|
|
855
|
-
|
|
856
|
-
passiveSubtreeMask = root2.pendingLanes;
|
|
857
|
-
0 === passiveSubtreeMask && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
858
|
-
lanesToEventPriority(lanes);
|
|
859
|
-
finishedWork = finishedWork.stateNode;
|
|
860
|
-
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
|
674
|
+
if ((finishedWork.subtreeFlags & passiveSubtreeMask) !== 0 || (finishedWork.flags & passiveSubtreeMask) !== 0 ? pendingEffectsStatus = 5 : (pendingEffectsStatus = 0, pendingFinishedWork = pendingEffectsRoot = null, releaseRootPooledCache(root2, root2.pendingLanes)), passiveSubtreeMask = root2.pendingLanes, passiveSubtreeMask === 0 && (legacyErrorBoundariesThatAlreadyFailed = null), lanesToEventPriority(lanes), finishedWork = finishedWork.stateNode, injectedHook && typeof injectedHook.onCommitFiberRoot == "function")
|
|
861
675
|
try {
|
|
862
676
|
injectedHook.onCommitFiberRoot(
|
|
863
677
|
rendererID,
|
|
864
678
|
finishedWork,
|
|
865
679
|
void 0,
|
|
866
|
-
|
|
680
|
+
(finishedWork.current.flags & 128) === 128
|
|
867
681
|
);
|
|
868
|
-
} catch
|
|
682
|
+
} catch {
|
|
869
683
|
}
|
|
870
|
-
if (
|
|
871
|
-
finishedWork = ReactSharedInternals.T;
|
|
872
|
-
passiveSubtreeMask = ReactDOMSharedInternals.p;
|
|
873
|
-
ReactDOMSharedInternals.p = 2;
|
|
874
|
-
ReactSharedInternals.T = null;
|
|
684
|
+
if (recoverableErrors !== null) {
|
|
685
|
+
finishedWork = ReactSharedInternals.T, passiveSubtreeMask = ReactDOMSharedInternals.p, ReactDOMSharedInternals.p = 2, ReactSharedInternals.T = null;
|
|
875
686
|
try {
|
|
876
687
|
for (var onRecoverableError = root2.onRecoverableError, i = 0; i < recoverableErrors.length; i++) {
|
|
877
688
|
var recoverableError = recoverableErrors[i];
|
|
@@ -883,92 +694,64 @@
|
|
|
883
694
|
ReactSharedInternals.T = finishedWork, ReactDOMSharedInternals.p = passiveSubtreeMask;
|
|
884
695
|
}
|
|
885
696
|
}
|
|
886
|
-
recoverableErrors = pendingViewTransitionEvents
|
|
887
|
-
onRecoverableError = pendingTransitionTypes;
|
|
888
|
-
pendingTransitionTypes = null;
|
|
889
|
-
if (null !== recoverableErrors && (pendingViewTransitionEvents = null, null === onRecoverableError && (onRecoverableError = []), null !== committedViewTransition))
|
|
697
|
+
if (recoverableErrors = pendingViewTransitionEvents, onRecoverableError = pendingTransitionTypes, pendingTransitionTypes = null, recoverableErrors !== null && (pendingViewTransitionEvents = null, onRecoverableError === null && (onRecoverableError = []), committedViewTransition !== null))
|
|
890
698
|
for (recoverableError = 0; recoverableError < recoverableErrors.length; recoverableError++)
|
|
891
699
|
finishedWork = (0, recoverableErrors[recoverableError])(
|
|
892
700
|
onRecoverableError
|
|
893
|
-
), void 0
|
|
894
|
-
|
|
895
|
-
ensureRootIsScheduled(root2);
|
|
896
|
-
passiveSubtreeMask = root2.pendingLanes;
|
|
897
|
-
0 !== (lanes & 261930) && 0 !== (passiveSubtreeMask & 42) ? root2 === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root2) : (nestedUpdateCount = 0, rootWithNestedUpdates = null);
|
|
898
|
-
flushSyncWorkAcrossRoots_impl(0, false);
|
|
701
|
+
), finishedWork !== void 0 && committedViewTransition.finished.finally(finishedWork);
|
|
702
|
+
(pendingEffectsLanes & 3) !== 0 && flushPendingEffects(), ensureRootIsScheduled(root2), passiveSubtreeMask = root2.pendingLanes, (lanes & 261930) !== 0 && (passiveSubtreeMask & 42) !== 0 ? root2 === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root2) : (nestedUpdateCount = 0, rootWithNestedUpdates = null), flushSyncWorkAcrossRoots_impl(0, !1);
|
|
899
703
|
}
|
|
900
704
|
}
|
|
901
705
|
function releaseRootPooledCache(root2, remainingLanes) {
|
|
902
|
-
|
|
706
|
+
(root2.pooledCacheLanes &= remainingLanes) === 0 && (remainingLanes = root2.pooledCache, remainingLanes != null && (root2.pooledCache = null, releaseCache(remainingLanes)));
|
|
903
707
|
}
|
|
904
708
|
function flushPendingEffects() {
|
|
905
|
-
|
|
906
|
-
flushMutationEffects();
|
|
907
|
-
flushLayoutEffects();
|
|
908
|
-
flushSpawnedWork();
|
|
909
|
-
return flushPassiveEffects();
|
|
709
|
+
return pendingViewTransition !== null && (pendingViewTransition.skipTransition(), pendingViewTransition = null), flushMutationEffects(), flushLayoutEffects(), flushSpawnedWork(), flushPassiveEffects();
|
|
910
710
|
}
|
|
911
711
|
function flushPassiveEffects() {
|
|
912
|
-
if (
|
|
712
|
+
if (pendingEffectsStatus !== 5) return !1;
|
|
913
713
|
var root2 = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes;
|
|
914
714
|
pendingEffectsRemainingLanes = 0;
|
|
915
715
|
var renderPriority = lanesToEventPriority(pendingEffectsLanes), prevTransition = ReactSharedInternals.T, previousPriority = ReactDOMSharedInternals.p;
|
|
916
716
|
try {
|
|
917
|
-
ReactDOMSharedInternals.p = 32 > renderPriority ? 32 : renderPriority;
|
|
918
|
-
ReactSharedInternals.T = null;
|
|
919
|
-
renderPriority = pendingPassiveTransitions;
|
|
920
|
-
pendingPassiveTransitions = null;
|
|
717
|
+
ReactDOMSharedInternals.p = 32 > renderPriority ? 32 : renderPriority, ReactSharedInternals.T = null, renderPriority = pendingPassiveTransitions, pendingPassiveTransitions = null;
|
|
921
718
|
var root$jscomp$0 = pendingEffectsRoot, lanes = pendingEffectsLanes;
|
|
922
|
-
pendingEffectsStatus = 0;
|
|
923
|
-
pendingFinishedWork = pendingEffectsRoot = null;
|
|
924
|
-
pendingEffectsLanes = 0;
|
|
925
|
-
if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(331));
|
|
719
|
+
if (pendingEffectsStatus = 0, pendingFinishedWork = pendingEffectsRoot = null, pendingEffectsLanes = 0, (executionContext & 6) !== 0) throw Error(formatProdErrorMessage(331));
|
|
926
720
|
var prevExecutionContext = executionContext;
|
|
927
|
-
executionContext |= 4
|
|
928
|
-
commitPassiveUnmountOnFiber(root$jscomp$0.current);
|
|
929
|
-
commitPassiveMountOnFiber(
|
|
721
|
+
if (executionContext |= 4, commitPassiveUnmountOnFiber(root$jscomp$0.current), commitPassiveMountOnFiber(
|
|
930
722
|
root$jscomp$0,
|
|
931
723
|
root$jscomp$0.current,
|
|
932
724
|
lanes,
|
|
933
725
|
renderPriority
|
|
934
|
-
)
|
|
935
|
-
executionContext = prevExecutionContext;
|
|
936
|
-
flushSyncWorkAcrossRoots_impl(0, false);
|
|
937
|
-
if (injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot)
|
|
726
|
+
), executionContext = prevExecutionContext, flushSyncWorkAcrossRoots_impl(0, !1), injectedHook && typeof injectedHook.onPostCommitFiberRoot == "function")
|
|
938
727
|
try {
|
|
939
728
|
injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0);
|
|
940
|
-
} catch
|
|
729
|
+
} catch {
|
|
941
730
|
}
|
|
942
|
-
return
|
|
731
|
+
return !0;
|
|
943
732
|
} finally {
|
|
944
733
|
ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = prevTransition, releaseRootPooledCache(root2, remainingLanes);
|
|
945
734
|
}
|
|
946
735
|
}
|
|
947
736
|
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
|
948
|
-
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
|
949
|
-
sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2);
|
|
950
|
-
rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2);
|
|
951
|
-
null !== rootFiber && (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber));
|
|
737
|
+
sourceFiber = createCapturedValueAtFiber(error, sourceFiber), sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2), rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2), rootFiber !== null && (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber));
|
|
952
738
|
}
|
|
953
739
|
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
|
954
|
-
if (
|
|
740
|
+
if (sourceFiber.tag === 3)
|
|
955
741
|
captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
|
|
956
742
|
else
|
|
957
|
-
for (;
|
|
958
|
-
if (
|
|
743
|
+
for (; nearestMountedAncestor !== null; ) {
|
|
744
|
+
if (nearestMountedAncestor.tag === 3) {
|
|
959
745
|
captureCommitPhaseErrorOnRoot(
|
|
960
746
|
nearestMountedAncestor,
|
|
961
747
|
sourceFiber,
|
|
962
748
|
error
|
|
963
749
|
);
|
|
964
750
|
break;
|
|
965
|
-
} else if (
|
|
751
|
+
} else if (nearestMountedAncestor.tag === 1) {
|
|
966
752
|
var instance = nearestMountedAncestor.stateNode;
|
|
967
|
-
if (
|
|
968
|
-
sourceFiber = createCapturedValueAtFiber(error, sourceFiber)
|
|
969
|
-
error = createClassErrorUpdate(2);
|
|
970
|
-
instance = enqueueUpdate(nearestMountedAncestor, error, 2);
|
|
971
|
-
null !== instance && (initializeClassErrorUpdate(
|
|
753
|
+
if (typeof nearestMountedAncestor.type.getDerivedStateFromError == "function" || typeof instance.componentDidCatch == "function" && (legacyErrorBoundariesThatAlreadyFailed === null || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) {
|
|
754
|
+
sourceFiber = createCapturedValueAtFiber(error, sourceFiber), error = createClassErrorUpdate(2), instance = enqueueUpdate(nearestMountedAncestor, error, 2), instance !== null && (initializeClassErrorUpdate(
|
|
972
755
|
error,
|
|
973
756
|
instance,
|
|
974
757
|
nearestMountedAncestor,
|
|
@@ -982,40 +765,32 @@
|
|
|
982
765
|
}
|
|
983
766
|
function attachPingListener(root2, wakeable, lanes) {
|
|
984
767
|
var pingCache = root2.pingCache;
|
|
985
|
-
if (
|
|
768
|
+
if (pingCache === null) {
|
|
986
769
|
pingCache = root2.pingCache = new PossiblyWeakMap();
|
|
987
770
|
var threadIDs = /* @__PURE__ */ new Set();
|
|
988
771
|
pingCache.set(wakeable, threadIDs);
|
|
989
772
|
} else
|
|
990
|
-
threadIDs = pingCache.get(wakeable), void 0
|
|
991
|
-
threadIDs.has(lanes) || (workInProgressRootDidAttachPingListener =
|
|
773
|
+
threadIDs = pingCache.get(wakeable), threadIDs === void 0 && (threadIDs = /* @__PURE__ */ new Set(), pingCache.set(wakeable, threadIDs));
|
|
774
|
+
threadIDs.has(lanes) || (workInProgressRootDidAttachPingListener = !0, threadIDs.add(lanes), root2 = pingSuspendedRoot.bind(null, root2, wakeable, lanes), wakeable.then(root2, root2));
|
|
992
775
|
}
|
|
993
776
|
function pingSuspendedRoot(root2, wakeable, pingedLanes) {
|
|
994
777
|
var pingCache = root2.pingCache;
|
|
995
|
-
|
|
996
|
-
root2.pingedLanes |= root2.suspendedLanes & pingedLanes;
|
|
997
|
-
root2.warmLanes &= ~pingedLanes;
|
|
998
|
-
workInProgressRoot === root2 && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes && 300 > now() - globalMostRecentFallbackTime ? 0 === (executionContext & 2) ? prepareFreshStack(root2, 0) : workInProgressRootPingedLanes |= pingedLanes : workInProgressRootPingedLanes |= pingedLanes, workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes && (workInProgressSuspendedRetryLanes = 0));
|
|
999
|
-
ensureRootIsScheduled(root2);
|
|
778
|
+
pingCache !== null && pingCache.delete(wakeable), root2.pingedLanes |= root2.suspendedLanes & pingedLanes, root2.warmLanes &= ~pingedLanes, workInProgressRoot === root2 && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && ((workInProgressRootExitStatus === 4 || workInProgressRootExitStatus === 3 && (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes && 300 > now() - globalMostRecentFallbackTime) && (executionContext & 2) === 0 ? prepareFreshStack(root2, 0) : workInProgressRootPingedLanes |= pingedLanes, workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes && (workInProgressSuspendedRetryLanes = 0)), ensureRootIsScheduled(root2);
|
|
1000
779
|
}
|
|
1001
780
|
function retryTimedOutBoundary(boundaryFiber, retryLane) {
|
|
1002
|
-
|
|
1003
|
-
boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);
|
|
1004
|
-
null !== boundaryFiber && (markRootUpdated$1(boundaryFiber, retryLane), ensureRootIsScheduled(boundaryFiber));
|
|
781
|
+
retryLane === 0 && (retryLane = claimNextRetryLane()), boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane), boundaryFiber !== null && (markRootUpdated$1(boundaryFiber, retryLane), ensureRootIsScheduled(boundaryFiber));
|
|
1005
782
|
}
|
|
1006
783
|
function retryDehydratedSuspenseBoundary(boundaryFiber) {
|
|
1007
784
|
var suspenseState = boundaryFiber.memoizedState, retryLane = 0;
|
|
1008
|
-
|
|
1009
|
-
retryTimedOutBoundary(boundaryFiber, retryLane);
|
|
785
|
+
suspenseState !== null && (retryLane = suspenseState.retryLane), retryTimedOutBoundary(boundaryFiber, retryLane);
|
|
1010
786
|
}
|
|
1011
787
|
function resolveRetryWakeable(boundaryFiber, wakeable) {
|
|
1012
788
|
var retryLane = 0;
|
|
1013
789
|
switch (boundaryFiber.tag) {
|
|
1014
790
|
case 31:
|
|
1015
791
|
case 13:
|
|
1016
|
-
var retryCache = boundaryFiber.stateNode;
|
|
1017
|
-
|
|
1018
|
-
null !== suspenseState && (retryLane = suspenseState.retryLane);
|
|
792
|
+
var retryCache = boundaryFiber.stateNode, suspenseState = boundaryFiber.memoizedState;
|
|
793
|
+
suspenseState !== null && (retryLane = suspenseState.retryLane);
|
|
1019
794
|
break;
|
|
1020
795
|
case 19:
|
|
1021
796
|
retryCache = boundaryFiber.stateNode;
|
|
@@ -1026,94 +801,68 @@
|
|
|
1026
801
|
default:
|
|
1027
802
|
throw Error(formatProdErrorMessage(314));
|
|
1028
803
|
}
|
|
1029
|
-
|
|
1030
|
-
retryTimedOutBoundary(boundaryFiber, retryLane);
|
|
804
|
+
retryCache !== null && retryCache.delete(wakeable), retryTimedOutBoundary(boundaryFiber, retryLane);
|
|
1031
805
|
}
|
|
1032
806
|
function scheduleCallback$1(priorityLevel, callback) {
|
|
1033
807
|
return scheduleCallback$3(priorityLevel, callback);
|
|
1034
808
|
}
|
|
1035
|
-
var firstScheduledRoot = null;
|
|
1036
|
-
var lastScheduledRoot = null;
|
|
1037
|
-
var didScheduleMicrotask = false;
|
|
1038
|
-
var mightHavePendingSyncWork = false;
|
|
1039
|
-
var isFlushingWork = false;
|
|
1040
|
-
var currentEventTransitionLane = 0;
|
|
809
|
+
var firstScheduledRoot = null, lastScheduledRoot = null, didScheduleMicrotask = !1, mightHavePendingSyncWork = !1, isFlushingWork = !1, currentEventTransitionLane = 0;
|
|
1041
810
|
function ensureRootIsScheduled(root2) {
|
|
1042
|
-
root2 !== lastScheduledRoot &&
|
|
1043
|
-
mightHavePendingSyncWork = true;
|
|
1044
|
-
didScheduleMicrotask || (didScheduleMicrotask = true, scheduleImmediateRootScheduleTask());
|
|
811
|
+
root2 !== lastScheduledRoot && root2.next === null && (lastScheduledRoot === null ? firstScheduledRoot = lastScheduledRoot = root2 : lastScheduledRoot = lastScheduledRoot.next = root2), mightHavePendingSyncWork = !0, didScheduleMicrotask || (didScheduleMicrotask = !0, scheduleImmediateRootScheduleTask());
|
|
1045
812
|
}
|
|
1046
813
|
function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
|
|
1047
814
|
if (!isFlushingWork && mightHavePendingSyncWork) {
|
|
1048
|
-
isFlushingWork =
|
|
1049
|
-
do
|
|
1050
|
-
var didPerformSomeWork =
|
|
1051
|
-
for (var root$190 = firstScheduledRoot; null !== root$190; ) {
|
|
815
|
+
isFlushingWork = !0;
|
|
816
|
+
do
|
|
817
|
+
for (var didPerformSomeWork = !1, root$190 = firstScheduledRoot; root$190 !== null; ) {
|
|
1052
818
|
if (!onlyLegacy)
|
|
1053
|
-
if (
|
|
819
|
+
if (syncTransitionLanes !== 0) {
|
|
1054
820
|
var pendingLanes = root$190.pendingLanes;
|
|
1055
|
-
if (
|
|
821
|
+
if (pendingLanes === 0) var JSCompiler_inline_result = 0;
|
|
1056
822
|
else {
|
|
1057
823
|
var suspendedLanes = root$190.suspendedLanes, pingedLanes = root$190.pingedLanes;
|
|
1058
|
-
JSCompiler_inline_result = (1 << 31 - clz32(42 | syncTransitionLanes) + 1) - 1;
|
|
1059
|
-
JSCompiler_inline_result &= pendingLanes & ~(suspendedLanes & ~pingedLanes);
|
|
1060
|
-
JSCompiler_inline_result = JSCompiler_inline_result & 201326741 ? JSCompiler_inline_result & 201326741 | 1 : JSCompiler_inline_result ? JSCompiler_inline_result | 2 : 0;
|
|
824
|
+
JSCompiler_inline_result = (1 << 31 - clz32(42 | syncTransitionLanes) + 1) - 1, JSCompiler_inline_result &= pendingLanes & ~(suspendedLanes & ~pingedLanes), JSCompiler_inline_result = JSCompiler_inline_result & 201326741 ? JSCompiler_inline_result & 201326741 | 1 : JSCompiler_inline_result ? JSCompiler_inline_result | 2 : 0;
|
|
1061
825
|
}
|
|
1062
|
-
|
|
826
|
+
JSCompiler_inline_result !== 0 && (didPerformSomeWork = !0, performSyncWorkOnRoot(root$190, JSCompiler_inline_result));
|
|
1063
827
|
} else
|
|
1064
828
|
JSCompiler_inline_result = workInProgressRootRenderLanes, JSCompiler_inline_result = getNextLanes(
|
|
1065
829
|
root$190,
|
|
1066
830
|
root$190 === workInProgressRoot ? JSCompiler_inline_result : 0,
|
|
1067
|
-
|
|
1068
|
-
),
|
|
831
|
+
root$190.cancelPendingCommit !== null || root$190.timeoutHandle !== -1
|
|
832
|
+
), (JSCompiler_inline_result & 3) === 0 || checkIfRootIsPrerendering(root$190, JSCompiler_inline_result) || (didPerformSomeWork = !0, performSyncWorkOnRoot(root$190, JSCompiler_inline_result));
|
|
1069
833
|
root$190 = root$190.next;
|
|
1070
834
|
}
|
|
1071
|
-
|
|
1072
|
-
isFlushingWork =
|
|
835
|
+
while (didPerformSomeWork);
|
|
836
|
+
isFlushingWork = !1;
|
|
1073
837
|
}
|
|
1074
838
|
}
|
|
1075
839
|
function processRootScheduleInImmediateTask() {
|
|
1076
840
|
processRootScheduleInMicrotask();
|
|
1077
841
|
}
|
|
1078
842
|
function processRootScheduleInMicrotask() {
|
|
1079
|
-
mightHavePendingSyncWork = didScheduleMicrotask =
|
|
843
|
+
mightHavePendingSyncWork = didScheduleMicrotask = !1;
|
|
1080
844
|
var syncTransitionLanes = 0;
|
|
1081
|
-
|
|
1082
|
-
for (var currentTime = now(), prev = null, root2 = firstScheduledRoot;
|
|
845
|
+
currentEventTransitionLane !== 0 && shouldAttemptEagerTransition() && (syncTransitionLanes = currentEventTransitionLane);
|
|
846
|
+
for (var currentTime = now(), prev = null, root2 = firstScheduledRoot; root2 !== null; ) {
|
|
1083
847
|
var next = root2.next, nextLanes = scheduleTaskForRootDuringMicrotask(root2, currentTime);
|
|
1084
|
-
|
|
1085
|
-
root2.next = null, null === prev ? firstScheduledRoot = next : prev.next = next, null === next && (lastScheduledRoot = prev);
|
|
1086
|
-
else if (prev = root2, 0 !== syncTransitionLanes || 0 !== (nextLanes & 3))
|
|
1087
|
-
mightHavePendingSyncWork = true;
|
|
1088
|
-
root2 = next;
|
|
848
|
+
nextLanes === 0 ? (root2.next = null, prev === null ? firstScheduledRoot = next : prev.next = next, next === null && (lastScheduledRoot = prev)) : (prev = root2, (syncTransitionLanes !== 0 || (nextLanes & 3) !== 0) && (mightHavePendingSyncWork = !0)), root2 = next;
|
|
1089
849
|
}
|
|
1090
|
-
|
|
1091
|
-
0 !== currentEventTransitionLane && (currentEventTransitionLane = 0);
|
|
850
|
+
pendingEffectsStatus !== 0 && pendingEffectsStatus !== 5 || flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1), currentEventTransitionLane !== 0 && (currentEventTransitionLane = 0);
|
|
1092
851
|
}
|
|
1093
852
|
function scheduleTaskForRootDuringMicrotask(root2, currentTime) {
|
|
1094
853
|
for (var suspendedLanes = root2.suspendedLanes, pingedLanes = root2.pingedLanes, expirationTimes = root2.expirationTimes, lanes = root2.pendingLanes & -62914561; 0 < lanes; ) {
|
|
1095
854
|
var index$5 = 31 - clz32(lanes), lane = 1 << index$5, expirationTime = expirationTimes[index$5];
|
|
1096
|
-
|
|
1097
|
-
if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
|
|
1098
|
-
expirationTimes[index$5] = computeExpirationTime(lane, currentTime);
|
|
1099
|
-
} else expirationTime <= currentTime && (root2.expiredLanes |= lane);
|
|
1100
|
-
lanes &= ~lane;
|
|
855
|
+
expirationTime === -1 ? ((lane & suspendedLanes) === 0 || (lane & pingedLanes) !== 0) && (expirationTimes[index$5] = computeExpirationTime(lane, currentTime)) : expirationTime <= currentTime && (root2.expiredLanes |= lane), lanes &= ~lane;
|
|
1101
856
|
}
|
|
1102
|
-
currentTime = workInProgressRoot
|
|
1103
|
-
suspendedLanes = workInProgressRootRenderLanes;
|
|
1104
|
-
suspendedLanes = getNextLanes(
|
|
857
|
+
if (currentTime = workInProgressRoot, suspendedLanes = workInProgressRootRenderLanes, suspendedLanes = getNextLanes(
|
|
1105
858
|
root2,
|
|
1106
859
|
root2 === currentTime ? suspendedLanes : 0,
|
|
1107
|
-
|
|
1108
|
-
)
|
|
1109
|
-
|
|
1110
|
-
if (
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
currentTime = suspendedLanes & -suspendedLanes;
|
|
1114
|
-
if (currentTime === root2.callbackPriority) return currentTime;
|
|
1115
|
-
null !== pingedLanes && cancelCallback$1(pingedLanes);
|
|
1116
|
-
switch (lanesToEventPriority(suspendedLanes)) {
|
|
860
|
+
root2.cancelPendingCommit !== null || root2.timeoutHandle !== -1
|
|
861
|
+
), pingedLanes = root2.callbackNode, suspendedLanes === 0 || root2 === currentTime && (workInProgressSuspendedReason === 2 || workInProgressSuspendedReason === 9) || root2.cancelPendingCommit !== null)
|
|
862
|
+
return pingedLanes !== null && pingedLanes !== null && cancelCallback$1(pingedLanes), root2.callbackNode = null, root2.callbackPriority = 0;
|
|
863
|
+
if ((suspendedLanes & 3) === 0 || checkIfRootIsPrerendering(root2, suspendedLanes)) {
|
|
864
|
+
if (currentTime = suspendedLanes & -suspendedLanes, currentTime === root2.callbackPriority) return currentTime;
|
|
865
|
+
switch (pingedLanes !== null && cancelCallback$1(pingedLanes), lanesToEventPriority(suspendedLanes)) {
|
|
1117
866
|
case 2:
|
|
1118
867
|
case 8:
|
|
1119
868
|
suspendedLanes = UserBlockingPriority;
|
|
@@ -1127,51 +876,39 @@
|
|
|
1127
876
|
default:
|
|
1128
877
|
suspendedLanes = NormalPriority$1;
|
|
1129
878
|
}
|
|
1130
|
-
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root2);
|
|
1131
|
-
suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);
|
|
1132
|
-
root2.callbackPriority = currentTime;
|
|
1133
|
-
root2.callbackNode = suspendedLanes;
|
|
1134
|
-
return currentTime;
|
|
879
|
+
return pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root2), suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes), root2.callbackPriority = currentTime, root2.callbackNode = suspendedLanes, currentTime;
|
|
1135
880
|
}
|
|
1136
|
-
|
|
1137
|
-
root2.callbackPriority = 2;
|
|
1138
|
-
root2.callbackNode = null;
|
|
1139
|
-
return 2;
|
|
881
|
+
return pingedLanes !== null && pingedLanes !== null && cancelCallback$1(pingedLanes), root2.callbackPriority = 2, root2.callbackNode = null, 2;
|
|
1140
882
|
}
|
|
1141
883
|
function performWorkOnRootViaSchedulerTask(root2, didTimeout) {
|
|
1142
|
-
if (
|
|
884
|
+
if (pendingEffectsStatus !== 0 && pendingEffectsStatus !== 5)
|
|
1143
885
|
return root2.callbackNode = null, root2.callbackPriority = 0, null;
|
|
1144
886
|
var originalCallbackNode = root2.callbackNode;
|
|
1145
887
|
if (flushPendingEffects() && root2.callbackNode !== originalCallbackNode)
|
|
1146
888
|
return null;
|
|
1147
889
|
var workInProgressRootRenderLanes$jscomp$0 = workInProgressRootRenderLanes;
|
|
1148
|
-
workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
|
|
890
|
+
return workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
|
|
1149
891
|
root2,
|
|
1150
892
|
root2 === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0,
|
|
1151
|
-
|
|
1152
|
-
);
|
|
1153
|
-
if (0 === workInProgressRootRenderLanes$jscomp$0) return null;
|
|
1154
|
-
performWorkOnRoot(root2, workInProgressRootRenderLanes$jscomp$0, didTimeout);
|
|
1155
|
-
scheduleTaskForRootDuringMicrotask(root2, now());
|
|
1156
|
-
return null != root2.callbackNode && root2.callbackNode === originalCallbackNode ? performWorkOnRootViaSchedulerTask.bind(null, root2) : null;
|
|
893
|
+
root2.cancelPendingCommit !== null || root2.timeoutHandle !== -1
|
|
894
|
+
), workInProgressRootRenderLanes$jscomp$0 === 0 ? null : (performWorkOnRoot(root2, workInProgressRootRenderLanes$jscomp$0, didTimeout), scheduleTaskForRootDuringMicrotask(root2, now()), root2.callbackNode != null && root2.callbackNode === originalCallbackNode ? performWorkOnRootViaSchedulerTask.bind(null, root2) : null);
|
|
1157
895
|
}
|
|
1158
896
|
function performSyncWorkOnRoot(root2, lanes) {
|
|
1159
897
|
if (flushPendingEffects()) return null;
|
|
1160
|
-
performWorkOnRoot(root2, lanes,
|
|
898
|
+
performWorkOnRoot(root2, lanes, !0);
|
|
1161
899
|
}
|
|
1162
900
|
function scheduleImmediateRootScheduleTask() {
|
|
1163
901
|
scheduleMicrotask(function() {
|
|
1164
|
-
|
|
902
|
+
(executionContext & 6) !== 0 ? scheduleCallback$3(
|
|
1165
903
|
ImmediatePriority,
|
|
1166
904
|
processRootScheduleInImmediateTask
|
|
1167
905
|
) : processRootScheduleInMicrotask();
|
|
1168
906
|
});
|
|
1169
907
|
}
|
|
1170
908
|
function requestTransitionLane() {
|
|
1171
|
-
if (
|
|
909
|
+
if (currentEventTransitionLane === 0) {
|
|
1172
910
|
var actionScopeLane = currentEntangledLane;
|
|
1173
|
-
|
|
1174
|
-
currentEventTransitionLane = actionScopeLane;
|
|
911
|
+
actionScopeLane === 0 && (actionScopeLane = nextTransitionUpdateLane, nextTransitionUpdateLane <<= 1, (nextTransitionUpdateLane & 261888) === 0 && (nextTransitionUpdateLane = 256)), currentEventTransitionLane = actionScopeLane;
|
|
1175
912
|
}
|
|
1176
913
|
return currentEventTransitionLane;
|
|
1177
914
|
}
|