@kabmo-labs/kabmo 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +435 -432
- package/dist/client/static/js/{CsvGrid-vze4m5ag.js → CsvGrid-1h3bcak7.js} +2 -2
- package/dist/client/static/js/{DocxView-jbf21gmh.js → DocxView-ndca8jch.js} +3 -3
- package/dist/client/static/js/{DrawioView-b52qybx5.js → DrawioView-kpzd6y0b.js} +2 -2
- package/dist/client/static/js/{ImageView-mdgzj8px.js → ImageView-79prn3dg.js} +1 -1
- package/dist/client/static/js/{LayoutWrapper-3c49dvtt.js → LayoutWrapper-v2wn2sb2.js} +2 -2
- package/dist/client/static/js/{Modal-sqp864vd.js → Modal-99j0zz3z.js} +16 -16
- package/dist/client/static/js/{PdfView-g06rxqb1.js → PdfView-2rjd87ay.js} +1 -1
- package/dist/client/static/js/{SessionsView-521adxyr.js → SessionsView-t7f3s71b.js} +1 -1
- package/dist/client/static/js/{SheetView-h8xmsz7q.js → SheetView-ehb976st.js} +4 -4
- package/dist/client/static/js/{SvgPreview-1j4jvcvz.js → SvgPreview-de2bbba6.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-pasxh4b6.js → abnfDiagram-O67JEVCF-nx9jzn7m.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-aqft2erp.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-ms14g0bm.js → architectureDiagram-NJMV4G6O-170v67rr.js} +2 -2
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-ycn78fcq.js → blockDiagram-BEXU5L5S-16q285n1.js} +2 -2
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-vn2gpjfm.js → c4Diagram-YGBWAQC7-rn3qt45h.js} +1 -1
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-fyrm1pr5.js → classDiagram-v2-NBCMYWYE-r26wg74e.js} +3 -3
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-ea5nwvgq.js → cose-bilkent-JH36ORCC-82kwe7ha.js} +1 -1
- package/dist/client/static/js/css-r2nhvzff.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-v2sz60t6.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-j6bsjpre.js → cynefinDiagram-VND7K2PF-tcxdn6pa.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-4smdkwv8.js → dagre-6A5THRUB-g833ata3.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-9sm4kqwc.js → diagram-22UHCM2B-f1fq8xec.js} +4 -4
- package/dist/client/static/js/{diagram-3UASUU5V-2h3qxaed.js → diagram-3UASUU5V-6j2w016f.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-1981bc94.js → diagram-ATOU4E4O-6t2qxsk4.js} +1 -1
- package/dist/client/static/js/{diagram-CDSNMT55-3vgsxavc.js → diagram-CDSNMT55-7abar8s7.js} +1 -1
- package/dist/client/static/js/{diagram-MLGK6HIB-c9gf2r3f.js → diagram-MLGK6HIB-s68rgy16.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-gjqeq92d.js → diagram-MPIPVDR6-azgkm6w8.js} +1 -1
- package/dist/client/static/js/{dockerfile-8v935dkn.js → dockerfile-47e33kqa.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-4vbsgh99.js → ebnfDiagram-ZINNZB2B-esrjz750.js} +1 -1
- package/dist/client/static/js/{elixir-vcbg60wv.js → elixir-rpa1g4gy.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-nca3t891.js → elk-276RUBZZ-fhr4b4jj.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-5kfkev03.js → erDiagram-OPXOYQCR-5r3fmdnz.js} +2 -2
- package/dist/client/static/js/{erlang-qt876zrq.js → erlang-bh5cbm8m.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-8qbefe4m.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-krsvgcq7.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-mxc73wmq.js → ganttDiagram-FUAMR5RP-j4pf6rdn.js} +2 -2
- package/dist/client/static/js/gitGraph-4MIJSDKK-9bx1a38k.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-7en3ag0e.js → gitGraphDiagram-X574FWY7-x5epk0gr.js} +1 -1
- package/dist/client/static/js/graphql-xnpp5gn9.js +1 -0
- package/dist/client/static/js/html-pv88ny12.js +1 -0
- package/dist/client/static/js/{index-j51d5a5m.js → index-0b1kwsam.js} +28 -28
- package/dist/client/static/js/{index-52rqxgya.js → index-3kgrcaq1.js} +1 -1
- package/dist/client/static/js/{index-vhqe0y82.js → index-3vdmwpbh.js} +2 -2
- package/dist/client/static/js/{index-g2dyfze9.js → index-40ve7zzv.js} +1 -1
- package/dist/client/static/js/{index-eyfcm0cy.js → index-44qrckd2.js} +1 -1
- package/dist/client/static/js/{index-qckv9nte.js → index-55pqvh82.js} +2 -2
- package/dist/client/static/js/{index-r014brzs.js → index-5kjpacvd.js} +1 -1
- package/dist/client/static/js/{index-ev3yt353.js → index-5rzk1226.js} +1 -1
- package/dist/client/static/js/{index-p0nz38bm.js → index-60ceydzn.js} +1 -1
- package/dist/client/static/js/{index-ybm2x4vh.js → index-63c6t75t.js} +1 -1
- package/dist/client/static/js/{index-ahv9y42z.js → index-63jbb4kf.js} +2 -2
- package/dist/client/static/js/{index-nccwxv0s.js → index-6xzfta4b.js} +1 -1
- package/dist/client/static/js/{index-cgzrpvzj.js → index-75haaj8g.js} +169 -169
- package/dist/client/static/js/{index-ag2rmtas.js → index-7r1hw2gd.js} +1 -1
- package/dist/client/static/js/{index-hf52f59k.js → index-8cy3x2y8.js} +2 -2
- package/dist/client/static/js/{index-vy6termr.js → index-8e15fzax.js} +1 -1
- package/dist/client/static/js/{index-rzxcj7cg.js → index-97t3mv1v.js} +1 -1
- package/dist/client/static/js/{index-km2zb6wk.js → index-982jyfsb.js} +2 -2
- package/dist/client/static/js/{index-jsyekbx9.js → index-9gf8b73w.js} +1 -1
- package/dist/client/static/js/{index-s7gkkkyz.js → index-a293pdg7.js} +2 -2
- package/dist/client/static/js/{index-dbe6afkf.js → index-af24nes6.js} +2 -2
- package/dist/client/static/js/{index-ptcwae2n.js → index-b48p8d1j.js} +2 -2
- package/dist/client/static/js/{index-cd65zqba.js → index-be6gevq8.js} +1 -1
- package/dist/client/static/js/{index-231241f4.js → index-c09a5s1n.js} +9 -9
- package/dist/client/static/js/{index-fvmfge3p.js → index-c1j0xb0w.js} +1 -1
- package/dist/client/static/js/{index-fta1y9pc.js → index-ctgefatv.js} +10 -10
- package/dist/client/static/js/{index-7a64yjrm.js → index-d2km9egp.js} +4 -4
- package/dist/client/static/js/index-dh1vd0d9.js +1 -0
- package/dist/client/static/js/{index-j0r5hj0j.js → index-dmgawfhw.js} +2 -2
- package/dist/client/static/js/{index-1ksg88qf.js → index-h1e1abpt.js} +2 -2
- package/dist/client/static/js/{index-4g46wbdw.js → index-htt8qxm3.js} +1 -1
- package/dist/client/static/js/{index-c3ek61zv.js → index-k1xt92h4.js} +1 -1
- package/dist/client/static/js/{index-f7jhhqtk.js → index-ktvbsj6w.js} +1 -1
- package/dist/client/static/js/{index-a0fmsv1d.js → index-ky0prc71.js} +6 -6
- package/dist/client/static/js/{index-2svnq5gg.js → index-mm1rf116.js} +1 -1
- package/dist/client/static/js/{index-h5bn97p6.js → index-nws03exw.js} +1 -1
- package/dist/client/static/js/{index-xx6mqpxm.js → index-pyx8n25s.js} +2 -2
- package/dist/client/static/js/{index-rs80cwsv.js → index-q5t4sy22.js} +3 -3
- package/dist/client/static/js/{index-76zb4m0n.js → index-r8pckaqe.js} +2 -2
- package/dist/client/static/js/{index-4qwzxj81.js → index-sar2ggde.js} +1 -1
- package/dist/client/static/js/{index-1b0t1428.js → index-skm6k5w2.js} +3 -3
- package/dist/client/static/js/{index-b29afsjh.js → index-v5t761a1.js} +1 -1
- package/dist/client/static/js/{index-7y6rpsrp.js → index-v8qd8ypc.js} +2 -2
- package/dist/client/static/js/{index-354mqqra.js → index-w3n97x4b.js} +2 -2
- package/dist/client/static/js/{index-0vm41je9.js → index-ydvfc9td.js} +1 -1
- package/dist/client/static/js/{index-ptcrwswj.js → index-ye450a7z.js} +1 -1
- package/dist/client/static/js/{index-rytaa8ca.js → index-z6g74h7g.js} +2 -2
- package/dist/client/static/js/{index-sd66wv26.js → index-zdtsvnpq.js} +2 -2
- package/dist/client/static/js/{index-pm6xxwz1.js → index-zp73zexp.js} +2 -2
- package/dist/client/static/js/info-A6RAGUB7-j51t7jhh.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-sef80132.js → infoDiagram-VRGFBTTK-ktc8nb8g.js} +1 -1
- package/dist/client/static/js/ini-ygfyhprj.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-yhvepp1q.js → ishikawaDiagram-OU5B5YK6-n3dk6227.js} +2 -2
- package/dist/client/static/js/java-gm49vw59.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-5w77y95w.js → journeyDiagram-ZHPQQLJL-f0p1h8qn.js} +3 -3
- package/dist/client/static/js/jsx-ksxw1byz.js +1 -0
- package/dist/client/static/js/{julia-d4j6wgvf.js → julia-73zjh2w6.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-02znqtna.js → kanban-definition-PNTS6WVX-7jdt7dv1.js} +2 -2
- package/dist/client/static/js/lua-53gzb9bx.js +1 -0
- package/dist/client/static/js/markdown-tk3cd3vs.js +1 -0
- package/dist/client/static/js/{mermaid.core-a6e6vck4.js → mermaid.core-e8rzrjt9.js} +6 -6
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-y4n74q9x.js → mindmap-definition-NLK3R4M7-7shv6ge0.js} +2 -2
- package/dist/client/static/js/one-dark-pro-39bt34v9.js +1 -0
- package/dist/client/static/js/one-light-xec0sehr.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-n83gfj2g.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-pr7ehgzb.js → pegDiagram-GJSIUBJH-17ak2zx3.js} +1 -1
- package/dist/client/static/js/{perl-srptw5vm.js → perl-8z46dmze.js} +1 -1
- package/dist/client/static/js/{php-n89g3fk7.js → php-6qvnp2t6.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-5c5pctwz.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-39wpsk08.js → pieDiagram-5QR66LMP-at4x1g4q.js} +2 -2
- package/dist/client/static/js/properties-2tcybqjk.js +1 -0
- package/dist/client/static/js/python-qph3dntq.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-esm913km.js → quadrantDiagram-O4NWA36T-apzhwrn4.js} +1 -1
- package/dist/client/static/js/r-gd26x93y.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-52e5n99a.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-44nqxxpy.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-25jxgwg7.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-64pqpf2y.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-0p5sxzpx.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-wy2mgya6.js → railroadDiagram-XR7U4H2S-rw8cj5f3.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-6z9xdgbq.js → requirementDiagram-PLB6GJNP-qyrse7mb.js} +1 -1
- package/dist/client/static/js/{ruby-r81ytgcm.js → ruby-qy8mhstq.js} +1 -1
- package/dist/client/static/js/{rust-frn3szvc.js → rust-fpshqnk0.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-rtmxk3ys.js → sankeyDiagram-IPEJSGJF-254qr59q.js} +1 -1
- package/dist/client/static/js/{sass-9bxped7y.js → sass-kbwea482.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-awzcrafg.js → sequenceDiagram-PO4LG4MO-y9xjxfc5.js} +3 -3
- package/dist/client/static/js/{sizeCapture-INFHLROL-03gy196j.js → sizeCapture-INFHLROL-sc5e60t3.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-an8v3q5n.js → stateDiagram-v2-GCMORJYK-r134s4xr.js} +2 -2
- package/dist/client/static/js/{swimlanes-2SLR337P-n9yb4wcs.js → swimlanes-2SLR337P-xc7rbawt.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-kdcdamkj.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-jceb575g.js → timeline-definition-EJHVYXUP-cgjd8shk.js} +2 -2
- package/dist/client/static/js/treeView-Q6P3EWNA-8j14nnd1.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-esf993kk.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-888h3100.js → usecaseDiagram-POWQR4AR-9qsmjhm6.js} +4 -4
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-wbfz0rzv.js → vennDiagram-UO4OBE2U-4grw9awx.js} +1 -1
- package/dist/client/static/js/{vue-c0rtg1wf.js → vue-j8vb9d7r.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-v4dxm2sb.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-rn8c5qf9.js → wardleyDiagram-VNRHLVJA-8gxy0wat.js} +1 -1
- package/dist/client/static/js/xml-0py2vkw7.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-8sn1apt6.js → xychartDiagram-PMCCYNJV-5sh7tdrx.js} +2 -2
- package/dist/client/static/js/yaml-vghdz0f0.js +1 -0
- package/package.json +1 -1
- package/src/client/components/settings/categories/ConnectSettings.tsx +8 -1
- package/src/client/components/settings/categories/connect-settings/CloudflareConfig.test.tsx +84 -0
- package/src/client/components/settings/categories/connect-settings/CloudflareConfig.tsx +68 -0
- package/src/client/components/settings/categories/connect-settings/PairDialog.test.tsx +159 -0
- package/src/client/components/settings/categories/connect-settings/PairDialog.tsx +40 -7
- package/src/client/components/workspace/git-panel/init-state.test.ts +5 -0
- package/src/client/hooks/chat/composer/speech-to-text.ts +24 -17
- package/src/client/hooks/connect/use-connect-status.ts +44 -19
- package/src/client/hooks/connect/use-pairing.ts +5 -0
- package/src/client/hooks/editor/file-actions.ts +3 -11
- package/src/client/hooks/editor/font.test.ts +2 -1
- package/src/client/hooks/editor/use-file-transfer.ts +2 -1
- package/src/client/lib/browser/download.ts +22 -0
- package/src/client/lib/notifications/watch.ts +4 -1
- package/src/server/lib/connect/cloudflared-config.server.ts +236 -0
- package/src/server/lib/connect/cloudflared-config.test.ts +245 -0
- package/src/server/lib/connect/cloudflared.lifecycle.test.ts +116 -15
- package/src/server/lib/connect/cloudflared.server.ts +53 -66
- package/src/server/lib/connect/pairing.server.ts +33 -0
- package/src/server/lib/connect/qr-png.server.test.ts +93 -0
- package/src/server/lib/connect/qr-png.server.ts +119 -0
- package/src/server/lib/connect/status.server.ts +10 -4
- package/src/server/routes/connect/index.ts +2 -0
- package/src/server/routes/connect/pair-qr.test.ts +72 -0
- package/src/server/routes/connect/pair-qr.ts +44 -0
- package/src/server/routes/connect/pair.ts +8 -2
- package/src/server/routes/connect/tunnels.test.ts +141 -0
- package/src/server/routes/connect/tunnels.ts +32 -7
- package/src/server/routes/notifications/stream.ts +11 -2
- package/src/shared/lib/connect/types.ts +7 -0
- package/src/shared/lib/dictation/capture-failure.test.ts +46 -0
- package/src/shared/lib/dictation/capture-failure.ts +36 -0
- package/dist/client/static/js/architecture-7GRP2DOG-fc9kmq1w.js +0 -1
- package/dist/client/static/js/css-6vj0d308.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-a4t8992q.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-18bdrkv5.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-fg0yqx0h.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-8fa6y40p.js +0 -1
- package/dist/client/static/js/graphql-n43pd5fs.js +0 -1
- package/dist/client/static/js/html-dbrwss36.js +0 -1
- package/dist/client/static/js/index-6sf2vsp2.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-3hk844f7.js +0 -1
- package/dist/client/static/js/ini-j5dyq6gm.js +0 -1
- package/dist/client/static/js/java-g4dgwbfd.js +0 -1
- package/dist/client/static/js/jsx-7t5ecz9s.js +0 -1
- package/dist/client/static/js/lua-1g6w30de.js +0 -1
- package/dist/client/static/js/markdown-afx21x8c.js +0 -1
- package/dist/client/static/js/one-dark-pro-vwhfpzr8.js +0 -1
- package/dist/client/static/js/one-light-y5t9x6zh.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-4nj2yy10.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-k7rde3f9.js +0 -1
- package/dist/client/static/js/properties-thd83wey.js +0 -1
- package/dist/client/static/js/python-264ns4xw.js +0 -1
- package/dist/client/static/js/r-qw82kkv9.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-513dpw4f.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-9bqnst9c.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-7367d5bv.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-b806b1mj.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-5a67rwf8.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-nx5nfnf0.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-kcy40evb.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-fsrvqxf4.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-36dmxww4.js +0 -1
- package/dist/client/static/js/xml-dz51p1m3.js +0 -1
- package/dist/client/static/js/yaml-2cfkd30t.js +0 -1
- package/src/server/lib/connect/cloudflared.server.test.ts +0 -65
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{u,e}from"./index-
|
|
2
|
-
`),c=o?(i,n,t)=>{s(
|
|
1
|
+
import{u,e}from"./index-75haaj8g.js";import{xc,tA,Xm,wc}from"./index-d2km9egp.js";function w({content:d,path:l,onChange:s}){let r=u(()=>tA(d,l),[d,l]),o=s!==void 0&&!r.truncated,a=d.endsWith(`
|
|
2
|
+
`),c=o?(i,n,t)=>{s(Xm(r.header,wc(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(Xm(t,r.rows,r.delimiter,a))}:void 0;return e(xc,{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,Bp,Ir,Yu}from"./index-75haaj8g.js";import{on,yn,Zf}from"./index-zp73zexp.js";var wr=yn(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=Zf;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=Zf;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"?`
|
|
@@ -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 on(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 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: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:on,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: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:`
|
|
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 vn=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:vn,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:`
|
|
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=on(wr(),1);async function En(et){return(await _r.default.convertToHtml({arrayBuffer:et})).value}function Nn({source:et,name:ft,revision:Yt=0}){let{value:X,loading:ce,error:L}=Yu(et,En,Yt),z=u(()=>X?Bp(X):"",[X]);if(L)return e(Ir,{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{Nn as DocxView};
|