openplanr 3.1.0 → 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 +56 -0
- package/README.md +1 -1
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.js +24 -1
- package/dist/cli/commands/doctor.js.map +1 -1
- 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/global-install-service.d.ts +24 -0
- package/dist/services/global-install-service.d.ts.map +1 -0
- package/dist/services/global-install-service.js +68 -0
- package/dist/services/global-install-service.js.map +1 -0
- 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/services/upgrade-service.d.ts +15 -1
- package/dist/services/upgrade-service.d.ts.map +1 -1
- package/dist/services/upgrade-service.js +102 -13
- package/dist/services/upgrade-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,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
function coerceFormActionProp(actionProp) {
|
|
3
|
-
return
|
|
3
|
+
return actionProp == null || typeof actionProp == "symbol" || typeof actionProp == "boolean" ? null : typeof actionProp == "function" ? actionProp : sanitizeURL(actionProp);
|
|
4
4
|
}
|
|
5
5
|
function extractEvents$1(dispatchQueue, domEventName, maybeTargetInst, nativeEvent, nativeEventTarget) {
|
|
6
|
-
if ("submit"
|
|
6
|
+
if (domEventName === "submit" && maybeTargetInst && maybeTargetInst.stateNode === nativeEventTarget) {
|
|
7
7
|
var action = coerceFormActionProp(
|
|
8
8
|
(nativeEventTarget[internalPropsKey] || null).action
|
|
9
9
|
), submitter = nativeEvent.submitter;
|
|
10
|
-
submitter && (domEventName = (domEventName = submitter[internalPropsKey] || null) ? coerceFormActionProp(domEventName.formAction) : submitter.getAttribute("formAction"),
|
|
10
|
+
submitter && (domEventName = (domEventName = submitter[internalPropsKey] || null) ? coerceFormActionProp(domEventName.formAction) : submitter.getAttribute("formAction"), domEventName !== null && (action = domEventName, submitter = null));
|
|
11
11
|
var event = new SyntheticEvent(
|
|
12
12
|
"action",
|
|
13
13
|
"action",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
instance: null,
|
|
23
23
|
listener: function() {
|
|
24
24
|
if (nativeEvent.defaultPrevented) {
|
|
25
|
-
if (
|
|
25
|
+
if (currentEventTransitionLane !== 0) {
|
|
26
26
|
var formData = new FormData(nativeEventTarget, submitter);
|
|
27
27
|
startHostTransition(
|
|
28
28
|
maybeTargetInst,
|
|
29
29
|
{
|
|
30
|
-
pending:
|
|
30
|
+
pending: !0,
|
|
31
31
|
data: formData,
|
|
32
32
|
method: nativeEventTarget.method,
|
|
33
33
|
action
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
39
|
} else
|
|
40
|
-
"function"
|
|
40
|
+
typeof action == "function" && (event.preventDefault(), formData = new FormData(nativeEventTarget, submitter), startHostTransition(
|
|
41
41
|
maybeTargetInst,
|
|
42
42
|
{
|
|
43
|
-
pending:
|
|
43
|
+
pending: !0,
|
|
44
44
|
data: formData,
|
|
45
45
|
method: nativeEventTarget.method,
|
|
46
46
|
action
|
|
@@ -55,17 +55,12 @@
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
for (i$jscomp$inline_1667 = 0; i$jscomp$inline_1667 < simpleEventPluginEvents.length; i$jscomp$inline_1667++)
|
|
59
|
-
eventName$jscomp$inline_1668 = simpleEventPluginEvents[i$jscomp$inline_1667], domEventName$jscomp$inline_1669 = eventName$jscomp$inline_1668.toLowerCase(), capitalizedEvent$jscomp$inline_1670 = eventName$jscomp$inline_1668[0].toUpperCase() + eventName$jscomp$inline_1668.slice(1)
|
|
60
|
-
registerSimpleEvent(
|
|
58
|
+
for (i$jscomp$inline_1667 = 0; i$jscomp$inline_1667 < simpleEventPluginEvents.length; i$jscomp$inline_1667++)
|
|
59
|
+
eventName$jscomp$inline_1668 = simpleEventPluginEvents[i$jscomp$inline_1667], domEventName$jscomp$inline_1669 = eventName$jscomp$inline_1668.toLowerCase(), capitalizedEvent$jscomp$inline_1670 = eventName$jscomp$inline_1668[0].toUpperCase() + eventName$jscomp$inline_1668.slice(1), registerSimpleEvent(
|
|
61
60
|
domEventName$jscomp$inline_1669,
|
|
62
61
|
"on" + capitalizedEvent$jscomp$inline_1670
|
|
63
62
|
);
|
|
64
|
-
|
|
65
|
-
var eventName$jscomp$inline_1668;
|
|
66
|
-
var domEventName$jscomp$inline_1669;
|
|
67
|
-
var capitalizedEvent$jscomp$inline_1670;
|
|
68
|
-
var i$jscomp$inline_1667;
|
|
63
|
+
var eventName$jscomp$inline_1668, domEventName$jscomp$inline_1669, capitalizedEvent$jscomp$inline_1670, i$jscomp$inline_1667;
|
|
69
64
|
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
|
|
70
65
|
registerSimpleEvent(ANIMATION_ITERATION, "onAnimationIteration");
|
|
71
66
|
registerSimpleEvent(ANIMATION_START, "onAnimationStart");
|
|
@@ -110,12 +105,11 @@
|
|
|
110
105
|
);
|
|
111
106
|
var mediaEventTypes = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(
|
|
112
107
|
" "
|
|
113
|
-
)
|
|
114
|
-
var nonDelegatedEvents = new Set(
|
|
108
|
+
), nonDelegatedEvents = new Set(
|
|
115
109
|
"beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mediaEventTypes)
|
|
116
110
|
);
|
|
117
111
|
function processDispatchQueue(dispatchQueue, eventSystemFlags) {
|
|
118
|
-
eventSystemFlags =
|
|
112
|
+
eventSystemFlags = (eventSystemFlags & 4) !== 0;
|
|
119
113
|
for (var i = 0; i < dispatchQueue.length; i++) {
|
|
120
114
|
var _dispatchQueue$i = dispatchQueue[i], event = _dispatchQueue$i.event;
|
|
121
115
|
_dispatchQueue$i = _dispatchQueue$i.listeners;
|
|
@@ -124,50 +118,40 @@
|
|
|
124
118
|
if (eventSystemFlags)
|
|
125
119
|
for (var i$jscomp$0 = _dispatchQueue$i.length - 1; 0 <= i$jscomp$0; i$jscomp$0--) {
|
|
126
120
|
var _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0], instance = _dispatchListeners$i.instance, currentTarget = _dispatchListeners$i.currentTarget;
|
|
127
|
-
_dispatchListeners$i = _dispatchListeners$i.listener
|
|
128
|
-
if (instance !== previousInstance && event.isPropagationStopped())
|
|
121
|
+
if (_dispatchListeners$i = _dispatchListeners$i.listener, instance !== previousInstance && event.isPropagationStopped())
|
|
129
122
|
break a;
|
|
130
|
-
previousInstance = _dispatchListeners$i;
|
|
131
|
-
event.currentTarget = currentTarget;
|
|
123
|
+
previousInstance = _dispatchListeners$i, event.currentTarget = currentTarget;
|
|
132
124
|
try {
|
|
133
125
|
previousInstance(event);
|
|
134
126
|
} catch (error) {
|
|
135
127
|
reportGlobalError(error);
|
|
136
128
|
}
|
|
137
|
-
event.currentTarget = null;
|
|
138
|
-
previousInstance = instance;
|
|
129
|
+
event.currentTarget = null, previousInstance = instance;
|
|
139
130
|
}
|
|
140
131
|
else
|
|
141
132
|
for (i$jscomp$0 = 0; i$jscomp$0 < _dispatchQueue$i.length; i$jscomp$0++) {
|
|
142
|
-
_dispatchListeners$i = _dispatchQueue$i[i$jscomp$0]
|
|
143
|
-
instance = _dispatchListeners$i.instance;
|
|
144
|
-
currentTarget = _dispatchListeners$i.currentTarget;
|
|
145
|
-
_dispatchListeners$i = _dispatchListeners$i.listener;
|
|
146
|
-
if (instance !== previousInstance && event.isPropagationStopped())
|
|
133
|
+
if (_dispatchListeners$i = _dispatchQueue$i[i$jscomp$0], instance = _dispatchListeners$i.instance, currentTarget = _dispatchListeners$i.currentTarget, _dispatchListeners$i = _dispatchListeners$i.listener, instance !== previousInstance && event.isPropagationStopped())
|
|
147
134
|
break a;
|
|
148
|
-
previousInstance = _dispatchListeners$i;
|
|
149
|
-
event.currentTarget = currentTarget;
|
|
135
|
+
previousInstance = _dispatchListeners$i, event.currentTarget = currentTarget;
|
|
150
136
|
try {
|
|
151
137
|
previousInstance(event);
|
|
152
138
|
} catch (error) {
|
|
153
139
|
reportGlobalError(error);
|
|
154
140
|
}
|
|
155
|
-
event.currentTarget = null;
|
|
156
|
-
previousInstance = instance;
|
|
141
|
+
event.currentTarget = null, previousInstance = instance;
|
|
157
142
|
}
|
|
158
143
|
}
|
|
159
144
|
}
|
|
160
145
|
}
|
|
161
146
|
function listenToNonDelegatedEvent(domEventName, targetElement) {
|
|
162
147
|
var JSCompiler_inline_result = targetElement[internalEventHandlersKey];
|
|
163
|
-
void 0
|
|
148
|
+
JSCompiler_inline_result === void 0 && (JSCompiler_inline_result = targetElement[internalEventHandlersKey] = /* @__PURE__ */ new Set());
|
|
164
149
|
var listenerSetKey = domEventName + "__bubble";
|
|
165
|
-
JSCompiler_inline_result.has(listenerSetKey) || (addTrappedEventListener(targetElement, domEventName, 2,
|
|
150
|
+
JSCompiler_inline_result.has(listenerSetKey) || (addTrappedEventListener(targetElement, domEventName, 2, !1), JSCompiler_inline_result.add(listenerSetKey));
|
|
166
151
|
}
|
|
167
152
|
function listenToNativeEvent(domEventName, isCapturePhaseListener, target) {
|
|
168
153
|
var eventSystemFlags = 0;
|
|
169
|
-
isCapturePhaseListener && (eventSystemFlags |= 4)
|
|
170
|
-
addTrappedEventListener(
|
|
154
|
+
isCapturePhaseListener && (eventSystemFlags |= 4), addTrappedEventListener(
|
|
171
155
|
target,
|
|
172
156
|
domEventName,
|
|
173
157
|
eventSystemFlags,
|
|
@@ -177,12 +161,11 @@
|
|
|
177
161
|
var listeningMarker = "_reactListening" + Math.random().toString(36).slice(2);
|
|
178
162
|
function listenToAllSupportedEvents(rootContainerElement) {
|
|
179
163
|
if (!rootContainerElement[listeningMarker]) {
|
|
180
|
-
rootContainerElement[listeningMarker] =
|
|
181
|
-
|
|
182
|
-
"selectionchange" !== domEventName && (nonDelegatedEvents.has(domEventName) || listenToNativeEvent(domEventName, false, rootContainerElement), listenToNativeEvent(domEventName, true, rootContainerElement));
|
|
164
|
+
rootContainerElement[listeningMarker] = !0, allNativeEvents.forEach(function(domEventName) {
|
|
165
|
+
domEventName !== "selectionchange" && (nonDelegatedEvents.has(domEventName) || listenToNativeEvent(domEventName, !1, rootContainerElement), listenToNativeEvent(domEventName, !0, rootContainerElement));
|
|
183
166
|
});
|
|
184
|
-
var ownerDocument =
|
|
185
|
-
|
|
167
|
+
var ownerDocument = rootContainerElement.nodeType === 9 ? rootContainerElement : rootContainerElement.ownerDocument;
|
|
168
|
+
ownerDocument === null || ownerDocument[listeningMarker] || (ownerDocument[listeningMarker] = !0, listenToNativeEvent("selectionchange", !1, ownerDocument));
|
|
186
169
|
}
|
|
187
170
|
}
|
|
188
171
|
function addTrappedEventListener(targetContainer, domEventName, eventSystemFlags, isCapturePhaseListener) {
|
|
@@ -201,37 +184,32 @@
|
|
|
201
184
|
domEventName,
|
|
202
185
|
eventSystemFlags,
|
|
203
186
|
targetContainer
|
|
204
|
-
)
|
|
205
|
-
|
|
206
|
-
!passiveBrowserEventsSupported || "touchstart" !== domEventName && "touchmove" !== domEventName && "wheel" !== domEventName || (listenerWrapper = true);
|
|
207
|
-
isCapturePhaseListener ? void 0 !== listenerWrapper ? targetContainer.addEventListener(domEventName, eventSystemFlags, {
|
|
208
|
-
capture: true,
|
|
187
|
+
), listenerWrapper = void 0, !passiveBrowserEventsSupported || domEventName !== "touchstart" && domEventName !== "touchmove" && domEventName !== "wheel" || (listenerWrapper = !0), isCapturePhaseListener ? listenerWrapper !== void 0 ? targetContainer.addEventListener(domEventName, eventSystemFlags, {
|
|
188
|
+
capture: !0,
|
|
209
189
|
passive: listenerWrapper
|
|
210
|
-
}) : targetContainer.addEventListener(domEventName, eventSystemFlags,
|
|
190
|
+
}) : targetContainer.addEventListener(domEventName, eventSystemFlags, !0) : listenerWrapper !== void 0 ? targetContainer.addEventListener(domEventName, eventSystemFlags, {
|
|
211
191
|
passive: listenerWrapper
|
|
212
|
-
}) : targetContainer.addEventListener(domEventName, eventSystemFlags,
|
|
192
|
+
}) : targetContainer.addEventListener(domEventName, eventSystemFlags, !1);
|
|
213
193
|
}
|
|
214
194
|
function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst$jscomp$0, targetContainer) {
|
|
215
195
|
var ancestorInst = targetInst$jscomp$0;
|
|
216
|
-
if (
|
|
196
|
+
if ((eventSystemFlags & 1) === 0 && (eventSystemFlags & 2) === 0 && targetInst$jscomp$0 !== null)
|
|
217
197
|
a: for (; ; ) {
|
|
218
|
-
if (
|
|
198
|
+
if (targetInst$jscomp$0 === null) return;
|
|
219
199
|
var nodeTag = targetInst$jscomp$0.tag;
|
|
220
|
-
if (
|
|
200
|
+
if (nodeTag === 3 || nodeTag === 4) {
|
|
221
201
|
var container = targetInst$jscomp$0.stateNode.containerInfo;
|
|
222
202
|
if (container === targetContainer) break;
|
|
223
|
-
if (
|
|
224
|
-
for (nodeTag = targetInst$jscomp$0.return;
|
|
203
|
+
if (nodeTag === 4)
|
|
204
|
+
for (nodeTag = targetInst$jscomp$0.return; nodeTag !== null; ) {
|
|
225
205
|
var grandTag = nodeTag.tag;
|
|
226
|
-
if ((
|
|
206
|
+
if ((grandTag === 3 || grandTag === 4) && nodeTag.stateNode.containerInfo === targetContainer)
|
|
227
207
|
return;
|
|
228
208
|
nodeTag = nodeTag.return;
|
|
229
209
|
}
|
|
230
|
-
for (;
|
|
231
|
-
nodeTag = getClosestInstanceFromNode(container);
|
|
232
|
-
if (
|
|
233
|
-
grandTag = nodeTag.tag;
|
|
234
|
-
if (5 === grandTag || 6 === grandTag || 26 === grandTag || 27 === grandTag) {
|
|
210
|
+
for (; container !== null; ) {
|
|
211
|
+
if (nodeTag = getClosestInstanceFromNode(container), nodeTag === null) return;
|
|
212
|
+
if (grandTag = nodeTag.tag, grandTag === 5 || grandTag === 6 || grandTag === 26 || grandTag === 27) {
|
|
235
213
|
targetInst$jscomp$0 = ancestorInst = nodeTag;
|
|
236
214
|
continue a;
|
|
237
215
|
}
|
|
@@ -244,29 +222,27 @@
|
|
|
244
222
|
var targetInst = ancestorInst, nativeEventTarget = getEventTarget(nativeEvent), dispatchQueue = [];
|
|
245
223
|
a: {
|
|
246
224
|
var reactName = topLevelEventsToReactNames.get(domEventName);
|
|
247
|
-
if (void 0
|
|
225
|
+
if (reactName !== void 0) {
|
|
248
226
|
var SyntheticEventCtor = SyntheticEvent, reactEventType = domEventName;
|
|
249
227
|
switch (domEventName) {
|
|
250
228
|
case "keypress":
|
|
251
|
-
if (
|
|
229
|
+
if (getEventCharCode(nativeEvent) === 0) break a;
|
|
252
230
|
case "keydown":
|
|
253
231
|
case "keyup":
|
|
254
232
|
SyntheticEventCtor = SyntheticKeyboardEvent;
|
|
255
233
|
break;
|
|
256
234
|
case "focusin":
|
|
257
|
-
reactEventType = "focus";
|
|
258
|
-
SyntheticEventCtor = SyntheticFocusEvent;
|
|
235
|
+
reactEventType = "focus", SyntheticEventCtor = SyntheticFocusEvent;
|
|
259
236
|
break;
|
|
260
237
|
case "focusout":
|
|
261
|
-
reactEventType = "blur";
|
|
262
|
-
SyntheticEventCtor = SyntheticFocusEvent;
|
|
238
|
+
reactEventType = "blur", SyntheticEventCtor = SyntheticFocusEvent;
|
|
263
239
|
break;
|
|
264
240
|
case "beforeblur":
|
|
265
241
|
case "afterblur":
|
|
266
242
|
SyntheticEventCtor = SyntheticFocusEvent;
|
|
267
243
|
break;
|
|
268
244
|
case "click":
|
|
269
|
-
if (
|
|
245
|
+
if (nativeEvent.button === 2) break a;
|
|
270
246
|
case "auxclick":
|
|
271
247
|
case "dblclick":
|
|
272
248
|
case "mousedown":
|
|
@@ -330,16 +306,13 @@
|
|
|
330
306
|
case "beforetoggle":
|
|
331
307
|
SyntheticEventCtor = SyntheticToggleEvent;
|
|
332
308
|
}
|
|
333
|
-
var inCapturePhase =
|
|
309
|
+
var inCapturePhase = (eventSystemFlags & 4) !== 0, accumulateTargetOnly = !inCapturePhase && (domEventName === "scroll" || domEventName === "scrollend"), reactEventName = inCapturePhase ? reactName !== null ? reactName + "Capture" : null : reactName;
|
|
334
310
|
inCapturePhase = [];
|
|
335
|
-
for (var instance = targetInst, lastHostComponent;
|
|
311
|
+
for (var instance = targetInst, lastHostComponent; instance !== null; ) {
|
|
336
312
|
var _instance = instance;
|
|
337
|
-
lastHostComponent = _instance.stateNode
|
|
338
|
-
_instance = _instance.tag;
|
|
339
|
-
5 !== _instance && 26 !== _instance && 27 !== _instance || null === lastHostComponent || null === reactEventName || (_instance = getListener(instance, reactEventName), null != _instance && inCapturePhase.push(
|
|
313
|
+
if (lastHostComponent = _instance.stateNode, _instance = _instance.tag, _instance !== 5 && _instance !== 26 && _instance !== 27 || lastHostComponent === null || reactEventName === null || (_instance = getListener(instance, reactEventName), _instance != null && inCapturePhase.push(
|
|
340
314
|
createDispatchListener(instance, _instance, lastHostComponent)
|
|
341
|
-
));
|
|
342
|
-
if (accumulateTargetOnly) break;
|
|
315
|
+
)), accumulateTargetOnly) break;
|
|
343
316
|
instance = instance.return;
|
|
344
317
|
}
|
|
345
318
|
0 < inCapturePhase.length && (reactName = new SyntheticEventCtor(
|
|
@@ -351,71 +324,42 @@
|
|
|
351
324
|
), dispatchQueue.push({ event: reactName, listeners: inCapturePhase }));
|
|
352
325
|
}
|
|
353
326
|
}
|
|
354
|
-
if (
|
|
327
|
+
if ((eventSystemFlags & 7) === 0) {
|
|
355
328
|
a: {
|
|
356
|
-
SyntheticEventCtor = "mouseover"
|
|
357
|
-
reactName = "mouseout" === domEventName || "pointerout" === domEventName;
|
|
358
|
-
if (SyntheticEventCtor && nativeEvent !== currentReplayingEvent && (reactEventType = nativeEvent.relatedTarget || nativeEvent.fromElement) && (getClosestInstanceFromNode(reactEventType) || reactEventType[internalContainerInstanceKey]))
|
|
329
|
+
if (SyntheticEventCtor = domEventName === "mouseover" || domEventName === "pointerover", reactName = domEventName === "mouseout" || domEventName === "pointerout", SyntheticEventCtor && nativeEvent !== currentReplayingEvent && (reactEventType = nativeEvent.relatedTarget || nativeEvent.fromElement) && (getClosestInstanceFromNode(reactEventType) || reactEventType[internalContainerInstanceKey]))
|
|
359
330
|
break a;
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
nativeEvent,
|
|
390
|
-
nativeEventTarget
|
|
391
|
-
), inCapturePhase.target = lastHostComponent, inCapturePhase.relatedTarget = accumulateTargetOnly, _instance = inCapturePhase);
|
|
392
|
-
accumulateTargetOnly = _instance;
|
|
393
|
-
inCapturePhase = reactName && SyntheticEventCtor ? getLowestCommonAncestor(
|
|
394
|
-
reactName,
|
|
395
|
-
SyntheticEventCtor,
|
|
396
|
-
getParent
|
|
397
|
-
) : null;
|
|
398
|
-
null !== reactName && accumulateEnterLeaveListenersForEvent(
|
|
399
|
-
dispatchQueue,
|
|
400
|
-
reactEventType,
|
|
401
|
-
reactName,
|
|
402
|
-
inCapturePhase,
|
|
403
|
-
false
|
|
404
|
-
);
|
|
405
|
-
null !== SyntheticEventCtor && null !== accumulateTargetOnly && accumulateEnterLeaveListenersForEvent(
|
|
406
|
-
dispatchQueue,
|
|
407
|
-
accumulateTargetOnly,
|
|
408
|
-
SyntheticEventCtor,
|
|
409
|
-
inCapturePhase,
|
|
410
|
-
true
|
|
411
|
-
);
|
|
412
|
-
}
|
|
413
|
-
}
|
|
331
|
+
(reactName || SyntheticEventCtor) && (reactEventType = nativeEventTarget.window === nativeEventTarget ? nativeEventTarget : (SyntheticEventCtor = nativeEventTarget.ownerDocument) ? SyntheticEventCtor.defaultView || SyntheticEventCtor.parentWindow : window, reactName ? (SyntheticEventCtor = nativeEvent.relatedTarget || nativeEvent.toElement, reactName = targetInst, SyntheticEventCtor = SyntheticEventCtor ? getClosestInstanceFromNode(SyntheticEventCtor) : null, SyntheticEventCtor !== null && (accumulateTargetOnly = getNearestMountedFiber(SyntheticEventCtor), inCapturePhase = SyntheticEventCtor.tag, SyntheticEventCtor !== accumulateTargetOnly || inCapturePhase !== 5 && inCapturePhase !== 27 && inCapturePhase !== 6) && (SyntheticEventCtor = null)) : (reactName = null, SyntheticEventCtor = targetInst), reactName !== SyntheticEventCtor && (inCapturePhase = SyntheticMouseEvent, _instance = "onMouseLeave", reactEventName = "onMouseEnter", instance = "mouse", (domEventName === "pointerout" || domEventName === "pointerover") && (inCapturePhase = SyntheticPointerEvent, _instance = "onPointerLeave", reactEventName = "onPointerEnter", instance = "pointer"), accumulateTargetOnly = reactName == null ? reactEventType : getNodeFromInstance(reactName), lastHostComponent = SyntheticEventCtor == null ? reactEventType : getNodeFromInstance(SyntheticEventCtor), reactEventType = new inCapturePhase(
|
|
332
|
+
_instance,
|
|
333
|
+
instance + "leave",
|
|
334
|
+
reactName,
|
|
335
|
+
nativeEvent,
|
|
336
|
+
nativeEventTarget
|
|
337
|
+
), reactEventType.target = accumulateTargetOnly, reactEventType.relatedTarget = lastHostComponent, _instance = null, getClosestInstanceFromNode(nativeEventTarget) === targetInst && (inCapturePhase = new inCapturePhase(
|
|
338
|
+
reactEventName,
|
|
339
|
+
instance + "enter",
|
|
340
|
+
SyntheticEventCtor,
|
|
341
|
+
nativeEvent,
|
|
342
|
+
nativeEventTarget
|
|
343
|
+
), inCapturePhase.target = lastHostComponent, inCapturePhase.relatedTarget = accumulateTargetOnly, _instance = inCapturePhase), accumulateTargetOnly = _instance, inCapturePhase = reactName && SyntheticEventCtor ? getLowestCommonAncestor(
|
|
344
|
+
reactName,
|
|
345
|
+
SyntheticEventCtor,
|
|
346
|
+
getParent
|
|
347
|
+
) : null, reactName !== null && accumulateEnterLeaveListenersForEvent(
|
|
348
|
+
dispatchQueue,
|
|
349
|
+
reactEventType,
|
|
350
|
+
reactName,
|
|
351
|
+
inCapturePhase,
|
|
352
|
+
!1
|
|
353
|
+
), SyntheticEventCtor !== null && accumulateTargetOnly !== null && accumulateEnterLeaveListenersForEvent(
|
|
354
|
+
dispatchQueue,
|
|
355
|
+
accumulateTargetOnly,
|
|
356
|
+
SyntheticEventCtor,
|
|
357
|
+
inCapturePhase,
|
|
358
|
+
!0
|
|
359
|
+
)));
|
|
414
360
|
}
|
|
415
361
|
a: {
|
|
416
|
-
reactName = targetInst ? getNodeFromInstance(targetInst) : window
|
|
417
|
-
SyntheticEventCtor = reactName.nodeName && reactName.nodeName.toLowerCase();
|
|
418
|
-
if ("select" === SyntheticEventCtor || "input" === SyntheticEventCtor && "file" === reactName.type)
|
|
362
|
+
if (reactName = targetInst ? getNodeFromInstance(targetInst) : window, SyntheticEventCtor = reactName.nodeName && reactName.nodeName.toLowerCase(), SyntheticEventCtor === "select" || SyntheticEventCtor === "input" && reactName.type === "file")
|
|
419
363
|
var getTargetInstFunc = getTargetInstForChangeEvent;
|
|
420
364
|
else if (isTextInputElement(reactName))
|
|
421
365
|
if (isInputEventSupported)
|
|
@@ -425,7 +369,7 @@
|
|
|
425
369
|
var handleEventFunc = handleEventsForInputEventPolyfill;
|
|
426
370
|
}
|
|
427
371
|
else
|
|
428
|
-
SyntheticEventCtor = reactName.nodeName, !SyntheticEventCtor ||
|
|
372
|
+
SyntheticEventCtor = reactName.nodeName, !SyntheticEventCtor || SyntheticEventCtor.toLowerCase() !== "input" || reactName.type !== "checkbox" && reactName.type !== "radio" ? targetInst && isCustomElement(targetInst.elementType) && (getTargetInstFunc = getTargetInstForChangeEvent) : getTargetInstFunc = getTargetInstForClickEvent;
|
|
429
373
|
if (getTargetInstFunc && (getTargetInstFunc = getTargetInstFunc(domEventName, targetInst))) {
|
|
430
374
|
createAndAccumulateChangeEvent(
|
|
431
375
|
dispatchQueue,
|
|
@@ -437,23 +381,20 @@
|
|
|
437
381
|
}
|
|
438
382
|
handleEventFunc && handleEventFunc(domEventName, reactName, targetInst);
|
|
439
383
|
}
|
|
440
|
-
handleEventFunc = targetInst ? getNodeFromInstance(targetInst) : window
|
|
441
|
-
switch (domEventName) {
|
|
384
|
+
switch (handleEventFunc = targetInst ? getNodeFromInstance(targetInst) : window, domEventName) {
|
|
442
385
|
case "focusin":
|
|
443
|
-
|
|
444
|
-
activeElement = handleEventFunc, activeElementInst = targetInst, lastSelection = null;
|
|
386
|
+
(isTextInputElement(handleEventFunc) || handleEventFunc.contentEditable === "true") && (activeElement = handleEventFunc, activeElementInst = targetInst, lastSelection = null);
|
|
445
387
|
break;
|
|
446
388
|
case "focusout":
|
|
447
389
|
lastSelection = activeElementInst = activeElement = null;
|
|
448
390
|
break;
|
|
449
391
|
case "mousedown":
|
|
450
|
-
mouseDown =
|
|
392
|
+
mouseDown = !0;
|
|
451
393
|
break;
|
|
452
394
|
case "contextmenu":
|
|
453
395
|
case "mouseup":
|
|
454
396
|
case "dragend":
|
|
455
|
-
mouseDown =
|
|
456
|
-
constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
|
|
397
|
+
mouseDown = !1, constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
|
|
457
398
|
break;
|
|
458
399
|
case "selectionchange":
|
|
459
400
|
if (skipSelectionChangeEvent) break;
|
|
@@ -478,26 +419,23 @@
|
|
|
478
419
|
eventType = void 0;
|
|
479
420
|
}
|
|
480
421
|
else
|
|
481
|
-
isComposing ? isFallbackCompositionEnd(domEventName, nativeEvent) && (eventType = "onCompositionEnd") : "keydown"
|
|
482
|
-
eventType && (useFallbackCompositionData && "ko"
|
|
422
|
+
isComposing ? isFallbackCompositionEnd(domEventName, nativeEvent) && (eventType = "onCompositionEnd") : domEventName === "keydown" && nativeEvent.keyCode === 229 && (eventType = "onCompositionStart");
|
|
423
|
+
eventType && (useFallbackCompositionData && nativeEvent.locale !== "ko" && (isComposing || eventType !== "onCompositionStart" ? eventType === "onCompositionEnd" && isComposing && (fallbackData = getData()) : (root = nativeEventTarget, startText = "value" in root ? root.value : root.textContent, isComposing = !0)), handleEventFunc = accumulateTwoPhaseListeners(targetInst, eventType), 0 < handleEventFunc.length && (eventType = new SyntheticCompositionEvent(
|
|
483
424
|
eventType,
|
|
484
425
|
domEventName,
|
|
485
426
|
null,
|
|
486
427
|
nativeEvent,
|
|
487
428
|
nativeEventTarget
|
|
488
|
-
), dispatchQueue.push({ event: eventType, listeners: handleEventFunc }), fallbackData ? eventType.data = fallbackData : (fallbackData = getDataFromCustomEvent(nativeEvent),
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
listeners: eventType
|
|
499
|
-
}), handleEventFunc.data = fallbackData);
|
|
500
|
-
extractEvents$1(
|
|
429
|
+
), dispatchQueue.push({ event: eventType, listeners: handleEventFunc }), fallbackData ? eventType.data = fallbackData : (fallbackData = getDataFromCustomEvent(nativeEvent), fallbackData !== null && (eventType.data = fallbackData)))), (fallbackData = canUseTextInputEvent ? getNativeBeforeInputChars(domEventName, nativeEvent) : getFallbackBeforeInputChars(domEventName, nativeEvent)) && (eventType = accumulateTwoPhaseListeners(targetInst, "onBeforeInput"), 0 < eventType.length && (handleEventFunc = new SyntheticCompositionEvent(
|
|
430
|
+
"onBeforeInput",
|
|
431
|
+
"beforeinput",
|
|
432
|
+
null,
|
|
433
|
+
nativeEvent,
|
|
434
|
+
nativeEventTarget
|
|
435
|
+
), dispatchQueue.push({
|
|
436
|
+
event: handleEventFunc,
|
|
437
|
+
listeners: eventType
|
|
438
|
+
}), handleEventFunc.data = fallbackData)), extractEvents$1(
|
|
501
439
|
dispatchQueue,
|
|
502
440
|
domEventName,
|
|
503
441
|
targetInst,
|
|
@@ -516,56 +454,51 @@
|
|
|
516
454
|
};
|
|
517
455
|
}
|
|
518
456
|
function accumulateTwoPhaseListeners(targetFiber, reactName) {
|
|
519
|
-
for (var captureName = reactName + "Capture", listeners = [];
|
|
457
|
+
for (var captureName = reactName + "Capture", listeners = []; targetFiber !== null; ) {
|
|
520
458
|
var _instance2 = targetFiber, stateNode = _instance2.stateNode;
|
|
521
|
-
_instance2 = _instance2.tag
|
|
522
|
-
5 !== _instance2 && 26 !== _instance2 && 27 !== _instance2 || null === stateNode || (_instance2 = getListener(targetFiber, captureName), null != _instance2 && listeners.unshift(
|
|
459
|
+
if (_instance2 = _instance2.tag, _instance2 !== 5 && _instance2 !== 26 && _instance2 !== 27 || stateNode === null || (_instance2 = getListener(targetFiber, captureName), _instance2 != null && listeners.unshift(
|
|
523
460
|
createDispatchListener(targetFiber, _instance2, stateNode)
|
|
524
|
-
), _instance2 = getListener(targetFiber, reactName),
|
|
461
|
+
), _instance2 = getListener(targetFiber, reactName), _instance2 != null && listeners.push(
|
|
525
462
|
createDispatchListener(targetFiber, _instance2, stateNode)
|
|
526
|
-
));
|
|
527
|
-
if (3 === targetFiber.tag) return listeners;
|
|
463
|
+
)), targetFiber.tag === 3) return listeners;
|
|
528
464
|
targetFiber = targetFiber.return;
|
|
529
465
|
}
|
|
530
466
|
return [];
|
|
531
467
|
}
|
|
532
468
|
function getParent(inst) {
|
|
533
|
-
if (
|
|
469
|
+
if (inst === null) return null;
|
|
534
470
|
do
|
|
535
471
|
inst = inst.return;
|
|
536
|
-
while (inst &&
|
|
537
|
-
return inst
|
|
472
|
+
while (inst && inst.tag !== 5 && inst.tag !== 27);
|
|
473
|
+
return inst || null;
|
|
538
474
|
}
|
|
539
475
|
function accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, common, inCapturePhase) {
|
|
540
|
-
for (var registrationName = event._reactName, listeners = [];
|
|
476
|
+
for (var registrationName = event._reactName, listeners = []; target !== null && target !== common; ) {
|
|
541
477
|
var _instance3 = target, alternate = _instance3.alternate, stateNode = _instance3.stateNode;
|
|
542
|
-
_instance3 = _instance3.tag;
|
|
543
|
-
|
|
544
|
-
5 !== _instance3 && 26 !== _instance3 && 27 !== _instance3 || null === stateNode || (alternate = stateNode, inCapturePhase ? (stateNode = getListener(target, registrationName), null != stateNode && listeners.unshift(
|
|
478
|
+
if (_instance3 = _instance3.tag, alternate !== null && alternate === common) break;
|
|
479
|
+
_instance3 !== 5 && _instance3 !== 26 && _instance3 !== 27 || stateNode === null || (alternate = stateNode, inCapturePhase ? (stateNode = getListener(target, registrationName), stateNode != null && listeners.unshift(
|
|
545
480
|
createDispatchListener(target, stateNode, alternate)
|
|
546
|
-
)) : inCapturePhase || (stateNode = getListener(target, registrationName),
|
|
481
|
+
)) : inCapturePhase || (stateNode = getListener(target, registrationName), stateNode != null && listeners.push(
|
|
547
482
|
createDispatchListener(target, stateNode, alternate)
|
|
548
|
-
)));
|
|
549
|
-
target = target.return;
|
|
483
|
+
))), target = target.return;
|
|
550
484
|
}
|
|
551
|
-
|
|
485
|
+
listeners.length !== 0 && dispatchQueue.push({ event, listeners });
|
|
552
486
|
}
|
|
553
|
-
var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
|
|
554
|
-
var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
|
|
487
|
+
var NORMALIZE_NEWLINES_REGEX = /\r\n?/g, NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
|
|
555
488
|
function normalizeMarkupForTextOrAttribute(markup) {
|
|
556
|
-
return ("string"
|
|
489
|
+
return (typeof markup == "string" ? markup : "" + markup).replace(NORMALIZE_NEWLINES_REGEX, `
|
|
490
|
+
`).replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, "");
|
|
557
491
|
}
|
|
558
492
|
function checkForUnmatchedText(serverText, clientText) {
|
|
559
|
-
clientText = normalizeMarkupForTextOrAttribute(clientText);
|
|
560
|
-
return normalizeMarkupForTextOrAttribute(serverText) === clientText ? true : false;
|
|
493
|
+
return clientText = normalizeMarkupForTextOrAttribute(clientText), normalizeMarkupForTextOrAttribute(serverText) === clientText;
|
|
561
494
|
}
|
|
562
495
|
function setProp(domElement, tag, key, value, props, prevValue) {
|
|
563
496
|
switch (key) {
|
|
564
497
|
case "children":
|
|
565
|
-
if ("string"
|
|
566
|
-
"body"
|
|
567
|
-
else if ("number"
|
|
568
|
-
"body"
|
|
498
|
+
if (typeof value == "string")
|
|
499
|
+
tag === "body" || tag === "textarea" && value === "" || setTextContent(domElement, value);
|
|
500
|
+
else if (typeof value == "number" || typeof value == "bigint")
|
|
501
|
+
tag !== "body" && setTextContent(domElement, "" + value);
|
|
569
502
|
else return;
|
|
570
503
|
break;
|
|
571
504
|
case "className":
|
|
@@ -585,33 +518,32 @@
|
|
|
585
518
|
setValueForStyles(domElement, value, prevValue);
|
|
586
519
|
return;
|
|
587
520
|
case "data":
|
|
588
|
-
if ("object"
|
|
521
|
+
if (tag !== "object") {
|
|
589
522
|
setValueForKnownAttribute(domElement, "data", value);
|
|
590
523
|
break;
|
|
591
524
|
}
|
|
592
525
|
case "src":
|
|
593
526
|
case "href":
|
|
594
|
-
if (
|
|
527
|
+
if (value === "" && (tag !== "a" || key !== "href")) {
|
|
595
528
|
domElement.removeAttribute(key);
|
|
596
529
|
break;
|
|
597
530
|
}
|
|
598
|
-
if (
|
|
531
|
+
if (value == null || typeof value == "function" || typeof value == "symbol" || typeof value == "boolean") {
|
|
599
532
|
domElement.removeAttribute(key);
|
|
600
533
|
break;
|
|
601
534
|
}
|
|
602
|
-
value = sanitizeURL(value);
|
|
603
|
-
domElement.setAttribute(key, value);
|
|
535
|
+
value = sanitizeURL(value), domElement.setAttribute(key, value);
|
|
604
536
|
break;
|
|
605
537
|
case "action":
|
|
606
538
|
case "formAction":
|
|
607
|
-
if ("function"
|
|
539
|
+
if (typeof value == "function") {
|
|
608
540
|
domElement.setAttribute(
|
|
609
541
|
key,
|
|
610
542
|
"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')"
|
|
611
543
|
);
|
|
612
544
|
break;
|
|
613
545
|
} else
|
|
614
|
-
"function"
|
|
546
|
+
typeof prevValue == "function" && (key === "formAction" ? (tag !== "input" && setProp(domElement, tag, "name", props.name, props, null), setProp(
|
|
615
547
|
domElement,
|
|
616
548
|
tag,
|
|
617
549
|
"formEncType",
|
|
@@ -633,38 +565,36 @@
|
|
|
633
565
|
props,
|
|
634
566
|
null
|
|
635
567
|
)) : (setProp(domElement, tag, "encType", props.encType, props, null), setProp(domElement, tag, "method", props.method, props, null), setProp(domElement, tag, "target", props.target, props, null)));
|
|
636
|
-
if (
|
|
568
|
+
if (value == null || typeof value == "symbol" || typeof value == "boolean") {
|
|
637
569
|
domElement.removeAttribute(key);
|
|
638
570
|
break;
|
|
639
571
|
}
|
|
640
|
-
value = sanitizeURL(value);
|
|
641
|
-
domElement.setAttribute(key, value);
|
|
572
|
+
value = sanitizeURL(value), domElement.setAttribute(key, value);
|
|
642
573
|
break;
|
|
643
574
|
case "onClick":
|
|
644
|
-
|
|
575
|
+
value != null && (domElement.onclick = noop$1);
|
|
645
576
|
return;
|
|
646
577
|
case "onScroll":
|
|
647
|
-
|
|
578
|
+
value != null && listenToNonDelegatedEvent("scroll", domElement);
|
|
648
579
|
return;
|
|
649
580
|
case "onScrollEnd":
|
|
650
|
-
|
|
581
|
+
value != null && listenToNonDelegatedEvent("scrollend", domElement);
|
|
651
582
|
return;
|
|
652
583
|
case "dangerouslySetInnerHTML":
|
|
653
|
-
if (
|
|
654
|
-
if ("object"
|
|
584
|
+
if (value != null) {
|
|
585
|
+
if (typeof value != "object" || !("__html" in value))
|
|
655
586
|
throw Error(formatProdErrorMessage(61));
|
|
656
|
-
key = value.__html
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
(null != prevValue ? prevValue.__html : void 0) !== key && (domElement.innerHTML = key);
|
|
587
|
+
if (key = value.__html, key != null) {
|
|
588
|
+
if (props.children != null) throw Error(formatProdErrorMessage(60));
|
|
589
|
+
prevValue?.__html !== key && (domElement.innerHTML = key);
|
|
660
590
|
}
|
|
661
591
|
}
|
|
662
592
|
break;
|
|
663
593
|
case "multiple":
|
|
664
|
-
domElement.multiple = value && "function"
|
|
594
|
+
domElement.multiple = value && typeof value != "function" && typeof value != "symbol";
|
|
665
595
|
break;
|
|
666
596
|
case "muted":
|
|
667
|
-
domElement.muted = value && "function"
|
|
597
|
+
domElement.muted = value && typeof value != "function" && typeof value != "symbol";
|
|
668
598
|
break;
|
|
669
599
|
case "suppressContentEditableWarning":
|
|
670
600
|
case "suppressHydrationWarning":
|
|
@@ -676,12 +606,11 @@
|
|
|
676
606
|
case "autoFocus":
|
|
677
607
|
break;
|
|
678
608
|
case "xlinkHref":
|
|
679
|
-
if (
|
|
609
|
+
if (value == null || typeof value == "function" || typeof value == "boolean" || typeof value == "symbol") {
|
|
680
610
|
domElement.removeAttribute("xlink:href");
|
|
681
611
|
break;
|
|
682
612
|
}
|
|
683
|
-
key = sanitizeURL(value)
|
|
684
|
-
domElement.setAttributeNS(
|
|
613
|
+
key = sanitizeURL(value), domElement.setAttributeNS(
|
|
685
614
|
"http://www.w3.org/1999/xlink",
|
|
686
615
|
"xlink:href",
|
|
687
616
|
key
|
|
@@ -695,7 +624,7 @@
|
|
|
695
624
|
case "externalResourcesRequired":
|
|
696
625
|
case "focusable":
|
|
697
626
|
case "preserveAlpha":
|
|
698
|
-
|
|
627
|
+
value != null && typeof value != "function" && typeof value != "symbol" ? domElement.setAttribute(key, value) : domElement.removeAttribute(key);
|
|
699
628
|
break;
|
|
700
629
|
case "inert":
|
|
701
630
|
case "allowFullScreen":
|
|
@@ -721,26 +650,24 @@
|
|
|
721
650
|
case "scoped":
|
|
722
651
|
case "seamless":
|
|
723
652
|
case "itemScope":
|
|
724
|
-
value && "function"
|
|
653
|
+
value && typeof value != "function" && typeof value != "symbol" ? domElement.setAttribute(key, "") : domElement.removeAttribute(key);
|
|
725
654
|
break;
|
|
726
655
|
case "capture":
|
|
727
656
|
case "download":
|
|
728
|
-
|
|
657
|
+
value === !0 ? domElement.setAttribute(key, "") : value !== !1 && value != null && typeof value != "function" && typeof value != "symbol" ? domElement.setAttribute(key, value) : domElement.removeAttribute(key);
|
|
729
658
|
break;
|
|
730
659
|
case "cols":
|
|
731
660
|
case "rows":
|
|
732
661
|
case "size":
|
|
733
662
|
case "span":
|
|
734
|
-
|
|
663
|
+
value != null && typeof value != "function" && typeof value != "symbol" && !isNaN(value) && 1 <= value ? domElement.setAttribute(key, value) : domElement.removeAttribute(key);
|
|
735
664
|
break;
|
|
736
665
|
case "rowSpan":
|
|
737
666
|
case "start":
|
|
738
|
-
|
|
667
|
+
value == null || typeof value == "function" || typeof value == "symbol" || isNaN(value) ? domElement.removeAttribute(key) : domElement.setAttribute(key, value);
|
|
739
668
|
break;
|
|
740
669
|
case "popover":
|
|
741
|
-
listenToNonDelegatedEvent("beforetoggle", domElement);
|
|
742
|
-
listenToNonDelegatedEvent("toggle", domElement);
|
|
743
|
-
setValueForAttribute(domElement, "popover", value);
|
|
670
|
+
listenToNonDelegatedEvent("beforetoggle", domElement), listenToNonDelegatedEvent("toggle", domElement), setValueForAttribute(domElement, "popover", value);
|
|
744
671
|
break;
|
|
745
672
|
case "xlinkActuate":
|
|
746
673
|
setValueForNamespacedAttribute(
|
|
@@ -821,11 +748,11 @@
|
|
|
821
748
|
case "textContent":
|
|
822
749
|
return;
|
|
823
750
|
default:
|
|
824
|
-
if (!(2 < key.length) || "o"
|
|
751
|
+
if (!(2 < key.length) || key[0] !== "o" && key[0] !== "O" || key[1] !== "n" && key[1] !== "N")
|
|
825
752
|
key = aliases.get(key) || key, setValueForAttribute(domElement, key, value);
|
|
826
753
|
else return;
|
|
827
754
|
}
|
|
828
|
-
viewTransitionMutationContext =
|
|
755
|
+
viewTransitionMutationContext = !0;
|
|
829
756
|
}
|
|
830
757
|
function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) {
|
|
831
758
|
switch (key) {
|
|
@@ -833,30 +760,29 @@
|
|
|
833
760
|
setValueForStyles(domElement, value, prevValue);
|
|
834
761
|
return;
|
|
835
762
|
case "dangerouslySetInnerHTML":
|
|
836
|
-
if (
|
|
837
|
-
if ("object"
|
|
763
|
+
if (value != null) {
|
|
764
|
+
if (typeof value != "object" || !("__html" in value))
|
|
838
765
|
throw Error(formatProdErrorMessage(61));
|
|
839
|
-
key = value.__html
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
(null != prevValue ? prevValue.__html : void 0) !== key && (domElement.innerHTML = key);
|
|
766
|
+
if (key = value.__html, key != null) {
|
|
767
|
+
if (props.children != null) throw Error(formatProdErrorMessage(60));
|
|
768
|
+
prevValue?.__html !== key && (domElement.innerHTML = key);
|
|
843
769
|
}
|
|
844
770
|
}
|
|
845
771
|
break;
|
|
846
772
|
case "children":
|
|
847
|
-
if ("string"
|
|
848
|
-
else if ("number"
|
|
773
|
+
if (typeof value == "string") setTextContent(domElement, value);
|
|
774
|
+
else if (typeof value == "number" || typeof value == "bigint")
|
|
849
775
|
setTextContent(domElement, "" + value);
|
|
850
776
|
else return;
|
|
851
777
|
break;
|
|
852
778
|
case "onScroll":
|
|
853
|
-
|
|
779
|
+
value != null && listenToNonDelegatedEvent("scroll", domElement);
|
|
854
780
|
return;
|
|
855
781
|
case "onScrollEnd":
|
|
856
|
-
|
|
782
|
+
value != null && listenToNonDelegatedEvent("scrollend", domElement);
|
|
857
783
|
return;
|
|
858
784
|
case "onClick":
|
|
859
|
-
|
|
785
|
+
value != null && (domElement.onclick = noop$1);
|
|
860
786
|
return;
|
|
861
787
|
case "suppressContentEditableWarning":
|
|
862
788
|
case "suppressHydrationWarning":
|
|
@@ -869,17 +795,15 @@
|
|
|
869
795
|
default:
|
|
870
796
|
if (!registrationNameDependencies.hasOwnProperty(key))
|
|
871
797
|
a: {
|
|
872
|
-
if (
|
|
873
|
-
"function"
|
|
874
|
-
domElement.addEventListener(prevValue, value, props);
|
|
798
|
+
if (key[0] === "o" && key[1] === "n" && (props = key.endsWith("Capture"), prevValue = key.slice(2, props ? key.length - 7 : void 0), tag = domElement[internalPropsKey] || null, tag = tag != null ? tag[key] : null, typeof tag == "function" && domElement.removeEventListener(prevValue, tag, props), typeof value == "function")) {
|
|
799
|
+
typeof tag != "function" && tag !== null && (key in domElement ? domElement[key] = null : domElement.hasAttribute(key) && domElement.removeAttribute(key)), domElement.addEventListener(prevValue, value, props);
|
|
875
800
|
break a;
|
|
876
801
|
}
|
|
877
|
-
viewTransitionMutationContext =
|
|
878
|
-
key in domElement ? domElement[key] = value : true === value ? domElement.setAttribute(key, "") : setValueForAttribute(domElement, key, value);
|
|
802
|
+
viewTransitionMutationContext = !0, key in domElement ? domElement[key] = value : value === !0 ? domElement.setAttribute(key, "") : setValueForAttribute(domElement, key, value);
|
|
879
803
|
}
|
|
880
804
|
return;
|
|
881
805
|
}
|
|
882
|
-
viewTransitionMutationContext =
|
|
806
|
+
viewTransitionMutationContext = !0;
|
|
883
807
|
}
|
|
884
808
|
function setInitialProperties(domElement, tag, props) {
|
|
885
809
|
switch (tag) {
|
|
@@ -893,19 +817,18 @@
|
|
|
893
817
|
case "li":
|
|
894
818
|
break;
|
|
895
819
|
case "img":
|
|
896
|
-
listenToNonDelegatedEvent("error", domElement);
|
|
897
|
-
|
|
898
|
-
var hasSrc = false, hasSrcSet = false, propKey;
|
|
820
|
+
listenToNonDelegatedEvent("error", domElement), listenToNonDelegatedEvent("load", domElement);
|
|
821
|
+
var hasSrc = !1, hasSrcSet = !1, propKey;
|
|
899
822
|
for (propKey in props)
|
|
900
823
|
if (props.hasOwnProperty(propKey)) {
|
|
901
824
|
var propValue = props[propKey];
|
|
902
|
-
if (
|
|
825
|
+
if (propValue != null)
|
|
903
826
|
switch (propKey) {
|
|
904
827
|
case "src":
|
|
905
|
-
hasSrc =
|
|
828
|
+
hasSrc = !0;
|
|
906
829
|
break;
|
|
907
830
|
case "srcSet":
|
|
908
|
-
hasSrcSet =
|
|
831
|
+
hasSrcSet = !0;
|
|
909
832
|
break;
|
|
910
833
|
case "children":
|
|
911
834
|
case "dangerouslySetInnerHTML":
|
|
@@ -914,8 +837,7 @@
|
|
|
914
837
|
setProp(domElement, tag, propKey, propValue, props, null);
|
|
915
838
|
}
|
|
916
839
|
}
|
|
917
|
-
hasSrcSet && setProp(domElement, tag, "srcSet", props.srcSet, props, null);
|
|
918
|
-
hasSrc && setProp(domElement, tag, "src", props.src, props, null);
|
|
840
|
+
hasSrcSet && setProp(domElement, tag, "srcSet", props.srcSet, props, null), hasSrc && setProp(domElement, tag, "src", props.src, props, null);
|
|
919
841
|
return;
|
|
920
842
|
case "input":
|
|
921
843
|
listenToNonDelegatedEvent("invalid", domElement);
|
|
@@ -923,7 +845,7 @@
|
|
|
923
845
|
for (hasSrc in props)
|
|
924
846
|
if (props.hasOwnProperty(hasSrc)) {
|
|
925
847
|
var propValue$204 = props[hasSrc];
|
|
926
|
-
if (
|
|
848
|
+
if (propValue$204 != null)
|
|
927
849
|
switch (hasSrc) {
|
|
928
850
|
case "name":
|
|
929
851
|
hasSrcSet = propValue$204;
|
|
@@ -945,7 +867,7 @@
|
|
|
945
867
|
break;
|
|
946
868
|
case "children":
|
|
947
869
|
case "dangerouslySetInnerHTML":
|
|
948
|
-
if (
|
|
870
|
+
if (propValue$204 != null)
|
|
949
871
|
throw Error(formatProdErrorMessage(137, tag));
|
|
950
872
|
break;
|
|
951
873
|
default:
|
|
@@ -960,14 +882,13 @@
|
|
|
960
882
|
defaultChecked,
|
|
961
883
|
propValue,
|
|
962
884
|
hasSrcSet,
|
|
963
|
-
|
|
885
|
+
!1
|
|
964
886
|
);
|
|
965
887
|
return;
|
|
966
888
|
case "select":
|
|
967
|
-
listenToNonDelegatedEvent("invalid", domElement);
|
|
968
|
-
hasSrc = propValue = propKey = null;
|
|
889
|
+
listenToNonDelegatedEvent("invalid", domElement), hasSrc = propValue = propKey = null;
|
|
969
890
|
for (hasSrcSet in props)
|
|
970
|
-
if (props.hasOwnProperty(hasSrcSet) && (defaultValue = props[hasSrcSet],
|
|
891
|
+
if (props.hasOwnProperty(hasSrcSet) && (defaultValue = props[hasSrcSet], defaultValue != null))
|
|
971
892
|
switch (hasSrcSet) {
|
|
972
893
|
case "value":
|
|
973
894
|
propKey = defaultValue;
|
|
@@ -980,16 +901,12 @@
|
|
|
980
901
|
default:
|
|
981
902
|
setProp(domElement, tag, hasSrcSet, defaultValue, props, null);
|
|
982
903
|
}
|
|
983
|
-
tag = propKey;
|
|
984
|
-
props = propValue;
|
|
985
|
-
domElement.multiple = !!hasSrc;
|
|
986
|
-
null != tag ? updateOptions(domElement, !!hasSrc, tag, false) : null != props && updateOptions(domElement, !!hasSrc, props, true);
|
|
904
|
+
tag = propKey, props = propValue, domElement.multiple = !!hasSrc, tag != null ? updateOptions(domElement, !!hasSrc, tag, !1) : props != null && updateOptions(domElement, !!hasSrc, props, !0);
|
|
987
905
|
return;
|
|
988
906
|
case "textarea":
|
|
989
|
-
listenToNonDelegatedEvent("invalid", domElement);
|
|
990
|
-
propKey = hasSrcSet = hasSrc = null;
|
|
907
|
+
listenToNonDelegatedEvent("invalid", domElement), propKey = hasSrcSet = hasSrc = null;
|
|
991
908
|
for (propValue in props)
|
|
992
|
-
if (props.hasOwnProperty(propValue) && (defaultValue = props[propValue],
|
|
909
|
+
if (props.hasOwnProperty(propValue) && (defaultValue = props[propValue], defaultValue != null))
|
|
993
910
|
switch (propValue) {
|
|
994
911
|
case "value":
|
|
995
912
|
hasSrc = defaultValue;
|
|
@@ -1001,7 +918,7 @@
|
|
|
1001
918
|
propKey = defaultValue;
|
|
1002
919
|
break;
|
|
1003
920
|
case "dangerouslySetInnerHTML":
|
|
1004
|
-
if (
|
|
921
|
+
if (defaultValue != null) throw Error(formatProdErrorMessage(91));
|
|
1005
922
|
break;
|
|
1006
923
|
default:
|
|
1007
924
|
setProp(domElement, tag, propValue, defaultValue, props, null);
|
|
@@ -1010,20 +927,10 @@
|
|
|
1010
927
|
return;
|
|
1011
928
|
case "option":
|
|
1012
929
|
for (checked in props)
|
|
1013
|
-
|
|
1014
|
-
switch (checked) {
|
|
1015
|
-
case "selected":
|
|
1016
|
-
domElement.selected = hasSrc && "function" !== typeof hasSrc && "symbol" !== typeof hasSrc;
|
|
1017
|
-
break;
|
|
1018
|
-
default:
|
|
1019
|
-
setProp(domElement, tag, checked, hasSrc, props, null);
|
|
1020
|
-
}
|
|
930
|
+
props.hasOwnProperty(checked) && (hasSrc = props[checked], hasSrc != null) && (checked === "selected" ? domElement.selected = hasSrc && typeof hasSrc != "function" && typeof hasSrc != "symbol" : setProp(domElement, tag, checked, hasSrc, props, null));
|
|
1021
931
|
return;
|
|
1022
932
|
case "dialog":
|
|
1023
|
-
listenToNonDelegatedEvent("beforetoggle", domElement);
|
|
1024
|
-
listenToNonDelegatedEvent("toggle", domElement);
|
|
1025
|
-
listenToNonDelegatedEvent("cancel", domElement);
|
|
1026
|
-
listenToNonDelegatedEvent("close", domElement);
|
|
933
|
+
listenToNonDelegatedEvent("beforetoggle", domElement), listenToNonDelegatedEvent("toggle", domElement), listenToNonDelegatedEvent("cancel", domElement), listenToNonDelegatedEvent("close", domElement);
|
|
1027
934
|
break;
|
|
1028
935
|
case "iframe":
|
|
1029
936
|
case "object":
|
|
@@ -1035,8 +942,7 @@
|
|
|
1035
942
|
listenToNonDelegatedEvent(mediaEventTypes[hasSrc], domElement);
|
|
1036
943
|
break;
|
|
1037
944
|
case "image":
|
|
1038
|
-
listenToNonDelegatedEvent("error", domElement);
|
|
1039
|
-
listenToNonDelegatedEvent("load", domElement);
|
|
945
|
+
listenToNonDelegatedEvent("error", domElement), listenToNonDelegatedEvent("load", domElement);
|
|
1040
946
|
break;
|
|
1041
947
|
case "details":
|
|
1042
948
|
listenToNonDelegatedEvent("toggle", domElement);
|
|
@@ -1057,7 +963,7 @@
|
|
|
1057
963
|
case "wbr":
|
|
1058
964
|
case "menuitem":
|
|
1059
965
|
for (defaultChecked in props)
|
|
1060
|
-
if (props.hasOwnProperty(defaultChecked) && (hasSrc = props[defaultChecked],
|
|
966
|
+
if (props.hasOwnProperty(defaultChecked) && (hasSrc = props[defaultChecked], hasSrc != null))
|
|
1061
967
|
switch (defaultChecked) {
|
|
1062
968
|
case "children":
|
|
1063
969
|
case "dangerouslySetInnerHTML":
|
|
@@ -1069,7 +975,7 @@
|
|
|
1069
975
|
default:
|
|
1070
976
|
if (isCustomElement(tag)) {
|
|
1071
977
|
for (propValue$204 in props)
|
|
1072
|
-
props.hasOwnProperty(propValue$204) && (hasSrc = props[propValue$204], void 0
|
|
978
|
+
props.hasOwnProperty(propValue$204) && (hasSrc = props[propValue$204], hasSrc !== void 0 && setPropOnCustomElement(
|
|
1073
979
|
domElement,
|
|
1074
980
|
tag,
|
|
1075
981
|
propValue$204,
|
|
@@ -1081,7 +987,7 @@
|
|
|
1081
987
|
}
|
|
1082
988
|
}
|
|
1083
989
|
for (defaultValue in props)
|
|
1084
|
-
props.hasOwnProperty(defaultValue) && (hasSrc = props[defaultValue],
|
|
990
|
+
props.hasOwnProperty(defaultValue) && (hasSrc = props[defaultValue], hasSrc != null && setProp(domElement, tag, defaultValue, hasSrc, props, null));
|
|
1085
991
|
}
|
|
1086
992
|
var emptyProps = {};
|
|
1087
993
|
function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
@@ -1099,7 +1005,7 @@
|
|
|
1099
1005
|
var name = null, type = null, value = null, defaultValue = null, lastDefaultValue = null, checked = null, defaultChecked = null;
|
|
1100
1006
|
for (propKey in lastProps) {
|
|
1101
1007
|
var lastProp = lastProps[propKey];
|
|
1102
|
-
if (lastProps.hasOwnProperty(propKey) &&
|
|
1008
|
+
if (lastProps.hasOwnProperty(propKey) && lastProp != null)
|
|
1103
1009
|
switch (propKey) {
|
|
1104
1010
|
case "checked":
|
|
1105
1011
|
break;
|
|
@@ -1113,36 +1019,29 @@
|
|
|
1113
1019
|
}
|
|
1114
1020
|
for (var propKey$221 in nextProps) {
|
|
1115
1021
|
var propKey = nextProps[propKey$221];
|
|
1116
|
-
lastProp = lastProps[propKey$221]
|
|
1117
|
-
if (nextProps.hasOwnProperty(propKey$221) && (null != propKey || null != lastProp))
|
|
1022
|
+
if (lastProp = lastProps[propKey$221], nextProps.hasOwnProperty(propKey$221) && (propKey != null || lastProp != null))
|
|
1118
1023
|
switch (propKey$221) {
|
|
1119
1024
|
case "type":
|
|
1120
|
-
propKey !== lastProp && (viewTransitionMutationContext =
|
|
1121
|
-
type = propKey;
|
|
1025
|
+
propKey !== lastProp && (viewTransitionMutationContext = !0), type = propKey;
|
|
1122
1026
|
break;
|
|
1123
1027
|
case "name":
|
|
1124
|
-
propKey !== lastProp && (viewTransitionMutationContext =
|
|
1125
|
-
name = propKey;
|
|
1028
|
+
propKey !== lastProp && (viewTransitionMutationContext = !0), name = propKey;
|
|
1126
1029
|
break;
|
|
1127
1030
|
case "checked":
|
|
1128
|
-
propKey !== lastProp && (viewTransitionMutationContext =
|
|
1129
|
-
checked = propKey;
|
|
1031
|
+
propKey !== lastProp && (viewTransitionMutationContext = !0), checked = propKey;
|
|
1130
1032
|
break;
|
|
1131
1033
|
case "defaultChecked":
|
|
1132
|
-
propKey !== lastProp && (viewTransitionMutationContext =
|
|
1133
|
-
defaultChecked = propKey;
|
|
1034
|
+
propKey !== lastProp && (viewTransitionMutationContext = !0), defaultChecked = propKey;
|
|
1134
1035
|
break;
|
|
1135
1036
|
case "value":
|
|
1136
|
-
propKey !== lastProp && (viewTransitionMutationContext =
|
|
1137
|
-
value = propKey;
|
|
1037
|
+
propKey !== lastProp && (viewTransitionMutationContext = !0), value = propKey;
|
|
1138
1038
|
break;
|
|
1139
1039
|
case "defaultValue":
|
|
1140
|
-
propKey !== lastProp && (viewTransitionMutationContext =
|
|
1141
|
-
defaultValue = propKey;
|
|
1040
|
+
propKey !== lastProp && (viewTransitionMutationContext = !0), defaultValue = propKey;
|
|
1142
1041
|
break;
|
|
1143
1042
|
case "children":
|
|
1144
1043
|
case "dangerouslySetInnerHTML":
|
|
1145
|
-
if (
|
|
1044
|
+
if (propKey != null)
|
|
1146
1045
|
throw Error(formatProdErrorMessage(137, tag));
|
|
1147
1046
|
break;
|
|
1148
1047
|
default:
|
|
@@ -1170,7 +1069,7 @@
|
|
|
1170
1069
|
case "select":
|
|
1171
1070
|
propKey = value = defaultValue = propKey$221 = null;
|
|
1172
1071
|
for (type in lastProps)
|
|
1173
|
-
if (lastDefaultValue = lastProps[type], lastProps.hasOwnProperty(type) &&
|
|
1072
|
+
if (lastDefaultValue = lastProps[type], lastProps.hasOwnProperty(type) && lastDefaultValue != null)
|
|
1174
1073
|
switch (type) {
|
|
1175
1074
|
case "value":
|
|
1176
1075
|
break;
|
|
@@ -1187,18 +1086,16 @@
|
|
|
1187
1086
|
);
|
|
1188
1087
|
}
|
|
1189
1088
|
for (name in nextProps)
|
|
1190
|
-
if (type = nextProps[name], lastDefaultValue = lastProps[name], nextProps.hasOwnProperty(name) && (
|
|
1089
|
+
if (type = nextProps[name], lastDefaultValue = lastProps[name], nextProps.hasOwnProperty(name) && (type != null || lastDefaultValue != null))
|
|
1191
1090
|
switch (name) {
|
|
1192
1091
|
case "value":
|
|
1193
|
-
type !== lastDefaultValue && (viewTransitionMutationContext =
|
|
1194
|
-
propKey$221 = type;
|
|
1092
|
+
type !== lastDefaultValue && (viewTransitionMutationContext = !0), propKey$221 = type;
|
|
1195
1093
|
break;
|
|
1196
1094
|
case "defaultValue":
|
|
1197
|
-
type !== lastDefaultValue && (viewTransitionMutationContext =
|
|
1198
|
-
defaultValue = type;
|
|
1095
|
+
type !== lastDefaultValue && (viewTransitionMutationContext = !0), defaultValue = type;
|
|
1199
1096
|
break;
|
|
1200
1097
|
case "multiple":
|
|
1201
|
-
type !== lastDefaultValue && (viewTransitionMutationContext =
|
|
1098
|
+
type !== lastDefaultValue && (viewTransitionMutationContext = !0), value = type;
|
|
1202
1099
|
default:
|
|
1203
1100
|
type !== lastDefaultValue && setProp(
|
|
1204
1101
|
domElement,
|
|
@@ -1209,15 +1106,12 @@
|
|
|
1209
1106
|
lastDefaultValue
|
|
1210
1107
|
);
|
|
1211
1108
|
}
|
|
1212
|
-
tag = defaultValue;
|
|
1213
|
-
lastProps = value;
|
|
1214
|
-
nextProps = propKey;
|
|
1215
|
-
null != propKey$221 ? updateOptions(domElement, !!lastProps, propKey$221, false) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, true) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", false));
|
|
1109
|
+
tag = defaultValue, lastProps = value, nextProps = propKey, propKey$221 != null ? updateOptions(domElement, !!lastProps, propKey$221, !1) : !!nextProps != !!lastProps && (tag != null ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1));
|
|
1216
1110
|
return;
|
|
1217
1111
|
case "textarea":
|
|
1218
1112
|
propKey = propKey$221 = null;
|
|
1219
1113
|
for (defaultValue in lastProps)
|
|
1220
|
-
if (name = lastProps[defaultValue], lastProps.hasOwnProperty(defaultValue) &&
|
|
1114
|
+
if (name = lastProps[defaultValue], lastProps.hasOwnProperty(defaultValue) && name != null && !nextProps.hasOwnProperty(defaultValue))
|
|
1221
1115
|
switch (defaultValue) {
|
|
1222
1116
|
case "value":
|
|
1223
1117
|
break;
|
|
@@ -1227,20 +1121,18 @@
|
|
|
1227
1121
|
setProp(domElement, tag, defaultValue, null, nextProps, name);
|
|
1228
1122
|
}
|
|
1229
1123
|
for (value in nextProps)
|
|
1230
|
-
if (name = nextProps[value], type = lastProps[value], nextProps.hasOwnProperty(value) && (
|
|
1124
|
+
if (name = nextProps[value], type = lastProps[value], nextProps.hasOwnProperty(value) && (name != null || type != null))
|
|
1231
1125
|
switch (value) {
|
|
1232
1126
|
case "value":
|
|
1233
|
-
name !== type && (viewTransitionMutationContext =
|
|
1234
|
-
propKey$221 = name;
|
|
1127
|
+
name !== type && (viewTransitionMutationContext = !0), propKey$221 = name;
|
|
1235
1128
|
break;
|
|
1236
1129
|
case "defaultValue":
|
|
1237
|
-
name !== type && (viewTransitionMutationContext =
|
|
1238
|
-
propKey = name;
|
|
1130
|
+
name !== type && (viewTransitionMutationContext = !0), propKey = name;
|
|
1239
1131
|
break;
|
|
1240
1132
|
case "children":
|
|
1241
1133
|
break;
|
|
1242
1134
|
case "dangerouslySetInnerHTML":
|
|
1243
|
-
if (
|
|
1135
|
+
if (name != null) throw Error(formatProdErrorMessage(91));
|
|
1244
1136
|
break;
|
|
1245
1137
|
default:
|
|
1246
1138
|
name !== type && setProp(domElement, tag, value, name, nextProps, type);
|
|
@@ -1249,38 +1141,23 @@
|
|
|
1249
1141
|
return;
|
|
1250
1142
|
case "option":
|
|
1251
1143
|
for (var propKey$237 in lastProps)
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
tag,
|
|
1261
|
-
propKey$237,
|
|
1262
|
-
null,
|
|
1263
|
-
nextProps,
|
|
1264
|
-
propKey$221
|
|
1265
|
-
);
|
|
1266
|
-
}
|
|
1144
|
+
propKey$221 = lastProps[propKey$237], lastProps.hasOwnProperty(propKey$237) && propKey$221 != null && !nextProps.hasOwnProperty(propKey$237) && (propKey$237 === "selected" ? domElement.selected = !1 : setProp(
|
|
1145
|
+
domElement,
|
|
1146
|
+
tag,
|
|
1147
|
+
propKey$237,
|
|
1148
|
+
null,
|
|
1149
|
+
nextProps,
|
|
1150
|
+
propKey$221
|
|
1151
|
+
));
|
|
1267
1152
|
for (lastDefaultValue in nextProps)
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
domElement,
|
|
1277
|
-
tag,
|
|
1278
|
-
lastDefaultValue,
|
|
1279
|
-
propKey$221,
|
|
1280
|
-
nextProps,
|
|
1281
|
-
propKey
|
|
1282
|
-
);
|
|
1283
|
-
}
|
|
1153
|
+
propKey$221 = nextProps[lastDefaultValue], propKey = lastProps[lastDefaultValue], nextProps.hasOwnProperty(lastDefaultValue) && propKey$221 !== propKey && (propKey$221 != null || propKey != null) && (lastDefaultValue === "selected" ? (propKey$221 !== propKey && (viewTransitionMutationContext = !0), domElement.selected = propKey$221 && typeof propKey$221 != "function" && typeof propKey$221 != "symbol") : setProp(
|
|
1154
|
+
domElement,
|
|
1155
|
+
tag,
|
|
1156
|
+
lastDefaultValue,
|
|
1157
|
+
propKey$221,
|
|
1158
|
+
nextProps,
|
|
1159
|
+
propKey
|
|
1160
|
+
));
|
|
1284
1161
|
return;
|
|
1285
1162
|
case "img":
|
|
1286
1163
|
case "link":
|
|
@@ -1298,13 +1175,13 @@
|
|
|
1298
1175
|
case "wbr":
|
|
1299
1176
|
case "menuitem":
|
|
1300
1177
|
for (var propKey$242 in lastProps)
|
|
1301
|
-
propKey$221 = lastProps[propKey$242], lastProps.hasOwnProperty(propKey$242) &&
|
|
1178
|
+
propKey$221 = lastProps[propKey$242], lastProps.hasOwnProperty(propKey$242) && propKey$221 != null && !nextProps.hasOwnProperty(propKey$242) && setProp(domElement, tag, propKey$242, null, nextProps, propKey$221);
|
|
1302
1179
|
for (checked in nextProps)
|
|
1303
|
-
if (propKey$221 = nextProps[checked], propKey = lastProps[checked], nextProps.hasOwnProperty(checked) && propKey$221 !== propKey && (
|
|
1180
|
+
if (propKey$221 = nextProps[checked], propKey = lastProps[checked], nextProps.hasOwnProperty(checked) && propKey$221 !== propKey && (propKey$221 != null || propKey != null))
|
|
1304
1181
|
switch (checked) {
|
|
1305
1182
|
case "children":
|
|
1306
1183
|
case "dangerouslySetInnerHTML":
|
|
1307
|
-
if (
|
|
1184
|
+
if (propKey$221 != null)
|
|
1308
1185
|
throw Error(formatProdErrorMessage(137, tag));
|
|
1309
1186
|
break;
|
|
1310
1187
|
default:
|
|
@@ -1321,7 +1198,7 @@
|
|
|
1321
1198
|
default:
|
|
1322
1199
|
if (isCustomElement(tag)) {
|
|
1323
1200
|
for (var propKey$247 in lastProps)
|
|
1324
|
-
propKey$221 = lastProps[propKey$247], lastProps.hasOwnProperty(propKey$247) && void 0
|
|
1201
|
+
propKey$221 = lastProps[propKey$247], lastProps.hasOwnProperty(propKey$247) && propKey$221 !== void 0 && !nextProps.hasOwnProperty(propKey$247) && setPropOnCustomElement(
|
|
1325
1202
|
domElement,
|
|
1326
1203
|
tag,
|
|
1327
1204
|
propKey$247,
|
|
@@ -1330,7 +1207,7 @@
|
|
|
1330
1207
|
propKey$221
|
|
1331
1208
|
);
|
|
1332
1209
|
for (defaultChecked in nextProps)
|
|
1333
|
-
propKey$221 = nextProps[defaultChecked], propKey = lastProps[defaultChecked], !nextProps.hasOwnProperty(defaultChecked) || propKey$221 === propKey || void 0
|
|
1210
|
+
propKey$221 = nextProps[defaultChecked], propKey = lastProps[defaultChecked], !nextProps.hasOwnProperty(defaultChecked) || propKey$221 === propKey || propKey$221 === void 0 && propKey === void 0 || setPropOnCustomElement(
|
|
1334
1211
|
domElement,
|
|
1335
1212
|
tag,
|
|
1336
1213
|
defaultChecked,
|
|
@@ -1342,9 +1219,9 @@
|
|
|
1342
1219
|
}
|
|
1343
1220
|
}
|
|
1344
1221
|
for (var propKey$252 in lastProps)
|
|
1345
|
-
propKey$221 = lastProps[propKey$252], lastProps.hasOwnProperty(propKey$252) &&
|
|
1222
|
+
propKey$221 = lastProps[propKey$252], lastProps.hasOwnProperty(propKey$252) && propKey$221 != null && !nextProps.hasOwnProperty(propKey$252) && setProp(domElement, tag, propKey$252, null, nextProps, propKey$221);
|
|
1346
1223
|
for (lastProp in nextProps)
|
|
1347
|
-
propKey$221 = nextProps[lastProp], propKey = lastProps[lastProp], !nextProps.hasOwnProperty(lastProp) || propKey$221 === propKey ||
|
|
1224
|
+
propKey$221 = nextProps[lastProp], propKey = lastProps[lastProp], !nextProps.hasOwnProperty(lastProp) || propKey$221 === propKey || propKey$221 == null && propKey == null || setProp(domElement, tag, lastProp, propKey$221, nextProps, propKey);
|
|
1348
1225
|
}
|
|
1349
1226
|
function isLikelyStaticResource(initiatorType) {
|
|
1350
1227
|
switch (initiatorType) {
|
|
@@ -1355,38 +1232,32 @@
|
|
|
1355
1232
|
case "image":
|
|
1356
1233
|
case "input":
|
|
1357
1234
|
case "link":
|
|
1358
|
-
return
|
|
1235
|
+
return !0;
|
|
1359
1236
|
default:
|
|
1360
|
-
return
|
|
1237
|
+
return !1;
|
|
1361
1238
|
}
|
|
1362
1239
|
}
|
|
1363
1240
|
function estimateBandwidth() {
|
|
1364
|
-
if (
|
|
1241
|
+
if (typeof performance.getEntriesByType == "function") {
|
|
1365
1242
|
for (var count3 = 0, bits = 0, resourceEntries = performance.getEntriesByType("resource"), i = 0; i < resourceEntries.length; i++) {
|
|
1366
1243
|
var entry = resourceEntries[i], transferSize = entry.transferSize, initiatorType = entry.initiatorType, duration = entry.duration;
|
|
1367
1244
|
if (transferSize && duration && isLikelyStaticResource(initiatorType)) {
|
|
1368
|
-
initiatorType = 0;
|
|
1369
|
-
duration = entry.responseEnd;
|
|
1370
|
-
for (i += 1; i < resourceEntries.length; i++) {
|
|
1245
|
+
for (initiatorType = 0, duration = entry.responseEnd, i += 1; i < resourceEntries.length; i++) {
|
|
1371
1246
|
var overlapEntry = resourceEntries[i], overlapStartTime = overlapEntry.startTime;
|
|
1372
1247
|
if (overlapStartTime > duration) break;
|
|
1373
1248
|
var overlapTransferSize = overlapEntry.transferSize, overlapInitiatorType = overlapEntry.initiatorType;
|
|
1374
1249
|
overlapTransferSize && isLikelyStaticResource(overlapInitiatorType) && (overlapEntry = overlapEntry.responseEnd, initiatorType += overlapTransferSize * (overlapEntry < duration ? 1 : (duration - overlapStartTime) / (overlapEntry - overlapStartTime)));
|
|
1375
1250
|
}
|
|
1376
|
-
--i;
|
|
1377
|
-
bits += 8 * (transferSize + initiatorType) / (entry.duration / 1e3);
|
|
1378
|
-
count3++;
|
|
1379
|
-
if (10 < count3) break;
|
|
1251
|
+
if (--i, bits += 8 * (transferSize + initiatorType) / (entry.duration / 1e3), count3++, 10 < count3) break;
|
|
1380
1252
|
}
|
|
1381
1253
|
}
|
|
1382
1254
|
if (0 < count3) return bits / count3 / 1e6;
|
|
1383
1255
|
}
|
|
1384
|
-
return navigator.connection && (count3 = navigator.connection.downlink, "number"
|
|
1256
|
+
return navigator.connection && (count3 = navigator.connection.downlink, typeof count3 == "number") ? count3 : 5;
|
|
1385
1257
|
}
|
|
1386
|
-
var eventsEnabled = null;
|
|
1387
|
-
var selectionInformation = null;
|
|
1258
|
+
var eventsEnabled = null, selectionInformation = null;
|
|
1388
1259
|
function getOwnerDocumentFromRootContainer(rootContainerElement) {
|
|
1389
|
-
return
|
|
1260
|
+
return rootContainerElement.nodeType === 9 ? rootContainerElement : rootContainerElement.ownerDocument;
|
|
1390
1261
|
}
|
|
1391
1262
|
function getOwnHostContext(namespaceURI) {
|
|
1392
1263
|
switch (namespaceURI) {
|
|
@@ -1399,7 +1270,7 @@
|
|
|
1399
1270
|
}
|
|
1400
1271
|
}
|
|
1401
1272
|
function getChildHostContextProd(parentNamespace, type) {
|
|
1402
|
-
if (
|
|
1273
|
+
if (parentNamespace === 0)
|
|
1403
1274
|
switch (type) {
|
|
1404
1275
|
case "svg":
|
|
1405
1276
|
return 1;
|
|
@@ -1408,37 +1279,22 @@
|
|
|
1408
1279
|
default:
|
|
1409
1280
|
return 0;
|
|
1410
1281
|
}
|
|
1411
|
-
return
|
|
1282
|
+
return parentNamespace === 1 && type === "foreignObject" ? 0 : parentNamespace;
|
|
1412
1283
|
}
|
|
1413
1284
|
function createHoistableInstance(type, props, rootContainerInstance, internalInstanceHandle) {
|
|
1414
|
-
rootContainerInstance = getOwnerDocumentFromRootContainer(
|
|
1285
|
+
return rootContainerInstance = getOwnerDocumentFromRootContainer(
|
|
1415
1286
|
rootContainerInstance
|
|
1416
|
-
).createElement(type);
|
|
1417
|
-
rootContainerInstance[internalInstanceKey] = internalInstanceHandle;
|
|
1418
|
-
rootContainerInstance[internalPropsKey] = props;
|
|
1419
|
-
setInitialProperties(rootContainerInstance, type, props);
|
|
1420
|
-
markNodeAsHoistable(rootContainerInstance);
|
|
1421
|
-
return rootContainerInstance;
|
|
1287
|
+
).createElement(type), rootContainerInstance[internalInstanceKey] = internalInstanceHandle, rootContainerInstance[internalPropsKey] = props, setInitialProperties(rootContainerInstance, type, props), markNodeAsHoistable(rootContainerInstance), rootContainerInstance;
|
|
1422
1288
|
}
|
|
1423
1289
|
function shouldSetTextContent(type, props) {
|
|
1424
|
-
return "textarea"
|
|
1290
|
+
return type === "textarea" || type === "noscript" || typeof props.children == "string" || typeof props.children == "number" || typeof props.children == "bigint" || typeof props.dangerouslySetInnerHTML == "object" && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;
|
|
1425
1291
|
}
|
|
1426
1292
|
var currentPopstateTransitionEvent = null;
|
|
1427
1293
|
function shouldAttemptEagerTransition() {
|
|
1428
1294
|
var event = window.event;
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
return true;
|
|
1433
|
-
}
|
|
1434
|
-
currentPopstateTransitionEvent = null;
|
|
1435
|
-
return false;
|
|
1436
|
-
}
|
|
1437
|
-
var scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0;
|
|
1438
|
-
var cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0;
|
|
1439
|
-
var localPromise = "function" === typeof Promise ? Promise : void 0;
|
|
1440
|
-
var localRequestAnimationFrame = "function" === typeof requestAnimationFrame ? requestAnimationFrame : scheduleTimeout;
|
|
1441
|
-
var scheduleMicrotask = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof localPromise ? function(callback) {
|
|
1295
|
+
return event && event.type === "popstate" ? event === currentPopstateTransitionEvent ? !1 : (currentPopstateTransitionEvent = event, !0) : (currentPopstateTransitionEvent = null, !1);
|
|
1296
|
+
}
|
|
1297
|
+
var scheduleTimeout = typeof setTimeout == "function" ? setTimeout : void 0, cancelTimeout = typeof clearTimeout == "function" ? clearTimeout : void 0, localPromise = typeof Promise == "function" ? Promise : void 0, localRequestAnimationFrame = typeof requestAnimationFrame == "function" ? requestAnimationFrame : scheduleTimeout, scheduleMicrotask = typeof queueMicrotask == "function" ? queueMicrotask : typeof localPromise < "u" ? function(callback) {
|
|
1442
1298
|
return localPromise.resolve(null).then(callback).catch(handleErrorInNextTick);
|
|
1443
1299
|
} : scheduleTimeout;
|
|
1444
1300
|
function handleErrorInNextTick(error) {
|
|
@@ -1447,37 +1303,33 @@
|
|
|
1447
1303
|
});
|
|
1448
1304
|
}
|
|
1449
1305
|
function isSingletonScope(type) {
|
|
1450
|
-
return "head"
|
|
1306
|
+
return type === "head";
|
|
1451
1307
|
}
|
|
1452
1308
|
function clearHydrationBoundary(parentInstance, hydrationInstance) {
|
|
1453
1309
|
var node = hydrationInstance, depth = 0;
|
|
1454
1310
|
do {
|
|
1455
1311
|
var nextNode = node.nextSibling;
|
|
1456
|
-
parentInstance.removeChild(node)
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
parentInstance.removeChild(nextNode);
|
|
1461
|
-
retryIfBlockedOn(hydrationInstance);
|
|
1312
|
+
if (parentInstance.removeChild(node), nextNode && nextNode.nodeType === 8)
|
|
1313
|
+
if (node = nextNode.data, node === "/$" || node === "/&") {
|
|
1314
|
+
if (depth === 0) {
|
|
1315
|
+
parentInstance.removeChild(nextNode), retryIfBlockedOn(hydrationInstance);
|
|
1462
1316
|
return;
|
|
1463
1317
|
}
|
|
1464
1318
|
depth--;
|
|
1465
|
-
} else if ("$"
|
|
1319
|
+
} else if (node === "$" || node === "$?" || node === "$~" || node === "$!" || node === "&")
|
|
1466
1320
|
depth++;
|
|
1467
|
-
else if ("html"
|
|
1321
|
+
else if (node === "html")
|
|
1468
1322
|
clearSingletonPreambleContribution(
|
|
1469
1323
|
parentInstance.ownerDocument.documentElement
|
|
1470
1324
|
);
|
|
1471
|
-
else if ("head"
|
|
1472
|
-
node = parentInstance.ownerDocument.head;
|
|
1473
|
-
clearSingletonPreambleContribution(node);
|
|
1325
|
+
else if (node === "head") {
|
|
1326
|
+
node = parentInstance.ownerDocument.head, clearSingletonPreambleContribution(node);
|
|
1474
1327
|
for (var node$jscomp$0 = node.firstChild; node$jscomp$0; ) {
|
|
1475
1328
|
var nextNode$jscomp$0 = node$jscomp$0.nextSibling, nodeName = node$jscomp$0.nodeName;
|
|
1476
|
-
node$jscomp$0[internalHoistableMarker] || "SCRIPT"
|
|
1477
|
-
node$jscomp$0 = nextNode$jscomp$0;
|
|
1329
|
+
node$jscomp$0[internalHoistableMarker] || nodeName === "SCRIPT" || nodeName === "STYLE" || nodeName === "LINK" && node$jscomp$0.rel.toLowerCase() === "stylesheet" || node.removeChild(node$jscomp$0), node$jscomp$0 = nextNode$jscomp$0;
|
|
1478
1330
|
}
|
|
1479
1331
|
} else
|
|
1480
|
-
"body"
|
|
1332
|
+
node === "body" && clearSingletonPreambleContribution(parentInstance.ownerDocument.body);
|
|
1481
1333
|
node = nextNode;
|
|
1482
1334
|
} while (node);
|
|
1483
1335
|
retryIfBlockedOn(hydrationInstance);
|
|
@@ -1487,53 +1339,42 @@
|
|
|
1487
1339
|
suspenseInstance = 0;
|
|
1488
1340
|
do {
|
|
1489
1341
|
var nextNode = node.nextSibling;
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
"$" !== node && "$?" !== node && "$~" !== node && "$!" !== node || suspenseInstance++;
|
|
1342
|
+
if (node.nodeType === 1 ? isHidden2 ? (node._stashedDisplay = node.style.display, node.style.display = "none") : (node.style.display = node._stashedDisplay || "", node.getAttribute("style") === "" && node.removeAttribute("style")) : node.nodeType === 3 && (isHidden2 ? (node._stashedText = node.nodeValue, node.nodeValue = "") : node.nodeValue = node._stashedText || ""), nextNode && nextNode.nodeType === 8)
|
|
1343
|
+
if (node = nextNode.data, node === "/$") {
|
|
1344
|
+
if (suspenseInstance === 0) break;
|
|
1345
|
+
suspenseInstance--;
|
|
1346
|
+
} else
|
|
1347
|
+
node !== "$" && node !== "$?" && node !== "$~" && node !== "$!" || suspenseInstance++;
|
|
1497
1348
|
node = nextNode;
|
|
1498
1349
|
} while (node);
|
|
1499
1350
|
}
|
|
1500
1351
|
function applyViewTransitionName(instance, name, className) {
|
|
1501
|
-
name = CSS.escape(name) !== name ? "r-" + btoa(name).replace(/=/g, "") : name
|
|
1502
|
-
|
|
1503
|
-
null != className && (instance.style.viewTransitionClass = className);
|
|
1504
|
-
className = getComputedStyle(instance);
|
|
1505
|
-
if ("inline" === className.display) {
|
|
1506
|
-
name = instance.getClientRects();
|
|
1507
|
-
if (1 === name.length) var JSCompiler_inline_result = 1;
|
|
1352
|
+
if (name = CSS.escape(name) !== name ? "r-" + btoa(name).replace(/=/g, "") : name, instance.style.viewTransitionName = name, className != null && (instance.style.viewTransitionClass = className), className = getComputedStyle(instance), className.display === "inline") {
|
|
1353
|
+
if (name = instance.getClientRects(), name.length === 1) var JSCompiler_inline_result = 1;
|
|
1508
1354
|
else
|
|
1509
1355
|
for (var i = JSCompiler_inline_result = 0; i < name.length; i++) {
|
|
1510
|
-
var
|
|
1511
|
-
0 <
|
|
1356
|
+
var rect2 = name[i];
|
|
1357
|
+
0 < rect2.width && 0 < rect2.height && JSCompiler_inline_result++;
|
|
1512
1358
|
}
|
|
1513
|
-
|
|
1359
|
+
JSCompiler_inline_result === 1 && (instance = instance.style, instance.display = name.length === 1 ? "inline-block" : "block", instance.marginTop = "-" + className.paddingTop, instance.marginBottom = "-" + className.paddingBottom);
|
|
1514
1360
|
}
|
|
1515
1361
|
}
|
|
1516
1362
|
function restoreViewTransitionName(instance, props) {
|
|
1517
|
-
instance = instance.style;
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
return {
|
|
1528
|
-
rect,
|
|
1529
|
-
abs: "absolute" === computedStyle.position || "fixed" === computedStyle.position,
|
|
1530
|
-
clip: "none" !== computedStyle.clipPath || "visible" !== computedStyle.overflow || "none" !== computedStyle.filter || "none" !== computedStyle.mask || "none" !== computedStyle.mask || "0px" !== computedStyle.borderRadius,
|
|
1531
|
-
view: 0 <= rect.bottom && 0 <= rect.right && rect.top <= element.innerHeight && rect.left <= element.innerWidth
|
|
1363
|
+
instance = instance.style, props = props.style;
|
|
1364
|
+
var viewTransitionName = props != null ? props.hasOwnProperty("viewTransitionName") ? props.viewTransitionName : props.hasOwnProperty("view-transition-name") ? props["view-transition-name"] : null : null;
|
|
1365
|
+
instance.viewTransitionName = viewTransitionName == null || typeof viewTransitionName == "boolean" ? "" : ("" + viewTransitionName).trim(), viewTransitionName = props != null ? props.hasOwnProperty("viewTransitionClass") ? props.viewTransitionClass : props.hasOwnProperty("view-transition-class") ? props["view-transition-class"] : null : null, instance.viewTransitionClass = viewTransitionName == null || typeof viewTransitionName == "boolean" ? "" : ("" + viewTransitionName).trim(), instance.display === "inline-block" && (props == null ? instance.display = instance.margin = "" : (viewTransitionName = props.display, instance.display = viewTransitionName == null || typeof viewTransitionName == "boolean" ? "" : viewTransitionName, viewTransitionName = props.margin, viewTransitionName != null ? instance.margin = viewTransitionName : (viewTransitionName = props.hasOwnProperty("marginTop") ? props.marginTop : props["margin-top"], instance.marginTop = viewTransitionName == null || typeof viewTransitionName == "boolean" ? "" : viewTransitionName, props = props.hasOwnProperty("marginBottom") ? props.marginBottom : props["margin-bottom"], instance.marginBottom = props == null || typeof props == "boolean" ? "" : props)));
|
|
1366
|
+
}
|
|
1367
|
+
function createMeasurement(rect2, computedStyle, element) {
|
|
1368
|
+
return element = element.ownerDocument.defaultView, {
|
|
1369
|
+
rect: rect2,
|
|
1370
|
+
abs: computedStyle.position === "absolute" || computedStyle.position === "fixed",
|
|
1371
|
+
clip: computedStyle.clipPath !== "none" || computedStyle.overflow !== "visible" || computedStyle.filter !== "none" || computedStyle.mask !== "none" || computedStyle.mask !== "none" || computedStyle.borderRadius !== "0px",
|
|
1372
|
+
view: 0 <= rect2.bottom && 0 <= rect2.right && rect2.top <= element.innerHeight && rect2.left <= element.innerWidth
|
|
1532
1373
|
};
|
|
1533
1374
|
}
|
|
1534
1375
|
function measureInstance(instance) {
|
|
1535
|
-
var
|
|
1536
|
-
return createMeasurement(
|
|
1376
|
+
var rect2 = instance.getBoundingClientRect(), computedStyle = getComputedStyle(instance);
|
|
1377
|
+
return createMeasurement(rect2, computedStyle, instance);
|
|
1537
1378
|
}
|
|
1538
1379
|
function measureClonedInstance(instance) {
|
|
1539
1380
|
var measuredRect = instance.getBoundingClientRect();
|
|
@@ -1550,34 +1391,29 @@
|
|
|
1550
1391
|
return ownerDocument.documentElement.clientHeight;
|
|
1551
1392
|
}
|
|
1552
1393
|
function waitForImageToLoad(resolve) {
|
|
1553
|
-
this.addEventListener("load", resolve);
|
|
1554
|
-
this.addEventListener("error", resolve);
|
|
1394
|
+
this.addEventListener("load", resolve), this.addEventListener("error", resolve);
|
|
1555
1395
|
}
|
|
1556
1396
|
function startViewTransition(suspendedState, rootContainer, transitionTypes, mutationCallback, layoutCallback, afterMutationCallback, spawnedWorkCallback, passiveCallback, errorCallback) {
|
|
1557
|
-
var ownerDocument =
|
|
1397
|
+
var ownerDocument = rootContainer.nodeType === 9 ? rootContainer : rootContainer.ownerDocument;
|
|
1558
1398
|
try {
|
|
1559
1399
|
var transition = ownerDocument.startViewTransition({
|
|
1560
1400
|
update: function() {
|
|
1561
1401
|
var ownerWindow = ownerDocument.defaultView, pendingNavigation = ownerWindow.navigation && ownerWindow.navigation.transition, previousFontLoadingStatus = ownerDocument.fonts.status;
|
|
1562
1402
|
mutationCallback();
|
|
1563
1403
|
var blockingPromises = [];
|
|
1564
|
-
"loaded"
|
|
1565
|
-
previousFontLoadingStatus = blockingPromises.length;
|
|
1566
|
-
if (null !== suspendedState)
|
|
1404
|
+
if (previousFontLoadingStatus === "loaded" && (forceLayout(ownerDocument), ownerDocument.fonts.status === "loading" && blockingPromises.push(ownerDocument.fonts.ready)), previousFontLoadingStatus = blockingPromises.length, suspendedState !== null)
|
|
1567
1405
|
for (var suspenseyImages = suspendedState.suspenseyImages, imgBytes = 0, i = 0; i < suspenseyImages.length; i++) {
|
|
1568
1406
|
var suspenseyImage = suspenseyImages[i];
|
|
1569
1407
|
if (!suspenseyImage.complete) {
|
|
1570
|
-
var
|
|
1571
|
-
if (0 <
|
|
1572
|
-
imgBytes += estimateImageBytes(suspenseyImage)
|
|
1573
|
-
if (imgBytes > estimatedBytesWithinLimit) {
|
|
1408
|
+
var rect2 = suspenseyImage.getBoundingClientRect();
|
|
1409
|
+
if (0 < rect2.bottom && 0 < rect2.right && rect2.top < ownerWindow.innerHeight && rect2.left < ownerWindow.innerWidth) {
|
|
1410
|
+
if (imgBytes += estimateImageBytes(suspenseyImage), imgBytes > estimatedBytesWithinLimit) {
|
|
1574
1411
|
blockingPromises.length = previousFontLoadingStatus;
|
|
1575
1412
|
break;
|
|
1576
1413
|
}
|
|
1577
1414
|
suspenseyImage = new Promise(
|
|
1578
1415
|
waitForImageToLoad.bind(suspenseyImage)
|
|
1579
|
-
);
|
|
1580
|
-
blockingPromises.push(suspenseyImage);
|
|
1416
|
+
), blockingPromises.push(suspenseyImage);
|
|
1581
1417
|
}
|
|
1582
1418
|
}
|
|
1583
1419
|
}
|
|
@@ -1588,8 +1424,7 @@
|
|
|
1588
1424
|
return setTimeout(resolve, 500);
|
|
1589
1425
|
})
|
|
1590
1426
|
]).then(layoutCallback, layoutCallback), (pendingNavigation ? Promise.allSettled([pendingNavigation.finished, ownerWindow]) : ownerWindow).then(afterMutationCallback, afterMutationCallback);
|
|
1591
|
-
layoutCallback()
|
|
1592
|
-
if (pendingNavigation)
|
|
1427
|
+
if (layoutCallback(), pendingNavigation)
|
|
1593
1428
|
return pendingNavigation.finished.then(
|
|
1594
1429
|
afterMutationCallback,
|
|
1595
1430
|
afterMutationCallback
|
|
@@ -1600,33 +1435,29 @@
|
|
|
1600
1435
|
});
|
|
1601
1436
|
ownerDocument.__reactViewTransition = transition;
|
|
1602
1437
|
var viewTransitionAnimations = [];
|
|
1603
|
-
transition.ready.then(
|
|
1438
|
+
return transition.ready.then(
|
|
1604
1439
|
function() {
|
|
1605
1440
|
for (var animations = ownerDocument.documentElement.getAnimations({
|
|
1606
|
-
subtree:
|
|
1441
|
+
subtree: !0
|
|
1607
1442
|
}), i = 0; i < animations.length; i++) {
|
|
1608
1443
|
var animation = animations[i], effect = animation.effect, pseudoElement = effect.pseudoElement;
|
|
1609
|
-
if (
|
|
1610
|
-
viewTransitionAnimations.push(animation);
|
|
1611
|
-
|
|
1612
|
-
for (var height = pseudoElement = void 0, unchangedDimensions = true, j = 0; j < animation.length; j++) {
|
|
1444
|
+
if (pseudoElement != null && pseudoElement.startsWith("::view-transition")) {
|
|
1445
|
+
viewTransitionAnimations.push(animation), animation = effect.getKeyframes();
|
|
1446
|
+
for (var height = pseudoElement = void 0, unchangedDimensions = !0, j = 0; j < animation.length; j++) {
|
|
1613
1447
|
var keyframe = animation[j], w = keyframe.width;
|
|
1614
|
-
if (void 0
|
|
1448
|
+
if (pseudoElement === void 0) pseudoElement = w;
|
|
1615
1449
|
else if (pseudoElement !== w) {
|
|
1616
|
-
unchangedDimensions =
|
|
1450
|
+
unchangedDimensions = !1;
|
|
1617
1451
|
break;
|
|
1618
1452
|
}
|
|
1619
|
-
w = keyframe.height;
|
|
1620
|
-
if (void 0 === height) height = w;
|
|
1453
|
+
if (w = keyframe.height, height === void 0) height = w;
|
|
1621
1454
|
else if (height !== w) {
|
|
1622
|
-
unchangedDimensions =
|
|
1455
|
+
unchangedDimensions = !1;
|
|
1623
1456
|
break;
|
|
1624
1457
|
}
|
|
1625
|
-
delete keyframe.width;
|
|
1626
|
-
delete keyframe.height;
|
|
1627
|
-
"none" === keyframe.transform && delete keyframe.transform;
|
|
1458
|
+
delete keyframe.width, delete keyframe.height, keyframe.transform === "none" && delete keyframe.transform;
|
|
1628
1459
|
}
|
|
1629
|
-
unchangedDimensions && void 0
|
|
1460
|
+
unchangedDimensions && pseudoElement !== void 0 && height !== void 0 && (effect.setKeyframes(animation), unchangedDimensions = getComputedStyle(
|
|
1630
1461
|
effect.target,
|
|
1631
1462
|
effect.pseudoElement
|
|
1632
1463
|
), unchangedDimensions.width !== pseudoElement || unchangedDimensions.height !== height) && (unchangedDimensions = animation[0], unchangedDimensions.width = pseudoElement, unchangedDimensions.height = height, unchangedDimensions = animation[animation.length - 1], unchangedDimensions.width = pseudoElement, unchangedDimensions.height = height, effect.setKeyframes(animation));
|
|
@@ -1637,42 +1468,30 @@
|
|
|
1637
1468
|
function(error) {
|
|
1638
1469
|
ownerDocument.__reactViewTransition === transition && (ownerDocument.__reactViewTransition = null);
|
|
1639
1470
|
try {
|
|
1640
|
-
|
|
1641
|
-
switch (error.name) {
|
|
1642
|
-
case "InvalidStateError":
|
|
1643
|
-
if ("View transition was skipped because document visibility state is hidden." === error.message || "Skipping view transition because document visibility state has become hidden." === error.message || "Skipping view transition because viewport size changed." === error.message || "Transition was aborted because of invalid state" === error.message)
|
|
1644
|
-
error = null;
|
|
1645
|
-
}
|
|
1646
|
-
null !== error && errorCallback(error);
|
|
1471
|
+
typeof error == "object" && error !== null && error.name === "InvalidStateError" && (error.message === "View transition was skipped because document visibility state is hidden." || error.message === "Skipping view transition because document visibility state has become hidden." || error.message === "Skipping view transition because viewport size changed." || error.message === "Transition was aborted because of invalid state") && (error = null), error !== null && errorCallback(error);
|
|
1647
1472
|
} finally {
|
|
1648
1473
|
mutationCallback(), layoutCallback(), spawnedWorkCallback();
|
|
1649
1474
|
}
|
|
1650
1475
|
}
|
|
1651
|
-
)
|
|
1652
|
-
transition.finished.finally(function() {
|
|
1476
|
+
), transition.finished.finally(function() {
|
|
1653
1477
|
for (var i = 0; i < viewTransitionAnimations.length; i++)
|
|
1654
1478
|
viewTransitionAnimations[i].cancel();
|
|
1655
|
-
ownerDocument.__reactViewTransition === transition && (ownerDocument.__reactViewTransition = null);
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
return transition;
|
|
1659
|
-
} catch (x) {
|
|
1479
|
+
ownerDocument.__reactViewTransition === transition && (ownerDocument.__reactViewTransition = null), passiveCallback();
|
|
1480
|
+
}), transition;
|
|
1481
|
+
} catch {
|
|
1660
1482
|
return mutationCallback(), layoutCallback(), spawnedWorkCallback(), null;
|
|
1661
1483
|
}
|
|
1662
1484
|
}
|
|
1663
1485
|
function ViewTransitionPseudoElement(pseudo, name) {
|
|
1664
|
-
this._scope = document.documentElement;
|
|
1665
|
-
this._selector = "::view-transition-" + pseudo + "(" + name + ")";
|
|
1486
|
+
this._scope = document.documentElement, this._selector = "::view-transition-" + pseudo + "(" + name + ")";
|
|
1666
1487
|
}
|
|
1667
1488
|
ViewTransitionPseudoElement.prototype.animate = function(keyframes, options3) {
|
|
1668
|
-
options3 = "number"
|
|
1669
|
-
options3.pseudoElement = this._selector;
|
|
1670
|
-
return this._scope.animate(keyframes, options3);
|
|
1489
|
+
return options3 = typeof options3 == "number" ? { duration: options3 } : assign({}, options3), options3.pseudoElement = this._selector, this._scope.animate(keyframes, options3);
|
|
1671
1490
|
};
|
|
1672
1491
|
ViewTransitionPseudoElement.prototype.getAnimations = function() {
|
|
1673
|
-
for (var scope = this._scope, selector = this._selector, animations = scope.getAnimations({ subtree:
|
|
1492
|
+
for (var scope = this._scope, selector = this._selector, animations = scope.getAnimations({ subtree: !0 }), result = [], i = 0; i < animations.length; i++) {
|
|
1674
1493
|
var effect = animations[i].effect;
|
|
1675
|
-
|
|
1494
|
+
effect !== null && effect.target === scope && effect.pseudoElement === selector && result.push(animations[i]);
|
|
1676
1495
|
}
|
|
1677
1496
|
return result;
|
|
1678
1497
|
};
|
|
@@ -1689,98 +1508,87 @@
|
|
|
1689
1508
|
};
|
|
1690
1509
|
}
|
|
1691
1510
|
function FragmentInstance(fragmentFiber) {
|
|
1692
|
-
this._fragmentFiber = fragmentFiber;
|
|
1693
|
-
this._observers = this._eventListeners = null;
|
|
1511
|
+
this._fragmentFiber = fragmentFiber, this._observers = this._eventListeners = null;
|
|
1694
1512
|
}
|
|
1695
1513
|
FragmentInstance.prototype.addEventListener = function(type, listener, optionsOrUseCapture) {
|
|
1696
1514
|
var signal = null, cleanup = null;
|
|
1697
|
-
if (
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1515
|
+
if (!(optionsOrUseCapture != null && typeof optionsOrUseCapture != "boolean" && (signal = optionsOrUseCapture.signal || null, signal !== null && signal.aborted))) {
|
|
1516
|
+
this._eventListeners === null && (this._eventListeners = []);
|
|
1517
|
+
var listeners = this._eventListeners;
|
|
1518
|
+
if (indexOfEventListener(listeners, type, listener, optionsOrUseCapture) === -1) {
|
|
1519
|
+
var fragmentInstance = this, attachedListener = listener;
|
|
1520
|
+
optionsOrUseCapture != null && typeof optionsOrUseCapture != "boolean" && optionsOrUseCapture.once === !0 && (attachedListener = function(event) {
|
|
1521
|
+
fragmentInstance.removeEventListener(
|
|
1522
|
+
type,
|
|
1523
|
+
listener,
|
|
1524
|
+
optionsOrUseCapture
|
|
1525
|
+
), typeof listener == "function" ? listener.call(this, event) : listener.handleEvent(event);
|
|
1526
|
+
}), signal !== null && (cleanup = fragmentInstance.removeEventListener.bind(
|
|
1527
|
+
fragmentInstance,
|
|
1705
1528
|
type,
|
|
1706
1529
|
listener,
|
|
1707
1530
|
optionsOrUseCapture
|
|
1531
|
+
), signal.addEventListener("abort", cleanup, { once: !0 }), cleanup = signal.removeEventListener.bind(signal, "abort", cleanup)), signal = getAttachOptions(optionsOrUseCapture), listeners.push({
|
|
1532
|
+
type,
|
|
1533
|
+
listener,
|
|
1534
|
+
optionsOrUseCapture,
|
|
1535
|
+
attachedListener,
|
|
1536
|
+
cleanup
|
|
1537
|
+
}), traverseVisibleInstancesAndTextInstances(
|
|
1538
|
+
this._fragmentFiber.child,
|
|
1539
|
+
!1,
|
|
1540
|
+
addEventListenerToChild,
|
|
1541
|
+
type,
|
|
1542
|
+
attachedListener,
|
|
1543
|
+
signal
|
|
1708
1544
|
);
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
null !== signal && (cleanup = fragmentInstance.removeEventListener.bind(
|
|
1712
|
-
fragmentInstance,
|
|
1713
|
-
type,
|
|
1714
|
-
listener,
|
|
1715
|
-
optionsOrUseCapture
|
|
1716
|
-
), signal.addEventListener("abort", cleanup, { once: true }), cleanup = signal.removeEventListener.bind(signal, "abort", cleanup));
|
|
1717
|
-
signal = getAttachOptions(optionsOrUseCapture);
|
|
1718
|
-
listeners.push({
|
|
1719
|
-
type,
|
|
1720
|
-
listener,
|
|
1721
|
-
optionsOrUseCapture,
|
|
1722
|
-
attachedListener,
|
|
1723
|
-
cleanup
|
|
1724
|
-
});
|
|
1725
|
-
traverseVisibleInstancesAndTextInstances(
|
|
1726
|
-
this._fragmentFiber.child,
|
|
1727
|
-
false,
|
|
1728
|
-
addEventListenerToChild,
|
|
1729
|
-
type,
|
|
1730
|
-
attachedListener,
|
|
1731
|
-
signal
|
|
1732
|
-
);
|
|
1545
|
+
}
|
|
1546
|
+
this._eventListeners = listeners;
|
|
1733
1547
|
}
|
|
1734
|
-
this._eventListeners = listeners;
|
|
1735
1548
|
};
|
|
1736
1549
|
function addEventListenerToChild(child, type, listener, optionsOrUseCapture) {
|
|
1737
|
-
getInstanceFromHostFiber(child).addEventListener(
|
|
1550
|
+
return getInstanceFromHostFiber(child).addEventListener(
|
|
1738
1551
|
type,
|
|
1739
1552
|
listener,
|
|
1740
1553
|
optionsOrUseCapture
|
|
1741
|
-
);
|
|
1742
|
-
return false;
|
|
1554
|
+
), !1;
|
|
1743
1555
|
}
|
|
1744
1556
|
FragmentInstance.prototype.removeEventListener = function(type, listener, optionsOrUseCapture) {
|
|
1745
1557
|
var listeners = this._eventListeners;
|
|
1746
|
-
if (
|
|
1558
|
+
if (listeners !== null && (listener = indexOfEventListener(
|
|
1747
1559
|
listeners,
|
|
1748
1560
|
type,
|
|
1749
1561
|
listener,
|
|
1750
1562
|
optionsOrUseCapture
|
|
1751
|
-
),
|
|
1563
|
+
), listener !== -1)) {
|
|
1752
1564
|
var _listeners$index = listeners[listener];
|
|
1753
1565
|
optionsOrUseCapture = _listeners$index.attachedListener;
|
|
1754
1566
|
var cleanup = _listeners$index.cleanup;
|
|
1755
|
-
_listeners$index = getAttachOptions(_listeners$index.optionsOrUseCapture)
|
|
1756
|
-
traverseVisibleInstancesAndTextInstances(
|
|
1567
|
+
_listeners$index = getAttachOptions(_listeners$index.optionsOrUseCapture), traverseVisibleInstancesAndTextInstances(
|
|
1757
1568
|
this._fragmentFiber.child,
|
|
1758
|
-
|
|
1569
|
+
!1,
|
|
1759
1570
|
removeEventListenerFromChild,
|
|
1760
1571
|
type,
|
|
1761
1572
|
optionsOrUseCapture,
|
|
1762
1573
|
_listeners$index
|
|
1763
|
-
);
|
|
1764
|
-
listeners.splice(listener, 1);
|
|
1765
|
-
null !== cleanup && cleanup();
|
|
1574
|
+
), listeners.splice(listener, 1), cleanup !== null && cleanup();
|
|
1766
1575
|
}
|
|
1767
1576
|
};
|
|
1768
1577
|
function removeEventListenerFromChild(child, type, listener, optionsOrUseCapture) {
|
|
1769
|
-
getInstanceFromHostFiber(child).removeEventListener(
|
|
1578
|
+
return getInstanceFromHostFiber(child).removeEventListener(
|
|
1770
1579
|
type,
|
|
1771
1580
|
listener,
|
|
1772
1581
|
optionsOrUseCapture
|
|
1773
|
-
);
|
|
1774
|
-
return false;
|
|
1582
|
+
), !1;
|
|
1775
1583
|
}
|
|
1776
1584
|
function getAttachOptions(opts) {
|
|
1777
|
-
return
|
|
1585
|
+
return opts != null && typeof opts != "boolean" && (opts.once === !0 || opts.signal instanceof AbortSignal) ? { capture: opts.capture, passive: opts.passive } : opts;
|
|
1778
1586
|
}
|
|
1779
1587
|
function normalizeListenerOptions(opts) {
|
|
1780
|
-
return
|
|
1588
|
+
return opts == null ? "c=0" : typeof opts == "boolean" ? "c=" + (opts ? "1" : "0") : "c=" + (opts.capture ? "1" : "0");
|
|
1781
1589
|
}
|
|
1782
1590
|
function indexOfEventListener(eventListeners, type, listener, optionsOrUseCapture) {
|
|
1783
|
-
if (
|
|
1591
|
+
if (eventListeners.length === 0) return -1;
|
|
1784
1592
|
optionsOrUseCapture = normalizeListenerOptions(optionsOrUseCapture);
|
|
1785
1593
|
for (var i = 0; i < eventListeners.length; i++) {
|
|
1786
1594
|
var item = eventListeners[i];
|
|
@@ -1793,11 +1601,11 @@
|
|
|
1793
1601
|
var parentHostFiber = getFragmentParentInstanceOrContainerFiber(
|
|
1794
1602
|
this._fragmentFiber
|
|
1795
1603
|
);
|
|
1796
|
-
if (
|
|
1604
|
+
if (parentHostFiber === null) return !0;
|
|
1797
1605
|
parentHostFiber = getInstanceFromHostFiber(parentHostFiber);
|
|
1798
1606
|
var eventListeners = this._eventListeners;
|
|
1799
|
-
if (
|
|
1800
|
-
var temp =
|
|
1607
|
+
if (eventListeners !== null && 0 < eventListeners.length || !event.bubbles) {
|
|
1608
|
+
var temp = parentHostFiber.nodeType === 9 ? parentHostFiber.createComment("") : document.createTextNode("");
|
|
1801
1609
|
if (eventListeners)
|
|
1802
1610
|
for (var i = 0; i < eventListeners.length; i++) {
|
|
1803
1611
|
var _eventListeners$i = eventListeners[i];
|
|
@@ -1807,24 +1615,21 @@
|
|
|
1807
1615
|
getAttachOptions(_eventListeners$i.optionsOrUseCapture)
|
|
1808
1616
|
);
|
|
1809
1617
|
}
|
|
1810
|
-
parentHostFiber.appendChild(temp)
|
|
1811
|
-
event = temp.dispatchEvent(event);
|
|
1812
|
-
if (eventListeners)
|
|
1618
|
+
if (parentHostFiber.appendChild(temp), event = temp.dispatchEvent(event), eventListeners)
|
|
1813
1619
|
for (i = 0; i < eventListeners.length; i++)
|
|
1814
1620
|
_eventListeners$i = eventListeners[i], temp.removeEventListener(
|
|
1815
1621
|
_eventListeners$i.type,
|
|
1816
1622
|
_eventListeners$i.attachedListener,
|
|
1817
1623
|
getAttachOptions(_eventListeners$i.optionsOrUseCapture)
|
|
1818
1624
|
);
|
|
1819
|
-
parentHostFiber.removeChild(temp);
|
|
1820
|
-
return event;
|
|
1625
|
+
return parentHostFiber.removeChild(temp), event;
|
|
1821
1626
|
}
|
|
1822
1627
|
return parentHostFiber.dispatchEvent(event);
|
|
1823
1628
|
};
|
|
1824
1629
|
FragmentInstance.prototype.focus = function(focusOptions) {
|
|
1825
1630
|
traverseVisibleInstancesAndTextInstances(
|
|
1826
1631
|
this._fragmentFiber.child,
|
|
1827
|
-
|
|
1632
|
+
!0,
|
|
1828
1633
|
setFocusOnFiberIfFocusable,
|
|
1829
1634
|
focusOptions,
|
|
1830
1635
|
void 0,
|
|
@@ -1832,15 +1637,13 @@
|
|
|
1832
1637
|
);
|
|
1833
1638
|
};
|
|
1834
1639
|
function setFocusOnFiberIfFocusable(fiber, focusOptions) {
|
|
1835
|
-
|
|
1836
|
-
fiber = getInstanceFromHostFiber(fiber);
|
|
1837
|
-
return setFocusIfFocusable(fiber, focusOptions);
|
|
1640
|
+
return fiber.tag === 6 ? !1 : (fiber = getInstanceFromHostFiber(fiber), setFocusIfFocusable(fiber, focusOptions));
|
|
1838
1641
|
}
|
|
1839
1642
|
FragmentInstance.prototype.focusLast = function(focusOptions) {
|
|
1840
1643
|
var children = [];
|
|
1841
1644
|
traverseVisibleInstancesAndTextInstances(
|
|
1842
1645
|
this._fragmentFiber.child,
|
|
1843
|
-
|
|
1646
|
+
!0,
|
|
1844
1647
|
collectChildren,
|
|
1845
1648
|
children,
|
|
1846
1649
|
void 0,
|
|
@@ -1849,16 +1652,15 @@
|
|
|
1849
1652
|
for (var i = children.length - 1; 0 <= i && !setFocusOnFiberIfFocusable(children[i], focusOptions); i--) ;
|
|
1850
1653
|
};
|
|
1851
1654
|
function collectChildren(child, collection) {
|
|
1852
|
-
collection.push(child);
|
|
1853
|
-
return false;
|
|
1655
|
+
return collection.push(child), !1;
|
|
1854
1656
|
}
|
|
1855
1657
|
FragmentInstance.prototype.blur = function() {
|
|
1856
1658
|
var parentHostFiber = getFragmentParentInstanceOrContainerFiber(
|
|
1857
1659
|
this._fragmentFiber
|
|
1858
1660
|
);
|
|
1859
|
-
|
|
1661
|
+
parentHostFiber !== null && (parentHostFiber = getInstanceFromHostFiber(parentHostFiber), parentHostFiber = getOwnerDocumentFromRootContainer(parentHostFiber).activeElement, parentHostFiber !== null && traverseVisibleInstancesAndTextInstances(
|
|
1860
1662
|
this._fragmentFiber.child,
|
|
1861
|
-
|
|
1663
|
+
!1,
|
|
1862
1664
|
blurActiveElementWithinFragment,
|
|
1863
1665
|
parentHostFiber,
|
|
1864
1666
|
void 0,
|
|
@@ -1866,16 +1668,12 @@
|
|
|
1866
1668
|
));
|
|
1867
1669
|
};
|
|
1868
1670
|
function blurActiveElementWithinFragment(child, activeElement2) {
|
|
1869
|
-
|
|
1870
|
-
child = getInstanceFromHostFiber(child);
|
|
1871
|
-
return child === activeElement2 || child.contains(activeElement2) ? (activeElement2.blur(), true) : false;
|
|
1671
|
+
return child.tag === 6 ? !1 : (child = getInstanceFromHostFiber(child), child === activeElement2 || child.contains(activeElement2) ? (activeElement2.blur(), !0) : !1);
|
|
1872
1672
|
}
|
|
1873
1673
|
FragmentInstance.prototype.observeUsing = function(observer) {
|
|
1874
|
-
|
|
1875
|
-
this._observers.add(observer);
|
|
1876
|
-
traverseVisibleInstancesAndTextInstances(
|
|
1674
|
+
this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(observer), traverseVisibleInstancesAndTextInstances(
|
|
1877
1675
|
this._fragmentFiber.child,
|
|
1878
|
-
|
|
1676
|
+
!1,
|
|
1879
1677
|
observeChild,
|
|
1880
1678
|
observer,
|
|
1881
1679
|
void 0,
|
|
@@ -1883,18 +1681,14 @@
|
|
|
1883
1681
|
);
|
|
1884
1682
|
};
|
|
1885
1683
|
function observeChild(child, observer) {
|
|
1886
|
-
|
|
1887
|
-
child = getInstanceFromHostFiber(child);
|
|
1888
|
-
observer.observe(child);
|
|
1889
|
-
return false;
|
|
1684
|
+
return child.tag === 6 || (child = getInstanceFromHostFiber(child), observer.observe(child)), !1;
|
|
1890
1685
|
}
|
|
1891
1686
|
FragmentInstance.prototype.unobserveUsing = function(observer) {
|
|
1892
1687
|
var observers = this._observers;
|
|
1893
|
-
if (
|
|
1894
|
-
observers.delete(observer)
|
|
1895
|
-
traverseVisibleInstancesAndTextInstances(
|
|
1688
|
+
if (observers !== null && observers.has(observer)) {
|
|
1689
|
+
observers.delete(observer), traverseVisibleInstancesAndTextInstances(
|
|
1896
1690
|
this._fragmentFiber.child,
|
|
1897
|
-
|
|
1691
|
+
!1,
|
|
1898
1692
|
unobserveChild,
|
|
1899
1693
|
observer,
|
|
1900
1694
|
void 0,
|
|
@@ -1908,21 +1702,16 @@
|
|
|
1908
1702
|
}
|
|
1909
1703
|
};
|
|
1910
1704
|
function unobserveChild(child, observer) {
|
|
1911
|
-
|
|
1912
|
-
child = getInstanceFromHostFiber(child);
|
|
1913
|
-
observer.unobserve(child);
|
|
1914
|
-
return false;
|
|
1705
|
+
return child.tag === 6 || (child = getInstanceFromHostFiber(child), observer.unobserve(child)), !1;
|
|
1915
1706
|
}
|
|
1916
|
-
var pendingIntersectionUnobserves = [];
|
|
1917
|
-
var intersectionUnobserveScheduled = false;
|
|
1707
|
+
var pendingIntersectionUnobserves = [], intersectionUnobserveScheduled = !1;
|
|
1918
1708
|
function schedulePendingIntersectionUnobserve(fragmentInstance, observer, instance) {
|
|
1919
1709
|
pendingIntersectionUnobserves.push({
|
|
1920
1710
|
fragmentInstance,
|
|
1921
1711
|
observer,
|
|
1922
1712
|
instance
|
|
1923
|
-
})
|
|
1924
|
-
|
|
1925
|
-
intersectionUnobserveScheduled = false;
|
|
1713
|
+
}), intersectionUnobserveScheduled || (intersectionUnobserveScheduled = !0, requestPostPaintCallback(function() {
|
|
1714
|
+
intersectionUnobserveScheduled = !1;
|
|
1926
1715
|
var pending = pendingIntersectionUnobserves;
|
|
1927
1716
|
pendingIntersectionUnobserves = [];
|
|
1928
1717
|
for (var i = 0; i < pending.length; i++) {
|
|
@@ -1933,82 +1722,74 @@
|
|
|
1933
1722
|
}
|
|
1934
1723
|
FragmentInstance.prototype.getClientRects = function() {
|
|
1935
1724
|
var rects = [];
|
|
1936
|
-
traverseVisibleInstancesAndTextInstances(
|
|
1725
|
+
return traverseVisibleInstancesAndTextInstances(
|
|
1937
1726
|
this._fragmentFiber.child,
|
|
1938
|
-
|
|
1727
|
+
!1,
|
|
1939
1728
|
collectClientRects,
|
|
1940
1729
|
rects,
|
|
1941
1730
|
void 0,
|
|
1942
1731
|
void 0
|
|
1943
|
-
);
|
|
1944
|
-
return rects;
|
|
1732
|
+
), rects;
|
|
1945
1733
|
};
|
|
1946
1734
|
function collectClientRects(child, rects) {
|
|
1947
|
-
if (
|
|
1735
|
+
if (child.tag === 6) {
|
|
1948
1736
|
child = child.stateNode;
|
|
1949
1737
|
var range = child.ownerDocument.createRange();
|
|
1950
|
-
range.selectNodeContents(child);
|
|
1951
|
-
rects.push.apply(rects, range.getClientRects());
|
|
1738
|
+
range.selectNodeContents(child), rects.push.apply(rects, range.getClientRects());
|
|
1952
1739
|
} else
|
|
1953
1740
|
child = getInstanceFromHostFiber(child), rects.push.apply(rects, child.getClientRects());
|
|
1954
|
-
return
|
|
1741
|
+
return !1;
|
|
1955
1742
|
}
|
|
1956
1743
|
FragmentInstance.prototype.getRootNode = function(getRootNodeOptions) {
|
|
1957
1744
|
var parentHostFiber = getFragmentParentInstanceOrContainerFiber(
|
|
1958
1745
|
this._fragmentFiber
|
|
1959
1746
|
);
|
|
1960
|
-
return
|
|
1747
|
+
return parentHostFiber === null ? this : getInstanceFromHostFiber(parentHostFiber).getRootNode(getRootNodeOptions);
|
|
1961
1748
|
};
|
|
1962
1749
|
FragmentInstance.prototype.compareDocumentPosition = function(otherNode) {
|
|
1963
1750
|
var parentHostFiber = getFragmentParentInstanceOrContainerFiber(
|
|
1964
1751
|
this._fragmentFiber
|
|
1965
1752
|
);
|
|
1966
|
-
if (
|
|
1753
|
+
if (parentHostFiber === null) return Node.DOCUMENT_POSITION_DISCONNECTED;
|
|
1967
1754
|
var children = [];
|
|
1968
1755
|
traverseVisibleInstancesAndTextInstances(
|
|
1969
1756
|
this._fragmentFiber.child,
|
|
1970
|
-
|
|
1757
|
+
!1,
|
|
1971
1758
|
collectChildren,
|
|
1972
1759
|
children,
|
|
1973
1760
|
void 0,
|
|
1974
1761
|
void 0
|
|
1975
1762
|
);
|
|
1976
1763
|
var parentHostInstance = getInstanceFromHostFiber(parentHostFiber);
|
|
1977
|
-
if (
|
|
1978
|
-
children = parentHostInstance
|
|
1979
|
-
if (fiberIsPortaledIntoHost(this._fragmentFiber)) {
|
|
1764
|
+
if (children.length === 0) {
|
|
1765
|
+
if (children = parentHostInstance, fiberIsPortaledIntoHost(this._fragmentFiber)) {
|
|
1980
1766
|
a: {
|
|
1981
|
-
for (parentHostFiber = this._fragmentFiber.return;
|
|
1982
|
-
if (
|
|
1767
|
+
for (parentHostFiber = this._fragmentFiber.return; parentHostFiber !== null; ) {
|
|
1768
|
+
if (parentHostFiber.tag === 4) {
|
|
1983
1769
|
parentHostFiber = parentHostFiber.stateNode.containerInfo;
|
|
1984
1770
|
break a;
|
|
1985
1771
|
}
|
|
1986
|
-
if (
|
|
1772
|
+
if (parentHostFiber.tag === 3 || parentHostFiber.tag === 5 || parentHostFiber.tag === 27)
|
|
1987
1773
|
break;
|
|
1988
1774
|
parentHostFiber = parentHostFiber.return;
|
|
1989
1775
|
}
|
|
1990
1776
|
parentHostFiber = null;
|
|
1991
1777
|
}
|
|
1992
|
-
|
|
1778
|
+
parentHostFiber != null && (children = parentHostFiber);
|
|
1993
1779
|
}
|
|
1994
1780
|
parentHostFiber = this._fragmentFiber;
|
|
1995
1781
|
var result = parentHostInstance = children.compareDocumentPosition(otherNode);
|
|
1996
|
-
children === otherNode ? result = Node.DOCUMENT_POSITION_CONTAINS : parentHostInstance & Node.DOCUMENT_POSITION_CONTAINED_BY && (children = getFragmentInstanceOrTextInstanceSiblings(parentHostFiber)[1],
|
|
1782
|
+
return children === otherNode ? result = Node.DOCUMENT_POSITION_CONTAINS : parentHostInstance & Node.DOCUMENT_POSITION_CONTAINED_BY && (children = getFragmentInstanceOrTextInstanceSiblings(parentHostFiber)[1], children === null ? result = Node.DOCUMENT_POSITION_PRECEDING : (otherNode = getInstanceFromHostFiber(children).compareDocumentPosition(
|
|
1997
1783
|
otherNode
|
|
1998
|
-
), result =
|
|
1999
|
-
return result |= Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
|
|
1784
|
+
), result = otherNode === 0 || otherNode & Node.DOCUMENT_POSITION_FOLLOWING ? Node.DOCUMENT_POSITION_FOLLOWING : Node.DOCUMENT_POSITION_PRECEDING)), result |= Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
|
|
2000
1785
|
}
|
|
2001
|
-
parentHostFiber = getInstanceFromHostFiber(children[0]);
|
|
2002
|
-
result = getInstanceFromHostFiber(children[children.length - 1]);
|
|
1786
|
+
parentHostFiber = getInstanceFromHostFiber(children[0]), result = getInstanceFromHostFiber(children[children.length - 1]);
|
|
2003
1787
|
var parentHostInstanceFromDOM = fiberIsPortaledIntoHost(this._fragmentFiber) ? parentHostFiber.parentElement : parentHostInstance;
|
|
2004
|
-
if (
|
|
1788
|
+
if (parentHostInstanceFromDOM == null)
|
|
2005
1789
|
return Node.DOCUMENT_POSITION_DISCONNECTED;
|
|
2006
|
-
parentHostInstance = parentHostInstanceFromDOM.compareDocumentPosition(parentHostFiber) & Node.DOCUMENT_POSITION_CONTAINED_BY;
|
|
2007
|
-
parentHostInstanceFromDOM = parentHostInstanceFromDOM.compareDocumentPosition(result) & Node.DOCUMENT_POSITION_CONTAINED_BY;
|
|
1790
|
+
parentHostInstance = parentHostInstanceFromDOM.compareDocumentPosition(parentHostFiber) & Node.DOCUMENT_POSITION_CONTAINED_BY, parentHostInstanceFromDOM = parentHostInstanceFromDOM.compareDocumentPosition(result) & Node.DOCUMENT_POSITION_CONTAINED_BY;
|
|
2008
1791
|
var firstResult = parentHostFiber.compareDocumentPosition(otherNode), lastResult = result.compareDocumentPosition(otherNode), otherNodeIsWithinFirstOrLastChild = firstResult & Node.DOCUMENT_POSITION_CONTAINED_BY || lastResult & Node.DOCUMENT_POSITION_CONTAINED_BY;
|
|
2009
|
-
lastResult = parentHostInstance && parentHostInstanceFromDOM && firstResult & Node.DOCUMENT_POSITION_FOLLOWING && lastResult & Node.DOCUMENT_POSITION_PRECEDING
|
|
2010
|
-
parentHostFiber = parentHostInstance && parentHostFiber === otherNode || parentHostInstanceFromDOM && result === otherNode || otherNodeIsWithinFirstOrLastChild || lastResult ? Node.DOCUMENT_POSITION_CONTAINED_BY : !parentHostInstance && parentHostFiber === otherNode || !parentHostInstanceFromDOM && result === otherNode ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : firstResult;
|
|
2011
|
-
return parentHostFiber & Node.DOCUMENT_POSITION_DISCONNECTED || parentHostFiber & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || validateDocumentPositionWithFiberTree(
|
|
1792
|
+
return lastResult = parentHostInstance && parentHostInstanceFromDOM && firstResult & Node.DOCUMENT_POSITION_FOLLOWING && lastResult & Node.DOCUMENT_POSITION_PRECEDING, parentHostFiber = parentHostInstance && parentHostFiber === otherNode || parentHostInstanceFromDOM && result === otherNode || otherNodeIsWithinFirstOrLastChild || lastResult ? Node.DOCUMENT_POSITION_CONTAINED_BY : !parentHostInstance && parentHostFiber === otherNode || !parentHostInstanceFromDOM && result === otherNode ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : firstResult, parentHostFiber & Node.DOCUMENT_POSITION_DISCONNECTED || parentHostFiber & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || validateDocumentPositionWithFiberTree(
|
|
2012
1793
|
parentHostFiber,
|
|
2013
1794
|
this._fragmentFiber,
|
|
2014
1795
|
children[0],
|
|
@@ -2021,30 +1802,29 @@
|
|
|
2021
1802
|
if (documentPosition & Node.DOCUMENT_POSITION_CONTAINED_BY) {
|
|
2022
1803
|
if (precedingBoundaryFiber = !!otherFiber)
|
|
2023
1804
|
a: {
|
|
2024
|
-
for (;
|
|
2025
|
-
if (
|
|
2026
|
-
precedingBoundaryFiber =
|
|
1805
|
+
for (; otherFiber !== null; ) {
|
|
1806
|
+
if (otherFiber.tag === 7 && (otherFiber === fragmentFiber || otherFiber.alternate === fragmentFiber)) {
|
|
1807
|
+
precedingBoundaryFiber = !0;
|
|
2027
1808
|
break a;
|
|
2028
1809
|
}
|
|
2029
1810
|
otherFiber = otherFiber.return;
|
|
2030
1811
|
}
|
|
2031
|
-
precedingBoundaryFiber =
|
|
1812
|
+
precedingBoundaryFiber = !1;
|
|
2032
1813
|
}
|
|
2033
1814
|
return precedingBoundaryFiber;
|
|
2034
1815
|
}
|
|
2035
1816
|
if (documentPosition & Node.DOCUMENT_POSITION_CONTAINS) {
|
|
2036
|
-
if (
|
|
1817
|
+
if (otherFiber === null)
|
|
2037
1818
|
return otherFiber = otherNode.ownerDocument, otherNode === otherFiber || otherNode === otherFiber.documentElement || otherNode === otherFiber.body;
|
|
2038
1819
|
a: {
|
|
2039
|
-
otherFiber = fragmentFiber;
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
otherFiber = true;
|
|
1820
|
+
for (otherFiber = fragmentFiber, fragmentFiber = getFragmentParentInstanceOrContainerFiber(fragmentFiber); otherFiber !== null; ) {
|
|
1821
|
+
if (!(otherFiber.tag !== 5 && otherFiber.tag !== 3 && otherFiber.tag !== 27 || otherFiber !== fragmentFiber && otherFiber.alternate !== fragmentFiber)) {
|
|
1822
|
+
otherFiber = !0;
|
|
2043
1823
|
break a;
|
|
2044
1824
|
}
|
|
2045
1825
|
otherFiber = otherFiber.return;
|
|
2046
1826
|
}
|
|
2047
|
-
otherFiber =
|
|
1827
|
+
otherFiber = !1;
|
|
2048
1828
|
}
|
|
2049
1829
|
return otherFiber;
|
|
2050
1830
|
}
|
|
@@ -2052,61 +1832,55 @@
|
|
|
2052
1832
|
precedingBoundaryFiber,
|
|
2053
1833
|
otherFiber,
|
|
2054
1834
|
getParentForFragmentAncestors
|
|
2055
|
-
),
|
|
1835
|
+
), fragmentFiber === null ? fragmentFiber = !1 : (traverseVisibleInstancesAndTextInstances(
|
|
2056
1836
|
fragmentFiber,
|
|
2057
|
-
|
|
1837
|
+
!0,
|
|
2058
1838
|
isFiberPrecedingCheck,
|
|
2059
1839
|
otherFiber,
|
|
2060
1840
|
precedingBoundaryFiber
|
|
2061
|
-
), otherFiber = searchTarget, searchTarget = null, fragmentFiber =
|
|
1841
|
+
), otherFiber = searchTarget, searchTarget = null, fragmentFiber = otherFiber !== null)), fragmentFiber) : documentPosition & Node.DOCUMENT_POSITION_FOLLOWING ? ((fragmentFiber = !!otherFiber) && !(fragmentFiber = otherFiber === followingBoundaryFiber) && (fragmentFiber = getLowestCommonAncestor(
|
|
2062
1842
|
followingBoundaryFiber,
|
|
2063
1843
|
otherFiber,
|
|
2064
1844
|
getParentForFragmentAncestors
|
|
2065
|
-
),
|
|
1845
|
+
), fragmentFiber === null ? fragmentFiber = !1 : (traverseVisibleInstancesAndTextInstances(
|
|
2066
1846
|
fragmentFiber,
|
|
2067
|
-
|
|
1847
|
+
!0,
|
|
2068
1848
|
isFiberFollowingCheck,
|
|
2069
1849
|
otherFiber,
|
|
2070
1850
|
followingBoundaryFiber
|
|
2071
|
-
), otherFiber = searchTarget, searchBoundary = searchTarget = null, fragmentFiber =
|
|
1851
|
+
), otherFiber = searchTarget, searchBoundary = searchTarget = null, fragmentFiber = otherFiber !== null)), fragmentFiber) : !1;
|
|
2072
1852
|
}
|
|
2073
1853
|
function scrollTextNodeIntoView(textNode, resolvedAlignToTop) {
|
|
2074
1854
|
var range = textNode.ownerDocument.createRange();
|
|
2075
|
-
range.selectNodeContents(textNode)
|
|
2076
|
-
textNode = range.getBoundingClientRect();
|
|
2077
|
-
window.scrollTo(
|
|
1855
|
+
range.selectNodeContents(textNode), textNode = range.getBoundingClientRect(), window.scrollTo(
|
|
2078
1856
|
window.scrollX + textNode.left,
|
|
2079
1857
|
resolvedAlignToTop ? window.scrollY + textNode.top : window.scrollY + textNode.bottom - window.innerHeight
|
|
2080
1858
|
);
|
|
2081
1859
|
}
|
|
2082
1860
|
FragmentInstance.prototype.scrollIntoView = function(alignToTop) {
|
|
2083
|
-
if ("object"
|
|
1861
|
+
if (typeof alignToTop == "object") throw Error(formatProdErrorMessage(566));
|
|
2084
1862
|
var children = [];
|
|
2085
1863
|
traverseVisibleInstancesAndTextInstances(
|
|
2086
1864
|
this._fragmentFiber.child,
|
|
2087
|
-
|
|
1865
|
+
!1,
|
|
2088
1866
|
collectChildren,
|
|
2089
1867
|
children,
|
|
2090
1868
|
void 0,
|
|
2091
1869
|
void 0
|
|
2092
1870
|
);
|
|
2093
|
-
var resolvedAlignToTop =
|
|
2094
|
-
if (
|
|
1871
|
+
var resolvedAlignToTop = alignToTop !== !1;
|
|
1872
|
+
if (children.length === 0) {
|
|
2095
1873
|
var hostSiblings = getFragmentInstanceOrTextInstanceSiblings(
|
|
2096
1874
|
this._fragmentFiber
|
|
2097
1875
|
);
|
|
2098
|
-
hostSiblings = resolvedAlignToTop ? hostSiblings[1] || hostSiblings[0] || getFragmentParentInstanceOrContainerFiber(this._fragmentFiber) : hostSiblings[0] || hostSiblings[1];
|
|
2099
|
-
if (
|
|
2100
|
-
|
|
2101
|
-
alignToTop = getInstanceFromHostFiber(hostSiblings);
|
|
2102
|
-
scrollTextNodeIntoView(alignToTop, resolvedAlignToTop);
|
|
1876
|
+
if (hostSiblings = resolvedAlignToTop ? hostSiblings[1] || hostSiblings[0] || getFragmentParentInstanceOrContainerFiber(this._fragmentFiber) : hostSiblings[0] || hostSiblings[1], hostSiblings === null) return;
|
|
1877
|
+
if (hostSiblings.tag === 6) {
|
|
1878
|
+
alignToTop = getInstanceFromHostFiber(hostSiblings), scrollTextNodeIntoView(alignToTop, resolvedAlignToTop);
|
|
2103
1879
|
return;
|
|
2104
1880
|
}
|
|
2105
|
-
hostSiblings = getInstanceFromHostFiber(hostSiblings)
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
resolvedAlignToTop = "host" in hostSiblings ? hostSiblings.host : null;
|
|
2109
|
-
null !== resolvedAlignToTop && resolvedAlignToTop.scrollIntoView(alignToTop);
|
|
1881
|
+
if (hostSiblings = getInstanceFromHostFiber(hostSiblings), hostSiblings.nodeType !== 9) {
|
|
1882
|
+
if (hostSiblings.nodeType === 11) {
|
|
1883
|
+
resolvedAlignToTop = "host" in hostSiblings ? hostSiblings.host : null, resolvedAlignToTop !== null && resolvedAlignToTop.scrollIntoView(alignToTop);
|
|
2110
1884
|
return;
|
|
2111
1885
|
}
|
|
2112
1886
|
hostSiblings.scrollIntoView(alignToTop);
|
|
@@ -2114,22 +1888,18 @@
|
|
|
2114
1888
|
}
|
|
2115
1889
|
for (hostSiblings = resolvedAlignToTop ? children.length - 1 : 0; hostSiblings !== (resolvedAlignToTop ? -1 : children.length); ) {
|
|
2116
1890
|
var child = children[hostSiblings];
|
|
2117
|
-
|
|
2118
|
-
hostSiblings += resolvedAlignToTop ? -1 : 1;
|
|
1891
|
+
child.tag === 6 ? (child = getInstanceFromHostFiber(child), scrollTextNodeIntoView(child, resolvedAlignToTop)) : getInstanceFromHostFiber(child).scrollIntoView(alignToTop), hostSiblings += resolvedAlignToTop ? -1 : 1;
|
|
2119
1892
|
}
|
|
2120
1893
|
};
|
|
2121
1894
|
function addFragmentHandleToFiber(child, fragmentInstance) {
|
|
2122
|
-
child = getInstanceFromHostFiber(child);
|
|
2123
|
-
addFragmentHandleToInstance(child, fragmentInstance);
|
|
2124
|
-
return false;
|
|
1895
|
+
return child = getInstanceFromHostFiber(child), addFragmentHandleToInstance(child, fragmentInstance), !1;
|
|
2125
1896
|
}
|
|
2126
1897
|
function addFragmentHandleToInstance(instance, fragmentInstance) {
|
|
2127
|
-
|
|
2128
|
-
instance.reactFragments.add(fragmentInstance);
|
|
1898
|
+
instance.reactFragments == null && (instance.reactFragments = /* @__PURE__ */ new Set()), instance.reactFragments.add(fragmentInstance);
|
|
2129
1899
|
}
|
|
2130
1900
|
function commitNewChildToFragmentInstance(childInstance, fragmentInstance) {
|
|
2131
1901
|
var eventListeners = fragmentInstance._eventListeners;
|
|
2132
|
-
if (
|
|
1902
|
+
if (eventListeners !== null)
|
|
2133
1903
|
for (var i$jscomp$0 = 0; i$jscomp$0 < eventListeners.length; i$jscomp$0++) {
|
|
2134
1904
|
var _eventListeners$i3 = eventListeners[i$jscomp$0];
|
|
2135
1905
|
childInstance.addEventListener(
|
|
@@ -2138,19 +1908,17 @@
|
|
|
2138
1908
|
getAttachOptions(_eventListeners$i3.optionsOrUseCapture)
|
|
2139
1909
|
);
|
|
2140
1910
|
}
|
|
2141
|
-
|
|
1911
|
+
childInstance.nodeType !== 3 && (eventListeners = fragmentInstance._observers, eventListeners !== null && eventListeners.forEach(function(observer) {
|
|
2142
1912
|
for (var writeIdx = 0, i = 0; i < pendingIntersectionUnobserves.length; i++) {
|
|
2143
1913
|
var pending = pendingIntersectionUnobserves[i];
|
|
2144
|
-
|
|
2145
|
-
pendingIntersectionUnobserves[writeIdx++] = pending;
|
|
1914
|
+
(pending.fragmentInstance !== fragmentInstance || pending.observer !== observer || pending.instance !== childInstance) && (pendingIntersectionUnobserves[writeIdx++] = pending);
|
|
2146
1915
|
}
|
|
2147
|
-
pendingIntersectionUnobserves.length = writeIdx;
|
|
2148
|
-
observer.observe(childInstance);
|
|
1916
|
+
pendingIntersectionUnobserves.length = writeIdx, observer.observe(childInstance);
|
|
2149
1917
|
}), addFragmentHandleToInstance(childInstance, fragmentInstance));
|
|
2150
1918
|
}
|
|
2151
1919
|
function deleteChildFromFragmentInstance(childInstance, fragmentInstance) {
|
|
2152
1920
|
var eventListeners = fragmentInstance._eventListeners;
|
|
2153
|
-
if (
|
|
1921
|
+
if (eventListeners !== null)
|
|
2154
1922
|
for (var i = 0; i < eventListeners.length; i++) {
|
|
2155
1923
|
var _eventListeners$i4 = eventListeners[i];
|
|
2156
1924
|
childInstance.removeEventListener(
|
|
@@ -2159,124 +1927,107 @@
|
|
|
2159
1927
|
getAttachOptions(_eventListeners$i4.optionsOrUseCapture)
|
|
2160
1928
|
);
|
|
2161
1929
|
}
|
|
2162
|
-
|
|
2163
|
-
|
|
1930
|
+
childInstance.nodeType !== 3 && (eventListeners = fragmentInstance._observers, eventListeners !== null && eventListeners.forEach(function(observer) {
|
|
1931
|
+
typeof observer.rootMargin == "string" ? schedulePendingIntersectionUnobserve(
|
|
2164
1932
|
fragmentInstance,
|
|
2165
1933
|
observer,
|
|
2166
1934
|
childInstance
|
|
2167
1935
|
) : observer.unobserve(childInstance);
|
|
2168
|
-
}),
|
|
1936
|
+
}), childInstance.reactFragments != null && childInstance.reactFragments.delete(fragmentInstance));
|
|
2169
1937
|
}
|
|
2170
1938
|
function clearContainerSparingly(container) {
|
|
2171
1939
|
var nextNode = container.firstChild;
|
|
2172
|
-
nextNode &&
|
|
2173
|
-
for (; nextNode; ) {
|
|
1940
|
+
for (nextNode && nextNode.nodeType === 10 && (nextNode = nextNode.nextSibling); nextNode; ) {
|
|
2174
1941
|
var node = nextNode;
|
|
2175
|
-
nextNode = nextNode.nextSibling
|
|
2176
|
-
switch (node.nodeName) {
|
|
1942
|
+
switch (nextNode = nextNode.nextSibling, node.nodeName) {
|
|
2177
1943
|
case "HTML":
|
|
2178
1944
|
case "HEAD":
|
|
2179
1945
|
case "BODY":
|
|
2180
|
-
clearContainerSparingly(node);
|
|
2181
|
-
detachDeletedInstance(node);
|
|
1946
|
+
clearContainerSparingly(node), detachDeletedInstance(node);
|
|
2182
1947
|
continue;
|
|
2183
1948
|
case "SCRIPT":
|
|
2184
1949
|
case "STYLE":
|
|
2185
1950
|
continue;
|
|
2186
1951
|
case "LINK":
|
|
2187
|
-
if (
|
|
1952
|
+
if (node.rel.toLowerCase() === "stylesheet") continue;
|
|
2188
1953
|
}
|
|
2189
1954
|
container.removeChild(node);
|
|
2190
1955
|
}
|
|
2191
1956
|
}
|
|
2192
1957
|
function canHydrateInstance(instance, type, props, inRootOrSingleton) {
|
|
2193
|
-
for (;
|
|
1958
|
+
for (; instance.nodeType === 1; ) {
|
|
2194
1959
|
var anyProps = props;
|
|
2195
1960
|
if (instance.nodeName.toLowerCase() !== type.toLowerCase()) {
|
|
2196
|
-
if (!inRootOrSingleton && ("INPUT"
|
|
1961
|
+
if (!inRootOrSingleton && (instance.nodeName !== "INPUT" || instance.type !== "hidden"))
|
|
2197
1962
|
break;
|
|
2198
|
-
} else if (
|
|
2199
|
-
if (
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
}
|
|
2227
|
-
instance = getNextHydratable(instance.nextSibling);
|
|
2228
|
-
if (null === instance) break;
|
|
1963
|
+
} else if (inRootOrSingleton) {
|
|
1964
|
+
if (!instance[internalHoistableMarker])
|
|
1965
|
+
switch (type) {
|
|
1966
|
+
case "meta":
|
|
1967
|
+
if (!instance.hasAttribute("itemprop")) break;
|
|
1968
|
+
return instance;
|
|
1969
|
+
case "link":
|
|
1970
|
+
if (name = instance.getAttribute("rel"), name === "stylesheet" && instance.hasAttribute("data-precedence"))
|
|
1971
|
+
break;
|
|
1972
|
+
if (name !== anyProps.rel || instance.getAttribute("href") !== (anyProps.href == null || anyProps.href === "" ? null : anyProps.href) || instance.getAttribute("crossorigin") !== (anyProps.crossOrigin == null ? null : anyProps.crossOrigin) || instance.getAttribute("title") !== (anyProps.title == null ? null : anyProps.title))
|
|
1973
|
+
break;
|
|
1974
|
+
return instance;
|
|
1975
|
+
case "style":
|
|
1976
|
+
if (instance.hasAttribute("data-precedence")) break;
|
|
1977
|
+
return instance;
|
|
1978
|
+
case "script":
|
|
1979
|
+
if (name = instance.getAttribute("src"), (name !== (anyProps.src == null ? null : anyProps.src) || instance.getAttribute("type") !== (anyProps.type == null ? null : anyProps.type) || instance.getAttribute("crossorigin") !== (anyProps.crossOrigin == null ? null : anyProps.crossOrigin)) && name && instance.hasAttribute("async") && !instance.hasAttribute("itemprop"))
|
|
1980
|
+
break;
|
|
1981
|
+
return instance;
|
|
1982
|
+
default:
|
|
1983
|
+
return instance;
|
|
1984
|
+
}
|
|
1985
|
+
} else if (type === "input" && instance.type === "hidden") {
|
|
1986
|
+
var name = anyProps.name == null ? null : "" + anyProps.name;
|
|
1987
|
+
if (anyProps.type === "hidden" && instance.getAttribute("name") === name)
|
|
1988
|
+
return instance;
|
|
1989
|
+
} else return instance;
|
|
1990
|
+
if (instance = getNextHydratable(instance.nextSibling), instance === null) break;
|
|
2229
1991
|
}
|
|
2230
1992
|
return null;
|
|
2231
1993
|
}
|
|
2232
1994
|
function canHydrateTextInstance(instance, text, inRootOrSingleton) {
|
|
2233
|
-
if (
|
|
2234
|
-
for (;
|
|
2235
|
-
if ((
|
|
2236
|
-
return null;
|
|
2237
|
-
instance = getNextHydratable(instance.nextSibling);
|
|
2238
|
-
if (null === instance) return null;
|
|
2239
|
-
}
|
|
1995
|
+
if (text === "") return null;
|
|
1996
|
+
for (; instance.nodeType !== 3; )
|
|
1997
|
+
if ((instance.nodeType !== 1 || instance.nodeName !== "INPUT" || instance.type !== "hidden") && !inRootOrSingleton || (instance = getNextHydratable(instance.nextSibling), instance === null)) return null;
|
|
2240
1998
|
return instance;
|
|
2241
1999
|
}
|
|
2242
2000
|
function canHydrateHydrationBoundary(instance, inRootOrSingleton) {
|
|
2243
|
-
for (;
|
|
2244
|
-
if ((
|
|
2245
|
-
return null;
|
|
2246
|
-
instance = getNextHydratable(instance.nextSibling);
|
|
2247
|
-
if (null === instance) return null;
|
|
2248
|
-
}
|
|
2001
|
+
for (; instance.nodeType !== 8; )
|
|
2002
|
+
if ((instance.nodeType !== 1 || instance.nodeName !== "INPUT" || instance.type !== "hidden") && !inRootOrSingleton || (instance = getNextHydratable(instance.nextSibling), instance === null)) return null;
|
|
2249
2003
|
return instance;
|
|
2250
2004
|
}
|
|
2251
2005
|
function isSuspenseInstancePending(instance) {
|
|
2252
|
-
return "$?"
|
|
2006
|
+
return instance.data === "$?" || instance.data === "$~";
|
|
2253
2007
|
}
|
|
2254
2008
|
function isSuspenseInstanceFallback(instance) {
|
|
2255
|
-
return
|
|
2009
|
+
return instance.data === "$!" || instance.data === "$?" && instance.ownerDocument.readyState !== "loading";
|
|
2256
2010
|
}
|
|
2257
2011
|
function registerSuspenseInstanceRetry(instance, callback) {
|
|
2258
2012
|
var ownerDocument = instance.ownerDocument;
|
|
2259
|
-
if ("$~"
|
|
2260
|
-
else if (
|
|
2013
|
+
if (instance.data === "$~") instance._reactRetry = callback;
|
|
2014
|
+
else if (instance.data !== "$?" || ownerDocument.readyState !== "loading")
|
|
2261
2015
|
callback();
|
|
2262
2016
|
else {
|
|
2263
2017
|
var listener = function() {
|
|
2264
|
-
callback();
|
|
2265
|
-
ownerDocument.removeEventListener("DOMContentLoaded", listener);
|
|
2018
|
+
callback(), ownerDocument.removeEventListener("DOMContentLoaded", listener);
|
|
2266
2019
|
};
|
|
2267
|
-
ownerDocument.addEventListener("DOMContentLoaded", listener);
|
|
2268
|
-
instance._reactRetry = listener;
|
|
2020
|
+
ownerDocument.addEventListener("DOMContentLoaded", listener), instance._reactRetry = listener;
|
|
2269
2021
|
}
|
|
2270
2022
|
}
|
|
2271
2023
|
function getNextHydratable(node) {
|
|
2272
|
-
for (;
|
|
2024
|
+
for (; node != null; node = node.nextSibling) {
|
|
2273
2025
|
var nodeType = node.nodeType;
|
|
2274
|
-
if (
|
|
2275
|
-
if (
|
|
2276
|
-
nodeType = node.data
|
|
2277
|
-
if ("$" === nodeType || "$!" === nodeType || "$?" === nodeType || "$~" === nodeType || "&" === nodeType || "F!" === nodeType || "F" === nodeType)
|
|
2026
|
+
if (nodeType === 1 || nodeType === 3) break;
|
|
2027
|
+
if (nodeType === 8) {
|
|
2028
|
+
if (nodeType = node.data, nodeType === "$" || nodeType === "$!" || nodeType === "$?" || nodeType === "$~" || nodeType === "&" || nodeType === "F!" || nodeType === "F")
|
|
2278
2029
|
break;
|
|
2279
|
-
if ("/$"
|
|
2030
|
+
if (nodeType === "/$" || nodeType === "/&") return null;
|
|
2280
2031
|
}
|
|
2281
2032
|
}
|
|
2282
2033
|
return node;
|
|
@@ -2285,14 +2036,14 @@
|
|
|
2285
2036
|
function getNextHydratableInstanceAfterHydrationBoundary(hydrationInstance) {
|
|
2286
2037
|
hydrationInstance = hydrationInstance.nextSibling;
|
|
2287
2038
|
for (var depth = 0; hydrationInstance; ) {
|
|
2288
|
-
if (
|
|
2039
|
+
if (hydrationInstance.nodeType === 8) {
|
|
2289
2040
|
var data = hydrationInstance.data;
|
|
2290
|
-
if ("/$"
|
|
2291
|
-
if (
|
|
2041
|
+
if (data === "/$" || data === "/&") {
|
|
2042
|
+
if (depth === 0)
|
|
2292
2043
|
return getNextHydratable(hydrationInstance.nextSibling);
|
|
2293
2044
|
depth--;
|
|
2294
2045
|
} else
|
|
2295
|
-
"$"
|
|
2046
|
+
data !== "$" && data !== "$!" && data !== "$?" && data !== "$~" && data !== "&" || depth++;
|
|
2296
2047
|
}
|
|
2297
2048
|
hydrationInstance = hydrationInstance.nextSibling;
|
|
2298
2049
|
}
|
|
@@ -2301,12 +2052,12 @@
|
|
|
2301
2052
|
function getParentHydrationBoundary(targetInstance) {
|
|
2302
2053
|
targetInstance = targetInstance.previousSibling;
|
|
2303
2054
|
for (var depth = 0; targetInstance; ) {
|
|
2304
|
-
if (
|
|
2055
|
+
if (targetInstance.nodeType === 8) {
|
|
2305
2056
|
var data = targetInstance.data;
|
|
2306
|
-
if ("$"
|
|
2307
|
-
if (
|
|
2057
|
+
if (data === "$" || data === "$!" || data === "$?" || data === "$~" || data === "&") {
|
|
2058
|
+
if (depth === 0) return targetInstance;
|
|
2308
2059
|
depth--;
|
|
2309
|
-
} else "/$"
|
|
2060
|
+
} else data !== "/$" && data !== "/&" || depth++;
|
|
2310
2061
|
}
|
|
2311
2062
|
targetInstance = targetInstance.previousSibling;
|
|
2312
2063
|
}
|
|
@@ -2314,14 +2065,14 @@
|
|
|
2314
2065
|
}
|
|
2315
2066
|
function setFocusIfFocusable(node, focusOptions) {
|
|
2316
2067
|
function handleFocus() {
|
|
2317
|
-
didFocus =
|
|
2068
|
+
didFocus = !0;
|
|
2318
2069
|
}
|
|
2319
|
-
if (node.ownerDocument.activeElement === node) return
|
|
2320
|
-
var didFocus =
|
|
2070
|
+
if (node.ownerDocument.activeElement === node) return !0;
|
|
2071
|
+
var didFocus = !1;
|
|
2321
2072
|
try {
|
|
2322
|
-
node.ownerDocument.addEventListener("focus", handleFocus,
|
|
2073
|
+
node.ownerDocument.addEventListener("focus", handleFocus, !0), (node.focus || HTMLElement.prototype.focus).call(node, focusOptions);
|
|
2323
2074
|
} finally {
|
|
2324
|
-
node.ownerDocument.removeEventListener("focus", handleFocus,
|
|
2075
|
+
node.ownerDocument.removeEventListener("focus", handleFocus, !0);
|
|
2325
2076
|
}
|
|
2326
2077
|
return didFocus;
|
|
2327
2078
|
}
|
|
@@ -2333,19 +2084,15 @@
|
|
|
2333
2084
|
});
|
|
2334
2085
|
}
|
|
2335
2086
|
function resolveSingletonInstance(type, props, rootContainerInstance) {
|
|
2336
|
-
props = getOwnerDocumentFromRootContainer(rootContainerInstance)
|
|
2337
|
-
switch (type) {
|
|
2087
|
+
switch (props = getOwnerDocumentFromRootContainer(rootContainerInstance), type) {
|
|
2338
2088
|
case "html":
|
|
2339
|
-
type = props.documentElement;
|
|
2340
|
-
if (!type) throw Error(formatProdErrorMessage(452));
|
|
2089
|
+
if (type = props.documentElement, !type) throw Error(formatProdErrorMessage(452));
|
|
2341
2090
|
return type;
|
|
2342
2091
|
case "head":
|
|
2343
|
-
type = props.head;
|
|
2344
|
-
if (!type) throw Error(formatProdErrorMessage(453));
|
|
2092
|
+
if (type = props.head, !type) throw Error(formatProdErrorMessage(453));
|
|
2345
2093
|
return type;
|
|
2346
2094
|
case "body":
|
|
2347
|
-
type = props.body;
|
|
2348
|
-
if (!type) throw Error(formatProdErrorMessage(454));
|
|
2095
|
+
if (type = props.body, !type) throw Error(formatProdErrorMessage(454));
|
|
2349
2096
|
return type;
|
|
2350
2097
|
default:
|
|
2351
2098
|
throw Error(formatProdErrorMessage(451));
|
|
@@ -2354,25 +2101,22 @@
|
|
|
2354
2101
|
function releaseSingletonInstance(instance, type, props) {
|
|
2355
2102
|
for (var propKey in props) {
|
|
2356
2103
|
var propValue = props[propKey];
|
|
2357
|
-
props.hasOwnProperty(propKey) &&
|
|
2104
|
+
props.hasOwnProperty(propKey) && propValue != null && setProp(instance, type, propKey, null, emptyProps, propValue);
|
|
2358
2105
|
}
|
|
2359
|
-
|
|
2360
|
-
instance.onclick === noop$1 && (instance.onclick = null);
|
|
2361
|
-
detachDeletedInstance(instance);
|
|
2106
|
+
props.dangerouslySetInnerHTML != null && (instance.textContent = ""), instance.onclick === noop$1 && (instance.onclick = null), detachDeletedInstance(instance);
|
|
2362
2107
|
}
|
|
2363
2108
|
function clearSingletonPreambleContribution(instance) {
|
|
2364
2109
|
for (var attributes = instance.attributes; attributes.length; )
|
|
2365
2110
|
instance.removeAttributeNode(attributes[0]);
|
|
2366
2111
|
detachDeletedInstance(instance);
|
|
2367
2112
|
}
|
|
2368
|
-
var preloadPropsMap = /* @__PURE__ */ new Map();
|
|
2369
|
-
var preconnectsSet = /* @__PURE__ */ new Set();
|
|
2113
|
+
var preloadPropsMap = /* @__PURE__ */ new Map(), preconnectsSet = /* @__PURE__ */ new Set();
|
|
2370
2114
|
function getHoistableRoot(container) {
|
|
2371
|
-
if (
|
|
2115
|
+
if (typeof container.getRootNode == "function") {
|
|
2372
2116
|
var rootNode = container.getRootNode();
|
|
2373
|
-
if (
|
|
2117
|
+
if (rootNode.nodeType === 9 || rootNode.nodeType === 11) return rootNode;
|
|
2374
2118
|
}
|
|
2375
|
-
return
|
|
2119
|
+
return container.nodeType === 9 ? container : container.ownerDocument;
|
|
2376
2120
|
}
|
|
2377
2121
|
var previousDispatcher = ReactDOMSharedInternals.d;
|
|
2378
2122
|
ReactDOMSharedInternals.d = {
|
|
@@ -2392,36 +2136,32 @@
|
|
|
2392
2136
|
}
|
|
2393
2137
|
function requestFormReset(form) {
|
|
2394
2138
|
var formInst = getInstanceFromNode(form);
|
|
2395
|
-
|
|
2139
|
+
formInst !== null && formInst.tag === 5 && formInst.type === "form" ? requestFormReset$1(formInst) : previousDispatcher.r(form);
|
|
2396
2140
|
}
|
|
2397
|
-
var globalDocument =
|
|
2141
|
+
var globalDocument = typeof document > "u" ? null : document;
|
|
2398
2142
|
function preconnectAs(rel, href, crossOrigin) {
|
|
2399
2143
|
var ownerDocument = globalDocument;
|
|
2400
|
-
if (ownerDocument && "string"
|
|
2144
|
+
if (ownerDocument && typeof href == "string" && href) {
|
|
2401
2145
|
var limitedEscapedHref = escapeSelectorAttributeValueInsideDoubleQuotes(href);
|
|
2402
|
-
limitedEscapedHref = 'link[rel="' + rel + '"][href="' + limitedEscapedHref + '"]';
|
|
2403
|
-
"string" === typeof crossOrigin && (limitedEscapedHref += '[crossorigin="' + crossOrigin + '"]');
|
|
2404
|
-
preconnectsSet.has(limitedEscapedHref) || (preconnectsSet.add(limitedEscapedHref), rel = { rel, crossOrigin, href }, null === ownerDocument.querySelector(limitedEscapedHref) && (href = ownerDocument.createElement("link"), setInitialProperties(href, "link", rel), markNodeAsHoistable(href), ownerDocument.head.appendChild(href)));
|
|
2146
|
+
limitedEscapedHref = 'link[rel="' + rel + '"][href="' + limitedEscapedHref + '"]', typeof crossOrigin == "string" && (limitedEscapedHref += '[crossorigin="' + crossOrigin + '"]'), preconnectsSet.has(limitedEscapedHref) || (preconnectsSet.add(limitedEscapedHref), rel = { rel, crossOrigin, href }, ownerDocument.querySelector(limitedEscapedHref) === null && (href = ownerDocument.createElement("link"), setInitialProperties(href, "link", rel), markNodeAsHoistable(href), ownerDocument.head.appendChild(href)));
|
|
2405
2147
|
}
|
|
2406
2148
|
}
|
|
2407
2149
|
function prefetchDNS(href) {
|
|
2408
|
-
previousDispatcher.D(href);
|
|
2409
|
-
preconnectAs("dns-prefetch", href, null);
|
|
2150
|
+
previousDispatcher.D(href), preconnectAs("dns-prefetch", href, null);
|
|
2410
2151
|
}
|
|
2411
2152
|
function preconnect(href, crossOrigin) {
|
|
2412
|
-
previousDispatcher.C(href, crossOrigin);
|
|
2413
|
-
preconnectAs("preconnect", href, crossOrigin);
|
|
2153
|
+
previousDispatcher.C(href, crossOrigin), preconnectAs("preconnect", href, crossOrigin);
|
|
2414
2154
|
}
|
|
2415
2155
|
function preload(href, as, options3) {
|
|
2416
2156
|
previousDispatcher.L(href, as, options3);
|
|
2417
2157
|
var ownerDocument = globalDocument;
|
|
2418
2158
|
if (ownerDocument && href && as) {
|
|
2419
2159
|
var preloadSelector = 'link[rel="preload"][as="' + escapeSelectorAttributeValueInsideDoubleQuotes(as) + '"]';
|
|
2420
|
-
"image"
|
|
2160
|
+
as === "image" && options3 && options3.imageSrcSet ? (preloadSelector += '[imagesrcset="' + escapeSelectorAttributeValueInsideDoubleQuotes(
|
|
2421
2161
|
options3.imageSrcSet
|
|
2422
|
-
) + '"]',
|
|
2162
|
+
) + '"]', typeof options3.imageSizes == "string" && (preloadSelector += '[imagesizes="' + escapeSelectorAttributeValueInsideDoubleQuotes(
|
|
2423
2163
|
options3.imageSizes
|
|
2424
|
-
) + '"]')) : preloadSelector += '[href="' + escapeSelectorAttributeValueInsideDoubleQuotes(href) + '"]'
|
|
2164
|
+
) + '"]')) : preloadSelector += '[href="' + escapeSelectorAttributeValueInsideDoubleQuotes(href) + '"]';
|
|
2425
2165
|
var key = preloadSelector;
|
|
2426
2166
|
switch (as) {
|
|
2427
2167
|
case "style":
|
|
@@ -2433,18 +2173,15 @@
|
|
|
2433
2173
|
if (!(preloadPropsMap.has(key) || (href = assign(
|
|
2434
2174
|
{
|
|
2435
2175
|
rel: "preload",
|
|
2436
|
-
href: "image"
|
|
2176
|
+
href: as === "image" && options3 && options3.imageSrcSet ? void 0 : href,
|
|
2437
2177
|
as
|
|
2438
2178
|
},
|
|
2439
2179
|
options3
|
|
2440
|
-
), preloadPropsMap.set(key, href),
|
|
2180
|
+
), preloadPropsMap.set(key, href), ownerDocument.querySelector(preloadSelector) !== null || as === "style" && ownerDocument.querySelector(getStylesheetSelectorFromKey(key)) || as === "script" && ownerDocument.querySelector(getScriptSelectorFromKey(key))))) {
|
|
2441
2181
|
var instance = ownerDocument.createElement("link");
|
|
2442
|
-
setInitialProperties(instance, "link", href)
|
|
2443
|
-
"style" === as && (instance[internalLoadPendingKey] = true, instance.onload = instance.onerror = function() {
|
|
2182
|
+
setInitialProperties(instance, "link", href), as === "style" && (instance[internalLoadPendingKey] = !0, instance.onload = instance.onerror = function() {
|
|
2444
2183
|
clearPendingLoadOnNode(instance);
|
|
2445
|
-
});
|
|
2446
|
-
markNodeAsHoistable(instance);
|
|
2447
|
-
ownerDocument.head.appendChild(instance);
|
|
2184
|
+
}), markNodeAsHoistable(instance), ownerDocument.head.appendChild(instance);
|
|
2448
2185
|
}
|
|
2449
2186
|
}
|
|
2450
2187
|
}
|
|
@@ -2452,7 +2189,7 @@
|
|
|
2452
2189
|
previousDispatcher.m(href, options3);
|
|
2453
2190
|
var ownerDocument = globalDocument;
|
|
2454
2191
|
if (ownerDocument && href) {
|
|
2455
|
-
var as = options3 &&
|
|
2192
|
+
var as = options3 && typeof options3.as == "string" ? options3.as : "script", preloadSelector = 'link[rel="modulepreload"][as="' + escapeSelectorAttributeValueInsideDoubleQuotes(as) + '"][href="' + escapeSelectorAttributeValueInsideDoubleQuotes(href) + '"]', key = preloadSelector;
|
|
2456
2193
|
switch (as) {
|
|
2457
2194
|
case "audioworklet":
|
|
2458
2195
|
case "paintworklet":
|
|
@@ -2462,7 +2199,7 @@
|
|
|
2462
2199
|
case "script":
|
|
2463
2200
|
key = getScriptKey(href);
|
|
2464
2201
|
}
|
|
2465
|
-
if (!preloadPropsMap.has(key) && (href = assign({ rel: "modulepreload", href }, options3), preloadPropsMap.set(key, href),
|
|
2202
|
+
if (!preloadPropsMap.has(key) && (href = assign({ rel: "modulepreload", href }, options3), preloadPropsMap.set(key, href), ownerDocument.querySelector(preloadSelector) === null)) {
|
|
2466
2203
|
switch (as) {
|
|
2467
2204
|
case "audioworklet":
|
|
2468
2205
|
case "paintworklet":
|
|
@@ -2473,10 +2210,7 @@
|
|
|
2473
2210
|
if (ownerDocument.querySelector(getScriptSelectorFromKey(key)))
|
|
2474
2211
|
return;
|
|
2475
2212
|
}
|
|
2476
|
-
as = ownerDocument.createElement("link");
|
|
2477
|
-
setInitialProperties(as, "link", href);
|
|
2478
|
-
markNodeAsHoistable(as);
|
|
2479
|
-
ownerDocument.head.appendChild(as);
|
|
2213
|
+
as = ownerDocument.createElement("link"), setInitialProperties(as, "link", href), markNodeAsHoistable(as), ownerDocument.head.appendChild(as);
|
|
2480
2214
|
}
|
|
2481
2215
|
}
|
|
2482
2216
|
}
|
|
@@ -2497,31 +2231,22 @@
|
|
|
2497
2231
|
href = assign(
|
|
2498
2232
|
{ rel: "stylesheet", href, "data-precedence": precedence },
|
|
2499
2233
|
options3
|
|
2500
|
-
);
|
|
2501
|
-
(options3 = preloadPropsMap.get(key)) && adoptPreloadPropsForStylesheet(href, options3);
|
|
2234
|
+
), (options3 = preloadPropsMap.get(key)) && adoptPreloadPropsForStylesheet(href, options3);
|
|
2502
2235
|
var link = resource = ownerDocument.createElement("link");
|
|
2503
|
-
markNodeAsHoistable(link)
|
|
2504
|
-
|
|
2505
|
-
link.
|
|
2506
|
-
link.onload = resolve;
|
|
2507
|
-
link.onerror = reject;
|
|
2508
|
-
});
|
|
2509
|
-
link.addEventListener("load", function() {
|
|
2236
|
+
markNodeAsHoistable(link), setInitialProperties(link, "link", href), link._p = new Promise(function(resolve, reject) {
|
|
2237
|
+
link.onload = resolve, link.onerror = reject;
|
|
2238
|
+
}), link.addEventListener("load", function() {
|
|
2510
2239
|
state.loading |= 1;
|
|
2511
|
-
})
|
|
2512
|
-
link.addEventListener("error", function() {
|
|
2240
|
+
}), link.addEventListener("error", function() {
|
|
2513
2241
|
state.loading |= 2;
|
|
2514
|
-
});
|
|
2515
|
-
state.loading |= 4;
|
|
2516
|
-
insertStylesheet(resource, precedence, ownerDocument);
|
|
2242
|
+
}), state.loading |= 4, insertStylesheet(resource, precedence, ownerDocument);
|
|
2517
2243
|
}
|
|
2518
2244
|
resource = {
|
|
2519
2245
|
type: "stylesheet",
|
|
2520
2246
|
instance: resource,
|
|
2521
2247
|
count: 1,
|
|
2522
2248
|
state
|
|
2523
|
-
};
|
|
2524
|
-
styles.set(key, resource);
|
|
2249
|
+
}, styles.set(key, resource);
|
|
2525
2250
|
}
|
|
2526
2251
|
}
|
|
2527
2252
|
}
|
|
@@ -2530,7 +2255,7 @@
|
|
|
2530
2255
|
var ownerDocument = globalDocument;
|
|
2531
2256
|
if (ownerDocument && src) {
|
|
2532
2257
|
var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts, key = getScriptKey(src), resource = scripts.get(key);
|
|
2533
|
-
resource || (resource = ownerDocument.querySelector(getScriptSelectorFromKey(key)), resource || (src = assign({ src, async:
|
|
2258
|
+
resource || (resource = ownerDocument.querySelector(getScriptSelectorFromKey(key)), resource || (src = assign({ src, async: !0 }, options3), (options3 = preloadPropsMap.get(key)) && adoptPreloadPropsForScript(src, options3), resource = ownerDocument.createElement("script"), markNodeAsHoistable(resource), setInitialProperties(resource, "link", src), ownerDocument.head.appendChild(resource)), resource = {
|
|
2534
2259
|
type: "script",
|
|
2535
2260
|
instance: resource,
|
|
2536
2261
|
count: 1,
|
|
@@ -2543,7 +2268,7 @@
|
|
|
2543
2268
|
var ownerDocument = globalDocument;
|
|
2544
2269
|
if (ownerDocument && src) {
|
|
2545
2270
|
var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts, key = getScriptKey(src), resource = scripts.get(key);
|
|
2546
|
-
resource || (resource = ownerDocument.querySelector(getScriptSelectorFromKey(key)), resource || (src = assign({ src, async:
|
|
2271
|
+
resource || (resource = ownerDocument.querySelector(getScriptSelectorFromKey(key)), resource || (src = assign({ src, async: !0, type: "module" }, options3), (options3 = preloadPropsMap.get(key)) && adoptPreloadPropsForScript(src, options3), resource = ownerDocument.createElement("script"), markNodeAsHoistable(resource), setInitialProperties(resource, "link", src), ownerDocument.head.appendChild(resource)), resource = {
|
|
2547
2272
|
type: "script",
|
|
2548
2273
|
instance: resource,
|
|
2549
2274
|
count: 1,
|
|
@@ -2559,7 +2284,7 @@
|
|
|
2559
2284
|
case "title":
|
|
2560
2285
|
return null;
|
|
2561
2286
|
case "style":
|
|
2562
|
-
return
|
|
2287
|
+
return typeof pendingProps.precedence == "string" && typeof pendingProps.href == "string" ? (pendingProps = getStyleKey(pendingProps.href), currentProps = getResourcesFromRoot(
|
|
2563
2288
|
JSCompiler_inline_result
|
|
2564
2289
|
).hoistableStyles, currentResource = currentProps.get(pendingProps), currentResource || (currentResource = {
|
|
2565
2290
|
type: "style",
|
|
@@ -2568,12 +2293,12 @@
|
|
|
2568
2293
|
state: null
|
|
2569
2294
|
}, currentProps.set(pendingProps, currentResource)), currentResource) : { type: "void", instance: null, count: 0, state: null };
|
|
2570
2295
|
case "link":
|
|
2571
|
-
if (
|
|
2296
|
+
if (pendingProps.rel === "stylesheet" && typeof pendingProps.href == "string" && typeof pendingProps.precedence == "string") {
|
|
2572
2297
|
type = getStyleKey(pendingProps.href);
|
|
2573
2298
|
var styles$268 = getResourcesFromRoot(
|
|
2574
2299
|
JSCompiler_inline_result
|
|
2575
2300
|
).hoistableStyles, resource$269 = styles$268.get(type);
|
|
2576
|
-
resource$269 || (JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result, resource$269 = {
|
|
2301
|
+
if (resource$269 || (JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result, resource$269 = {
|
|
2577
2302
|
type: "stylesheet",
|
|
2578
2303
|
instance: null,
|
|
2579
2304
|
count: 0,
|
|
@@ -2594,16 +2319,15 @@
|
|
|
2594
2319
|
type,
|
|
2595
2320
|
styles$268,
|
|
2596
2321
|
resource$269.state
|
|
2597
|
-
)))
|
|
2598
|
-
if (currentProps && null === currentResource)
|
|
2322
|
+
))), currentProps && currentResource === null)
|
|
2599
2323
|
throw Error(formatProdErrorMessage(528, ""));
|
|
2600
2324
|
return resource$269;
|
|
2601
2325
|
}
|
|
2602
|
-
if (currentProps &&
|
|
2326
|
+
if (currentProps && currentResource !== null)
|
|
2603
2327
|
throw Error(formatProdErrorMessage(529, ""));
|
|
2604
2328
|
return null;
|
|
2605
2329
|
case "script":
|
|
2606
|
-
return currentProps = pendingProps.async, pendingProps = pendingProps.src, "string"
|
|
2330
|
+
return currentProps = pendingProps.async, pendingProps = pendingProps.src, typeof pendingProps == "string" && currentProps && typeof currentProps != "function" && typeof currentProps != "symbol" ? (pendingProps = getScriptKey(pendingProps), currentProps = getResourcesFromRoot(
|
|
2607
2331
|
JSCompiler_inline_result
|
|
2608
2332
|
).hoistableScripts, currentResource = currentProps.get(pendingProps), currentResource || (currentResource = {
|
|
2609
2333
|
type: "script",
|
|
@@ -2631,17 +2355,15 @@
|
|
|
2631
2355
|
if (key = ownerDocument.querySelector(
|
|
2632
2356
|
'link[rel="preload"][as="style"][' + key + "]"
|
|
2633
2357
|
)) {
|
|
2634
|
-
if (
|
|
2358
|
+
if (key[internalLoadPendingKey] !== !0) {
|
|
2635
2359
|
state.loading = 1;
|
|
2636
2360
|
return;
|
|
2637
2361
|
}
|
|
2638
2362
|
} else
|
|
2639
|
-
key = ownerDocument.createElement("link"), key[internalLoadPendingKey] =
|
|
2640
|
-
state.preload = key
|
|
2641
|
-
key.addEventListener("load", function() {
|
|
2363
|
+
key = ownerDocument.createElement("link"), key[internalLoadPendingKey] = !0, key.onload = key.onerror = clearPendingLoadOnNode.bind(null, key), setInitialProperties(key, "link", preloadProps), markNodeAsHoistable(key), ownerDocument.head.appendChild(key);
|
|
2364
|
+
state.preload = key, key.addEventListener("load", function() {
|
|
2642
2365
|
return state.loading |= 1;
|
|
2643
|
-
})
|
|
2644
|
-
key.addEventListener("error", function() {
|
|
2366
|
+
}), key.addEventListener("error", function() {
|
|
2645
2367
|
return state.loading |= 2;
|
|
2646
2368
|
});
|
|
2647
2369
|
}
|
|
@@ -2652,8 +2374,7 @@
|
|
|
2652
2374
|
return "script[async]" + key;
|
|
2653
2375
|
}
|
|
2654
2376
|
function acquireResource(hoistableRoot, resource, props) {
|
|
2655
|
-
resource.count
|
|
2656
|
-
if (null === resource.instance)
|
|
2377
|
+
if (resource.count++, resource.instance === null)
|
|
2657
2378
|
switch (resource.type) {
|
|
2658
2379
|
case "style":
|
|
2659
2380
|
var instance = hoistableRoot.querySelector(
|
|
@@ -2667,13 +2388,9 @@
|
|
|
2667
2388
|
href: null,
|
|
2668
2389
|
precedence: null
|
|
2669
2390
|
});
|
|
2670
|
-
instance = (hoistableRoot.ownerDocument || hoistableRoot).createElement(
|
|
2391
|
+
return instance = (hoistableRoot.ownerDocument || hoistableRoot).createElement(
|
|
2671
2392
|
"style"
|
|
2672
|
-
);
|
|
2673
|
-
markNodeAsHoistable(instance);
|
|
2674
|
-
setInitialProperties(instance, "style", styleProps);
|
|
2675
|
-
insertStylesheet(instance, props.precedence, hoistableRoot);
|
|
2676
|
-
return resource.instance = instance;
|
|
2393
|
+
), markNodeAsHoistable(instance), setInitialProperties(instance, "style", styleProps), insertStylesheet(instance, props.precedence, hoistableRoot), resource.instance = instance;
|
|
2677
2394
|
case "stylesheet":
|
|
2678
2395
|
styleProps = getStyleKey(props.href);
|
|
2679
2396
|
var instance$274 = hoistableRoot.querySelector(
|
|
@@ -2681,41 +2398,22 @@
|
|
|
2681
2398
|
);
|
|
2682
2399
|
if (instance$274)
|
|
2683
2400
|
return resource.state.loading |= 4, resource.instance = instance$274, markNodeAsHoistable(instance$274), instance$274;
|
|
2684
|
-
instance = stylesheetPropsFromRawProps(props);
|
|
2685
|
-
(styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps);
|
|
2686
|
-
instance$274 = (hoistableRoot.ownerDocument || hoistableRoot).createElement("link");
|
|
2687
|
-
markNodeAsHoistable(instance$274);
|
|
2401
|
+
instance = stylesheetPropsFromRawProps(props), (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps), instance$274 = (hoistableRoot.ownerDocument || hoistableRoot).createElement("link"), markNodeAsHoistable(instance$274);
|
|
2688
2402
|
var linkInstance = instance$274;
|
|
2689
|
-
linkInstance._p = new Promise(function(resolve, reject) {
|
|
2690
|
-
linkInstance.onload = resolve;
|
|
2691
|
-
|
|
2692
|
-
});
|
|
2693
|
-
setInitialProperties(instance$274, "link", instance);
|
|
2694
|
-
resource.state.loading |= 4;
|
|
2695
|
-
insertStylesheet(instance$274, props.precedence, hoistableRoot);
|
|
2696
|
-
return resource.instance = instance$274;
|
|
2403
|
+
return linkInstance._p = new Promise(function(resolve, reject) {
|
|
2404
|
+
linkInstance.onload = resolve, linkInstance.onerror = reject;
|
|
2405
|
+
}), setInitialProperties(instance$274, "link", instance), resource.state.loading |= 4, insertStylesheet(instance$274, props.precedence, hoistableRoot), resource.instance = instance$274;
|
|
2697
2406
|
case "script":
|
|
2698
|
-
instance$274 = getScriptKey(props.src)
|
|
2699
|
-
if (styleProps = hoistableRoot.querySelector(
|
|
2407
|
+
return instance$274 = getScriptKey(props.src), (styleProps = hoistableRoot.querySelector(
|
|
2700
2408
|
getScriptSelectorFromKey(instance$274)
|
|
2701
|
-
))
|
|
2702
|
-
return resource.instance = styleProps, markNodeAsHoistable(styleProps), styleProps;
|
|
2703
|
-
instance = props;
|
|
2704
|
-
if (styleProps = preloadPropsMap.get(instance$274))
|
|
2705
|
-
instance = assign({}, props), adoptPreloadPropsForScript(instance, styleProps);
|
|
2706
|
-
hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;
|
|
2707
|
-
styleProps = hoistableRoot.createElement("script");
|
|
2708
|
-
markNodeAsHoistable(styleProps);
|
|
2709
|
-
setInitialProperties(styleProps, "link", instance);
|
|
2710
|
-
hoistableRoot.head.appendChild(styleProps);
|
|
2711
|
-
return resource.instance = styleProps;
|
|
2409
|
+
)) ? (resource.instance = styleProps, markNodeAsHoistable(styleProps), styleProps) : (instance = props, (styleProps = preloadPropsMap.get(instance$274)) && (instance = assign({}, props), adoptPreloadPropsForScript(instance, styleProps)), hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot, styleProps = hoistableRoot.createElement("script"), markNodeAsHoistable(styleProps), setInitialProperties(styleProps, "link", instance), hoistableRoot.head.appendChild(styleProps), resource.instance = styleProps);
|
|
2712
2410
|
case "void":
|
|
2713
2411
|
return null;
|
|
2714
2412
|
default:
|
|
2715
2413
|
throw Error(formatProdErrorMessage(443, resource.type));
|
|
2716
2414
|
}
|
|
2717
2415
|
else
|
|
2718
|
-
|
|
2416
|
+
resource.type === "stylesheet" && (resource.state.loading & 4) === 0 && (instance = resource.instance, resource.state.loading |= 4, insertStylesheet(instance, props.precedence, hoistableRoot));
|
|
2719
2417
|
return resource.instance;
|
|
2720
2418
|
}
|
|
2721
2419
|
function insertStylesheet(instance, precedence, root2) {
|
|
@@ -2726,32 +2424,25 @@
|
|
|
2726
2424
|
if (node.dataset.precedence === precedence) prior = node;
|
|
2727
2425
|
else if (prior !== last) break;
|
|
2728
2426
|
}
|
|
2729
|
-
prior ? prior.parentNode.insertBefore(instance, prior.nextSibling) : (precedence =
|
|
2427
|
+
prior ? prior.parentNode.insertBefore(instance, prior.nextSibling) : (precedence = root2.nodeType === 9 ? root2.head : root2, precedence.insertBefore(instance, precedence.firstChild));
|
|
2730
2428
|
}
|
|
2731
2429
|
function adoptPreloadPropsForStylesheet(stylesheetProps, preloadProps) {
|
|
2732
|
-
|
|
2733
|
-
null == stylesheetProps.referrerPolicy && (stylesheetProps.referrerPolicy = preloadProps.referrerPolicy);
|
|
2734
|
-
null == stylesheetProps.title && (stylesheetProps.title = preloadProps.title);
|
|
2430
|
+
stylesheetProps.crossOrigin == null && (stylesheetProps.crossOrigin = preloadProps.crossOrigin), stylesheetProps.referrerPolicy == null && (stylesheetProps.referrerPolicy = preloadProps.referrerPolicy), stylesheetProps.title == null && (stylesheetProps.title = preloadProps.title);
|
|
2735
2431
|
}
|
|
2736
2432
|
function adoptPreloadPropsForScript(scriptProps, preloadProps) {
|
|
2737
|
-
|
|
2738
|
-
null == scriptProps.referrerPolicy && (scriptProps.referrerPolicy = preloadProps.referrerPolicy);
|
|
2739
|
-
null == scriptProps.integrity && (scriptProps.integrity = preloadProps.integrity);
|
|
2433
|
+
scriptProps.crossOrigin == null && (scriptProps.crossOrigin = preloadProps.crossOrigin), scriptProps.referrerPolicy == null && (scriptProps.referrerPolicy = preloadProps.referrerPolicy), scriptProps.integrity == null && (scriptProps.integrity = preloadProps.integrity);
|
|
2740
2434
|
}
|
|
2741
2435
|
var tagCaches = null;
|
|
2742
2436
|
function getHydratableHoistableCache(type, keyAttribute, ownerDocument) {
|
|
2743
|
-
if (
|
|
2744
|
-
var cache = /* @__PURE__ */ new Map();
|
|
2745
|
-
var caches = tagCaches = /* @__PURE__ */ new Map();
|
|
2437
|
+
if (tagCaches === null) {
|
|
2438
|
+
var cache = /* @__PURE__ */ new Map(), caches = tagCaches = /* @__PURE__ */ new Map();
|
|
2746
2439
|
caches.set(ownerDocument, cache);
|
|
2747
2440
|
} else
|
|
2748
2441
|
caches = tagCaches, cache = caches.get(ownerDocument), cache || (cache = /* @__PURE__ */ new Map(), caches.set(ownerDocument, cache));
|
|
2749
2442
|
if (cache.has(type)) return cache;
|
|
2750
|
-
cache.set(type, null);
|
|
2751
|
-
ownerDocument = ownerDocument.getElementsByTagName(type);
|
|
2752
|
-
for (caches = 0; caches < ownerDocument.length; caches++) {
|
|
2443
|
+
for (cache.set(type, null), ownerDocument = ownerDocument.getElementsByTagName(type), caches = 0; caches < ownerDocument.length; caches++) {
|
|
2753
2444
|
var node = ownerDocument[caches];
|
|
2754
|
-
if (!(node[internalHoistableMarker] || node[internalInstanceKey] ||
|
|
2445
|
+
if (!(node[internalHoistableMarker] || node[internalInstanceKey] || type === "link" && node.getAttribute("rel") === "stylesheet") && node.namespaceURI !== "http://www.w3.org/2000/svg") {
|
|
2755
2446
|
var nodeKey = node.getAttribute(keyAttribute) || "";
|
|
2756
2447
|
nodeKey = type + nodeKey;
|
|
2757
2448
|
var existing = cache.get(nodeKey);
|
|
@@ -2761,163 +2452,120 @@
|
|
|
2761
2452
|
return cache;
|
|
2762
2453
|
}
|
|
2763
2454
|
function mountHoistable(hoistableRoot, type, instance) {
|
|
2764
|
-
hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot
|
|
2765
|
-
hoistableRoot.head.insertBefore(
|
|
2455
|
+
hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot, hoistableRoot.head.insertBefore(
|
|
2766
2456
|
instance,
|
|
2767
|
-
"title"
|
|
2457
|
+
type === "title" ? hoistableRoot.querySelector("head > title") : null
|
|
2768
2458
|
);
|
|
2769
2459
|
}
|
|
2770
2460
|
function isHostHoistableType(type, props, hostContext) {
|
|
2771
|
-
if (
|
|
2461
|
+
if (hostContext === 1 || props.itemProp != null) return !1;
|
|
2772
2462
|
switch (type) {
|
|
2773
2463
|
case "meta":
|
|
2774
2464
|
case "title":
|
|
2775
|
-
return
|
|
2465
|
+
return !0;
|
|
2776
2466
|
case "style":
|
|
2777
|
-
if (
|
|
2467
|
+
if (typeof props.precedence != "string" || typeof props.href != "string" || props.href === "")
|
|
2778
2468
|
break;
|
|
2779
|
-
return
|
|
2469
|
+
return !0;
|
|
2780
2470
|
case "link":
|
|
2781
|
-
if (
|
|
2471
|
+
if (typeof props.rel != "string" || typeof props.href != "string" || props.href === "" || props.onLoad || props.onError)
|
|
2782
2472
|
break;
|
|
2783
|
-
|
|
2784
|
-
case "stylesheet":
|
|
2785
|
-
return type = props.disabled, "string" === typeof props.precedence && null == type;
|
|
2786
|
-
default:
|
|
2787
|
-
return true;
|
|
2788
|
-
}
|
|
2473
|
+
return props.rel === "stylesheet" ? (type = props.disabled, typeof props.precedence == "string" && type == null) : !0;
|
|
2789
2474
|
case "script":
|
|
2790
|
-
if (props.async &&
|
|
2791
|
-
return
|
|
2475
|
+
if (props.async && typeof props.async != "function" && typeof props.async != "symbol" && !props.onLoad && !props.onError && props.src && typeof props.src == "string")
|
|
2476
|
+
return !0;
|
|
2792
2477
|
}
|
|
2793
|
-
return
|
|
2478
|
+
return !1;
|
|
2794
2479
|
}
|
|
2795
2480
|
function maySuspendCommit(type, props) {
|
|
2796
|
-
return "img"
|
|
2481
|
+
return type === "img" && props.src != null && props.src !== "" && props.onLoad == null && props.loading !== "lazy";
|
|
2797
2482
|
}
|
|
2798
2483
|
function preloadResource(resource) {
|
|
2799
|
-
return
|
|
2484
|
+
return !(resource.type === "stylesheet" && (resource.state.loading & 3) === 0);
|
|
2800
2485
|
}
|
|
2801
2486
|
function estimateImageBytes(instance) {
|
|
2802
|
-
return (instance.width || 100) * (instance.height || 100) * ("number"
|
|
2487
|
+
return (instance.width || 100) * (instance.height || 100) * (typeof devicePixelRatio == "number" ? devicePixelRatio : 1) * 0.25;
|
|
2803
2488
|
}
|
|
2804
2489
|
function suspendInstance(state, instance) {
|
|
2805
|
-
|
|
2490
|
+
typeof instance.decode == "function" && (state.imgCount++, instance.complete || (state.imgBytes += estimateImageBytes(instance), state.suspenseyImages.push(instance)), state = onUnsuspendImg.bind(state), instance.decode().then(state, state));
|
|
2806
2491
|
}
|
|
2807
2492
|
function suspendResource(state, hoistableRoot, resource, props) {
|
|
2808
|
-
if (
|
|
2809
|
-
if (
|
|
2493
|
+
if (resource.type === "stylesheet" && (typeof props.media != "string" || matchMedia(props.media).matches !== !1) && (resource.state.loading & 4) === 0) {
|
|
2494
|
+
if (resource.instance === null) {
|
|
2810
2495
|
var key = getStyleKey(props.href), instance = hoistableRoot.querySelector(
|
|
2811
2496
|
getStylesheetSelectorFromKey(key)
|
|
2812
2497
|
);
|
|
2813
2498
|
if (instance) {
|
|
2814
|
-
hoistableRoot = instance._p;
|
|
2815
|
-
null !== hoistableRoot && "object" === typeof hoistableRoot && "function" === typeof hoistableRoot.then && (state.count++, state = onUnsuspend.bind(state), hoistableRoot.then(state, state));
|
|
2816
|
-
resource.state.loading |= 4;
|
|
2817
|
-
resource.instance = instance;
|
|
2818
|
-
markNodeAsHoistable(instance);
|
|
2499
|
+
hoistableRoot = instance._p, hoistableRoot !== null && typeof hoistableRoot == "object" && typeof hoistableRoot.then == "function" && (state.count++, state = onUnsuspend.bind(state), hoistableRoot.then(state, state)), resource.state.loading |= 4, resource.instance = instance, markNodeAsHoistable(instance);
|
|
2819
2500
|
return;
|
|
2820
2501
|
}
|
|
2821
|
-
instance = hoistableRoot.ownerDocument || hoistableRoot;
|
|
2822
|
-
props = stylesheetPropsFromRawProps(props);
|
|
2823
|
-
(key = preloadPropsMap.get(key)) && adoptPreloadPropsForStylesheet(props, key);
|
|
2824
|
-
instance = instance.createElement("link");
|
|
2825
|
-
markNodeAsHoistable(instance);
|
|
2502
|
+
instance = hoistableRoot.ownerDocument || hoistableRoot, props = stylesheetPropsFromRawProps(props), (key = preloadPropsMap.get(key)) && adoptPreloadPropsForStylesheet(props, key), instance = instance.createElement("link"), markNodeAsHoistable(instance);
|
|
2826
2503
|
var linkInstance = instance;
|
|
2827
2504
|
linkInstance._p = new Promise(function(resolve, reject) {
|
|
2828
|
-
linkInstance.onload = resolve;
|
|
2829
|
-
|
|
2830
|
-
});
|
|
2831
|
-
setInitialProperties(instance, "link", props);
|
|
2832
|
-
resource.instance = instance;
|
|
2505
|
+
linkInstance.onload = resolve, linkInstance.onerror = reject;
|
|
2506
|
+
}), setInitialProperties(instance, "link", props), resource.instance = instance;
|
|
2833
2507
|
}
|
|
2834
|
-
|
|
2835
|
-
state.stylesheets.set(resource, hoistableRoot);
|
|
2836
|
-
(hoistableRoot = resource.state.preload) && 0 === (resource.state.loading & 3) && (state.count++, resource = onUnsuspend.bind(state), hoistableRoot.addEventListener("load", resource), hoistableRoot.addEventListener("error", resource));
|
|
2508
|
+
state.stylesheets === null && (state.stylesheets = /* @__PURE__ */ new Map()), state.stylesheets.set(resource, hoistableRoot), (hoistableRoot = resource.state.preload) && (resource.state.loading & 3) === 0 && (state.count++, resource = onUnsuspend.bind(state), hoistableRoot.addEventListener("load", resource), hoistableRoot.addEventListener("error", resource));
|
|
2837
2509
|
}
|
|
2838
2510
|
}
|
|
2839
2511
|
var estimatedBytesWithinLimit = 0;
|
|
2840
2512
|
function waitForCommitToBeReady(state, timeoutOffset) {
|
|
2841
|
-
state.stylesheets &&
|
|
2842
|
-
return 0 < state.count || 0 < state.imgCount ? function(commit) {
|
|
2513
|
+
return state.stylesheets && state.count === 0 && insertSuspendedStylesheets(state, state.stylesheets), 0 < state.count || 0 < state.imgCount ? function(commit) {
|
|
2843
2514
|
var stylesheetTimer = setTimeout(function() {
|
|
2844
|
-
state.stylesheets && insertSuspendedStylesheets(state, state.stylesheets)
|
|
2845
|
-
if (state.unsuspend) {
|
|
2515
|
+
if (state.stylesheets && insertSuspendedStylesheets(state, state.stylesheets), state.unsuspend) {
|
|
2846
2516
|
var unsuspend = state.unsuspend;
|
|
2847
|
-
state.unsuspend = null;
|
|
2848
|
-
unsuspend();
|
|
2517
|
+
state.unsuspend = null, unsuspend();
|
|
2849
2518
|
}
|
|
2850
2519
|
}, 6e4 + timeoutOffset);
|
|
2851
|
-
0 < state.imgBytes &&
|
|
2520
|
+
0 < state.imgBytes && estimatedBytesWithinLimit === 0 && (estimatedBytesWithinLimit = 62500 * estimateBandwidth());
|
|
2852
2521
|
var imgTimer = setTimeout(
|
|
2853
2522
|
function() {
|
|
2854
|
-
state.waitingForImages =
|
|
2855
|
-
if (0 === state.count && (state.stylesheets && insertSuspendedStylesheets(state, state.stylesheets), state.unsuspend)) {
|
|
2523
|
+
if (state.waitingForImages = !1, state.count === 0 && (state.stylesheets && insertSuspendedStylesheets(state, state.stylesheets), state.unsuspend)) {
|
|
2856
2524
|
var unsuspend = state.unsuspend;
|
|
2857
|
-
state.unsuspend = null;
|
|
2858
|
-
unsuspend();
|
|
2525
|
+
state.unsuspend = null, unsuspend();
|
|
2859
2526
|
}
|
|
2860
2527
|
},
|
|
2861
2528
|
(state.imgBytes > estimatedBytesWithinLimit ? 50 : 800) + timeoutOffset
|
|
2862
2529
|
);
|
|
2863
|
-
state.unsuspend = commit
|
|
2864
|
-
|
|
2865
|
-
state.unsuspend = null;
|
|
2866
|
-
clearTimeout(stylesheetTimer);
|
|
2867
|
-
clearTimeout(imgTimer);
|
|
2530
|
+
return state.unsuspend = commit, function() {
|
|
2531
|
+
state.unsuspend = null, clearTimeout(stylesheetTimer), clearTimeout(imgTimer);
|
|
2868
2532
|
};
|
|
2869
2533
|
} : null;
|
|
2870
2534
|
}
|
|
2871
2535
|
function checkIfFullyUnsuspended(state) {
|
|
2872
|
-
if (
|
|
2536
|
+
if (state.count === 0 && (state.imgCount === 0 || !state.waitingForImages)) {
|
|
2873
2537
|
if (state.stylesheets) insertSuspendedStylesheets(state, state.stylesheets);
|
|
2874
2538
|
else if (state.unsuspend) {
|
|
2875
2539
|
var unsuspend = state.unsuspend;
|
|
2876
|
-
state.unsuspend = null;
|
|
2877
|
-
unsuspend();
|
|
2540
|
+
state.unsuspend = null, unsuspend();
|
|
2878
2541
|
}
|
|
2879
2542
|
}
|
|
2880
2543
|
}
|
|
2881
2544
|
function onUnsuspend() {
|
|
2882
|
-
this.count
|
|
2883
|
-
checkIfFullyUnsuspended(this);
|
|
2545
|
+
this.count--, checkIfFullyUnsuspended(this);
|
|
2884
2546
|
}
|
|
2885
2547
|
function onUnsuspendImg() {
|
|
2886
|
-
this.imgCount
|
|
2887
|
-
checkIfFullyUnsuspended(this);
|
|
2548
|
+
this.imgCount--, checkIfFullyUnsuspended(this);
|
|
2888
2549
|
}
|
|
2889
2550
|
var precedencesByRoot = null;
|
|
2890
2551
|
function insertSuspendedStylesheets(state, resources) {
|
|
2891
|
-
state.stylesheets = null;
|
|
2892
|
-
null !== state.unsuspend && (state.count++, precedencesByRoot = /* @__PURE__ */ new Map(), resources.forEach(insertStylesheetIntoRoot, state), precedencesByRoot = null, onUnsuspend.call(state));
|
|
2552
|
+
state.stylesheets = null, state.unsuspend !== null && (state.count++, precedencesByRoot = /* @__PURE__ */ new Map(), resources.forEach(insertStylesheetIntoRoot, state), precedencesByRoot = null, onUnsuspend.call(state));
|
|
2893
2553
|
}
|
|
2894
2554
|
function insertStylesheetIntoRoot(root2, resource) {
|
|
2895
2555
|
if (!(resource.state.loading & 4)) {
|
|
2896
2556
|
var precedences = precedencesByRoot.get(root2);
|
|
2897
2557
|
if (precedences) var last = precedences.get(null);
|
|
2898
2558
|
else {
|
|
2899
|
-
precedences = /* @__PURE__ */ new Map();
|
|
2900
|
-
precedencesByRoot.set(root2, precedences);
|
|
2559
|
+
precedences = /* @__PURE__ */ new Map(), precedencesByRoot.set(root2, precedences);
|
|
2901
2560
|
for (var nodes = root2.querySelectorAll(
|
|
2902
2561
|
"link[data-precedence],style[data-precedence]"
|
|
2903
2562
|
), i = 0; i < nodes.length; i++) {
|
|
2904
2563
|
var node = nodes[i];
|
|
2905
|
-
|
|
2906
|
-
precedences.set(node.dataset.precedence, node), last = node;
|
|
2564
|
+
(node.nodeName === "LINK" || node.getAttribute("media") !== "not all") && (precedences.set(node.dataset.precedence, node), last = node);
|
|
2907
2565
|
}
|
|
2908
2566
|
last && precedences.set(null, last);
|
|
2909
2567
|
}
|
|
2910
|
-
nodes = resource.instance;
|
|
2911
|
-
node = nodes.getAttribute("data-precedence");
|
|
2912
|
-
i = precedences.get(node) || last;
|
|
2913
|
-
i === last && precedences.set(null, nodes);
|
|
2914
|
-
precedences.set(node, nodes);
|
|
2915
|
-
this.count++;
|
|
2916
|
-
last = onUnsuspend.bind(this);
|
|
2917
|
-
nodes.addEventListener("load", last);
|
|
2918
|
-
nodes.addEventListener("error", last);
|
|
2919
|
-
i ? i.parentNode.insertBefore(nodes, i.nextSibling) : (root2 = 9 === root2.nodeType ? root2.head : root2, root2.insertBefore(nodes, root2.firstChild));
|
|
2920
|
-
resource.state.loading |= 4;
|
|
2568
|
+
nodes = resource.instance, node = nodes.getAttribute("data-precedence"), i = precedences.get(node) || last, i === last && precedences.set(null, nodes), precedences.set(node, nodes), this.count++, last = onUnsuspend.bind(this), nodes.addEventListener("load", last), nodes.addEventListener("error", last), i ? i.parentNode.insertBefore(nodes, i.nextSibling) : (root2 = root2.nodeType === 9 ? root2.head : root2, root2.insertBefore(nodes, root2.firstChild)), resource.state.loading |= 4;
|
|
2921
2569
|
}
|
|
2922
2570
|
}
|
|
2923
2571
|
var HostTransitionContext = {
|