@kabmo-labs/kabmo 0.38.2 → 0.39.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/client/index.html +1 -1
- package/dist/client/index.js +565 -537
- package/dist/client/static/js/{CsvGrid-4dpsfdrf.js → CsvGrid-7synegzg.js} +2 -2
- package/dist/client/static/js/{DocxView-crdgc0jd.js → DocxView-v5d9n5yw.js} +4 -4
- package/dist/client/static/js/DrawioView-ww7y98tt.js +5 -0
- package/dist/client/static/js/ImageView-t3rkypzs.js +1 -0
- package/dist/client/static/js/LayoutWrapper-th2pd4yt.js +2 -0
- package/dist/client/static/js/Modal-qj39shgb.js +38 -0
- package/dist/client/static/js/{PdfView-72c123a9.js → PdfView-t9v4datp.js} +1 -1
- package/dist/client/static/js/SessionsView-yqy0a1xg.js +1 -0
- package/dist/client/static/js/{SheetView-8xh69wgk.js → SheetView-6zkxbjd4.js} +31 -31
- package/dist/client/static/js/{SvgPreview-z3fm87h6.js → SvgPreview-7rt2p1y1.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-25r2p3vh.js → abnfDiagram-O67JEVCF-888zn5zg.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-y0zb4vqa.js +1 -0
- package/dist/client/static/js/architectureDiagram-NJMV4G6O-b04e26rb.js +36 -0
- package/dist/client/static/js/{astro-p3f5p9p2.js → astro-4ybhkc9b.js} +1 -1
- package/dist/client/static/js/bash-k6p3y3pr.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-vzamgz9s.js → blockDiagram-BEXU5L5S-32ph2m52.js} +8 -8
- package/dist/client/static/js/c-ve09y19q.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-jejafgn0.js → c4Diagram-YGBWAQC7-hwnaa333.js} +5 -5
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-qfa6mj0q.js → classDiagram-v2-NBCMYWYE-2kg7dqeb.js} +6 -6
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-9vzdgmk1.js → cose-bilkent-JH36ORCC-tj2sbtyv.js} +1 -1
- package/dist/client/static/js/cpp-vhqp7bcy.js +1 -0
- package/dist/client/static/js/css-77mvf0ca.js +1 -0
- package/dist/client/static/js/css-tys2rrny.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-nt1ed192.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-a3k3w1t5.js → cynefinDiagram-VND7K2PF-wx2y8dhm.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-gf04dvxj.js → dagre-6A5THRUB-5v3rzdxd.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-a9e0a684.js → diagram-22UHCM2B-7er2jwy1.js} +19 -19
- package/dist/client/static/js/{diagram-3UASUU5V-fb73gfjd.js → diagram-3UASUU5V-2b7nmdha.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-yb9n3t30.js → diagram-ATOU4E4O-yf61ftn0.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-adhbhw28.js → diagram-CDSNMT55-cn3rs9xn.js} +5 -5
- package/dist/client/static/js/{diagram-MLGK6HIB-v4yxyb8r.js → diagram-MLGK6HIB-7kvtsj6c.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-94ttsqy2.js → diagram-MPIPVDR6-g3zg3r5e.js} +3 -3
- package/dist/client/static/js/{dockerfile-mrranatf.js → dockerfile-f9j396wm.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-jj4f3pyq.js → ebnfDiagram-ZINNZB2B-ft02nzne.js} +1 -1
- package/dist/client/static/js/{elixir-jwphgp8j.js → elixir-v9bbxsgg.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-mtnkhyte.js → elk-276RUBZZ-87fvkn2k.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-18qdkhm5.js → erDiagram-OPXOYQCR-gh9mp6j8.js} +9 -9
- package/dist/client/static/js/{erlang-6m6tpt72.js → erlang-55r0skxa.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-v4edaxx7.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-6gc6gd1d.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-vz28h061.js → ganttDiagram-FUAMR5RP-227xs61z.js} +5 -5
- package/dist/client/static/js/gitGraph-4MIJSDKK-adzhec96.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-cgq3r4rz.js → gitGraphDiagram-X574FWY7-4671gdym.js} +14 -14
- package/dist/client/static/js/graphql-g97hycb3.js +1 -0
- package/dist/client/static/js/html-2syect3n.js +1 -0
- package/dist/client/static/js/{index-3az1w5f8.js → index-0j518hqm.js} +2 -2
- package/dist/client/static/js/index-1jeyjqkh.js +2 -0
- package/dist/client/static/js/{index-t5t71dhp.js → index-1sgad84m.js} +2 -2
- package/dist/client/static/js/index-28a5kf88.js +1 -0
- package/dist/client/static/js/{index-sa9cp6km.js → index-2rs03vfy.js} +2 -2
- package/dist/client/static/js/index-35mh9kbs.js +3 -0
- package/dist/client/static/js/{index-xya34x4v.js → index-442mbhwb.js} +2 -2
- package/dist/client/static/js/index-4c2zcvem.js +474 -0
- package/dist/client/static/js/{index-qxb8k6py.js → index-4ry8kz8h.js} +3 -3
- package/dist/client/static/js/{index-dt7e1328.js → index-4wtr5wjp.js} +2 -2
- package/dist/client/static/js/{index-gr6jng0x.js → index-4wvtar0v.js} +2 -2
- package/dist/client/static/js/{index-12p63902.js → index-668chrpq.js} +2 -2
- package/dist/client/static/js/index-6rs8e8ng.js +1 -0
- package/dist/client/static/js/{index-6k3e5dph.js → index-72289dgx.js} +2 -2
- package/dist/client/static/js/{index-zdbvm01f.js → index-7qc2avfy.js} +2 -2
- package/dist/client/static/js/{index-4hsxaa87.js → index-87qandgr.js} +2 -2
- package/dist/client/static/js/{index-fghst0kd.js → index-8egjccbq.js} +34 -34
- package/dist/client/static/js/index-8xasfxf3.js +1 -0
- package/dist/client/static/js/{index-x07kp3jz.js → index-9d6x1f3t.js} +2 -2
- package/dist/client/static/js/{index-vb6t44dw.js → index-9gepbvdt.js} +2 -2
- package/dist/client/static/js/{index-7fdp9c7m.js → index-b08hx4tw.js} +2 -2
- package/dist/client/static/js/{index-nd4p98mc.js → index-c1be3rva.js} +2 -2
- package/dist/client/static/js/{index-3zc1b0dv.js → index-c36pag9y.js} +2 -2
- package/dist/client/static/js/{index-qkscve6n.js → index-cfnxda13.js} +2 -2
- package/dist/client/static/js/index-cst843zs.css +1 -0
- package/dist/client/static/js/index-d3prrt2q.js +1 -0
- package/dist/client/static/js/{index-1y9r4frb.js → index-drjtwfp5.js} +2 -2
- package/dist/client/static/js/{index-h7pn9qw6.js → index-enmh3w27.js} +2 -2
- package/dist/client/static/js/{index-95t1hwr8.js → index-f1nqk6z6.js} +2 -2
- package/dist/client/static/js/index-f73v86a3.js +4 -0
- package/dist/client/static/js/{index-ray2czf6.js → index-fjnkzk12.js} +4 -4
- package/dist/client/static/js/{index-z72wf7q4.js → index-fjqp03xe.js} +2 -2
- package/dist/client/static/js/index-fs3pbqwn.js +1 -0
- package/dist/client/static/js/{index-naz3px72.js → index-h8rr48px.js} +9 -9
- package/dist/client/static/js/{index-6j9h1fa7.js → index-hdd8nqz8.js} +1 -1
- package/dist/client/static/js/index-j2g39xq7.js +9 -0
- package/dist/client/static/js/index-jze0zg3z.js +2 -0
- package/dist/client/static/js/{index-8acv5b77.js → index-k7sdsmgv.js} +2 -2
- package/dist/client/static/js/{index-s16h2nmv.js → index-kkfbd1db.js} +6 -6
- package/dist/client/static/js/{index-gbdvr4rt.js → index-m847wafq.js} +2 -2
- package/dist/client/static/js/{index-ajtd1q1h.js → index-mtadrbxt.js} +2 -2
- package/dist/client/static/js/{index-y5y7smet.js → index-phm1zb8m.js} +1 -1
- package/dist/client/static/js/{index-qn4pkjfh.js → index-q0bph5x0.js} +2 -2
- package/dist/client/static/js/index-qbnd827h.js +1 -0
- package/dist/client/static/js/{index-gbfg0anm.js → index-qsrw5c67.js} +2 -2
- package/dist/client/static/js/{index-ashpbfqv.js → index-rj81xrvw.js} +2 -2
- package/dist/client/static/js/{index-kf9t3mzv.js → index-s80x8d58.js} +2 -2
- package/dist/client/static/js/{index-b9b2nwdd.js → index-t6gznaxm.js} +2 -2
- package/dist/client/static/js/index-tmnnafht.js +1 -0
- package/dist/client/static/js/{index-d146s9g3.js → index-vb3srfyc.js} +2 -2
- package/dist/client/static/js/{index-we2ezmn7.js → index-w0rbyw47.js} +2 -2
- package/dist/client/static/js/index-w0xvdda9.js +1 -0
- package/dist/client/static/js/index-wfcgqjzr.js +1 -0
- package/dist/client/static/js/{index-fqhpxzyb.js → index-wgvysmnr.js} +13 -13
- package/dist/client/static/js/{index-njqpkcvw.js → index-xfr6r539.js} +2 -2
- package/dist/client/static/js/index-xnk1500f.js +12 -0
- package/dist/client/static/js/{index-9wd9y6m0.js → index-xrp2zv8z.js} +2 -2
- package/dist/client/static/js/{index-y3hdv561.js → index-y3qxrs90.js} +2 -2
- package/dist/client/static/js/{index-5v9v41ap.js → index-y5ymgp20.js} +98 -98
- package/dist/client/static/js/{index-dr7nhha9.js → index-y91j4t1q.js} +2 -2
- package/dist/client/static/js/info-A6RAGUB7-2ye26vqn.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-jjwckbr9.js → infoDiagram-VRGFBTTK-k1jnhhbp.js} +2 -2
- package/dist/client/static/js/ini-7ffv28px.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-qzk5gejf.js → ishikawaDiagram-OU5B5YK6-ar94x2gr.js} +3 -3
- package/dist/client/static/js/java-4x5yky4a.js +1 -0
- package/dist/client/static/js/javascript-4kw2j9t3.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-maccpg3q.js → journeyDiagram-ZHPQQLJL-ntfp0w54.js} +5 -5
- package/dist/client/static/js/json-h3kwpty2.js +1 -0
- package/dist/client/static/js/jsx-jk20f0dr.js +1 -0
- package/dist/client/static/js/{julia-237yk557.js → julia-jhe2vd4f.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-xv2azgws.js → kanban-definition-PNTS6WVX-q5rsr6j3.js} +6 -6
- package/dist/client/static/js/lua-k02dpxq8.js +1 -0
- package/dist/client/static/js/markdown-fhhg7ms6.js +1 -0
- package/dist/client/static/js/{mermaid.core-e4ys760s.js → mermaid.core-0gafsqrm.js} +8 -8
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-b779wz81.js → mindmap-definition-NLK3R4M7-jgz6nyhk.js} +6 -6
- package/dist/client/static/js/one-dark-pro-n0as47q7.js +1 -0
- package/dist/client/static/js/one-light-05nw3mzj.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-b0j3te0q.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-8sgdmhnw.js → pegDiagram-GJSIUBJH-b3e9ma2c.js} +1 -1
- package/dist/client/static/js/{perl-dvz4y1tb.js → perl-qhj6tk7k.js} +1 -1
- package/dist/client/static/js/{php-n6y7dzhm.js → php-arycc4w7.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-28qq62fn.js +1 -0
- package/dist/client/static/js/pieDiagram-5QR66LMP-66mn2qnt.js +39 -0
- package/dist/client/static/js/properties-qhvcxc13.js +1 -0
- package/dist/client/static/js/python-3qsrs510.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-47dpygk5.js → quadrantDiagram-O4NWA36T-n7warg0e.js} +6 -6
- package/dist/client/static/js/r-z2ng7mza.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-fyrcbpyd.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-9s62qncd.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-f7yjmhrk.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-sfrw8gkz.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-4mm4cern.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-wv0bvwve.js → railroadDiagram-XR7U4H2S-k8j43rxj.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-w3r8r837.js → requirementDiagram-PLB6GJNP-ef2v7nyq.js} +13 -13
- package/dist/client/static/js/{ruby-7zye3g0e.js → ruby-fb6zzevm.js} +1 -1
- package/dist/client/static/js/{rust-42c4h7e4.js → rust-jvkbr060.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-t55rjgad.js → sankeyDiagram-IPEJSGJF-3njbd1yd.js} +6 -6
- package/dist/client/static/js/{sass-m0h9yzfb.js → sass-fzs6a0kr.js} +1 -1
- package/dist/client/static/js/{scss-2pwwfkvn.js → scss-gdb52d0c.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-yfwjwy37.js → sequenceDiagram-PO4LG4MO-k2wqc0qt.js} +21 -21
- package/dist/client/static/js/{sizeCapture-INFHLROL-nq6hy7ce.js → sizeCapture-INFHLROL-cpnd12ee.js} +1 -1
- package/dist/client/static/js/sql-ypk53ntb.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-4xy0atqh.js → stateDiagram-v2-GCMORJYK-1ydpxaeg.js} +3 -3
- package/dist/client/static/js/{svelte-x8f8c8hq.js → svelte-8s3k6qjd.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-np47cy1q.js → swimlanes-2SLR337P-4md43da2.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-d48g5gjf.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-rb0gnm35.js → timeline-definition-EJHVYXUP-sp32bf3e.js} +7 -7
- package/dist/client/static/js/treeView-Q6P3EWNA-a5vgg4gz.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-ctqhajgg.js +1 -0
- package/dist/client/static/js/tsx-zy7hb2hw.js +1 -0
- package/dist/client/static/js/typescript-2hr53c8j.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-gatkznan.js → usecaseDiagram-POWQR4AR-p2ssettn.js} +51 -51
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-r3f5xjjq.js → vennDiagram-UO4OBE2U-ejqq8b82.js} +5 -5
- package/dist/client/static/js/{vue-myjjd0gd.js → vue-k3f3chre.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-ns7e0fqf.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-tpass65t.js → wardleyDiagram-VNRHLVJA-tkk79rsn.js} +4 -4
- package/dist/client/static/js/xml-p4742r9b.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-8xkh67cw.js → xychartDiagram-PMCCYNJV-zhgrsqpb.js} +6 -6
- package/dist/client/static/js/yaml-qbckg671.js +1 -0
- package/marketplace/plugins/command-runner/README.md +5 -0
- package/marketplace/plugins/command-runner/package.json +2 -2
- package/marketplace/plugins/command-runner/src/panel/Output.test.tsx +177 -0
- package/marketplace/plugins/command-runner/src/panel/Output.tsx +53 -2
- package/package.json +3 -1
- package/public/tray-monochrome-dark.png +0 -0
- package/public/tray-monochrome-light.png +0 -0
- package/src/client/App.tsx +4 -0
- package/src/client/components/common/NotificationPermissionDialog.test.tsx +166 -0
- package/src/client/components/common/NotificationPermissionDialog.tsx +167 -0
- package/src/client/components/common/batch-selection/BatchDeleteModal.test.tsx +97 -0
- package/src/client/components/common/batch-selection/BatchDeleteModal.tsx +24 -1
- package/src/client/components/common/context-usage-button/SessionStats.tsx +4 -8
- package/src/client/components/common/context-usage-button/TokenTotals.tsx +51 -0
- package/src/client/components/common/context-usage-button/index.test.tsx +26 -3
- package/src/client/components/common/context-usage-button/index.tsx +2 -0
- package/src/client/components/common/diagram-viewer/index.tsx +11 -235
- package/src/client/components/common/fullscreen-viewer/fullscreen-viewer.test.tsx +108 -0
- package/src/client/components/common/fullscreen-viewer/index.tsx +326 -0
- package/src/client/components/common/header-button/index.test.tsx +97 -0
- package/src/client/components/common/header-button/index.tsx +67 -0
- package/src/client/components/common/header-controls/index.test.tsx +17 -1
- package/src/client/components/common/header-controls/index.tsx +18 -8
- package/src/client/components/common/image-viewer/fullscreen.tsx +64 -0
- package/src/client/components/common/progress-bar/index.tsx +53 -0
- package/src/client/components/common/session-actions-menu/MenuItem.tsx +36 -0
- package/src/client/components/common/session-actions-menu/index.test.tsx +79 -0
- package/src/client/components/common/session-actions-menu/index.tsx +62 -69
- package/src/client/components/common/session-delete-modal/index.tsx +5 -0
- package/src/client/components/common/session-row/TimeCell.tsx +22 -6
- package/src/client/components/common/session-row/TrailingSlot.tsx +3 -3
- package/src/client/components/common/session-row/index.tsx +6 -3
- package/src/client/components/common/session-row/row-state.ts +18 -0
- package/src/client/components/common/session-row/session-row.test.tsx +24 -0
- package/src/client/components/common/session-row/time-cell.test.tsx +110 -0
- package/src/client/components/layout/ActivityBar.test.ts +10 -116
- package/src/client/components/layout/ActivityBar.tsx +138 -134
- package/src/client/components/layout/ActivityBarDrag.test.ts +334 -0
- package/src/client/components/layout/LeftActivityBar.test.ts +30 -5
- package/src/client/components/layout/LeftDock.tsx +19 -1
- package/src/client/components/layout/PanelButton.tsx +93 -0
- package/src/client/components/layout/{PanelVisibilityMenu.tsx → VisibilityMenu.tsx} +37 -18
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +30 -1
- package/src/client/components/layout/desktop-layout/PanelSuspense.tsx +30 -0
- package/src/client/components/layout/desktop-layout/ResizeHandle.tsx +24 -3
- package/src/client/components/layout/desktop-layout/TopNavbar.tsx +62 -6
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +28 -19
- package/src/client/components/layout/desktop-layout/index.tsx +7 -5
- package/src/client/components/layout/desktop-layout/resizer/index.tsx +17 -4
- package/src/client/components/layout/session-sidebar/CategoryItem.tsx +4 -2
- package/src/client/components/layout/session-sidebar/Footer.test.tsx +76 -0
- package/src/client/components/layout/session-sidebar/Footer.tsx +13 -9
- package/src/client/components/layout/session-sidebar/SessionItem.batch.test.ts +3 -0
- package/src/client/components/layout/session-sidebar/SessionItem.test.ts +21 -0
- package/src/client/components/layout/session-sidebar/SessionItem.tsx +7 -4
- package/src/client/components/layout/session-sidebar/SessionList.tsx +1 -1
- package/src/client/components/layout/session-sidebar/SessionsView.tsx +1 -0
- package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +3 -1
- package/src/client/components/layout/session-sidebar/modern/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/search-results.test.tsx +127 -0
- package/src/client/components/mobile/mobile-session-sidebar/Dialogs.tsx +1 -0
- package/src/client/components/mobile/mobile-session-sidebar/SessionRow.test.ts +31 -0
- package/src/client/components/mobile/mobile-session-sidebar/SessionRow.tsx +8 -4
- package/src/client/components/mobile/mobile-session-sidebar/use-dock.test.ts +41 -0
- package/src/client/components/mobile/mobile-session-sidebar/use-dock.ts +4 -1
- package/src/client/components/mobile/mobile-session-sidebar/use-drawer.ts +2 -0
- package/src/client/components/mobile/panel-chips.test.tsx +18 -11
- package/src/client/components/settings/categories/AppearanceSettings.tsx +3 -0
- package/src/client/components/settings/categories/HarnessSettings.tsx +3 -1
- package/src/client/components/settings/categories/NotificationSettings.test.tsx +56 -2
- package/src/client/components/settings/categories/NotificationSettings.tsx +46 -6
- package/src/client/components/settings/categories/appearance-settings/TrayIconSection.test.tsx +81 -0
- package/src/client/components/settings/categories/appearance-settings/TrayIconSection.tsx +118 -0
- package/src/client/components/settings/categories/harness-settings/HarnessCard.import.test.tsx +124 -0
- package/src/client/components/settings/categories/harness-settings/HarnessCard.tsx +21 -2
- package/src/client/components/settings/categories/harness-settings/HarnessImportControls.tsx +143 -0
- package/src/client/components/settings/categories/notification-settings/PermissionNotice.tsx +50 -0
- package/src/client/components/settings/categories/panel-plugins/GitFreshness.test.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/LeftDockSettings.test.tsx +107 -0
- package/src/client/components/settings/categories/panel-plugins/LeftDockSettings.tsx +49 -24
- package/src/client/components/settings/categories/panel-plugins/Placement.test.tsx +3 -0
- package/src/client/components/settings/categories/panel-plugins/PluginCard.test.tsx +4 -0
- package/src/client/components/settings/categories/panel-plugins/Section.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/Toolbar.tsx +6 -10
- package/src/client/components/settings/categories/plugin-settings/DetailPane.tsx +45 -38
- package/src/client/components/settings/categories/plugin-settings/MarketplacePane.tsx +20 -18
- package/src/client/components/settings/categories/plugin-settings/PaneHeader.tsx +40 -0
- package/src/client/components/settings/categories/plugin-settings/SidebarList.tsx +6 -9
- package/src/client/components/settings/categories/usage-settings/usage-icons.test.tsx +1 -25
- package/src/client/components/workspace/chat-timeline/GeneratingIndicator.test.ts +9 -1
- package/src/client/components/workspace/chat-timeline/MessageItem.gutter.test.ts +4 -0
- package/src/client/components/workspace/chat-timeline/chat-input/expansion.test.ts +22 -2
- package/src/client/components/workspace/chat-timeline/chat-input/expansion.ts +15 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/wait-parts.tsx +6 -11
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolScreenshots.test.tsx +9 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolScreenshots.tsx +9 -18
- package/src/client/components/workspace/context-panel/index.tsx +18 -19
- package/src/client/components/workspace/editor/SplitColumn.tsx +5 -1
- package/src/client/components/workspace/file-explorer/Toolbar.tsx +40 -28
- package/src/client/components/workspace/git-panel/RepoHeader.tsx +27 -25
- package/src/client/components/workspace/git-panel/commit-modal/CommitActions.tsx +28 -77
- package/src/client/components/workspace/git-panel/commit-modal/CommitDiffViewer.tsx +15 -15
- package/src/client/components/workspace/git-panel/commit-modal/CommitRow.test.ts +79 -5
- package/src/client/components/workspace/git-panel/commit-modal/CommitRow.tsx +66 -45
- package/src/client/components/workspace/git-panel/commit-modal/GraphCanvas.tsx +1 -7
- package/src/client/components/workspace/git-panel/commit-modal/Header.test.tsx +90 -0
- package/src/client/components/workspace/git-panel/commit-modal/Header.tsx +28 -18
- package/src/client/components/workspace/git-panel/commit-modal/index.tsx +24 -7
- package/src/client/components/workspace/git-panel/commit-modal.test.ts +16 -0
- package/src/client/components/workspace/panel-header/index.test.tsx +80 -0
- package/src/client/components/workspace/panel-header/index.tsx +46 -0
- package/src/client/components/workspace/plan-panel/index.tsx +24 -22
- package/src/client/components/workspace/plugin-panel/catalog.tsx +21 -13
- package/src/client/components/workspace/search-panel/Body.tsx +42 -37
- package/src/client/components/workspace/terminal-panel/Header.tsx +37 -38
- package/src/client/components/workspace/terminal-panel/fonts.test.ts +40 -0
- package/src/client/components/workspace/terminal-panel/fonts.ts +27 -0
- package/src/client/components/workspace/terminal-panel/mount.ts +2 -5
- package/src/client/components/workspace/todo-panel/index.tsx +28 -26
- package/src/client/components/workspace/usage-panel/index.test.tsx +91 -0
- package/src/client/components/workspace/usage-panel/index.tsx +31 -55
- package/src/client/components/workspace/wiki-panel/index.tsx +47 -46
- package/src/client/data/context-data/index.ts +16 -0
- package/src/client/data/settings/omp-schema.json +201 -151
- package/src/client/hooks/chat/composer/auto-grow.ts +13 -3
- package/src/client/hooks/chat/omp/session-sidebar-controller.folder-open.test.ts +140 -0
- package/src/client/hooks/chat/omp/session-sidebar-controller.test.ts +33 -203
- package/src/client/hooks/chat/omp/session-sidebar-controller.ts +8 -6
- package/src/client/hooks/chat/timeline/jump-landing.ts +27 -9
- package/src/client/hooks/chat/timeline/jump-rail.ts +1 -0
- package/src/client/hooks/chat/timeline/reader-input.ts +39 -0
- package/src/client/hooks/chat/timeline/restore-history.ts +55 -0
- package/src/client/hooks/chat/timeline/row-window.test.ts +36 -3
- package/src/client/hooks/chat/timeline/row-window.ts +12 -3
- package/src/client/hooks/chat/timeline/scroll-geometry.ts +95 -0
- package/src/client/hooks/chat/timeline/scroll-probe.test-util.ts +17 -4
- package/src/client/hooks/chat/timeline/scroll.test.ts +53 -0
- package/src/client/hooks/chat/timeline/scroll.ts +30 -70
- package/src/client/hooks/chat/timeline/session-load.test.ts +25 -0
- package/src/client/hooks/chat/timeline/session-load.ts +8 -1
- package/src/client/hooks/chat/timeline/session-shapes.ts +3 -0
- package/src/client/hooks/models/use-harnesses-controller.ts +8 -1
- package/src/client/hooks/models/use-harnesses.ts +68 -1
- package/src/client/hooks/ui/navbar-controls.test.ts +50 -0
- package/src/client/hooks/ui/navbar-controls.ts +118 -0
- package/src/client/hooks/ui/pointer-hover.test.ts +94 -0
- package/src/client/hooks/ui/pointer-hover.ts +62 -0
- package/src/client/hooks/ui/ui-sounds.test.ts +4 -0
- package/src/client/hooks/workspace/batch-archive.ts +19 -3
- package/src/client/hooks/workspace/batch-delete-run.ts +15 -3
- package/src/client/hooks/workspace/batch-delete.test.ts +112 -0
- package/src/client/hooks/workspace/batch-delete.ts +51 -5
- package/src/client/hooks/workspace/left-dock.ts +14 -0
- package/src/client/hooks/workspace/panel-drop-target.test.tsx +119 -0
- package/src/client/hooks/workspace/panel-drop-target.ts +76 -0
- package/src/client/hooks/workspace/panel-menu-items.ts +57 -0
- package/src/client/hooks/workspace/panel-reorder.ts +5 -2
- package/src/client/lib/browser/download.ts +12 -1
- package/src/client/lib/notifications/active.ts +26 -0
- package/src/client/lib/notifications/native-banner-sound.test.ts +34 -1
- package/src/client/lib/notifications/native-banner-sound.ts +7 -0
- package/src/client/lib/notifications/os.test.ts +53 -0
- package/src/client/lib/notifications/os.ts +129 -5
- package/src/client/lib/session-export.test.ts +72 -0
- package/src/client/lib/session-export.ts +60 -0
- package/src/client/lib/ui/control-plate.test.ts +29 -0
- package/src/client/lib/ui/control-plate.ts +42 -0
- package/src/client/main.tsx +7 -0
- package/src/client/tailwind.css +18 -7
- package/src/server/lib/changes/attach.test.ts +3 -1
- package/src/server/lib/changes/capture-bash.server.ts +15 -1
- package/src/server/lib/changes/capture.server.ts +2 -0
- package/src/server/lib/changes/capture.test.ts +40 -0
- package/src/server/lib/changes/journal-read.server.ts +204 -0
- package/src/server/lib/changes/reader.server.ts +28 -184
- package/src/server/lib/changes/reader.test.ts +40 -0
- package/src/server/lib/changes/scan.server.ts +86 -12
- package/src/server/lib/changes/scan.test.ts +56 -0
- package/src/server/lib/changes/sessions.server.ts +15 -0
- package/src/server/lib/changes/temp-path.test.ts +45 -0
- package/src/server/lib/changes/temp-path.ts +102 -0
- package/src/server/lib/db/schema.ts +9 -0
- package/src/server/lib/harness/acp/client.ts +12 -6
- package/src/server/lib/harness/acp/frames-replay.test.ts +55 -0
- package/src/server/lib/harness/acp/frames.ts +45 -3
- package/src/server/lib/harness/acp/protocol.ts +29 -0
- package/src/server/lib/harness/acp/replay-transcript.test.ts +47 -0
- package/src/server/lib/harness/acp/replay-transcript.ts +55 -0
- package/src/server/lib/harness/acp/replay.ts +78 -0
- package/src/server/lib/harness/acp/session-config.ts +36 -1
- package/src/server/lib/harness/acp/session-handshake.ts +32 -8
- package/src/server/lib/harness/acp/session-observers.test.ts +2 -2
- package/src/server/lib/harness/acp/session-options.ts +9 -0
- package/src/server/lib/harness/acp/session-start.ts +62 -0
- package/src/server/lib/harness/acp/session.test-util.ts +2 -0
- package/src/server/lib/harness/acp/session.ts +33 -37
- package/src/server/lib/harness/acp/v2.test.ts +44 -0
- package/src/server/lib/harness/acp/v2.ts +38 -0
- package/src/server/lib/harness/acp/verbs.test.ts +37 -1
- package/src/server/lib/harness/acp/verbs.ts +52 -6
- package/src/server/lib/harness/auto-import.server.test.ts +92 -0
- package/src/server/lib/harness/auto-import.server.ts +209 -0
- package/src/server/lib/harness/auto-probe.server.ts +9 -3
- package/src/server/lib/harness/codex/transcript.server.test.ts +67 -0
- package/src/server/lib/harness/codex/transcript.server.ts +222 -0
- package/src/server/lib/harness/schema.server.ts +15 -7
- package/src/server/lib/harness/session-delete.server.test.ts +156 -0
- package/src/server/lib/harness/session-delete.server.ts +198 -0
- package/src/server/lib/harness/session-import.server.ts +177 -0
- package/src/server/lib/harness/session-store.server.test.ts +85 -0
- package/src/server/lib/harness/session-store.server.ts +70 -3
- package/src/server/lib/harness/session-transcript.server.test.ts +183 -0
- package/src/server/lib/harness/session-transcript.server.ts +301 -0
- package/src/server/lib/harness/session.ts +4 -2
- package/src/server/lib/harness/spawn.server.ts +9 -0
- package/src/server/lib/lifecycle/after-listen.ts +11 -5
- package/src/server/lib/model-roles/mock.server.test.ts +35 -0
- package/src/server/lib/model-roles/mock.server.ts +1 -1
- package/src/server/lib/omp/rpc/frame-fold-frames.test.ts +15 -4
- package/src/server/lib/omp/session/delete-flow.server.ts +62 -9
- package/src/server/lib/omp/session/delete.server.ts +6 -0
- package/src/server/lib/omp/session/sidebar-data.harness.test.ts +86 -1
- package/src/server/lib/omp/session/sidebar-data.server.ts +41 -70
- package/src/server/lib/omp/session/sidebar-status.server.ts +82 -0
- package/src/server/lib/omp/session/telemetry/compute.ts +18 -0
- package/src/server/lib/omp/session/telemetry.test.ts +21 -0
- package/src/server/lib/realtime/topics/catalog.server.ts +2 -1
- package/src/server/lib/realtime/topics.server.ts +2 -1
- package/src/server/lib/sessions/deleted-sessions.server.test.ts +49 -0
- package/src/server/lib/sessions/deleted-sessions.server.ts +45 -0
- package/src/server/lib/terminal/attach-replay.test.ts +80 -17
- package/src/server/lib/tray/config.ts +19 -4
- package/src/server/lib/tray/host/darwin.js +6 -1
- package/src/server/lib/tray/host/linux.js +2 -1
- package/src/server/lib/tray/host/win32.ps1 +7 -1
- package/src/server/lib/tray/runtime.server.ts +81 -3
- package/src/server/lib/tray/tray.test.ts +20 -0
- package/src/server/plugins/static.test.ts +23 -1
- package/src/server/plugins/static.ts +24 -1
- package/src/server/routes/agent/command.ts +4 -0
- package/src/server/routes/agent/harness-command.ts +77 -3
- package/src/server/routes/agent/restore.ts +50 -0
- package/src/server/routes/chat/imported.ts +32 -0
- package/src/server/routes/chat/session.ts +33 -21
- package/src/server/routes/chat/window.ts +25 -0
- package/src/server/routes/folders/batch-delete.ts +3 -4
- package/src/server/routes/harness/root.ts +17 -1
- package/src/server/routes/harness/session-actions.ts +60 -0
- package/src/server/routes/harness/session-import.test.ts +81 -0
- package/src/server/routes/sessions/batch-archive.ts +5 -4
- package/src/server/routes/sessions/batch-delete.ts +23 -12
- package/src/server/routes/sessions/delete-acp.test.ts +70 -0
- package/src/server/routes/sessions/export.test.ts +83 -0
- package/src/server/routes/sessions/export.ts +59 -0
- package/src/server/routes/sessions/index.ts +4 -0
- package/src/server/routes/sessions/list.ts +5 -0
- package/src/server/routes/settings/root.ts +13 -0
- package/src/shared/lib/chat/export-markdown.test.ts +110 -0
- package/src/shared/lib/chat/export-markdown.ts +141 -0
- package/src/shared/lib/omp/config/schema-releases.test.ts +193 -0
- package/src/shared/lib/omp/config/schema.test.ts +0 -117
- package/src/shared/lib/realtime/connection.ts +4 -0
- package/src/shared/lib/sessions/batch-limits.test.ts +51 -0
- package/src/shared/lib/sessions/batch-limits.ts +42 -0
- package/src/shared/lib/settings/defaults.ts +2 -0
- package/src/shared/lib/theme/tray-icon-style.test.ts +43 -0
- package/src/shared/lib/theme/tray-icon-style.ts +69 -0
- package/src/shared/lib/workspace/left-dock-width.ts +23 -3
- package/src/shared/lib/workspace/left-dock.test.ts +38 -10
- package/src/shared/lib/workspace/left-dock.ts +39 -14
- package/src/shared/lib/workspace/panel-drag.test.ts +52 -0
- package/src/shared/lib/workspace/panel-drag.ts +34 -0
- package/src/shared/lib/workspace/panel-open.test.ts +7 -1
- package/src/shared/lib/workspace/session-state/store.ts +0 -1
- package/src/shared/types/context.ts +20 -0
- package/src/shared/types/harness.ts +26 -0
- package/src/shared/types/settings/state.ts +9 -0
- package/src/test-support/fake-acp-delete.ts +63 -0
- package/src/test-support/sidebar-controller-harness.test-util.ts +121 -0
- package/dist/client/static/js/DrawioView-1ts9y0yk.js +0 -5
- package/dist/client/static/js/ImageView-w2hyp129.js +0 -1
- package/dist/client/static/js/LayoutWrapper-pdvfkncm.js +0 -2
- package/dist/client/static/js/Modal-2sx1tgqr.js +0 -38
- package/dist/client/static/js/SessionsView-a8921ysr.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-r8sz34h3.js +0 -1
- package/dist/client/static/js/architectureDiagram-NJMV4G6O-z3n19xwk.js +0 -36
- package/dist/client/static/js/bash-b3rwyg5p.js +0 -1
- package/dist/client/static/js/c-jkdstn33.js +0 -1
- package/dist/client/static/js/cpp-9d3xdpe3.js +0 -1
- package/dist/client/static/js/css-r3wja1ze.js +0 -1
- package/dist/client/static/js/css-sebxkh5f.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-w2f2vev7.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-k5n61zzh.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-zmz4grtx.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-2gf053bx.js +0 -1
- package/dist/client/static/js/graphql-p4cskvad.js +0 -1
- package/dist/client/static/js/html-f26r6vv5.js +0 -1
- package/dist/client/static/js/index-1c7294vk.js +0 -1
- package/dist/client/static/js/index-2mx9ej4k.css +0 -1
- package/dist/client/static/js/index-2xb54jt3.js +0 -4
- package/dist/client/static/js/index-6d5qj0kb.js +0 -1
- package/dist/client/static/js/index-6k2x281j.js +0 -12
- package/dist/client/static/js/index-6rt7gs1j.js +0 -1
- package/dist/client/static/js/index-737w2mqf.js +0 -1
- package/dist/client/static/js/index-a5ptb956.js +0 -3
- package/dist/client/static/js/index-aa6qdgmv.js +0 -1
- package/dist/client/static/js/index-arvqarv3.js +0 -7
- package/dist/client/static/js/index-bgcp21ed.js +0 -1
- package/dist/client/static/js/index-d8kjsgpt.js +0 -474
- package/dist/client/static/js/index-enxfdvdq.js +0 -1
- package/dist/client/static/js/index-hp8kfk9z.js +0 -1
- package/dist/client/static/js/index-r83kr4s5.js +0 -2
- package/dist/client/static/js/index-rtd9frp1.js +0 -2
- package/dist/client/static/js/index-s910y31q.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-3tr0y3s6.js +0 -1
- package/dist/client/static/js/ini-cg0a5wm3.js +0 -1
- package/dist/client/static/js/java-vcck089n.js +0 -1
- package/dist/client/static/js/javascript-nyf39d5r.js +0 -1
- package/dist/client/static/js/json-j5q8nt57.js +0 -1
- package/dist/client/static/js/jsx-ht9zyzwa.js +0 -1
- package/dist/client/static/js/lua-86fjqj8v.js +0 -1
- package/dist/client/static/js/markdown-gwmsh53r.js +0 -1
- package/dist/client/static/js/one-dark-pro-kckm8epj.js +0 -1
- package/dist/client/static/js/one-light-0v7rg9a7.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-xbsyjzrh.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-j2tpz0cs.js +0 -1
- package/dist/client/static/js/pieDiagram-5QR66LMP-nz6n95d6.js +0 -39
- package/dist/client/static/js/properties-mzvvbqg5.js +0 -1
- package/dist/client/static/js/python-3w64wsyd.js +0 -1
- package/dist/client/static/js/r-32re2zwb.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-m3tsyfv0.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-5p202a4q.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-hj0y9tgn.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-8c5dct8f.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-3tx8z65q.js +0 -1
- package/dist/client/static/js/sql-0e9mnrda.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-56rk9kxv.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-mf0rb2yv.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-0x5gf06b.js +0 -1
- package/dist/client/static/js/tsx-nm94hed6.js +0 -1
- package/dist/client/static/js/typescript-5nmrzgkj.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-x7ej8dms.js +0 -1
- package/dist/client/static/js/xml-3dd1pter.js +0 -1
- package/dist/client/static/js/yaml-yssayv8a.js +0 -1
- package/src/client/components/workspace/usage-panel/ProviderSelect.tsx +0 -229
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{u,e}from"./index-
|
|
2
|
-
`),c=o?(i,n,t)=>{s(
|
|
1
|
+
import{u,e}from"./index-4c2zcvem.js";import{_c,ug,sf,Sc}from"./index-kkfbd1db.js";function w({content:d,path:l,onChange:s}){let r=u(()=>ug(d,l),[d,l]),o=s!==void 0&&!r.truncated,a=d.endsWith(`
|
|
2
|
+
`),c=o?(i,n,t)=>{s(sf(r.header,Sc(r.rows,i,n,t),r.delimiter,a))}:void 0,h=o?(i,n)=>{let t=r.header.slice();while(t.length<=i)t.push("");t[i]=n,s(sf(t,r.rows,r.delimiter,a))}:void 0;return e(_c,{header:r.header,rows:r.rows,truncated:r.truncated,readOnlyNote:r.truncated?"This file is too large to edit in the grid — use Show source.":o?"Paste is not supported — double-click a cell to edit it.":"This grid is read-only — use Show source to edit the cells.",onEditCell:c,onEditHeader:h})}export{w as CsvGrid};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u,e,m,
|
|
1
|
+
import{u,e,m,Fp,Dr,ad}from"./index-4c2zcvem.js";import{dn,Cn,sg}from"./index-t6gznaxm.js";var wr=Cn(function(gr,Zt){(function(et){if(typeof gr==="object"&&typeof Zt<"u")Zt.exports=et();else if(typeof define==="function"&&define.amd)define([],et);else{var ft;if(typeof window<"u")ft=window;else if(typeof global<"u")ft=global;else if(typeof self<"u")ft=self;else ft=this;ft.mammoth=et()}})(function(){var et,ft,Yt;return function X(ce,L,z){function I(c,o){if(!L[c]){if(!ce[c]){var i=sg;if(!o&&i)return i(c,!0);if(p)return p(c,!0);var t=Error("Cannot find module '"+c+"'");throw t.code="MODULE_NOT_FOUND",t}var l=L[c]={exports:{}};ce[c][0].call(l.exports,function(g){var _=ce[c][1][g];return I(_?_:g)},l,l.exports,X,ce,L,z)}return L[c].exports}var p=sg;for(var k=0;k<z.length;k++)I(z[k]);return I}({1:[function(X,ce,L){var z=X("../../lib/promises");L.Files=I;function I(){function p(k){return z.reject(Error("could not open external image: '"+k+`'
|
|
2
2
|
cannot open linked files from a web browser`))}return{read:p}}},{"../../lib/promises":23}],2:[function(X,ce,L){var z=X("../lib/promises"),I=X("../lib/zipfile");L.openZip=p;function p(k){if(k.arrayBuffer)return z.resolve(I.openArrayBuffer(k.arrayBuffer));else return z.reject(Error("Could not find file in options"))}},{"../lib/promises":23,"../lib/zipfile":40}],3:[function(X,ce,L){var z=X("underscore"),I=X("./promises"),p=X("./documents"),k=X("./styles/html-paths"),c=X("./results"),o=X("./images"),i=X("./html"),t=X("./writers");L.DocumentConverter=l;function l(n){return{convertToHtml:function(v){var a=z.indexBy(v.type===p.types.document?v.comments:[],"commentId"),E=new g(n,a);return E.convertToHtml(v)}}}function g(n,v){var a=1,E=[],F=[];n=z.extend({ignoreEmptyParagraphs:!0},n);var A=n.idPrefix===void 0?"":n.idPrefix,W=n.ignoreEmptyParagraphs,S=k.topLevelElement("p"),P=n.styleMap||[];function O(d){var q=[],Y=ee(d,q,Object.create(null)),j=[];T(Y,function(r){if(r.type==="deferred")j.push(r)});var f=Object.create(null);return I.forEachSeries(j,function(r){return r.value().then(function(s){f[r.id]=s})}).then(function(){function r(N){return h(N,function(M){if(M.type==="deferred")return f[M.id];else if(M.children)return[z.extend({},M,{children:r(M.children)})];else return[M]})}var s=t.writer({prettyPrint:n.prettyPrint,outputFormat:n.outputFormat});return i.write(s,i.simplify(r(Y))),new c.Result(s.asString(),q)})}function H(d,q,Y){return h(d,function(j){return ee(j,q,Y)})}function ee(d,q,Y){if(!Y)throw Error("context not set");var j=Ae[d.type];if(j)return j(d,q,Y);else return[]}function U(d,q,Y){return J(d,q).wrap(function(){var j=H(d.children,q,Y);if(W)return j;else return[i.forceWrite].concat(j)})}function J(d,q){var Y=se(d);if(Y)return Y.to;else{if(d.styleId)q.push(y("paragraph",d));return S}}function D(d,q,Y){var j=function(){return H(d.children,q,Y)},f=[];if(d.highlight!==null){var r=ye({type:"highlight",color:d.highlight});if(r)f.push(r)}if(d.isSmallCaps)f.push(te("smallCaps"));if(d.isAllCaps)f.push(te("allCaps"));if(d.isStrikethrough)f.push(te("strikethrough","s"));if(d.isUnderline)f.push(te("underline"));if(d.verticalAlignment===p.verticalAlignment.subscript)f.push(k.element("sub",{},{fresh:!1}));if(d.verticalAlignment===p.verticalAlignment.superscript)f.push(k.element("sup",{},{fresh:!1}));if(d.isItalic)f.push(te("italic","em"));if(d.isBold)f.push(te("bold","strong"));var s=k.empty,N=se(d);if(N)s=N.to;else if(d.styleId)q.push(y("run",d));return f.push(s),f.forEach(function(M){j=M.wrap.bind(M,j)}),j()}function te(d,q){var Y=ye({type:d});if(Y)return Y;else if(q)return k.element(q,{},{fresh:!1});else return k.empty}function ye(d,q){var Y=se(d);return Y?Y.to:q}function se(d){for(var q=0;q<P.length;q++)if(P[q].from.matches(d))return P[q]}function ve(d){return function(q,Y){return I.try(function(){return d(q,Y)}).catch(function(j){return Y.push(c.error(j)),[]})}}function le(d){return Q(d.noteType,d.noteId)}function be(d){return ne(d.noteType,d.noteId)}function Q(d,q){return Te(d+"-"+q)}function ne(d,q){return Te(d+"-ref-"+q)}function Te(d){return A+d}var pe=k.elements([k.element("table",{},{fresh:!0})]);function de(d,q,Y){return ye(d,pe).wrap(function(){return Pe(d,q,Y)})}function Pe(d,q,Y){var j=z.findIndex(d.children,function(N){return!N.type===p.types.tableRow||!N.isHeader});if(j===-1)j=d.children.length;var f;if(j===0)f=H(d.children,q,z.extend({},Y,{isTableHeader:!1}));else{var r=H(d.children.slice(0,j),q,z.extend({},Y,{isTableHeader:!0})),s=H(d.children.slice(j),q,z.extend({},Y,{isTableHeader:!1}));f=[i.freshElement("thead",{},r),i.freshElement("tbody",{},s)]}return[i.forceWrite].concat(f)}function Be(d,q,Y){var j=H(d.children,q,Y);return[i.freshElement("tr",{},[i.forceWrite].concat(j))]}function Ie(d,q,Y){var j=Y.isTableHeader?"th":"td",f=H(d.children,q,Y),r={};if(d.colSpan!==1)r.colspan=d.colSpan.toString();if(d.rowSpan!==1)r.rowspan=d.rowSpan.toString();return[i.freshElement(j,r,[i.forceWrite].concat(f))]}function ke(d,q,Y){return ye(d,k.ignore).wrap(function(){var j=v[d.commentId],f=F.length+1,r="["+x(j)+f+"]";return F.push({label:r,comment:j}),[i.freshElement("a",{href:"#"+Q("comment",d.commentId),id:ne("comment",d.commentId)},[i.text(r)])]})}function Ne(d,q,Y){var{label:j,comment:f}=d,r=H(f.body,q,Y).concat([i.nonFreshElement("p",{},[i.text(" "),i.freshElement("a",{href:"#"+ne("comment",f.commentId)},[i.text("↑")])])]);return[i.freshElement("dt",{id:Q("comment",f.commentId)},[i.text("Comment "+j)]),i.freshElement("dd",{},r)]}function Re(d,q,Y){return We(d).wrap(function(){return[]})}function We(d){var q=se(d);if(q)return q.to;else if(d.breakType==="line")return k.topLevelElement("br");else return k.empty}var Ae={document:function(d,q,Y){var j=H(d.children,q,Y),f=E.map(function(s){return d.notes.resolve(s)}),r=H(f,q,Y);return j.concat([i.freshElement("ol",{},r),i.freshElement("dl",{},h(F,function(s){return Ne(s,q,Y)}))])},paragraph:U,run:D,text:function(d,q,Y){return[i.text(d.value)]},tab:function(d,q,Y){return[i.text("\t")]},hyperlink:function(d,q,Y){var j=d.anchor?"#"+Te(d.anchor):d.href,f={href:j};if(d.targetFrame!=null)f.target=d.targetFrame;var r=H(d.children,q,Y);return[i.nonFreshElement("a",f,r)]},checkbox:function(d){var q={type:"checkbox"};if(d.checked)q.checked="checked";return[i.freshElement("input",q)]},bookmarkStart:function(d,q,Y){var j=i.freshElement("a",{id:Te(d.name)},[i.forceWrite]);return[j]},noteReference:function(d,q,Y){E.push(d);var j=i.freshElement("a",{href:"#"+le(d),id:be(d)},[i.text("["+a+++"]")]);return[i.freshElement("sup",{},[j])]},note:function(d,q,Y){var j=H(d.body,q,Y),f=i.elementWithTag(k.element("p",{},{fresh:!1}),[i.text(" "),i.freshElement("a",{href:"#"+be(d)},[i.text("↑")])]),r=j.concat([f]);return i.freshElement("li",{id:le(d)},r)},commentReference:ke,comment:Ne,image:w(ve(n.convertImage||o.dataUri)),table:de,tableRow:Be,tableCell:Ie,break:Re};return{convertToHtml:O}}var _=1;function w(n){return function(v,a,E){return[{type:"deferred",id:_++,value:function(){return n(v,a,E)}}]}}function y(n,v){return c.warning("Unrecognised "+n+" style: '"+v.styleName+"' (Style ID: "+v.styleId+")")}function h(n,v){return z.flatten(n.map(v),!0)}function T(n,v){n.forEach(function(a){if(v(a),a.children)T(a.children,v)})}var x=L.commentAuthorLabel=function(v){return v.authorInitials||""}},{"./documents":4,"./html":18,"./images":20,"./promises":23,"./results":25,"./styles/html-paths":28,"./writers":33,underscore:67}],4:[function(X,ce,L){(function(z){var I=X("underscore"),p=L.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",checkbox:"checkbox",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};function k(S,P){return P=P||{},{type:p.document,children:S,notes:P.notes||new y({}),comments:P.comments||[]}}function c(S,P){P=P||{};var O=P.indent||{};return{type:p.paragraph,children:S,styleId:P.styleId||null,styleName:P.styleName||null,numbering:P.numbering||null,alignment:P.alignment||null,indent:{start:O.start||null,end:O.end||null,firstLine:O.firstLine||null,hanging:O.hanging||null}}}function o(S,P){return P=P||{},{type:p.run,children:S,styleId:P.styleId||null,styleName:P.styleName||null,isBold:!!P.isBold,isUnderline:!!P.isUnderline,isItalic:!!P.isItalic,isStrikethrough:!!P.isStrikethrough,isAllCaps:!!P.isAllCaps,isSmallCaps:!!P.isSmallCaps,verticalAlignment:P.verticalAlignment||i.baseline,font:P.font||null,fontSize:P.fontSize||null,highlight:P.highlight||null}}var i={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function t(S){return{type:p.text,value:S}}function l(){return{type:p.tab}}function g(S){return{type:p.checkbox,checked:S.checked}}function _(S,P){return{type:p.hyperlink,children:S,href:P.href,anchor:P.anchor,targetFrame:P.targetFrame}}function w(S){return{type:p.noteReference,noteType:S.noteType,noteId:S.noteId}}function y(S){this._notes=I.indexBy(S,function(P){return n(P.noteType,P.noteId)})}y.prototype.resolve=function(S){return this.findNoteByKey(n(S.noteType,S.noteId))},y.prototype.findNoteByKey=function(S){return this._notes[S]||null};function h(S){return{type:p.note,noteType:S.noteType,noteId:S.noteId,body:S.body}}function T(S){return{type:p.commentReference,commentId:S.commentId}}function x(S){return{type:p.comment,commentId:S.commentId,body:S.body,authorName:S.authorName,authorInitials:S.authorInitials}}function n(S,P){return S+"-"+P}function v(S){return{type:p.image,read:function(P){if(P)return S.readImage(P);else return S.readImage().then(function(O){return z.from(O)})},readAsArrayBuffer:function(){return S.readImage()},readAsBase64String:function(){return S.readImage("base64")},readAsBuffer:function(){return S.readImage().then(function(P){return z.from(P)})},altText:S.altText,contentType:S.contentType}}function a(S,P){return P=P||{},{type:p.table,children:S,styleId:P.styleId||null,styleName:P.styleName||null}}function E(S,P){return P=P||{},{type:p.tableRow,children:S,isHeader:P.isHeader||!1}}function F(S,P){return P=P||{},{type:p.tableCell,children:S,colSpan:P.colSpan==null?1:P.colSpan,rowSpan:P.rowSpan==null?1:P.rowSpan}}function A(S){return{type:p.break,breakType:S}}function W(S){return{type:p.bookmarkStart,name:S.name}}L.document=L.Document=k,L.paragraph=L.Paragraph=c,L.run=L.Run=o,L.text=L.Text=t,L.tab=L.Tab=l,L.checkbox=L.Checkbox=g,L.Hyperlink=_,L.noteReference=L.NoteReference=w,L.Notes=y,L.Note=h,L.commentReference=T,L.comment=x,L.Image=v,L.Table=a,L.TableRow=E,L.TableCell=F,L.lineBreak=A("line"),L.pageBreak=A("page"),L.columnBreak=A("column"),L.BookmarkStart=W,L.verticalAlignment=i}).call(this,X("buffer").Buffer)},{buffer:48,underscore:67}],5:[function(X,ce,L){L.createBodyReader=l,L._readNumberingProperties=_;var z=X("dingbat-to-unicode"),I=X("underscore"),p=X("../documents"),k=X("../results").Result,c=X("../results").warning,o=X("../xml"),i=X("../transforms"),t=X("./uris");function l(A){return{readXmlElement:function(W){return new g(A).readXmlElement(W)},readXmlElements:function(W){return new g(A).readXmlElements(W)}}}function g(A){var W=[],S=[],P=[],{relationships:O,contentTypes:H,docxFile:ee,files:U,numbering:J,styles:D}=A;function te(oe){var me=oe.map(ye);return a(me)}function ye(oe){if(oe.type==="element"){var me=j[oe.name];if(me)return me(oe);else if(!Object.prototype.hasOwnProperty.call(y,oe.name)){var xe=c("An unrecognised element was ignored: "+oe.name);return h([xe])}}return T()}function se(oe){return pe(oe).map(function(me){return{type:"paragraphProperties",styleId:me.styleId,styleName:me.name,alignment:oe.firstOrEmpty("w:jc").attributes["w:val"],numbering:_(me.styleId,oe.firstOrEmpty("w:numPr"),J),indent:ve(oe.firstOrEmpty("w:ind"))}})}function ve(oe){return{start:oe.attributes["w:start"]||oe.attributes["w:left"],end:oe.attributes["w:end"]||oe.attributes["w:right"],firstLine:oe.attributes["w:firstLine"],hanging:oe.attributes["w:hanging"]}}function le(oe){return de(oe).map(function(me){var xe=oe.firstOrEmpty("w:sz").attributes["w:val"],De=/^[0-9]+$/.test(xe)?parseInt(xe,10)/2:null;return{type:"runProperties",styleId:me.styleId,styleName:me.name,verticalAlignment:oe.firstOrEmpty("w:vertAlign").attributes["w:val"],font:oe.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:De,isBold:Q(oe.first("w:b")),isUnderline:be(oe.first("w:u")),isItalic:Q(oe.first("w:i")),isStrikethrough:Q(oe.first("w:strike")),isAllCaps:Q(oe.first("w:caps")),isSmallCaps:Q(oe.first("w:smallCaps")),highlight:Te(oe.firstOrEmpty("w:highlight").attributes["w:val"])}})}function be(oe){if(oe){var me=oe.attributes["w:val"];return me!==void 0&&me!=="false"&&me!=="0"&&me!=="none"}else return!1}function Q(oe){if(oe){var me=oe.attributes["w:val"];return me!=="false"&&me!=="0"}else return!1}function ne(oe){return oe!=="false"&&oe!=="0"}function Te(oe){if(!oe||oe==="none")return null;else return oe}function pe(oe){return Be(oe,"w:pStyle","Paragraph",D.findParagraphStyleById)}function de(oe){return Be(oe,"w:rStyle","Run",D.findCharacterStyleById)}function Pe(oe){return Be(oe,"w:tblStyle","Table",D.findTableStyleById)}function Be(oe,me,xe,De){var Me=[],Xe=oe.first(me),ze=null,Ve=null;if(Xe){if(ze=Xe.attributes["w:val"],ze){var Ge=De(ze);if(Ge)Ve=Ge.name;else Me.push(Qe(xe,ze))}}return n({styleId:ze,name:Ve},Me)}function Ie(oe){var me=oe.attributes["w:fldCharType"];if(me==="begin")W.push({type:"begin",fldChar:oe}),S=[];else if(me==="end"){if(W.length===0)return h([c("Ignoring complex field end character without corresponding start character")]);var xe=W.pop();if(xe.type==="begin")xe=Ne(xe);if(xe.type==="checkbox")return x(p.checkbox({checked:xe.checked}))}else if(me==="separate"){if(W.length===0)return h([c("Ignoring complex field separator character without corresponding start character")]);var De=W.pop(),Me=Ne(De);W.push(Me)}return T()}function ke(){var oe=I.last(W.filter(function(me){return me.type==="hyperlink"}));return oe?oe.options:null}function Ne(oe){return Re(S.join(""),oe.type==="begin"?oe.fldChar:o.emptyElement)}function Re(oe,me){var xe=/^\s*HYPERLINK\s+(\\l\s+)?(?:"(.*)"|([^\\]\S*))/.exec(oe);if(xe){var De=xe[2]===void 0?xe[3]:xe[2],Me=xe[1]===void 0?{href:De}:{anchor:De};return{type:"hyperlink",options:Me}}var Xe=/\s*FORMCHECKBOX\s*/.exec(oe);if(Xe){var ze=me.firstOrEmpty("w:ffData").firstOrEmpty("w:checkBox"),Ve=ze.first("w:checked"),Ge=Ve==null?Q(ze.first("w:default")):Q(Ve);return{type:"checkbox",checked:Ge}}return{type:"unknown"}}function We(oe){return S.push(oe.text()),T()}function Ae(oe){var me=oe.attributes["w:font"],xe=oe.attributes["w:char"],De=z.hex(me,xe);if(De==null&&/^F0..$/.test(xe))De=z.hex(me,xe.substring(2));if(De==null)return h([c("A w:sym element with an unsupported character was ignored: char "+xe+" in font "+me)]);else return x(new p.Text(De.string))}function d(oe){return function(me){var xe=me.attributes["w:id"];return x(new p.NoteReference({noteType:oe,noteId:xe}))}}function q(oe){return x(p.commentReference({commentId:oe.attributes["w:id"]}))}function Y(oe){return te(oe.children)}var j={"w:p":function(oe){var me=oe.firstOrEmpty("w:pPr"),xe=!!me.firstOrEmpty("w:rPr").first("w:del");if(xe)return oe.children.forEach(function(Me){P.push(Me)}),T();else{var De=oe.children;if(P.length>0)De=P.concat(De),P=[];return v.map(se(me),te(De),function(Me,Xe){return new p.Paragraph(Xe,Me)}).insertExtra()}},"w:r":function(oe){return v.map(le(oe.firstOrEmpty("w:rPr")),te(oe.children),function(me,xe){var De=ke();if(De!==null)xe=[new p.Hyperlink(xe,De)];return new p.Run(xe,me)})},"w:fldChar":Ie,"w:instrText":We,"w:t":function(oe){return x(new p.Text(oe.text()))},"w:tab":function(oe){return x(new p.Tab)},"w:noBreakHyphen":function(){return x(new p.Text("‑"))},"w:softHyphen":function(oe){return x(new p.Text(""))},"w:sym":Ae,"w:hyperlink":function(oe){var me=oe.attributes["r:id"],xe=oe.attributes["w:anchor"];return te(oe.children).map(function(De){function Me(ze){var Ve=oe.attributes["w:tgtFrame"]||null;return new p.Hyperlink(De,I.extend({targetFrame:Ve},ze))}if(me){var Xe=O.findTargetByRelationshipId(me);if(xe)Xe=t.replaceFragment(Xe,xe);return Me({href:Xe})}else if(xe)return Me({anchor:xe});else return De})},"w:tbl":f,"w:tr":s,"w:tc":N,"w:footnoteReference":d("footnote"),"w:endnoteReference":d("endnote"),"w:commentReference":q,"w:br":function(oe){var me=oe.attributes["w:type"];if(me==null||me==="textWrapping")return x(p.lineBreak);else if(me==="page")return x(p.pageBreak);else if(me==="column")return x(p.columnBreak);else return h([c("Unsupported break type: "+me)])},"w:bookmarkStart":function(oe){var me=oe.attributes["w:name"];if(me==="_GoBack")return T();else return x(new p.BookmarkStart({name:me}))},"mc:AlternateContent":function(oe){return Y(oe.firstOrEmpty("mc:Fallback"))},"w:sdt":function(oe){var me=te(oe.firstOrEmpty("w:sdtContent").children);return me.map(function(xe){var De=oe.firstOrEmpty("w:sdtPr").first("wordml:checkbox");if(De){var Me=De.first("wordml:checked"),Xe=!!Me&&ne(Me.attributes["wordml:val"]),ze=p.checkbox({checked:Xe}),Ve=!1,Ge=xe.map(i._elementsOfType(p.types.text,function($e){if($e.value.length>0&&!Ve)return Ve=!0,ze;else return $e}));if(Ve)return Ge;else return ze}else return xe})},"w:customXml":Y,"w:ins":Y,"w:moveFromRangeEnd":Y,"w:moveFromRangeStart":Y,"w:moveTo":Y,"w:moveToRangeEnd":Y,"w:moveToRangeStart":Y,"w:object":Y,"w:smartTag":Y,"w:drawing":Y,"w:pict":function(oe){return Y(oe).toExtra()},"v:roundrect":Y,"v:shape":Y,"v:textbox":Y,"w:txbxContent":Y,"wp:inline":ue,"wp:anchor":ue,"v:imagedata":Fe,"v:group":Y,"v:rect":Y};return{readXmlElement:ye,readXmlElements:te};function f(oe){var me=r(oe.firstOrEmpty("w:tblPr"));return te(oe.children).flatMap(K).flatMap(function(xe){return me.map(function(De){return p.Table(xe,De)})})}function r(oe){return Pe(oe).map(function(me){return{styleId:me.styleId,styleName:me.name}})}function s(oe){var me=oe.firstOrEmpty("w:trPr"),xe=!!me.first("w:del");if(xe)return T();var De=!!me.first("w:tblHeader");return te(oe.children).map(function(Me){return p.TableRow(Me,{isHeader:De})})}function N(oe){return te(oe.children).map(function(me){var xe=oe.firstOrEmpty("w:tcPr"),De=xe.firstOrEmpty("w:gridSpan").attributes["w:val"],Me=De?parseInt(De,10):1,Xe=p.TableCell(me,{colSpan:Me});return Xe._vMerge=M(xe),Xe})}function M(oe){var me=oe.first("w:vMerge");if(me){var xe=me.attributes["w:val"];return xe==="continue"||!xe}else return null}function K(oe){var me=I.any(oe,function(Me){return Me.type!==p.types.tableRow});if(me)return ie(oe),n(oe,[c("unexpected non-row element in table, cell merging may be incorrect")]);var xe=I.any(oe,function(Me){return I.any(Me.children,function(Xe){return Xe.type!==p.types.tableCell})});if(xe)return ie(oe),n(oe,[c("unexpected non-cell element in table row, cell merging may be incorrect")]);var De={};return oe.forEach(function(Me){var Xe=0;Me.children.forEach(function(ze){if(ze._vMerge&&De[Xe])De[Xe].rowSpan++;else De[Xe]=ze,ze._vMerge=!1;Xe+=ze.colSpan})}),oe.forEach(function(Me){Me.children=Me.children.filter(function(Xe){return!Xe._vMerge}),Me.children.forEach(function(Xe){delete Xe._vMerge})}),x(oe)}function ie(oe){oe.forEach(function(me){var xe=i.getDescendantsOfType(me,p.types.tableCell);xe.forEach(function(De){delete De._vMerge})})}function ue(oe){var me=oe.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return a(me.map(we.bind(null,oe)))}function we(oe,me){var xe=oe.firstOrEmpty("wp:docPr"),De=xe.attributes,Me=Se(De.descr)?De.title:De.descr,Xe=_e(me);if(Xe===null)return h([c("Could not find image file for a:blip element")]);return He(Xe,Me).map(function(ze){var Ve=xe.firstOrEmpty("a:hlinkClick"),Ge=Ve.attributes["r:id"];if(Ge){var $e=O.findTargetByRelationshipId(Ge);return new p.Hyperlink([ze],{href:$e})}else return ze})}function Se(oe){return oe==null||/^\s*$/.test(oe)}function _e(oe){var me=oe.attributes["r:embed"],xe=oe.attributes["r:link"];if(me)return Ze(me);else if(xe){var De=O.findTargetByRelationshipId(xe);return{path:De,read:U.read.bind(U,De)}}else return null}function Fe(oe){var me=oe.attributes["r:id"];if(me)return He(Ze(me),oe.attributes["o:title"]);else return h([c("A v:imagedata element without a relationship ID was ignored")])}function Ze(oe){var me=t.uriToZipEntryName("word",O.findTargetByRelationshipId(oe));return{path:me,read:ee.read.bind(ee,me)}}function He(oe,me){var xe=H.findContentType(oe.path),De=p.Image({readImage:oe.read,altText:me,contentType:xe}),Me=w[xe]?[]:c("Image of type "+xe+" is unlikely to display in web browsers");return n(De,Me)}function Qe(oe,me){return c(oe+" style with ID "+me+" was referenced but not defined in the document")}}function _(A,W,S){var P=W.firstOrEmpty("w:ilvl").attributes["w:val"],O=W.firstOrEmpty("w:numId").attributes["w:val"];if(P!==void 0&&O!==void 0)return S.findLevel(O,P);if(A!=null){var H=S.findLevelByParagraphStyleId(A);if(H!=null)return H}if(O!==void 0)return S.findLevel(O,"0");return null}var w={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},y={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:moveFrom":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function h(A){return new v(null,null,A)}function T(){return new v(null)}function x(A){return new v(A)}function n(A,W){return new v(A,null,W)}function v(A,W,S){this.value=A||[],this.extra=W||[],this._result=new k({element:this.value,extra:W},S),this.messages=this._result.messages}v.prototype.toExtra=function(){return new v(null,E(this.extra,this.value),this.messages)},v.prototype.insertExtra=function(){var A=this.extra;if(A&&A.length)return new v(E(this.value,A),null,this.messages);else return this},v.prototype.map=function(A){var W=this._result.map(function(S){return A(S.element)});return new v(W.value,this.extra,W.messages)},v.prototype.flatMap=function(A){var W=this._result.flatMap(function(S){return A(S.element)._result});return new v(W.value.element,E(this.extra,W.value.extra),W.messages)},v.map=function(A,W,S){return new v(S(A.value,W.value),E(A.extra,W.extra),A.messages.concat(W.messages))};function a(A){var W=k.combine(I.pluck(A,"_result"));return new v(I.flatten(I.pluck(W.value,"element")),I.filter(I.flatten(I.pluck(W.value,"extra")),F),W.messages)}function E(A,W){return I.flatten([A,W])}function F(A){return A}},{"../documents":4,"../results":25,"../transforms":30,"../xml":35,"./uris":16,"dingbat-to-unicode":50,underscore:67}],6:[function(X,ce,L){var z=X("../documents"),I=X("../results").Result;function p(k){function c(i){return I.combine(i.getElementsByTagName("w:comment").map(o))}function o(i){var t=i.attributes["w:id"];function l(g){return(i.attributes[g]||"").trim()||null}return k.readXmlElements(i.children).map(function(g){return z.comment({commentId:t,body:g,authorName:l("w:author"),authorInitials:l("w:initials")})})}return c}L.createCommentsReader=p},{"../documents":4,"../results":25}],7:[function(X,ce,L){L.readContentTypesFromXml=I;var z={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};L.defaultContentTypes=p({},{});function I(k){var c=Object.create(null),o=Object.create(null);return k.children.forEach(function(i){if(i.name==="content-types:Default")c[i.attributes.Extension]=i.attributes.ContentType;if(i.name==="content-types:Override"){var t=i.attributes.PartName;if(t.charAt(0)==="/")t=t.substring(1);o[t]=i.attributes.ContentType}}),p(o,c)}function p(k,c){return{findContentType:function(o){var i=k[o];if(i)return i;else{var t=o.split("."),l=t[t.length-1];if(Object.prototype.hasOwnProperty.call(c,l))return c[l];else{var g=z[l.toLowerCase()];if(g)return"image/"+g;else return null}}}}}},{}],8:[function(X,ce,L){L.DocumentXmlReader=p;var z=X("../documents"),I=X("../results").Result;function p(k){var c=k.bodyReader;function o(i){var t=i.first("w:body");if(t==null)throw Error("Could not find the body element: are you sure this is a docx file?");var l=c.readXmlElements(t.children).map(function(g){return new z.Document(g,{notes:k.notes,comments:k.comments})});return new I(l.value,l.messages)}return{convertXmlToDocument:o}}},{"../documents":4,"../results":25}],9:[function(X,ce,L){L.read=T,L._findPartPaths=x;var z=X("../promises"),I=X("../documents"),p=X("../results").Result,k=X("../zipfile"),c=X("./office-xml-reader").readXmlFromZipFile,o=X("./body-reader").createBodyReader,i=X("./document-xml-reader").DocumentXmlReader,t=X("./relationships-reader"),l=X("./content-types-reader"),g=X("./numbering-xml"),_=X("./styles-reader"),w=X("./notes-reader"),y=X("./comments-reader"),h=X("./files").Files;function T(O,H,ee){H=H||{},ee=ee||{};var U=new h({externalFileAccess:ee.externalFileAccess,relativeToFile:H.path});return z.props({contentTypes:A(O),partPaths:x(O),docxFile:O,files:U}).also(function(J){return{styles:S(O,J.partPaths.styles)}}).also(function(J){return{numbering:W(O,J.partPaths.numbering,J.styles)}}).also(function(J){return{footnotes:E(J.partPaths.footnotes,J,function(D,te){if(te)return w.createFootnotesReader(D)(te);else return new p([])}),endnotes:E(J.partPaths.endnotes,J,function(D,te){if(te)return w.createEndnotesReader(D)(te);else return new p([])}),comments:E(J.partPaths.comments,J,function(D,te){if(te)return y.createCommentsReader(D)(te);else return new p([])})}}).also(function(J){return{notes:J.footnotes.flatMap(function(D){return J.endnotes.map(function(te){return new I.Notes(D.concat(te))})})}}).then(function(J){return E(J.partPaths.mainDocument,J,function(D,te){return J.notes.flatMap(function(ye){return J.comments.flatMap(function(se){var ve=new i({bodyReader:D,notes:ye,comments:se});return ve.convertXmlToDocument(te)})})})})}function x(O){return P(O).then(function(H){var ee=n({docxFile:O,relationships:H,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!O.exists(ee))throw Error("Could not find main document part. Are you sure this is a valid .docx file?");return a({filename:F(ee),readElement:t.readRelationships,defaultValue:t.defaultValue})(O).then(function(U){function J(D){return n({docxFile:O,relationships:U,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+D,basePath:k.splitPath(ee).dirname,fallbackPath:"word/"+D+".xml"})}return{mainDocument:ee,comments:J("comments"),endnotes:J("endnotes"),footnotes:J("footnotes"),numbering:J("numbering"),styles:J("styles")}})})}function n(O){var{docxFile:H,relationships:ee,relationshipType:U,basePath:J,fallbackPath:D}=O,te=ee.findTargetsByType(U),ye=te.map(function(ve){return v(k.joinPath(J,ve),"/")}),se=ye.filter(function(ve){return H.exists(ve)});if(se.length===0)return D;else return se[0]}function v(O,H){if(O.substring(0,H.length)===H)return O.substring(H.length);else return O}function a(O){return function(H){return c(H,O.filename).then(function(ee){return ee?O.readElement(ee):O.defaultValue})}}function E(O,H,ee){var U=a({filename:F(O),readElement:t.readRelationships,defaultValue:t.defaultValue});return U(H.docxFile).then(function(J){var D=new o({relationships:J,contentTypes:H.contentTypes,docxFile:H.docxFile,numbering:H.numbering,styles:H.styles,files:H.files});return c(H.docxFile,O).then(function(te){return ee(D,te)})})}function F(O){var H=k.splitPath(O);return k.joinPath(H.dirname,"_rels",H.basename+".rels")}var A=a({filename:"[Content_Types].xml",readElement:l.readContentTypesFromXml,defaultValue:l.defaultContentTypes});function W(O,H,ee){return a({filename:H,readElement:function(U){return g.readNumberingXml(U,{styles:ee})},defaultValue:g.defaultNumbering})(O)}function S(O,H){return a({filename:H,readElement:_.readStylesXml,defaultValue:_.defaultStyles})(O)}var P=a({filename:"_rels/.rels",readElement:t.readRelationships,defaultValue:t.defaultValue})},{"../documents":4,"../promises":23,"../results":25,"../zipfile":40,"./body-reader":5,"./comments-reader":6,"./content-types-reader":7,"./document-xml-reader":8,"./files":1,"./notes-reader":10,"./numbering-xml":11,"./office-xml-reader":12,"./relationships-reader":13,"./styles-reader":15}],10:[function(X,ce,L){var z=X("../documents"),I=X("../results").Result;L.createFootnotesReader=p.bind(this,"footnote"),L.createEndnotesReader=p.bind(this,"endnote");function p(k,c){function o(l){return I.combine(l.getElementsByTagName("w:"+k).filter(i).map(t))}function i(l){var g=l.attributes["w:type"];return g!=="continuationSeparator"&&g!=="separator"}function t(l){var g=l.attributes["w:id"];return c.readXmlElements(l.children).map(function(_){return z.Note({noteType:k,noteId:g,body:_})})}return o}},{"../documents":4,"../results":25}],11:[function(X,ce,L){var z=X("underscore");L.readNumberingXml=p,L.Numbering=I,L.defaultNumbering=new I({},{});function I(i,t,l){var g=z.flatten(z.values(t).map(function(T){return z.values(T.levels)})),_=z.indexBy(g.filter(function(T){return T.paragraphStyleId!=null}),"paragraphStyleId");function w(T,x){return y(T,x,Object.create(null))}function y(T,x,n){if(n[T])return null;n[T]=!0;var v=i[T];if(!v)return null;var a=t[v.abstractNumId];if(!a)return null;else if(a.numStyleLink==null)return t[v.abstractNumId].levels[x];else{var E=l.findNumberingStyleById(a.numStyleLink);return y(E.numId,x,n)}}function h(T){return _[T]||null}return{findLevel:w,findLevelByParagraphStyleId:h}}function p(i,t){if(!t||!t.styles)throw Error("styles is missing");var l=k(i),g=o(i,l);return new I(g,l,t.styles)}function k(i){var t=Object.create(null);return i.getElementsByTagName("w:abstractNum").forEach(function(l){var g=l.attributes["w:abstractNumId"];t[g]=c(l)}),t}function c(i){var t=Object.create(null),l=null;if(i.getElementsByTagName("w:lvl").forEach(function(_){var w=_.attributes["w:ilvl"],y=_.firstOrEmpty("w:numFmt").attributes["w:val"],h=y!=="bullet",T=_.firstOrEmpty("w:pStyle").attributes["w:val"];if(w===void 0)l={isOrdered:h,level:"0",paragraphStyleId:T};else t[w]={isOrdered:h,level:w,paragraphStyleId:T}}),l!==null&&t[l.level]===void 0)t[l.level]=l;var g=i.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:t,numStyleLink:g}}function o(i){var t=Object.create(null);return i.getElementsByTagName("w:num").forEach(function(l){var g=l.attributes["w:numId"],_=l.first("w:abstractNumId").attributes["w:val"];t[g]={abstractNumId:_}}),t}},{underscore:67}],12:[function(X,ce,L){var z=X("underscore"),I=X("../promises"),p=X("../xml");L.read=c,L.readXmlFromZipFile=o;var k={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word","http://schemas.microsoft.com/office/word/2010/wordml":"wordml"};function c(l){return p.readString(l,k).then(function(g){return t(g)[0]})}function o(l,g){if(l.exists(g))return l.read(g,"utf-8").then(i).then(c);else return I.resolve(null)}function i(l){return l.replace(/^\uFEFF/g,"")}function t(l){if(l.type==="element")if(l.name==="mc:AlternateContent")return l.firstOrEmpty("mc:Fallback").children;else return l.children=z.flatten(l.children.map(t,!0)),[l];else return[l]}},{"../promises":23,"../xml":35,underscore:67}],13:[function(X,ce,L){L.readRelationships=z,L.defaultValue=new I([]),L.Relationships=I;function z(p){var k=[];return p.children.forEach(function(c){if(c.name==="relationships:Relationship"){var o={relationshipId:c.attributes.Id,target:c.attributes.Target,type:c.attributes.Type};k.push(o)}}),new I(k)}function I(p){var k=Object.create(null);p.forEach(function(o){k[o.relationshipId]=o.target});var c=Object.create(null);return p.forEach(function(o){if(!c[o.type])c[o.type]=[];c[o.type].push(o.target)}),{findTargetByRelationshipId:function(o){return k[o]},findTargetsByType:function(o){return c[o]||[]}}}},{}],14:[function(X,ce,L){var z=X("underscore"),I=X("../promises"),p=X("../xml");L.writeStyleMap=i,L.readStyleMap=_;var k="http://schemas.zwobble.org/mammoth/style-map",c="mammoth/style-map",o="/"+c;function i(w,y){return w.write(c,y),t(w).then(function(){return l(w)})}function t(w){var y="word/_rels/document.xml.rels",h="http://schemas.openxmlformats.org/package/2006/relationships",T="{"+h+"}Relationship";return w.read(y,"utf8").then(p.readString).then(function(x){var n=x.children;g(n,T,"Id",{Id:"rMammothStyleMap",Type:k,Target:o});var v={"":h};return w.write(y,p.writeString(x,v))})}function l(w){var y="[Content_Types].xml",h="http://schemas.openxmlformats.org/package/2006/content-types",T="{"+h+"}Override";return w.read(y,"utf8").then(p.readString).then(function(x){var n=x.children;g(n,T,"PartName",{PartName:o,ContentType:"text/prs.mammoth.style-map"});var v={"":h};return w.write(y,p.writeString(x,v))})}function g(w,y,h,T){var x=z.find(w,function(n){return n.name===y&&n.attributes[h]===T[h]});if(x)x.attributes=T;else w.push(p.element(y,T))}function _(w){if(w.exists(c))return w.read(c,"utf8");else return I.resolve(null)}},{"../promises":23,"../xml":35,underscore:67}],15:[function(X,ce,L){L.readStylesXml=I,L.Styles=z,L.defaultStyles=new z({},{});function z(i,t,l,g){return{findParagraphStyleById:function(_){return i[_]},findCharacterStyleById:function(_){return t[_]},findTableStyleById:function(_){return l[_]},findNumberingStyleById:function(_){return g[_]}}}z.EMPTY=new z({},{},{},{});function I(i){var t=Object.create(null),l=Object.create(null),g=Object.create(null),_=Object.create(null);return i.getElementsByTagName("w:style").forEach(function(w){var y=p(w),h;switch(y.type){case"paragraph":h=t;break;case"character":h=l;break;case"table":h=g;break;case"numbering":h=_;break}if(h&&h[y.styleId]===void 0)h[y.styleId]=y}),new z(t,l,g,_)}function p(i){var t=i.attributes["w:type"];if(t==="numbering")return c(t,i);else{var l=o(i),g=k(i);return{type:t,styleId:l,name:g}}}function k(i){var t=i.first("w:name");return t?t.attributes["w:val"]:null}function c(i,t){var l=o(t),g=t.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{type:i,numId:g,styleId:l}}function o(i){return i.attributes["w:styleId"]}},{}],16:[function(X,ce,L){L.uriToZipEntryName=z,L.replaceFragment=I;function z(p,k){if(k.charAt(0)==="/")return k.substr(1);else return p+"/"+k}function I(p,k){var c=p.indexOf("#");if(c!==-1)p=p.substring(0,c);return p+"#"+k}},{}],17:[function(X,ce,L){var z=X("../styles/html-paths");function I(l,g,_){return k(z.element(l,g,{fresh:!1}),_)}function p(l,g,_){var w=z.element(l,g,{fresh:!0});return k(w,_)}function k(l,g){return{type:"element",tag:l,children:g||[]}}function c(l){return{type:"text",value:l}}var o={type:"forceWrite"};L.freshElement=p,L.nonFreshElement=I,L.elementWithTag=k,L.text=c,L.forceWrite=o;var i={br:!0,hr:!0,img:!0,input:!0};function t(l){return l.children.length===0&&i[l.tag.tagName]}L.isVoidElement=t},{"../styles/html-paths":28}],18:[function(X,ce,L){var z=X("./ast");L.freshElement=z.freshElement,L.nonFreshElement=z.nonFreshElement,L.elementWithTag=z.elementWithTag,L.text=z.text,L.forceWrite=z.forceWrite,L.simplify=X("./simplify");function I(i,t){t.forEach(function(l){p(i,l)})}function p(i,t){k[t.type](i,t)}var k={element:c,text:o,forceWrite:function(){}};function c(i,t){if(z.isVoidElement(t))i.selfClosing(t.tag.tagName,t.tag.attributes);else i.open(t.tag.tagName,t.tag.attributes),I(i,t.children),i.close(t.tag.tagName)}function o(i,t){i.text(t.value)}L.write=I},{"./ast":17,"./simplify":19}],19:[function(X,ce,L){var z=X("underscore"),I=X("./ast");function p(x){return k(g(x))}function k(x){var n=[];return x.map(c).forEach(function(v){l(n,v)}),n}function c(x){return o[x.type](x)}var o={element:i,text:t,forceWrite:t};function i(x){return I.elementWithTag(x.tag,k(x.children))}function t(x){return x}function l(x,n){var v=x[x.length-1];if(n.type==="element"&&!n.tag.fresh&&v&&v.type==="element"&&n.tag.matchesElement(v.tag)){if(n.tag.separator)l(v.children,I.text(n.tag.separator));n.children.forEach(function(a){l(v.children,a)})}else x.push(n)}function g(x){return _(x,function(n){return w[n.type](n)})}function _(x,n){return z.flatten(z.map(x,n),!0)}var w={element:h,text:T,forceWrite:y};function y(x){return[x]}function h(x){var n=g(x.children);if(n.length===0&&!I.isVoidElement(x))return[];else return[I.elementWithTag(x.tag,n)]}function T(x){if(x.value.length===0)return[];else return[x]}ce.exports=p},{"./ast":17,underscore:67}],20:[function(X,ce,L){var z=X("underscore"),I=X("./promises"),p=X("./html");L.imgElement=k;function k(o){return function(i,t){return I.resolve(o(i)).then(function(l){var g={};if(i.altText)g.alt=i.altText;return z.extend(g,l),[p.freshElement("img",g)]})}}L.inline=L.imgElement,L.dataUri=k(function(o){return o.readAsBase64String().then(function(i){return{src:"data:"+o.contentType+";base64,"+i}})});function c(o){return o.contentType.split(/\/|\\/)[1]}L.imageFilenameExtension=c},{"./html":18,"./promises":23,underscore:67}],21:[function(X,ce,L){(function(z){var I=X("underscore"),p=X("./docx/docx-reader"),k=X("./docx/style-map"),c=X("./document-to-html").DocumentConverter,o=X("./raw-text").convertElementToRawText,i=X("./style-reader").readStyle,t=X("./options-reader").readOptions,l=X("./promises"),g=X("./unzip"),_=X("./results").Result;L.convertToHtml=w,L.convertToMarkdown=y,L.convert=h,L.extractRawText=v,L.images=X("./images"),L.transforms=X("./transforms"),L.underline=X("./underline"),L.embedStyleMap=a,L.readEmbeddedStyleMap=T;function w(E,F){return h(E,F)}function y(E,F){var A=Object.create(F||{});return A.outputFormat="markdown",h(E,A)}function h(E,F){F=t(F);var A=g.openZip(E).then(function(W){return k.readStyleMap(W).then(function(S){return F.embeddedStyleMap=S,W})}).then(function(W){return p.read(W,E,F).then(function(S){return S.map(F.transformDocument)}).then(function(S){return x(S,F)})});return l.toExternalPromise(A)}function T(E){var F=g.openZip(E).then(k.readStyleMap);return l.toExternalPromise(F)}function x(E,F){var A=n(F.readStyleMap()),W=I.extend({},F,{styleMap:A.value}),S=new c(W);return E.flatMapThen(function(P){return A.flatMapThen(function(O){return S.convertToHtml(P)})})}function n(E){return _.combine((E||[]).map(i)).map(function(F){return F.filter(function(A){return!!A})})}function v(E){var F=g.openZip(E).then(p.read).then(function(A){return A.map(o)});return l.toExternalPromise(F)}function a(E,F){var A=g.openZip(E).then(function(W){return k.writeStyleMap(W,F).then(function(){return W})}).then(function(W){return W.toArrayBuffer()}).then(function(W){return{toArrayBuffer:function(){return W},toBuffer:function(){return z.from(W)}}});return l.toExternalPromise(A)}L.styleMapping=function(){throw Error(`Use a raw string instead of mammoth.styleMapping e.g. "p[style-name='Title'] => h1" instead of mammoth.styleMapping("p[style-name='Title'] => h1")`)}}).call(this,X("buffer").Buffer)},{"./document-to-html":3,"./docx/docx-reader":9,"./docx/style-map":14,"./images":20,"./options-reader":22,"./promises":23,"./raw-text":24,"./results":25,"./style-reader":26,"./transforms":30,"./underline":31,"./unzip":2,buffer:48,underscore:67}],22:[function(X,ce,L){L.readOptions=k;var z=X("underscore"),I=L._defaultStyleMap=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","p.Heading => h1:fresh","p[style-name='Heading'] => h1:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh","p.Body => p:fresh","p[style-name='Body'] => p:fresh"],p=L._standardOptions={externalFileAccess:!1,transformDocument:o,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function k(i){return i=i||{},z.extend({},p,i,{customStyleMap:c(i.styleMap),readStyleMap:function(){var t=this.customStyleMap;if(this.includeEmbeddedStyleMap)t=t.concat(c(this.embeddedStyleMap));if(this.includeDefaultStyleMap)t=t.concat(I);return t}})}function c(i){if(!i)return[];else if(z.isString(i))return i.split(`
|
|
3
3
|
`).map(function(t){return t.trim()}).filter(function(t){return t!==""&&t.charAt(0)!=="#"});else return i}function o(i){return i}},{underscore:67}],23:[function(X,ce,L){(function(z){var I=X("underscore");L.defer=o,L.Promise=Promise,L.resolve=Promise.resolve.bind(Promise),L.reject=Promise.reject.bind(Promise),L.forEachSeries=function(g,_){var w=0,y=o(),h=function(){if(w<g.length){var T=g[w];w++,_(T).then(h,y.reject)}else y.resolve()};return h(),y.promise};var p=L.props=function(g){var _=Object.keys(g),w=Object.values(g),y=Promise.all(w).then(function(h){var T={};for(var x=0;x<_.length;x++)T[_[x]]=h[x];return T});return c(y)},k=function(g){var _=this.then(function(w){var y=I.extend({},w,g(w));return p(y)});return c(_)};function c(g){return g.also=k,g}L.try=function(g){try{return Promise.resolve(g())}catch(_){return Promise.reject(_)}};function o(){var g,_,w=new Promise(function(y,h){g=y,_=h});return{resolve:g,reject:_,promise:w}}function i(g){var _=new Promise(g);return _.__proto__=i.prototype,_}i.__proto__=Promise,i.prototype.__proto__=Promise.prototype,i.prototype.done=function(g,_){return this.then(g,_).catch(function(w){if(l()){var y=w instanceof Error?w.stack:w;z.stderr.write("Fatal "+y+`
|
|
4
4
|
`),z.exit(2)}else setTimeout(function(){throw w},0)})};function t(g){return i.resolve(g)}L.toExternalPromise=t;function l(){if(typeof z>"u")return!1;return{}.toString.call(z).toLowerCase()==="[object process]"}}).call(this,X("_process"))},{_process:66,underscore:67}],24:[function(X,ce,L){var z=X("./documents");function I(p){if(p.type==="text")return p.value;else if(p.type===z.types.tab)return"\t";else{var k=p.type==="paragraph"?`
|
|
@@ -41,7 +41,7 @@ https://github.com/nodeca/pako/blob/master/LICENSE
|
|
|
41
41
|
Character number: `+p.characterNumber},I.prototype.lineNumber=function(){return this._position().lineNumber},I.prototype.characterNumber=function(){return this._position().characterNumber},I.prototype._position=function(){var p=this,k=0,c=function(){return p._string.indexOf(`
|
|
42
42
|
`,k)},o=1;while(c()!==-1&&c()<this._startIndex)k=c()+1,o+=1;var i=this._startIndex-k+1;return{lineNumber:o,characterNumber:i}}},{}],56:[function(X,ce,L){ce.exports=function(z,I,p){if(this.name=z,this.value=I,p)this.source=p}},{}],57:[function(X,ce,L){var z=ce.exports=function(I,p){this._tokens=I,this._startIndex=p||0};z.prototype.head=function(){return this._tokens[this._startIndex]},z.prototype.tail=function(I){return new z(this._tokens,this._startIndex+1)},z.prototype.toArray=function(){return this._tokens.slice(this._startIndex)},z.prototype.end=function(){return this._tokens[this._tokens.length-1]},z.prototype.to=function(I){var p=this.head().source,k=I.head()||I.end();return p.to(k.source)}},{}],58:[function(X,ce,L){var z=X("./rules"),I=X("./parsing-results");L.parser=function(c,o,i){var t={rule:w,leftAssociative:y,rightAssociative:h},l=new p(i.map(_)),g=z.firstOf(c,o);function _(n){return{name:n.name,rule:k(n.ruleBuilder.bind(null,t))}}function w(){return T(l)}function y(n){return T(l.untilExclusive(n))}function h(n){return T(l.untilInclusive(n))}function T(n){return x.bind(null,n)}function x(n,v){var a=g(v);if(a.isSuccess())return n.apply(a);else return a}return t};function p(c){function o(_){return new p(c.slice(0,t().indexOf(_)))}function i(_){return new p(c.slice(0,t().indexOf(_)+1))}function t(){return c.map(function(_){return _.name})}function l(_){var w,y;while(!0)if(w=g(_.remaining()),w.isSuccess())y=_.source().to(w.source()),_=I.success(w.value()(_.value(),y),w.remaining(),y);else if(w.isFailure())return _;else return w}function g(_){return z.firstOf("infix",c.map(function(w){return w.rule}))(_)}return{apply:l,untilExclusive:o,untilInclusive:i}}L.infix=function(c,o){function i(t){return L.infix(c,function(l){var g=o(l);return function(_){var w=g(_);return w.map(function(y){return function(h,T){return t(h,y,T)}})}})}return{name:c,ruleBuilder:o,map:i}};var k=function(c){var o;return function(i){if(!o)o=c();return o(i)}}},{"./parsing-results":62,"./rules":64}],59:[function(X,ce,L){L.error=function(I){return new z(I)};var z=function(I){this.expected=I.expected,this.actual=I.actual,this._location=I.location};z.prototype.describe=function(){var I=this._location?this._location.describe()+`:
|
|
43
43
|
`:"";return I+"Expected "+this.expected+`
|
|
44
|
-
but got `+this.actual},z.prototype.lineNumber=function(){return this._location.lineNumber()},z.prototype.characterNumber=function(){return this._location.characterNumber()}},{}],60:[function(X,ce,L){var z=L.fromArray=function(p){var k=0,c=function(){return k<p.length};return new I({hasNext:c,next:function(){if(!c())throw Error("No more elements");else return p[k++]}})},I=function(p){this._iterator=p};I.prototype.map=function(p){var k=this._iterator;return new I({hasNext:function(){return k.hasNext()},next:function(){return p(k.next())}})},I.prototype.filter=function(p){var k=this._iterator,c=!1,o=!1,i,t=function(){if(c)return;c=!0,o=!1;while(k.hasNext()&&!o)i=k.next(),o=p(i)};return new I({hasNext:function(){return t(),o},next:function(){t();var l=i;return c=!1,l}})},I.prototype.first=function(){var p=this._iterator;if(this._iterator.hasNext())return p.next();else return null},I.prototype.toArray=function(){var p=[];while(this._iterator.hasNext())p.push(this._iterator.next());return p}},{}],61:[function(X,ce,L){var z=X("./TokenIterator");L.Parser=function(I){var p=function(k,c){return k(new z(c))};return{parseTokens:p}}},{"./TokenIterator":57}],62:[function(X,ce,L){ce.exports={failure:function(I,p){if(I.length<1)throw Error("Failure must have errors");return new z({status:"failure",remaining:p,errors:I})},error:function(I,p){if(I.length<1)throw Error("Failure must have errors");return new z({status:"error",remaining:p,errors:I})},success:function(I,p,k){return new z({status:"success",value:I,source:k,remaining:p,errors:[]})},cut:function(I){return new z({status:"cut",remaining:I,errors:[]})}};var z=function(I){this._value=I.value,this._status=I.status,this._hasValue=I.value!==void 0,this._remaining=I.remaining,this._source=I.source,this._errors=I.errors};z.prototype.map=function(I){if(this._hasValue)return new z({value:I(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors});else return this},z.prototype.changeRemaining=function(I){return new z({value:this._value,status:this._status,remaining:I,source:this._source,errors:this._errors})},z.prototype.isSuccess=function(){return this._status==="success"||this._status==="cut"},z.prototype.isFailure=function(){return this._status==="failure"},z.prototype.isError=function(){return this._status==="error"},z.prototype.isCut=function(){return this._status==="cut"},z.prototype.value=function(){return this._value},z.prototype.remaining=function(){return this._remaining},z.prototype.source=function(){return this._source},z.prototype.errors=function(){return this._errors}},{}],63:[function(X,ce,L){var z=X("./Token"),I=X("./StringSource");L.RegexTokeniser=p;function p(k){k=k.map(function(t){return{name:t.name,regex:new RegExp(t.regex.source,"g")}});function c(t,l){var g=new I(t,l),_=0,w=[];while(_<t.length){var y=o(t,_,g);_=y.endIndex,w.push(y.token)}return w.push(i(t,g)),w}function o(t,l,g){for(var _=0;_<k.length;_++){var w=k[_].regex;w.lastIndex=l;var y=w.exec(t);if(y){var T=l+y[0].length;if(y.index===l&&T>l){var h=y[1],x=new z(k[_].name,h,g.range(l,T));return{token:x,endIndex:T}}}}var T=l+1,x=new z("unrecognisedCharacter",t.substring(l,T),g.range(l,T));return{token:x,endIndex:T}}function i(t,l){return new z("end",null,l.range(t.length,t.length))}return{tokenise:c}}},{"./StringSource":55,"./Token":56}],64:[function(X,ce,L){var z=X("underscore"),I=X("option"),p=X("./parsing-results"),k=X("./errors"),c=X("./lazy-iterators");L.token=function(w,y){var h=y!==void 0;return function(T){var x=T.head();if(x&&x.name===w&&(!h||x.value===y))return p.success(x.value,T.tail(),x.source);else{var n=g({name:w,value:y});return _(T,n)}}},L.tokenOfType=function(w){return L.token(w)},L.firstOf=function(w,y){if(!z.isArray(y))y=Array.prototype.slice.call(arguments,1);return function(h){return c.fromArray(y).map(function(T){return T(h)}).filter(function(T){return T.isSuccess()||T.isError()}).first()||_(h,w)}},L.then=function(w,y){return function(h){var T=w(h);if(!T.map)console.log(T);return T.map(y)}},L.sequence=function(){var w=Array.prototype.slice.call(arguments,0),y=function(T){var x=z.foldl(w,function(v,a){var{result:E,hasCut:F}=v;if(!E.isSuccess())return{result:E,hasCut:F};var A=a(E.remaining());if(A.isCut())return{result:E,hasCut:!0};else if(A.isSuccess()){var W;if(a.isCaptured)W=E.value().withValue(a,A.value());else W=E.value();var S=A.remaining(),P=T.to(S);return{result:p.success(W,S,P),hasCut:F}}else if(F)return{result:p.error(A.errors(),A.remaining()),hasCut:F};else return{result:A,hasCut:F}},{result:p.success(new o,T),hasCut:!1}).result,n=T.to(x.remaining());return x.map(function(v){return v.withValue(L.sequence.source,n)})};y.head=function(){var T=z.find(w,h);return L.then(y,L.sequence.extract(T))},y.map=function(T){return L.then(y,function(x){return T.apply(this,x.toArray())})};function h(T){return T.isCaptured}return y};var o=function(w,y){this._values=w||{},this._valuesArray=y||[]};o.prototype.withValue=function(w,y){if(w.captureName&&w.captureName in this._values)throw Error('Cannot add second value for capture "'+w.captureName+'"');else{var h=z.clone(this._values);h[w.captureName]=y;var T=this._valuesArray.concat([y]);return new o(h,T)}},o.prototype.get=function(w){if(w.captureName in this._values)return this._values[w.captureName];else throw Error('No value for capture "'+w.captureName+'"')},o.prototype.toArray=function(){return this._valuesArray},L.sequence.capture=function(w,y){var h=function(){return w.apply(this,arguments)};return h.captureName=y,h.isCaptured=!0,h},L.sequence.extract=function(w){return function(y){return y.get(w)}},L.sequence.applyValues=function(w){var y=Array.prototype.slice.call(arguments,1);return function(h){var T=y.map(function(x){return h.get(x)});return w.apply(this,T)}},L.sequence.source={captureName:"☃source☃"},L.sequence.cut=function(){return function(w){return p.cut(w)}},L.optional=function(w){return function(y){var h=w(y);if(h.isSuccess())return h.map(I.some);else if(h.isFailure())return p.success(I.none,y);else return h}},L.zeroOrMoreWithSeparator=function(w,y){return l(w,y,!1)},L.oneOrMoreWithSeparator=function(w,y){return l(w,y,!0)};var i=L.zeroOrMore=function(w){return function(y){var h=[],T;while((T=w(y))&&T.isSuccess())y=T.remaining(),h.push(T.value());if(T.isError())return T;else return p.success(h,y)}};L.oneOrMore=function(w){return L.oneOrMoreWithSeparator(w,t)};function t(w){return p.success(null,w)}var l=function(w,y,h){return function(T){var x=w(T);if(x.isSuccess()){var n=L.sequence.capture(w,"main"),v=i(L.then(L.sequence(y,n),L.sequence.extract(n))),a=v(x.remaining());return p.success([x.value()].concat(a.value()),a.remaining())}else if(h||x.isError())return x;else return p.success([],T)}};L.leftAssociative=function(w,y,h){var T;if(h)T=[{func:h,rule:y}];else T=y;T=T.map(function(n){return L.then(n.rule,function(v){return function(a,E){return n.func(a,v,E)}})});var x=L.firstOf.apply(null,["rules"].concat(T));return function(n){var v=n,a=w(n);if(!a.isSuccess())return a;var E=x(a.remaining());while(E.isSuccess()){var F=E.remaining(),A=v.to(E.remaining()),W=E.value();a=p.success(W(a.value(),A),F,A),E=x(a.remaining())}if(E.isError())return E;return a}},L.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},L.nonConsuming=function(w){return function(y){return w(y).changeRemaining(y)}};var g=function(w){if(w.value)return w.name+' "'+w.value+'"';else return w.name};function _(w,y){var h,T=w.head();if(T)h=k.error({expected:y,actual:g(T),location:T.source});else h=k.error({expected:y,actual:"end of tokens"});return p.failure([h],w)}},{"./errors":59,"./lazy-iterators":60,"./parsing-results":62,option:65,underscore:67}],65:[function(X,ce,L){L.none=Object.create({value:function(){throw Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return L.none},flatMap:function(){return L.none},filter:function(){return L.none},toArray:function(){return[]},orElse:z,valueOrElse:z});function z(p){if(typeof p=="function")return p();else return p}L.some=function(p){return new I(p)};var I=function(p){this._value=p};I.prototype.value=function(){return this._value},I.prototype.isNone=function(){return!1},I.prototype.isSome=function(){return!0},I.prototype.map=function(p){return new I(p(this._value))},I.prototype.flatMap=function(p){return p(this._value)},I.prototype.filter=function(p){return p(this._value)?this:L.none},I.prototype.toArray=function(){return[this._value]},I.prototype.orElse=function(p){return this},I.prototype.valueOrElse=function(p){return this._value},L.isOption=function(p){return p===L.none||p instanceof I},L.fromNullable=function(p){if(p==null)return L.none;return new I(p)}},{}],66:[function(X,ce,L){var z=ce.exports={},I,p;function k(){throw Error("setTimeout has not been defined")}function c(){throw Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function")I=setTimeout;else I=k}catch(x){I=k}try{if(typeof clearTimeout==="function")p=clearTimeout;else p=c}catch(x){p=c}})();function o(x){if(I===setTimeout)return setTimeout(x,0);if((I===k||!I)&&setTimeout)return I=setTimeout,setTimeout(x,0);try{return I(x,0)}catch(n){try{return I.call(null,x,0)}catch(v){return I.call(this,x,0)}}}function i(x){if(p===clearTimeout)return clearTimeout(x);if((p===c||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(x);try{return p(x)}catch(n){try{return p.call(null,x)}catch(v){return p.call(this,x)}}}var t=[],l=!1,g,_=-1;function w(){if(!l||!g)return;if(l=!1,g.length)t=g.concat(t);else _=-1;if(t.length)y()}function y(){if(l)return;var x=o(w);l=!0;var n=t.length;while(n){g=t,t=[];while(++_<n)if(g)g[_].run();_=-1,n=t.length}g=null,l=!1,i(x)}z.nextTick=function(x){var n=Array(arguments.length-1);if(arguments.length>1)for(var v=1;v<arguments.length;v++)n[v-1]=arguments[v];if(t.push(new h(x,n)),t.length===1&&!l)o(y)};function h(x,n){this.fun=x,this.array=n}h.prototype.run=function(){this.fun.apply(null,this.array)},z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function T(){}z.on=T,z.addListener=T,z.once=T,z.off=T,z.removeListener=T,z.removeAllListeners=T,z.emit=T,z.binding=function(x){throw Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(x){throw Error("process.chdir is not supported")},z.umask=function(){return 0}},{}],67:[function(X,ce,L){(function(z){(function(I,p){typeof L==="object"&&typeof ce<"u"?ce.exports=p():typeof et==="function"&&et.amd?et("underscore",p):(I=typeof globalThis<"u"?globalThis:I||self,function(){var k=I._,c=I._=p();c.noConflict=function(){return I._=k,c}}())})(this,function(){var I="1.13.1",p=typeof self=="object"&&self.self===self&&self||typeof z=="object"&&z.global===z&&z||Function("return this")()||{},k=Array.prototype,c=Object.prototype,o=typeof Symbol<"u"?Symbol.prototype:null,{push:i,slice:t}=k,{toString:l,hasOwnProperty:g}=c,_=typeof ArrayBuffer<"u",w=typeof DataView<"u",y=Array.isArray,{keys:h,create:T}=Object,x=_&&ArrayBuffer.isView,n=isNaN,v=isFinite,a=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],F=Math.pow(2,53)-1;function A(b,C){return C=C==null?b.length-1:+C,function(){var V=Math.max(arguments.length-C,0),Z=Array(V),ae=0;for(;ae<V;ae++)Z[ae]=arguments[ae+C];switch(C){case 0:return b.call(this,Z);case 1:return b.call(this,arguments[0],Z);case 2:return b.call(this,arguments[0],arguments[1],Z)}var re=Array(C+1);for(ae=0;ae<C;ae++)re[ae]=arguments[ae];return re[C]=Z,b.apply(this,re)}}function W(b){var C=typeof b;return C==="function"||C==="object"&&!!b}function S(b){return b===null}function P(b){return b===void 0}function O(b){return b===!0||b===!1||l.call(b)==="[object Boolean]"}function H(b){return!!(b&&b.nodeType===1)}function ee(b){var C="[object "+b+"]";return function(V){return l.call(V)===C}}var U=ee("String"),J=ee("Number"),D=ee("Date"),te=ee("RegExp"),ye=ee("Error"),se=ee("Symbol"),ve=ee("ArrayBuffer"),le=ee("Function"),be=p.document&&p.document.childNodes;if(typeof Int8Array!="object"&&typeof be!="function")le=function(b){return typeof b=="function"||!1};var Q=le,ne=ee("Object"),Te=w&&ne(new DataView(new ArrayBuffer(8))),pe=typeof Map<"u"&&ne(new Map),de=ee("DataView");function Pe(b){return b!=null&&Q(b.getInt8)&&ve(b.buffer)}var Be=Te?Pe:de,Ie=y||ee("Array");function ke(b,C){return b!=null&&g.call(b,C)}var Ne=ee("Arguments");(function(){if(!Ne(arguments))Ne=function(b){return ke(b,"callee")}})();var Re=Ne;function We(b){return!se(b)&&v(b)&&!isNaN(parseFloat(b))}function Ae(b){return J(b)&&n(b)}function d(b){return function(){return b}}function q(b){return function(C){var V=b(C);return typeof V=="number"&&V>=0&&V<=F}}function Y(b){return function(C){return C==null?void 0:C[b]}}var j=Y("byteLength"),f=q(j),r=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function s(b){return x?x(b)&&!Be(b):f(b)&&r.test(l.call(b))}var N=_?s:d(!1),M=Y("length");function K(b){var C={};for(var V=b.length,Z=0;Z<V;++Z)C[b[Z]]=!0;return{contains:function(ae){return C[ae]},push:function(ae){return C[ae]=!0,b.push(ae)}}}function ie(b,C){C=K(C);var V=E.length,Z=b.constructor,ae=Q(Z)&&Z.prototype||c,re="constructor";if(ke(b,re)&&!C.contains(re))C.push(re);while(V--)if(re=E[V],re in b&&b[re]!==ae[re]&&!C.contains(re))C.push(re)}function ue(b){if(!W(b))return[];if(h)return h(b);var C=[];for(var V in b)if(ke(b,V))C.push(V);if(a)ie(b,C);return C}function we(b){if(b==null)return!0;var C=M(b);if(typeof C=="number"&&(Ie(b)||U(b)||Re(b)))return C===0;return M(ue(b))===0}function Se(b,C){var V=ue(C),Z=V.length;if(b==null)return!Z;var ae=Object(b);for(var re=0;re<Z;re++){var he=V[re];if(C[he]!==ae[he]||!(he in ae))return!1}return!0}function _e(b){if(b instanceof _e)return b;if(!(this instanceof _e))return new _e(b);this._wrapped=b}_e.VERSION=I,_e.prototype.value=function(){return this._wrapped},_e.prototype.valueOf=_e.prototype.toJSON=_e.prototype.value,_e.prototype.toString=function(){return String(this._wrapped)};function Fe(b){return new Uint8Array(b.buffer||b,b.byteOffset||0,j(b))}var Ze="[object DataView]";function He(b,C,V,Z){if(b===C)return b!==0||1/b===1/C;if(b==null||C==null)return!1;if(b!==b)return C!==C;var ae=typeof b;if(ae!=="function"&&ae!=="object"&&typeof C!="object")return!1;return Qe(b,C,V,Z)}function Qe(b,C,V,Z){if(b instanceof _e)b=b._wrapped;if(C instanceof _e)C=C._wrapped;var ae=l.call(b);if(ae!==l.call(C))return!1;if(Te&&ae=="[object Object]"&&Be(b)){if(!Be(C))return!1;ae=Ze}switch(ae){case"[object RegExp]":case"[object String]":return""+b===""+C;case"[object Number]":if(+b!==+b)return+C!==+C;return+b===0?1/+b===1/C:+b===+C;case"[object Date]":case"[object Boolean]":return+b===+C;case"[object Symbol]":return o.valueOf.call(b)===o.valueOf.call(C);case"[object ArrayBuffer]":case Ze:return Qe(Fe(b),Fe(C),V,Z)}var re=ae==="[object Array]";if(!re&&N(b)){var he=j(b);if(he!==j(C))return!1;if(b.buffer===C.buffer&&b.byteOffset===C.byteOffset)return!0;re=!0}if(!re){if(typeof b!="object"||typeof C!="object")return!1;var Ee=b.constructor,Le=C.constructor;if(Ee!==Le&&!(Q(Ee)&&Ee instanceof Ee&&Q(Le)&&Le instanceof Le)&&(("constructor"in b)&&("constructor"in C)))return!1}V=V||[],Z=Z||[];var Ce=V.length;while(Ce--)if(V[Ce]===b)return Z[Ce]===C;if(V.push(b),Z.push(C),re){if(Ce=b.length,Ce!==C.length)return!1;while(Ce--)if(!He(b[Ce],C[Ce],V,Z))return!1}else{var Ke=ue(b),qe;if(Ce=Ke.length,ue(C).length!==Ce)return!1;while(Ce--)if(qe=Ke[Ce],!(ke(C,qe)&&He(b[qe],C[qe],V,Z)))return!1}return V.pop(),Z.pop(),!0}function oe(b,C){return He(b,C)}function me(b){if(!W(b))return[];var C=[];for(var V in b)C.push(V);if(a)ie(b,C);return C}function xe(b){var C=M(b);return function(V){if(V==null)return!1;var Z=me(V);if(M(Z))return!1;for(var ae=0;ae<C;ae++)if(!Q(V[b[ae]]))return!1;return b!==Ge||!Q(V[De])}}var De="forEach",Me="has",Xe=["clear","delete"],ze=["get",Me,"set"],Ve=Xe.concat(De,ze),Ge=Xe.concat(ze),$e=["add"].concat(Xe,De,Me),at=pe?xe(Ve):ee("Map"),xt=pe?xe(Ge):ee("WeakMap"),kt=pe?xe($e):ee("Set"),St=ee("WeakSet");function lt(b){var C=ue(b),V=C.length,Z=Array(V);for(var ae=0;ae<V;ae++)Z[ae]=b[C[ae]];return Z}function Tt(b){var C=ue(b),V=C.length,Z=Array(V);for(var ae=0;ae<V;ae++)Z[ae]=[C[ae],b[C[ae]]];return Z}function ht(b){var C={},V=ue(b);for(var Z=0,ae=V.length;Z<ae;Z++)C[b[V[Z]]]=V[Z];return C}function _t(b){var C=[];for(var V in b)if(Q(b[V]))C.push(V);return C.sort()}function yt(b,C){return function(V){var Z=arguments.length;if(C)V=Object(V);if(Z<2||V==null)return V;for(var ae=1;ae<Z;ae++){var re=arguments[ae],he=b(re),Ee=he.length;for(var Le=0;Le<Ee;Le++){var Ce=he[Le];if(!C||V[Ce]===void 0)V[Ce]=re[Ce]}}return V}}var It=yt(me),Nt=yt(ue),R=yt(me,!0);function B(){return function(){}}function G(b){if(!W(b))return{};if(T)return T(b);var C=B();C.prototype=b;var V=new C;return C.prototype=null,V}function fe(b,C){var V=G(b);if(C)Nt(V,C);return V}function ge(b){if(!W(b))return b;return Ie(b)?b.slice():It({},b)}function Oe(b,C){return C(b),b}function je(b){return Ie(b)?b:[b]}_e.toPath=je;function Ye(b){return _e.toPath(b)}function nt(b,C){var V=C.length;for(var Z=0;Z<V;Z++){if(b==null)return;b=b[C[Z]]}return V?b:void 0}function tt(b,C,V){var Z=nt(b,Ye(C));return P(Z)?V:Z}function ot(b,C){C=Ye(C);var V=C.length;for(var Z=0;Z<V;Z++){var ae=C[Z];if(!ke(b,ae))return!1;b=b[ae]}return!!V}function st(b){return b}function it(b){return b=Nt({},b),function(C){return Se(C,b)}}function ut(b){return b=Ye(b),function(C){return nt(C,b)}}function Je(b,C,V){if(C===void 0)return b;switch(V==null?3:V){case 1:return function(Z){return b.call(C,Z)};case 3:return function(Z,ae,re){return b.call(C,Z,ae,re)};case 4:return function(Z,ae,re,he){return b.call(C,Z,ae,re,he)}}return function(){return b.apply(C,arguments)}}function ct(b,C,V){if(b==null)return st;if(Q(b))return Je(b,C,V);if(W(b)&&!Ie(b))return it(b);return ut(b)}function pt(b,C){return ct(b,C,1/0)}_e.iteratee=pt;function Ue(b,C,V){if(_e.iteratee!==pt)return _e.iteratee(b,C);return ct(b,C,V)}function At(b,C,V){C=Ue(C,V);var Z=ue(b),ae=Z.length,re={};for(var he=0;he<ae;he++){var Ee=Z[he];re[Ee]=C(b[Ee],Ee,b)}return re}function dt(){}function Ot(b){if(b==null)return dt;return function(C){return tt(b,C)}}function br(b,C,V){var Z=Array(Math.max(0,b));C=Je(C,V,1);for(var ae=0;ae<b;ae++)Z[ae]=C(ae);return Z}function Mt(b,C){if(C==null)C=b,b=0;return b+Math.floor(Math.random()*(C-b+1))}var Dt=Date.now||function(){return new Date().getTime()};function Gt(b){var C=function(re){return b[re]},V="(?:"+ue(b).join("|")+")",Z=RegExp(V),ae=RegExp(V,"g");return function(re){return re=re==null?"":""+re,Z.test(re)?re.replace(ae,C):re}}var Kt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Er=Gt(Kt),xr=ht(Kt),Tr=Gt(xr),Dr=_e.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Lt=/(.)^/,kr={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Sr=/\\|'|\r|\n|\u2028|\u2029/g;function Nr(b){return"\\"+kr[b]}var Ar=/^\s*(\w|\$)+\s*$/;function Or(b,C,V){if(!C&&V)C=V;C=R({},C,_e.templateSettings);var Z=RegExp([(C.escape||Lt).source,(C.interpolate||Lt).source,(C.evaluate||Lt).source].join("|")+"|$","g"),ae=0,re="__p+='";b.replace(Z,function(Ce,Ke,qe,vr,yr){if(re+=b.slice(ae,yr).replace(Sr,Nr),ae=yr+Ce.length,Ke)re+=`'+
|
|
44
|
+
but got `+this.actual},z.prototype.lineNumber=function(){return this._location.lineNumber()},z.prototype.characterNumber=function(){return this._location.characterNumber()}},{}],60:[function(X,ce,L){var z=L.fromArray=function(p){var k=0,c=function(){return k<p.length};return new I({hasNext:c,next:function(){if(!c())throw Error("No more elements");else return p[k++]}})},I=function(p){this._iterator=p};I.prototype.map=function(p){var k=this._iterator;return new I({hasNext:function(){return k.hasNext()},next:function(){return p(k.next())}})},I.prototype.filter=function(p){var k=this._iterator,c=!1,o=!1,i,t=function(){if(c)return;c=!0,o=!1;while(k.hasNext()&&!o)i=k.next(),o=p(i)};return new I({hasNext:function(){return t(),o},next:function(){t();var l=i;return c=!1,l}})},I.prototype.first=function(){var p=this._iterator;if(this._iterator.hasNext())return p.next();else return null},I.prototype.toArray=function(){var p=[];while(this._iterator.hasNext())p.push(this._iterator.next());return p}},{}],61:[function(X,ce,L){var z=X("./TokenIterator");L.Parser=function(I){var p=function(k,c){return k(new z(c))};return{parseTokens:p}}},{"./TokenIterator":57}],62:[function(X,ce,L){ce.exports={failure:function(I,p){if(I.length<1)throw Error("Failure must have errors");return new z({status:"failure",remaining:p,errors:I})},error:function(I,p){if(I.length<1)throw Error("Failure must have errors");return new z({status:"error",remaining:p,errors:I})},success:function(I,p,k){return new z({status:"success",value:I,source:k,remaining:p,errors:[]})},cut:function(I){return new z({status:"cut",remaining:I,errors:[]})}};var z=function(I){this._value=I.value,this._status=I.status,this._hasValue=I.value!==void 0,this._remaining=I.remaining,this._source=I.source,this._errors=I.errors};z.prototype.map=function(I){if(this._hasValue)return new z({value:I(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors});else return this},z.prototype.changeRemaining=function(I){return new z({value:this._value,status:this._status,remaining:I,source:this._source,errors:this._errors})},z.prototype.isSuccess=function(){return this._status==="success"||this._status==="cut"},z.prototype.isFailure=function(){return this._status==="failure"},z.prototype.isError=function(){return this._status==="error"},z.prototype.isCut=function(){return this._status==="cut"},z.prototype.value=function(){return this._value},z.prototype.remaining=function(){return this._remaining},z.prototype.source=function(){return this._source},z.prototype.errors=function(){return this._errors}},{}],63:[function(X,ce,L){var z=X("./Token"),I=X("./StringSource");L.RegexTokeniser=p;function p(k){k=k.map(function(t){return{name:t.name,regex:new RegExp(t.regex.source,"g")}});function c(t,l){var g=new I(t,l),_=0,w=[];while(_<t.length){var y=o(t,_,g);_=y.endIndex,w.push(y.token)}return w.push(i(t,g)),w}function o(t,l,g){for(var _=0;_<k.length;_++){var w=k[_].regex;w.lastIndex=l;var y=w.exec(t);if(y){var T=l+y[0].length;if(y.index===l&&T>l){var h=y[1],x=new z(k[_].name,h,g.range(l,T));return{token:x,endIndex:T}}}}var T=l+1,x=new z("unrecognisedCharacter",t.substring(l,T),g.range(l,T));return{token:x,endIndex:T}}function i(t,l){return new z("end",null,l.range(t.length,t.length))}return{tokenise:c}}},{"./StringSource":55,"./Token":56}],64:[function(X,ce,L){var z=X("underscore"),I=X("option"),p=X("./parsing-results"),k=X("./errors"),c=X("./lazy-iterators");L.token=function(w,y){var h=y!==void 0;return function(T){var x=T.head();if(x&&x.name===w&&(!h||x.value===y))return p.success(x.value,T.tail(),x.source);else{var n=g({name:w,value:y});return _(T,n)}}},L.tokenOfType=function(w){return L.token(w)},L.firstOf=function(w,y){if(!z.isArray(y))y=Array.prototype.slice.call(arguments,1);return function(h){return c.fromArray(y).map(function(T){return T(h)}).filter(function(T){return T.isSuccess()||T.isError()}).first()||_(h,w)}},L.then=function(w,y){return function(h){var T=w(h);if(!T.map)console.log(T);return T.map(y)}},L.sequence=function(){var w=Array.prototype.slice.call(arguments,0),y=function(T){var x=z.foldl(w,function(v,a){var{result:E,hasCut:F}=v;if(!E.isSuccess())return{result:E,hasCut:F};var A=a(E.remaining());if(A.isCut())return{result:E,hasCut:!0};else if(A.isSuccess()){var W;if(a.isCaptured)W=E.value().withValue(a,A.value());else W=E.value();var S=A.remaining(),P=T.to(S);return{result:p.success(W,S,P),hasCut:F}}else if(F)return{result:p.error(A.errors(),A.remaining()),hasCut:F};else return{result:A,hasCut:F}},{result:p.success(new o,T),hasCut:!1}).result,n=T.to(x.remaining());return x.map(function(v){return v.withValue(L.sequence.source,n)})};y.head=function(){var T=z.find(w,h);return L.then(y,L.sequence.extract(T))},y.map=function(T){return L.then(y,function(x){return T.apply(this,x.toArray())})};function h(T){return T.isCaptured}return y};var o=function(w,y){this._values=w||{},this._valuesArray=y||[]};o.prototype.withValue=function(w,y){if(w.captureName&&w.captureName in this._values)throw Error('Cannot add second value for capture "'+w.captureName+'"');else{var h=z.clone(this._values);h[w.captureName]=y;var T=this._valuesArray.concat([y]);return new o(h,T)}},o.prototype.get=function(w){if(w.captureName in this._values)return this._values[w.captureName];else throw Error('No value for capture "'+w.captureName+'"')},o.prototype.toArray=function(){return this._valuesArray},L.sequence.capture=function(w,y){var h=function(){return w.apply(this,arguments)};return h.captureName=y,h.isCaptured=!0,h},L.sequence.extract=function(w){return function(y){return y.get(w)}},L.sequence.applyValues=function(w){var y=Array.prototype.slice.call(arguments,1);return function(h){var T=y.map(function(x){return h.get(x)});return w.apply(this,T)}},L.sequence.source={captureName:"☃source☃"},L.sequence.cut=function(){return function(w){return p.cut(w)}},L.optional=function(w){return function(y){var h=w(y);if(h.isSuccess())return h.map(I.some);else if(h.isFailure())return p.success(I.none,y);else return h}},L.zeroOrMoreWithSeparator=function(w,y){return l(w,y,!1)},L.oneOrMoreWithSeparator=function(w,y){return l(w,y,!0)};var i=L.zeroOrMore=function(w){return function(y){var h=[],T;while((T=w(y))&&T.isSuccess())y=T.remaining(),h.push(T.value());if(T.isError())return T;else return p.success(h,y)}};L.oneOrMore=function(w){return L.oneOrMoreWithSeparator(w,t)};function t(w){return p.success(null,w)}var l=function(w,y,h){return function(T){var x=w(T);if(x.isSuccess()){var n=L.sequence.capture(w,"main"),v=i(L.then(L.sequence(y,n),L.sequence.extract(n))),a=v(x.remaining());return p.success([x.value()].concat(a.value()),a.remaining())}else if(h||x.isError())return x;else return p.success([],T)}};L.leftAssociative=function(w,y,h){var T;if(h)T=[{func:h,rule:y}];else T=y;T=T.map(function(n){return L.then(n.rule,function(v){return function(a,E){return n.func(a,v,E)}})});var x=L.firstOf.apply(null,["rules"].concat(T));return function(n){var v=n,a=w(n);if(!a.isSuccess())return a;var E=x(a.remaining());while(E.isSuccess()){var F=E.remaining(),A=v.to(E.remaining()),W=E.value();a=p.success(W(a.value(),A),F,A),E=x(a.remaining())}if(E.isError())return E;return a}},L.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},L.nonConsuming=function(w){return function(y){return w(y).changeRemaining(y)}};var g=function(w){if(w.value)return w.name+' "'+w.value+'"';else return w.name};function _(w,y){var h,T=w.head();if(T)h=k.error({expected:y,actual:g(T),location:T.source});else h=k.error({expected:y,actual:"end of tokens"});return p.failure([h],w)}},{"./errors":59,"./lazy-iterators":60,"./parsing-results":62,option:65,underscore:67}],65:[function(X,ce,L){L.none=Object.create({value:function(){throw Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return L.none},flatMap:function(){return L.none},filter:function(){return L.none},toArray:function(){return[]},orElse:z,valueOrElse:z});function z(p){if(typeof p=="function")return p();else return p}L.some=function(p){return new I(p)};var I=function(p){this._value=p};I.prototype.value=function(){return this._value},I.prototype.isNone=function(){return!1},I.prototype.isSome=function(){return!0},I.prototype.map=function(p){return new I(p(this._value))},I.prototype.flatMap=function(p){return p(this._value)},I.prototype.filter=function(p){return p(this._value)?this:L.none},I.prototype.toArray=function(){return[this._value]},I.prototype.orElse=function(p){return this},I.prototype.valueOrElse=function(p){return this._value},L.isOption=function(p){return p===L.none||p instanceof I},L.fromNullable=function(p){if(p==null)return L.none;return new I(p)}},{}],66:[function(X,ce,L){var z=ce.exports={},I,p;function k(){throw Error("setTimeout has not been defined")}function c(){throw Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function")I=setTimeout;else I=k}catch(x){I=k}try{if(typeof clearTimeout==="function")p=clearTimeout;else p=c}catch(x){p=c}})();function o(x){if(I===setTimeout)return setTimeout(x,0);if((I===k||!I)&&setTimeout)return I=setTimeout,setTimeout(x,0);try{return I(x,0)}catch(n){try{return I.call(null,x,0)}catch(v){return I.call(this,x,0)}}}function i(x){if(p===clearTimeout)return clearTimeout(x);if((p===c||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(x);try{return p(x)}catch(n){try{return p.call(null,x)}catch(v){return p.call(this,x)}}}var t=[],l=!1,g,_=-1;function w(){if(!l||!g)return;if(l=!1,g.length)t=g.concat(t);else _=-1;if(t.length)y()}function y(){if(l)return;var x=o(w);l=!0;var n=t.length;while(n){g=t,t=[];while(++_<n)if(g)g[_].run();_=-1,n=t.length}g=null,l=!1,i(x)}z.nextTick=function(x){var n=Array(arguments.length-1);if(arguments.length>1)for(var v=1;v<arguments.length;v++)n[v-1]=arguments[v];if(t.push(new h(x,n)),t.length===1&&!l)o(y)};function h(x,n){this.fun=x,this.array=n}h.prototype.run=function(){this.fun.apply(null,this.array)},z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function T(){}z.on=T,z.addListener=T,z.once=T,z.off=T,z.removeListener=T,z.removeAllListeners=T,z.emit=T,z.binding=function(x){throw Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(x){throw Error("process.chdir is not supported")},z.umask=function(){return 0}},{}],67:[function(X,ce,L){(function(z){(function(I,p){typeof L==="object"&&typeof ce<"u"?ce.exports=p():typeof et==="function"&&et.amd?et("underscore",p):(I=typeof globalThis<"u"?globalThis:I||self,function(){var k=I._,c=I._=p();c.noConflict=function(){return I._=k,c}}())})(this,function(){var I="1.13.1",p=typeof self=="object"&&self.self===self&&self||typeof z=="object"&&z.global===z&&z||Function("return this")()||{},k=Array.prototype,c=Object.prototype,o=typeof Symbol<"u"?Symbol.prototype:null,{push:i,slice:t}=k,{toString:l,hasOwnProperty:g}=c,_=typeof ArrayBuffer<"u",w=typeof DataView<"u",y=Array.isArray,{keys:h,create:T}=Object,x=_&&ArrayBuffer.isView,n=isNaN,v=isFinite,a=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],F=Math.pow(2,53)-1;function A(b,C){return C=C==null?b.length-1:+C,function(){var V=Math.max(arguments.length-C,0),Z=Array(V),ae=0;for(;ae<V;ae++)Z[ae]=arguments[ae+C];switch(C){case 0:return b.call(this,Z);case 1:return b.call(this,arguments[0],Z);case 2:return b.call(this,arguments[0],arguments[1],Z)}var re=Array(C+1);for(ae=0;ae<C;ae++)re[ae]=arguments[ae];return re[C]=Z,b.apply(this,re)}}function W(b){var C=typeof b;return C==="function"||C==="object"&&!!b}function S(b){return b===null}function P(b){return b===void 0}function O(b){return b===!0||b===!1||l.call(b)==="[object Boolean]"}function H(b){return!!(b&&b.nodeType===1)}function ee(b){var C="[object "+b+"]";return function(V){return l.call(V)===C}}var U=ee("String"),J=ee("Number"),D=ee("Date"),te=ee("RegExp"),ye=ee("Error"),se=ee("Symbol"),ve=ee("ArrayBuffer"),le=ee("Function"),be=p.document&&p.document.childNodes;if(typeof Int8Array!="object"&&typeof be!="function")le=function(b){return typeof b=="function"||!1};var Q=le,ne=ee("Object"),Te=w&&ne(new DataView(new ArrayBuffer(8))),pe=typeof Map<"u"&&ne(new Map),de=ee("DataView");function Pe(b){return b!=null&&Q(b.getInt8)&&ve(b.buffer)}var Be=Te?Pe:de,Ie=y||ee("Array");function ke(b,C){return b!=null&&g.call(b,C)}var Ne=ee("Arguments");(function(){if(!Ne(arguments))Ne=function(b){return ke(b,"callee")}})();var Re=Ne;function We(b){return!se(b)&&v(b)&&!isNaN(parseFloat(b))}function Ae(b){return J(b)&&n(b)}function d(b){return function(){return b}}function q(b){return function(C){var V=b(C);return typeof V=="number"&&V>=0&&V<=F}}function Y(b){return function(C){return C==null?void 0:C[b]}}var j=Y("byteLength"),f=q(j),r=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function s(b){return x?x(b)&&!Be(b):f(b)&&r.test(l.call(b))}var N=_?s:d(!1),M=Y("length");function K(b){var C={};for(var V=b.length,Z=0;Z<V;++Z)C[b[Z]]=!0;return{contains:function(ae){return C[ae]},push:function(ae){return C[ae]=!0,b.push(ae)}}}function ie(b,C){C=K(C);var V=E.length,Z=b.constructor,ae=Q(Z)&&Z.prototype||c,re="constructor";if(ke(b,re)&&!C.contains(re))C.push(re);while(V--)if(re=E[V],re in b&&b[re]!==ae[re]&&!C.contains(re))C.push(re)}function ue(b){if(!W(b))return[];if(h)return h(b);var C=[];for(var V in b)if(ke(b,V))C.push(V);if(a)ie(b,C);return C}function we(b){if(b==null)return!0;var C=M(b);if(typeof C=="number"&&(Ie(b)||U(b)||Re(b)))return C===0;return M(ue(b))===0}function Se(b,C){var V=ue(C),Z=V.length;if(b==null)return!Z;var ae=Object(b);for(var re=0;re<Z;re++){var he=V[re];if(C[he]!==ae[he]||!(he in ae))return!1}return!0}function _e(b){if(b instanceof _e)return b;if(!(this instanceof _e))return new _e(b);this._wrapped=b}_e.VERSION=I,_e.prototype.value=function(){return this._wrapped},_e.prototype.valueOf=_e.prototype.toJSON=_e.prototype.value,_e.prototype.toString=function(){return String(this._wrapped)};function Fe(b){return new Uint8Array(b.buffer||b,b.byteOffset||0,j(b))}var Ze="[object DataView]";function He(b,C,V,Z){if(b===C)return b!==0||1/b===1/C;if(b==null||C==null)return!1;if(b!==b)return C!==C;var ae=typeof b;if(ae!=="function"&&ae!=="object"&&typeof C!="object")return!1;return Qe(b,C,V,Z)}function Qe(b,C,V,Z){if(b instanceof _e)b=b._wrapped;if(C instanceof _e)C=C._wrapped;var ae=l.call(b);if(ae!==l.call(C))return!1;if(Te&&ae=="[object Object]"&&Be(b)){if(!Be(C))return!1;ae=Ze}switch(ae){case"[object RegExp]":case"[object String]":return""+b===""+C;case"[object Number]":if(+b!==+b)return+C!==+C;return+b===0?1/+b===1/C:+b===+C;case"[object Date]":case"[object Boolean]":return+b===+C;case"[object Symbol]":return o.valueOf.call(b)===o.valueOf.call(C);case"[object ArrayBuffer]":case Ze:return Qe(Fe(b),Fe(C),V,Z)}var re=ae==="[object Array]";if(!re&&N(b)){var he=j(b);if(he!==j(C))return!1;if(b.buffer===C.buffer&&b.byteOffset===C.byteOffset)return!0;re=!0}if(!re){if(typeof b!="object"||typeof C!="object")return!1;var Ee=b.constructor,Le=C.constructor;if(Ee!==Le&&!(Q(Ee)&&Ee instanceof Ee&&Q(Le)&&Le instanceof Le)&&(("constructor"in b)&&("constructor"in C)))return!1}V=V||[],Z=Z||[];var Ce=V.length;while(Ce--)if(V[Ce]===b)return Z[Ce]===C;if(V.push(b),Z.push(C),re){if(Ce=b.length,Ce!==C.length)return!1;while(Ce--)if(!He(b[Ce],C[Ce],V,Z))return!1}else{var Ke=ue(b),qe;if(Ce=Ke.length,ue(C).length!==Ce)return!1;while(Ce--)if(qe=Ke[Ce],!(ke(C,qe)&&He(b[qe],C[qe],V,Z)))return!1}return V.pop(),Z.pop(),!0}function oe(b,C){return He(b,C)}function me(b){if(!W(b))return[];var C=[];for(var V in b)C.push(V);if(a)ie(b,C);return C}function xe(b){var C=M(b);return function(V){if(V==null)return!1;var Z=me(V);if(M(Z))return!1;for(var ae=0;ae<C;ae++)if(!Q(V[b[ae]]))return!1;return b!==Ge||!Q(V[De])}}var De="forEach",Me="has",Xe=["clear","delete"],ze=["get",Me,"set"],Ve=Xe.concat(De,ze),Ge=Xe.concat(ze),$e=["add"].concat(Xe,De,Me),at=pe?xe(Ve):ee("Map"),xt=pe?xe(Ge):ee("WeakMap"),kt=pe?xe($e):ee("Set"),St=ee("WeakSet");function lt(b){var C=ue(b),V=C.length,Z=Array(V);for(var ae=0;ae<V;ae++)Z[ae]=b[C[ae]];return Z}function Tt(b){var C=ue(b),V=C.length,Z=Array(V);for(var ae=0;ae<V;ae++)Z[ae]=[C[ae],b[C[ae]]];return Z}function ht(b){var C={},V=ue(b);for(var Z=0,ae=V.length;Z<ae;Z++)C[b[V[Z]]]=V[Z];return C}function _t(b){var C=[];for(var V in b)if(Q(b[V]))C.push(V);return C.sort()}function yt(b,C){return function(V){var Z=arguments.length;if(C)V=Object(V);if(Z<2||V==null)return V;for(var ae=1;ae<Z;ae++){var re=arguments[ae],he=b(re),Ee=he.length;for(var Le=0;Le<Ee;Le++){var Ce=he[Le];if(!C||V[Ce]===void 0)V[Ce]=re[Ce]}}return V}}var It=yt(me),Nt=yt(ue),R=yt(me,!0);function B(){return function(){}}function G(b){if(!W(b))return{};if(T)return T(b);var C=B();C.prototype=b;var V=new C;return C.prototype=null,V}function fe(b,C){var V=G(b);if(C)Nt(V,C);return V}function ge(b){if(!W(b))return b;return Ie(b)?b.slice():It({},b)}function Oe(b,C){return C(b),b}function je(b){return Ie(b)?b:[b]}_e.toPath=je;function Ye(b){return _e.toPath(b)}function nt(b,C){var V=C.length;for(var Z=0;Z<V;Z++){if(b==null)return;b=b[C[Z]]}return V?b:void 0}function tt(b,C,V){var Z=nt(b,Ye(C));return P(Z)?V:Z}function ot(b,C){C=Ye(C);var V=C.length;for(var Z=0;Z<V;Z++){var ae=C[Z];if(!ke(b,ae))return!1;b=b[ae]}return!!V}function st(b){return b}function it(b){return b=Nt({},b),function(C){return Se(C,b)}}function ut(b){return b=Ye(b),function(C){return nt(C,b)}}function Je(b,C,V){if(C===void 0)return b;switch(V==null?3:V){case 1:return function(Z){return b.call(C,Z)};case 3:return function(Z,ae,re){return b.call(C,Z,ae,re)};case 4:return function(Z,ae,re,he){return b.call(C,Z,ae,re,he)}}return function(){return b.apply(C,arguments)}}function ct(b,C,V){if(b==null)return st;if(Q(b))return Je(b,C,V);if(W(b)&&!Ie(b))return it(b);return ut(b)}function pt(b,C){return ct(b,C,1/0)}_e.iteratee=pt;function Ue(b,C,V){if(_e.iteratee!==pt)return _e.iteratee(b,C);return ct(b,C,V)}function At(b,C,V){C=Ue(C,V);var Z=ue(b),ae=Z.length,re={};for(var he=0;he<ae;he++){var Ee=Z[he];re[Ee]=C(b[Ee],Ee,b)}return re}function dt(){}function Ot(b){if(b==null)return dt;return function(C){return tt(b,C)}}function br(b,C,V){var Z=Array(Math.max(0,b));C=Je(C,V,1);for(var ae=0;ae<b;ae++)Z[ae]=C(ae);return Z}function Mt(b,C){if(C==null)C=b,b=0;return b+Math.floor(Math.random()*(C-b+1))}var Dt=Date.now||function(){return new Date().getTime()};function Gt(b){var C=function(re){return b[re]},V="(?:"+ue(b).join("|")+")",Z=RegExp(V),ae=RegExp(V,"g");return function(re){return re=re==null?"":""+re,Z.test(re)?re.replace(ae,C):re}}var Kt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Er=Gt(Kt),xr=ht(Kt),Tr=Gt(xr),Ir=_e.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Lt=/(.)^/,kr={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Sr=/\\|'|\r|\n|\u2028|\u2029/g;function Nr(b){return"\\"+kr[b]}var Ar=/^\s*(\w|\$)+\s*$/;function Or(b,C,V){if(!C&&V)C=V;C=R({},C,_e.templateSettings);var Z=RegExp([(C.escape||Lt).source,(C.interpolate||Lt).source,(C.evaluate||Lt).source].join("|")+"|$","g"),ae=0,re="__p+='";b.replace(Z,function(Ce,Ke,qe,vr,yr){if(re+=b.slice(ae,yr).replace(Sr,Nr),ae=yr+Ce.length,Ke)re+=`'+
|
|
45
45
|
((__t=(`+Ke+`))==null?'':_.escape(__t))+
|
|
46
46
|
'`;else if(qe)re+=`'+
|
|
47
47
|
((__t=(`+qe+`))==null?'':__t)+
|
|
@@ -53,6 +53,6 @@ __p+='`;return Ce}),re+=`';
|
|
|
53
53
|
`,he="obj";re=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
|
|
54
54
|
`+re+`return __p;
|
|
55
55
|
`;var Ee;try{Ee=Function(he,"_",re)}catch(Ce){throw Ce.source=re,Ce}var Le=function(Ce){return Ee.call(this,Ce,_e)};return Le.source="function("+he+`){
|
|
56
|
-
`+re+"}",Le}function Cr(b,C,V){C=Ye(C);var Z=C.length;if(!Z)return Q(V)?V.call(b):V;for(var ae=0;ae<Z;ae++){var re=b==null?void 0:b[C[ae]];if(re===void 0)re=V,ae=Z;b=Q(re)?re.call(b):re}return b}var Rr=0;function Mr(b){var C=++Rr+"";return b?b+C:C}function Lr(b){var C=_e(b);return C._chain=!0,C}function $t(b,C,V,Z,ae){if(!(Z instanceof C))return b.apply(V,ae);var re=G(b.prototype),he=b.apply(re,ae);if(W(he))return he;return re}var bt=A(function(b,C){var V=bt.placeholder,Z=function(){var ae=0,re=C.length,he=Array(re);for(var Ee=0;Ee<re;Ee++)he[Ee]=C[Ee]===V?arguments[ae++]:C[Ee];while(ae<arguments.length)he.push(arguments[ae++]);return $t(b,Z,this,this,he)};return Z});bt.placeholder=_e;var Jt=A(function(b,C,V){if(!Q(b))throw TypeError("Bind must be called on a function");var Z=A(function(ae){return $t(b,Z,C,this,V.concat(ae))});return Z}),rt=q(M);function gt(b,C,V,Z){if(Z=Z||[],!C&&C!==0)C=1/0;else if(C<=0)return Z.concat(b);var ae=Z.length;for(var re=0,he=M(b);re<he;re++){var Ee=b[re];if(rt(Ee)&&(Ie(Ee)||Re(Ee)))if(C>1)gt(Ee,C-1,V,Z),ae=Z.length;else{var Le=0,Ce=Ee.length;while(Le<Ce)Z[ae++]=Ee[Le++]}else if(!V)Z[ae++]=Ee}return Z}var Pr=A(function(b,C){C=gt(C,!1,!1);var V=C.length;if(V<1)throw Error("bindAll must be passed function names");while(V--){var Z=C[V];b[Z]=Jt(b[Z],b)}return b});function Fr(b,C){var V=function(Z){var ae=V.cache,re=""+(C?C.apply(this,arguments):Z);if(!ke(ae,re))ae[re]=b.apply(this,arguments);return ae[re]};return V.cache={},V}var Qt=A(function(b,C,V){return setTimeout(function(){return b.apply(null,V)},C)}),Br=bt(Qt,_e,1);function Xr(b,C,V){var Z,ae,re,he,Ee=0;if(!V)V={};var Le=function(){if(Ee=V.leading===!1?0:Dt(),Z=null,he=b.apply(ae,re),!Z)ae=re=null},Ce=function(){var Ke=Dt();if(!Ee&&V.leading===!1)Ee=Ke;var qe=C-(Ke-Ee);if(ae=this,re=arguments,qe<=0||qe>C){if(Z)clearTimeout(Z),Z=null;if(Ee=Ke,he=b.apply(ae,re),!Z)ae=re=null}else if(!Z&&V.trailing!==!1)Z=setTimeout(Le,qe);return he};return Ce.cancel=function(){clearTimeout(Z),Ee=0,Z=ae=re=null},Ce}function zr(b,C,V){var Z,ae,re,he,Ee,Le=function(){var Ke=Dt()-ae;if(C>Ke)Z=setTimeout(Le,C-Ke);else{if(Z=null,!V)he=b.apply(Ee,re);if(!Z)re=Ee=null}},Ce=A(function(Ke){if(Ee=this,re=Ke,ae=Dt(),!Z){if(Z=setTimeout(Le,C),V)he=b.apply(Ee,re)}return he});return Ce.cancel=function(){clearTimeout(Z),Z=re=Ee=null},Ce}function Ur(b,C){return bt(C,b)}function Pt(b){return function(){return!b.apply(this,arguments)}}function Wr(){var b=arguments,C=b.length-1;return function(){var V=C,Z=b[C].apply(this,arguments);while(V--)Z=b[V].call(this,Z);return Z}}function jr(b,C){return function(){if(--b<1)return C.apply(this,arguments)}}function qt(b,C){var V;return function(){if(--b>0)V=C.apply(this,arguments);if(b<=1)C=null;return V}}var Hr=bt(qt,2);function er(b,C,V){C=Ue(C,V);var Z=ue(b),ae;for(var re=0,he=Z.length;re<he;re++)if(ae=Z[re],C(b[ae],ae,b))return ae}function tr(b){return function(C,V,Z){V=Ue(V,Z);var ae=M(C),re=b>0?0:ae-1;for(;re>=0&&re<ae;re+=b)if(V(C[re],re,C))return re;return-1}}var Ft=tr(1),rr=tr(-1);function nr(b,C,V,Z){V=Ue(V,Z,1);var ae=V(C),re=0,he=M(b);while(re<he){var Ee=Math.floor((re+he)/2);if(V(b[Ee])<ae)re=Ee+1;else he=Ee}return re}function ir(b,C,V){return function(Z,ae,re){var he=0,Ee=M(Z);if(typeof re=="number")if(b>0)he=re>=0?re:Math.max(re+Ee,he);else Ee=re>=0?Math.min(re+1,Ee):re+Ee+1;else if(V&&re&&Ee)return re=V(Z,ae),Z[re]===ae?re:-1;if(ae!==ae)return re=C(t.call(Z,he,Ee),Ae),re>=0?re+he:-1;for(re=b>0?he:Ee-1;re>=0&&re<Ee;re+=b)if(Z[re]===ae)return re;return-1}}var ar=ir(1,Ft,nr),Vr=ir(-1,rr);function Bt(b,C,V){var Z=rt(b)?Ft:er,ae=Z(b,C,V);if(ae!==void 0&&ae!==-1)return b[ae]}function Zr(b,C){return Bt(b,it(C))}function mt(b,C,V){C=Je(C,V);var Z,ae;if(rt(b))for(Z=0,ae=b.length;Z<ae;Z++)C(b[Z],Z,b);else{var re=ue(b);for(Z=0,ae=re.length;Z<ae;Z++)C(b[re[Z]],re[Z],b)}return b}function wt(b,C,V){C=Ue(C,V);var Z=!rt(b)&&ue(b),ae=(Z||b).length,re=Array(ae);for(var he=0;he<ae;he++){var Ee=Z?Z[he]:he;re[he]=C(b[Ee],Ee,b)}return re}function or(b){var C=function(V,Z,ae,re){var he=!rt(V)&&ue(V),Ee=(he||V).length,Le=b>0?0:Ee-1;if(!re)ae=V[he?he[Le]:Le],Le+=b;for(;Le>=0&&Le<Ee;Le+=b){var Ce=he?he[Le]:Le;ae=Z(ae,V[Ce],Ce,V)}return ae};return function(V,Z,ae,re){var he=arguments.length>=3;return C(V,Je(Z,re,4),ae,he)}}var Xt=or(1),sr=or(-1);function Et(b,C,V){var Z=[];return C=Ue(C,V),mt(b,function(ae,re,he){if(C(ae,re,he))Z.push(ae)}),Z}function Yr(b,C,V){return Et(b,Pt(Ue(C)),V)}function ur(b,C,V){C=Ue(C,V);var Z=!rt(b)&&ue(b),ae=(Z||b).length;for(var re=0;re<ae;re++){var he=Z?Z[re]:re;if(!C(b[he],he,b))return!1}return!0}function lr(b,C,V){C=Ue(C,V);var Z=!rt(b)&&ue(b),ae=(Z||b).length;for(var re=0;re<ae;re++){var he=Z?Z[re]:re;if(C(b[he],he,b))return!0}return!1}function vt(b,C,V,Z){if(!rt(b))b=lt(b);if(typeof V!="number"||Z)V=0;return ar(b,C,V)>=0}var Gr=A(function(b,C,V){var Z,ae;if(Q(C))ae=C;else C=Ye(C),Z=C.slice(0,-1),C=C[C.length-1];return wt(b,function(re){var he=ae;if(!he){if(Z&&Z.length)re=nt(re,Z);if(re==null)return;he=re[C]}return he==null?he:he.apply(re,V)})});function zt(b,C){return wt(b,ut(C))}function Kr(b,C){return Et(b,it(C))}function cr(b,C,V){var Z=-1/0,ae=-1/0,re,he;if(C==null||typeof C=="number"&&typeof b[0]!="object"&&b!=null){b=rt(b)?b:lt(b);for(var Ee=0,Le=b.length;Ee<Le;Ee++)if(re=b[Ee],re!=null&&re>Z)Z=re}else C=Ue(C,V),mt(b,function(Ce,Ke,qe){if(he=C(Ce,Ke,qe),he>ae||he===-1/0&&Z===-1/0)Z=Ce,ae=he});return Z}function $r(b,C,V){var Z=1/0,ae=1/0,re,he;if(C==null||typeof C=="number"&&typeof b[0]!="object"&&b!=null){b=rt(b)?b:lt(b);for(var Ee=0,Le=b.length;Ee<Le;Ee++)if(re=b[Ee],re!=null&&re<Z)Z=re}else C=Ue(C,V),mt(b,function(Ce,Ke,qe){if(he=C(Ce,Ke,qe),he<ae||he===1/0&&Z===1/0)Z=Ce,ae=he});return Z}function fr(b,C,V){if(C==null||V){if(!rt(b))b=lt(b);return b[Mt(b.length-1)]}var Z=rt(b)?ge(b):lt(b),ae=M(Z);C=Math.max(Math.min(C,ae),0);var re=ae-1;for(var he=0;he<C;he++){var Ee=Mt(he,re),Le=Z[he];Z[he]=Z[Ee],Z[Ee]=Le}return Z.slice(0,C)}function Jr(b){return fr(b,1/0)}function Qr(b,C,V){var Z=0;return C=Ue(C,V),zt(wt(b,function(ae,re,he){return{value:ae,index:Z++,criteria:C(ae,re,he)}}).sort(function(ae,re){var he=ae.criteria,Ee=re.criteria;if(he!==Ee){if(he>Ee||he===void 0)return 1;if(he<Ee||Ee===void 0)return-1}return ae.index-re.index}),"value")}function Ct(b,C){return function(V,Z,ae){var re=C?[[],[]]:{};return Z=Ue(Z,ae),mt(V,function(he,Ee){var Le=Z(he,Ee,V);b(re,he,Le)}),re}}var qr=Ct(function(b,C,V){if(ke(b,V))b[V].push(C);else b[V]=[C]}),en=Ct(function(b,C,V){b[V]=C}),tn=Ct(function(b,C,V){if(ke(b,V))b[V]++;else b[V]=1}),rn=Ct(function(b,C,V){b[V?0:1].push(C)},!0),nn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function an(b){if(!b)return[];if(Ie(b))return t.call(b);if(U(b))return b.match(nn);if(rt(b))return wt(b,st);return lt(b)}function sn(b){if(b==null)return 0;return rt(b)?b.length:ue(b).length}function un(b,C,V){return C in V}var hr=A(function(b,C){var V={},Z=C[0];if(b==null)return V;if(Q(Z)){if(C.length>1)Z=Je(Z,C[1]);C=me(b)}else Z=un,C=gt(C,!1,!1),b=Object(b);for(var ae=0,re=C.length;ae<re;ae++){var he=C[ae],Ee=b[he];if(Z(Ee,he,b))V[he]=Ee}return V}),ln=A(function(b,C){var V=C[0],Z;if(Q(V)){if(V=Pt(V),C.length>1)Z=C[1]}else C=wt(gt(C,!1,!1),String),V=function(ae,re){return!vt(C,re)};return hr(b,V,Z)});function pr(b,C,V){return t.call(b,0,Math.max(0,b.length-(C==null||V?1:C)))}function Ut(b,C,V){if(b==null||b.length<1)return C==null||V?void 0:[];if(C==null||V)return b[0];return pr(b,b.length-C)}function Rt(b,C,V){return t.call(b,C==null||V?1:C)}function cn(b,C,V){if(b==null||b.length<1)return C==null||V?void 0:[];if(C==null||V)return b[b.length-1];return Rt(b,Math.max(0,b.length-C))}function fn(b){return Et(b,Boolean)}function hn(b,C){return gt(b,C,!1)}var dr=A(function(b,C){return C=gt(C,!0,!0),Et(b,function(V){return!vt(C,V)})}),pn=A(function(b,C){return dr(b,C)});function Wt(b,C,V,Z){if(!O(C))Z=V,V=C,C=!1;if(V!=null)V=Ue(V,Z);var ae=[],re=[];for(var he=0,Ee=M(b);he<Ee;he++){var Le=b[he],Ce=V?V(Le,he,b):Le;if(C&&!V){if(!he||re!==Ce)ae.push(Le);re=Ce}else if(V){if(!vt(re,Ce))re.push(Ce),ae.push(Le)}else if(!vt(ae,Le))ae.push(Le)}return ae}var dn=A(function(b){return Wt(gt(b,!0,!0))});function mn(b){var C=[],V=arguments.length;for(var Z=0,ae=M(b);Z<ae;Z++){var re=b[Z];if(vt(C,re))continue;var he;for(he=1;he<V;he++)if(!vt(arguments[he],re))break;if(he===V)C.push(re)}return C}function jt(b){var C=b&&cr(b,M).length||0,V=Array(C);for(var Z=0;Z<C;Z++)V[Z]=zt(b,Z);return V}var yn=A(jt);function gn(b,C){var V={};for(var Z=0,ae=M(b);Z<ae;Z++)if(C)V[b[Z]]=C[Z];else V[b[Z][0]]=b[Z][1];return V}function wn(b,C,V){if(C==null)C=b||0,b=0;if(!V)V=C<b?-1:1;var Z=Math.max(Math.ceil((C-b)/V),0),ae=Array(Z);for(var re=0;re<Z;re++,b+=V)ae[re]=b;return ae}function _n(b,C){if(C==null||C<1)return[];var V=[],Z=0,ae=b.length;while(Z<ae)V.push(t.call(b,Z,Z+=C));return V}function Ht(b,C){return b._chain?_e(C).chain():C}function mr(b){return mt(_t(b),function(C){var V=_e[C]=b[C];_e.prototype[C]=function(){var Z=[this._wrapped];return i.apply(Z,arguments),Ht(this,V.apply(_e,Z))}}),_e}mt(["pop","push","reverse","shift","sort","splice","unshift"],function(b){var C=k[b];_e.prototype[b]=function(){var V=this._wrapped;if(V!=null){if(C.apply(V,arguments),(b==="shift"||b==="splice")&&V.length===0)delete V[0]}return Ht(this,V)}}),mt(["concat","join","slice"],function(b){var C=k[b];_e.prototype[b]=function(){var V=this._wrapped;if(V!=null)V=C.apply(V,arguments);return Ht(this,V)}});var bn={__proto__:null,VERSION:I,restArguments:A,isObject:W,isNull:S,isUndefined:P,isBoolean:O,isElement:H,isString:U,isNumber:J,isDate:D,isRegExp:te,isError:ye,isSymbol:se,isArrayBuffer:ve,isDataView:Be,isArray:Ie,isFunction:Q,isArguments:Re,isFinite:We,isNaN:Ae,isTypedArray:N,isEmpty:we,isMatch:Se,isEqual:oe,isMap:at,isWeakMap:xt,isSet:kt,isWeakSet:St,keys:ue,allKeys:me,values:lt,pairs:Tt,invert:ht,functions:_t,methods:_t,extend:It,extendOwn:Nt,assign:Nt,defaults:R,create:fe,clone:ge,tap:Oe,get:tt,has:ot,mapObject:At,identity:st,constant:d,noop:dt,toPath:je,property:ut,propertyOf:Ot,matcher:it,matches:it,times:br,random:Mt,now:Dt,escape:Er,unescape:Tr,templateSettings:Dr,template:Or,result:Cr,uniqueId:Mr,chain:Lr,iteratee:pt,partial:bt,bind:Jt,bindAll:Pr,memoize:Fr,delay:Qt,defer:Br,throttle:Xr,debounce:zr,wrap:Ur,negate:Pt,compose:Wr,after:jr,before:qt,once:Hr,findKey:er,findIndex:Ft,findLastIndex:rr,sortedIndex:nr,indexOf:ar,lastIndexOf:Vr,find:Bt,detect:Bt,findWhere:Zr,each:mt,forEach:mt,map:wt,collect:wt,reduce:Xt,foldl:Xt,inject:Xt,reduceRight:sr,foldr:sr,filter:Et,select:Et,reject:Yr,every:ur,all:ur,some:lr,any:lr,contains:vt,includes:vt,include:vt,invoke:Gr,pluck:zt,where:Kr,max:cr,min:$r,shuffle:Jr,sample:fr,sortBy:Qr,groupBy:qr,indexBy:en,countBy:tn,partition:rn,toArray:an,size:sn,pick:hr,omit:ln,first:Ut,head:Ut,take:Ut,initial:pr,last:cn,rest:Rt,tail:Rt,drop:Rt,compact:fn,flatten:hn,without:pn,uniq:Wt,unique:Wt,union:dn,intersection:mn,difference:dr,unzip:jt,transpose:jt,zip:yn,object:gn,range:wn,chunk:_n,mixin:mr,default:_e},Vt=mr(bn);return Vt._=Vt,Vt})}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],68:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t=[].slice,l={}.hasOwnProperty;z=function(){var g,_,w,y,h,T;if(T=arguments[0],h=2<=arguments.length?t.call(arguments,1):[],c(Object.assign))Object.assign.apply(null,arguments);else for(g=0,w=h.length;g<w;g++)if(y=h[g],y!=null)for(_ in y){if(!l.call(y,_))continue;T[_]=y[_]}return T},c=function(g){return!!g&&Object.prototype.toString.call(g)==="[object Function]"},o=function(g){var _;return!!g&&((_=typeof g)==="function"||_==="object")},p=function(g){if(c(Array.isArray))return Array.isArray(g);else return Object.prototype.toString.call(g)==="[object Array]"},k=function(g){var _;if(p(g))return!g.length;else{for(_ in g){if(!l.call(g,_))continue;return!1}return!0}},i=function(g){var _,w;return o(g)&&(w=Object.getPrototypeOf(g))&&(_=w.constructor)&&typeof _==="function"&&_ instanceof _&&Function.prototype.toString.call(_)===Function.prototype.toString.call(Object)},I=function(g){if(c(g.valueOf))return g.valueOf();else return g},ce.exports.assign=z,ce.exports.isFunction=c,ce.exports.isObject=o,ce.exports.isArray=p,ce.exports.isEmpty=k,ce.exports.isPlainObject=i,ce.exports.getValue=I}).call(this)},{}],69:[function(X,ce,L){(function(){var z;ce.exports=z=function(){function I(p,k,c){if(this.options=p.options,this.stringify=p.stringify,this.parent=p,k==null)throw Error("Missing attribute name. "+this.debugInfo(k));if(c==null)throw Error("Missing attribute value. "+this.debugInfo(k));this.name=this.stringify.attName(k),this.value=this.stringify.attValue(c)}return I.prototype.clone=function(){return Object.create(this)},I.prototype.toString=function(p){return this.options.writer.set(p).attribute(this)},I.prototype.debugInfo=function(p){var k,c;if(p=p||this.name,p==null&&!((k=this.parent)!=null?k.name:void 0))return"";else if(p==null)return"parent: <"+this.parent.name+">";else if(!((c=this.parent)!=null?c.name:void 0))return"attribute: {"+p+"}";else return"attribute: {"+p+"}, parent: <"+this.parent.name+">"},I}()}).call(this)},{}],70:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).cdata(this)},o}(I)}).call(this)},{"./XMLNode":81}],71:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).comment(this)},o}(I)}).call(this)},{"./XMLNode":81}],72:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t,l,g,_,w){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing DTD element name. "+this.debugInfo());if(l==null)throw Error("Missing DTD attribute name. "+this.debugInfo(t));if(!g)throw Error("Missing DTD attribute type. "+this.debugInfo(t));if(!_)throw Error("Missing DTD attribute default. "+this.debugInfo(t));if(_.indexOf("#")!==0)_="#"+_;if(!_.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(t));if(w&&!_.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(t));this.elementName=this.stringify.eleName(t),this.attributeName=this.stringify.attName(l),this.attributeType=this.stringify.dtdAttType(g),this.defaultValue=this.stringify.dtdAttDefault(w),this.defaultValueType=_}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdAttList(this)},o}(I)}).call(this)},{"./XMLNode":81}],73:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t,l){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing DTD element name. "+this.debugInfo());if(!l)l="(#PCDATA)";if(Array.isArray(l))l="("+l.join(",")+")";this.name=this.stringify.eleName(t),this.value=this.stringify.dtdElementValue(l)}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdElement(this)},o}(I)}).call(this)},{"./XMLNode":81}],74:[function(X,ce,L){(function(){var z,I,p,k=function(o,i){for(var t in i)if(c.call(i,t))o[t]=i[t];function l(){this.constructor=o}return l.prototype=i.prototype,o.prototype=new l,o.__super__=i.prototype,o},c={}.hasOwnProperty;p=X("./Utility").isObject,I=X("./XMLNode"),ce.exports=z=function(o){k(i,o);function i(t,l,g,_){if(i.__super__.constructor.call(this,t),g==null)throw Error("Missing DTD entity name. "+this.debugInfo(g));if(_==null)throw Error("Missing DTD entity value. "+this.debugInfo(g));if(this.pe=!!l,this.name=this.stringify.eleName(g),!p(_))this.value=this.stringify.dtdEntityValue(_);else{if(!_.pubID&&!_.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(g));if(_.pubID&&!_.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(g));if(_.pubID!=null)this.pubID=this.stringify.dtdPubID(_.pubID);if(_.sysID!=null)this.sysID=this.stringify.dtdSysID(_.sysID);if(_.nData!=null)this.nData=this.stringify.dtdNData(_.nData);if(this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(g))}}return i.prototype.toString=function(t){return this.options.writer.set(t).dtdEntity(this)},i}(I)}).call(this)},{"./Utility":68,"./XMLNode":81}],75:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t,l){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing DTD notation name. "+this.debugInfo(t));if(!l.pubID&&!l.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(t));if(this.name=this.stringify.eleName(t),l.pubID!=null)this.pubID=this.stringify.dtdPubID(l.pubID);if(l.sysID!=null)this.sysID=this.stringify.dtdSysID(l.sysID)}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdNotation(this)},o}(I)}).call(this)},{"./XMLNode":81}],76:[function(X,ce,L){(function(){var z,I,p,k=function(o,i){for(var t in i)if(c.call(i,t))o[t]=i[t];function l(){this.constructor=o}return l.prototype=i.prototype,o.prototype=new l,o.__super__=i.prototype,o},c={}.hasOwnProperty;p=X("./Utility").isObject,I=X("./XMLNode"),ce.exports=z=function(o){k(i,o);function i(t,l,g,_){var w;if(i.__super__.constructor.call(this,t),p(l))w=l,l=w.version,g=w.encoding,_=w.standalone;if(!l)l="1.0";if(this.version=this.stringify.xmlVersion(l),g!=null)this.encoding=this.stringify.xmlEncoding(g);if(_!=null)this.standalone=this.stringify.xmlStandalone(_)}return i.prototype.toString=function(t){return this.options.writer.set(t).declaration(this)},i}(I)}).call(this)},{"./Utility":68,"./XMLNode":81}],77:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t=function(g,_){for(var w in _)if(l.call(_,w))g[w]=_[w];function y(){this.constructor=g}return y.prototype=_.prototype,g.prototype=new y,g.__super__=_.prototype,g},l={}.hasOwnProperty;i=X("./Utility").isObject,o=X("./XMLNode"),z=X("./XMLDTDAttList"),p=X("./XMLDTDEntity"),I=X("./XMLDTDElement"),k=X("./XMLDTDNotation"),ce.exports=c=function(g){t(_,g);function _(w,y,h){var T,x;if(_.__super__.constructor.call(this,w),this.name="!DOCTYPE",this.documentObject=w,i(y))T=y,y=T.pubID,h=T.sysID;if(h==null)x=[y,h],h=x[0],y=x[1];if(y!=null)this.pubID=this.stringify.dtdPubID(y);if(h!=null)this.sysID=this.stringify.dtdSysID(h)}return _.prototype.element=function(w,y){var h=new I(this,w,y);return this.children.push(h),this},_.prototype.attList=function(w,y,h,T,x){var n=new z(this,w,y,h,T,x);return this.children.push(n),this},_.prototype.entity=function(w,y){var h=new p(this,!1,w,y);return this.children.push(h),this},_.prototype.pEntity=function(w,y){var h=new p(this,!0,w,y);return this.children.push(h),this},_.prototype.notation=function(w,y){var h=new k(this,w,y);return this.children.push(h),this},_.prototype.toString=function(w){return this.options.writer.set(w).docType(this)},_.prototype.ele=function(w,y){return this.element(w,y)},_.prototype.att=function(w,y,h,T,x){return this.attList(w,y,h,T,x)},_.prototype.ent=function(w,y){return this.entity(w,y)},_.prototype.pent=function(w,y){return this.pEntity(w,y)},_.prototype.not=function(w,y){return this.notation(w,y)},_.prototype.up=function(){return this.root()||this.documentObject},_}(o)}).call(this)},{"./Utility":68,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLNode":81}],78:[function(X,ce,L){(function(){var z,I,p,k,c,o=function(t,l){for(var g in l)if(i.call(l,g))t[g]=l[g];function _(){this.constructor=t}return _.prototype=l.prototype,t.prototype=new _,t.__super__=l.prototype,t},i={}.hasOwnProperty;c=X("./Utility").isPlainObject,I=X("./XMLNode"),k=X("./XMLStringifier"),p=X("./XMLStringWriter"),ce.exports=z=function(t){o(l,t);function l(g){if(l.__super__.constructor.call(this,null),this.name="?xml",g||(g={}),!g.writer)g.writer=new p;this.options=g,this.stringify=new k(g),this.isDocument=!0}return l.prototype.end=function(g){var _;if(!g)g=this.options.writer;else if(c(g))_=g,g=this.options.writer.set(_);return g.document(this)},l.prototype.toString=function(g){return this.options.writer.set(g).document(this)},l}(I)}).call(this)},{"./Utility":68,"./XMLNode":81,"./XMLStringWriter":85,"./XMLStringifier":86}],79:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T,x,n,v,a,E,F,A={}.hasOwnProperty;F=X("./Utility"),a=F.isObject,v=F.isFunction,E=F.isPlainObject,n=F.getValue,_=X("./XMLElement"),I=X("./XMLCData"),p=X("./XMLComment"),y=X("./XMLRaw"),x=X("./XMLText"),w=X("./XMLProcessingInstruction"),t=X("./XMLDeclaration"),l=X("./XMLDocType"),k=X("./XMLDTDAttList"),o=X("./XMLDTDEntity"),c=X("./XMLDTDElement"),i=X("./XMLDTDNotation"),z=X("./XMLAttribute"),T=X("./XMLStringifier"),h=X("./XMLStringWriter"),ce.exports=g=function(){function W(S,P,O){var H;if(this.name="?xml",S||(S={}),!S.writer)S.writer=new h(S);else if(E(S.writer))H=S.writer,S.writer=new h(H);this.options=S,this.writer=S.writer,this.stringify=new T(S),this.onDataCallback=P||function(){},this.onEndCallback=O||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return W.prototype.node=function(S,P,O){var H;if(S==null)throw Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw Error("Document can only have one root node. "+this.debugInfo(S));if(this.openCurrent(),S=n(S),P==null)P={};if(P=n(P),!a(P))H=[P,O],O=H[0],P=H[1];if(this.currentNode=new _(this,S,P),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,O!=null)this.text(O);return this},W.prototype.element=function(S,P,O){if(this.currentNode&&this.currentNode instanceof l)return this.dtdElement.apply(this,arguments);else return this.node(S,P,O)},W.prototype.attribute=function(S,P){var O,H;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(S));if(S!=null)S=n(S);if(a(S))for(O in S){if(!A.call(S,O))continue;H=S[O],this.attribute(O,H)}else{if(v(P))P=P.apply();if(!this.options.skipNullAttributes||P!=null)this.currentNode.attributes[S]=new z(this,S,P)}return this},W.prototype.text=function(S){var P;return this.openCurrent(),P=new x(this,S),this.onData(this.writer.text(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.cdata=function(S){var P;return this.openCurrent(),P=new I(this,S),this.onData(this.writer.cdata(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.comment=function(S){var P;return this.openCurrent(),P=new p(this,S),this.onData(this.writer.comment(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.raw=function(S){var P;return this.openCurrent(),P=new y(this,S),this.onData(this.writer.raw(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.instruction=function(S,P){var O,H,ee,U,J;if(this.openCurrent(),S!=null)S=n(S);if(P!=null)P=n(P);if(Array.isArray(S))for(O=0,U=S.length;O<U;O++)H=S[O],this.instruction(H);else if(a(S))for(H in S){if(!A.call(S,H))continue;ee=S[H],this.instruction(H,ee)}else{if(v(P))P=P.apply();J=new w(this,S,P),this.onData(this.writer.processingInstruction(J,this.currentLevel+1),this.currentLevel+1)}return this},W.prototype.declaration=function(S,P,O){var H;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return H=new t(this,S,P,O),this.onData(this.writer.declaration(H,this.currentLevel+1),this.currentLevel+1),this},W.prototype.doctype=function(S,P,O){if(this.openCurrent(),S==null)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new l(this,P,O),this.currentNode.rootNodeName=S,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},W.prototype.dtdElement=function(S,P){var O;return this.openCurrent(),O=new c(this,S,P),this.onData(this.writer.dtdElement(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.attList=function(S,P,O,H,ee){var U;return this.openCurrent(),U=new k(this,S,P,O,H,ee),this.onData(this.writer.dtdAttList(U,this.currentLevel+1),this.currentLevel+1),this},W.prototype.entity=function(S,P){var O;return this.openCurrent(),O=new o(this,!1,S,P),this.onData(this.writer.dtdEntity(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.pEntity=function(S,P){var O;return this.openCurrent(),O=new o(this,!0,S,P),this.onData(this.writer.dtdEntity(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.notation=function(S,P){var O;return this.openCurrent(),O=new i(this,S,P),this.onData(this.writer.dtdNotation(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.up=function(){if(this.currentLevel<0)throw Error("The document node has no parent.");if(this.currentNode){if(this.currentNode.children)this.closeNode(this.currentNode);else this.openNode(this.currentNode);this.currentNode=null}else this.closeNode(this.openTags[this.currentLevel]);return delete this.openTags[this.currentLevel],this.currentLevel--,this},W.prototype.end=function(){while(this.currentLevel>=0)this.up();return this.onEnd()},W.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},W.prototype.openNode=function(S){if(!S.isOpen){if(!this.root&&this.currentLevel===0&&S instanceof _)this.root=S;return this.onData(this.writer.openNode(S,this.currentLevel),this.currentLevel),S.isOpen=!0}},W.prototype.closeNode=function(S){if(!S.isClosed)return this.onData(this.writer.closeNode(S,this.currentLevel),this.currentLevel),S.isClosed=!0},W.prototype.onData=function(S,P){return this.documentStarted=!0,this.onDataCallback(S,P+1)},W.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},W.prototype.debugInfo=function(S){if(S==null)return"";else return"node: <"+S+">"},W.prototype.ele=function(){return this.element.apply(this,arguments)},W.prototype.nod=function(S,P,O){return this.node(S,P,O)},W.prototype.txt=function(S){return this.text(S)},W.prototype.dat=function(S){return this.cdata(S)},W.prototype.com=function(S){return this.comment(S)},W.prototype.ins=function(S,P){return this.instruction(S,P)},W.prototype.dec=function(S,P,O){return this.declaration(S,P,O)},W.prototype.dtd=function(S,P,O){return this.doctype(S,P,O)},W.prototype.e=function(S,P,O){return this.element(S,P,O)},W.prototype.n=function(S,P,O){return this.node(S,P,O)},W.prototype.t=function(S){return this.text(S)},W.prototype.d=function(S){return this.cdata(S)},W.prototype.c=function(S){return this.comment(S)},W.prototype.r=function(S){return this.raw(S)},W.prototype.i=function(S,P){return this.instruction(S,P)},W.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof l)return this.attList.apply(this,arguments);else return this.attribute.apply(this,arguments)},W.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof l)return this.attList.apply(this,arguments);else return this.attribute.apply(this,arguments)},W.prototype.ent=function(S,P){return this.entity(S,P)},W.prototype.pent=function(S,P){return this.pEntity(S,P)},W.prototype.not=function(S,P){return this.notation(S,P)},W}()}).call(this)},{"./Utility":68,"./XMLAttribute":69,"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLStringWriter":85,"./XMLStringifier":86,"./XMLText":87}],80:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t=function(g,_){for(var w in _)if(l.call(_,w))g[w]=_[w];function y(){this.constructor=g}return y.prototype=_.prototype,g.prototype=new y,g.__super__=_.prototype,g},l={}.hasOwnProperty;i=X("./Utility"),o=i.isObject,c=i.isFunction,k=i.getValue,p=X("./XMLNode"),z=X("./XMLAttribute"),ce.exports=I=function(g){t(_,g);function _(w,y,h){if(_.__super__.constructor.call(this,w),y==null)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.eleName(y),this.attributes={},h!=null)this.attribute(h);if(w.isDocument)this.isRoot=!0,this.documentObject=w,w.rootObject=this}return _.prototype.clone=function(){var w,y,h,T;if(h=Object.create(this),h.isRoot)h.documentObject=null;h.attributes={},T=this.attributes;for(y in T){if(!l.call(T,y))continue;w=T[y],h.attributes[y]=w.clone()}return h.children=[],this.children.forEach(function(x){var n=x.clone();return n.parent=h,h.children.push(n)}),h},_.prototype.attribute=function(w,y){var h,T;if(w!=null)w=k(w);if(o(w))for(h in w){if(!l.call(w,h))continue;T=w[h],this.attribute(h,T)}else{if(c(y))y=y.apply();if(!this.options.skipNullAttributes||y!=null)this.attributes[w]=new z(this,w,y)}return this},_.prototype.removeAttribute=function(w){var y,h,T;if(w==null)throw Error("Missing attribute name. "+this.debugInfo());if(w=k(w),Array.isArray(w))for(h=0,T=w.length;h<T;h++)y=w[h],delete this.attributes[y];else delete this.attributes[w];return this},_.prototype.toString=function(w){return this.options.writer.set(w).element(this)},_.prototype.att=function(w,y){return this.attribute(w,y)},_.prototype.a=function(w,y){return this.attribute(w,y)},_}(p)}).call(this)},{"./Utility":68,"./XMLAttribute":69,"./XMLNode":81}],81:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T={}.hasOwnProperty;h=X("./Utility"),y=h.isObject,w=h.isFunction,_=h.isEmpty,g=h.getValue,c=null,z=null,I=null,p=null,k=null,t=null,l=null,i=null,ce.exports=o=function(){function x(n){if(this.parent=n,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(this.children=[],!c)c=X("./XMLElement"),z=X("./XMLCData"),I=X("./XMLComment"),p=X("./XMLDeclaration"),k=X("./XMLDocType"),t=X("./XMLRaw"),l=X("./XMLText"),i=X("./XMLProcessingInstruction")}return x.prototype.element=function(n,v,a){var E,F,A,W,S,P,O,H,ee,U;if(P=null,v==null)v={};if(v=g(v),!y(v))ee=[v,a],a=ee[0],v=ee[1];if(n!=null)n=g(n);if(Array.isArray(n))for(A=0,O=n.length;A<O;A++)F=n[A],P=this.element(F);else if(w(n))P=this.element(n.apply());else if(y(n))for(S in n){if(!T.call(n,S))continue;if(U=n[S],w(U))U=U.apply();if(y(U)&&_(U))U=null;if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&S.indexOf(this.stringify.convertAttKey)===0)P=this.attribute(S.substr(this.stringify.convertAttKey.length),U);else if(!this.options.separateArrayItems&&Array.isArray(U))for(W=0,H=U.length;W<H;W++)F=U[W],E={},E[S]=F,P=this.element(E);else if(y(U))P=this.element(S),P.element(U);else P=this.element(S,U)}else if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&n.indexOf(this.stringify.convertTextKey)===0)P=this.text(a);else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&n.indexOf(this.stringify.convertCDataKey)===0)P=this.cdata(a);else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&n.indexOf(this.stringify.convertCommentKey)===0)P=this.comment(a);else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&n.indexOf(this.stringify.convertRawKey)===0)P=this.raw(a);else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&n.indexOf(this.stringify.convertPIKey)===0)P=this.instruction(n.substr(this.stringify.convertPIKey.length),a);else P=this.node(n,v,a);if(P==null)throw Error("Could not create any elements with: "+n+". "+this.debugInfo());return P},x.prototype.insertBefore=function(n,v,a){var E,F,A;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(n));return F=this.parent.children.indexOf(this),A=this.parent.children.splice(F),E=this.parent.element(n,v,a),Array.prototype.push.apply(this.parent.children,A),E},x.prototype.insertAfter=function(n,v,a){var E,F,A;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(n));return F=this.parent.children.indexOf(this),A=this.parent.children.splice(F+1),E=this.parent.element(n,v,a),Array.prototype.push.apply(this.parent.children,A),E},x.prototype.remove=function(){var n,v;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return n=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[n,n-n+1].concat(v=[])),this.parent},x.prototype.node=function(n,v,a){var E,F;if(n!=null)n=g(n);if(v||(v={}),v=g(v),!y(v))F=[v,a],a=F[0],v=F[1];if(E=new c(this,n,v),a!=null)E.text(a);return this.children.push(E),E},x.prototype.text=function(n){var v=new l(this,n);return this.children.push(v),this},x.prototype.cdata=function(n){var v=new z(this,n);return this.children.push(v),this},x.prototype.comment=function(n){var v=new I(this,n);return this.children.push(v),this},x.prototype.commentBefore=function(n){var v,a,E;return a=this.parent.children.indexOf(this),E=this.parent.children.splice(a),v=this.parent.comment(n),Array.prototype.push.apply(this.parent.children,E),this},x.prototype.commentAfter=function(n){var v,a,E;return a=this.parent.children.indexOf(this),E=this.parent.children.splice(a+1),v=this.parent.comment(n),Array.prototype.push.apply(this.parent.children,E),this},x.prototype.raw=function(n){var v=new t(this,n);return this.children.push(v),this},x.prototype.instruction=function(n,v){var a,E,F,A,W;if(n!=null)n=g(n);if(v!=null)v=g(v);if(Array.isArray(n))for(A=0,W=n.length;A<W;A++)a=n[A],this.instruction(a);else if(y(n))for(a in n){if(!T.call(n,a))continue;E=n[a],this.instruction(a,E)}else{if(w(v))v=v.apply();F=new i(this,n,v),this.children.push(F)}return this},x.prototype.instructionBefore=function(n,v){var a,E,F;return E=this.parent.children.indexOf(this),F=this.parent.children.splice(E),a=this.parent.instruction(n,v),Array.prototype.push.apply(this.parent.children,F),this},x.prototype.instructionAfter=function(n,v){var a,E,F;return E=this.parent.children.indexOf(this),F=this.parent.children.splice(E+1),a=this.parent.instruction(n,v),Array.prototype.push.apply(this.parent.children,F),this},x.prototype.declaration=function(n,v,a){var E,F;if(E=this.document(),F=new p(E,n,v,a),E.children[0]instanceof p)E.children[0]=F;else E.children.unshift(F);return E.root()||E},x.prototype.doctype=function(n,v){var a,E,F,A,W,S,P,O,H,ee;E=this.document(),F=new k(E,n,v),H=E.children;for(A=W=0,P=H.length;W<P;A=++W)if(a=H[A],a instanceof k)return E.children[A]=F,F;ee=E.children;for(A=S=0,O=ee.length;S<O;A=++S)if(a=ee[A],a.isRoot)return E.children.splice(A,0,F),F;return E.children.push(F),F},x.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},x.prototype.root=function(){var n=this;while(n)if(n.isDocument)return n.rootObject;else if(n.isRoot)return n;else n=n.parent},x.prototype.document=function(){var n=this;while(n)if(n.isDocument)return n;else n=n.parent},x.prototype.end=function(n){return this.document().end(n)},x.prototype.prev=function(){var n=this.parent.children.indexOf(this);if(n<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[n-1]},x.prototype.next=function(){var n=this.parent.children.indexOf(this);if(n===-1||n===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[n+1]},x.prototype.importDocument=function(n){var v=n.root().clone();return v.parent=this,v.isRoot=!1,this.children.push(v),this},x.prototype.debugInfo=function(n){var v,a;if(n=n||this.name,n==null&&!((v=this.parent)!=null?v.name:void 0))return"";else if(n==null)return"parent: <"+this.parent.name+">";else if(!((a=this.parent)!=null?a.name:void 0))return"node: <"+n+">";else return"node: <"+n+">, parent: <"+this.parent.name+">"},x.prototype.ele=function(n,v,a){return this.element(n,v,a)},x.prototype.nod=function(n,v,a){return this.node(n,v,a)},x.prototype.txt=function(n){return this.text(n)},x.prototype.dat=function(n){return this.cdata(n)},x.prototype.com=function(n){return this.comment(n)},x.prototype.ins=function(n,v){return this.instruction(n,v)},x.prototype.doc=function(){return this.document()},x.prototype.dec=function(n,v,a){return this.declaration(n,v,a)},x.prototype.dtd=function(n,v){return this.doctype(n,v)},x.prototype.e=function(n,v,a){return this.element(n,v,a)},x.prototype.n=function(n,v,a){return this.node(n,v,a)},x.prototype.t=function(n){return this.text(n)},x.prototype.d=function(n){return this.cdata(n)},x.prototype.c=function(n){return this.comment(n)},x.prototype.r=function(n){return this.raw(n)},x.prototype.i=function(n,v){return this.instruction(n,v)},x.prototype.u=function(){return this.up()},x.prototype.importXMLBuilder=function(n){return this.importDocument(n)},x}()}).call(this)},{"./Utility":68,"./XMLCData":70,"./XMLComment":71,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87}],82:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;z=X("./XMLNode"),ce.exports=I=function(c){p(o,c);function o(i,t,l){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing instruction target. "+this.debugInfo());if(this.target=this.stringify.insTarget(t),l)this.value=this.stringify.insValue(l)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).processingInstruction(this)},o}(z)}).call(this)},{"./XMLNode":81}],83:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;z=X("./XMLNode"),ce.exports=I=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).raw(this)},o}(z)}).call(this)},{"./XMLNode":81}],84:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T=function(n,v){for(var a in v)if(x.call(v,a))n[a]=v[a];function E(){this.constructor=n}return E.prototype=v.prototype,n.prototype=new E,n.__super__=v.prototype,n},x={}.hasOwnProperty;i=X("./XMLDeclaration"),t=X("./XMLDocType"),z=X("./XMLCData"),I=X("./XMLComment"),l=X("./XMLElement"),_=X("./XMLRaw"),y=X("./XMLText"),g=X("./XMLProcessingInstruction"),p=X("./XMLDTDAttList"),k=X("./XMLDTDElement"),c=X("./XMLDTDEntity"),o=X("./XMLDTDNotation"),h=X("./XMLWriterBase"),ce.exports=w=function(n){T(v,n);function v(a,E){v.__super__.constructor.call(this,E),this.stream=a}return v.prototype.document=function(a){var E,F,A,W,S,P,O,H;P=a.children;for(F=0,W=P.length;F<W;F++)E=P[F],E.isLastRootNode=!1;a.children[a.children.length-1].isLastRootNode=!0,O=a.children,H=[];for(A=0,S=O.length;A<S;A++)switch(E=O[A],!1){case!(E instanceof i):H.push(this.declaration(E));break;case!(E instanceof t):H.push(this.docType(E));break;case!(E instanceof I):H.push(this.comment(E));break;case!(E instanceof g):H.push(this.processingInstruction(E));break;default:H.push(this.element(E))}return H},v.prototype.attribute=function(a){return this.stream.write(" "+a.name+'="'+a.value+'"')},v.prototype.cdata=function(a,E){return this.stream.write(this.space(E)+"<![CDATA["+a.text+"]]>"+this.endline(a))},v.prototype.comment=function(a,E){return this.stream.write(this.space(E)+"<!-- "+a.text+" -->"+this.endline(a))},v.prototype.declaration=function(a,E){if(this.stream.write(this.space(E)),this.stream.write('<?xml version="'+a.version+'"'),a.encoding!=null)this.stream.write(' encoding="'+a.encoding+'"');if(a.standalone!=null)this.stream.write(' standalone="'+a.standalone+'"');return this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(a))},v.prototype.docType=function(a,E){var F,A,W,S;if(E||(E=0),this.stream.write(this.space(E)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID)this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"');else if(a.sysID)this.stream.write(' SYSTEM "'+a.sysID+'"');if(a.children.length>0){this.stream.write(" ["),this.stream.write(this.endline(a)),S=a.children;for(A=0,W=S.length;A<W;A++)switch(F=S[A],!1){case!(F instanceof p):this.dtdAttList(F,E+1);break;case!(F instanceof k):this.dtdElement(F,E+1);break;case!(F instanceof c):this.dtdEntity(F,E+1);break;case!(F instanceof o):this.dtdNotation(F,E+1);break;case!(F instanceof z):this.cdata(F,E+1);break;case!(F instanceof I):this.comment(F,E+1);break;case!(F instanceof g):this.processingInstruction(F,E+1);break;default:throw Error("Unknown DTD node type: "+F.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(a))},v.prototype.element=function(a,E){var F,A,W,S,P,O,H,ee;E||(E=0),ee=this.space(E),this.stream.write(ee+"<"+a.name),O=a.attributes;for(P in O){if(!x.call(O,P))continue;F=O[P],this.attribute(F)}if(a.children.length===0||a.children.every(function(U){return U.value===""}))if(this.allowEmpty)this.stream.write("></"+a.name+">");else this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&a.children.length===1&&a.children[0].value!=null)this.stream.write(">"),this.stream.write(a.children[0].value),this.stream.write("</"+a.name+">");else{this.stream.write(">"+this.newline),H=a.children;for(W=0,S=H.length;W<S;W++)switch(A=H[W],!1){case!(A instanceof z):this.cdata(A,E+1);break;case!(A instanceof I):this.comment(A,E+1);break;case!(A instanceof l):this.element(A,E+1);break;case!(A instanceof _):this.raw(A,E+1);break;case!(A instanceof y):this.text(A,E+1);break;case!(A instanceof g):this.processingInstruction(A,E+1);break;default:throw Error("Unknown XML node type: "+A.constructor.name)}this.stream.write(ee+"</"+a.name+">")}return this.stream.write(this.endline(a))},v.prototype.processingInstruction=function(a,E){if(this.stream.write(this.space(E)+"<?"+a.target),a.value)this.stream.write(" "+a.value);return this.stream.write(this.spacebeforeslash+"?>"+this.endline(a))},v.prototype.raw=function(a,E){return this.stream.write(this.space(E)+a.value+this.endline(a))},v.prototype.text=function(a,E){return this.stream.write(this.space(E)+a.value+this.endline(a))},v.prototype.dtdAttList=function(a,E){if(this.stream.write(this.space(E)+"<!ATTLIST "+a.elementName+" "+a.attributeName+" "+a.attributeType),a.defaultValueType!=="#DEFAULT")this.stream.write(" "+a.defaultValueType);if(a.defaultValue)this.stream.write(' "'+a.defaultValue+'"');return this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.dtdElement=function(a,E){return this.stream.write(this.space(E)+"<!ELEMENT "+a.name+" "+a.value),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.dtdEntity=function(a,E){if(this.stream.write(this.space(E)+"<!ENTITY"),a.pe)this.stream.write(" %");if(this.stream.write(" "+a.name),a.value)this.stream.write(' "'+a.value+'"');else{if(a.pubID&&a.sysID)this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"');else if(a.sysID)this.stream.write(' SYSTEM "'+a.sysID+'"');if(a.nData)this.stream.write(" NDATA "+a.nData)}return this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.dtdNotation=function(a,E){if(this.stream.write(this.space(E)+"<!NOTATION "+a.name),a.pubID&&a.sysID)this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"');else if(a.pubID)this.stream.write(' PUBLIC "'+a.pubID+'"');else if(a.sysID)this.stream.write(' SYSTEM "'+a.sysID+'"');return this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.endline=function(a){if(!a.isLastRootNode)return this.newline;else return""},v}(h)}).call(this)},{"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87,"./XMLWriterBase":88}],85:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T=function(n,v){for(var a in v)if(x.call(v,a))n[a]=v[a];function E(){this.constructor=n}return E.prototype=v.prototype,n.prototype=new E,n.__super__=v.prototype,n},x={}.hasOwnProperty;i=X("./XMLDeclaration"),t=X("./XMLDocType"),z=X("./XMLCData"),I=X("./XMLComment"),l=X("./XMLElement"),_=X("./XMLRaw"),y=X("./XMLText"),g=X("./XMLProcessingInstruction"),p=X("./XMLDTDAttList"),k=X("./XMLDTDElement"),c=X("./XMLDTDEntity"),o=X("./XMLDTDNotation"),h=X("./XMLWriterBase"),ce.exports=w=function(n){T(v,n);function v(a){v.__super__.constructor.call(this,a)}return v.prototype.document=function(a){var E,F,A,W,S;this.textispresent=!1,W="",S=a.children;for(F=0,A=S.length;F<A;F++)E=S[F],W+=function(){switch(!1){case!(E instanceof i):return this.declaration(E);case!(E instanceof t):return this.docType(E);case!(E instanceof I):return this.comment(E);case!(E instanceof g):return this.processingInstruction(E);default:return this.element(E,0)}}.call(this);if(this.pretty&&W.slice(-this.newline.length)===this.newline)W=W.slice(0,-this.newline.length);return W},v.prototype.attribute=function(a){return" "+a.name+'="'+a.value+'"'},v.prototype.cdata=function(a,E){return this.space(E)+"<![CDATA["+a.text+"]]>"+this.newline},v.prototype.comment=function(a,E){return this.space(E)+"<!-- "+a.text+" -->"+this.newline},v.prototype.declaration=function(a,E){var F=this.space(E);if(F+='<?xml version="'+a.version+'"',a.encoding!=null)F+=' encoding="'+a.encoding+'"';if(a.standalone!=null)F+=' standalone="'+a.standalone+'"';return F+=this.spacebeforeslash+"?>",F+=this.newline,F},v.prototype.docType=function(a,E){var F,A,W,S,P;if(E||(E=0),S=this.space(E),S+="<!DOCTYPE "+a.root().name,a.pubID&&a.sysID)S+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.sysID)S+=' SYSTEM "'+a.sysID+'"';if(a.children.length>0){S+=" [",S+=this.newline,P=a.children;for(A=0,W=P.length;A<W;A++)F=P[A],S+=function(){switch(!1){case!(F instanceof p):return this.dtdAttList(F,E+1);case!(F instanceof k):return this.dtdElement(F,E+1);case!(F instanceof c):return this.dtdEntity(F,E+1);case!(F instanceof o):return this.dtdNotation(F,E+1);case!(F instanceof z):return this.cdata(F,E+1);case!(F instanceof I):return this.comment(F,E+1);case!(F instanceof g):return this.processingInstruction(F,E+1);default:throw Error("Unknown DTD node type: "+F.constructor.name)}}.call(this);S+="]"}return S+=this.spacebeforeslash+">",S+=this.newline,S},v.prototype.element=function(a,E){var F,A,W,S,P,O,H,ee,U,J,D,te,ye;if(E||(E=0),ye=!1,this.textispresent)this.newline="",this.pretty=!1;else this.newline=this.newlinedefault,this.pretty=this.prettydefault;te=this.space(E),ee="",ee+=te+"<"+a.name,U=a.attributes;for(H in U){if(!x.call(U,H))continue;F=U[H],ee+=this.attribute(F)}if(a.children.length===0||a.children.every(function(se){return se.value===""}))if(this.allowEmpty)ee+="></"+a.name+">"+this.newline;else ee+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&a.children.length===1&&a.children[0].value!=null)ee+=">",ee+=a.children[0].value,ee+="</"+a.name+">"+this.newline;else{if(this.dontprettytextnodes){J=a.children;for(W=0,P=J.length;W<P;W++)if(A=J[W],A.value!=null){this.textispresent++,ye=!0;break}}if(this.textispresent)this.newline="",this.pretty=!1,te=this.space(E);ee+=">"+this.newline,D=a.children;for(S=0,O=D.length;S<O;S++)A=D[S],ee+=function(){switch(!1){case!(A instanceof z):return this.cdata(A,E+1);case!(A instanceof I):return this.comment(A,E+1);case!(A instanceof l):return this.element(A,E+1);case!(A instanceof _):return this.raw(A,E+1);case!(A instanceof y):return this.text(A,E+1);case!(A instanceof g):return this.processingInstruction(A,E+1);default:throw Error("Unknown XML node type: "+A.constructor.name)}}.call(this);if(ye)this.textispresent--;if(!this.textispresent)this.newline=this.newlinedefault,this.pretty=this.prettydefault;ee+=te+"</"+a.name+">"+this.newline}return ee},v.prototype.processingInstruction=function(a,E){var F=this.space(E)+"<?"+a.target;if(a.value)F+=" "+a.value;return F+=this.spacebeforeslash+"?>"+this.newline,F},v.prototype.raw=function(a,E){return this.space(E)+a.value+this.newline},v.prototype.text=function(a,E){return this.space(E)+a.value+this.newline},v.prototype.dtdAttList=function(a,E){var F=this.space(E)+"<!ATTLIST "+a.elementName+" "+a.attributeName+" "+a.attributeType;if(a.defaultValueType!=="#DEFAULT")F+=" "+a.defaultValueType;if(a.defaultValue)F+=' "'+a.defaultValue+'"';return F+=this.spacebeforeslash+">"+this.newline,F},v.prototype.dtdElement=function(a,E){return this.space(E)+"<!ELEMENT "+a.name+" "+a.value+this.spacebeforeslash+">"+this.newline},v.prototype.dtdEntity=function(a,E){var F=this.space(E)+"<!ENTITY";if(a.pe)F+=" %";if(F+=" "+a.name,a.value)F+=' "'+a.value+'"';else{if(a.pubID&&a.sysID)F+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.sysID)F+=' SYSTEM "'+a.sysID+'"';if(a.nData)F+=" NDATA "+a.nData}return F+=this.spacebeforeslash+">"+this.newline,F},v.prototype.dtdNotation=function(a,E){var F=this.space(E)+"<!NOTATION "+a.name;if(a.pubID&&a.sysID)F+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.pubID)F+=' PUBLIC "'+a.pubID+'"';else if(a.sysID)F+=' SYSTEM "'+a.sysID+'"';return F+=this.spacebeforeslash+">"+this.newline,F},v.prototype.openNode=function(a,E){var F,A,W,S;if(E||(E=0),a instanceof l){W=this.space(E)+"<"+a.name,S=a.attributes;for(A in S){if(!x.call(S,A))continue;F=S[A],W+=this.attribute(F)}return W+=(a.children?">":"/>")+this.newline,W}else{if(W=this.space(E)+"<!DOCTYPE "+a.rootNodeName,a.pubID&&a.sysID)W+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.sysID)W+=' SYSTEM "'+a.sysID+'"';return W+=(a.children?" [":">")+this.newline,W}},v.prototype.closeNode=function(a,E){switch(E||(E=0),!1){case!(a instanceof l):return this.space(E)+"</"+a.name+">"+this.newline;case!(a instanceof t):return this.space(E)+"]>"+this.newline}},v}(h)}).call(this)},{"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87,"./XMLWriterBase":88}],86:[function(X,ce,L){(function(){var z,I=function(k,c){return function(){return k.apply(c,arguments)}},p={}.hasOwnProperty;ce.exports=z=function(){function k(c){this.assertLegalChar=I(this.assertLegalChar,this);var o,i,t;c||(c={}),this.noDoubleEncoding=c.noDoubleEncoding,i=c.stringify||{};for(o in i){if(!p.call(i,o))continue;t=i[o],this[o]=t}}return k.prototype.eleName=function(c){return c=""+c||"",this.assertLegalChar(c)},k.prototype.eleText=function(c){return c=""+c||"",this.assertLegalChar(this.elEscape(c))},k.prototype.cdata=function(c){return c=""+c||"",c=c.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(c)},k.prototype.comment=function(c){if(c=""+c||"",c.match(/--/))throw Error("Comment text cannot contain double-hypen: "+c);return this.assertLegalChar(c)},k.prototype.raw=function(c){return""+c||""},k.prototype.attName=function(c){return c=""+c||""},k.prototype.attValue=function(c){return c=""+c||"",this.attEscape(c)},k.prototype.insTarget=function(c){return""+c||""},k.prototype.insValue=function(c){if(c=""+c||"",c.match(/\?>/))throw Error("Invalid processing instruction value: "+c);return c},k.prototype.xmlVersion=function(c){if(c=""+c||"",!c.match(/1\.[0-9]+/))throw Error("Invalid version number: "+c);return c},k.prototype.xmlEncoding=function(c){if(c=""+c||"",!c.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+c);return c},k.prototype.xmlStandalone=function(c){if(c)return"yes";else return"no"},k.prototype.dtdPubID=function(c){return""+c||""},k.prototype.dtdSysID=function(c){return""+c||""},k.prototype.dtdElementValue=function(c){return""+c||""},k.prototype.dtdAttType=function(c){return""+c||""},k.prototype.dtdAttDefault=function(c){if(c!=null)return""+c||"";else return c},k.prototype.dtdEntityValue=function(c){return""+c||""},k.prototype.dtdNData=function(c){return""+c||""},k.prototype.convertAttKey="@",k.prototype.convertPIKey="?",k.prototype.convertTextKey="#text",k.prototype.convertCDataKey="#cdata",k.prototype.convertCommentKey="#comment",k.prototype.convertRawKey="#raw",k.prototype.assertLegalChar=function(c){var o=c.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(o)throw Error("Invalid character in string: "+c+" at index "+o.index);return c},k.prototype.elEscape=function(c){var o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return c.replace(o,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},k.prototype.attEscape=function(c){var o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return c.replace(o,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},k}()}).call(this)},{}],87:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;z=X("./XMLNode"),ce.exports=I=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).text(this)},o}(z)}).call(this)},{"./XMLNode":81}],88:[function(X,ce,L){(function(){var z,I={}.hasOwnProperty;ce.exports=z=function(){function p(k){var c,o,i,t,l,g,_,w,y;if(k||(k={}),this.pretty=k.pretty||!1,this.allowEmpty=(o=k.allowEmpty)!=null?o:!1,this.pretty)this.indent=(i=k.indent)!=null?i:" ",this.newline=(t=k.newline)!=null?t:`
|
|
56
|
+
`+re+"}",Le}function Cr(b,C,V){C=Ye(C);var Z=C.length;if(!Z)return Q(V)?V.call(b):V;for(var ae=0;ae<Z;ae++){var re=b==null?void 0:b[C[ae]];if(re===void 0)re=V,ae=Z;b=Q(re)?re.call(b):re}return b}var Rr=0;function Mr(b){var C=++Rr+"";return b?b+C:C}function Lr(b){var C=_e(b);return C._chain=!0,C}function $t(b,C,V,Z,ae){if(!(Z instanceof C))return b.apply(V,ae);var re=G(b.prototype),he=b.apply(re,ae);if(W(he))return he;return re}var bt=A(function(b,C){var V=bt.placeholder,Z=function(){var ae=0,re=C.length,he=Array(re);for(var Ee=0;Ee<re;Ee++)he[Ee]=C[Ee]===V?arguments[ae++]:C[Ee];while(ae<arguments.length)he.push(arguments[ae++]);return $t(b,Z,this,this,he)};return Z});bt.placeholder=_e;var Jt=A(function(b,C,V){if(!Q(b))throw TypeError("Bind must be called on a function");var Z=A(function(ae){return $t(b,Z,C,this,V.concat(ae))});return Z}),rt=q(M);function gt(b,C,V,Z){if(Z=Z||[],!C&&C!==0)C=1/0;else if(C<=0)return Z.concat(b);var ae=Z.length;for(var re=0,he=M(b);re<he;re++){var Ee=b[re];if(rt(Ee)&&(Ie(Ee)||Re(Ee)))if(C>1)gt(Ee,C-1,V,Z),ae=Z.length;else{var Le=0,Ce=Ee.length;while(Le<Ce)Z[ae++]=Ee[Le++]}else if(!V)Z[ae++]=Ee}return Z}var Pr=A(function(b,C){C=gt(C,!1,!1);var V=C.length;if(V<1)throw Error("bindAll must be passed function names");while(V--){var Z=C[V];b[Z]=Jt(b[Z],b)}return b});function Fr(b,C){var V=function(Z){var ae=V.cache,re=""+(C?C.apply(this,arguments):Z);if(!ke(ae,re))ae[re]=b.apply(this,arguments);return ae[re]};return V.cache={},V}var Qt=A(function(b,C,V){return setTimeout(function(){return b.apply(null,V)},C)}),Br=bt(Qt,_e,1);function Xr(b,C,V){var Z,ae,re,he,Ee=0;if(!V)V={};var Le=function(){if(Ee=V.leading===!1?0:Dt(),Z=null,he=b.apply(ae,re),!Z)ae=re=null},Ce=function(){var Ke=Dt();if(!Ee&&V.leading===!1)Ee=Ke;var qe=C-(Ke-Ee);if(ae=this,re=arguments,qe<=0||qe>C){if(Z)clearTimeout(Z),Z=null;if(Ee=Ke,he=b.apply(ae,re),!Z)ae=re=null}else if(!Z&&V.trailing!==!1)Z=setTimeout(Le,qe);return he};return Ce.cancel=function(){clearTimeout(Z),Ee=0,Z=ae=re=null},Ce}function zr(b,C,V){var Z,ae,re,he,Ee,Le=function(){var Ke=Dt()-ae;if(C>Ke)Z=setTimeout(Le,C-Ke);else{if(Z=null,!V)he=b.apply(Ee,re);if(!Z)re=Ee=null}},Ce=A(function(Ke){if(Ee=this,re=Ke,ae=Dt(),!Z){if(Z=setTimeout(Le,C),V)he=b.apply(Ee,re)}return he});return Ce.cancel=function(){clearTimeout(Z),Z=re=Ee=null},Ce}function Ur(b,C){return bt(C,b)}function Pt(b){return function(){return!b.apply(this,arguments)}}function Wr(){var b=arguments,C=b.length-1;return function(){var V=C,Z=b[C].apply(this,arguments);while(V--)Z=b[V].call(this,Z);return Z}}function jr(b,C){return function(){if(--b<1)return C.apply(this,arguments)}}function qt(b,C){var V;return function(){if(--b>0)V=C.apply(this,arguments);if(b<=1)C=null;return V}}var Hr=bt(qt,2);function er(b,C,V){C=Ue(C,V);var Z=ue(b),ae;for(var re=0,he=Z.length;re<he;re++)if(ae=Z[re],C(b[ae],ae,b))return ae}function tr(b){return function(C,V,Z){V=Ue(V,Z);var ae=M(C),re=b>0?0:ae-1;for(;re>=0&&re<ae;re+=b)if(V(C[re],re,C))return re;return-1}}var Ft=tr(1),rr=tr(-1);function nr(b,C,V,Z){V=Ue(V,Z,1);var ae=V(C),re=0,he=M(b);while(re<he){var Ee=Math.floor((re+he)/2);if(V(b[Ee])<ae)re=Ee+1;else he=Ee}return re}function ir(b,C,V){return function(Z,ae,re){var he=0,Ee=M(Z);if(typeof re=="number")if(b>0)he=re>=0?re:Math.max(re+Ee,he);else Ee=re>=0?Math.min(re+1,Ee):re+Ee+1;else if(V&&re&&Ee)return re=V(Z,ae),Z[re]===ae?re:-1;if(ae!==ae)return re=C(t.call(Z,he,Ee),Ae),re>=0?re+he:-1;for(re=b>0?he:Ee-1;re>=0&&re<Ee;re+=b)if(Z[re]===ae)return re;return-1}}var ar=ir(1,Ft,nr),Vr=ir(-1,rr);function Bt(b,C,V){var Z=rt(b)?Ft:er,ae=Z(b,C,V);if(ae!==void 0&&ae!==-1)return b[ae]}function Zr(b,C){return Bt(b,it(C))}function mt(b,C,V){C=Je(C,V);var Z,ae;if(rt(b))for(Z=0,ae=b.length;Z<ae;Z++)C(b[Z],Z,b);else{var re=ue(b);for(Z=0,ae=re.length;Z<ae;Z++)C(b[re[Z]],re[Z],b)}return b}function wt(b,C,V){C=Ue(C,V);var Z=!rt(b)&&ue(b),ae=(Z||b).length,re=Array(ae);for(var he=0;he<ae;he++){var Ee=Z?Z[he]:he;re[he]=C(b[Ee],Ee,b)}return re}function or(b){var C=function(V,Z,ae,re){var he=!rt(V)&&ue(V),Ee=(he||V).length,Le=b>0?0:Ee-1;if(!re)ae=V[he?he[Le]:Le],Le+=b;for(;Le>=0&&Le<Ee;Le+=b){var Ce=he?he[Le]:Le;ae=Z(ae,V[Ce],Ce,V)}return ae};return function(V,Z,ae,re){var he=arguments.length>=3;return C(V,Je(Z,re,4),ae,he)}}var Xt=or(1),sr=or(-1);function Et(b,C,V){var Z=[];return C=Ue(C,V),mt(b,function(ae,re,he){if(C(ae,re,he))Z.push(ae)}),Z}function Yr(b,C,V){return Et(b,Pt(Ue(C)),V)}function ur(b,C,V){C=Ue(C,V);var Z=!rt(b)&&ue(b),ae=(Z||b).length;for(var re=0;re<ae;re++){var he=Z?Z[re]:re;if(!C(b[he],he,b))return!1}return!0}function lr(b,C,V){C=Ue(C,V);var Z=!rt(b)&&ue(b),ae=(Z||b).length;for(var re=0;re<ae;re++){var he=Z?Z[re]:re;if(C(b[he],he,b))return!0}return!1}function vt(b,C,V,Z){if(!rt(b))b=lt(b);if(typeof V!="number"||Z)V=0;return ar(b,C,V)>=0}var Gr=A(function(b,C,V){var Z,ae;if(Q(C))ae=C;else C=Ye(C),Z=C.slice(0,-1),C=C[C.length-1];return wt(b,function(re){var he=ae;if(!he){if(Z&&Z.length)re=nt(re,Z);if(re==null)return;he=re[C]}return he==null?he:he.apply(re,V)})});function zt(b,C){return wt(b,ut(C))}function Kr(b,C){return Et(b,it(C))}function cr(b,C,V){var Z=-1/0,ae=-1/0,re,he;if(C==null||typeof C=="number"&&typeof b[0]!="object"&&b!=null){b=rt(b)?b:lt(b);for(var Ee=0,Le=b.length;Ee<Le;Ee++)if(re=b[Ee],re!=null&&re>Z)Z=re}else C=Ue(C,V),mt(b,function(Ce,Ke,qe){if(he=C(Ce,Ke,qe),he>ae||he===-1/0&&Z===-1/0)Z=Ce,ae=he});return Z}function $r(b,C,V){var Z=1/0,ae=1/0,re,he;if(C==null||typeof C=="number"&&typeof b[0]!="object"&&b!=null){b=rt(b)?b:lt(b);for(var Ee=0,Le=b.length;Ee<Le;Ee++)if(re=b[Ee],re!=null&&re<Z)Z=re}else C=Ue(C,V),mt(b,function(Ce,Ke,qe){if(he=C(Ce,Ke,qe),he<ae||he===1/0&&Z===1/0)Z=Ce,ae=he});return Z}function fr(b,C,V){if(C==null||V){if(!rt(b))b=lt(b);return b[Mt(b.length-1)]}var Z=rt(b)?ge(b):lt(b),ae=M(Z);C=Math.max(Math.min(C,ae),0);var re=ae-1;for(var he=0;he<C;he++){var Ee=Mt(he,re),Le=Z[he];Z[he]=Z[Ee],Z[Ee]=Le}return Z.slice(0,C)}function Jr(b){return fr(b,1/0)}function Qr(b,C,V){var Z=0;return C=Ue(C,V),zt(wt(b,function(ae,re,he){return{value:ae,index:Z++,criteria:C(ae,re,he)}}).sort(function(ae,re){var he=ae.criteria,Ee=re.criteria;if(he!==Ee){if(he>Ee||he===void 0)return 1;if(he<Ee||Ee===void 0)return-1}return ae.index-re.index}),"value")}function Ct(b,C){return function(V,Z,ae){var re=C?[[],[]]:{};return Z=Ue(Z,ae),mt(V,function(he,Ee){var Le=Z(he,Ee,V);b(re,he,Le)}),re}}var qr=Ct(function(b,C,V){if(ke(b,V))b[V].push(C);else b[V]=[C]}),en=Ct(function(b,C,V){b[V]=C}),tn=Ct(function(b,C,V){if(ke(b,V))b[V]++;else b[V]=1}),rn=Ct(function(b,C,V){b[V?0:1].push(C)},!0),nn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function an(b){if(!b)return[];if(Ie(b))return t.call(b);if(U(b))return b.match(nn);if(rt(b))return wt(b,st);return lt(b)}function on(b){if(b==null)return 0;return rt(b)?b.length:ue(b).length}function sn(b,C,V){return C in V}var hr=A(function(b,C){var V={},Z=C[0];if(b==null)return V;if(Q(Z)){if(C.length>1)Z=Je(Z,C[1]);C=me(b)}else Z=sn,C=gt(C,!1,!1),b=Object(b);for(var ae=0,re=C.length;ae<re;ae++){var he=C[ae],Ee=b[he];if(Z(Ee,he,b))V[he]=Ee}return V}),un=A(function(b,C){var V=C[0],Z;if(Q(V)){if(V=Pt(V),C.length>1)Z=C[1]}else C=wt(gt(C,!1,!1),String),V=function(ae,re){return!vt(C,re)};return hr(b,V,Z)});function pr(b,C,V){return t.call(b,0,Math.max(0,b.length-(C==null||V?1:C)))}function Ut(b,C,V){if(b==null||b.length<1)return C==null||V?void 0:[];if(C==null||V)return b[0];return pr(b,b.length-C)}function Rt(b,C,V){return t.call(b,C==null||V?1:C)}function ln(b,C,V){if(b==null||b.length<1)return C==null||V?void 0:[];if(C==null||V)return b[b.length-1];return Rt(b,Math.max(0,b.length-C))}function cn(b){return Et(b,Boolean)}function fn(b,C){return gt(b,C,!1)}var dr=A(function(b,C){return C=gt(C,!0,!0),Et(b,function(V){return!vt(C,V)})}),hn=A(function(b,C){return dr(b,C)});function Wt(b,C,V,Z){if(!O(C))Z=V,V=C,C=!1;if(V!=null)V=Ue(V,Z);var ae=[],re=[];for(var he=0,Ee=M(b);he<Ee;he++){var Le=b[he],Ce=V?V(Le,he,b):Le;if(C&&!V){if(!he||re!==Ce)ae.push(Le);re=Ce}else if(V){if(!vt(re,Ce))re.push(Ce),ae.push(Le)}else if(!vt(ae,Le))ae.push(Le)}return ae}var pn=A(function(b){return Wt(gt(b,!0,!0))});function mn(b){var C=[],V=arguments.length;for(var Z=0,ae=M(b);Z<ae;Z++){var re=b[Z];if(vt(C,re))continue;var he;for(he=1;he<V;he++)if(!vt(arguments[he],re))break;if(he===V)C.push(re)}return C}function jt(b){var C=b&&cr(b,M).length||0,V=Array(C);for(var Z=0;Z<C;Z++)V[Z]=zt(b,Z);return V}var vn=A(jt);function yn(b,C){var V={};for(var Z=0,ae=M(b);Z<ae;Z++)if(C)V[b[Z]]=C[Z];else V[b[Z][0]]=b[Z][1];return V}function gn(b,C,V){if(C==null)C=b||0,b=0;if(!V)V=C<b?-1:1;var Z=Math.max(Math.ceil((C-b)/V),0),ae=Array(Z);for(var re=0;re<Z;re++,b+=V)ae[re]=b;return ae}function wn(b,C){if(C==null||C<1)return[];var V=[],Z=0,ae=b.length;while(Z<ae)V.push(t.call(b,Z,Z+=C));return V}function Ht(b,C){return b._chain?_e(C).chain():C}function mr(b){return mt(_t(b),function(C){var V=_e[C]=b[C];_e.prototype[C]=function(){var Z=[this._wrapped];return i.apply(Z,arguments),Ht(this,V.apply(_e,Z))}}),_e}mt(["pop","push","reverse","shift","sort","splice","unshift"],function(b){var C=k[b];_e.prototype[b]=function(){var V=this._wrapped;if(V!=null){if(C.apply(V,arguments),(b==="shift"||b==="splice")&&V.length===0)delete V[0]}return Ht(this,V)}}),mt(["concat","join","slice"],function(b){var C=k[b];_e.prototype[b]=function(){var V=this._wrapped;if(V!=null)V=C.apply(V,arguments);return Ht(this,V)}});var _n={__proto__:null,VERSION:I,restArguments:A,isObject:W,isNull:S,isUndefined:P,isBoolean:O,isElement:H,isString:U,isNumber:J,isDate:D,isRegExp:te,isError:ye,isSymbol:se,isArrayBuffer:ve,isDataView:Be,isArray:Ie,isFunction:Q,isArguments:Re,isFinite:We,isNaN:Ae,isTypedArray:N,isEmpty:we,isMatch:Se,isEqual:oe,isMap:at,isWeakMap:xt,isSet:kt,isWeakSet:St,keys:ue,allKeys:me,values:lt,pairs:Tt,invert:ht,functions:_t,methods:_t,extend:It,extendOwn:Nt,assign:Nt,defaults:R,create:fe,clone:ge,tap:Oe,get:tt,has:ot,mapObject:At,identity:st,constant:d,noop:dt,toPath:je,property:ut,propertyOf:Ot,matcher:it,matches:it,times:br,random:Mt,now:Dt,escape:Er,unescape:Tr,templateSettings:Ir,template:Or,result:Cr,uniqueId:Mr,chain:Lr,iteratee:pt,partial:bt,bind:Jt,bindAll:Pr,memoize:Fr,delay:Qt,defer:Br,throttle:Xr,debounce:zr,wrap:Ur,negate:Pt,compose:Wr,after:jr,before:qt,once:Hr,findKey:er,findIndex:Ft,findLastIndex:rr,sortedIndex:nr,indexOf:ar,lastIndexOf:Vr,find:Bt,detect:Bt,findWhere:Zr,each:mt,forEach:mt,map:wt,collect:wt,reduce:Xt,foldl:Xt,inject:Xt,reduceRight:sr,foldr:sr,filter:Et,select:Et,reject:Yr,every:ur,all:ur,some:lr,any:lr,contains:vt,includes:vt,include:vt,invoke:Gr,pluck:zt,where:Kr,max:cr,min:$r,shuffle:Jr,sample:fr,sortBy:Qr,groupBy:qr,indexBy:en,countBy:tn,partition:rn,toArray:an,size:on,pick:hr,omit:un,first:Ut,head:Ut,take:Ut,initial:pr,last:ln,rest:Rt,tail:Rt,drop:Rt,compact:cn,flatten:fn,without:hn,uniq:Wt,unique:Wt,union:pn,intersection:mn,difference:dr,unzip:jt,transpose:jt,zip:vn,object:yn,range:gn,chunk:wn,mixin:mr,default:_e},Vt=mr(_n);return Vt._=Vt,Vt})}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],68:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t=[].slice,l={}.hasOwnProperty;z=function(){var g,_,w,y,h,T;if(T=arguments[0],h=2<=arguments.length?t.call(arguments,1):[],c(Object.assign))Object.assign.apply(null,arguments);else for(g=0,w=h.length;g<w;g++)if(y=h[g],y!=null)for(_ in y){if(!l.call(y,_))continue;T[_]=y[_]}return T},c=function(g){return!!g&&Object.prototype.toString.call(g)==="[object Function]"},o=function(g){var _;return!!g&&((_=typeof g)==="function"||_==="object")},p=function(g){if(c(Array.isArray))return Array.isArray(g);else return Object.prototype.toString.call(g)==="[object Array]"},k=function(g){var _;if(p(g))return!g.length;else{for(_ in g){if(!l.call(g,_))continue;return!1}return!0}},i=function(g){var _,w;return o(g)&&(w=Object.getPrototypeOf(g))&&(_=w.constructor)&&typeof _==="function"&&_ instanceof _&&Function.prototype.toString.call(_)===Function.prototype.toString.call(Object)},I=function(g){if(c(g.valueOf))return g.valueOf();else return g},ce.exports.assign=z,ce.exports.isFunction=c,ce.exports.isObject=o,ce.exports.isArray=p,ce.exports.isEmpty=k,ce.exports.isPlainObject=i,ce.exports.getValue=I}).call(this)},{}],69:[function(X,ce,L){(function(){var z;ce.exports=z=function(){function I(p,k,c){if(this.options=p.options,this.stringify=p.stringify,this.parent=p,k==null)throw Error("Missing attribute name. "+this.debugInfo(k));if(c==null)throw Error("Missing attribute value. "+this.debugInfo(k));this.name=this.stringify.attName(k),this.value=this.stringify.attValue(c)}return I.prototype.clone=function(){return Object.create(this)},I.prototype.toString=function(p){return this.options.writer.set(p).attribute(this)},I.prototype.debugInfo=function(p){var k,c;if(p=p||this.name,p==null&&!((k=this.parent)!=null?k.name:void 0))return"";else if(p==null)return"parent: <"+this.parent.name+">";else if(!((c=this.parent)!=null?c.name:void 0))return"attribute: {"+p+"}";else return"attribute: {"+p+"}, parent: <"+this.parent.name+">"},I}()}).call(this)},{}],70:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).cdata(this)},o}(I)}).call(this)},{"./XMLNode":81}],71:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).comment(this)},o}(I)}).call(this)},{"./XMLNode":81}],72:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t,l,g,_,w){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing DTD element name. "+this.debugInfo());if(l==null)throw Error("Missing DTD attribute name. "+this.debugInfo(t));if(!g)throw Error("Missing DTD attribute type. "+this.debugInfo(t));if(!_)throw Error("Missing DTD attribute default. "+this.debugInfo(t));if(_.indexOf("#")!==0)_="#"+_;if(!_.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(t));if(w&&!_.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(t));this.elementName=this.stringify.eleName(t),this.attributeName=this.stringify.attName(l),this.attributeType=this.stringify.dtdAttType(g),this.defaultValue=this.stringify.dtdAttDefault(w),this.defaultValueType=_}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdAttList(this)},o}(I)}).call(this)},{"./XMLNode":81}],73:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t,l){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing DTD element name. "+this.debugInfo());if(!l)l="(#PCDATA)";if(Array.isArray(l))l="("+l.join(",")+")";this.name=this.stringify.eleName(t),this.value=this.stringify.dtdElementValue(l)}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdElement(this)},o}(I)}).call(this)},{"./XMLNode":81}],74:[function(X,ce,L){(function(){var z,I,p,k=function(o,i){for(var t in i)if(c.call(i,t))o[t]=i[t];function l(){this.constructor=o}return l.prototype=i.prototype,o.prototype=new l,o.__super__=i.prototype,o},c={}.hasOwnProperty;p=X("./Utility").isObject,I=X("./XMLNode"),ce.exports=z=function(o){k(i,o);function i(t,l,g,_){if(i.__super__.constructor.call(this,t),g==null)throw Error("Missing DTD entity name. "+this.debugInfo(g));if(_==null)throw Error("Missing DTD entity value. "+this.debugInfo(g));if(this.pe=!!l,this.name=this.stringify.eleName(g),!p(_))this.value=this.stringify.dtdEntityValue(_);else{if(!_.pubID&&!_.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(g));if(_.pubID&&!_.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(g));if(_.pubID!=null)this.pubID=this.stringify.dtdPubID(_.pubID);if(_.sysID!=null)this.sysID=this.stringify.dtdSysID(_.sysID);if(_.nData!=null)this.nData=this.stringify.dtdNData(_.nData);if(this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(g))}}return i.prototype.toString=function(t){return this.options.writer.set(t).dtdEntity(this)},i}(I)}).call(this)},{"./Utility":68,"./XMLNode":81}],75:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;I=X("./XMLNode"),ce.exports=z=function(c){p(o,c);function o(i,t,l){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing DTD notation name. "+this.debugInfo(t));if(!l.pubID&&!l.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(t));if(this.name=this.stringify.eleName(t),l.pubID!=null)this.pubID=this.stringify.dtdPubID(l.pubID);if(l.sysID!=null)this.sysID=this.stringify.dtdSysID(l.sysID)}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdNotation(this)},o}(I)}).call(this)},{"./XMLNode":81}],76:[function(X,ce,L){(function(){var z,I,p,k=function(o,i){for(var t in i)if(c.call(i,t))o[t]=i[t];function l(){this.constructor=o}return l.prototype=i.prototype,o.prototype=new l,o.__super__=i.prototype,o},c={}.hasOwnProperty;p=X("./Utility").isObject,I=X("./XMLNode"),ce.exports=z=function(o){k(i,o);function i(t,l,g,_){var w;if(i.__super__.constructor.call(this,t),p(l))w=l,l=w.version,g=w.encoding,_=w.standalone;if(!l)l="1.0";if(this.version=this.stringify.xmlVersion(l),g!=null)this.encoding=this.stringify.xmlEncoding(g);if(_!=null)this.standalone=this.stringify.xmlStandalone(_)}return i.prototype.toString=function(t){return this.options.writer.set(t).declaration(this)},i}(I)}).call(this)},{"./Utility":68,"./XMLNode":81}],77:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t=function(g,_){for(var w in _)if(l.call(_,w))g[w]=_[w];function y(){this.constructor=g}return y.prototype=_.prototype,g.prototype=new y,g.__super__=_.prototype,g},l={}.hasOwnProperty;i=X("./Utility").isObject,o=X("./XMLNode"),z=X("./XMLDTDAttList"),p=X("./XMLDTDEntity"),I=X("./XMLDTDElement"),k=X("./XMLDTDNotation"),ce.exports=c=function(g){t(_,g);function _(w,y,h){var T,x;if(_.__super__.constructor.call(this,w),this.name="!DOCTYPE",this.documentObject=w,i(y))T=y,y=T.pubID,h=T.sysID;if(h==null)x=[y,h],h=x[0],y=x[1];if(y!=null)this.pubID=this.stringify.dtdPubID(y);if(h!=null)this.sysID=this.stringify.dtdSysID(h)}return _.prototype.element=function(w,y){var h=new I(this,w,y);return this.children.push(h),this},_.prototype.attList=function(w,y,h,T,x){var n=new z(this,w,y,h,T,x);return this.children.push(n),this},_.prototype.entity=function(w,y){var h=new p(this,!1,w,y);return this.children.push(h),this},_.prototype.pEntity=function(w,y){var h=new p(this,!0,w,y);return this.children.push(h),this},_.prototype.notation=function(w,y){var h=new k(this,w,y);return this.children.push(h),this},_.prototype.toString=function(w){return this.options.writer.set(w).docType(this)},_.prototype.ele=function(w,y){return this.element(w,y)},_.prototype.att=function(w,y,h,T,x){return this.attList(w,y,h,T,x)},_.prototype.ent=function(w,y){return this.entity(w,y)},_.prototype.pent=function(w,y){return this.pEntity(w,y)},_.prototype.not=function(w,y){return this.notation(w,y)},_.prototype.up=function(){return this.root()||this.documentObject},_}(o)}).call(this)},{"./Utility":68,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLNode":81}],78:[function(X,ce,L){(function(){var z,I,p,k,c,o=function(t,l){for(var g in l)if(i.call(l,g))t[g]=l[g];function _(){this.constructor=t}return _.prototype=l.prototype,t.prototype=new _,t.__super__=l.prototype,t},i={}.hasOwnProperty;c=X("./Utility").isPlainObject,I=X("./XMLNode"),k=X("./XMLStringifier"),p=X("./XMLStringWriter"),ce.exports=z=function(t){o(l,t);function l(g){if(l.__super__.constructor.call(this,null),this.name="?xml",g||(g={}),!g.writer)g.writer=new p;this.options=g,this.stringify=new k(g),this.isDocument=!0}return l.prototype.end=function(g){var _;if(!g)g=this.options.writer;else if(c(g))_=g,g=this.options.writer.set(_);return g.document(this)},l.prototype.toString=function(g){return this.options.writer.set(g).document(this)},l}(I)}).call(this)},{"./Utility":68,"./XMLNode":81,"./XMLStringWriter":85,"./XMLStringifier":86}],79:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T,x,n,v,a,E,F,A={}.hasOwnProperty;F=X("./Utility"),a=F.isObject,v=F.isFunction,E=F.isPlainObject,n=F.getValue,_=X("./XMLElement"),I=X("./XMLCData"),p=X("./XMLComment"),y=X("./XMLRaw"),x=X("./XMLText"),w=X("./XMLProcessingInstruction"),t=X("./XMLDeclaration"),l=X("./XMLDocType"),k=X("./XMLDTDAttList"),o=X("./XMLDTDEntity"),c=X("./XMLDTDElement"),i=X("./XMLDTDNotation"),z=X("./XMLAttribute"),T=X("./XMLStringifier"),h=X("./XMLStringWriter"),ce.exports=g=function(){function W(S,P,O){var H;if(this.name="?xml",S||(S={}),!S.writer)S.writer=new h(S);else if(E(S.writer))H=S.writer,S.writer=new h(H);this.options=S,this.writer=S.writer,this.stringify=new T(S),this.onDataCallback=P||function(){},this.onEndCallback=O||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return W.prototype.node=function(S,P,O){var H;if(S==null)throw Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw Error("Document can only have one root node. "+this.debugInfo(S));if(this.openCurrent(),S=n(S),P==null)P={};if(P=n(P),!a(P))H=[P,O],O=H[0],P=H[1];if(this.currentNode=new _(this,S,P),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,O!=null)this.text(O);return this},W.prototype.element=function(S,P,O){if(this.currentNode&&this.currentNode instanceof l)return this.dtdElement.apply(this,arguments);else return this.node(S,P,O)},W.prototype.attribute=function(S,P){var O,H;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(S));if(S!=null)S=n(S);if(a(S))for(O in S){if(!A.call(S,O))continue;H=S[O],this.attribute(O,H)}else{if(v(P))P=P.apply();if(!this.options.skipNullAttributes||P!=null)this.currentNode.attributes[S]=new z(this,S,P)}return this},W.prototype.text=function(S){var P;return this.openCurrent(),P=new x(this,S),this.onData(this.writer.text(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.cdata=function(S){var P;return this.openCurrent(),P=new I(this,S),this.onData(this.writer.cdata(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.comment=function(S){var P;return this.openCurrent(),P=new p(this,S),this.onData(this.writer.comment(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.raw=function(S){var P;return this.openCurrent(),P=new y(this,S),this.onData(this.writer.raw(P,this.currentLevel+1),this.currentLevel+1),this},W.prototype.instruction=function(S,P){var O,H,ee,U,J;if(this.openCurrent(),S!=null)S=n(S);if(P!=null)P=n(P);if(Array.isArray(S))for(O=0,U=S.length;O<U;O++)H=S[O],this.instruction(H);else if(a(S))for(H in S){if(!A.call(S,H))continue;ee=S[H],this.instruction(H,ee)}else{if(v(P))P=P.apply();J=new w(this,S,P),this.onData(this.writer.processingInstruction(J,this.currentLevel+1),this.currentLevel+1)}return this},W.prototype.declaration=function(S,P,O){var H;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return H=new t(this,S,P,O),this.onData(this.writer.declaration(H,this.currentLevel+1),this.currentLevel+1),this},W.prototype.doctype=function(S,P,O){if(this.openCurrent(),S==null)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new l(this,P,O),this.currentNode.rootNodeName=S,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},W.prototype.dtdElement=function(S,P){var O;return this.openCurrent(),O=new c(this,S,P),this.onData(this.writer.dtdElement(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.attList=function(S,P,O,H,ee){var U;return this.openCurrent(),U=new k(this,S,P,O,H,ee),this.onData(this.writer.dtdAttList(U,this.currentLevel+1),this.currentLevel+1),this},W.prototype.entity=function(S,P){var O;return this.openCurrent(),O=new o(this,!1,S,P),this.onData(this.writer.dtdEntity(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.pEntity=function(S,P){var O;return this.openCurrent(),O=new o(this,!0,S,P),this.onData(this.writer.dtdEntity(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.notation=function(S,P){var O;return this.openCurrent(),O=new i(this,S,P),this.onData(this.writer.dtdNotation(O,this.currentLevel+1),this.currentLevel+1),this},W.prototype.up=function(){if(this.currentLevel<0)throw Error("The document node has no parent.");if(this.currentNode){if(this.currentNode.children)this.closeNode(this.currentNode);else this.openNode(this.currentNode);this.currentNode=null}else this.closeNode(this.openTags[this.currentLevel]);return delete this.openTags[this.currentLevel],this.currentLevel--,this},W.prototype.end=function(){while(this.currentLevel>=0)this.up();return this.onEnd()},W.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},W.prototype.openNode=function(S){if(!S.isOpen){if(!this.root&&this.currentLevel===0&&S instanceof _)this.root=S;return this.onData(this.writer.openNode(S,this.currentLevel),this.currentLevel),S.isOpen=!0}},W.prototype.closeNode=function(S){if(!S.isClosed)return this.onData(this.writer.closeNode(S,this.currentLevel),this.currentLevel),S.isClosed=!0},W.prototype.onData=function(S,P){return this.documentStarted=!0,this.onDataCallback(S,P+1)},W.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},W.prototype.debugInfo=function(S){if(S==null)return"";else return"node: <"+S+">"},W.prototype.ele=function(){return this.element.apply(this,arguments)},W.prototype.nod=function(S,P,O){return this.node(S,P,O)},W.prototype.txt=function(S){return this.text(S)},W.prototype.dat=function(S){return this.cdata(S)},W.prototype.com=function(S){return this.comment(S)},W.prototype.ins=function(S,P){return this.instruction(S,P)},W.prototype.dec=function(S,P,O){return this.declaration(S,P,O)},W.prototype.dtd=function(S,P,O){return this.doctype(S,P,O)},W.prototype.e=function(S,P,O){return this.element(S,P,O)},W.prototype.n=function(S,P,O){return this.node(S,P,O)},W.prototype.t=function(S){return this.text(S)},W.prototype.d=function(S){return this.cdata(S)},W.prototype.c=function(S){return this.comment(S)},W.prototype.r=function(S){return this.raw(S)},W.prototype.i=function(S,P){return this.instruction(S,P)},W.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof l)return this.attList.apply(this,arguments);else return this.attribute.apply(this,arguments)},W.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof l)return this.attList.apply(this,arguments);else return this.attribute.apply(this,arguments)},W.prototype.ent=function(S,P){return this.entity(S,P)},W.prototype.pent=function(S,P){return this.pEntity(S,P)},W.prototype.not=function(S,P){return this.notation(S,P)},W}()}).call(this)},{"./Utility":68,"./XMLAttribute":69,"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLStringWriter":85,"./XMLStringifier":86,"./XMLText":87}],80:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t=function(g,_){for(var w in _)if(l.call(_,w))g[w]=_[w];function y(){this.constructor=g}return y.prototype=_.prototype,g.prototype=new y,g.__super__=_.prototype,g},l={}.hasOwnProperty;i=X("./Utility"),o=i.isObject,c=i.isFunction,k=i.getValue,p=X("./XMLNode"),z=X("./XMLAttribute"),ce.exports=I=function(g){t(_,g);function _(w,y,h){if(_.__super__.constructor.call(this,w),y==null)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.eleName(y),this.attributes={},h!=null)this.attribute(h);if(w.isDocument)this.isRoot=!0,this.documentObject=w,w.rootObject=this}return _.prototype.clone=function(){var w,y,h,T;if(h=Object.create(this),h.isRoot)h.documentObject=null;h.attributes={},T=this.attributes;for(y in T){if(!l.call(T,y))continue;w=T[y],h.attributes[y]=w.clone()}return h.children=[],this.children.forEach(function(x){var n=x.clone();return n.parent=h,h.children.push(n)}),h},_.prototype.attribute=function(w,y){var h,T;if(w!=null)w=k(w);if(o(w))for(h in w){if(!l.call(w,h))continue;T=w[h],this.attribute(h,T)}else{if(c(y))y=y.apply();if(!this.options.skipNullAttributes||y!=null)this.attributes[w]=new z(this,w,y)}return this},_.prototype.removeAttribute=function(w){var y,h,T;if(w==null)throw Error("Missing attribute name. "+this.debugInfo());if(w=k(w),Array.isArray(w))for(h=0,T=w.length;h<T;h++)y=w[h],delete this.attributes[y];else delete this.attributes[w];return this},_.prototype.toString=function(w){return this.options.writer.set(w).element(this)},_.prototype.att=function(w,y){return this.attribute(w,y)},_.prototype.a=function(w,y){return this.attribute(w,y)},_}(p)}).call(this)},{"./Utility":68,"./XMLAttribute":69,"./XMLNode":81}],81:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T={}.hasOwnProperty;h=X("./Utility"),y=h.isObject,w=h.isFunction,_=h.isEmpty,g=h.getValue,c=null,z=null,I=null,p=null,k=null,t=null,l=null,i=null,ce.exports=o=function(){function x(n){if(this.parent=n,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(this.children=[],!c)c=X("./XMLElement"),z=X("./XMLCData"),I=X("./XMLComment"),p=X("./XMLDeclaration"),k=X("./XMLDocType"),t=X("./XMLRaw"),l=X("./XMLText"),i=X("./XMLProcessingInstruction")}return x.prototype.element=function(n,v,a){var E,F,A,W,S,P,O,H,ee,U;if(P=null,v==null)v={};if(v=g(v),!y(v))ee=[v,a],a=ee[0],v=ee[1];if(n!=null)n=g(n);if(Array.isArray(n))for(A=0,O=n.length;A<O;A++)F=n[A],P=this.element(F);else if(w(n))P=this.element(n.apply());else if(y(n))for(S in n){if(!T.call(n,S))continue;if(U=n[S],w(U))U=U.apply();if(y(U)&&_(U))U=null;if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&S.indexOf(this.stringify.convertAttKey)===0)P=this.attribute(S.substr(this.stringify.convertAttKey.length),U);else if(!this.options.separateArrayItems&&Array.isArray(U))for(W=0,H=U.length;W<H;W++)F=U[W],E={},E[S]=F,P=this.element(E);else if(y(U))P=this.element(S),P.element(U);else P=this.element(S,U)}else if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&n.indexOf(this.stringify.convertTextKey)===0)P=this.text(a);else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&n.indexOf(this.stringify.convertCDataKey)===0)P=this.cdata(a);else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&n.indexOf(this.stringify.convertCommentKey)===0)P=this.comment(a);else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&n.indexOf(this.stringify.convertRawKey)===0)P=this.raw(a);else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&n.indexOf(this.stringify.convertPIKey)===0)P=this.instruction(n.substr(this.stringify.convertPIKey.length),a);else P=this.node(n,v,a);if(P==null)throw Error("Could not create any elements with: "+n+". "+this.debugInfo());return P},x.prototype.insertBefore=function(n,v,a){var E,F,A;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(n));return F=this.parent.children.indexOf(this),A=this.parent.children.splice(F),E=this.parent.element(n,v,a),Array.prototype.push.apply(this.parent.children,A),E},x.prototype.insertAfter=function(n,v,a){var E,F,A;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(n));return F=this.parent.children.indexOf(this),A=this.parent.children.splice(F+1),E=this.parent.element(n,v,a),Array.prototype.push.apply(this.parent.children,A),E},x.prototype.remove=function(){var n,v;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return n=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[n,n-n+1].concat(v=[])),this.parent},x.prototype.node=function(n,v,a){var E,F;if(n!=null)n=g(n);if(v||(v={}),v=g(v),!y(v))F=[v,a],a=F[0],v=F[1];if(E=new c(this,n,v),a!=null)E.text(a);return this.children.push(E),E},x.prototype.text=function(n){var v=new l(this,n);return this.children.push(v),this},x.prototype.cdata=function(n){var v=new z(this,n);return this.children.push(v),this},x.prototype.comment=function(n){var v=new I(this,n);return this.children.push(v),this},x.prototype.commentBefore=function(n){var v,a,E;return a=this.parent.children.indexOf(this),E=this.parent.children.splice(a),v=this.parent.comment(n),Array.prototype.push.apply(this.parent.children,E),this},x.prototype.commentAfter=function(n){var v,a,E;return a=this.parent.children.indexOf(this),E=this.parent.children.splice(a+1),v=this.parent.comment(n),Array.prototype.push.apply(this.parent.children,E),this},x.prototype.raw=function(n){var v=new t(this,n);return this.children.push(v),this},x.prototype.instruction=function(n,v){var a,E,F,A,W;if(n!=null)n=g(n);if(v!=null)v=g(v);if(Array.isArray(n))for(A=0,W=n.length;A<W;A++)a=n[A],this.instruction(a);else if(y(n))for(a in n){if(!T.call(n,a))continue;E=n[a],this.instruction(a,E)}else{if(w(v))v=v.apply();F=new i(this,n,v),this.children.push(F)}return this},x.prototype.instructionBefore=function(n,v){var a,E,F;return E=this.parent.children.indexOf(this),F=this.parent.children.splice(E),a=this.parent.instruction(n,v),Array.prototype.push.apply(this.parent.children,F),this},x.prototype.instructionAfter=function(n,v){var a,E,F;return E=this.parent.children.indexOf(this),F=this.parent.children.splice(E+1),a=this.parent.instruction(n,v),Array.prototype.push.apply(this.parent.children,F),this},x.prototype.declaration=function(n,v,a){var E,F;if(E=this.document(),F=new p(E,n,v,a),E.children[0]instanceof p)E.children[0]=F;else E.children.unshift(F);return E.root()||E},x.prototype.doctype=function(n,v){var a,E,F,A,W,S,P,O,H,ee;E=this.document(),F=new k(E,n,v),H=E.children;for(A=W=0,P=H.length;W<P;A=++W)if(a=H[A],a instanceof k)return E.children[A]=F,F;ee=E.children;for(A=S=0,O=ee.length;S<O;A=++S)if(a=ee[A],a.isRoot)return E.children.splice(A,0,F),F;return E.children.push(F),F},x.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},x.prototype.root=function(){var n=this;while(n)if(n.isDocument)return n.rootObject;else if(n.isRoot)return n;else n=n.parent},x.prototype.document=function(){var n=this;while(n)if(n.isDocument)return n;else n=n.parent},x.prototype.end=function(n){return this.document().end(n)},x.prototype.prev=function(){var n=this.parent.children.indexOf(this);if(n<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[n-1]},x.prototype.next=function(){var n=this.parent.children.indexOf(this);if(n===-1||n===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[n+1]},x.prototype.importDocument=function(n){var v=n.root().clone();return v.parent=this,v.isRoot=!1,this.children.push(v),this},x.prototype.debugInfo=function(n){var v,a;if(n=n||this.name,n==null&&!((v=this.parent)!=null?v.name:void 0))return"";else if(n==null)return"parent: <"+this.parent.name+">";else if(!((a=this.parent)!=null?a.name:void 0))return"node: <"+n+">";else return"node: <"+n+">, parent: <"+this.parent.name+">"},x.prototype.ele=function(n,v,a){return this.element(n,v,a)},x.prototype.nod=function(n,v,a){return this.node(n,v,a)},x.prototype.txt=function(n){return this.text(n)},x.prototype.dat=function(n){return this.cdata(n)},x.prototype.com=function(n){return this.comment(n)},x.prototype.ins=function(n,v){return this.instruction(n,v)},x.prototype.doc=function(){return this.document()},x.prototype.dec=function(n,v,a){return this.declaration(n,v,a)},x.prototype.dtd=function(n,v){return this.doctype(n,v)},x.prototype.e=function(n,v,a){return this.element(n,v,a)},x.prototype.n=function(n,v,a){return this.node(n,v,a)},x.prototype.t=function(n){return this.text(n)},x.prototype.d=function(n){return this.cdata(n)},x.prototype.c=function(n){return this.comment(n)},x.prototype.r=function(n){return this.raw(n)},x.prototype.i=function(n,v){return this.instruction(n,v)},x.prototype.u=function(){return this.up()},x.prototype.importXMLBuilder=function(n){return this.importDocument(n)},x}()}).call(this)},{"./Utility":68,"./XMLCData":70,"./XMLComment":71,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87}],82:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;z=X("./XMLNode"),ce.exports=I=function(c){p(o,c);function o(i,t,l){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing instruction target. "+this.debugInfo());if(this.target=this.stringify.insTarget(t),l)this.value=this.stringify.insValue(l)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).processingInstruction(this)},o}(z)}).call(this)},{"./XMLNode":81}],83:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;z=X("./XMLNode"),ce.exports=I=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).raw(this)},o}(z)}).call(this)},{"./XMLNode":81}],84:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T=function(n,v){for(var a in v)if(x.call(v,a))n[a]=v[a];function E(){this.constructor=n}return E.prototype=v.prototype,n.prototype=new E,n.__super__=v.prototype,n},x={}.hasOwnProperty;i=X("./XMLDeclaration"),t=X("./XMLDocType"),z=X("./XMLCData"),I=X("./XMLComment"),l=X("./XMLElement"),_=X("./XMLRaw"),y=X("./XMLText"),g=X("./XMLProcessingInstruction"),p=X("./XMLDTDAttList"),k=X("./XMLDTDElement"),c=X("./XMLDTDEntity"),o=X("./XMLDTDNotation"),h=X("./XMLWriterBase"),ce.exports=w=function(n){T(v,n);function v(a,E){v.__super__.constructor.call(this,E),this.stream=a}return v.prototype.document=function(a){var E,F,A,W,S,P,O,H;P=a.children;for(F=0,W=P.length;F<W;F++)E=P[F],E.isLastRootNode=!1;a.children[a.children.length-1].isLastRootNode=!0,O=a.children,H=[];for(A=0,S=O.length;A<S;A++)switch(E=O[A],!1){case!(E instanceof i):H.push(this.declaration(E));break;case!(E instanceof t):H.push(this.docType(E));break;case!(E instanceof I):H.push(this.comment(E));break;case!(E instanceof g):H.push(this.processingInstruction(E));break;default:H.push(this.element(E))}return H},v.prototype.attribute=function(a){return this.stream.write(" "+a.name+'="'+a.value+'"')},v.prototype.cdata=function(a,E){return this.stream.write(this.space(E)+"<![CDATA["+a.text+"]]>"+this.endline(a))},v.prototype.comment=function(a,E){return this.stream.write(this.space(E)+"<!-- "+a.text+" -->"+this.endline(a))},v.prototype.declaration=function(a,E){if(this.stream.write(this.space(E)),this.stream.write('<?xml version="'+a.version+'"'),a.encoding!=null)this.stream.write(' encoding="'+a.encoding+'"');if(a.standalone!=null)this.stream.write(' standalone="'+a.standalone+'"');return this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(a))},v.prototype.docType=function(a,E){var F,A,W,S;if(E||(E=0),this.stream.write(this.space(E)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID)this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"');else if(a.sysID)this.stream.write(' SYSTEM "'+a.sysID+'"');if(a.children.length>0){this.stream.write(" ["),this.stream.write(this.endline(a)),S=a.children;for(A=0,W=S.length;A<W;A++)switch(F=S[A],!1){case!(F instanceof p):this.dtdAttList(F,E+1);break;case!(F instanceof k):this.dtdElement(F,E+1);break;case!(F instanceof c):this.dtdEntity(F,E+1);break;case!(F instanceof o):this.dtdNotation(F,E+1);break;case!(F instanceof z):this.cdata(F,E+1);break;case!(F instanceof I):this.comment(F,E+1);break;case!(F instanceof g):this.processingInstruction(F,E+1);break;default:throw Error("Unknown DTD node type: "+F.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(a))},v.prototype.element=function(a,E){var F,A,W,S,P,O,H,ee;E||(E=0),ee=this.space(E),this.stream.write(ee+"<"+a.name),O=a.attributes;for(P in O){if(!x.call(O,P))continue;F=O[P],this.attribute(F)}if(a.children.length===0||a.children.every(function(U){return U.value===""}))if(this.allowEmpty)this.stream.write("></"+a.name+">");else this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&a.children.length===1&&a.children[0].value!=null)this.stream.write(">"),this.stream.write(a.children[0].value),this.stream.write("</"+a.name+">");else{this.stream.write(">"+this.newline),H=a.children;for(W=0,S=H.length;W<S;W++)switch(A=H[W],!1){case!(A instanceof z):this.cdata(A,E+1);break;case!(A instanceof I):this.comment(A,E+1);break;case!(A instanceof l):this.element(A,E+1);break;case!(A instanceof _):this.raw(A,E+1);break;case!(A instanceof y):this.text(A,E+1);break;case!(A instanceof g):this.processingInstruction(A,E+1);break;default:throw Error("Unknown XML node type: "+A.constructor.name)}this.stream.write(ee+"</"+a.name+">")}return this.stream.write(this.endline(a))},v.prototype.processingInstruction=function(a,E){if(this.stream.write(this.space(E)+"<?"+a.target),a.value)this.stream.write(" "+a.value);return this.stream.write(this.spacebeforeslash+"?>"+this.endline(a))},v.prototype.raw=function(a,E){return this.stream.write(this.space(E)+a.value+this.endline(a))},v.prototype.text=function(a,E){return this.stream.write(this.space(E)+a.value+this.endline(a))},v.prototype.dtdAttList=function(a,E){if(this.stream.write(this.space(E)+"<!ATTLIST "+a.elementName+" "+a.attributeName+" "+a.attributeType),a.defaultValueType!=="#DEFAULT")this.stream.write(" "+a.defaultValueType);if(a.defaultValue)this.stream.write(' "'+a.defaultValue+'"');return this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.dtdElement=function(a,E){return this.stream.write(this.space(E)+"<!ELEMENT "+a.name+" "+a.value),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.dtdEntity=function(a,E){if(this.stream.write(this.space(E)+"<!ENTITY"),a.pe)this.stream.write(" %");if(this.stream.write(" "+a.name),a.value)this.stream.write(' "'+a.value+'"');else{if(a.pubID&&a.sysID)this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"');else if(a.sysID)this.stream.write(' SYSTEM "'+a.sysID+'"');if(a.nData)this.stream.write(" NDATA "+a.nData)}return this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.dtdNotation=function(a,E){if(this.stream.write(this.space(E)+"<!NOTATION "+a.name),a.pubID&&a.sysID)this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"');else if(a.pubID)this.stream.write(' PUBLIC "'+a.pubID+'"');else if(a.sysID)this.stream.write(' SYSTEM "'+a.sysID+'"');return this.stream.write(this.spacebeforeslash+">"+this.endline(a))},v.prototype.endline=function(a){if(!a.isLastRootNode)return this.newline;else return""},v}(h)}).call(this)},{"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87,"./XMLWriterBase":88}],85:[function(X,ce,L){(function(){var z,I,p,k,c,o,i,t,l,g,_,w,y,h,T=function(n,v){for(var a in v)if(x.call(v,a))n[a]=v[a];function E(){this.constructor=n}return E.prototype=v.prototype,n.prototype=new E,n.__super__=v.prototype,n},x={}.hasOwnProperty;i=X("./XMLDeclaration"),t=X("./XMLDocType"),z=X("./XMLCData"),I=X("./XMLComment"),l=X("./XMLElement"),_=X("./XMLRaw"),y=X("./XMLText"),g=X("./XMLProcessingInstruction"),p=X("./XMLDTDAttList"),k=X("./XMLDTDElement"),c=X("./XMLDTDEntity"),o=X("./XMLDTDNotation"),h=X("./XMLWriterBase"),ce.exports=w=function(n){T(v,n);function v(a){v.__super__.constructor.call(this,a)}return v.prototype.document=function(a){var E,F,A,W,S;this.textispresent=!1,W="",S=a.children;for(F=0,A=S.length;F<A;F++)E=S[F],W+=function(){switch(!1){case!(E instanceof i):return this.declaration(E);case!(E instanceof t):return this.docType(E);case!(E instanceof I):return this.comment(E);case!(E instanceof g):return this.processingInstruction(E);default:return this.element(E,0)}}.call(this);if(this.pretty&&W.slice(-this.newline.length)===this.newline)W=W.slice(0,-this.newline.length);return W},v.prototype.attribute=function(a){return" "+a.name+'="'+a.value+'"'},v.prototype.cdata=function(a,E){return this.space(E)+"<![CDATA["+a.text+"]]>"+this.newline},v.prototype.comment=function(a,E){return this.space(E)+"<!-- "+a.text+" -->"+this.newline},v.prototype.declaration=function(a,E){var F=this.space(E);if(F+='<?xml version="'+a.version+'"',a.encoding!=null)F+=' encoding="'+a.encoding+'"';if(a.standalone!=null)F+=' standalone="'+a.standalone+'"';return F+=this.spacebeforeslash+"?>",F+=this.newline,F},v.prototype.docType=function(a,E){var F,A,W,S,P;if(E||(E=0),S=this.space(E),S+="<!DOCTYPE "+a.root().name,a.pubID&&a.sysID)S+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.sysID)S+=' SYSTEM "'+a.sysID+'"';if(a.children.length>0){S+=" [",S+=this.newline,P=a.children;for(A=0,W=P.length;A<W;A++)F=P[A],S+=function(){switch(!1){case!(F instanceof p):return this.dtdAttList(F,E+1);case!(F instanceof k):return this.dtdElement(F,E+1);case!(F instanceof c):return this.dtdEntity(F,E+1);case!(F instanceof o):return this.dtdNotation(F,E+1);case!(F instanceof z):return this.cdata(F,E+1);case!(F instanceof I):return this.comment(F,E+1);case!(F instanceof g):return this.processingInstruction(F,E+1);default:throw Error("Unknown DTD node type: "+F.constructor.name)}}.call(this);S+="]"}return S+=this.spacebeforeslash+">",S+=this.newline,S},v.prototype.element=function(a,E){var F,A,W,S,P,O,H,ee,U,J,D,te,ye;if(E||(E=0),ye=!1,this.textispresent)this.newline="",this.pretty=!1;else this.newline=this.newlinedefault,this.pretty=this.prettydefault;te=this.space(E),ee="",ee+=te+"<"+a.name,U=a.attributes;for(H in U){if(!x.call(U,H))continue;F=U[H],ee+=this.attribute(F)}if(a.children.length===0||a.children.every(function(se){return se.value===""}))if(this.allowEmpty)ee+="></"+a.name+">"+this.newline;else ee+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&a.children.length===1&&a.children[0].value!=null)ee+=">",ee+=a.children[0].value,ee+="</"+a.name+">"+this.newline;else{if(this.dontprettytextnodes){J=a.children;for(W=0,P=J.length;W<P;W++)if(A=J[W],A.value!=null){this.textispresent++,ye=!0;break}}if(this.textispresent)this.newline="",this.pretty=!1,te=this.space(E);ee+=">"+this.newline,D=a.children;for(S=0,O=D.length;S<O;S++)A=D[S],ee+=function(){switch(!1){case!(A instanceof z):return this.cdata(A,E+1);case!(A instanceof I):return this.comment(A,E+1);case!(A instanceof l):return this.element(A,E+1);case!(A instanceof _):return this.raw(A,E+1);case!(A instanceof y):return this.text(A,E+1);case!(A instanceof g):return this.processingInstruction(A,E+1);default:throw Error("Unknown XML node type: "+A.constructor.name)}}.call(this);if(ye)this.textispresent--;if(!this.textispresent)this.newline=this.newlinedefault,this.pretty=this.prettydefault;ee+=te+"</"+a.name+">"+this.newline}return ee},v.prototype.processingInstruction=function(a,E){var F=this.space(E)+"<?"+a.target;if(a.value)F+=" "+a.value;return F+=this.spacebeforeslash+"?>"+this.newline,F},v.prototype.raw=function(a,E){return this.space(E)+a.value+this.newline},v.prototype.text=function(a,E){return this.space(E)+a.value+this.newline},v.prototype.dtdAttList=function(a,E){var F=this.space(E)+"<!ATTLIST "+a.elementName+" "+a.attributeName+" "+a.attributeType;if(a.defaultValueType!=="#DEFAULT")F+=" "+a.defaultValueType;if(a.defaultValue)F+=' "'+a.defaultValue+'"';return F+=this.spacebeforeslash+">"+this.newline,F},v.prototype.dtdElement=function(a,E){return this.space(E)+"<!ELEMENT "+a.name+" "+a.value+this.spacebeforeslash+">"+this.newline},v.prototype.dtdEntity=function(a,E){var F=this.space(E)+"<!ENTITY";if(a.pe)F+=" %";if(F+=" "+a.name,a.value)F+=' "'+a.value+'"';else{if(a.pubID&&a.sysID)F+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.sysID)F+=' SYSTEM "'+a.sysID+'"';if(a.nData)F+=" NDATA "+a.nData}return F+=this.spacebeforeslash+">"+this.newline,F},v.prototype.dtdNotation=function(a,E){var F=this.space(E)+"<!NOTATION "+a.name;if(a.pubID&&a.sysID)F+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.pubID)F+=' PUBLIC "'+a.pubID+'"';else if(a.sysID)F+=' SYSTEM "'+a.sysID+'"';return F+=this.spacebeforeslash+">"+this.newline,F},v.prototype.openNode=function(a,E){var F,A,W,S;if(E||(E=0),a instanceof l){W=this.space(E)+"<"+a.name,S=a.attributes;for(A in S){if(!x.call(S,A))continue;F=S[A],W+=this.attribute(F)}return W+=(a.children?">":"/>")+this.newline,W}else{if(W=this.space(E)+"<!DOCTYPE "+a.rootNodeName,a.pubID&&a.sysID)W+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"';else if(a.sysID)W+=' SYSTEM "'+a.sysID+'"';return W+=(a.children?" [":">")+this.newline,W}},v.prototype.closeNode=function(a,E){switch(E||(E=0),!1){case!(a instanceof l):return this.space(E)+"</"+a.name+">"+this.newline;case!(a instanceof t):return this.space(E)+"]>"+this.newline}},v}(h)}).call(this)},{"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87,"./XMLWriterBase":88}],86:[function(X,ce,L){(function(){var z,I=function(k,c){return function(){return k.apply(c,arguments)}},p={}.hasOwnProperty;ce.exports=z=function(){function k(c){this.assertLegalChar=I(this.assertLegalChar,this);var o,i,t;c||(c={}),this.noDoubleEncoding=c.noDoubleEncoding,i=c.stringify||{};for(o in i){if(!p.call(i,o))continue;t=i[o],this[o]=t}}return k.prototype.eleName=function(c){return c=""+c||"",this.assertLegalChar(c)},k.prototype.eleText=function(c){return c=""+c||"",this.assertLegalChar(this.elEscape(c))},k.prototype.cdata=function(c){return c=""+c||"",c=c.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(c)},k.prototype.comment=function(c){if(c=""+c||"",c.match(/--/))throw Error("Comment text cannot contain double-hypen: "+c);return this.assertLegalChar(c)},k.prototype.raw=function(c){return""+c||""},k.prototype.attName=function(c){return c=""+c||""},k.prototype.attValue=function(c){return c=""+c||"",this.attEscape(c)},k.prototype.insTarget=function(c){return""+c||""},k.prototype.insValue=function(c){if(c=""+c||"",c.match(/\?>/))throw Error("Invalid processing instruction value: "+c);return c},k.prototype.xmlVersion=function(c){if(c=""+c||"",!c.match(/1\.[0-9]+/))throw Error("Invalid version number: "+c);return c},k.prototype.xmlEncoding=function(c){if(c=""+c||"",!c.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+c);return c},k.prototype.xmlStandalone=function(c){if(c)return"yes";else return"no"},k.prototype.dtdPubID=function(c){return""+c||""},k.prototype.dtdSysID=function(c){return""+c||""},k.prototype.dtdElementValue=function(c){return""+c||""},k.prototype.dtdAttType=function(c){return""+c||""},k.prototype.dtdAttDefault=function(c){if(c!=null)return""+c||"";else return c},k.prototype.dtdEntityValue=function(c){return""+c||""},k.prototype.dtdNData=function(c){return""+c||""},k.prototype.convertAttKey="@",k.prototype.convertPIKey="?",k.prototype.convertTextKey="#text",k.prototype.convertCDataKey="#cdata",k.prototype.convertCommentKey="#comment",k.prototype.convertRawKey="#raw",k.prototype.assertLegalChar=function(c){var o=c.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(o)throw Error("Invalid character in string: "+c+" at index "+o.index);return c},k.prototype.elEscape=function(c){var o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return c.replace(o,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},k.prototype.attEscape=function(c){var o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return c.replace(o,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},k}()}).call(this)},{}],87:[function(X,ce,L){(function(){var z,I,p=function(c,o){for(var i in o)if(k.call(o,i))c[i]=o[i];function t(){this.constructor=c}return t.prototype=o.prototype,c.prototype=new t,c.__super__=o.prototype,c},k={}.hasOwnProperty;z=X("./XMLNode"),ce.exports=I=function(c){p(o,c);function o(i,t){if(o.__super__.constructor.call(this,i),t==null)throw Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(t)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).text(this)},o}(z)}).call(this)},{"./XMLNode":81}],88:[function(X,ce,L){(function(){var z,I={}.hasOwnProperty;ce.exports=z=function(){function p(k){var c,o,i,t,l,g,_,w,y;if(k||(k={}),this.pretty=k.pretty||!1,this.allowEmpty=(o=k.allowEmpty)!=null?o:!1,this.pretty)this.indent=(i=k.indent)!=null?i:" ",this.newline=(t=k.newline)!=null?t:`
|
|
57
57
|
`,this.offset=(l=k.offset)!=null?l:0,this.dontprettytextnodes=(g=k.dontprettytextnodes)!=null?g:0;else this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0;if(this.spacebeforeslash=(_=k.spacebeforeslash)!=null?_:"",this.spacebeforeslash===!0)this.spacebeforeslash=" ";this.newlinedefault=this.newline,this.prettydefault=this.pretty,w=k.writer||{};for(c in w){if(!I.call(w,c))continue;y=w[c],this[c]=y}}return p.prototype.set=function(k){var c,o,i;if(k||(k={}),"pretty"in k)this.pretty=k.pretty;if("allowEmpty"in k)this.allowEmpty=k.allowEmpty;if(this.pretty)this.indent="indent"in k?k.indent:" ",this.newline="newline"in k?k.newline:`
|
|
58
|
-
`,this.offset="offset"in k?k.offset:0,this.dontprettytextnodes="dontprettytextnodes"in k?k.dontprettytextnodes:0;else this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0;if(this.spacebeforeslash="spacebeforeslash"in k?k.spacebeforeslash:"",this.spacebeforeslash===!0)this.spacebeforeslash=" ";this.newlinedefault=this.newline,this.prettydefault=this.pretty,o=k.writer||{};for(c in o){if(!I.call(o,c))continue;i=o[c],this[c]=i}return this},p.prototype.space=function(k){var c;if(this.pretty)if(c=(k||0)+this.offset+1,c>0)return Array(c).join(this.indent);else return"";else return""},p}()}).call(this)},{}],89:[function(X,ce,L){(function(){var z,I,p,k,c,o,i;i=X("./Utility"),c=i.assign,o=i.isFunction,z=X("./XMLDocument"),I=X("./XMLDocumentCB"),k=X("./XMLStringWriter"),p=X("./XMLStreamWriter"),ce.exports.create=function(t,l,g,_){var w,y;if(t==null)throw Error("Root element needs a name.");if(_=c({},l,g,_),w=new z(_),y=w.element(t),!_.headless){if(w.declaration(_),_.pubID!=null||_.sysID!=null)w.doctype(_)}return y},ce.exports.begin=function(t,l,g){var _;if(o(t))_=[t,l],l=_[0],g=_[1],t={};if(l)return new I(t,l,g);else return new z(t)},ce.exports.stringWriter=function(t){return new k(t)},ce.exports.streamWriter=function(t,l){return new p(t,l)}}).call(this)},{"./Utility":68,"./XMLDocument":78,"./XMLDocumentCB":79,"./XMLStreamWriter":84,"./XMLStringWriter":85}]},{},[21])(21)})});var _r=
|
|
58
|
+
`,this.offset="offset"in k?k.offset:0,this.dontprettytextnodes="dontprettytextnodes"in k?k.dontprettytextnodes:0;else this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0;if(this.spacebeforeslash="spacebeforeslash"in k?k.spacebeforeslash:"",this.spacebeforeslash===!0)this.spacebeforeslash=" ";this.newlinedefault=this.newline,this.prettydefault=this.pretty,o=k.writer||{};for(c in o){if(!I.call(o,c))continue;i=o[c],this[c]=i}return this},p.prototype.space=function(k){var c;if(this.pretty)if(c=(k||0)+this.offset+1,c>0)return Array(c).join(this.indent);else return"";else return""},p}()}).call(this)},{}],89:[function(X,ce,L){(function(){var z,I,p,k,c,o,i;i=X("./Utility"),c=i.assign,o=i.isFunction,z=X("./XMLDocument"),I=X("./XMLDocumentCB"),k=X("./XMLStringWriter"),p=X("./XMLStreamWriter"),ce.exports.create=function(t,l,g,_){var w,y;if(t==null)throw Error("Root element needs a name.");if(_=c({},l,g,_),w=new z(_),y=w.element(t),!_.headless){if(w.declaration(_),_.pubID!=null||_.sysID!=null)w.doctype(_)}return y},ce.exports.begin=function(t,l,g){var _;if(o(t))_=[t,l],l=_[0],g=_[1],t={};if(l)return new I(t,l,g);else return new z(t)},ce.exports.stringWriter=function(t){return new k(t)},ce.exports.streamWriter=function(t,l){return new p(t,l)}}).call(this)},{"./Utility":68,"./XMLDocument":78,"./XMLDocumentCB":79,"./XMLStreamWriter":84,"./XMLStringWriter":85}]},{},[21])(21)})});var _r=dn(wr(),1);async function bn(et){return(await _r.default.convertToHtml({arrayBuffer:et})).value}function Sn({source:et,name:ft,revision:Yt=0}){let{value:X,loading:ce,error:L}=ad(et,bn,Yt),z=u(()=>X?Fp(X):"",[X]);if(L)return e(Dr,{name:ft,message:L});if(ce||X===null)return e("div",{className:"flex flex-1 items-center justify-center gap-2 text-xs text-ink/40",children:[e(m,{size:14,className:"animate-spin"}),e("span",{children:"Loading document…"})]});return e("div",{className:"flex-1 overflow-auto bg-paper",children:e("div",{className:"prose-content mx-auto max-w-4xl p-6 font-sans",dangerouslySetInnerHTML:{__html:z}})})}export{Sn as DocxView};
|