uigraph 1.0.0 → 1.0.1
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/dist/bin.mjs +134 -56911
- package/dist/viewer/assets/abnfDiagram-VCTEODGH-D7zWJuPJ.js +1 -0
- package/dist/viewer/assets/actor-avatar-Bu-mKKXB.js +1 -0
- package/dist/viewer/assets/{api-adapters-CnQpLiWI.js → api-adapters-tfr51BsS.js} +1 -1
- package/dist/viewer/assets/{api-endpoints-DCA5GNpC.js → api-endpoints-D-Whnnwd.js} +9 -9
- package/dist/viewer/assets/{api-group-endpoints-page-Di42W69y.js → api-group-endpoints-page-B9R1EI4i.js} +9 -9
- package/dist/viewer/assets/{arc-Cn8owoDw.js → arc-DauzQXFu.js} +1 -1
- package/dist/viewer/assets/architectureDiagram-5GKGNRK7-CXzgHd-c.js +36 -0
- package/dist/viewer/assets/{arrow-left-DWcMgM2U.js → arrow-left-DpQqmf17.js} +1 -1
- package/dist/viewer/assets/avatar-DAFUyk1i.js +43 -0
- package/dist/viewer/assets/badge-hR3QvPWv.js +1 -0
- package/dist/viewer/assets/better-delete-confirmation-modal-CGEQ5O4X.js +1 -0
- package/dist/viewer/assets/better-dialog-DcIxFWwk.js +1 -0
- package/dist/viewer/assets/{blockDiagram-I7D4REHJ-CbYzOsL_.js → blockDiagram-I7D4REHJ-CFHWUw4z.js} +2 -2
- package/dist/viewer/assets/{brands-Bd4RklRx.js → brands-DtmA1AhP.js} +1 -1
- package/dist/viewer/assets/button-DZj74qS7.js +1 -0
- package/dist/viewer/assets/{c4Diagram-7LVT6UL2-CLkVbphC.js → c4Diagram-7LVT6UL2-BHSggPKI.js} +6 -6
- package/dist/viewer/assets/{calendar-C0xdI_ag.js → calendar-Bolgc8E5.js} +1 -1
- package/dist/viewer/assets/channel-CNRSofFP.js +1 -0
- package/dist/viewer/assets/{check-XjanpAFg.js → check-BpmCQNbj.js} +1 -1
- package/dist/viewer/assets/checkbox-CFJfXL6R.js +1 -0
- package/dist/viewer/assets/{chevron-down-R7pQzyLD.js → chevron-down-DDsUE_xz.js} +1 -1
- package/dist/viewer/assets/{chevron-up-CRPypfOs.js → chevron-up-DVznKMGv.js} +1 -1
- package/dist/viewer/assets/{chunk-2Q5K7J3B-CcvtugCu.js → chunk-2Q5K7J3B-CNfz5YDQ.js} +1 -1
- package/dist/viewer/assets/{chunk-5VM5RSS4-CpZHHr12.js → chunk-5VM5RSS4-CwIhjvMe.js} +1 -1
- package/dist/viewer/assets/{chunk-F27PBJKO-DeAl4iOc.js → chunk-F27PBJKO-YFexFJof.js} +1 -1
- package/dist/viewer/assets/{chunk-IMKFNOWR-BfrPe7pS.js → chunk-IMKFNOWR-GY2yrvuo.js} +1 -1
- package/dist/viewer/assets/{chunk-JWPE2WC7-DDjyvUmZ.js → chunk-JWPE2WC7-xd0JGvne.js} +1 -1
- package/dist/viewer/assets/chunk-OB3PAWPO-DJIP1M4r.js +12 -0
- package/dist/viewer/assets/{chunk-POPQ4Y6H-DkDb0mzz.js → chunk-POPQ4Y6H-Bh6rizEy.js} +1 -1
- package/dist/viewer/assets/{chunk-SVP7TREG-D-K2XIGs.js → chunk-SVP7TREG-DtNrjvpq.js} +1 -1
- package/dist/viewer/assets/{chunk-TICWLB2K-DWMQQx6z.js → chunk-TICWLB2K-DrERwtw8.js} +1 -1
- package/dist/viewer/assets/{chunk-XXDRQBXY-DfkljAyM.js → chunk-XXDRQBXY-fYo04iwY.js} +1 -1
- package/dist/viewer/assets/{circle-alert-pm13M-Ef.js → circle-alert-Bl7DXYD_.js} +1 -1
- package/dist/viewer/assets/classDiagram-ZZMXUADV-D7PO-ME9.js +1 -0
- package/dist/viewer/assets/classDiagram-v2-VYDZK3BY-D7PO-ME9.js +1 -0
- package/dist/viewer/assets/color-input-ClkkG_kZ.js +11 -0
- package/dist/viewer/assets/{common-Y7ySZBdh.js → common-DLCsGQ-t.js} +1 -1
- package/dist/viewer/assets/{component-icons-D1BDAuEt.js → component-icons-MJ61E9nt.js} +2 -2
- package/dist/viewer/assets/{copy-CN4K2f_R.js → copy-DMJJonQF.js} +1 -1
- package/dist/viewer/assets/cose-bilkent-JH36ORCC-Dplz8nVT.js +1 -0
- package/dist/viewer/assets/cross-button-D5qst1tj.js +1 -0
- package/dist/viewer/assets/{cynefin-OW5HDTMX-yz-uw9Kz.js → cynefin-OW5HDTMX-DiBs4CI8.js} +1 -1
- package/dist/viewer/assets/cynefinDiagram-5FMLGOSQ-COXS8-dI.js +62 -0
- package/dist/viewer/assets/{dagre-GXQ25YYZ-zjZDwXOe.js → dagre-GXQ25YYZ-K8qvfG8D.js} +2 -2
- package/dist/viewer/assets/dashboard-diagrams-page-Cb0xNr4W.js +2 -0
- package/dist/viewer/assets/dashboard-diagrams-page-inner-CD--zr5q.js +1 -0
- package/dist/viewer/assets/dashboard-docs-page-BfWR9Ai9.js +2 -0
- package/dist/viewer/assets/dashboard-docs-page-inner-BLbX-YwF.js +67 -0
- package/dist/viewer/assets/dashboard-layout-sTeeHNsZ.js +1 -0
- package/dist/viewer/assets/dashboard-lens-layout-D-tu_4kn.js +1 -0
- package/dist/viewer/assets/dashboard-map-frame-page-7pDmbTSe.js +1 -0
- package/dist/viewer/assets/dashboard-plans-page-CfwOZ34A.js +1 -0
- package/dist/viewer/assets/dashboard-service-apis-k93fjW51.js +1 -0
- package/dist/viewer/assets/{dashboard-service-diagrams-CIjk95Jk.js → dashboard-service-diagrams-BIWUxX-Y.js} +3 -3
- package/dist/viewer/assets/dashboard-service-docs-CnniTD6Q.js +1 -0
- package/dist/viewer/assets/{dashboard-service-overview-CzePVPjl.js → dashboard-service-overview-CGBu4omY.js} +5 -5
- package/dist/viewer/assets/dashboard-services-DEscIO2O.js +1 -0
- package/dist/viewer/assets/{db-type-badge-DOgu1Pyc.js → db-type-badge-UbPgpwQf.js} +2 -2
- package/dist/viewer/assets/debounce-Cp8eREM4-D7o-Pzb-.js +2 -0
- package/dist/viewer/assets/{dependencies-CYdEztHw.js → dependencies-DK2GDlhQ.js} +1 -1
- package/dist/viewer/assets/{dependency-graph-DbyfN-rC.js → dependency-graph-xBEnCS0J.js} +3 -3
- package/dist/viewer/assets/{diagram-S7CK7UJ4-q-NHkUCx.js → diagram-S7CK7UJ4-D-liadVe.js} +2 -2
- package/dist/viewer/assets/diagram-UQ7AKVKN-CnA8mgXp.js +41 -0
- package/dist/viewer/assets/{diagram-VSXAHHWV-DZc1kHGx.js → diagram-VSXAHHWV-Ck7dgRFR.js} +2 -2
- package/dist/viewer/assets/diagram-VX7I27RA-Cm1LHbu3.js +24 -0
- package/dist/viewer/assets/diagram-Z3DM3KII-DV3yBUCB.js +24 -0
- package/dist/viewer/assets/diagram-live-preview-DzJ7Nxp1.js +2 -0
- package/dist/viewer/assets/{diagram-portal-page-CWxuok9E.js → diagram-portal-page-gguGLULH.js} +24 -24
- package/dist/viewer/assets/{diagrams-C1xkRPqT.js → diagrams-BqBSv2eb.js} +4 -4
- package/dist/viewer/assets/dialog-D7wzTt0L.js +6 -0
- package/dist/viewer/assets/{doc-file-content-B06roi8L.js → doc-file-content-Be0au9Vo.js} +4 -4
- package/dist/viewer/assets/{download-CLdCXVsO.js → download-DhyZ3g4F.js} +1 -1
- package/dist/viewer/assets/ebnfDiagram-PWID7BFC-BXbHVQvG.js +1 -0
- package/dist/viewer/assets/{editor-vqK4qAnB.js → editor-F9o4zoeB.js} +2 -2
- package/dist/viewer/assets/{erDiagram-RLTQ6QDP-BWuA-aqV.js → erDiagram-RLTQ6QDP-DMfiWput.js} +2 -2
- package/dist/viewer/assets/{file-text-BvszilVL.js → file-text-BFqJQ67P.js} +1 -1
- package/dist/viewer/assets/flow-diagram-preview-B83UU1n_.js +1 -0
- package/dist/viewer/assets/{flowDiagram-HODETNUW-Db0QtNj4.js → flowDiagram-HODETNUW-BNFS2Mkr.js} +1 -1
- package/dist/viewer/assets/ganttDiagram-EL5Y4UJY-DFDsYJNp.js +292 -0
- package/dist/viewer/assets/gitGraphDiagram-WWUBYQGX-BVHabPDp.js +106 -0
- package/dist/viewer/assets/global-loader-XJO9_e0l.js +1 -0
- package/dist/viewer/assets/{globe-Jl6eIZmG.js → globe-CJ35KsQW.js} +1 -1
- package/dist/viewer/assets/gql-FFIj8zdp.js +1 -0
- package/dist/viewer/assets/{grid-scroll-body-CPqSxU6-.js → grid-scroll-body-DC5pYDPJ.js} +2 -2
- package/dist/viewer/assets/iconBase-DtqdW2XR.js +1 -0
- package/dist/viewer/assets/index-B6MxYIzs.js +1 -0
- package/dist/viewer/assets/index-BC5xdBQU.js +48 -0
- package/dist/viewer/assets/index-BIrx3oY4.js +1 -0
- package/dist/viewer/assets/{index-jm22RWpY.js → index-BZGsDmUx.js} +5 -5
- package/dist/viewer/assets/{index-Poftp9f1.js → index-BZXhpoWr.js} +4 -4
- package/dist/viewer/assets/index-Bn2bqqMd.js +1 -0
- package/dist/viewer/assets/{index-HU5pz3kj.js → index-BpCVYTvP.js} +36 -36
- package/dist/viewer/assets/{index-Bt2YHgxl.js → index-CBOYhBKJ.js} +1 -1
- package/dist/viewer/assets/index-CH7cEAxj.js +17 -0
- package/dist/viewer/assets/index-CIf0GId3.js +74 -0
- package/dist/viewer/assets/{index-D7MEHpJf.js → index-Ck66Ic_p.js} +4 -4
- package/dist/viewer/assets/index-Cp9mIQ8F.js +1 -0
- package/dist/viewer/assets/{index-c6Bxcoqm.js → index-DDmBuMKI.js} +1 -1
- package/dist/viewer/assets/{index-BSyJbFDG.js → index-DY3BFyb6.js} +1 -1
- package/dist/viewer/assets/{index-BS94XVnd.js → index-DkzZ-ZvR.js} +1 -1
- package/dist/viewer/assets/{index-C_43VC19.js → index-PglMbhys.js} +1 -1
- package/dist/viewer/assets/infoDiagram-27XIBGKW-CG-wwxBf.js +2 -0
- package/dist/viewer/assets/input--C59pq6j.js +1 -0
- package/dist/viewer/assets/{ishikawaDiagram-5VMMS53U-C4PzFnZ4.js → ishikawaDiagram-5VMMS53U-BlgV7ceJ.js} +2 -2
- package/dist/viewer/assets/{journeyDiagram-3NMN7TZE-Dpn3bBNo.js → journeyDiagram-3NMN7TZE-Cn03_Xl6.js} +2 -2
- package/dist/viewer/assets/{kanban-definition-UXKFOSKX-CJ99H4G6.js → kanban-definition-UXKFOSKX-CJogvDPY.js} +6 -6
- package/dist/viewer/assets/{layout-Bfvxt_D5.js → layout-B26eC4yQ.js} +1 -1
- package/dist/viewer/assets/{lens-run-page-DZneics-.js → lens-run-page-Ba1ppzJt.js} +3 -3
- package/dist/viewer/assets/lens-runs-page-BnUS57LM.js +1 -0
- package/dist/viewer/assets/{link-2-C75goIOt.js → link-2-D1e0xznG.js} +1 -1
- package/dist/viewer/assets/linked-project-dot-BY1gEES9.js +543 -0
- package/dist/viewer/assets/{loader-circle-C5jZoM7X.js → loader-circle-CiqyoJF7.js} +1 -1
- package/dist/viewer/assets/{merge-Cy7YkrN7.js → merge-BhOMvhW1.js} +1 -1
- package/dist/viewer/assets/mermaid.core-BDgZg3kW.js +312 -0
- package/dist/viewer/assets/method-badge-DErZP7y5.js +1 -0
- package/dist/viewer/assets/{mindmap-definition-YA3MSWOX-yQCKA-K4.js → mindmap-definition-YA3MSWOX-DFkLu0ac.js} +2 -2
- package/dist/viewer/assets/nav-links-DZWMpwMR.js +61 -0
- package/dist/viewer/assets/{network-COWNXGMM.js → network-B1apzT1s.js} +1 -1
- package/dist/viewer/assets/{nosql-editor-modal-DTiWkc_r.js → nosql-editor-modal-CvH0SWAi.js} +5 -5
- package/dist/viewer/assets/not-found-page-C-fn8QeM.js +1 -0
- package/dist/viewer/assets/organization-dependency-graph-page-BryP-iJL.js +1 -0
- package/dist/viewer/assets/pegDiagram-XKGWAZYB-g1cM14-L.js +1 -0
- package/dist/viewer/assets/{pieDiagram-E7YTZNPT-DqnkpCX4.js → pieDiagram-E7YTZNPT-WEnDsMY3.js} +2 -2
- package/dist/viewer/assets/{plus-DQakmTjA.js → plus-DbyuOgKB.js} +1 -1
- package/dist/viewer/assets/popover-476u3TN0.js +1 -0
- package/dist/viewer/assets/preload-helper-BlTxHScW.js +1 -0
- package/dist/viewer/assets/{quadrantDiagram-AXDQQJYC-iQjJfars.js → quadrantDiagram-AXDQQJYC-NdfQCpzF.js} +2 -2
- package/dist/viewer/assets/query-D9oj6LGx.js +50 -0
- package/dist/viewer/assets/{quill-rCHj4fCw.js → quill-Cde5JMRD.js} +1 -1
- package/dist/viewer/assets/railroadDiagram-O6MQD6OU-BYhlXlMY.js +1 -0
- package/dist/viewer/assets/{react-BNzYaZuG.js → react-Bx48XWN4.js} +1 -1
- package/dist/viewer/assets/react-flow-wrapper-BcbvHgxz.js +277 -0
- package/dist/viewer/assets/{requirementDiagram-BXWQKSXE-Bv-Vh1dW.js → requirementDiagram-BXWQKSXE-C25Bcm2L.js} +2 -2
- package/dist/viewer/assets/{sankeyDiagram-P5KCCOFB-C__uD07f.js → sankeyDiagram-P5KCCOFB-h8LiCsgk.js} +2 -2
- package/dist/viewer/assets/scroll-area-RagrStGj.js +6 -0
- package/dist/viewer/assets/{search-DW-qhXLk.js → search-vw7ucoOs.js} +1 -1
- package/dist/viewer/assets/section-loader-C4hOfhQS.js +1 -0
- package/dist/viewer/assets/section-not-found-BnrXiPog.js +1 -0
- package/dist/viewer/assets/select-D9fbrr7O.js +1 -0
- package/dist/viewer/assets/{sequenceDiagram-WJ2MYXX4-1RbvcHwO.js → sequenceDiagram-WJ2MYXX4-CDRVvD30.js} +2 -2
- package/dist/viewer/assets/{service-context-C17u_Fw9.js → service-context-D5nBtU18.js} +1 -1
- package/dist/viewer/assets/{service-database-list-page-cYuDHIls.js → service-database-list-page-DBjaDLVy.js} +2 -2
- package/dist/viewer/assets/service-database-page-CenNCgwf.js +2 -0
- package/dist/viewer/assets/service-database-page-inner-gS51TQTZ.js +85 -0
- package/dist/viewer/assets/{service-doc-Dir8g83J.js → service-doc-C-jHqT1U.js} +4 -4
- package/dist/viewer/assets/{service-doc-preview-modal-bJ6tJ5YR.js → service-doc-preview-modal-5sX6FOu1.js} +2 -2
- package/dist/viewer/assets/service-layout-Bf0vZBCH.js +1 -0
- package/dist/viewer/assets/service-pages-CFikvX4t.js +1 -0
- package/dist/viewer/assets/{services-Crqkffr5.js → services-Ivav34WC.js} +4 -4
- package/dist/viewer/assets/{share-2-BmYmqN4k.js → share-2-CQEaWbfH.js} +1 -1
- package/dist/viewer/assets/sizeCapture-INFHLROL-BJ6ndnPM.js +1 -0
- package/dist/viewer/assets/stateDiagram-D77RDMKH-B_tNCX3o.js +1 -0
- package/dist/viewer/assets/stateDiagram-v2-MP3YSRHH-Dl9wqdli.js +1 -0
- package/dist/viewer/assets/{style-DgSU0bQl.js → style-BPesJvJr.js} +8 -8
- package/dist/viewer/assets/super-circle-loader-DSkos6uP.js +1 -0
- package/dist/viewer/assets/super-logo-loader-Cxlbn6MB.js +1 -0
- package/dist/viewer/assets/swimlanes-42K2YHIH-CzURzYwf.js +1 -0
- package/dist/viewer/assets/swimlanesDiagram-VR7AAH4N-DrIlwFtk.js +8 -0
- package/dist/viewer/assets/table-B4pFND-o.js +1 -0
- package/dist/viewer/assets/textarea-Clgdv3Oi.js +1 -0
- package/dist/viewer/assets/{timeline-definition-24CTP7MA-C4yuLwUH.js → timeline-definition-24CTP7MA-D0YXQE1U.js} +2 -2
- package/dist/viewer/assets/ui-graph-logo-gHowu5gP.js +1 -0
- package/dist/viewer/assets/{upload-CRsS43j9.js → upload-CYb3nN_5.js} +1 -1
- package/dist/viewer/assets/{uploads-BOQHX9l4.js → uploads-CX2kdXbM.js} +8 -8
- package/dist/viewer/assets/{use-debounced-value-Ba-kkCUY.js → use-debounced-value-BpNFJd3C.js} +1 -1
- package/dist/viewer/assets/{use-localstorage-DIisTx-J.js → use-localstorage-D233xVb0.js} +1 -1
- package/dist/viewer/assets/use-permissions-BvmxJJ5r.js +1 -0
- package/dist/viewer/assets/{use-scoped-storage-C4RzED-E.js → use-scoped-storage-DL1XVp1j.js} +1 -1
- package/dist/viewer/assets/useMutation-D5ZHwHsx.js +1 -0
- package/dist/viewer/assets/useQuery-Dhe6uxrL.js +1 -0
- package/dist/viewer/assets/{vennDiagram-4TSXK5OY-BCtqXZqe.js → vennDiagram-4TSXK5OY-SSjHlqCQ.js} +2 -2
- package/dist/viewer/assets/{wardleyDiagram-VM6X3IG4-D3OtZJoT.js → wardleyDiagram-VM6X3IG4-CZWNdQxH.js} +2 -2
- package/dist/viewer/assets/{xychartDiagram-S5SC5T6Z-DxLL2CHH.js → xychartDiagram-S5SC5T6Z-B2qAGeb0.js} +2 -2
- package/dist/viewer/assets/zod-BMU4UTQt.js +1 -0
- package/dist/viewer/index.html +10 -1
- package/package.json +56 -56
- package/dist/abort-signals-B4fc3ahg.mjs +0 -34
- package/dist/anthropic-messages-KPxCHqBN.mjs +0 -14327
- package/dist/auth-storage-BvNH97p9.mjs +0 -2180
- package/dist/azure-openai-config-BbeCSg4y.mjs +0 -55
- package/dist/azure-openai-responses-BRzy8RfL.mjs +0 -182
- package/dist/classifier-shared-DBUHiTGw.mjs +0 -105
- package/dist/cli-2R6QQFp1.mjs +0 -451
- package/dist/cloudflare-workers-ai-system-one-BfqwmRQf.mjs +0 -44
- package/dist/config-D8DMGzIq.mjs +0 -647
- package/dist/cross-spawn-B2jIQPlu.mjs +0 -404
- package/dist/diagnostics-xdSgQR8t.mjs +0 -131
- package/dist/dist-BRyghrKX.mjs +0 -404
- package/dist/dist-D0EzrblG.mjs +0 -12161
- package/dist/dist-EKhnHWHG.mjs +0 -140221
- package/dist/dist-pQtuusFv.mjs +0 -1243
- package/dist/easter-egg-3d-C9_btlWn.mjs +0 -1225
- package/dist/env-api-keys-uytNub6O.mjs +0 -122
- package/dist/error-body-FhmCtR7m.mjs +0 -101
- package/dist/esm-D5isprgl.mjs +0 -1533
- package/dist/esm-DnqE4pfM.mjs +0 -104876
- package/dist/execute-BoTKl80U.mjs +0 -1715
- package/dist/github-copilot-headers-DWcTgoXr.mjs +0 -22
- package/dist/google-generative-ai-Brs5YpJo.mjs +0 -332
- package/dist/google-shared-2CyYa4VE.mjs +0 -33438
- package/dist/google-vertex-DZDUQPKa.mjs +0 -378
- package/dist/hash-DN7ukSfd.mjs +0 -16
- package/dist/headers-GhQHLk-3.mjs +0 -17
- package/dist/jiti-9kWALm4Y.mjs +0 -5439
- package/dist/jiti-loader-f21DrY1K.mjs +0 -27
- package/dist/jiti-static-loader-BI_w28l7.mjs +0 -41704
- package/dist/json-parse-B2mHg7o7.mjs +0 -381
- package/dist/keybinding-hints-D0nLU3ZH.mjs +0 -17899
- package/dist/lib-Dj1gKQJc.mjs +0 -24379
- package/dist/llama-cpp-classify-C73BoMYd.mjs +0 -344
- package/dist/mistral-conversations-DXVR7znL.mjs +0 -698
- package/dist/models-DBdii9gQ.mjs +0 -1255
- package/dist/multipart-parser-DLw9Z0uJ.mjs +0 -298
- package/dist/node-B0NU8X55.mjs +0 -2479
- package/dist/node-B8gaKm9g.mjs +0 -23
- package/dist/openai-I3_AqKDX.mjs +0 -17357
- package/dist/openai-codex-responses-PcZHDuBD.mjs +0 -1198
- package/dist/openai-completions-a_mH01ii.mjs +0 -994
- package/dist/openai-decisions-Du8y4mQG.mjs +0 -142
- package/dist/openai-prompt-cache-Bc6qNWt0.mjs +0 -8
- package/dist/openai-responses-a9lV_U7O.mjs +0 -270
- package/dist/openai-responses-shared-CDs_PBiH.mjs +0 -598
- package/dist/openrouter-images-D0Zc8Cjs.mjs +0 -125
- package/dist/photon_rs-DCvMOMu0.mjs +0 -4252
- package/dist/pi-messages-B5ietIBq.mjs +0 -306
- package/dist/provider-env-BJhgA66g.mjs +0 -37
- package/dist/provider-retry-DXYM7rVE.mjs +0 -79
- package/dist/runtime-DTkBxiaM.mjs +0 -2822
- package/dist/sanitize-unicode-CqChtoM6.mjs +0 -26
- package/dist/shell-836_JFnI.mjs +0 -162
- package/dist/source-CKPndhKl.mjs +0 -478
- package/dist/src-DNm2QRm3.mjs +0 -5028
- package/dist/system-one-shared-DUAFtNa8.mjs +0 -75
- package/dist/token-DEUkymby.mjs +0 -56
- package/dist/token-util-Cx5S4eKt.mjs +0 -3
- package/dist/tool-DHDYqsyG.mjs +0 -6673
- package/dist/transform-messages-BClk99Vn.mjs +0 -477
- package/dist/typesafe-system-one-D2d8j8hZ.mjs +0 -24
- package/dist/typescript-Br-vsRJV.mjs +0 -6737
- package/dist/uuid-CNCZqNBb.mjs +0 -49
- package/dist/v2-1z8ijsD3.mjs +0 -6120
- package/dist/viewer/assets/abnfDiagram-VCTEODGH-j5YaKnl9.js +0 -1
- package/dist/viewer/assets/actor-avatar-DqmoY8Xc.js +0 -1
- package/dist/viewer/assets/architectureDiagram-5GKGNRK7-D80cJKz_.js +0 -36
- package/dist/viewer/assets/avatar-BI7D-Aia.js +0 -43
- package/dist/viewer/assets/badge-870-A4Y6.js +0 -1
- package/dist/viewer/assets/better-delete-confirmation-modal-Dib31LVb.js +0 -1
- package/dist/viewer/assets/better-dialog-D3AAiahr.js +0 -1
- package/dist/viewer/assets/button-DadqadpO.js +0 -1
- package/dist/viewer/assets/channel-DRkt3LIn.js +0 -1
- package/dist/viewer/assets/checkbox-BXpR079x.js +0 -1
- package/dist/viewer/assets/classDiagram-ZZMXUADV-G5CebNaC.js +0 -1
- package/dist/viewer/assets/classDiagram-v2-VYDZK3BY-G5CebNaC.js +0 -1
- package/dist/viewer/assets/color-input-Efm-lxDy.js +0 -11
- package/dist/viewer/assets/cose-bilkent-JH36ORCC-CrSHFmnp.js +0 -1
- package/dist/viewer/assets/cross-button-5Sr5rWVP.js +0 -1
- package/dist/viewer/assets/cynefinDiagram-5FMLGOSQ-Bdl_eBdu.js +0 -62
- package/dist/viewer/assets/dashboard-diagrams-page-DMupOe1m.js +0 -2
- package/dist/viewer/assets/dashboard-diagrams-page-inner-Dh0yKh2A.js +0 -1
- package/dist/viewer/assets/dashboard-docs-page-DWJ1qOQz.js +0 -2
- package/dist/viewer/assets/dashboard-docs-page-inner-Fs6G3oGo.js +0 -67
- package/dist/viewer/assets/dashboard-layout-D36InAaB.js +0 -1
- package/dist/viewer/assets/dashboard-lens-layout-Cv1Xx3hY.js +0 -1
- package/dist/viewer/assets/dashboard-map-frame-page-CTn61NUO.js +0 -1
- package/dist/viewer/assets/dashboard-plans-page-DxFJkrgK.js +0 -1
- package/dist/viewer/assets/dashboard-service-apis-BHtD9s5z.js +0 -1
- package/dist/viewer/assets/dashboard-service-docs-Uv_1uxxO.js +0 -1
- package/dist/viewer/assets/dashboard-services-CUP-L4Jg.js +0 -1
- package/dist/viewer/assets/diagram-UQ7AKVKN-DhFcurW6.js +0 -41
- package/dist/viewer/assets/diagram-VX7I27RA-DE1nREE8.js +0 -24
- package/dist/viewer/assets/diagram-Z3DM3KII-CSrYcCbc.js +0 -24
- package/dist/viewer/assets/diagram-live-preview-i5doxXLH.js +0 -2
- package/dist/viewer/assets/dialog-D_HtNS17.js +0 -6
- package/dist/viewer/assets/ebnfDiagram-PWID7BFC-BfL8m_sf.js +0 -1
- package/dist/viewer/assets/flow-diagram-preview-T0Z4iMVU.js +0 -1
- package/dist/viewer/assets/ganttDiagram-EL5Y4UJY-CsITpniw.js +0 -292
- package/dist/viewer/assets/gitGraphDiagram-WWUBYQGX-B4eCBGoe.js +0 -106
- package/dist/viewer/assets/iconBase-BoDZfJgC.js +0 -1
- package/dist/viewer/assets/index-5E1tJ7yK.js +0 -125
- package/dist/viewer/assets/index-7XpV2DRw.js +0 -1
- package/dist/viewer/assets/index-C0Rs3s9Z.js +0 -1
- package/dist/viewer/assets/index-CzHjJWeV.js +0 -1
- package/dist/viewer/assets/index-DcEA6SIV.js +0 -74
- package/dist/viewer/assets/infoDiagram-27XIBGKW-lTebN5Ix.js +0 -2
- package/dist/viewer/assets/input-YvHTVS0E.js +0 -1
- package/dist/viewer/assets/lens-runs-page-DoAOObxx.js +0 -1
- package/dist/viewer/assets/linked-project-dot-Ds2uEmJ9.js +0 -543
- package/dist/viewer/assets/mermaid.core-BCRBv8Us.js +0 -312
- package/dist/viewer/assets/method-badge-DMYDKdDZ.js +0 -1
- package/dist/viewer/assets/nav-links-8vT2ixiI.js +0 -61
- package/dist/viewer/assets/not-found-page-CnfLlhS4.js +0 -1
- package/dist/viewer/assets/organization-dependency-graph-page-3xqIxjNx.js +0 -1
- package/dist/viewer/assets/pegDiagram-XKGWAZYB-CMXqeAum.js +0 -1
- package/dist/viewer/assets/popover-CN9ni1N3.js +0 -1
- package/dist/viewer/assets/railroadDiagram-O6MQD6OU-CfqToX3W.js +0 -1
- package/dist/viewer/assets/react-flow-wrapper-BPlRstyO.js +0 -276
- package/dist/viewer/assets/scroll-area-BodE-n7W.js +0 -6
- package/dist/viewer/assets/section-loader-BzpYM_Nx.js +0 -1
- package/dist/viewer/assets/select-DDtnmSET.js +0 -1
- package/dist/viewer/assets/service-database-page-CMi1wF4h.js +0 -2
- package/dist/viewer/assets/service-database-page-inner-CoqAj93L.js +0 -85
- package/dist/viewer/assets/service-layout-0NMm_bKG.js +0 -1
- package/dist/viewer/assets/service-pages-dfnc91SU.js +0 -1
- package/dist/viewer/assets/sizeCapture-INFHLROL-BRJi3gCg.js +0 -1
- package/dist/viewer/assets/stateDiagram-D77RDMKH-DdLsfxgy.js +0 -1
- package/dist/viewer/assets/stateDiagram-v2-MP3YSRHH-DFwg8Qki.js +0 -1
- package/dist/viewer/assets/super-circle-loader-D8MElOMh.js +0 -1
- package/dist/viewer/assets/super-logo-loader-DJYiRbCS.js +0 -1
- package/dist/viewer/assets/swimlanes-42K2YHIH-AuYjrPqh.js +0 -1
- package/dist/viewer/assets/swimlanesDiagram-VR7AAH4N-0nIGA8_4.js +0 -8
- package/dist/viewer/assets/table-Bi4Auk9Z.js +0 -1
- package/dist/viewer/assets/textarea-MgxZ5x6-.js +0 -1
- package/dist/viewer/assets/ui-graph-logo-D4jRhd4z.js +0 -1
- package/dist/viewer/assets/use-permissions-6JVET753.js +0 -1
- package/dist/viewer/assets/useMutation-CmVaR9zz.js +0 -1
- package/dist/viewer/assets/useQuery-B8yYhO0c.js +0 -1
- package/dist/viewer/assets/zod-Dc4H6VVJ.js +0 -1
- package/dist/virtual-modules-DnCx0Gdx.mjs +0 -340
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import{j as $,b as ga,g as ba,R as nt,r as _r}from"./index-CH7cEAxj.js";var Gt=function(t,e){return Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Gt(t,e)};function ee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Gt(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var v=function(){return v=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},v.apply(this,arguments)};function te(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function se(t,e,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(l){try{c(n.next(l))}catch(f){o(f)}}function u(l){try{c(n.throw(l))}catch(f){o(f)}}function c(l){l.done?a(l.value):i(l.value).then(s,u)}c((n=n.apply(t,e||[])).next())})}function ue(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(l){c=[6,l],i=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function U(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))}var It="Invariant Violation",Br=Object.setPrototypeOf,_a=Br===void 0?function(t,e){return t.__proto__=e,t}:Br,Kn=(function(t){ee(e,t);function e(r){r===void 0&&(r=It);var n=t.call(this,typeof r=="number"?It+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=It,_a(n,e.prototype),n}return e})(Error);function me(t,e){if(!t)throw new Kn(e)}var Xn=["debug","log","warn","error","silent"],Ea=Xn.indexOf("log");function it(t){return function(){if(Xn.indexOf(t)>=Ea){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=it("debug"),t.log=it("log"),t.warn=it("warn"),t.error=it("error")})(me||(me={}));var Er="3.14.1";function K(t){try{return t()}catch{}}const dt=K(function(){return globalThis})||K(function(){return window})||K(function(){return self})||K(function(){return global})||K(function(){return K.constructor("return this")()});var Wr=new Map;function Ht(t){var e=Wr.get(t)||1;return Wr.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function Zn(t,e){e===void 0&&(e=0);var r=Ht("stringifyForDisplay");return JSON.stringify(t,function(n,i){return i===void 0?r:i},e).split(JSON.stringify(r)).join("<undefined>")}function at(t){return function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(typeof e=="number"){var i=e;e=wr(i),e||(e=Or(i,r),r=[])}t.apply(void 0,[e].concat(r))}}var O=Object.assign(function(e,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e||me(e,wr(r,n)||Or(r,n))},{debug:at(me.debug),log:at(me.log),warn:at(me.warn),error:at(me.error)});function W(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return new Kn(wr(t,e)||Or(t,e))}var Gr=Symbol.for("ApolloErrorMessageHandler_"+Er);function ei(t){if(typeof t=="string")return t;try{return Zn(t,2).slice(0,1e3)}catch{return"<non-serializable>"}}function wr(t,e){if(e===void 0&&(e=[]),!!t)return dt[Gr]&&dt[Gr](t,e.map(ei))}function Or(t,e){if(e===void 0&&(e=[]),!!t)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Er,message:t,args:e.map(ei)})))}function wa(t,e){if(!!!t)throw new Error(e)}class Zu{constructor(e,r,n){this.start=e.start,this.end=r.end,this.startToken=e,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class ec{constructor(e,r,n,i,a,o){this.kind=e,this.start=r,this.end=n,this.line=i,this.column=a,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const ti={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},Oa=new Set(Object.keys(ti));function Hr(t){const e=t?.kind;return typeof e=="string"&&Oa.has(e)}var $r;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})($r||($r={}));var A;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.DIRECTIVE_EXTENSION="DirectiveExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",t.TYPE_COORDINATE="TypeCoordinate",t.MEMBER_COORDINATE="MemberCoordinate",t.ARGUMENT_COORDINATE="ArgumentCoordinate",t.DIRECTIVE_COORDINATE="DirectiveCoordinate",t.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(A||(A={}));function $t(t){return t===9||t===32}function Sa(t){return t>=48&&t<=57}function ri(t){return t>=97&&t<=122||t>=65&&t<=90}function tc(t){return ri(t)||t===95}function rc(t){return ri(t)||Sa(t)||t===95}function nc(t){var e;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let o=0;o<t.length;++o){var a;const s=t[o],u=Ta(s);u!==s.length&&(n=(a=n)!==null&&a!==void 0?a:o,i=o,o!==0&&u<r&&(r=u))}return t.map((o,s)=>s===0?o:o.slice(r)).slice((e=n)!==null&&e!==void 0?e:0,i+1)}function Ta(t){let e=0;for(;e<t.length&&$t(t.charCodeAt(e));)++e;return e}function Da(t,e){const r=t.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),i=n.length===1,a=n.length>1&&n.slice(1).every(d=>d.length===0||$t(d.charCodeAt(0))),o=r.endsWith('\\"""'),s=t.endsWith('"')&&!o,u=t.endsWith("\\"),c=s||u,l=!i||t.length>70||c||a||o;let f="";const h=i&&$t(t.charCodeAt(0));return(l&&!h||a)&&(f+=`
|
|
2
|
+
`),f+=r,(l||c)&&(f+=`
|
|
3
|
+
`),'"""'+f+'"""'}const ka=10,ni=2;function Fa(t){return bt(t,[])}function bt(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return Ia(t,e);default:return String(t)}}function Ia(t,e){if(t===null)return"null";if(e.includes(t))return"[Circular]";const r=[...e,t];if(Ra(t)){const n=t.toJSON();if(n!==t)return typeof n=="string"?n:bt(n,r)}else if(Array.isArray(t))return Pa(t,r);return Ca(t,r)}function Ra(t){return typeof t.toJSON=="function"}function Ca(t,e){const r=Object.entries(t);return r.length===0?"{}":e.length>ni?"["+Ma(t)+"]":"{ "+r.map(([i,a])=>i+": "+bt(a,e)).join(", ")+" }"}function Pa(t,e){if(t.length===0)return"[]";if(e.length>ni)return"[Array]";const r=Math.min(ka,t.length),n=t.length-r,i=[];for(let a=0;a<r;++a)i.push(bt(t[a],e));return n===1?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function Ma(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const r=t.constructor.name;if(typeof r=="string"&&r!=="")return r}return e}function Aa(t){return`"${t.replace(xa,Na)}"`}const xa=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Na(t){return ja[t.charCodeAt(0)]}const ja=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],_t=Object.freeze({});function X(t,e,r=ti){const n=new Map;for(const p of Object.values(A))n.set(p,qa(e,p));let i,a=Array.isArray(t),o=[t],s=-1,u=[],c=t,l,f;const h=[],d=[];do{s++;const p=s===o.length,b=p&&u.length!==0;if(p){if(l=d.length===0?void 0:h[h.length-1],c=f,f=d.pop(),b)if(a){c=c.slice();let E=0;for(const[w,S]of u){const k=w-E;S===null?(c.splice(k,1),E++):c[k]=S}}else{c={...c};for(const[E,w]of u)c[E]=w}s=i.index,o=i.keys,u=i.edits,a=i.inArray,i=i.prev}else if(f){if(l=a?s:o[s],c=f[l],c==null)continue;h.push(l)}let _;if(!Array.isArray(c)){var y,m;Hr(c)||wa(!1,`Invalid AST Node: ${Fa(c)}.`);const E=p?(y=n.get(c.kind))===null||y===void 0?void 0:y.leave:(m=n.get(c.kind))===null||m===void 0?void 0:m.enter;if(_=E?.call(e,c,l,f,h,d),_===_t)break;if(_===!1){if(!p){h.pop();continue}}else if(_!==void 0&&(u.push([l,_]),!p))if(Hr(_))c=_;else{h.pop();continue}}if(_===void 0&&b&&u.push([l,c]),p)h.pop();else{var g;i={inArray:a,index:s,keys:o,edits:u,prev:i},a=Array.isArray(c),o=a?c:(g=r[c.kind])!==null&&g!==void 0?g:[],s=-1,u=[],f&&d.push(f),f=c}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:t}function qa(t,e){const r=t[e];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:t.enter,leave:t.leave}}function Va(t){return X(t,La)}const Qa=80,La={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>T(t.definitions,`
|
|
4
|
+
|
|
5
|
+
`)},OperationDefinition:{leave(t){const e=Rt(t.variableDefinitions)?D(`(
|
|
6
|
+
`,T(t.variableDefinitions,`
|
|
7
|
+
`),`
|
|
8
|
+
)`):D("(",T(t.variableDefinitions,", "),")"),r=D("",t.description,`
|
|
9
|
+
`)+T([t.operation,T([t.name,e]),T(t.directives," ")]," ");return(r==="query"?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:n,description:i})=>D("",i,`
|
|
10
|
+
`)+t+": "+e+D(" = ",r)+D(" ",T(n," "))},SelectionSet:{leave:({selections:t})=>Y(t)},Field:{leave({alias:t,name:e,arguments:r,directives:n,selectionSet:i}){const a=D("",t,": ")+e;let o=a+D("(",T(r,", "),")");return o.length>Qa&&(o=a+D(`(
|
|
11
|
+
`,st(T(r,`
|
|
12
|
+
`)),`
|
|
13
|
+
)`)),T([o,T(n," "),i]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+D(" ",T(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>T(["...",D("on ",t),T(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:n,selectionSet:i,description:a})=>D("",a,`
|
|
14
|
+
`)+`fragment ${t}${D("(",T(r,", "),")")} on ${e} ${D("",T(n," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?Da(t):Aa(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+T(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+T(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+D("(",T(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>D("",t,`
|
|
15
|
+
`)+T(["schema",T(e," "),Y(r)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:r})=>D("",t,`
|
|
16
|
+
`)+T(["scalar",e,T(r," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>D("",t,`
|
|
17
|
+
`)+T(["type",e,D("implements ",T(r," & ")),T(n," "),Y(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:r,type:n,directives:i})=>D("",t,`
|
|
18
|
+
`)+e+(Rt(r)?D(`(
|
|
19
|
+
`,st(T(r,`
|
|
20
|
+
`)),`
|
|
21
|
+
)`):D("(",T(r,", "),")"))+": "+n+D(" ",T(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:r,defaultValue:n,directives:i})=>D("",t,`
|
|
22
|
+
`)+T([e+": "+r,D("= ",n),T(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>D("",t,`
|
|
23
|
+
`)+T(["interface",e,D("implements ",T(r," & ")),T(n," "),Y(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:r,types:n})=>D("",t,`
|
|
24
|
+
`)+T(["union",e,T(r," "),D("= ",T(n," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:r,values:n})=>D("",t,`
|
|
25
|
+
`)+T(["enum",e,T(r," "),Y(n)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:r})=>D("",t,`
|
|
26
|
+
`)+T([e,T(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:r,fields:n})=>D("",t,`
|
|
27
|
+
`)+T(["input",e,T(r," "),Y(n)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:r,directives:n,repeatable:i,locations:a})=>D("",t,`
|
|
28
|
+
`)+"directive @"+e+(Rt(r)?D(`(
|
|
29
|
+
`,st(T(r,`
|
|
30
|
+
`)),`
|
|
31
|
+
)`):D("(",T(r,", "),")"))+D(" ",T(n," "))+(i?" repeatable":"")+" on "+T(a," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>T(["extend schema",T(t," "),Y(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>T(["extend scalar",t,T(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>T(["extend type",t,D("implements ",T(e," & ")),T(r," "),Y(n)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>T(["extend interface",t,D("implements ",T(e," & ")),T(r," "),Y(n)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:r})=>T(["extend union",t,T(e," "),D("= ",T(r," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:r})=>T(["extend enum",t,T(e," "),Y(r)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:r})=>T(["extend input",t,T(e," "),Y(r)]," ")},DirectiveExtension:{leave:({name:t,directives:e})=>T(["extend directive @"+t,T(e," ")]," ")},TypeCoordinate:{leave:({name:t})=>t},MemberCoordinate:{leave:({name:t,memberName:e})=>T([t,D(".",e)])},ArgumentCoordinate:{leave:({name:t,fieldName:e,argumentName:r})=>T([t,D(".",e),D("(",r,":)")])},DirectiveCoordinate:{leave:({name:t})=>T(["@",t])},DirectiveArgumentCoordinate:{leave:({name:t,argumentName:e})=>T(["@",t,D("(",e,":)")])}};function T(t,e=""){var r;return(r=t?.filter(n=>n).join(e))!==null&&r!==void 0?r:""}function Y(t){return D(`{
|
|
32
|
+
`,st(T(t,`
|
|
33
|
+
`)),`
|
|
34
|
+
}`)}function D(t,e,r=""){return e!=null&&e!==""?t+e+r:""}function st(t){return D(" ",t.replace(/\n/g,`
|
|
35
|
+
`))}function Rt(t){var e;return(e=t?.some(r=>r.includes(`
|
|
36
|
+
`)))!==null&&e!==void 0?e:!1}function Jr(t){return t.kind===A.FIELD||t.kind===A.FRAGMENT_SPREAD||t.kind===A.INLINE_FRAGMENT}function et(t,e){var r=t.directives;return!r||!r.length?!0:Ba(r).every(function(n){var i=n.directive,a=n.ifArgument,o=!1;return a.value.kind==="Variable"?(o=e&&e[a.value.name.value],O(o!==void 0,105,i.name.value)):o=a.value.value,i.name.value==="skip"?!o:o})}function Ye(t,e,r){var n=new Set(t),i=n.size;return X(e,{Directive:function(a){if(n.delete(a.name.value)&&(!r||!n.size))return _t}}),r?!n.size:n.size<i}function za(t){return t&&Ye(["client","export"],t,!0)}function Ua(t){var e=t.name.value;return e==="skip"||e==="include"}function Ba(t){var e=[];return t&&t.length&&t.forEach(function(r){if(Ua(r)){var n=r.arguments,i=r.name.value;O(n&&n.length===1,106,i);var a=n[0];O(a.name&&a.name.value==="if",107,i);var o=a.value;O(o&&(o.kind==="Variable"||o.kind==="BooleanValue"),108,i),e.push({directive:r,ifArgument:a})}}),e}function Wa(t){var e,r,n=(e=t.directives)===null||e===void 0?void 0:e.find(function(a){var o=a.name;return o.value==="unmask"});if(!n)return"mask";var i=(r=n.arguments)===null||r===void 0?void 0:r.find(function(a){var o=a.name;return o.value==="mode"});return globalThis.__DEV__!==!1&&i&&(i.value.kind===A.VARIABLE?globalThis.__DEV__!==!1&&O.warn(109):i.value.kind!==A.STRING?globalThis.__DEV__!==!1&&O.warn(110):i.value.value!=="migrate"&&globalThis.__DEV__!==!1&&O.warn(111,i.value.value)),i&&"value"in i.value&&i.value.value==="migrate"?"migrate":"unmask"}const Ga=()=>Object.create(null),{forEach:Ha,slice:Yr}=Array.prototype,{hasOwnProperty:$a}=Object.prototype;class ie{constructor(e=!0,r=Ga){this.weakness=e,this.makeData=r}lookup(){return this.lookupArray(arguments)}lookupArray(e){let r=this;return Ha.call(e,n=>r=r.getChildTrie(n)),$a.call(r,"data")?r.data:r.data=this.makeData(Yr.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let r=this;for(let n=0,i=e.length;r&&n<i;++n){const a=r.mapFor(e[n],!1);r=a&&a.get(e[n])}return r&&r.data}remove(){return this.removeArray(arguments)}removeArray(e){let r;if(e.length){const n=e[0],i=this.mapFor(n,!1),a=i&&i.get(n);a&&(r=a.removeArray(Yr.call(e,1)),!a.data&&!a.weak&&!(a.strong&&a.strong.size)&&i.delete(n))}else r=this.data,delete this.data;return r}getChildTrie(e){const r=this.mapFor(e,!0);let n=r.get(e);return n||r.set(e,n=new ie(this.weakness,this.makeData)),n}mapFor(e,r){return this.weakness&&Ja(e)?this.weak||(r?this.weak=new WeakMap:void 0):this.strong||(r?this.strong=new Map:void 0)}}function Ja(t){switch(typeof t){case"object":if(t===null)break;case"function":return!0}return!1}var ii=K(function(){return navigator.product})=="ReactNative",Ee=typeof WeakMap=="function"&&!(ii&&!global.HermesInternal),Sr=typeof WeakSet=="function",ai=typeof Symbol=="function"&&typeof Symbol.for=="function",Et=ai&&Symbol.asyncIterator,Ya=typeof K(function(){return window.document.createElement})=="function",Ka=K(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,ic=(Ya||ii)&&!Ka;function x(t){return t!==null&&typeof t=="object"}function Xa(t,e){var r=e,n=[];t.definitions.forEach(function(a){if(a.kind==="OperationDefinition")throw W(112,a.operation,a.name?" named '".concat(a.name.value,"'"):"");a.kind==="FragmentDefinition"&&n.push(a)}),typeof r>"u"&&(O(n.length===1,113,n.length),r=n[0].name.value);var i=v(v({},t),{definitions:U([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions,!0)});return i}function Ne(t){t===void 0&&(t=[]);var e={};return t.forEach(function(r){e[r.name.value]=r}),e}function wt(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{var r=t.name.value;if(typeof e=="function")return e(r);var n=e&&e[r];return O(n,114,r),n||null}default:return null}}function Za(t){var e=!0;return X(t,{FragmentSpread:function(r){if(e=!!r.directives&&r.directives.some(function(n){return n.name.value==="unmask"}),!e)return _t}}),e}function eo(){}class Jt{constructor(e=1/0,r=eo){this.max=e,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}get size(){return this.map.size}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:i}=r;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const r=this.map.get(e);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(e),this.dispose(r.value,e),!0):!1}}function Yt(){}const to=Yt,ro=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},no=typeof WeakMap<"u"?WeakMap:Map,io=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:Yt,unregister:Yt}},ao=10024;class vt{constructor(e=1/0,r=to){this.max=e,this.dispose=r,this.map=new no,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const n=this.unfinalizedNodes.values();for(let i=0;i<ao;i++){const a=n.next().value;if(!a)break;this.unfinalizedNodes.delete(a);const o=a.key;delete a.key,a.keyRef=new ro(o),this.registry.register(o,a,a)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new io(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:i}=r;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const r=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,r),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),r&&this.map.delete(r)}delete(e){const r=this.map.get(e);return r?(this.deleteNode(r),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var Ct=new WeakSet;function oi(t){t.size<=(t.max||-1)||Ct.has(t)||(Ct.add(t),setTimeout(function(){t.clean(),Ct.delete(t)},100))}var si=function(t,e){var r=new vt(t,e);return r.set=function(n,i){var a=vt.prototype.set.call(this,n,i);return oi(this),a},r},oo=function(t,e){var r=new Jt(t,e);return r.set=function(n,i){var a=Jt.prototype.set.call(this,n,i);return oi(this),a},r},so=Symbol.for("apollo.cacheSize"),re=v({},dt[so]),pe={};function ui(t,e){pe[t]=e}var uo=globalThis.__DEV__!==!1?ho:void 0,co=globalThis.__DEV__!==!1?vo:void 0,fo=globalThis.__DEV__!==!1?ci:void 0;function lo(){var t={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(t).map(function(e){var r=e[0],n=e[1];return[r,re[r]||n]}))}function ho(){var t,e,r,n,i;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:lo(),sizes:v({print:(t=pe.print)===null||t===void 0?void 0:t.call(pe),parser:(e=pe.parser)===null||e===void 0?void 0:e.call(pe),canonicalStringify:(r=pe.canonicalStringify)===null||r===void 0?void 0:r.call(pe),links:Xt(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:li(this.queryManager.documentTransform)}},(i=(n=this.cache).getMemoryInternals)===null||i===void 0?void 0:i.call(n))}}function ci(){return{cache:{fragmentQueryDocuments:ce(this.getFragmentDoc)}}}function vo(){var t=this.config.fragments;return v(v({},ci.apply(this)),{addTypenameDocumentTransform:li(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:ce(this.storeReader.executeSelectionSet),executeSubSelectedArray:ce(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:ce(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:ce(t?.findFragmentSpreads),lookup:ce(t?.lookup),transform:ce(t?.transform)}})}function po(t){return!!t&&"dirtyKey"in t}function ce(t){return po(t)?t.size:void 0}function fi(t){return t!=null}function li(t){return Kt(t).map(function(e){return{cache:e}})}function Kt(t){return t?U(U([ce(t?.performWork)],Kt(t?.left),!0),Kt(t?.right),!0).filter(fi):[]}function Xt(t){var e;return t?U(U([(e=t?.getMemoryInternals)===null||e===void 0?void 0:e.call(t)],Xt(t?.left),!0),Xt(t?.right),!0).filter(fi):[]}var fe=Object.assign(function(e){return JSON.stringify(e,yo)},{reset:function(){Te=new oo(re.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&ui("canonicalStringify",function(){return Te.size});var Te;fe.reset();function yo(t,e){if(e&&typeof e=="object"){var r=Object.getPrototypeOf(e);if(r===Object.prototype||r===null){var n=Object.keys(e);if(n.every(mo))return e;var i=JSON.stringify(n),a=Te.get(i);if(!a){n.sort();var o=JSON.stringify(n);a=Te.get(o)||n,Te.set(i,a),Te.set(o,a)}var s=Object.create(r);return a.forEach(function(u){s[u]=e[u]}),s}}return e}function mo(t,e,r){return e===0||r[e-1]<=t}function Ie(t){return{__ref:String(t)}}function R(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}function go(t){return x(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function bo(t){return t.kind==="StringValue"}function _o(t){return t.kind==="BooleanValue"}function Eo(t){return t.kind==="IntValue"}function wo(t){return t.kind==="FloatValue"}function Oo(t){return t.kind==="Variable"}function So(t){return t.kind==="ObjectValue"}function To(t){return t.kind==="ListValue"}function Do(t){return t.kind==="EnumValue"}function ko(t){return t.kind==="NullValue"}function Pe(t,e,r,n){if(Eo(r)||wo(r))t[e.value]=Number(r.value);else if(_o(r)||bo(r))t[e.value]=r.value;else if(So(r)){var i={};r.fields.map(function(o){return Pe(i,o.name,o.value,n)}),t[e.value]=i}else if(Oo(r)){var a=(n||{})[r.name.value];t[e.value]=a}else if(To(r))t[e.value]=r.values.map(function(o){var s={};return Pe(s,e,o,n),s[e.value]});else if(Do(r))t[e.value]=r.value;else if(ko(r))t[e.value]=null;else throw W(123,e.value,r.kind)}function Fo(t,e){var r=null;t.directives&&(r={},t.directives.forEach(function(i){r[i.name.value]={},i.arguments&&i.arguments.forEach(function(a){var o=a.name,s=a.value;return Pe(r[i.name.value],o,s,e)})}));var n=null;return t.arguments&&t.arguments.length&&(n={},t.arguments.forEach(function(i){var a=i.name,o=i.value;return Pe(n,a,o,e)})),hi(t.name.value,n,r)}var Io=["connection","include","skip","client","rest","export","nonreactive"],Qe=fe,hi=Object.assign(function(t,e,r){if(e&&r&&r.connection&&r.connection.key)if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(s){i[s]=e[s]}),"".concat(r.connection.key,"(").concat(Qe(i),")")}else return r.connection.key;var a=t;if(e){var o=Qe(e);a+="(".concat(o,")")}return r&&Object.keys(r).forEach(function(s){Io.indexOf(s)===-1&&(r[s]&&Object.keys(r[s]).length?a+="@".concat(s,"(").concat(Qe(r[s]),")"):a+="@".concat(s))}),a},{setStringify:function(t){var e=Qe;return Qe=t,e}});function Ot(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach(function(n){var i=n.name,a=n.value;return Pe(r,i,a,e)}),r}return null}function ne(t){return t.alias?t.alias.value:t.name.value}function Zt(t,e,r){for(var n,i=0,a=e.selections;i<a.length;i++){var o=a[i];if(le(o)){if(o.name.value==="__typename")return t[ne(o)]}else n?n.push(o):n=[o]}if(typeof t.__typename=="string")return t.__typename;if(n)for(var s=0,u=n;s<u.length;s++){var o=u[s],c=Zt(t,wt(o,r).selectionSet,r);if(typeof c=="string")return c}}function le(t){return t.kind==="Field"}function Ro(t){return t.kind==="InlineFragment"}function je(t){O(t&&t.kind==="Document",115);var e=t.definitions.filter(function(r){return r.kind!=="FragmentDefinition"}).map(function(r){if(r.kind!=="OperationDefinition")throw W(116,r.kind);return r});return O(e.length<=1,117,e.length),t}function _e(t){return je(t),t.definitions.filter(function(e){return e.kind==="OperationDefinition"})[0]}function Be(t){return t.definitions.filter(function(e){return e.kind==="OperationDefinition"&&!!e.name}).map(function(e){return e.name.value})[0]||null}function qe(t){return t.definitions.filter(function(e){return e.kind==="FragmentDefinition"})}function di(t){var e=_e(t);return O(e&&e.operation==="query",118),e}function vi(t){O(t.kind==="Document",119),O(t.definitions.length<=1,120);var e=t.definitions[0];return O(e.kind==="FragmentDefinition",121),e}function tt(t){je(t);for(var e,r=0,n=t.definitions;r<n.length;r++){var i=n[r];if(i.kind==="OperationDefinition"){var a=i.operation;if(a==="query"||a==="mutation"||a==="subscription")return i}i.kind==="FragmentDefinition"&&!e&&(e=i)}if(e)return e;throw W(122)}function Tr(t){var e=Object.create(null),r=t&&t.variableDefinitions;return r&&r.length&&r.forEach(function(n){n.defaultValue&&Pe(e,n.variable.name,n.defaultValue)}),e}let L=null;const Kr={};let Co=1;const Po=()=>class{constructor(){this.id=["slot",Co++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=L;e;e=e.parent)if(this.id in e.slots){const r=e.slots[this.id];if(r===Kr)break;return e!==L&&(L.slots[this.id]=r),!0}return L&&(L.slots[this.id]=Kr),!1}getValue(){if(this.hasValue())return L.slots[this.id]}withValue(e,r,n,i){const a={__proto__:null,[this.id]:e},o=L;L={parent:o,slots:a};try{return r.apply(i,n)}finally{L=o}}static bind(e){const r=L;return function(){const n=L;try{return L=r,e.apply(this,arguments)}finally{L=n}}}static noContext(e,r,n){if(L){const i=L;try{return L=null,e.apply(n,r)}finally{L=i}}else return e.apply(n,r)}};function Xr(t){try{return t()}catch{}}const Pt="@wry/context:Slot",Mo=Xr(()=>globalThis)||Xr(()=>global)||Object.create(null),Zr=Mo,Ve=Zr[Pt]||Array[Pt]||(function(t){try{Object.defineProperty(Zr,Pt,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}})(Po()),{bind:oc,noContext:sc}=Ve,St=new Ve,{hasOwnProperty:Ao}=Object.prototype,Dr=Array.from||function(t){const e=[];return t.forEach(r=>e.push(r)),e};function kr(t){const{unsubscribe:e}=t;typeof e=="function"&&(t.unsubscribe=void 0,e())}const Ke=[],xo=100;function Me(t,e){if(!t)throw new Error(e||"assertion failure")}function pi(t,e){const r=t.length;return r>0&&r===e.length&&t[r-1]===e[r-1]}function yi(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function mi(t){return t.slice(0)}class Tt{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Tt.count}peek(){if(this.value.length===1&&!he(this))return en(this),this.value[0]}recompute(e){return Me(!this.recomputing,"already recomputing"),en(this),he(this)?No(this,e):yi(this.value)}setDirty(){this.dirty||(this.dirty=!0,gi(this),kr(this))}dispose(){this.setDirty(),Oi(this),Fr(this,(e,r)=>{e.setDirty(),Si(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=Ke.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(Dr(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),Ke.push(this.deps),this.deps=null)}}Tt.count=0;function en(t){const e=St.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),he(t)?_i(e,t):Ei(e,t),e}function No(t,e){return Oi(t),St.withValue(t,jo,[t,e]),Vo(t,e)&&qo(t),yi(t.value)}function jo(t,e){t.recomputing=!0;const{normalizeResult:r}=t;let n;r&&t.value.length===1&&(n=mi(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,e),r&&n&&!pi(n,t.value))try{t.value[0]=r(t.value[0],n[0])}catch{}}catch(i){t.value[1]=i}t.recomputing=!1}function he(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function qo(t){t.dirty=!1,!he(t)&&bi(t)}function gi(t){Fr(t,_i)}function bi(t){Fr(t,Ei)}function Fr(t,e){const r=t.parents.size;if(r){const n=Dr(t.parents);for(let i=0;i<r;++i)e(n[i],t)}}function _i(t,e){Me(t.childValues.has(e)),Me(he(e));const r=!he(t);if(!t.dirtyChildren)t.dirtyChildren=Ke.pop()||new Set;else if(t.dirtyChildren.has(e))return;t.dirtyChildren.add(e),r&&gi(t)}function Ei(t,e){Me(t.childValues.has(e)),Me(!he(e));const r=t.childValues.get(e);r.length===0?t.childValues.set(e,mi(e.value)):pi(r,e.value)||t.setDirty(),wi(t,e),!he(t)&&bi(t)}function wi(t,e){const r=t.dirtyChildren;r&&(r.delete(e),r.size===0&&(Ke.length<xo&&Ke.push(r),t.dirtyChildren=null))}function Oi(t){t.childValues.size>0&&t.childValues.forEach((e,r)=>{Si(t,r)}),t.forgetDeps(),Me(t.dirtyChildren===null)}function Si(t,e){e.parents.delete(t),t.childValues.delete(e),wi(t,e)}function Vo(t,e){if(typeof t.subscribe=="function")try{kr(t),t.unsubscribe=t.subscribe.apply(null,e)}catch{return t.setDirty(),!1}return!0}const Qo={setDirty:!0,dispose:!0,forget:!0};function Ti(t){const e=new Map;function r(n){const i=St.getValue();if(i){let a=e.get(n);a||e.set(n,a=new Set),i.dependOn(a)}}return r.dirty=function(i,a){const o=e.get(i);if(o){const s=a&&Ao.call(Qo,a)?a:"setDirty";Dr(o).forEach(u=>u[s]()),e.delete(i),kr(o)}},r}let tn;function Lo(...t){return(tn||(tn=new ie(typeof WeakMap=="function"))).lookupArray(t)}const Mt=new Set;function Xe(t,{max:e=Math.pow(2,16),keyArgs:r,makeCacheKey:n=Lo,normalizeResult:i,subscribe:a,cache:o=Jt}=Object.create(null)){const s=typeof o=="function"?new o(e,h=>h.dispose()):o,u=function(){const h=n.apply(null,r?r.apply(null,arguments):arguments);if(h===void 0)return t.apply(null,arguments);let d=s.get(h);d||(s.set(h,d=new Tt(t)),d.normalizeResult=i,d.subscribe=a,d.forget=()=>s.delete(h));const y=d.recompute(Array.prototype.slice.call(arguments));return s.set(h,d),Mt.add(s),St.hasValue()||(Mt.forEach(m=>m.clean()),Mt.clear()),y};Object.defineProperty(u,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:e,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:a,cache:s});function c(h){const d=h&&s.get(h);d&&d.setDirty()}u.dirtyKey=c,u.dirty=function(){c(n.apply(null,arguments))};function l(h){const d=h&&s.get(h);if(d)return d.peek()}u.peekKey=l,u.peek=function(){return l(n.apply(null,arguments))};function f(h){return h?s.delete(h):!1}return u.forgetKey=f,u.forget=function(){return f(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(u)}function zo(t){return t}var Di=(function(){function t(e,r){r===void 0&&(r=Object.create(null)),this.resultCache=Sr?new WeakSet:new Set,this.transform=e,r.getCacheKey&&(this.getCacheKey=r.getCacheKey),this.cached=r.cache!==!1,this.resetCache()}return t.prototype.getCacheKey=function(e){return[e]},t.identity=function(){return new t(zo,{cache:!1})},t.split=function(e,r,n){return n===void 0&&(n=t.identity()),Object.assign(new t(function(i){var a=e(i)?r:n;return a.transformDocument(i)},{cache:!1}),{left:r,right:n})},t.prototype.resetCache=function(){var e=this;if(this.cached){var r=new ie(Ee);this.performWork=Xe(t.prototype.performWork.bind(this),{makeCacheKey:function(n){var i=e.getCacheKey(n);if(i)return O(Array.isArray(i),104),r.lookupArray(i)},max:re["documentTransform.cache"],cache:vt})}},t.prototype.performWork=function(e){return je(e),this.transform(e)},t.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var r=this.performWork(e);return this.resultCache.add(r),r},t.prototype.concat=function(e){var r=this;return Object.assign(new t(function(n){return e.transformDocument(r.transformDocument(n))},{cache:!1}),{left:this,right:e})},t})(),Ge,be=Object.assign(function(t){var e=Ge.get(t);return e||(e=Va(t),Ge.set(t,e)),e},{reset:function(){Ge=new si(re.print||2e3)}});be.reset();globalThis.__DEV__!==!1&&ui("print",function(){return Ge?Ge.size:0});var N=Array.isArray;function Z(t){return Array.isArray(t)&&t.length>0}var rn={kind:A.FIELD,name:{kind:A.NAME,value:"__typename"}};function ki(t,e){return!t||t.selectionSet.selections.every(function(r){return r.kind===A.FRAGMENT_SPREAD&&ki(e[r.name.value],e)})}function Uo(t){return ki(_e(t)||vi(t),Ne(qe(t)))?null:t}function Bo(t){var e=new Map,r=new Map;return t.forEach(function(n){n&&(n.name?e.set(n.name,n):n.test&&r.set(n.test,n))}),function(n){var i=e.get(n.name.value);return!i&&r.size&&r.forEach(function(a,o){o(n)&&(i=a)}),i}}function nn(t){var e=new Map;return function(n){n===void 0&&(n=t);var i=e.get(n);return i||e.set(n,i={variables:new Set,fragmentSpreads:new Set}),i}}function Fi(t,e){je(e);for(var r=nn(""),n=nn(""),i=function(p){for(var b=0,_=void 0;b<p.length&&(_=p[b]);++b)if(!N(_)){if(_.kind===A.OPERATION_DEFINITION)return r(_.name&&_.name.value);if(_.kind===A.FRAGMENT_DEFINITION)return n(_.name.value)}return globalThis.__DEV__!==!1&&O.error(124),null},a=0,o=e.definitions.length-1;o>=0;--o)e.definitions[o].kind===A.OPERATION_DEFINITION&&++a;var s=Bo(t),u=function(p){return Z(p)&&p.map(s).some(function(b){return b&&b.remove})},c=new Map,l=!1,f={enter:function(p){if(u(p.directives))return l=!0,null}},h=X(e,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(p,b,_,E,w){var S=i(w);S&&S.variables.add(p.name.value)}},FragmentSpread:{enter:function(p,b,_,E,w){if(u(p.directives))return l=!0,null;var S=i(w);S&&S.fragmentSpreads.add(p.name.value)}},FragmentDefinition:{enter:function(p,b,_,E){c.set(JSON.stringify(E),p)},leave:function(p,b,_,E){var w=c.get(JSON.stringify(E));if(p===w)return p;if(a>0&&p.selectionSet.selections.every(function(S){return S.kind===A.FIELD&&S.name.value==="__typename"}))return n(p.name.value).removed=!0,l=!0,null}},Directive:{leave:function(p){if(s(p))return l=!0,null}}});if(!l)return e;var d=function(p){return p.transitiveVars||(p.transitiveVars=new Set(p.variables),p.removed||p.fragmentSpreads.forEach(function(b){d(n(b)).transitiveVars.forEach(function(_){p.transitiveVars.add(_)})})),p},y=new Set;h.definitions.forEach(function(p){p.kind===A.OPERATION_DEFINITION?d(r(p.name&&p.name.value)).fragmentSpreads.forEach(function(b){y.add(b)}):p.kind===A.FRAGMENT_DEFINITION&&a===0&&!n(p.name.value).removed&&y.add(p.name.value)}),y.forEach(function(p){d(n(p)).fragmentSpreads.forEach(function(b){y.add(b)})});var m=function(p){return!!(!y.has(p)||n(p).removed)},g={enter:function(p){if(m(p.name.value))return null}};return Uo(X(h,{FragmentSpread:g,FragmentDefinition:g,OperationDefinition:{leave:function(p){if(p.variableDefinitions){var b=d(r(p.name&&p.name.value)).transitiveVars;if(b.size<p.variableDefinitions.length)return v(v({},p),{variableDefinitions:p.variableDefinitions.filter(function(_){return b.has(_.variable.name.value)})})}}}}))}var Ir=Object.assign(function(t){return X(t,{SelectionSet:{enter:function(e,r,n){if(!(n&&n.kind===A.OPERATION_DEFINITION)){var i=e.selections;if(i){var a=i.some(function(s){return le(s)&&(s.name.value==="__typename"||s.name.value.lastIndexOf("__",0)===0)});if(!a){var o=n;if(!(le(o)&&o.directives&&o.directives.some(function(s){return s.name.value==="export"})))return v(v({},e),{selections:U(U([],i,!0),[rn],!1)})}}}}}})},{added:function(t){return t===rn}});function Wo(t){var e=tt(t),r=e.operation;if(r==="query")return t;var n=X(t,{OperationDefinition:{enter:function(i){return v(v({},i),{operation:"query"})}}});return n}function Ii(t){je(t);var e=Fi([{test:function(r){return r.name.value==="client"},remove:!0}],t);return e}function Go(t){return je(t),X(t,{FragmentSpread:function(e){var r;if(!(!((r=e.directives)===null||r===void 0)&&r.some(function(n){return n.name.value==="unmask"})))return v(v({},e),{directives:U(U([],e.directives||[],!0),[{kind:A.DIRECTIVE,name:{kind:A.NAME,value:"nonreactive"}}],!1)})}})}var Ho=Object.prototype.hasOwnProperty;function an(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Dt(t)}function Dt(t){var e=t[0]||{},r=t.length;if(r>1)for(var n=new de,i=1;i<r;++i)e=n.merge(e,t[i]);return e}var $o=function(t,e,r){return this.merge(t[r],e[r])},de=(function(){function t(e){e===void 0&&(e=$o),this.reconciler=e,this.isObject=x,this.pastCopies=new Set}return t.prototype.merge=function(e,r){for(var n=this,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];return x(r)&&x(e)?(Object.keys(r).forEach(function(o){if(Ho.call(e,o)){var s=e[o];if(r[o]!==s){var u=n.reconciler.apply(n,U([e,r,o],i,!1));u!==s&&(e=n.shallowCopyForMerge(e),e[o]=u)}}else e=n.shallowCopyForMerge(e),e[o]=r[o]}),e):r},t.prototype.shallowCopyForMerge=function(e){return x(e)&&(this.pastCopies.has(e)||(Array.isArray(e)?e=e.slice(0):e=v({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},t})();function Jo(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=Yo(t))||e){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
37
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yo(t,e){if(t){if(typeof t=="string")return on(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return on(t,e)}}function on(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function sn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Rr(t,e,r){return e&&sn(t.prototype,e),r&&sn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var Cr=function(){return typeof Symbol=="function"},Pr=function(t){return Cr()&&!!Symbol[t]},Mr=function(t){return Pr(t)?Symbol[t]:"@@"+t};Cr()&&!Pr("observable")&&(Symbol.observable=Symbol("observable"));var Ko=Mr("iterator"),er=Mr("observable"),Ri=Mr("species");function pt(t,e){var r=t[e];if(r!=null){if(typeof r!="function")throw new TypeError(r+" is not a function");return r}}function Le(t){var e=t.constructor;return e!==void 0&&(e=e[Ri],e===null&&(e=void 0)),e!==void 0?e:P}function Xo(t){return t instanceof P}function Ae(t){Ae.log?Ae.log(t):setTimeout(function(){throw t})}function ut(t){Promise.resolve().then(function(){try{t()}catch(e){Ae(e)}})}function Ci(t){var e=t._cleanup;if(e!==void 0&&(t._cleanup=void 0,!!e))try{if(typeof e=="function")e();else{var r=pt(e,"unsubscribe");r&&r.call(e)}}catch(n){Ae(n)}}function tr(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function Zo(t){var e=t._queue;if(e){t._queue=void 0,t._state="ready";for(var r=0;r<e.length&&(Pi(t,e[r].type,e[r].value),t._state!=="closed");++r);}}function Pi(t,e,r){t._state="running";var n=t._observer;try{var i=pt(n,e);switch(e){case"next":i&&i.call(n,r);break;case"error":if(tr(t),i)i.call(n,r);else throw r;break;case"complete":tr(t),i&&i.call(n);break}}catch(a){Ae(a)}t._state==="closed"?Ci(t):t._state==="running"&&(t._state="ready")}function At(t,e,r){if(t._state!=="closed"){if(t._state==="buffering"){t._queue.push({type:e,value:r});return}if(t._state!=="ready"){t._state="buffering",t._queue=[{type:e,value:r}],ut(function(){return Zo(t)});return}Pi(t,e,r)}}var es=(function(){function t(r,n){this._cleanup=void 0,this._observer=r,this._queue=void 0,this._state="initializing";var i=new ts(this);try{this._cleanup=n.call(void 0,i)}catch(a){i.error(a)}this._state==="initializing"&&(this._state="ready")}var e=t.prototype;return e.unsubscribe=function(){this._state!=="closed"&&(tr(this),Ci(this))},Rr(t,[{key:"closed",get:function(){return this._state==="closed"}}]),t})(),ts=(function(){function t(r){this._subscription=r}var e=t.prototype;return e.next=function(n){At(this._subscription,"next",n)},e.error=function(n){At(this._subscription,"error",n)},e.complete=function(){At(this._subscription,"complete")},Rr(t,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),t})(),P=(function(){function t(r){if(!(this instanceof t))throw new TypeError("Observable cannot be called as a function");if(typeof r!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=r}var e=t.prototype;return e.subscribe=function(n){return(typeof n!="object"||n===null)&&(n={next:n,error:arguments[1],complete:arguments[2]}),new es(n,this._subscriber)},e.forEach=function(n){var i=this;return new Promise(function(a,o){if(typeof n!="function"){o(new TypeError(n+" is not a function"));return}function s(){u.unsubscribe(),a()}var u=i.subscribe({next:function(c){try{n(c,s)}catch(l){o(l),u.unsubscribe()}},error:o,complete:a})})},e.map=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=Le(this);return new a(function(o){return i.subscribe({next:function(s){try{s=n(s)}catch(u){return o.error(u)}o.next(s)},error:function(s){o.error(s)},complete:function(){o.complete()}})})},e.filter=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=Le(this);return new a(function(o){return i.subscribe({next:function(s){try{if(!n(s))return}catch(u){return o.error(u)}o.next(s)},error:function(s){o.error(s)},complete:function(){o.complete()}})})},e.reduce=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=Le(this),o=arguments.length>1,s=!1,u=arguments[1],c=u;return new a(function(l){return i.subscribe({next:function(f){var h=!s;if(s=!0,!h||o)try{c=n(c,f)}catch(d){return l.error(d)}else c=f},error:function(f){l.error(f)},complete:function(){if(!s&&!o)return l.error(new TypeError("Cannot reduce an empty sequence"));l.next(c),l.complete()}})})},e.concat=function(){for(var n=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=Le(this);return new s(function(u){var c,l=0;function f(h){c=h.subscribe({next:function(d){u.next(d)},error:function(d){u.error(d)},complete:function(){l===a.length?(c=void 0,u.complete()):f(s.from(a[l++]))}})}return f(n),function(){c&&(c.unsubscribe(),c=void 0)}})},e.flatMap=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=Le(this);return new a(function(o){var s=[],u=i.subscribe({next:function(l){if(n)try{l=n(l)}catch(h){return o.error(h)}var f=a.from(l).subscribe({next:function(h){o.next(h)},error:function(h){o.error(h)},complete:function(){var h=s.indexOf(f);h>=0&&s.splice(h,1),c()}});s.push(f)},error:function(l){o.error(l)},complete:function(){c()}});function c(){u.closed&&s.length===0&&o.complete()}return function(){s.forEach(function(l){return l.unsubscribe()}),u.unsubscribe()}})},e[er]=function(){return this},t.from=function(n){var i=typeof this=="function"?this:t;if(n==null)throw new TypeError(n+" is not an object");var a=pt(n,er);if(a){var o=a.call(n);if(Object(o)!==o)throw new TypeError(o+" is not an object");return Xo(o)&&o.constructor===i?o:new i(function(s){return o.subscribe(s)})}if(Pr("iterator")&&(a=pt(n,Ko),a))return new i(function(s){ut(function(){if(!s.closed){for(var u=Jo(a.call(n)),c;!(c=u()).done;){var l=c.value;if(s.next(l),s.closed)return}s.complete()}})});if(Array.isArray(n))return new i(function(s){ut(function(){if(!s.closed){for(var u=0;u<n.length;++u)if(s.next(n[u]),s.closed)return;s.complete()}})});throw new TypeError(n+" is not observable")},t.of=function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=typeof this=="function"?this:t;return new o(function(s){ut(function(){if(!s.closed){for(var u=0;u<i.length;++u)if(s.next(i[u]),s.closed)return;s.complete()}})})},Rr(t,null,[{key:Ri,get:function(){return this}}]),t})();Cr()&&Object.defineProperty(P,Symbol("extensions"),{value:{symbol:er,hostReportError:Ae},configurable:!0});function rs(t){var e,r=t.Symbol;if(typeof r=="function")if(r.observable)e=r.observable;else{typeof r.for=="function"?e=r.for("https://github.com/benlesh/symbol-observable"):e=r("https://github.com/benlesh/symbol-observable");try{r.observable=e}catch{}}else e="@@observable";return e}var Oe;typeof self<"u"?Oe=self:typeof window<"u"?Oe=window:typeof global<"u"?Oe=global:typeof module<"u"?Oe=module:Oe=Function("return this")();rs(Oe);var un=P.prototype,cn="@@observable";un[cn]||(un[cn]=function(){return this});function ns(t){return t.catch(function(){}),t}var is=Object.prototype.toString;function Mi(t){return rr(t)}function rr(t,e){switch(is.call(t)){case"[object Array]":{if(e=e||new Map,e.has(t))return e.get(t);var r=t.slice(0);return e.set(t,r),r.forEach(function(i,a){r[a]=rr(i,e)}),r}case"[object Object]":{if(e=e||new Map,e.has(t))return e.get(t);var n=Object.create(Object.getPrototypeOf(t));return e.set(t,n),Object.keys(t).forEach(function(i){n[i]=rr(t[i],e)}),n}default:return t}}function as(t){var e=new Set([t]);return e.forEach(function(r){x(r)&&os(r)===r&&Object.getOwnPropertyNames(r).forEach(function(n){x(r[n])&&e.add(r[n])})}),t}function os(t){if(globalThis.__DEV__!==!1&&!Object.isFrozen(t))try{Object.freeze(t)}catch(e){if(e instanceof TypeError)return null;throw e}return t}function yt(t){return globalThis.__DEV__!==!1&&as(t),t}function He(t,e,r){var n=[];t.forEach(function(i){return i[e]&&n.push(i)}),n.forEach(function(i){return i[e](r)})}function xt(t,e,r){return new P(function(n){var i={then:function(u){return new Promise(function(c){return c(u())})}};function a(u,c){return function(l){if(u){var f=function(){return n.closed?0:u(l)};i=i.then(f,f).then(function(h){return n.next(h)},function(h){return n.error(h)})}else n[c](l)}}var o={next:a(e,"next"),error:a(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=t.subscribe(o);return function(){return s.unsubscribe()}})}function Ai(t){function e(r){Object.defineProperty(t,r,{value:P})}return ai&&Symbol.species&&e(Symbol.species),e("@@species"),t}function fn(t){return t&&typeof t.then=="function"}var Se=(function(t){ee(e,t);function e(r){var n=t.call(this,function(i){return n.addObserver(i),function(){return n.removeObserver(i)}})||this;return n.observers=new Set,n.promise=new Promise(function(i,a){n.resolve=i,n.reject=a}),n.handlers={next:function(i){n.sub!==null&&(n.latest=["next",i],n.notify("next",i),He(n.observers,"next",i))},error:function(i){var a=n.sub;a!==null&&(a&&setTimeout(function(){return a.unsubscribe()}),n.sub=null,n.latest=["error",i],n.reject(i),n.notify("error",i),He(n.observers,"error",i))},complete:function(){var i=n,a=i.sub,o=i.sources,s=o===void 0?[]:o;if(a!==null){var u=s.shift();u?fn(u)?u.then(function(c){return n.sub=c.subscribe(n.handlers)},n.handlers.error):n.sub=u.subscribe(n.handlers):(a&&setTimeout(function(){return a.unsubscribe()}),n.sub=null,n.latest&&n.latest[0]==="next"?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),He(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(i){n.reject(i),n.sources=[],n.handlers.error(i)},n.promise.catch(function(i){}),typeof r=="function"&&(r=[new P(r)]),fn(r)?r.then(function(i){return n.start(i)},n.handlers.error):n.start(r),n}return e.prototype.start=function(r){this.sub===void 0&&(this.sources=Array.from(r),this.handlers.complete())},e.prototype.deliverLastMessage=function(r){if(this.latest){var n=this.latest[0],i=r[n];i&&i.call(r,this.latest[1]),this.sub===null&&n==="next"&&r.complete&&r.complete()}},e.prototype.addObserver=function(r){this.observers.has(r)||(this.deliverLastMessage(r),this.observers.add(r))},e.prototype.removeObserver=function(r){this.observers.delete(r)&&this.observers.size<1&&this.handlers.complete()},e.prototype.notify=function(r,n){var i=this.nextResultListeners;i.size&&(this.nextResultListeners=new Set,i.forEach(function(a){return a(r,n)}))},e.prototype.beforeNext=function(r){var n=!1;this.nextResultListeners.add(function(i,a){n||(n=!0,r(i,a))})},e})(P);Ai(Se);function Re(t){return"incremental"in t}function ss(t){return"hasNext"in t&&"data"in t}function us(t){return Re(t)||ss(t)}function cs(t){return x(t)&&"payload"in t}function xi(t,e){var r=t,n=new de;return Re(e)&&Z(e.incremental)&&e.incremental.forEach(function(i){for(var a=i.data,o=i.path,s=o.length-1;s>=0;--s){var u=o[s],c=!isNaN(+u),l=c?[]:{};l[u]=a,a=l}r=n.merge(r,a)}),r}function ct(t){var e=nr(t);return Z(e)}function nr(t){var e=Z(t.errors)?t.errors.slice(0):[];return Re(t)&&Z(t.incremental)&&t.incremental.forEach(function(r){r.errors&&e.push.apply(e,r.errors)}),e}function xe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Object.create(null);return t.forEach(function(n){n&&Object.keys(n).forEach(function(i){var a=n[i];a!==void 0&&(r[i]=a)})}),r}function Nt(t,e){return xe(t,e,e.variables&&{variables:xe(v(v({},t&&t.variables),e.variables))})}var jt,fs=Symbol.for("apollo.deprecations"),ln=Symbol.for("apollo.deprecations.slot"),ir=dt,ar=(jt=ir[ln])!==null&&jt!==void 0?jt:ir[ln]=new Ve;function ls(t){return ir[fs]||(ar.getValue()||[]).includes(t)}function B(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return ar.withValue.apply(ar,U([Array.isArray(t)?t:[t]],e,!1))}function q(t,e,r,n){n===void 0&&(n="Please remove this option."),ge(e,function(){e in t&&globalThis.__DEV__!==!1&&O.warn(103,r,e,n)})}function ge(t,e){ls(t)||e()}function qt(t){return new P(function(e){e.error(t)})}var Ni=function(t,e,r){var n=new Error(r);throw n.name="ServerError",n.response=t,n.statusCode=t.status,n.result=e,n};function hs(t){for(var e=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];if(e.indexOf(i)<0)throw W(58,i)}return t}function ds(t,e){var r=v({},t),n=function(a){typeof a=="function"?r=v(v({},r),a(r)):r=v(v({},r),a)},i=function(){return v({},r)};return Object.defineProperty(e,"setContext",{enumerable:!1,value:n}),Object.defineProperty(e,"getContext",{enumerable:!1,value:i}),e}function vs(t){var e={variables:t.variables||{},extensions:t.extensions||{},operationName:t.operationName,query:t.query};return e.operationName||(e.operationName=typeof e.query!="string"?Be(e.query)||void 0:""),e}function ps(t,e){var r=v({},t),n=new Set(Object.keys(t));return X(e,{Variable:function(i,a,o){o&&o.kind!=="VariableDefinition"&&n.delete(i.name.value)}}),n.forEach(function(i){delete r[i]}),r}function hn(t,e){return e?e(t):P.of()}function ze(t){return typeof t=="function"?new rt(t):t}function ot(t){return t.request.length<=1}var rt=(function(){function t(e){e&&(this.request=e)}return t.empty=function(){return new t(function(){return P.of()})},t.from=function(e){return e.length===0?t.empty():e.map(ze).reduce(function(r,n){return r.concat(n)})},t.split=function(e,r,n){var i=ze(r),a=ze(n||new t(hn)),o;return ot(i)&&ot(a)?o=new t(function(s){return e(s)?i.request(s)||P.of():a.request(s)||P.of()}):o=new t(function(s,u){return e(s)?i.request(s,u)||P.of():a.request(s,u)||P.of()}),Object.assign(o,{left:i,right:a})},t.execute=function(e,r){return e.request(ds(r.context,vs(hs(r))))||P.of()},t.concat=function(e,r){var n=ze(e);if(ot(n))return globalThis.__DEV__!==!1&&O.warn(47,n),n;var i=ze(r),a;return ot(i)?a=new t(function(o){return n.request(o,function(s){return i.request(s)||P.of()})||P.of()}):a=new t(function(o,s){return n.request(o,function(u){return i.request(u,s)||P.of()})||P.of()}),Object.assign(a,{left:n,right:i})},t.prototype.split=function(e,r,n){return this.concat(t.split(e,r,n||new t(hn)))},t.prototype.concat=function(e){return t.concat(this,e)},t.prototype.request=function(e,r){throw W(48)},t.prototype.onError=function(e,r){if(globalThis.__DEV__!==!1&&ge("onError",function(){globalThis.__DEV__!==!1&&O.warn(49)}),r&&r.error)return r.error(e),!1;throw e},t.prototype.setOnError=function(e){return globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&O.warn(50),this.onError=e,this},t})(),or=rt.execute;function ys(t){var e,r=t[Symbol.asyncIterator]();return e={next:function(){return r.next()}},e[Symbol.asyncIterator]=function(){return this},e}function ms(t){var e=null,r=null,n=!1,i=[],a=[];function o(f){if(!r){if(a.length){var h=a.shift();if(Array.isArray(h)&&h[0])return h[0]({value:f,done:!1})}i.push(f)}}function s(f){r=f;var h=a.slice();h.forEach(function(d){d[1](f)}),!e||e()}function u(){n=!0;var f=a.slice();f.forEach(function(h){h[0]({value:void 0,done:!0})}),!e||e()}e=function(){e=null,t.removeListener("data",o),t.removeListener("error",s),t.removeListener("end",u),t.removeListener("finish",u),t.removeListener("close",u)},t.on("data",o),t.on("error",s),t.on("end",u),t.on("finish",u),t.on("close",u);function c(){return new Promise(function(f,h){if(r)return h(r);if(i.length)return f({value:i.shift(),done:!1});if(n)return f({value:void 0,done:!0});a.push([f,h])})}var l={next:function(){return c()}};return Et&&(l[Symbol.asyncIterator]=function(){return this}),l}function gs(t){var e=!1,r={next:function(){return e?Promise.resolve({value:void 0,done:!0}):(e=!0,new Promise(function(n,i){t.then(function(a){n({value:a,done:!1})}).catch(i)}))}};return Et&&(r[Symbol.asyncIterator]=function(){return this}),r}function dn(t){var e={next:function(){return t.read()}};return Et&&(e[Symbol.asyncIterator]=function(){return this}),e}function bs(t){return!!t.body}function _s(t){return!!t.getReader}function Es(t){return!!(Et&&t[Symbol.asyncIterator])}function ws(t){return!!t.stream}function Os(t){return!!t.arrayBuffer}function Ss(t){return!!t.pipe}function Ts(t){var e=t;if(bs(t)&&(e=t.body),Es(e))return ys(e);if(_s(e))return dn(e.getReader());if(ws(e))return dn(e.stream().getReader());if(Os(e))return gs(e.arrayBuffer());if(Ss(e))return ms(e);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Ar=Symbol();function Ds(t){return t.extensions?Array.isArray(t.extensions[Ar]):!1}function ji(t){return t.hasOwnProperty("graphQLErrors")}var ks=function(t){var e=U(U(U([],t.graphQLErrors,!0),t.clientErrors,!0),t.protocolErrors,!0);return t.networkError&&e.push(t.networkError),e.map(function(r){return x(r)&&r.message||"Error message not found."}).join(`
|
|
38
|
+
`)},ye=(function(t){ee(e,t);function e(r){var n=r.graphQLErrors,i=r.protocolErrors,a=r.clientErrors,o=r.networkError,s=r.errorMessage,u=r.extraInfo,c=t.call(this,s)||this;return c.name="ApolloError",c.graphQLErrors=n||[],c.protocolErrors=i||[],c.clientErrors=a||[],c.networkError=o||null,c.message=s||ks(c),c.extraInfo=u,c.cause=U(U(U([o],n||[],!0),i||[],!0),a||[],!0).find(function(l){return!!l})||null,c.__proto__=e.prototype,c}return e})(Error),vn=Object.prototype.hasOwnProperty;function Fs(t,e){return se(this,void 0,void 0,function(){var r,n,i,a,o,s,u,c,l,f,h,d,y,m,g,p,b,_,E,w,S,k,F,C;return ue(this,function(j){switch(j.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=(C=t.headers)===null||C===void 0?void 0:C.get("content-type"),i="boundary=",a=n?.includes(i)?n?.substring(n?.indexOf(i)+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",o=`\r
|
|
39
|
+
--`.concat(a),s="",u=Ts(t),c=!0,j.label=1;case 1:return c?[4,u.next()]:[3,3];case 2:for(l=j.sent(),f=l.value,h=l.done,d=typeof f=="string"?f:r.decode(f),y=s.length-o.length+1,c=!h,s+=d,m=s.indexOf(o,y);m>-1;){if(g=void 0,k=[s.slice(0,m),s.slice(m+o.length)],g=k[0],s=k[1],p=g.indexOf(`\r
|
|
40
|
+
\r
|
|
41
|
+
`),b=Is(g.slice(0,p)),_=b["content-type"],_&&_.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(E=g.slice(p),E){if(w=qi(t,E),Object.keys(w).length>1||"data"in w||"incremental"in w||"errors"in w||"payload"in w)if(cs(w)){if(S={},"payload"in w){if(Object.keys(w).length===1&&w.payload===null)return[2];S=v({},w.payload)}"errors"in w&&(S=v(v({},S),{extensions:v(v({},"extensions"in S?S.extensions:null),(F={},F[Ar]=w.errors,F))})),e(S)}else e(w);else if(Object.keys(w).length===1&&"hasNext"in w&&!w.hasNext)return[2]}m=s.indexOf(o)}return[3,1];case 3:return[2]}})})}function Is(t){var e={};return t.split(`
|
|
42
|
+
`).forEach(function(r){var n=r.indexOf(":");if(n>-1){var i=r.slice(0,n).trim().toLowerCase(),a=r.slice(n+1).trim();e[i]=a}}),e}function qi(t,e){if(t.status>=300){var r=function(){try{return JSON.parse(e)}catch{return e}};Ni(t,r(),"Response not successful: Received status code ".concat(t.status))}try{return JSON.parse(e)}catch(i){var n=i;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}}function Rs(t,e){t.result&&t.result.errors&&t.result.data&&e.next(t.result),e.error(t)}function Cs(t){return function(e){return e.text().then(function(r){return qi(e,r)}).then(function(r){return!Array.isArray(r)&&!vn.call(r,"data")&&!vn.call(r,"errors")&&Ni(e,r,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(n){return n.operationName}):t.operationName,"'.")),r})}}var sr=function(t,e){var r;try{r=JSON.stringify(t)}catch(i){var n=W(54,e,i.message);throw n.parseError=i,n}return r},Ps={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},Ms={accept:"*/*","content-type":"application/json"},As={method:"POST"},xs={http:Ps,headers:Ms,options:As},Ns=function(t,e){return e(t)};function js(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},a={};r.forEach(function(f){i=v(v(v({},i),f.options),{headers:v(v({},i.headers),f.headers)}),f.credentials&&(i.credentials=f.credentials),a=v(v({},a),f.http)}),i.headers&&(i.headers=qs(i.headers,a.preserveHeaderCase));var o=t.operationName,s=t.extensions,u=t.variables,c=t.query,l={operationName:o,variables:u};return a.includeExtensions&&(l.extensions=s),a.includeQuery&&(l.query=e(c,be)),{options:i,body:l}}function qs(t,e){if(!e){var r={};return Object.keys(Object(t)).forEach(function(a){r[a.toLowerCase()]=t[a]}),r}var n={};Object.keys(Object(t)).forEach(function(a){n[a.toLowerCase()]={originalName:a,value:t[a]}});var i={};return Object.keys(n).forEach(function(a){i[n[a].originalName]=n[a].value}),i}var Vs=function(t){if(!t&&typeof fetch>"u")throw W(51)},Qs=function(t,e){var r=t.getContext(),n=r.uri;return n||(typeof e=="function"?e(t):e||"/graphql")};function Ls(t,e){var r=[],n=function(f,h){r.push("".concat(f,"=").concat(encodeURIComponent(h)))};if("query"in e&&n("query",e.query),e.operationName&&n("operationName",e.operationName),e.variables){var i=void 0;try{i=sr(e.variables,"Variables map")}catch(f){return{parseError:f}}n("variables",i)}if(e.extensions){var a=void 0;try{a=sr(e.extensions,"Extensions map")}catch(f){return{parseError:f}}n("extensions",a)}var o="",s=t,u=t.indexOf("#");u!==-1&&(o=t.substr(u),s=t.substr(0,u));var c=s.indexOf("?")===-1?"?":"&",l=s+c+r.join("&")+o;return{newURI:l}}var pn=K(function(){return fetch}),zs=function(t){t===void 0&&(t={});var e=t.uri,r=e===void 0?"/graphql":e,n=t.fetch,i=t.print,a=i===void 0?Ns:i,o=t.includeExtensions,s=t.preserveHeaderCase,u=t.useGETForQueries,c=t.includeUnusedVariables,l=c===void 0?!1:c,f=te(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&Vs(n||pn);var h={http:{includeExtensions:o,preserveHeaderCase:s},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new rt(function(d){var y=Qs(d,r),m=d.getContext(),g={};if(m.clientAwareness){var p=m.clientAwareness,b=p.name,_=p.version;b&&(g["apollographql-client-name"]=b),_&&(g["apollographql-client-version"]=_)}var E=v(v({},g),m.headers),w={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:E};if(Ye(["client"],d.query)){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&O.warn(52);var S=Ii(d.query);if(!S)return qt(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));d.query=S}var k=js(d,a,xs,h,w),F=k.options,C=k.body;C.variables&&!l&&(C.variables=ps(C.variables,d.query));var j;!F.signal&&typeof AbortController<"u"&&(j=new AbortController,F.signal=j.signal);var ae=function(H){return H.kind==="OperationDefinition"&&H.operation==="mutation"},J=function(H){return H.kind==="OperationDefinition"&&H.operation==="subscription"},V=J(tt(d.query)),G=Ye(["defer"],d.query);if(u&&!d.query.definitions.some(ae)&&(F.method="GET"),G||V){F.headers=F.headers||{};var kt="multipart/mixed;";V&&G&&globalThis.__DEV__!==!1&&O.warn(53),V?kt+="boundary=graphql;subscriptionSpec=1.0,application/json":G&&(kt+="deferSpec=20220824,application/json"),F.headers.accept=kt}if(F.method==="GET"){var Qr=Ls(y,C),ya=Qr.newURI,Lr=Qr.parseError;if(Lr)return qt(Lr);y=ya}else try{F.body=sr(C,"Payload")}catch(H){return qt(H)}return new P(function(H){var ma=n||K(function(){return fetch})||pn,zr=H.next.bind(H);return ma(y,F).then(function(we){var Ft;d.setContext({response:we});var Ur=(Ft=we.headers)===null||Ft===void 0?void 0:Ft.get("content-type");return Ur!==null&&/^multipart\/mixed/i.test(Ur)?Fs(we,zr):Cs(d)(we).then(zr)}).then(function(){j=void 0,H.complete()}).catch(function(we){j=void 0,Rs(we,H)}),function(){j&&j.abort()}})})},Vi=(function(t){ee(e,t);function e(r){r===void 0&&(r={});var n=t.call(this,zs(r).request)||this;return n.options=r,n}return e})(rt);const{toString:yn,hasOwnProperty:Us}=Object.prototype,mn=Function.prototype.toString,ur=new Map;function M(t,e){try{return cr(t,e)}finally{ur.clear()}}function cr(t,e){if(t===e)return!0;const r=yn.call(t),n=yn.call(e);if(r!==n)return!1;switch(r){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(bn(t,e))return!0;const i=gn(t),a=gn(e),o=i.length;if(o!==a.length)return!1;for(let s=0;s<o;++s)if(!Us.call(e,i[s]))return!1;for(let s=0;s<o;++s){const u=i[s];if(!cr(t[u],e[u]))return!1}return!0}case"[object Error]":return t.name===e.name&&t.message===e.message;case"[object Number]":if(t!==t)return e!==e;case"[object Boolean]":case"[object Date]":return+t==+e;case"[object RegExp]":case"[object String]":return t==`${e}`;case"[object Map]":case"[object Set]":{if(t.size!==e.size)return!1;if(bn(t,e))return!0;const i=t.entries(),a=r==="[object Map]";for(;;){const o=i.next();if(o.done)break;const[s,u]=o.value;if(!e.has(s)||a&&!cr(u,e.get(s)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),e=new Uint8Array(e);case"[object DataView]":{let i=t.byteLength;if(i===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=mn.call(t);return i!==mn.call(e)?!1:!Gs(i,Ws)}}return!1}function gn(t){return Object.keys(t).filter(Bs,t)}function Bs(t){return this[t]!==void 0}const Ws="{ [native code] }";function Gs(t,e){const r=t.length-e.length;return r>=0&&t.indexOf(e,r)===r}function bn(t,e){let r=ur.get(t);if(r){if(r.has(e))return!0}else ur.set(t,r=new Set);return r.add(e),!1}function Qi(t,e,r,n){var i=e.data,a=te(e,["data"]),o=r.data,s=te(r,["data"]);return M(a,s)&&ft(tt(t).selectionSet,i,o,{fragmentMap:Ne(qe(t)),variables:n})}function ft(t,e,r,n){if(e===r)return!0;var i=new Set;return t.selections.every(function(a){if(i.has(a)||(i.add(a),!et(a,n.variables))||_n(a))return!0;if(le(a)){var o=ne(a),s=e&&e[o],u=r&&r[o],c=a.selectionSet;if(!c)return M(s,u);var l=Array.isArray(s),f=Array.isArray(u);if(l!==f)return!1;if(l&&f){var h=s.length;if(u.length!==h)return!1;for(var d=0;d<h;++d)if(!ft(c,s[d],u[d],n))return!1;return!0}return ft(c,s,u,n)}else{var y=wt(a,n.fragmentMap);if(y)return _n(y)?!0:ft(y.selectionSet,e,r,n)}})}function _n(t){return!!t.directives&&t.directives.some(Hs)}function Hs(t){return t.name.value==="nonreactive"}var Li=Ee?WeakMap:Map,zi=Sr?WeakSet:Set,xr=new Ve,En=!1;function Ui(){En||(En=!0,globalThis.__DEV__!==!1&&O.warn(64))}function Bi(t,e,r){return xr.withValue(!0,function(){var n=We(t,e,r,!1);return Object.isFrozen(t)&&yt(n),n})}function $s(t,e){if(e.has(t))return e.get(t);var r=Array.isArray(t)?[]:Object.create(null);return e.set(t,r),r}function We(t,e,r,n,i){var a,o=r.knownChanged,s=$s(t,r.mutableTargets);if(Array.isArray(t)){for(var u=0,c=Array.from(t.entries());u<c.length;u++){var l=c[u],f=l[0],h=l[1];if(h===null){s[f]=null;continue}var d=We(h,e,r,n,globalThis.__DEV__!==!1?"".concat(i||"","[").concat(f,"]"):void 0);o.has(d)&&o.add(s),s[f]=d}return o.has(s)?s:t}for(var y=0,m=e.selections;y<m.length;y++){var g=m[y],p=void 0;if(n&&o.add(s),g.kind===A.FIELD){var b=ne(g),_=g.selectionSet;if(p=s[b]||t[b],p===void 0)continue;if(_&&p!==null){var d=We(t[b],_,r,n,globalThis.__DEV__!==!1?"".concat(i||"",".").concat(b):void 0);o.has(d)&&(p=d)}globalThis.__DEV__===!1&&(s[b]=p),globalThis.__DEV__!==!1&&(n&&b!=="__typename"&&!(!((a=Object.getOwnPropertyDescriptor(s,b))===null||a===void 0)&&a.value)?Object.defineProperty(s,b,Js(b,p,i||"",r.operationName,r.operationType)):(delete s[b],s[b]=p))}if(g.kind===A.INLINE_FRAGMENT&&(!g.typeCondition||r.cache.fragmentMatches(g,t.__typename))&&(p=We(t,g.selectionSet,r,n,i)),g.kind===A.FRAGMENT_SPREAD){var E=g.name.value,w=r.fragmentMap[E]||(r.fragmentMap[E]=r.cache.lookupFragment(E));O(w,59,E);var S=Wa(g);S!=="mask"&&(p=We(t,w.selectionSet,r,S==="migrate",i))}o.has(p)&&o.add(s)}return"__typename"in t&&!("__typename"in s)&&(s.__typename=t.__typename),Object.keys(s).length!==Object.keys(t).length&&o.add(s),o.has(s)?s:t}function Js(t,e,r,n,i){var a=function(){return xr.getValue()||(globalThis.__DEV__!==!1&&O.warn(60,n?"".concat(i," '").concat(n,"'"):"anonymous ".concat(i),"".concat(r,".").concat(t).replace(/^\./,"")),a=function(){return e}),e};return{get:function(){return a()},set:function(o){a=function(){return o}},enumerable:!0,configurable:!0}}function Wi(t,e,r,n){if(!r.fragmentMatches)return globalThis.__DEV__!==!1&&Ui(),t;var i=e.definitions.filter(function(o){return o.kind===A.FRAGMENT_DEFINITION});typeof n>"u"&&(O(i.length===1,61,i.length),n=i[0].name.value);var a=i.find(function(o){return o.name.value===n});return O(!!a,62,n),t==null||M(t,{})?t:Bi(t,a.selectionSet,{operationType:"fragment",operationName:a.name.value,fragmentMap:Ne(qe(e)),cache:r,mutableTargets:new Li,knownChanged:new zi})}function Ys(t,e,r){var n;if(!r.fragmentMatches)return globalThis.__DEV__!==!1&&Ui(),t;var i=_e(e);return O(i,63),t==null?t:Bi(t,i.selectionSet,{operationType:i.operation,operationName:(n=i.name)===null||n===void 0?void 0:n.value,fragmentMap:Ne(qe(e)),cache:r,mutableTargets:new Li,knownChanged:new zi})}var Gi=(function(){function t(){this.assumeImmutableResults=!1,this.getFragmentDoc=Xe(Xa,{max:re["cache.fragmentQueryDocuments"]||1e3,cache:vt})}return t.prototype.lookupFragment=function(e){return null},t.prototype.batch=function(e){var r=this,n=typeof e.optimistic=="string"?e.optimistic:e.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=e.update(r)},n),i},t.prototype.recordOptimisticTransaction=function(e,r){this.performTransaction(e,r)},t.prototype.transformDocument=function(e){return e},t.prototype.transformForLink=function(e){return e},t.prototype.identify=function(e){},t.prototype.gc=function(){return[]},t.prototype.modify=function(e){return!1},t.prototype.readQuery=function(e,r){var n=this;return r===void 0&&(r=!!e.optimistic),globalThis.__DEV__!==!1&&q(e,"canonizeResults","cache.readQuery"),B("canonizeResults",function(){return n.read(v(v({},e),{rootId:e.id||"ROOT_QUERY",optimistic:r}))})},t.prototype.watchFragment=function(e){var r=this,n=e.fragment,i=e.fragmentName,a=e.from,o=e.optimistic,s=o===void 0?!0:o,u=te(e,["fragment","fragmentName","from","optimistic"]),c=this.getFragmentDoc(n,i),l=typeof a>"u"||typeof a=="string"?a:this.identify(a),f=!!e[Symbol.for("apollo.dataMasking")];if(globalThis.__DEV__!==!1){var h=i||vi(n).name.value;l||globalThis.__DEV__!==!1&&O.warn(1,h)}var d=v(v({},u),{returnPartialData:!0,id:l,query:c,optimistic:s}),y;return new P(function(m){return r.watch(v(v({},d),{immediate:!0,callback:function(g){var p=f?Wi(g.result,n,r,i):g.result;if(!(y&&Qi(c,{data:y.result},{data:p},e.variables))){var b={data:p,complete:!!g.complete};g.missing&&(b.missing=Dt(g.missing.map(function(_){return _.missing}))),y=v(v({},g),{result:p}),m.next(b)}}}))})},t.prototype.readFragment=function(e,r){var n=this;return r===void 0&&(r=!!e.optimistic),globalThis.__DEV__!==!1&&q(e,"canonizeResults","cache.readFragment"),B("canonizeResults",function(){return n.read(v(v({},e),{query:n.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:r}))})},t.prototype.writeQuery=function(e){var r=e.id,n=e.data,i=te(e,["id","data"]);return this.write(Object.assign(i,{dataId:r||"ROOT_QUERY",result:n}))},t.prototype.writeFragment=function(e){var r=e.id,n=e.data,i=e.fragment,a=e.fragmentName,o=te(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(i,a),dataId:r,result:n}))},t.prototype.updateQuery=function(e,r){return globalThis.__DEV__!==!1&&q(e,"canonizeResults","cache.updateQuery"),this.batch({update:function(n){var i=B("canonizeResults",function(){return n.readQuery(e)}),a=r(i);return a==null?i:(n.writeQuery(v(v({},e),{data:a})),a)}})},t.prototype.updateFragment=function(e,r){return globalThis.__DEV__!==!1&&q(e,"canonizeResults","cache.updateFragment"),this.batch({update:function(n){var i=B("canonizeResults",function(){return n.readFragment(e)}),a=r(i);return a==null?i:(n.writeFragment(v(v({},e),{data:a})),a)}})},t})();globalThis.__DEV__!==!1&&(Gi.prototype.getMemoryInternals=fo);var Hi=(function(t){ee(e,t);function e(r,n,i,a){var o,s=t.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)s.missing=(o={},o[s.path[u]]=s.missing,o)}else s.missing=s.path;return s.__proto__=e.prototype,s}return e})(Error),Q=Object.prototype.hasOwnProperty;function Ue(t){return t==null}function $i(t,e){var r=t.__typename,n=t.id,i=t._id;if(typeof r=="string"&&(e&&(e.keyObject=Ue(n)?Ue(i)?void 0:{_id:i}:{id:n}),Ue(n)&&!Ue(i)&&(n=i),!Ue(n)))return"".concat(r,":").concat(typeof n=="number"||typeof n=="string"?n:JSON.stringify(n))}var Ji={dataIdFromObject:$i,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Ks(t){return xe(Ji,t)}function Yi(t){var e=t.canonizeResults;return e===void 0?Ji.canonizeResults:e}function Xs(t,e){return R(e)?t.get(e.__ref,"__typename"):e&&e.__typename}var Ki=/^[_a-z][_0-9a-z]*/i;function ve(t){var e=t.match(Ki);return e?e[0]:t}function fr(t,e,r){return x(e)?N(e)?e.every(function(n){return fr(t,n,r)}):t.selections.every(function(n){if(le(n)&&et(n,r)){var i=ne(n);return Q.call(e,i)&&(!n.selectionSet||fr(n.selectionSet,e[i],r))}return!0}):!1}function De(t){return x(t)&&!R(t)&&!N(t)}function Zs(){return new de}function Xi(t,e){var r=Ne(qe(t));return{fragmentMap:r,lookupFragment:function(n){var i=r[n];return!i&&e&&(i=e.lookup(n)),i||null}}}var lt=Object.create(null),Vt=function(){return lt},wn=Object.create(null),Ze=(function(){function t(e,r){var n=this;this.policies=e,this.group=r,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,a){return yt(R(i)?n.get(i.__ref,a):i&&i[a])},this.canRead=function(i){return R(i)?n.has(i.__ref):typeof i=="object"},this.toReference=function(i,a){if(typeof i=="string")return Ie(i);if(R(i))return i;var o=n.policies.identify(i)[0];if(o){var s=Ie(o);return a&&n.merge(o,i),s}}}return t.prototype.toObject=function(){return v({},this.data)},t.prototype.has=function(e){return this.lookup(e,!0)!==void 0},t.prototype.get=function(e,r){if(this.group.depend(e,r),Q.call(this.data,e)){var n=this.data[e];if(n&&Q.call(n,r))return n[r]}if(r==="__typename"&&Q.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof oe)return this.parent.get(e,r)},t.prototype.lookup=function(e,r){if(r&&this.group.depend(e,"__exists"),Q.call(this.data,e))return this.data[e];if(this instanceof oe)return this.parent.lookup(e,r);if(this.policies.rootTypenamesById[e])return Object.create(null)},t.prototype.merge=function(e,r){var n=this,i;R(e)&&(e=e.__ref),R(r)&&(r=r.__ref);var a=typeof e=="string"?this.lookup(i=e):e,o=typeof r=="string"?this.lookup(i=r):r;if(o){O(typeof i=="string",2);var s=new de(tu).merge(a,o);if(this.data[i]=s,s!==a&&(delete this.refs[i],this.group.caching)){var u=Object.create(null);a||(u.__exists=1),Object.keys(o).forEach(function(c){if(!a||a[c]!==s[c]){u[c]=1;var l=ve(c);l!==c&&!n.policies.hasKeyArgs(s.__typename,l)&&(u[l]=1),s[c]===void 0&&!(n instanceof oe)&&delete s[c]}}),u.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[i]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(c){return n.group.dirty(i,c)})}}},t.prototype.modify=function(e,r){var n=this,i=this.lookup(e);if(i){var a=Object.create(null),o=!1,s=!0,u={DELETE:lt,INVALIDATE:wn,isReference:R,toReference:this.toReference,canRead:this.canRead,readField:function(c,l){return n.policies.readField(typeof c=="string"?{fieldName:c,from:l||Ie(e)}:c,{store:n})}};if(Object.keys(i).forEach(function(c){var l=ve(c),f=i[c];if(f!==void 0){var h=typeof r=="function"?r:r[c]||r[l];if(h){var d=h===Vt?lt:h(yt(f),v(v({},u),{fieldName:l,storeFieldName:c,storage:n.getStorage(e,c)}));if(d===wn)n.group.dirty(e,c);else if(d===lt&&(d=void 0),d!==f&&(a[c]=d,o=!0,f=d,globalThis.__DEV__!==!1)){var y=function(w){if(n.lookup(w.__ref)===void 0)return globalThis.__DEV__!==!1&&O.warn(3,w),!0};if(R(d))y(d);else if(Array.isArray(d))for(var m=!1,g=void 0,p=0,b=d;p<b.length;p++){var _=b[p];if(R(_)){if(m=!0,y(_))break}else if(typeof _=="object"&&_){var E=n.policies.identify(_)[0];E&&(g=_)}if(m&&g!==void 0){globalThis.__DEV__!==!1&&O.warn(4,g);break}}}}f!==void 0&&(s=!1)}}),o)return this.merge(e,a),s&&(this instanceof oe?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},t.prototype.delete=function(e,r,n){var i,a=this.lookup(e);if(a){var o=this.getFieldValue(a,"__typename"),s=r&&n?this.policies.getStoreFieldName({typename:o,fieldName:r,args:n}):r;return this.modify(e,s?(i={},i[s]=Vt,i):Vt)}return!1},t.prototype.evict=function(e,r){var n=!1;return e.id&&(Q.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof oe&&this!==r&&(n=this.parent.evict(e,r)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},t.prototype.clear=function(){this.replace(null)},t.prototype.extract=function(){var e=this,r=this.toObject(),n=[];return this.getRootIdSet().forEach(function(i){Q.call(e.policies.rootTypenamesById,i)||n.push(i)}),n.length&&(r.__META={extraRootIds:n.sort()}),r},t.prototype.replace=function(e){var r=this;if(Object.keys(this.data).forEach(function(a){e&&Q.call(e,a)||r.delete(a)}),e){var n=e.__META,i=te(e,["__META"]);Object.keys(i).forEach(function(a){r.merge(a,i[a])}),n&&n.extraRootIds.forEach(this.retain,this)}},t.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},t.prototype.release=function(e){if(this.rootIds[e]>0){var r=--this.rootIds[e];return r||delete this.rootIds[e],r}return 0},t.prototype.getRootIdSet=function(e){return e===void 0&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof oe?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},t.prototype.gc=function(){var e=this,r=this.getRootIdSet(),n=this.toObject();r.forEach(function(o){Q.call(n,o)&&(Object.keys(e.findChildRefIds(o)).forEach(r.add,r),delete n[o])});var i=Object.keys(n);if(i.length){for(var a=this;a instanceof oe;)a=a.parent;i.forEach(function(o){return a.delete(o)})}return i},t.prototype.findChildRefIds=function(e){if(!Q.call(this.refs,e)){var r=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return r;var i=new Set([n]);i.forEach(function(a){R(a)&&(r[a.__ref]=!0),x(a)&&Object.keys(a).forEach(function(o){var s=a[o];x(s)&&i.add(s)})})}return this.refs[e]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t})(),Zi=(function(){function t(e,r){r===void 0&&(r=null),this.caching=e,this.parent=r,this.d=null,this.resetCaching()}return t.prototype.resetCaching=function(){this.d=this.caching?Ti():null,this.keyMaker=new ie(Ee)},t.prototype.depend=function(e,r){if(this.d){this.d(Qt(e,r));var n=ve(r);n!==r&&this.d(Qt(e,n)),this.parent&&this.parent.depend(e,r)}},t.prototype.dirty=function(e,r){this.d&&this.d.dirty(Qt(e,r),r==="__exists"?"forget":"setDirty")},t})();function Qt(t,e){return e+"#"+t}function On(t,e){$e(t)&&t.group.depend(e,"__exists")}(function(t){var e=(function(r){ee(n,r);function n(i){var a=i.policies,o=i.resultCaching,s=o===void 0?!0:o,u=i.seed,c=r.call(this,a,new Zi(s))||this;return c.stump=new eu(c),c.storageTrie=new ie(Ee),u&&c.replace(u),c}return n.prototype.addLayer=function(i,a){return this.stump.addLayer(i,a)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},n})(t);t.Root=e})(Ze||(Ze={}));var oe=(function(t){ee(e,t);function e(r,n,i,a){var o=t.call(this,n.policies,a)||this;return o.id=r,o.parent=n,o.replay=i,o.group=a,i(o),o}return e.prototype.addLayer=function(r,n){return new e(r,this,n,this.group)},e.prototype.removeLayer=function(r){var n=this,i=this.parent.removeLayer(r);return r===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(a){var o=n.data[a],s=i.lookup(a);s?o?o!==s&&Object.keys(o).forEach(function(u){M(o[u],s[u])||n.group.dirty(a,u)}):(n.group.dirty(a,"__exists"),Object.keys(s).forEach(function(u){n.group.dirty(a,u)})):n.delete(a)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},e.prototype.toObject=function(){return v(v({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(r){var n=this.parent.findChildRefIds(r);return Q.call(this.data,r)?v(v({},n),t.prototype.findChildRefIds.call(this,r)):n},e.prototype.getStorage=function(){for(var r=this.parent;r.parent;)r=r.parent;return r.getStorage.apply(r,arguments)},e})(Ze),eu=(function(t){ee(e,t);function e(r){return t.call(this,"EntityStore.Stump",r,function(){},new Zi(r.group.caching,r.group))||this}return e.prototype.removeLayer=function(){return this},e.prototype.merge=function(r,n){return this.parent.merge(r,n)},e})(oe);function tu(t,e,r){var n=t[r],i=e[r];return M(n,i)?n:i}function $e(t){return!!(t instanceof Ze&&t.group.caching)}function ru(t){return x(t)?N(t)?t.slice(0):v({__proto__:Object.getPrototypeOf(t)},t):t}var Sn=(function(){function t(){this.known=new(Sr?WeakSet:Set),this.pool=new ie(Ee),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return t.prototype.isKnown=function(e){return x(e)&&this.known.has(e)},t.prototype.pass=function(e){if(x(e)){var r=ru(e);return this.passes.set(r,e),r}return e},t.prototype.admit=function(e){var r=this;if(x(e)){var n=this.passes.get(e);if(n)return n;var i=Object.getPrototypeOf(e);switch(i){case Array.prototype:{if(this.known.has(e))return e;var a=e.map(this.admit,this),o=this.pool.lookupArray(a);return o.array||(this.known.add(o.array=a),globalThis.__DEV__!==!1&&Object.freeze(a)),o.array}case null:case Object.prototype:{if(this.known.has(e))return e;var s=Object.getPrototypeOf(e),u=[s],c=this.sortedKeys(e);u.push(c.json);var l=u.length;c.sorted.forEach(function(d){u.push(r.admit(e[d]))});var o=this.pool.lookupArray(u);if(!o.object){var f=o.object=Object.create(s);this.known.add(f),c.sorted.forEach(function(d,y){f[d]=u[l+y]}),globalThis.__DEV__!==!1&&Object.freeze(f)}return o.object}}}return e},t.prototype.sortedKeys=function(e){var r=Object.keys(e),n=this.pool.lookupArray(r);if(!n.keys){r.sort();var i=JSON.stringify(r);(n.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,n.keys={sorted:r,json:i})}return n.keys},t})();function Tn(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var nu=(function(){function t(e){var r=this;this.knownResults=new(Ee?WeakMap:Map),this.config=xe(e,{addTypename:e.addTypename!==!1,canonizeResults:Yi(e)}),this.canon=e.canon||new Sn,this.executeSelectionSet=Xe(function(n){var i,a=n.context.canonizeResults,o=Tn(n);o[3]=!a;var s=(i=r.executeSelectionSet).peek.apply(i,o);return s?a?v(v({},s),{result:r.canon.admit(s.result)}):s:(On(n.context.store,n.enclosingRef.__ref),r.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize||re["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Tn,makeCacheKey:function(n,i,a,o){if($e(a.store))return a.store.makeCacheKey(n,R(i)?i.__ref:i,a.varString,o)}}),this.executeSubSelectedArray=Xe(function(n){return On(n.context.store,n.enclosingRef.__ref),r.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize||re["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(n){var i=n.field,a=n.array,o=n.context;if($e(o.store))return o.store.makeCacheKey(i,a,o.varString)}})}return t.prototype.resetCanon=function(){this.canon=new Sn},t.prototype.diffQueryAgainstStore=function(e){var r=e.store,n=e.query,i=e.rootId,a=i===void 0?"ROOT_QUERY":i,o=e.variables,s=e.returnPartialData,u=s===void 0?!0:s,c=e.canonizeResults,l=c===void 0?this.config.canonizeResults:c,f=this.config.cache.policies;o=v(v({},Tr(di(n))),o);var h=Ie(a),d=this.executeSelectionSet({selectionSet:tt(n).selectionSet,objectOrReference:h,enclosingRef:h,context:v({store:r,query:n,policies:f,variables:o,varString:fe(o),canonizeResults:l},Xi(n,this.config.fragments))}),y;if(d.missing&&(y=[new Hi(iu(d.missing),d.missing,n,o)],!u))throw y[0];return{result:d.result,complete:!y,missing:y}},t.prototype.isFresh=function(e,r,n,i){if($e(i.store)&&this.knownResults.get(e)===n){var a=this.executeSelectionSet.peek(n,r,i,this.canon.isKnown(e));if(a&&e===a.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(e){var r=this,n=e.selectionSet,i=e.objectOrReference,a=e.enclosingRef,o=e.context;if(R(i)&&!o.policies.rootTypenamesById[i.__ref]&&!o.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=o.variables,u=o.policies,c=o.store,l=c.getFieldValue(i,"__typename"),f=[],h,d=new de;this.config.addTypename&&typeof l=="string"&&!u.rootIdsByTypename[l]&&f.push({__typename:l});function y(_,E){var w;return _.missing&&(h=d.merge(h,(w={},w[E]=_.missing,w))),_.result}var m=new Set(n.selections);m.forEach(function(_){var E,w;if(et(_,s))if(le(_)){var S=u.readField({fieldName:_.name.value,field:_,variables:o.variables,from:i},o),k=ne(_);S===void 0?Ir.added(_)||(h=d.merge(h,(E={},E[k]="Can't find field '".concat(_.name.value,"' on ").concat(R(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),E))):N(S)?S.length>0&&(S=y(r.executeSubSelectedArray({field:_,array:S,enclosingRef:a,context:o}),k)):_.selectionSet?S!=null&&(S=y(r.executeSelectionSet({selectionSet:_.selectionSet,objectOrReference:S,enclosingRef:R(S)?S:a,context:o}),k)):o.canonizeResults&&(S=r.canon.pass(S)),S!==void 0&&f.push((w={},w[k]=S,w))}else{var F=wt(_,o.lookupFragment);if(!F&&_.kind===A.FRAGMENT_SPREAD)throw W(10,_.name.value);F&&u.fragmentMatches(F,l)&&F.selectionSet.selections.forEach(m.add,m)}});var g=Dt(f),p={result:g,missing:h},b=o.canonizeResults?this.canon.admit(p):yt(p);return b.result&&this.knownResults.set(b.result,n),b},t.prototype.execSubSelectedArrayImpl=function(e){var r=this,n=e.field,i=e.array,a=e.enclosingRef,o=e.context,s,u=new de;function c(l,f){var h;return l.missing&&(s=u.merge(s,(h={},h[f]=l.missing,h))),l.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(l,f){return l===null?null:N(l)?c(r.executeSubSelectedArray({field:n,array:l,enclosingRef:a,context:o}),f):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:l,enclosingRef:R(l)?l:a,context:o}),f):(globalThis.__DEV__!==!1&&au(o.store,n,l),l)}),{result:o.canonizeResults?this.canon.admit(i):i,missing:s}},t})();function iu(t){try{JSON.stringify(t,function(e,r){if(typeof r=="string")throw r;return r})}catch(e){return e}}function au(t,e,r){if(!e.selectionSet){var n=new Set([r]);n.forEach(function(i){x(i)&&(O(!R(i),11,Xs(t,i),e.name.value),Object.values(i).forEach(n.add,n))})}}var Nr=new Ve,Dn=new WeakMap;function Je(t){var e=Dn.get(t);return e||Dn.set(t,e={vars:new Set,dep:Ti()}),e}function kn(t){Je(t).vars.forEach(function(e){return e.forgetCache(t)})}function ou(t){Je(t).vars.forEach(function(e){return e.attachCache(t)})}function su(t){var e=new Set,r=new Set,n=function(a){if(arguments.length>0){if(t!==a){t=a,e.forEach(function(u){Je(u).dep.dirty(n),uu(u)});var o=Array.from(r);r.clear(),o.forEach(function(u){return u(t)})}}else{var s=Nr.getValue();s&&(i(s),Je(s).dep(n))}return t};n.onNextChange=function(a){return r.add(a),function(){r.delete(a)}};var i=n.attachCache=function(a){return e.add(a),Je(a).vars.add(n),n};return n.forgetCache=function(a){return e.delete(a)},n}function uu(t){t.broadcastWatches&&t.broadcastWatches()}var Fn=Object.create(null);function jr(t){var e=JSON.stringify(t);return Fn[e]||(Fn[e]=Object.create(null))}function In(t){var e=jr(t);return e.keyFieldsFn||(e.keyFieldsFn=function(r,n){var i=function(o,s){return n.readField(s,o)},a=n.keyObject=qr(t,function(o){var s=Ce(n.storeObject,o,i);return s===void 0&&r!==n.storeObject&&Q.call(r,o[0])&&(s=Ce(r,o,ta)),O(s!==void 0,5,o.join("."),r),s});return"".concat(n.typename,":").concat(JSON.stringify(a))})}function Rn(t){var e=jr(t);return e.keyArgsFn||(e.keyArgsFn=function(r,n){var i=n.field,a=n.variables,o=n.fieldName,s=qr(t,function(c){var l=c[0],f=l.charAt(0);if(f==="@"){if(i&&Z(i.directives)){var h=l.slice(1),d=i.directives.find(function(p){return p.name.value===h}),y=d&&Ot(d,a);return y&&Ce(y,c.slice(1))}return}if(f==="$"){var m=l.slice(1);if(a&&Q.call(a,m)){var g=c.slice(0);return g[0]=m,Ce(a,g)}return}if(r)return Ce(r,c)}),u=JSON.stringify(s);return(r||u!=="{}")&&(o+=":"+u),o})}function qr(t,e){var r=new de;return ea(t).reduce(function(n,i){var a,o=e(i);if(o!==void 0){for(var s=i.length-1;s>=0;--s)o=(a={},a[i[s]]=o,a);n=r.merge(n,o)}return n},Object.create(null))}function ea(t){var e=jr(t);if(!e.paths){var r=e.paths=[],n=[];t.forEach(function(i,a){N(i)?(ea(i).forEach(function(o){return r.push(n.concat(o))}),n.length=0):(n.push(i),N(t[a+1])||(r.push(n.slice(0)),n.length=0))})}return e.paths}function ta(t,e){return t[e]}function Ce(t,e,r){return r=r||ta,ra(e.reduce(function n(i,a){return N(i)?i.map(function(o){return n(o,a)}):i&&r(i,a)},t))}function ra(t){return x(t)?N(t)?t.map(ra):qr(Object.keys(t).sort(),function(e){return Ce(t,e)}):t}function lr(t){return t.args!==void 0?t.args:t.field?Ot(t.field,t.variables):null}var cu=function(){},Cn=function(t,e){return e.fieldName},Pn=function(t,e,r){var n=r.mergeObjects;return n(t,e)},Mn=function(t,e){return e},fu=(function(){function t(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=v({dataIdFromObject:$i},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return t.prototype.identify=function(e,r){var n,i=this,a=r&&(r.typename||((n=r.storeObject)===null||n===void 0?void 0:n.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var o=r&&r.storeObject||e,s=v(v({},r),{typename:a,storeObject:o,readField:r&&r.readField||function(){var f=Vr(arguments,o);return i.readField(f,{store:i.cache.data,variables:f.variables})}}),u,c=a&&this.getTypePolicy(a),l=c&&c.keyFn||this.config.dataIdFromObject;return xr.withValue(!0,function(){for(;l;){var f=l(v(v({},e),o),s);if(N(f))l=In(f);else{u=f;break}}}),u=u?String(u):void 0,s.keyObject?[u,s.keyObject]:[u]},t.prototype.addTypePolicies=function(e){var r=this;Object.keys(e).forEach(function(n){var i=e[n],a=i.queryType,o=i.mutationType,s=i.subscriptionType,u=te(i,["queryType","mutationType","subscriptionType"]);a&&r.setRootTypename("Query",n),o&&r.setRootTypename("Mutation",n),s&&r.setRootTypename("Subscription",n),Q.call(r.toBeAdded,n)?r.toBeAdded[n].push(u):r.toBeAdded[n]=[u]})},t.prototype.updateTypePolicy=function(e,r,n){var i=this.getTypePolicy(e),a=r.keyFields,o=r.fields;function s(u,c){u.merge=typeof c=="function"?c:c===!0?Pn:c===!1?Mn:u.merge}s(i,r.merge),i.keyFn=a===!1?cu:N(a)?In(a):typeof a=="function"?a:i.keyFn,o&&Object.keys(o).forEach(function(u){var c=n[u];(!c||c?.typename!==e)&&(c=n[u]={typename:e});var l=o[u];if(typeof l=="function")c.read=l;else{var f=l.keyArgs,h=l.read,d=l.merge;c.keyFn=f===!1?Cn:N(f)?Rn(f):typeof f=="function"?f:c.keyFn,typeof h=="function"&&(c.read=h),s(c,d)}c.read&&c.merge&&(c.keyFn=c.keyFn||Cn)})},t.prototype.setRootTypename=function(e,r){r===void 0&&(r=e);var n="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[n];r!==i&&(O(!i||i===e,6,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[r]=n,this.rootTypenamesById[n]=r)},t.prototype.addPossibleTypes=function(e){var r=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){r.getSupertypeSet(n,!0),e[n].forEach(function(i){r.getSupertypeSet(i,!0).add(n);var a=i.match(Ki);(!a||a[0]!==i)&&r.fuzzySubtypes.set(i,new RegExp(i))})})},t.prototype.getTypePolicy=function(e){var r=this;if(!Q.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(o,s){if(o.test(e)){var u=r.supertypeMap.get(s);u&&u.forEach(function(c){return i.add(c)})}})),i&&i.size&&i.forEach(function(o){var s=r.getTypePolicy(o),u=s.fields,c=te(s,["fields"]);Object.assign(n,c),Object.assign(n.fields,u)})}var a=this.toBeAdded[e];return a&&a.length&&a.splice(0).forEach(function(o){r.updateTypePolicy(e,o,r.typePolicies[e].fields)}),this.typePolicies[e]},t.prototype.getFieldPolicy=function(e,r){if(e)return this.getTypePolicy(e).fields[r]},t.prototype.getSupertypeSet=function(e,r){var n=this.supertypeMap.get(e);return!n&&r&&this.supertypeMap.set(e,n=new Set),n},t.prototype.fragmentMatches=function(e,r,n,i){var a=this;if(!e.typeCondition)return!0;if(!r)return!1;var o=e.typeCondition.name.value;if(r===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(r,!0),u=[s],c=function(y){var m=a.getSupertypeSet(y,!1);m&&m.size&&u.indexOf(m)<0&&u.push(m)},l=!!(n&&this.fuzzySubtypes.size),f=!1,h=0;h<u.length;++h){var d=u[h];if(d.has(o))return s.has(o)||(f&&globalThis.__DEV__!==!1&&O.warn(7,r,o),s.add(o)),!0;d.forEach(c),l&&h===u.length-1&&fr(e.selectionSet,n,i)&&(l=!1,f=!0,this.fuzzySubtypes.forEach(function(y,m){var g=r.match(y);g&&g[0]===r&&c(m)}))}return!1},t.prototype.hasKeyArgs=function(e,r){var n=this.getFieldPolicy(e,r);return!!(n&&n.keyFn)},t.prototype.getStoreFieldName=function(e){var r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n),a,o=i&&i.keyFn;if(o&&r)for(var s={typename:r,fieldName:n,field:e.field||null,variables:e.variables},u=lr(e);o;){var c=o(u,s);if(N(c))o=Rn(c);else{a=c||n;break}}return a===void 0&&(a=e.field?Fo(e.field,e.variables):hi(n,lr(e))),a===!1?n:n===ve(a)?a:n+":"+a},t.prototype.readField=function(e,r){var n=e.from;if(n){var i=e.field||e.fieldName;if(i){if(e.typename===void 0){var a=r.store.getFieldValue(n,"__typename");a&&(e.typename=a)}var o=this.getStoreFieldName(e),s=ve(o),u=r.store.getFieldValue(n,o),c=this.getFieldPolicy(e.typename,s),l=c&&c.read;if(l){var f=An(this,n,e,r,r.store.getStorage(R(n)?n.__ref:n,o));return Nr.withValue(this.cache,l,[u,f])}return u}}},t.prototype.getReadFunction=function(e,r){var n=this.getFieldPolicy(e,r);return n&&n.read},t.prototype.getMergeFunction=function(e,r,n){var i=this.getFieldPolicy(e,r),a=i&&i.merge;return!a&&n&&(i=this.getTypePolicy(n),a=i&&i.merge),a},t.prototype.runMergeFunction=function(e,r,n,i,a){var o=n.field,s=n.typename,u=n.merge;return u===Pn?na(i.store)(e,r):u===Mn?r:(i.overwrite&&(e=void 0),u(e,r,An(this,void 0,{typename:s,fieldName:o.name.value,field:o,variables:i.variables},i,a||Object.create(null))))},t})();function An(t,e,r,n,i){var a=t.getStoreFieldName(r),o=ve(a),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:lr(r),field:r.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:R,toReference:c,storage:i,cache:t.cache,canRead:l,readField:function(){return t.readField(Vr(arguments,e,s),n)},mergeObjects:na(n.store)}}function Vr(t,e,r){var n=t[0],i=t[1],a=t.length,o;return typeof n=="string"?o={fieldName:n,from:a>1?i:e}:(o=v({},n),Q.call(o,"from")||(o.from=e)),globalThis.__DEV__!==!1&&o.from===void 0&&globalThis.__DEV__!==!1&&O.warn(8,Zn(Array.from(t))),o.variables===void 0&&(o.variables=r),o}function na(t){return function(r,n){if(N(r)||N(n))throw W(9);if(x(r)&&x(n)){var i=t.getFieldValue(r,"__typename"),a=t.getFieldValue(n,"__typename"),o=i&&a&&i!==a;if(o)return n;if(R(r)&&De(n))return t.merge(r.__ref,n),r;if(De(r)&&R(n))return t.merge(r,n.__ref),n;if(De(r)&&De(n))return v(v({},r),n)}return n}}function Lt(t,e,r){var n="".concat(e).concat(r),i=t.flavors.get(n);return i||t.flavors.set(n,i=t.clientOnly===e&&t.deferred===r?t:v(v({},t),{clientOnly:e,deferred:r})),i}var lu=(function(){function t(e,r,n){this.cache=e,this.reader=r,this.fragments=n}return t.prototype.writeToStore=function(e,r){var n=this,i=r.query,a=r.result,o=r.dataId,s=r.variables,u=r.overwrite,c=_e(i),l=Zs();s=v(v({},Tr(c)),s);var f=v(v({store:e,written:Object.create(null),merge:function(d,y){return l.merge(d,y)},variables:s,varString:fe(s)},Xi(i,this.fragments)),{overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),h=this.processSelectionSet({result:a||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:f});if(!R(h))throw W(12,a);return f.incomingById.forEach(function(d,y){var m=d.storeObject,g=d.mergeTree,p=d.fieldNodeSet,b=Ie(y);if(g&&g.map.size){var _=n.applyMerges(g,b,m,f);if(R(_))return;m=_}if(globalThis.__DEV__!==!1&&!f.overwrite){var E=Object.create(null);p.forEach(function(k){k.selectionSet&&(E[k.name.value]=!0)});var w=function(k){return E[ve(k)]===!0},S=function(k){var F=g&&g.map.get(k);return!!(F&&F.info&&F.info.merge)};Object.keys(m).forEach(function(k){w(k)&&!S(k)&&hu(b,m,k,f.store)})}e.merge(y,m)}),e.retain(h.__ref),h},t.prototype.processSelectionSet=function(e){var r=this,n=e.dataId,i=e.result,a=e.selectionSet,o=e.context,s=e.mergeTree,u=this.cache.policies,c=Object.create(null),l=n&&u.rootTypenamesById[n]||Zt(i,a,o.fragmentMap)||n&&o.store.get(n,"__typename");typeof l=="string"&&(c.__typename=l);var f=function(){var _=Vr(arguments,c,o.variables);if(R(_.from)){var E=o.incomingById.get(_.from.__ref);if(E){var w=u.readField(v(v({},_),{from:E.storeObject}),o);if(w!==void 0)return w}}return u.readField(_,o)},h=new Set;this.flattenFields(a,i,o,l).forEach(function(_,E){var w,S=ne(E),k=i[S];if(h.add(E),k!==void 0){var F=u.getStoreFieldName({typename:l,fieldName:E.name.value,field:E,variables:_.variables}),C=xn(s,F),j=r.processFieldValue(k,E,E.selectionSet?Lt(_,!1,!1):_,C),ae=void 0;E.selectionSet&&(R(j)||De(j))&&(ae=f("__typename",j));var J=u.getMergeFunction(l,E.name.value,ae);J?C.info={field:E,typename:l,merge:J}:Nn(s,F),c=_.merge(c,(w={},w[F]=j,w))}else globalThis.__DEV__!==!1&&!_.clientOnly&&!_.deferred&&!Ir.added(E)&&!u.getReadFunction(l,E.name.value)&&globalThis.__DEV__!==!1&&O.error(13,ne(E),i)});try{var d=u.identify(i,{typename:l,selectionSet:a,fragmentMap:o.fragmentMap,storeObject:c,readField:f}),y=d[0],m=d[1];n=n||y,m&&(c=o.merge(c,m))}catch(_){if(!n)throw _}if(typeof n=="string"){var g=Ie(n),p=o.written[n]||(o.written[n]=[]);if(p.indexOf(a)>=0||(p.push(a),this.reader&&this.reader.isFresh(i,g,a,o)))return g;var b=o.incomingById.get(n);return b?(b.storeObject=o.merge(b.storeObject,c),b.mergeTree=hr(b.mergeTree,s),h.forEach(function(_){return b.fieldNodeSet.add(_)})):o.incomingById.set(n,{storeObject:c,mergeTree:mt(s)?void 0:s,fieldNodeSet:h}),g}return c},t.prototype.processFieldValue=function(e,r,n,i){var a=this;return!r.selectionSet||e===null?globalThis.__DEV__!==!1?Mi(e):e:N(e)?e.map(function(o,s){var u=a.processFieldValue(o,r,n,xn(i,s));return Nn(i,s),u}):this.processSelectionSet({result:e,selectionSet:r.selectionSet,context:n,mergeTree:i})},t.prototype.flattenFields=function(e,r,n,i){i===void 0&&(i=Zt(r,e,n.fragmentMap));var a=new Map,o=this.cache.policies,s=new ie(!1);return(function u(c,l){var f=s.lookup(c,l.clientOnly,l.deferred);f.visited||(f.visited=!0,c.selections.forEach(function(h){if(et(h,n.variables)){var d=l.clientOnly,y=l.deferred;if(!(d&&y)&&Z(h.directives)&&h.directives.forEach(function(p){var b=p.name.value;if(b==="client"&&(d=!0),b==="defer"){var _=Ot(p,n.variables);(!_||_.if!==!1)&&(y=!0)}}),le(h)){var m=a.get(h);m&&(d=d&&m.clientOnly,y=y&&m.deferred),a.set(h,Lt(n,d,y))}else{var g=wt(h,n.lookupFragment);if(!g&&h.kind===A.FRAGMENT_SPREAD)throw W(14,h.name.value);g&&o.fragmentMatches(g,i,r,n.variables)&&u(g.selectionSet,Lt(n,d,y))}}}))})(e,n),a},t.prototype.applyMerges=function(e,r,n,i,a){var o,s=this;if(e.map.size&&!R(n)){var u=!N(n)&&(R(r)||De(r))?r:void 0,c=n;u&&!a&&(a=[R(u)?u.__ref:u]);var l,f=function(h,d){return N(h)?typeof d=="number"?h[d]:void 0:i.store.getFieldValue(h,String(d))};e.map.forEach(function(h,d){var y=f(u,d),m=f(c,d);if(m!==void 0){a&&a.push(d);var g=s.applyMerges(h,y,m,i,a);g!==m&&(l=l||new Map,l.set(d,g)),a&&O(a.pop()===d)}}),l&&(n=N(c)?c.slice(0):v({},c),l.forEach(function(h,d){n[d]=h}))}return e.info?this.cache.policies.runMergeFunction(r,n,e.info,i,a&&(o=i.store).getStorage.apply(o,a)):n},t})(),ia=[];function xn(t,e){var r=t.map;return r.has(e)||r.set(e,ia.pop()||{map:new Map}),r.get(e)}function hr(t,e){if(t===e||!e||mt(e))return t;if(!t||mt(t))return e;var r=t.info&&e.info?v(v({},t.info),e.info):t.info||e.info,n=t.map.size&&e.map.size,i=n?new Map:t.map.size?t.map:e.map,a={info:r,map:i};if(n){var o=new Set(e.map.keys());t.map.forEach(function(s,u){a.map.set(u,hr(s,e.map.get(u))),o.delete(u)}),o.forEach(function(s){a.map.set(s,hr(e.map.get(s),t.map.get(s)))})}return a}function mt(t){return!t||!(t.info||t.map.size)}function Nn(t,e){var r=t.map,n=r.get(e);n&&mt(n)&&(ia.push(n),r.delete(e))}var jn=new Set;function hu(t,e,r,n){var i=function(f){var h=n.getFieldValue(f,r);return typeof h=="object"&&h},a=i(t);if(a){var o=i(e);if(o&&!R(a)&&!M(a,o)&&!Object.keys(a).every(function(f){return n.getFieldValue(o,f)!==void 0})){var s=n.getFieldValue(t,"__typename")||n.getFieldValue(e,"__typename"),u=ve(r),c="".concat(s,".").concat(u);if(!jn.has(c)){jn.add(c);var l=[];!N(a)&&!N(o)&&[a,o].forEach(function(f){var h=n.getFieldValue(f,"__typename");typeof h=="string"&&!l.includes(h)&&l.push(h)}),globalThis.__DEV__!==!1&&O.warn(15,u,s,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",c,v({},a),v({},o))}}}}var aa=(function(t){ee(e,t);function e(r){r===void 0&&(r={});var n=t.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new Di(Ir),n.assumeImmutableResults=!0,n.makeVar=su,n.txCount=0,globalThis.__DEV__!==!1&&(q(r,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),q(r,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),n.config=Ks(r),n.addTypename=!!n.config.addTypename,n.policies=new fu({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return e.prototype.init=function(){var r=this.data=new Ze.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=r.stump,this.resetResultCache()},e.prototype.resetResultCache=function(r){var n=this,i=this.storeReader,a=this.config.fragments;this.addTypenameTransform.resetCache(),a?.resetCaches(),this.storeWriter=new lu(this,this.storeReader=new nu({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Yi(this.config),canon:r?void 0:i&&i.canon,fragments:a}),a),this.maybeBroadcastWatch=Xe(function(o,s){return n.broadcastWatch(o,s)},{max:this.config.resultCacheMaxSize||re["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(o){var s=o.optimistic?n.optimisticData:n.data;if($e(s)){var u=o.optimistic,c=o.id,l=o.variables;return s.makeCacheKey(o.query,o.callback,fe({optimistic:u,id:c,variables:l}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(o){return o.resetCaching()})},e.prototype.restore=function(r){return this.init(),r&&this.data.replace(r),this},e.prototype.extract=function(r){return r===void 0&&(r=!1),(r?this.optimisticData:this.data).extract()},e.prototype.read=function(r){globalThis.__DEV__!==!1&&q(r,"canonizeResults","cache.read");var n=r.returnPartialData,i=n===void 0?!1:n;try{return this.storeReader.diffQueryAgainstStore(v(v({},r),{store:r.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(a){if(a instanceof Hi)return null;throw a}},e.prototype.write=function(r){try{return++this.txCount,this.storeWriter.writeToStore(this.data,r)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.modify=function(r){if(Q.call(r,"id")&&!r.id)return!1;var n=r.optimistic?this.optimisticData:this.data;try{return++this.txCount,n.modify(r.id||"ROOT_QUERY",r.fields)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.diff=function(r){return globalThis.__DEV__!==!1&&q(r,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore(v(v({},r),{store:r.optimistic?this.optimisticData:this.data,rootId:r.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(r){var n=this;return this.watches.size||ou(this),this.watches.add(r),r.immediate&&this.maybeBroadcastWatch(r),function(){n.watches.delete(r)&&!n.watches.size&&kn(n),n.maybeBroadcastWatch.forget(r)}},e.prototype.gc=function(r){globalThis.__DEV__!==!1&&q(r||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),fe.reset(),be.reset();var n=this.optimisticData.gc();return r&&!this.txCount&&(r.resetResultCache?this.resetResultCache(r.resetResultIdentities):r.resetResultIdentities&&this.storeReader.resetCanon()),n},e.prototype.retain=function(r,n){return(n?this.optimisticData:this.data).retain(r)},e.prototype.release=function(r,n){return(n?this.optimisticData:this.data).release(r)},e.prototype.identify=function(r){if(R(r))return r.__ref;try{return this.policies.identify(r)[0]}catch(n){globalThis.__DEV__!==!1&&O.warn(n)}},e.prototype.evict=function(r){if(!r.id){if(Q.call(r,"id"))return!1;r=v(v({},r),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(r,this.data)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.reset=function(r){var n=this;return this.init(),fe.reset(),r&&r.discardWatches?(this.watches.forEach(function(i){return n.maybeBroadcastWatch.forget(i)}),this.watches.clear(),kn(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(r){var n=this.optimisticData.removeLayer(r);n!==this.optimisticData&&(this.optimisticData=n,this.broadcastWatches())},e.prototype.batch=function(r){var n=this,i=r.update,a=r.optimistic,o=a===void 0?!0:a,s=r.removeOptimistic,u=r.onWatchUpdated,c,l=function(h){var d=n,y=d.data,m=d.optimisticData;++n.txCount,h&&(n.data=n.optimisticData=h);try{return c=i(n)}finally{--n.txCount,n.data=y,n.optimisticData=m}},f=new Set;return u&&!this.txCount&&this.broadcastWatches(v(v({},r),{onWatchUpdated:function(h){return f.add(h),!1}})),typeof o=="string"?this.optimisticData=this.optimisticData.addLayer(o,l):o===!1?l(this.data):l(),typeof s=="string"&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&f.size?(this.broadcastWatches(v(v({},r),{onWatchUpdated:function(h,d){var y=u.call(this,h,d);return y!==!1&&f.delete(h),y}})),f.size&&f.forEach(function(h){return n.maybeBroadcastWatch.dirty(h)})):this.broadcastWatches(r),c},e.prototype.performTransaction=function(r,n){return this.batch({update:r,optimistic:n||n!==null})},e.prototype.transformDocument=function(r){return this.addTypenameToDocument(this.addFragmentsToDocument(r))},e.prototype.fragmentMatches=function(r,n){return this.policies.fragmentMatches(r,n)},e.prototype.lookupFragment=function(r){var n;return((n=this.config.fragments)===null||n===void 0?void 0:n.lookup(r))||null},e.prototype.broadcastWatches=function(r){var n=this;this.txCount||this.watches.forEach(function(i){return n.maybeBroadcastWatch(i,r)})},e.prototype.addFragmentsToDocument=function(r){var n=this.config.fragments;return n?n.transform(r):r},e.prototype.addTypenameToDocument=function(r){return this.addTypename?this.addTypenameTransform.transformDocument(r):r},e.prototype.broadcastWatch=function(r,n){var i=this,a=r.lastDiff,o=B("canonizeResults",function(){return i.diff(r)});n&&(r.optimistic&&typeof n.optimistic=="string"&&(o.fromOptimisticTransaction=!0),n.onWatchUpdated&&n.onWatchUpdated.call(this,r,o,a)===!1)||(!a||!M(a.result,o.result))&&r.callback(r.lastDiff=o,a)},e})(Gi);globalThis.__DEV__!==!1&&(aa.prototype.getMemoryInternals=co);var I;(function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"})(I||(I={}));function ke(t){return t?t<7:!1}var qn=Object.assign,du=Object.hasOwnProperty,ht=(function(t){ee(e,t);function e(r){var n=r.queryManager,i=r.queryInfo,a=r.options,o=this,s=e.inactiveOnCreation.getValue();o=t.call(this,function(p){o._getOrCreateQuery();try{var b=p._subscription._observer;b&&!b.error&&(b.error=vu)}catch{}var _=!o.observers.size;o.observers.add(p);var E=o.last;return E&&E.error?p.error&&p.error(E.error):E&&E.result&&p.next&&p.next(o.maskResult(E.result)),_&&o.reobserve().catch(function(){}),function(){o.observers.delete(p)&&!o.observers.size&&o.tearDownQuery()}})||this,o.observers=new Set,o.subscriptions=new Set,o.dirty=!1,o._getOrCreateQuery=function(){return s&&(n.queries.set(o.queryId,i),s=!1),o.queryManager.getOrCreateQuery(o.queryId)},o.queryInfo=i,o.queryManager=n,o.waitForOwnResult=zt(a.fetchPolicy),o.isTornDown=!1,o.subscribeToMore=o.subscribeToMore.bind(o),o.maskResult=o.maskResult.bind(o);var u=n.defaultOptions.watchQuery,c=u===void 0?{}:u,l=c.fetchPolicy,f=l===void 0?"cache-first":l,h=a.fetchPolicy,d=h===void 0?f:h,y=a.initialFetchPolicy,m=y===void 0?d==="standby"?f:d:y;o.options=v(v({},a),{initialFetchPolicy:m,fetchPolicy:d}),o.queryId=i.queryId||n.generateQueryId();var g=_e(o.query);return o.queryName=g&&g.name&&g.name.value,o}return Object.defineProperty(e.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var r=this;return globalThis.__DEV__!==!1&&ge("observableQuery.result",function(){globalThis.__DEV__!==!1&&O.warn(23)}),new Promise(function(n,i){var a={next:function(s){n(s),r.observers.delete(a),r.observers.size||r.queryManager.removeQuery(r.queryId),setTimeout(function(){o.unsubscribe()},0)},error:i},o=r.subscribe(a)})},e.prototype.resetDiff=function(){this.queryInfo.resetDiff()},e.prototype.getCurrentFullResult=function(r){var n=this;r===void 0&&(r=!0);var i=B("getLastResult",function(){return n.getLastResult(!0)}),a=this.queryInfo.networkStatus||i&&i.networkStatus||I.ready,o=v(v({},i),{loading:ke(a),networkStatus:a}),s=this.options.fetchPolicy,u=s===void 0?"cache-first":s;if(!(zt(u)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(o.data=c.result),M(o.data,{})&&(o.data=void 0),c.complete?(delete o.partial,c.complete&&o.networkStatus===I.loading&&(u==="cache-first"||u==="cache-only")&&(o.networkStatus=I.ready,o.loading=!1)):o.partial=!0,o.networkStatus===I.ready&&(o.error||o.errors)&&(o.networkStatus=I.error),globalThis.__DEV__!==!1&&!c.complete&&!this.options.partialRefetch&&!o.loading&&!o.data&&!o.error&&oa(c.missing)}return r&&this.updateLastResult(o),o},e.prototype.getCurrentResult=function(r){return r===void 0&&(r=!0),this.maskResult(this.getCurrentFullResult(r))},e.prototype.isDifferentFromLastResult=function(r,n){if(!this.last)return!0;var i=this.queryManager.getDocumentInfo(this.query),a=this.queryManager.dataMasking,o=a?i.nonReactiveQuery:this.query,s=a||i.hasNonreactiveDirective?!Qi(o,this.last.result,r,this.variables):!M(this.last.result,r);return s||n&&!M(this.last.variables,n)},e.prototype.getLast=function(r,n){var i=this.last;if(i&&i[r]&&(!n||M(i.variables,this.variables)))return i[r]},e.prototype.getLastResult=function(r){return globalThis.__DEV__!==!1&&ge("getLastResult",function(){globalThis.__DEV__!==!1&&O.warn(24)}),this.getLast("result",r)},e.prototype.getLastError=function(r){return globalThis.__DEV__!==!1&&ge("getLastError",function(){globalThis.__DEV__!==!1&&O.warn(25)}),this.getLast("error",r)},e.prototype.resetLastResults=function(){globalThis.__DEV__!==!1&&ge("resetLastResults",function(){globalThis.__DEV__!==!1&&O.warn(26)}),delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&O.warn(27),this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(r){var n,i={pollInterval:0},a=this.options.fetchPolicy;if(a==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",globalThis.__DEV__!==!1&&r&&du.call(r,"variables")){var o=di(this.query),s=o.variableDefinitions;(!s||!s.some(function(u){return u.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&O.warn(28,r,((n=o.name)===null||n===void 0?void 0:n.value)||o)}return r&&!M(this.options.variables,r)&&(i.variables=this.options.variables=v(v({},this.options.variables),r)),this.queryInfo.resetLastWrite(),this.reobserve(i,I.refetch)},e.prototype.fetchMore=function(r){var n=this,i=v(v({},r.query?r:v(v(v(v({},this.options),{query:this.options.query}),r),{variables:v(v({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var a=this.queryManager.generateQueryId();this.lastQuery=r.query?this.transformDocument(this.options.query):i.query;var o=this.queryInfo,s=o.networkStatus;o.networkStatus=I.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var u=new Set,c=r?.updateQuery,l=this.options.fetchPolicy!=="no-cache";return l||O(c,29),this.queryManager.fetchQuery(a,i,I.fetchMore).then(function(f){if(n.queryManager.removeQuery(a),o.networkStatus===I.fetchMore&&(o.networkStatus=s),l)n.queryManager.cache.batch({update:function(y){var m=r.updateQuery;m?y.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(g){return m(g,{fetchMoreResult:f.data,variables:i.variables})}):y.writeQuery({query:i.query,variables:i.variables,data:f.data})},onWatchUpdated:function(y){u.add(y.query)}});else{var h=n.getLast("result"),d=c(h.data,{fetchMoreResult:f.data,variables:i.variables});n.reportResult(v(v({},h),{networkStatus:s,loading:ke(s),data:d}),n.variables)}return n.maskResult(f)}).finally(function(){l&&!u.has(n.query)&&n.reobserveCacheFirst()})},e.prototype.subscribeToMore=function(r){var n=this,i=this.queryManager.startGraphQLSubscription({query:r.document,variables:r.variables,context:r.context}).subscribe({next:function(a){var o=r.updateQuery;o&&n.updateQuery(function(s,u){return o(s,v({subscriptionData:a},u))})},error:function(a){if(r.onError){r.onError(a);return}globalThis.__DEV__!==!1&&O.error(30,a)}});return this.subscriptions.add(i),function(){n.subscriptions.delete(i)&&i.unsubscribe()}},e.prototype.setOptions=function(r){return globalThis.__DEV__!==!1&&(q(r,"canonizeResults","setOptions"),ge("setOptions",function(){globalThis.__DEV__!==!1&&O.warn(31)})),this.reobserve(r)},e.prototype.silentSetOptions=function(r){var n=xe(this.options,r||{});qn(this.options,n)},e.prototype.setVariables=function(r){var n=this;return M(this.variables,r)?this.observers.size?B("observableQuery.result",function(){return n.result()}):Promise.resolve():(this.options.variables=r,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:r},I.setVariables):Promise.resolve())},e.prototype.updateQuery=function(r){var n=this.queryManager,i=n.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),a=i.result,o=i.complete,s=r(a,{variables:this.variables,complete:!!o,previousData:a});s&&(n.cache.writeQuery({query:this.options.query,data:s,variables:this.variables}),n.broadcastQueries())},e.prototype.startPolling=function(r){this.options.pollInterval=r,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(r,n){if(n.nextFetchPolicy){var i=n.fetchPolicy,a=i===void 0?"cache-first":i,o=n.initialFetchPolicy,s=o===void 0?a:o;a==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy(a,{reason:r,options:n,observable:this,initialFetchPolicy:s}):r==="variables-changed"?n.fetchPolicy=s:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy},e.prototype.fetch=function(r,n,i){var a=this._getOrCreateQuery();return a.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(a,r,n,i)},e.prototype.updatePolling=function(){var r=this;if(!this.queryManager.ssrMode){var n=this,i=n.pollingInfo,a=n.options.pollInterval;if(!a||!this.hasObservers()){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===a)){O(a,32);var o=i||(this.pollingInfo={});o.interval=a;var s=function(){var c,l;r.pollingInfo&&(!ke(r.queryInfo.networkStatus)&&!(!((l=(c=r.options).skipPollAttempt)===null||l===void 0)&&l.call(c))?r.reobserve({fetchPolicy:r.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},I.poll).then(u,u):u())},u=function(){var c=r.pollingInfo;c&&(clearTimeout(c.timeout),c.timeout=setTimeout(s,c.interval))};u()}}},e.prototype.updateLastResult=function(r,n){var i=this;n===void 0&&(n=this.variables);var a=B("getLastError",function(){return i.getLastError()});return a&&this.last&&!M(n,this.last.variables)&&(a=void 0),this.last=v({result:this.queryManager.assumeImmutableResults?r:Mi(r),variables:n},a?{error:a}:null)},e.prototype.reobserveAsConcast=function(r,n){var i=this;this.isTornDown=!1;var a=n===I.refetch||n===I.fetchMore||n===I.poll,o=this.options.variables,s=this.options.fetchPolicy,u=xe(this.options,r||{}),c=a?u:qn(this.options,u),l=this.transformDocument(c.query);this.lastQuery=l,a||(this.updatePolling(),r&&r.variables&&!M(r.variables,o)&&c.fetchPolicy!=="standby"&&(c.fetchPolicy===s||typeof c.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",c),n===void 0&&(n=I.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=zt(c.fetchPolicy));var f=function(){i.concast===y&&(i.waitForOwnResult=!1)},h=c.variables&&v({},c.variables),d=this.fetch(c,n,l),y=d.concast,m=d.fromLink,g={next:function(p){M(i.variables,h)&&(f(),i.reportResult(p,h))},error:function(p){M(i.variables,h)&&(ji(p)||(p=new ye({networkError:p})),f(),i.reportError(p,h))}};return!a&&(m||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=y,this.observer=g),y.addObserver(g),y},e.prototype.reobserve=function(r,n){return ns(this.reobserveAsConcast(r,n).promise.then(this.maskResult))},e.prototype.resubscribeAfterError=function(){for(var r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=this.last;B("resetLastResults",function(){return r.resetLastResults()});var o=this.subscribe.apply(this,n);return this.last=a,o},e.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},e.prototype.reportResult=function(r,n){var i=this,a=B("getLastError",function(){return i.getLastError()}),o=this.isDifferentFromLastResult(r,n);(a||!r.partial||this.options.returnPartialData)&&this.updateLastResult(r,n),(a||o)&&He(this.observers,"next",this.maskResult(r))},e.prototype.reportError=function(r,n){var i=this,a=v(v({},B("getLastResult",function(){return i.getLastResult()})),{error:r,errors:r.graphQLErrors,networkStatus:I.error,loading:!1});this.updateLastResult(a,n),He(this.observers,"error",this.last.error=r)},e.prototype.hasObservers=function(){return this.observers.size>0},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(r){return r.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e.prototype.transformDocument=function(r){return this.queryManager.transform(r)},e.prototype.maskResult=function(r){return r&&"data"in r?v(v({},r),{data:this.queryManager.maskOperation({document:this.query,data:r.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):r},e.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},e.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},e.prototype.scheduleNotify=function(){var r=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0)))},e.prototype.notify=function(){if(this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy=="cache-only"||this.options.fetchPolicy=="cache-and-network"||!ke(this.queryInfo.networkStatus))){var r=this.queryInfo.getDiff();r.fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()}this.dirty=!1},e.prototype.reobserveCacheFirst=function(){var r=this.options,n=r.fetchPolicy,i=r.nextFetchPolicy;return n==="cache-and-network"||n==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(a,o){return this.nextFetchPolicy=i,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(a,o):n}}):this.reobserve()},e.inactiveOnCreation=new Ve,e})(P);Ai(ht);function vu(t){globalThis.__DEV__!==!1&&O.error(33,t.message,t.stack)}function oa(t){globalThis.__DEV__!==!1&&t&&globalThis.__DEV__!==!1&&O.debug(34,t)}function zt(t){return t==="network-only"||t==="no-cache"||t==="standby"}var Fe=new(Ee?WeakMap:Map);function Ut(t,e){var r=t[e];typeof r=="function"&&(t[e]=function(){return Fe.set(t,(Fe.get(t)+1)%1e15),r.apply(this,arguments)})}var Bt=(function(){function t(e,r){r===void 0&&(r=e.generateQueryId()),this.queryId=r,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var n=this.cache=e.cache;Fe.has(n)||(Fe.set(n,0),Ut(n,"evict"),Ut(n,"modify"),Ut(n,"reset"))}return t.prototype.init=function(e){var r=e.networkStatus||I.loading;return this.variables&&this.networkStatus!==I.loading&&!M(this.variables,e.variables)&&(r=I.setVariables),M(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:r}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},t.prototype.resetDiff=function(){this.lastDiff=void 0},t.prototype.getDiff=function(){var e=this,r=this.getDiffOptions();if(this.lastDiff&&M(r,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&n.options.fetchPolicy==="no-cache")return{complete:!1};var i=B("canonizeResults",function(){return e.cache.diff(r)});return this.updateLastDiff(i,r),i},t.prototype.updateLastDiff=function(e,r){this.lastDiff=e?{diff:e,options:r||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(e){var r;return e===void 0&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:(r=this.observableQuery)===null||r===void 0?void 0:r.options.canonizeResults}},t.prototype.setDiff=function(e){var r=this,n,i=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&B("getLastError",function(){var a;return(a=r.observableQuery)===null||a===void 0?void 0:a.getLastError()})||(this.updateLastDiff(e),M(i&&i.result,e&&e.result)||(n=this.observableQuery)===null||n===void 0||n.scheduleNotify())},t.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},t.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,(e=this.observableQuery)===null||e===void 0||e.resetNotifications(),this.cancel();var r=this.observableQuery;r&&r.stopPolling()}},t.prototype.cancel=function(){var e;(e=this.cancelWatch)===null||e===void 0||e.call(this),this.cancelWatch=void 0},t.prototype.updateWatch=function(e){var r=this;e===void 0&&(e=this.variables);var n=this.observableQuery;if(!(n&&n.options.fetchPolicy==="no-cache")){var i=v(v({},this.getDiffOptions(e)),{watcher:this,callback:function(a){return r.setDiff(a)}});(!this.lastWatch||!M(i,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(e,r){var n=this.lastWrite;return!(n&&n.dmCount===Fe.get(this.cache)&&M(r,n.variables)&&M(e.data,n.result.data))},t.prototype.markResult=function(e,r,n,i){var a=this,o,s=new de,u=Z(e.errors)?e.errors.slice(0):[];if((o=this.observableQuery)===null||o===void 0||o.resetNotifications(),"incremental"in e&&Z(e.incremental)){var c=xi(this.getDiff().result,e);e.data=c}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=s.merge(l.result,e.data)}this.graphQLErrors=u,n.fetchPolicy==="no-cache"?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):i!==0&&(dr(e,n.errorPolicy)?this.cache.performTransaction(function(f){if(a.shouldWrite(e,n.variables))f.writeQuery({query:r,data:e.data,variables:n.variables,overwrite:i===1}),a.lastWrite={result:e,variables:n.variables,dmCount:Fe.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){e.data=a.lastDiff.diff.result;return}var h=a.getDiffOptions(n.variables),d=B("canonizeResults",function(){return f.diff(h)});!a.stopped&&M(a.variables,n.variables)&&a.updateWatch(n.variables),a.updateLastDiff(d,h),d.complete&&(e.data=d.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=I.ready},t.prototype.markError=function(e){var r;return this.networkStatus=I.error,this.lastWrite=void 0,(r=this.observableQuery)===null||r===void 0||r.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},t})();function dr(t,e){e===void 0&&(e="none");var r=e==="ignore"||e==="all",n=!ct(t);return!n&&r&&t.data&&(n=!0),n}var pu=Object.prototype.hasOwnProperty,Vn=Object.create(null),yu=(function(){function t(e){var r=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new si(re["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new ie(!1),this.noCacheWarningsByQueryId=new Set;var n=new Di(function(a){return r.cache.transformDocument(a)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var i=e.documentTransform;this.documentTransform=i?n.concat(i).concat(n):n,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var e=this;this.queries.forEach(function(r,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(W(35))},t.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(r){return r(e)}),this.fetchCancelFns.clear()},t.prototype.mutate=function(e){return se(this,arguments,void 0,function(r){var n,i,a,o,s,u,c,l=r.mutation,f=r.variables,h=r.optimisticResponse,d=r.updateQueries,y=r.refetchQueries,m=y===void 0?[]:y,g=r.awaitRefetchQueries,p=g===void 0?!1:g,b=r.update,_=r.onQueryUpdated,E=r.fetchPolicy,w=E===void 0?((u=this.defaultOptions.mutate)===null||u===void 0?void 0:u.fetchPolicy)||"network-only":E,S=r.errorPolicy,k=S===void 0?((c=this.defaultOptions.mutate)===null||c===void 0?void 0:c.errorPolicy)||"none":S,F=r.keepRootFields,C=r.context;return ue(this,function(j){switch(j.label){case 0:return O(l,36),O(w==="network-only"||w==="no-cache",37),n=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),i=this.getDocumentInfo(l).hasClientExports,f=this.getVariables(l,f),i?[4,this.localState.addExportedVariables(l,f,C)]:[3,2];case 1:f=j.sent(),j.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[n]={mutation:l,variables:f,loading:!0,error:null}),o=h&&this.markMutationOptimistic(h,{mutationId:n,document:l,variables:f,fetchPolicy:w,errorPolicy:k,context:C,updateQueries:d,update:b,keepRootFields:F}),this.broadcastQueries(),s=this,[2,new Promise(function(ae,J){return xt(s.getObservableFromLink(l,v(v({},C),{optimisticResponse:o?h:void 0}),f,{},!1),function(V){if(ct(V)&&k==="none")throw new ye({graphQLErrors:nr(V)});a&&(a.loading=!1,a.error=null);var G=v({},V);return typeof m=="function"&&(m=m(G)),k==="ignore"&&ct(G)&&delete G.errors,s.markMutationResult({mutationId:n,result:G,document:l,variables:f,fetchPolicy:w,errorPolicy:k,context:C,update:b,updateQueries:d,awaitRefetchQueries:p,refetchQueries:m,removeOptimistic:o?n:void 0,onQueryUpdated:_,keepRootFields:F})}).subscribe({next:function(V){s.broadcastQueries(),(!("hasNext"in V)||V.hasNext===!1)&&ae(v(v({},V),{data:s.maskOperation({document:l,data:V.data,fetchPolicy:w,id:n})}))},error:function(V){a&&(a.loading=!1,a.error=V),o&&s.cache.removeOptimistic(n),s.broadcastQueries(),J(V instanceof ye?V:new ye({networkError:V}))}})})]}})})},t.prototype.markMutationResult=function(e,r){var n=this;r===void 0&&(r=this.cache);var i=e.result,a=[],o=e.fetchPolicy==="no-cache";if(!o&&dr(i,e.errorPolicy)){if(Re(i)||a.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),Re(i)&&Z(i.incremental)){var s=r.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;s.result&&(u=xi(s.result,i)),typeof u<"u"&&(i.data=u,a.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(f,h){var d=f.observableQuery,y=d&&d.queryName;if(!(!y||!pu.call(c,y))){var m=c[y],g=n.queries.get(h),p=g.document,b=g.variables,_=r.diff({query:p,variables:b,returnPartialData:!0,optimistic:!1}),E=_.result,w=_.complete;if(w&&E){var S=m(E,{mutationResult:i,queryName:p&&Be(p)||void 0,queryVariables:b});S&&a.push({result:S,dataId:"ROOT_QUERY",query:p,variables:b})}}})}if(a.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(f){o||a.forEach(function(m){return f.write(m)});var h=e.update,d=!us(i)||Re(i)&&!i.hasNext;if(h){if(!o){var y=f.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});y.complete&&(i=v(v({},i),{data:y.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}d&&h(f,i,{context:e.context,variables:e.variables})}!o&&!e.keepRootFields&&d&&f.modify({id:"ROOT_MUTATION",fields:function(m,g){var p=g.fieldName,b=g.DELETE;return p==="__typename"?m:b}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(f){return l.push(f)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return i})}return Promise.resolve(i)},t.prototype.markMutationOptimistic=function(e,r){var n=this,i=typeof e=="function"?e(r.variables,{IGNORE:Vn}):e;return i===Vn?!1:(this.cache.recordOptimisticTransaction(function(a){try{n.markMutationResult(v(v({},r),{result:{data:i}}),a)}catch(o){globalThis.__DEV__!==!1&&O.error(o)}},r.mutationId),!0)},t.prototype.fetchQuery=function(e,r,n){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),r,n).concast.promise},t.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(r,n){e[n]={variables:r.variables,networkStatus:r.networkStatus,networkError:r.networkError,graphQLErrors:r.graphQLErrors}}),e},t.prototype.resetErrors=function(e){var r=this.queries.get(e);r&&(r.networkError=void 0,r.graphQLErrors=[])},t.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},t.prototype.getDocumentInfo=function(e){var r=this.transformCache;if(!r.has(e)){var n={hasClientExports:za(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:Ye(["nonreactive"],e),nonReactiveQuery:Go(e),clientQuery:this.localState.clientQuery(e),serverQuery:Fi([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:Tr(_e(e)),asQuery:v(v({},e),{definitions:e.definitions.map(function(i){return i.kind==="OperationDefinition"&&i.operation!=="query"?v(v({},i),{operation:"query"}):i})})};r.set(e,n)}return r.get(e)},t.prototype.getVariables=function(e,r){return v(v({},this.getDocumentInfo(e).defaultVars),r)},t.prototype.watchQuery=function(e){var r=this.transform(e.query);e=v(v({},e),{variables:this.getVariables(r,e.variables)}),typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var n=new Bt(this),i=new ht({queryManager:this,queryInfo:n,options:e});return i.lastQuery=r,ht.inactiveOnCreation.getValue()||this.queries.set(i.queryId,n),n.init({document:r,observableQuery:i,variables:i.variables}),i},t.prototype.query=function(e,r){var n=this;r===void 0&&(r=this.generateQueryId()),O(e.query,38),O(e.query.kind==="Document",39),O(!e.returnPartialData,40),O(!e.pollInterval,41);var i=this.transform(e.query);return this.fetchQuery(r,v(v({},e),{query:i})).then(function(a){return a&&v(v({},a),{data:n.maskOperation({document:i,data:a.data,fetchPolicy:e.fetchPolicy,id:r})})}).finally(function(){return n.stopQuery(r)})},t.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},t.prototype.generateRequestId=function(){return this.requestIdCounter++},t.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},t.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(e){var r=this.queries.get(e);r&&r.stop()},t.prototype.clearStore=function(e){return e===void 0&&(e={discardWatches:!0}),this.cancelPendingFetches(W(42)),this.queries.forEach(function(r){r.observableQuery?r.networkStatus=I.loading:r.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},t.prototype.getObservableQueries=function(e){var r=this;e===void 0&&(e="active");var n=new Map,i=new Map,a=new Map,o=new Set;return Array.isArray(e)&&e.forEach(function(s){if(typeof s=="string")i.set(s,s),a.set(s,!1);else if(go(s)){var u=be(r.transform(s));i.set(u,Be(s)),a.set(u,!1)}else x(s)&&s.query&&o.add(s)}),this.queries.forEach(function(s,u){var c=s.observableQuery,l=s.document;if(c){if(e==="all"){n.set(u,c);return}var f=c.queryName,h=c.options.fetchPolicy;if(h==="standby"||e==="active"&&!c.hasObservers())return;(e==="active"||f&&a.has(f)||l&&a.has(be(l)))&&(n.set(u,c),f&&a.set(f,!0),l&&a.set(be(l),!0))}}),o.size&&o.forEach(function(s){var u=Ht("legacyOneTimeQuery"),c=r.getOrCreateQuery(u).init({document:s.query,variables:s.variables}),l=new ht({queryManager:r,queryInfo:c,options:v(v({},s),{fetchPolicy:"network-only"})});O(l.queryId===u),c.setObservableQuery(l),n.set(u,l)}),globalThis.__DEV__!==!1&&a.size&&a.forEach(function(s,u){if(!s){var c=i.get(u);c?globalThis.__DEV__!==!1&&O.warn(43,c):globalThis.__DEV__!==!1&&O.warn(44)}}),n},t.prototype.reFetchObservableQueries=function(e){var r=this;e===void 0&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(i,a){var o=i.options.fetchPolicy;B("resetLastResults",function(){return i.resetLastResults()}),(e||o!=="standby"&&o!=="cache-only")&&n.push(i.refetch()),(r.queries.get(a)||i.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},t.prototype.startGraphQLSubscription=function(e){var r=this,n=e.query,i=e.variables,a=e.fetchPolicy,o=e.errorPolicy,s=o===void 0?"none":o,u=e.context,c=u===void 0?{}:u,l=e.extensions,f=l===void 0?{}:l;n=this.transform(n),i=this.getVariables(n,i);var h=function(y){return r.getObservableFromLink(n,c,y,f).map(function(m){a!=="no-cache"&&(dr(m,s)&&r.cache.write({query:n,result:m.data,dataId:"ROOT_SUBSCRIPTION",variables:y}),r.broadcastQueries());var g=ct(m),p=Ds(m);if(g||p){var b={};if(g&&(b.graphQLErrors=m.errors),p&&(b.protocolErrors=m.extensions[Ar]),s==="none"||p)throw new ye(b)}return s==="ignore"&&delete m.errors,m})};if(this.getDocumentInfo(n).hasClientExports){var d=this.localState.addExportedVariables(n,i,c).then(h);return new P(function(y){var m=null;return d.then(function(g){return m=g.subscribe(y)},y.error),function(){return m&&m.unsubscribe()}})}return h(i)},t.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},t.prototype.removeQuery=function(e){var r;this.fetchCancelFns.delete(e),this.queries.has(e)&&((r=this.queries.get(e))===null||r===void 0||r.stop(),this.queries.delete(e))},t.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var r;return(r=e.observableQuery)===null||r===void 0?void 0:r.notify()})},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(e,r,n,i,a){var o=this,s;a===void 0&&(a=(s=r?.queryDeduplication)!==null&&s!==void 0?s:this.queryDeduplication);var u,c=this.getDocumentInfo(e),l=c.serverQuery,f=c.clientQuery;if(l){var h=this,d=h.inFlightLinkObservables,y=h.link,m={query:l,variables:n,operationName:Be(l)||void 0,context:this.prepareContext(v(v({},r),{forceFetch:!a})),extensions:i};if(r=m.context,a){var g=be(l),p=fe(n),b=d.lookup(g,p);if(u=b.observable,!u){var _=new Se([or(y,m)]);u=b.observable=_,_.beforeNext(function E(w,S){w==="next"&&"hasNext"in S&&S.hasNext?_.beforeNext(E):d.remove(g,p)})}}else u=new Se([or(y,m)])}else u=new Se([P.of({data:{}})]),r=this.prepareContext(r);return f&&(u=xt(u,function(E){return o.localState.runResolvers({document:f,remoteResult:E,context:r,variables:n})})),u},t.prototype.getResultsFromLink=function(e,r,n){var i=e.lastRequestId=this.generateRequestId(),a=this.cache.transformForLink(n.query);return xt(this.getObservableFromLink(a,n.context,n.variables),function(o){var s=nr(o),u=s.length>0,c=n.errorPolicy;if(i>=e.lastRequestId){if(u&&c==="none")throw e.markError(new ye({graphQLErrors:s}));e.markResult(o,a,n,r),e.markReady()}var l={data:o.data,loading:!1,networkStatus:I.ready};return u&&c==="none"&&(l.data=void 0),u&&c!=="ignore"&&(l.errors=s,l.networkStatus=I.error),l},function(o){var s=ji(o)?o:new ye({networkError:o});throw i>=e.lastRequestId&&e.markError(s),s})},t.prototype.fetchConcastWithInfo=function(e,r,n,i){var a=this;n===void 0&&(n=I.loading),i===void 0&&(i=r.query);var o=this.getVariables(i,r.variables),s=this.defaultOptions.watchQuery,u=r.fetchPolicy,c=u===void 0?s&&s.fetchPolicy||"cache-first":u,l=r.errorPolicy,f=l===void 0?s&&s.errorPolicy||"none":l,h=r.returnPartialData,d=h===void 0?!1:h,y=r.notifyOnNetworkStatusChange,m=y===void 0?!1:y,g=r.context,p=g===void 0?{}:g,b=Object.assign({},r,{query:i,variables:o,fetchPolicy:c,errorPolicy:f,returnPartialData:d,notifyOnNetworkStatusChange:m,context:p}),_=function(F){b.variables=F;var C=a.fetchQueryByPolicy(e,b,n);return b.fetchPolicy!=="standby"&&C.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",r),C},E=function(){return a.fetchCancelFns.delete(e.queryId)};this.fetchCancelFns.set(e.queryId,function(F){E(),setTimeout(function(){return w.cancel(F)})});var w,S;if(this.getDocumentInfo(b.query).hasClientExports)w=new Se(this.localState.addExportedVariables(b.query,b.variables,b.context).then(_).then(function(F){return F.sources})),S=!0;else{var k=_(b.variables);S=k.fromLink,w=new Se(k.sources)}return w.promise.then(E,E),{concast:w,fromLink:S}},t.prototype.refetchQueries=function(e){var r=this,n=e.updateCache,i=e.include,a=e.optimistic,o=a===void 0?!1:a,s=e.removeOptimistic,u=s===void 0?o?Ht("refetchQueries"):void 0:s,c=e.onQueryUpdated,l=new Map;i&&this.getObservableQueries(i).forEach(function(h,d){l.set(d,{oq:h,lastDiff:(r.queries.get(d)||h.queryInfo).getDiff()})});var f=new Map;return n&&this.cache.batch({update:n,optimistic:o&&u||!1,removeOptimistic:u,onWatchUpdated:function(h,d,y){var m=h.watcher instanceof Bt&&h.watcher.observableQuery;if(m){if(c){l.delete(m.queryId);var g=c(m,d,y);return g===!0&&(g=m.refetch()),g!==!1&&f.set(m,g),g}c!==null&&l.set(m.queryId,{oq:m,lastDiff:y,diff:d})}}}),l.size&&l.forEach(function(h,d){var y=h.oq,m=h.lastDiff,g=h.diff,p;c&&(g||(g=B("canonizeResults",function(){return r.cache.diff(y.queryInfo.getDiffOptions())})),p=c(y,g,m)),(!c||p===!0)&&(p=y.refetch()),p!==!1&&f.set(y,p),d.indexOf("legacyOneTimeQuery")>=0&&r.stopQueryNoBroadcast(d)}),u&&this.cache.removeOptimistic(u),f},t.prototype.maskOperation=function(e){var r,n,i,a=e.document,o=e.data;if(globalThis.__DEV__!==!1){var s=e.fetchPolicy,u=e.id,c=(r=_e(a))===null||r===void 0?void 0:r.operation,l=((n=c?.[0])!==null&&n!==void 0?n:"o")+u;this.dataMasking&&s==="no-cache"&&!Za(a)&&!this.noCacheWarningsByQueryId.has(l)&&(this.noCacheWarningsByQueryId.add(l),globalThis.__DEV__!==!1&&O.warn(45,(i=Be(a))!==null&&i!==void 0?i:"Unnamed ".concat(c??"operation")))}return this.dataMasking?Ys(o,a,this.cache):o},t.prototype.maskFragment=function(e){var r=e.data,n=e.fragment,i=e.fragmentName;return this.dataMasking?Wi(r,n,this.cache,i):r},t.prototype.fetchQueryByPolicy=function(e,r,n){var i=this,a=r.query,o=r.variables,s=r.fetchPolicy,u=r.refetchWritePolicy,c=r.errorPolicy,l=r.returnPartialData,f=r.context,h=r.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:a,variables:o,networkStatus:n});var y=function(){return e.getDiff()},m=function(E,w){w===void 0&&(w=e.networkStatus||I.loading);var S=E.result;globalThis.__DEV__!==!1&&!l&&!M(S,{})&&oa(E.missing);var k=function(F){return P.of(v({data:F,loading:ke(w),networkStatus:w},E.complete?null:{partial:!0}))};return S&&i.getDocumentInfo(a).hasForcedResolvers?i.localState.runResolvers({document:a,remoteResult:{data:S},context:f,variables:o,onlyRunForcedResolvers:!0}).then(function(F){return k(F.data||void 0)}):c==="none"&&w===I.refetch&&Array.isArray(E.missing)?k(void 0):k(S)},g=s==="no-cache"?0:n===I.refetch&&u!=="merge"?1:2,p=function(){return i.getResultsFromLink(e,g,{query:a,variables:o,context:f,fetchPolicy:s,errorPolicy:c})},b=h&&typeof d=="number"&&d!==n&&ke(n);switch(s){default:case"cache-first":{var _=y();return _.complete?{fromLink:!1,sources:[m(_,e.markReady())]}:l||b?{fromLink:!0,sources:[m(_),p()]}:{fromLink:!0,sources:[p()]}}case"cache-and-network":{var _=y();return _.complete||l||b?{fromLink:!0,sources:[m(_),p()]}:{fromLink:!0,sources:[p()]}}case"cache-only":return{fromLink:!1,sources:[m(y(),e.markReady())]};case"network-only":return b?{fromLink:!0,sources:[m(y()),p()]}:{fromLink:!0,sources:[p()]};case"no-cache":return b?{fromLink:!0,sources:[m(e.getDiff()),p()]}:{fromLink:!0,sources:[p()]};case"standby":return{fromLink:!1,sources:[]}}},t.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Bt(this,e)),this.queries.get(e)},t.prototype.prepareContext=function(e){e===void 0&&(e={});var r=this.localState.prepareContext(e);return v(v(v({},this.defaultContext),r),{clientAwareness:this.clientAwareness})},t})(),mu=(function(){function t(e){var r=e.cache,n=e.client,i=e.resolvers,a=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=r,n&&(this.client=n),i&&this.addResolvers(i),a&&this.setFragmentMatcher(a)}return t.prototype.addResolvers=function(e){var r=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(n){r.resolvers=an(r.resolvers,n)}):this.resolvers=an(this.resolvers,e)},t.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(e){return se(this,arguments,void 0,function(r){var n=r.document,i=r.remoteResult,a=r.context,o=r.variables,s=r.onlyRunForcedResolvers,u=s===void 0?!1:s;return ue(this,function(c){return n?[2,this.resolveDocument(n,i.data,a,o,this.fragmentMatcher,u).then(function(l){return v(v({},i),{data:l.result})})]:[2,i]})})},t.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(e){return Ye(["client"],e)&&this.resolvers?e:null},t.prototype.serverQuery=function(e){return Ii(e)},t.prototype.prepareContext=function(e){var r=this.cache;return v(v({},e),{cache:r,getCacheKey:function(n){return r.identify(n)}})},t.prototype.addExportedVariables=function(e){return se(this,arguments,void 0,function(r,n,i){return n===void 0&&(n={}),i===void 0&&(i={}),ue(this,function(a){return r?[2,this.resolveDocument(r,this.buildRootValueFromCache(r,n)||{},this.prepareContext(i),n).then(function(o){return v(v({},n),o.exportedVariables)})]:[2,v({},n)]})})},t.prototype.shouldForceResolvers=function(e){var r=!1;return X(e,{Directive:{enter:function(n){if(n.name.value==="client"&&n.arguments&&(r=n.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),r))return _t}}}),r},t.prototype.buildRootValueFromCache=function(e,r){return this.cache.diff({query:Wo(e),variables:r,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(e,r){return se(this,arguments,void 0,function(n,i,a,o,s,u){var c,l,f,h,d,y,m,g,p,b,_;return a===void 0&&(a={}),o===void 0&&(o={}),s===void 0&&(s=function(){return!0}),u===void 0&&(u=!1),ue(this,function(E){return c=tt(n),l=qe(n),f=Ne(l),h=this.collectSelectionsToResolve(c,f),d=c.operation,y=d?d.charAt(0).toUpperCase()+d.slice(1):"Query",m=this,g=m.cache,p=m.client,b={fragmentMap:f,context:v(v({},a),{cache:g,client:p}),variables:o,fragmentMatcher:s,defaultOperationType:y,exportedVariables:{},selectionsToResolve:h,onlyRunForcedResolvers:u},_=!1,[2,this.resolveSelectionSet(c.selectionSet,_,i,b).then(function(w){return{result:w,exportedVariables:b.exportedVariables}})]})})},t.prototype.resolveSelectionSet=function(e,r,n,i){return se(this,void 0,void 0,function(){var a,o,s,u,c,l=this;return ue(this,function(f){return a=i.fragmentMap,o=i.context,s=i.variables,u=[n],c=function(h){return se(l,void 0,void 0,function(){var d,y;return ue(this,function(m){return!r&&!i.selectionsToResolve.has(h)?[2]:et(h,s)?le(h)?[2,this.resolveField(h,r,n,i).then(function(g){var p;typeof g<"u"&&u.push((p={},p[ne(h)]=g,p))})]:(Ro(h)?d=h:(d=a[h.name.value],O(d,21,h.name.value)),d&&d.typeCondition&&(y=d.typeCondition.name.value,i.fragmentMatcher(n,y,o))?[2,this.resolveSelectionSet(d.selectionSet,r,n,i).then(function(g){u.push(g)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return Dt(u)})]})})},t.prototype.resolveField=function(e,r,n,i){return se(this,void 0,void 0,function(){var a,o,s,u,c,l,f,h,d,y=this;return ue(this,function(m){return n?(a=i.variables,o=e.name.value,s=ne(e),u=o!==s,c=n[s]||n[o],l=Promise.resolve(c),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=n.__typename||i.defaultOperationType,h=this.resolvers&&this.resolvers[f],h&&(d=h[u?o:s],d&&(l=Promise.resolve(Nr.withValue(this.cache,d,[n,Ot(e,a),i.context,{field:e,fragmentMap:i.fragmentMap}]))))),[2,l.then(function(g){var p,b;if(g===void 0&&(g=c),e.directives&&e.directives.forEach(function(E){E.name.value==="export"&&E.arguments&&E.arguments.forEach(function(w){w.name.value==="as"&&w.value.kind==="StringValue"&&(i.exportedVariables[w.value.value]=g)})}),!e.selectionSet||g==null)return g;var _=(b=(p=e.directives)===null||p===void 0?void 0:p.some(function(E){return E.name.value==="client"}))!==null&&b!==void 0?b:!1;if(Array.isArray(g))return y.resolveSubSelectedArray(e,r||_,g,i);if(e.selectionSet)return y.resolveSelectionSet(e.selectionSet,r||_,g,i)})]):[2,null]})})},t.prototype.resolveSubSelectedArray=function(e,r,n,i){var a=this;return Promise.all(n.map(function(o){if(o===null)return null;if(Array.isArray(o))return a.resolveSubSelectedArray(e,r,o,i);if(e.selectionSet)return a.resolveSelectionSet(e.selectionSet,r,o,i)}))},t.prototype.collectSelectionsToResolve=function(e,r){var n=function(o){return!Array.isArray(o)},i=this.selectionsToResolveCache;function a(o){if(!i.has(o)){var s=new Set;i.set(o,s),X(o,{Directive:function(u,c,l,f,h){u.name.value==="client"&&h.forEach(function(d){n(d)&&Jr(d)&&s.add(d)})},FragmentSpread:function(u,c,l,f,h){var d=r[u.name.value];O(d,22,u.name.value);var y=a(d);y.size>0&&(h.forEach(function(m){n(m)&&Jr(m)&&s.add(m)}),s.add(u),y.forEach(function(m){s.add(m)}))}})}return i.get(o)}return a(e)},t})(),Qn=!1,sa=(function(){function t(e){var r=this,n,i,a;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw W(16);var o=e.uri,s=e.credentials,u=e.headers,c=e.cache,l=e.documentTransform,f=e.ssrMode,h=f===void 0?!1:f,d=e.ssrForceFetchDelay,y=d===void 0?0:d,m=e.connectToDevTools,g=e.queryDeduplication,p=g===void 0?!0:g,b=e.defaultOptions,_=e.defaultContext,E=e.assumeImmutableResults,w=E===void 0?c.assumeImmutableResults:E,S=e.resolvers,k=e.typeDefs,F=e.fragmentMatcher,C=e.clientAwareness,j=e.name,ae=e.version,J=e.devtools,V=e.dataMasking;globalThis.__DEV__!==!1&&(q(e,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),q(e,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),q(e,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),q(e,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),q(e,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),q(e,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),q(e,"typeDefs","ApolloClient"),e.link||globalThis.__DEV__!==!1&&O.warn(17));var G=e.link;G||(G=o?new Vi({uri:o,credentials:s,headers:u}):rt.empty()),this.link=G,this.cache=c,this.disableNetworkFetches=h||y>0,this.queryDeduplication=p,this.defaultOptions=b||Object.create(null),this.typeDefs=k,this.devtoolsConfig=v(v({},J),{enabled:(n=J?.enabled)!==null&&n!==void 0?n:m}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),y&&setTimeout(function(){return r.disableNetworkFetches=!1},y),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Er,this.localState=new mu({cache:c,client:this,resolvers:S,fragmentMatcher:F}),this.queryManager=new yu({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:_,documentTransform:l,queryDeduplication:p,ssrMode:h,dataMasking:!!V,clientAwareness:{name:(i=C?.name)!==null&&i!==void 0?i:j,version:(a=C?.version)!==null&&a!==void 0?a:ae},localState:this.localState,assumeImmutableResults:w,onBroadcast:this.devtoolsConfig.enabled?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(t.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e},enumerable:!1,configurable:!0}),t.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var e=window,r=Symbol.for("apollo.devtools");(e[r]=e[r]||[]).push(this),e.__APOLLO_CLIENT__=this,!Qn&&globalThis.__DEV__!==!1&&(Qn=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var n=window.navigator,i=n&&n.userAgent,a=void 0;typeof i=="string"&&(i.indexOf("Chrome/")>-1?a="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(a="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),a&&globalThis.__DEV__!==!1&&O.log("Download the Apollo DevTools for a better development experience: %s",a)}},1e4))}},Object.defineProperty(t.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Nt(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")&&(e=v(v({},e),{fetchPolicy:"cache-first"})),globalThis.__DEV__!==!1&&(q(e,"canonizeResults","client.watchQuery"),q(e,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(e)},t.prototype.query=function(e){return this.defaultOptions.query&&(e=Nt(this.defaultOptions.query,e)),O(e.fetchPolicy!=="cache-and-network",18),this.disableNetworkFetches&&e.fetchPolicy==="network-only"&&(e=v(v({},e),{fetchPolicy:"cache-first"})),globalThis.__DEV__!==!1&&(q(e,"canonizeResults","client.query"),q(e,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),e.fetchPolicy==="standby"&&globalThis.__DEV__!==!1&&O.warn(19)),this.queryManager.query(e)},t.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Nt(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},t.prototype.subscribe=function(e){var r=this,n=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(i){return v(v({},i),{data:r.queryManager.maskOperation({document:e.query,data:i.data,fetchPolicy:e.fetchPolicy,id:n})})})},t.prototype.readQuery=function(e,r){return r===void 0&&(r=!1),this.cache.readQuery(e,r)},t.prototype.watchFragment=function(e){var r;return this.cache.watchFragment(v(v({},e),(r={},r[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,r)))},t.prototype.readFragment=function(e,r){return r===void 0&&(r=!1),this.cache.readFragment(e,r)},t.prototype.writeQuery=function(e){var r=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.writeFragment=function(e){var r=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},t.prototype.__requestRaw=function(e){return or(this.link,e)},t.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(r){return r()}))}).then(function(){return e.reFetchObservableQueries()})},t.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(r){return r()}))})},t.prototype.onResetStore=function(e){var r=this;return this.resetStoreCallbacks.push(e),function(){r.resetStoreCallbacks=r.resetStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.onClearStore=function(e){var r=this;return this.clearStoreCallbacks.push(e),function(){r.clearStoreCallbacks=r.clearStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},t.prototype.refetchQueries=function(e){var r=this.queryManager.refetchQueries(e),n=[],i=[];r.forEach(function(o,s){n.push(s),i.push(o)});var a=Promise.all(i);return a.queries=n,a.results=i,a.catch(function(o){globalThis.__DEV__!==!1&&O.debug(20,o)}),a},t.prototype.getObservableQueries=function(e){return e===void 0&&(e="active"),this.queryManager.getObservableQueries(e)},t.prototype.extract=function(e){return this.cache.extract(e)},t.prototype.restore=function(e){return this.cache.restore(e)},t.prototype.addResolvers=function(e){this.localState.addResolvers(e)},t.prototype.setResolvers=function(e){this.localState.setResolvers(e)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},t.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(t.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),t})();globalThis.__DEV__!==!1&&(sa.prototype.getMemoryInternals=uo);const gu={watchQuery:{fetchPolicy:"cache-and-network",errorPolicy:"all"},query:{fetchPolicy:"no-cache",errorPolicy:"all"}},uc=new sa({link:new Vi({uri:"/graphql"}),cache:new aa,defaultOptions:gu});function cc({size:t=34}){return $.jsxs("svg",{width:t,height:t,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"UIGraph",style:{borderRadius:8,flexShrink:0},children:[$.jsx("rect",{width:"64",height:"64",rx:"16",fill:"#0B0E16"}),$.jsxs("g",{stroke:"#3B6BFF",strokeWidth:"4",strokeLinecap:"round",children:[$.jsx("line",{x1:"20",y1:"20",x2:"44",y2:"20"}),$.jsx("line",{x1:"44",y1:"20",x2:"44",y2:"44"}),$.jsx("line",{x1:"44",y1:"44",x2:"20",y2:"44"}),$.jsx("line",{x1:"20",y1:"44",x2:"20",y2:"20"})]}),$.jsx("circle",{cx:"44",cy:"20",r:"6",fill:"#3B6BFF"}),$.jsx("circle",{cx:"44",cy:"44",r:"6",fill:"#3B6BFF"}),$.jsx("circle",{cx:"20",cy:"44",r:"6",fill:"#3B6BFF"}),$.jsx("circle",{cx:"20",cy:"20",r:"6.5",fill:"#FFFFFF"})]})}var Wt={exports:{}},z={};/**
|
|
43
|
+
* @license React
|
|
44
|
+
* react-dom.production.js
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the MIT license found in the
|
|
49
|
+
* LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/var Ln;function bu(){if(Ln)return z;Ln=1;var t=ga();function e(l){var f="https://react.dev/errors/"+l;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)f+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+l+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(e(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal"),a=Symbol.for("react.recoverable"),o=Symbol.for("react.optimistic_key");function s(l,f,h){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:d==null?null:d===o?o:""+d,children:l,containerInfo:f,implementation:h}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(l,f){if(l==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return z.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,z.browser=function(l){return{$$typeof:a,_reason:l}},z.createPortal=function(l,f){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(e(299));return s(l,f,null,h)},z.flushSync=function(l){var f=u.T,h=n.p;try{if(u.T=null,n.p=2,l)return l()}finally{u.T=f,n.p=h,n.d.f()}},z.preconnect=function(l,f){typeof l=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,n.d.C(l,f))},z.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},z.preinit=function(l,f){if(typeof l=="string"&&f&&typeof f.as=="string"){var h=f.as,d=c(h,f.crossOrigin),y=typeof f.integrity=="string"?f.integrity:void 0,m=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;h==="style"?n.d.S(l,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:d,integrity:y,fetchPriority:m}):h==="script"&&n.d.X(l,{crossOrigin:d,integrity:y,fetchPriority:m,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},z.preinitModule=function(l,f){if(typeof l=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var h=c(f.as,f.crossOrigin);n.d.M(l,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0})}}else f==null&&n.d.M(l)},z.preload=function(l,f){if(typeof l=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var h=f.as,d=c(h,f.crossOrigin);n.d.L(l,h,{crossOrigin:d,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},z.preloadModule=function(l,f){if(typeof l=="string")if(f){var h=c(f.as,f.crossOrigin);n.d.m(l,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0})}else n.d.m(l)},z.requestFormReset=function(l){n.d.r(l)},z.unstable_batchedUpdates=function(l,f){return l(f)},z.useFormState=function(l,f,h){return u.H.useFormState(l,f,h)},z.useFormStatus=function(){return u.H.useHostTransitionStatus()},z.version="19.3.0",z}var zn;function _u(){if(zn)return Wt.exports;zn=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Wt.exports=bu(),Wt.exports}var Eu=_u();const fc=ba(Eu),Un=t=>{let e;const r=new Set,n=(c,l)=>{const f=typeof c=="function"?c(e):c;if(!Object.is(f,e)){const h=e;e=l??(typeof f!="object"||f===null)?f:Object.assign({},e,f),r.forEach(d=>d(e,h))}},i=()=>e,s={setState:n,getState:i,getInitialState:()=>u,subscribe:c=>(r.add(c),()=>r.delete(c))},u=e=t(n,i,s);return s},wu=(t=>t?Un(t):Un),Ou=t=>t;function Su(t,e=Ou){const r=nt.useSyncExternalStore(t.subscribe,nt.useCallback(()=>e(t.getState()),[t,e]),nt.useCallback(()=>e(t.getInitialState()),[t,e]));return nt.useDebugValue(r),r}const Bn=t=>{const e=wu(t),r=n=>Su(e,n);return Object.assign(r,e),r},Tu=(t=>t?Bn(t):Bn),vr=Tu(()=>({status:"loading",user:null,features:{github:!1,slack:!1,enterprise:!1},organizations:[],currentOrganizationId:localStorage.getItem("currentOrganizationId"),dashboard:localStorage.getItem("dashboard")}));function lc(){const t=vr(r=>r.organizations),e=vr(r=>r.currentOrganizationId);return t.find(r=>r.id===e)??t[0]}vr.subscribe(t=>{t.dashboard?localStorage.setItem("dashboard",t.dashboard):localStorage.removeItem("dashboard"),t.currentOrganizationId?localStorage.setItem("currentOrganizationId",t.currentOrganizationId):localStorage.removeItem("currentOrganizationId")});const ua=_r.createContext(void 0),hc=t=>{const e=_r.useContext(ua);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},dc=({client:t,children:e})=>(_r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),$.jsx(ua.Provider,{value:t,children:e})),Du={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)};var ku=class{#e=Du;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}};const pr=new ku;function Fu(t){setTimeout(t,0)}const Iu=typeof window>"u"||"Deno"in globalThis;function yr(){}function vc(t,e){return typeof t=="function"?t(e):t}function Ru(t){return typeof t=="number"&&t>=0&&t!==1/0}function Cu(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Wn(t,e){return typeof t=="function"?t(e):t}function pc(t,e){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=t;if(o){if(n){if(e.queryHash!==Pu(o,e.options))return!1}else if(!gt(e.queryKey,o))return!1}if(r!=="all"){const u=e.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||i&&i!==e.state.fetchStatus||a&&!a(e))}function yc(t,e){const{exact:r,status:n,predicate:i,mutationKey:a}=t;if(a){if(!e.options.mutationKey)return!1;if(r){if(mr(e.options.mutationKey)!==mr(a))return!1}else if(!gt(e.options.mutationKey,a))return!1}return!(n&&e.state.status!==n||i&&!i(e))}function Pu(t,e){return(e?.queryKeyHashFn||mr)(t)}function mr(t){return JSON.stringify(t,(e,r)=>gr(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function gt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(Array.isArray(t)&&Array.isArray(e)){if(e.length>t.length)return!1;for(let n=0;n<e.length;n++)if(!gt(t[n],e[n]))return!1;return!0}const r=Object.keys(e);for(const n of r)if(!gt(t[n],e[n]))return!1;return!0}return!1}const Mu=Object.prototype.hasOwnProperty;function ca(t,e,r=0){if(t===e)return t;if(r>500)return e;const n=Gn(t)&&Gn(e);if(!n&&!(gr(t)&&gr(e)))return e;const i=(n?t:Object.keys(t)).length,a=n?e:Object.keys(e),o=a.length,s=n?new Array(o):{};let u=0;for(let c=0;c<o;c++){const l=n?c:a[c],f=t[l],h=e[l];if(f===h){s[l]=f,(n?c<i:Mu.call(t,l))&&u++;continue}if(f===null||h===null||typeof f!="object"||typeof h!="object"){s[l]=h;continue}const d=ca(f,h,r+1);s[l]=d,d===f&&u++}return i===o&&u===i?t:s}function mc(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(t[r]!==e[r])return!1;return!0}function Gn(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function gr(t){if(!Hn(t))return!1;const e=Object.getPrototypeOf(t),r=e?.constructor;if(r===void 0)return!0;if(typeof r!="function")return!1;const n=r.prototype;return!(!Hn(n)||!n.hasOwnProperty("isPrototypeOf")||e!==Object.prototype)}function Hn(t){return Object.prototype.toString.call(t)==="[object Object]"}function Au(t){return new Promise(e=>{pr.setTimeout(e,t)})}function xu(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?ca(t,e):e}function Nu(t,e,r=0){const n=[...t,e];return r&&n.length>r?n.slice(1):n}function ju(t,e,r=0){const n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}const fa=Symbol();function la(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===fa?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function gc(t,e){return typeof t=="function"?t(...e):!!t}function qu(t,e,r){let n=!1,i;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(i??=e(),n||(n=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),t}let Vu=()=>Iu;const ha=()=>Vu();var da=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Qu=class extends da{#e;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}};const Lu=new Qu,zu=Fu;function Uu(){let t=[],e=0,r=s=>{s()},n=s=>{s()},i=zu;const a=s=>{e?t.push(s):i(()=>{r(s)})},o=()=>{const s=t;t=[],s.length&&i(()=>{n(()=>{s.forEach(u=>{r(u)})})})};return{batch:s=>{let u;e++;try{u=s()}finally{e--,e||o()}return u},batchCalls:s=>(...u)=>{a(()=>{s(...u)})},schedule:a,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}const Bu=Uu();var Wu=class extends da{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#e}};const va=new Wu;function Gu(t){return Math.min(1e3*2**t,3e4)}function pa(t){return(t??"online")==="online"?va.isOnline():!0}var br=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Hu(t){let e=!1,r=0,n,i="pending",a,o;const s=new Promise((b,_)=>{a=b,o=_});s.catch(yr);const u=()=>i!=="pending",c=b=>{if(!u()){const _=new br(b);m(_),t.onCancel?.(_)}},l=()=>{e=!0},f=()=>{e=!1},h=()=>Lu.isFocused()&&(t.networkMode==="always"||va.isOnline())&&t.canRun(),d=()=>pa(t.networkMode)&&t.canRun(),y=b=>{u()||(n?.(),i="resolved",a(b))},m=b=>{u()||(n?.(),i="rejected",o(b))},g=b=>new Promise(_=>{n=E=>{(u()||b())&&_(E)},t.onPause?.()}).then(()=>{n=void 0,u()||t.onContinue?.()}),p=()=>{if(u())return;let b;const _=r===0?t.initialPromise:void 0;try{b=_??t.fn()}catch(E){b=Promise.reject(E)}Promise.resolve(b).then(y).catch(E=>{if(u())return;const w=t.retry??(ha()?0:3),S=t.retryDelay??Gu,k=typeof S=="function"?S(r,E):S,F=w===!0||typeof w=="number"&&r<w||typeof w=="function"&&w(r,E);if(e||!F){m(E);return}r++,t.onFail?.(r,E),Au(k).then(()=>h()?void 0:g(h)).then(()=>{e?m(E):p()})})};return{promise:s,status:()=>i,cancel:c,continue:()=>(n?.(),s),cancelRetry:l,continueRetry:f,canStart:d,start:()=>(d()?p():g(d).then(p),s)}}var $u=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ru(this.gcTime)&&(this.#e=pr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ha()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(pr.clearTimeout(this.#e),this.#e=void 0)}};function Ju(t){return{onFetch:(e,r)=>{const n=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,a=e.state.data?.pages||[],o=e.state.data?.pageParams||[];let s={pages:[],pageParams:[]},u=0;const c=async()=>{let l=!1;const f=y=>{qu(y,()=>e.signal,()=>l=!0)},h=la(e.options,e.fetchOptions),d=async(y,m,g)=>{if(l)return Promise.reject(e.signal.reason);if(m==null&&y.pages.length)return Promise.resolve(y);const b=(()=>{const S={client:e.client,queryKey:e.queryKey,pageParam:m,direction:g?"backward":"forward",meta:e.options.meta};return f(S),S})(),_=await h(b),{maxPages:E}=e.options,w=g?ju:Nu;return{pages:w(y.pages,_,E),pageParams:w(y.pageParams,m,E)}};if(i&&a.length){const y=i==="backward",m=y?Yu:$n,g={pages:a,pageParams:o};s=await d(g,m(n,g),y)}else{const y=t??a.length;do{const m=u===0?o[0]??n.initialPageParam:$n(n,s);if(u>0&&m==null)break;s=await d(s,m),u++}while(u<y)}return s};e.options.persister?e.fetchFn=()=>e.options.persister?.(c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r):e.fetchFn=c}}}function $n(t,{pages:e,pageParams:r}){const n=e.length-1;return e.length>0?t.getNextPageParam(e[n],e,r[n],r):void 0}function Yu(t,{pages:e,pageParams:r}){return e.length>0?t.getPreviousPageParam?.(e[0],e,r[0],r):void 0}var bc=class extends $u{#e;#t;#n;#i;#o;#r;#u;#s;constructor(t){super(),this.#s=!1,this.#u=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#o=t.client,this.#i=this.#o.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=Yn(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#r?.promise}setOptions(t){if(this.options={...this.#u,...t},t?._type&&(this.#e=t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=Yn(this.options);e.data!==void 0&&(this.setState(Jn(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#i.remove(this)}setData(t,e){const r=xu(this.state.data,t,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),r}setState(t){this.#a({type:"setState",state:t})}cancel(t){const e=this.#r?.promise;return this.#r?.cancel(t),e?e.then(yr).catch(yr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Wn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fa||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Wn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Cu(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){const e=this.observers.indexOf(t);e!==-1&&(this.observers.splice(e,1),this.observers.length||(this.#r&&(this.#s||this.state.fetchStatus==="paused"&&this.state.status==="pending"?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#i.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const u=this.observers.find(c=>c.options.queryFn);u&&this.setOptions(u.options)}const r=new AbortController,n=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#s=!0,r.signal)})},i=()=>{const u=la(this.options,e),l=(()=>{const f={client:this.#o,queryKey:this.queryKey,meta:this.meta};return n(f),f})();return this.#s=!1,this.options.persister?this.options.persister(u,l,this):u(l)},o=(()=>{const u={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:i};return n(u),u})();(this.#e==="infinite"?Ju(this.options.pages):this.options.behavior)?.onFetch(o,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#a({type:"fetch",meta:o.fetchOptions?.meta});const s=this.#r=Hu({initialPromise:e?.initialPromise,fn:o.fetchFn,onCancel:u=>{u instanceof br&&u.revert&&this.setState({...this.#n,fetchStatus:"idle"}),r.abort()},onFail:(u,c)=>{this.#a({type:"failed",failureCount:u,error:c})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const u=await s.start();if(u===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(u),this.#i.config.onSuccess?.(u,this),this.#i.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof br){if(u.silent)return this.#r.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#a({type:"error",error:u}),this.#i.config.onError?.(u,this),this.#i.config.onSettled?.(this.state.data,u,this),u}finally{this.#r===s&&(this.#r=void 0),this.scheduleGc()}}#a(t){const e=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ku(r.data,this.options),fetchMeta:t.meta??null};case"success":const n={...r,...Jn(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=t.manual?n:void 0,n;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=e(this.state),Bu.batch(()=>{this.observers.slice().forEach(r=>{r.onQueryUpdate()}),this.#i.notify({query:this,type:"updated",action:t})})}};function Ku(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pa(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Jn(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Yn(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}export{dc as $,ye as A,uc as B,$u as C,Hu as D,Bu as E,yc as F,yr as G,Pu as H,pc as I,Lu as J,A as K,Zu as L,va as M,I as N,ht as O,Wn as P,bc as Q,fc as R,da as S,ec as T,cc as U,vc as V,mr as W,gt as X,fa as Y,_u as Z,v as _,vr as a,mc as a0,ha as a1,Ru as a2,Cu as a3,pr as a4,Ku as a5,xu as a6,gc as a7,hc as a8,U as a9,ca as aa,ai as b,Ya as c,ic as d,M as e,B as f,si as g,re as h,O as i,ui as j,q as k,te as l,Nt as m,xe as n,yt as o,Z as p,Sa as q,Eu as r,tc as s,nc as t,lc as u,rc as v,ge as w,Fa as x,wa as y,$r as z};
|