aitu-app 0.6.48 → 0.6.49
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/README.md +3 -3
- package/assets/CanvasAudioPlayer-DITqjh6L.js +2 -0
- package/assets/CanvasAudioPlayer-mm7y75Ol.css +1 -0
- package/assets/ChatMessagesArea-D9jmGx5a.js +250 -0
- package/assets/ChatMessagesArea-DyR_wHFQ.css +1 -0
- package/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/assets/KnowledgeBaseContent-C_BAVG2b.css +1 -0
- package/assets/KnowledgeBaseContent-za__rOJH.js +53 -0
- package/assets/MVCreator-CTG316DL.js +152 -0
- package/assets/MVCreator-D2l2Gm4W.css +1 -0
- package/assets/MediaLibrarySidebar-CNCXXhfY.css +1 -0
- package/assets/ModelBenchmarkWorkbench-CAF7qCOz.css +1 -0
- package/assets/ModelBenchmarkWorkbench-JCQglDx0.js +2 -0
- package/assets/MusicAnalyzer-DE_rzhdo.js +1 -0
- package/assets/MusicAnalyzer-DhtRGpAp.css +1 -0
- package/assets/MusicAnalyzer-QQf3iMVf.js +6 -0
- package/assets/ResizableDivider-CNJfwuMZ.js +1 -0
- package/assets/ResizableDivider-ClzYJk-6.css +1 -0
- package/assets/Tableau10-B-NsZVaP.js +1 -0
- package/assets/Tableau10-Dnlau_Wv.js +1 -0
- package/assets/TaskQueuePanel-CcKV6Mtu.js +1 -0
- package/assets/VideoAnalyzer-4jAswALN.js +2 -0
- package/assets/VideoAnalyzer-BNHBu5xL.css +1 -0
- package/assets/__vite-browser-external-UePf-KSV.js +1 -0
- package/assets/apl-B4CMkyY2.js +1 -0
- package/assets/arc-CUJYo2bm.js +1 -0
- package/assets/arc-Do7iheP0.js +1 -0
- package/assets/array-B5oSNiGi.js +1 -0
- package/assets/array-BKyUJesY.js +1 -0
- package/assets/asciiarmor-Df11BRmG.js +1 -0
- package/assets/asn1-EdZsLKOL.js +1 -0
- package/assets/asterisk-B-8jnY81.js +1 -0
- package/assets/batch-image-generation-BcGzhZc6.js +6 -0
- package/assets/batch-image-generation-BePygpHd.css +1 -0
- package/assets/blockDiagram-38ab4fdb-7dWD8NFK.js +118 -0
- package/assets/blockDiagram-38ab4fdb-CQhYv8hA.js +118 -0
- package/assets/brainfuck-C4LP7Hcl.js +1 -0
- package/assets/browser-Dlc7rtso.js +1 -0
- package/assets/c4Diagram-3d4e48cf-DcDSmMC1.js +10 -0
- package/assets/c4Diagram-3d4e48cf-YiNiIQMx.js +10 -0
- package/assets/channel-CbiJkWzq.js +1 -0
- package/assets/channel-CmPwOS9o.js +1 -0
- package/assets/character-Bo9jcTNu.css +1 -0
- package/assets/classDiagram-70f12bd4--vcKyE3X.js +2 -0
- package/assets/classDiagram-70f12bd4-uRbi4Ob8.js +2 -0
- package/assets/classDiagram-v2-f2320105-CJVRZ6AN.js +2 -0
- package/assets/classDiagram-v2-f2320105-vzjVMHkr.js +2 -0
- package/assets/clike-B9uivgTg.js +1 -0
- package/assets/clipper-DOGfacWv.js +1 -0
- package/assets/clojure-BMjYHr_A.js +1 -0
- package/assets/clone-D79TnM4U.js +1 -0
- package/assets/cmake-BQqOBYOt.js +1 -0
- package/assets/cobol-CWcv1MsR.js +1 -0
- package/assets/coffeescript-S37ZYGWr.js +1 -0
- package/assets/commonlisp-DBKNyK5s.js +1 -0
- package/assets/createText-2e5e7dd3-BwZkEiuo.js +8 -0
- package/assets/createText-2e5e7dd3-Caeqt6QH.js +5 -0
- package/assets/crystal-SjHAIU92.js +1 -0
- package/assets/css-BnMrqG3P.js +1 -0
- package/assets/cypher-C_CwsFkJ.js +1 -0
- package/assets/d-pRatUO7H.js +1 -0
- package/assets/diff-DbItnlRl.js +1 -0
- package/assets/dockerfile-BKs6k2Af.js +1 -0
- package/assets/dtd-DF_7sFjM.js +1 -0
- package/assets/dylan-DwRh75JA.js +1 -0
- package/assets/ebnf-CDyGwa7X.js +1 -0
- package/assets/ecl-Cabwm37j.js +1 -0
- package/assets/edges-e0da2a9e-C0phcDTf.js +4 -0
- package/assets/edges-e0da2a9e-izyAbn2P.js +4 -0
- package/assets/eiffel-CnydiIhH.js +1 -0
- package/assets/elm-vLlmbW-K.js +1 -0
- package/assets/erDiagram-9861fffd-2xZLFO3_.js +51 -0
- package/assets/erDiagram-9861fffd-CbdcBVpG.js +51 -0
- package/assets/erlang-BNw1qcRV.js +1 -0
- package/assets/external-skills-BcV6ATYi.js +1 -0
- package/assets/factor-kuTfRLto.js +1 -0
- package/assets/fcl-Kvtd6kyn.js +1 -0
- package/assets/flowDb-956e92f1-CKDRVial.js +10 -0
- package/assets/flowDb-956e92f1-X_4p-qaU.js +10 -0
- package/assets/flowDiagram-66a62f08-CujQt6CJ.js +4 -0
- package/assets/flowDiagram-66a62f08-DBi4rRPf.js +4 -0
- package/assets/flowDiagram-v2-96b9c2cf-BLkw2ciq.js +1 -0
- package/assets/flowDiagram-v2-96b9c2cf-DVKQK2hY.js +1 -0
- package/assets/flowchart-elk-definition-4a651766-Uf06y1Ck.js +139 -0
- package/assets/flowchart-elk-definition-4a651766-wpAztAJn.js +139 -0
- package/assets/forth-Ffai-XNe.js +1 -0
- package/assets/fortran-DYz_wnZ1.js +1 -0
- package/assets/ganttDiagram-c361ad54-B3JxRUoo.js +257 -0
- package/assets/ganttDiagram-c361ad54-CIb_MFVi.js +257 -0
- package/assets/gas-Bneqetm1.js +1 -0
- package/assets/gherkin-heZmZLOM.js +1 -0
- package/assets/gitGraphDiagram-72cf32ee-PuJBoZww.js +70 -0
- package/assets/gitGraphDiagram-72cf32ee-i6oLazGK.js +70 -0
- package/assets/graph-CbDG5PTO.js +1 -0
- package/assets/graph-DUQ4GGpV.js +1 -0
- package/assets/groovy-D9Dt4D0W.js +1 -0
- package/assets/haskell-Cw1EW3IL.js +1 -0
- package/assets/haxe-H-WmDvRZ.js +1 -0
- package/assets/http-DBlCnlav.js +1 -0
- package/assets/idl-BEugSyMb.js +1 -0
- package/assets/index-04BPVAKr.js +1 -0
- package/assets/index-3862675e-CLvnWYyN.js +1 -0
- package/assets/index-3862675e-CxQdmW6r.js +1 -0
- package/assets/index-3K3oLjal.js +1 -0
- package/assets/index-Ayt_kr_j.js +1 -0
- package/assets/index-B0aeak-l.js +1 -0
- package/assets/index-BAeTUD9a.js +1 -0
- package/assets/index-BECtRsXJ.js +6 -0
- package/assets/index-BScFd-2h.js +4 -0
- package/assets/index-BUB5I7zd.js +1 -0
- package/assets/index-BWokxWXg.js +1 -0
- package/assets/index-BYAyLEaG.js +1 -0
- package/assets/index-BZS4gNhO.js +7 -0
- package/assets/index-Bc75bQXQ.js +2 -0
- package/assets/index-BjxNPKa3.js +1 -0
- package/assets/index-BkvYpt-1.js +1 -0
- package/assets/index-Bnb0fjWR.js +1 -0
- package/assets/index-CGq-gcht.js +12 -0
- package/assets/index-CJ7peDFP.css +1 -0
- package/assets/index-CJCAjGj3.js +2 -0
- package/assets/index-CdYUDSvm.js +1 -0
- package/assets/index-CxEkGLrr.js +686 -0
- package/assets/index-DHQdBbnC.js +3 -0
- package/assets/index-DYdelMnT.js +1 -0
- package/assets/index-Dk5t_-56.js +99 -0
- package/assets/index-DlZybecc.js +1 -0
- package/assets/index-DmWG413C.js +1 -0
- package/assets/index-DzlsyVkU.js +1 -0
- package/assets/index-EYhL1Kgt.js +1 -0
- package/assets/index-c441JIOr.js +13 -0
- package/assets/index-fqJaUvT1.js +1 -0
- package/assets/index-hGrN05cs.js +1 -0
- package/assets/index-zV_AIntM.js +2 -0
- package/assets/infoDiagram-f8f76790-BYO9kBqO.js +7 -0
- package/assets/infoDiagram-f8f76790-D_TYtc3S.js +7 -0
- package/assets/init-A0kIFD9x.js +1 -0
- package/assets/init-Gi6I4Gst.js +1 -0
- package/assets/javascript-iXu5QeM3.js +1 -0
- package/assets/journeyDiagram-49397b02-DWfiJTLK.js +139 -0
- package/assets/journeyDiagram-49397b02-Dv5EEshV.js +139 -0
- package/assets/julia-DuME0IfC.js +1 -0
- package/assets/katex-Cu_Erd72.js +261 -0
- package/assets/layout-Bc2296BZ.js +1 -0
- package/assets/layout-Dm28IvOg.js +1 -0
- package/assets/line-C3mpslQb.js +1 -0
- package/assets/line-DTTPRZLU.js +1 -0
- package/assets/linear-YwuGF1HZ.js +1 -0
- package/assets/linear-g8AgbOem.js +1 -0
- package/assets/livescript-BwQOo05w.js +1 -0
- package/assets/lua-BgMRiT3U.js +1 -0
- package/assets/main-DlDiDA_U.css +9 -0
- package/assets/main-sSl0uAQQ.js +564 -0
- package/assets/mathematica-DTrFuWx2.js +1 -0
- package/assets/mbox-CNhZ1qSd.js +1 -0
- package/assets/mermaid.core-GIkiJOrg.js +91 -0
- package/assets/mindmap-definition-fc14e90a-Chuh4Ixc.js +425 -0
- package/assets/mindmap-definition-fc14e90a-D_ZKvIES.js +425 -0
- package/assets/mirc-CjQqDB4T.js +1 -0
- package/assets/mllike-CXdrOF99.js +1 -0
- package/assets/modelica-Dc1JOy9r.js +1 -0
- package/assets/mscgen-BA5vi2Kp.js +1 -0
- package/assets/mumps-BT43cFF4.js +1 -0
- package/assets/nginx-DdIZxoE0.js +1 -0
- package/assets/nsis-LdVXkNf5.js +1 -0
- package/assets/ntriples-BfvgReVJ.js +1 -0
- package/assets/octave-Ck1zUtKM.js +1 -0
- package/assets/ordinal-BRr1uYdk.js +1 -0
- package/assets/ordinal-Cboi1Yqb.js +1 -0
- package/assets/oz-BzwKVEFT.js +1 -0
- package/assets/pascal--L3eBynH.js +1 -0
- package/assets/path-CY0bYimO.js +1 -0
- package/assets/path-CbwjOpE9.js +1 -0
- package/assets/perl-CdXCOZ3F.js +1 -0
- package/assets/photo-wall-splitter-CY0T_wNE.js +1 -0
- package/assets/pieDiagram-8a3498a8-DRsICc_f.js +35 -0
- package/assets/pieDiagram-8a3498a8-Dah8ahbr.js +35 -0
- package/assets/pig-CevX1Tat.js +1 -0
- package/assets/powershell-CFHJl5sT.js +1 -0
- package/assets/properties-C78fOPTZ.js +1 -0
- package/assets/protobuf-ChK-085T.js +1 -0
- package/assets/pug-DeIclll2.js +1 -0
- package/assets/puppet-DMA9R1ak.js +1 -0
- package/assets/python-BuPzkPfP.js +1 -0
- package/assets/q-pXgVlZs6.js +1 -0
- package/assets/quadrantDiagram-120e2f19-Fh6InPVY.js +7 -0
- package/assets/quadrantDiagram-120e2f19-gL-_zV58.js +7 -0
- package/assets/r-B6wPVr8A.js +1 -0
- package/assets/requirementDiagram-deff3bca-CNSkJJCh.js +52 -0
- package/assets/requirementDiagram-deff3bca-CfDffyTL.js +52 -0
- package/assets/rpm-CTu-6PCP.js +1 -0
- package/assets/ruby-B2Rjki9n.js +1 -0
- package/assets/sankeyDiagram-04a897e0-Bk-KjkRU.js +8 -0
- package/assets/sankeyDiagram-04a897e0-JvhHugQc.js +8 -0
- package/assets/sas-B4kiWyti.js +1 -0
- package/assets/scheme-C41bIUwD.js +1 -0
- package/assets/sequenceDiagram-704730f1-DtYYZkJD.js +122 -0
- package/assets/sequenceDiagram-704730f1-Hcr6n9p8.js +122 -0
- package/assets/shell-CjFT_Tl9.js +1 -0
- package/assets/sieve-C3Gn_uJK.js +1 -0
- package/assets/simple-mode-GW_nhZxv.js +1 -0
- package/assets/smalltalk-CnHTOXQT.js +1 -0
- package/assets/solr-DehyRSwq.js +1 -0
- package/assets/sparql-DkYu6x3z.js +1 -0
- package/assets/spreadsheet-BCZA_wO0.js +1 -0
- package/assets/sql-D0XecflT.js +1 -0
- package/assets/stateDiagram-587899a1-BBe_EhAD.js +1 -0
- package/assets/stateDiagram-587899a1-DqdI8yJY.js +1 -0
- package/assets/stateDiagram-v2-d93cdb3a-BFy9jG1p.js +1 -0
- package/assets/stateDiagram-v2-d93cdb3a-CR8nQq3k.js +1 -0
- package/assets/stex-C3f8Ysf7.js +1 -0
- package/assets/styles-6aaf32cf-B3jetBAL.js +207 -0
- package/assets/styles-6aaf32cf-CtTk65AO.js +207 -0
- package/assets/styles-9a916d00-BzAmphe7.js +160 -0
- package/assets/styles-9a916d00-CC9GaYxg.js +160 -0
- package/assets/styles-c10674c1-CNAwL7Ic.js +116 -0
- package/assets/styles-c10674c1-Db2Kd6RJ.js +116 -0
- package/assets/stylus-B533Al4x.js +1 -0
- package/assets/svgDrawCommon-08f97a94-C5qlB1eZ.js +1 -0
- package/assets/svgDrawCommon-08f97a94-JdKl-BWQ.js +1 -0
- package/assets/swift-BzpIVaGY.js +1 -0
- package/assets/tcl-DVfN8rqt.js +1 -0
- package/assets/textile-CnDTJFAw.js +1 -0
- package/assets/tiddlywiki-DO-Gjzrf.js +1 -0
- package/assets/tiki-DGYXhP31.js +1 -0
- package/assets/timeline-definition-85554ec2-DOdYNzv7.js +61 -0
- package/assets/timeline-definition-85554ec2-o-R8VXA5.js +61 -0
- package/assets/toml-Bm5Em-hy.js +1 -0
- package/assets/tool-windows-Cuh0TRgJ.css +1 -0
- package/assets/tool-windows-DWUG3k_L.js +2846 -0
- package/assets/troff-wAsdV37c.js +1 -0
- package/assets/ttcn-CfJYG6tj.js +1 -0
- package/assets/ttcn-cfg-B9xdYoR4.js +1 -0
- package/assets/ttd-dialog-BQiy0hwR.js +99 -0
- package/assets/ttd-dialog-BlUvpMr5.css +1 -0
- package/assets/turtle-B1tBg_DP.js +1 -0
- package/assets/useCharacters-BJLEgDAP.css +1 -0
- package/assets/useCharacters-BxKzeyv4.js +6 -0
- package/assets/vb-CmGdzxic.js +1 -0
- package/assets/vbscript-BuJXcnF6.js +1 -0
- package/assets/velocity-D8B20fx6.js +1 -0
- package/assets/verilog-C6RDOZhf.js +1 -0
- package/assets/version-update-prompt-HA-CqLZW.js +1 -0
- package/assets/version-update-prompt-P9Rd5ve2.css +1 -0
- package/assets/vhdl-lSbBsy5d.js +1 -0
- package/assets/video-recovery-service-C0PZsfFC.js +1 -0
- package/assets/web-vitals-DcvjKPr-.js +1 -0
- package/assets/webidl-ZXfAyPTL.js +1 -0
- package/assets/winbox.bundle.min-CoRPjCs5.js +1 -0
- package/assets/workflow-generation-utils-DspPdLxa.js +3 -0
- package/assets/xlsx-CkFp8p6R.js +105 -0
- package/assets/xquery-DzFWVndE.js +1 -0
- package/assets/xychartDiagram-e933f94c-D13oeSTj.js +7 -0
- package/assets/xychartDiagram-e933f94c-DwikDAhJ.js +7 -0
- package/assets/yacas-BJ4BC0dw.js +1 -0
- package/assets/z80-Hz9HOZM7.js +1 -0
- package/idle-prefetch-manifest.json +18 -4
- package/package.json +1 -1
- package/precache-manifest.json +1015 -3
- package/sw.js +1 -1
- package/version.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{U as a,E as n}from"./index-Dk5t_-56.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{al as o,am as n}from"./mermaid.core-GIkiJOrg.js";const l=(a,r)=>o.lang.round(n.parse(a)[r]);export{l as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.character-create-dialog .t-dialog__body{padding:20px 24px}.character-create-dialog__description{font-size:14px;color:var(--td-text-color-secondary, #666);margin-bottom:20px;line-height:1.6}.character-create-dialog__source-info{background:var(--td-bg-color-secondarycontainer, #f5f5f5);border-radius:8px;padding:12px 16px;margin-bottom:20px}.character-create-dialog__source-info-label{font-size:12px;color:var(--td-text-color-placeholder, #999);margin-bottom:4px}.character-create-dialog__source-info-value{font-size:14px;color:var(--td-text-color-primary, #333);word-break:break-all}.character-create-dialog__source-info-value--prompt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.character-create-dialog__source-info-value--id{font-family:SF Mono,Monaco,Consolas,monospace;font-size:12px;color:var(--td-text-color-secondary, #666)}.character-create-dialog__time-range{margin-bottom:20px}.character-create-dialog__time-range-title{font-size:14px;font-weight:500;color:var(--td-text-color-primary, #333);margin-bottom:12px}.character-create-dialog__time-range-inputs{display:flex;align-items:center;gap:12px}.character-create-dialog__time-range-input{flex:1}.character-create-dialog__time-range-input .t-input-number{width:100%}.character-create-dialog__time-range-separator{color:var(--td-text-color-placeholder, #999)}.character-create-dialog__time-range-hint{font-size:12px;color:var(--td-text-color-placeholder, #999);margin-top:8px;display:flex;align-items:center;gap:4px}.character-create-dialog__time-range-hint svg{width:14px;height:14px}.character-create-dialog__time-range-error{font-size:12px;color:var(--td-error-color, #e34d59);margin-top:8px}.character-create-dialog__footer{display:flex;justify-content:flex-end;gap:12px;padding-top:16px;border-top:1px solid var(--td-component-border, #e7e7e7)}.character-create-dialog__warning{padding:8px 12px;background:var(--td-warning-color-1, #fff8e6);border-radius:4px;margin-bottom:16px;font-size:13px;color:var(--td-warning-color-7, #8a5a00)}.character-card{display:flex;align-items:flex-start;gap:12px;padding:12px;background:var(--td-bg-color-container, #fff);border:1px solid var(--td-component-border, #e7e7e7);border-radius:8px;transition:box-shadow .2s ease}.character-card:hover{box-shadow:var(--td-shadow-1, 0 1px 4px rgba(0, 0, 0, .08))}.character-card--loading{opacity:.7}.character-card--failed{border-color:var(--td-error-color-3, #f5b7b7);background:var(--td-error-color-1, #fff0f0)}.character-card__avatar{width:48px;height:48px;border-radius:50%;overflow:hidden;flex-shrink:0;background:var(--td-bg-color-secondarycontainer, #f5f5f5);display:flex;align-items:center;justify-content:center}.character-card__avatar img,.character-card__avatar-img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:50%}.character-card__avatar-placeholder{width:24px;height:24px;color:var(--td-text-color-placeholder, #999)}.character-card__info{flex:1;min-width:0}.character-card__username{font-size:14px;font-weight:500;color:var(--td-brand-color, #0052d9);margin-bottom:4px;cursor:pointer;display:inline-flex;align-items:center;gap:4px}.character-card__username:hover{text-decoration:underline}.character-card__username-copy{opacity:0;transition:opacity .2s ease}.character-card:hover .character-card__username-copy{opacity:1}.character-card__source{font-size:12px;color:var(--td-text-color-secondary, #666);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.character-card__status{font-size:12px;margin-top:4px}.character-card__status--processing{color:var(--td-brand-color, #0052d9);display:flex;align-items:center;gap:4px}.character-card__status--failed{color:var(--td-error-color, #e34d59)}.character-card__actions{display:flex;flex-direction:column;gap:4px;flex-shrink:0}.character-list__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.character-list__header h4{margin:0;font-size:14px;font-weight:500;color:var(--td-text-color-primary, #333)}.character-list__items{display:flex;flex-direction:column;gap:8px}.character-list__empty{text-align:center;padding:24px;color:var(--td-text-color-placeholder, #999);font-size:14px}.character-list__empty-icon{font-size:32px;margin-bottom:8px;opacity:.5}.character-list__loading{display:flex;align-items:center;justify-content:center;padding:24px;color:var(--td-text-color-placeholder, #999);font-size:14px;gap:8px}.character-mention-popup{max-height:132px;overflow-y:auto;min-width:160px;max-width:220px;background:var(--td-bg-color-container, #fff);border:1px solid var(--td-component-border, #e7e7e7);border-radius:8px;box-shadow:var(--td-shadow-2, 0 2px 8px rgba(0, 0, 0, .12))}.character-mention-popup::-webkit-scrollbar{width:6px}.character-mention-popup::-webkit-scrollbar-track{background:transparent}.character-mention-popup::-webkit-scrollbar-thumb{background:var(--td-scrollbar-color, #d9d9d9);border-radius:3px}.character-mention-popup__item{display:flex;align-items:center;gap:8px;padding:8px 12px;cursor:pointer;transition:background .2s ease}.character-mention-popup__item:hover,.character-mention-popup__item--selected{background:var(--td-bg-color-secondarycontainer-hover, #f0f0f0)}.character-mention-popup__item-avatar{width:24px;height:24px;border-radius:50%;overflow:hidden;flex-shrink:0;background:var(--td-bg-color-secondarycontainer, #f5f5f5)}.character-mention-popup__item-avatar img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.character-mention-popup__item-name{font-size:13px;color:var(--td-text-color-primary, #333)}.character-mention-popup__divider{height:1px;background:var(--td-component-border, #e7e7e7);margin:4px 0}.character-mention-popup__action{display:flex;align-items:center;gap:8px;padding:8px 12px;cursor:pointer;transition:background .2s ease;color:var(--td-brand-color, #0052d9);font-size:13px}.character-mention-popup__action:hover{background:var(--td-bg-color-secondarycontainer-hover, #f0f0f0)}.character-mention-popup__action svg{width:16px;height:16px}.character-mention-popup__empty{padding:16px;text-align:center;color:var(--td-text-color-placeholder, #999);font-size:13px}.character-selector{margin-bottom:16px}.character-selector__label{font-size:14px;font-weight:500;color:var(--td-text-color-primary, #333);margin-bottom:8px;display:flex;align-items:center;gap:4px}.character-selector__hint{font-size:12px;color:var(--td-text-color-placeholder, #999);font-weight:400}.character-selector__chips{display:flex;flex-wrap:wrap;gap:8px}.character-selector__chip{display:flex;align-items:center;gap:6px;padding:4px 10px;background:var(--td-bg-color-secondarycontainer, #f5f5f5);border:1px solid var(--td-component-border, #e7e7e7);border-radius:16px;cursor:pointer;transition:all .2s ease;font-size:13px}.character-selector__chip:hover{border-color:var(--td-brand-color, #0052d9);background:var(--td-brand-color-light, #e8f3ff)}.character-selector__chip--selected{border-color:var(--td-brand-color, #0052d9);background:var(--td-brand-color-light, #e8f3ff);color:var(--td-brand-color, #0052d9)}.character-selector__chip-avatar{width:20px;height:20px;border-radius:50%;overflow:hidden}.character-selector__chip-avatar img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.character-selector__empty{font-size:13px;color:var(--td-text-color-placeholder, #999);padding:8px 0}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s as A,d as S,p as G}from"./styles-9a916d00-CC9GaYxg.js";import{g as v,l as y,d as B,e as W,F as $,A as M,J as I}from"./index-Dk5t_-56.js";import{G as J}from"./graph-DUQ4GGpV.js";import{l as O}from"./layout-Bc2296BZ.js";import{l as P}from"./line-C3mpslQb.js";import"./tool-windows-DWUG3k_L.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";let H=0;const X=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=P().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},Y=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(`
|
|
2
|
+
`);n.forEach(function(x){y.debug(`Adding line: ${x}`),c.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const r=s.node().getBBox(),h=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",r.width+2*t.padding).attr("height",r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return c.node().childNodes.forEach(function(x){x.setAttribute("x",(h-x.getBBox().width)/2)}),g.width=h,g.height=r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,g},_=function(i,a,t,o){const{displayText:p,cssStyle:g}=a.getDisplayDetails(),s=i.append("tspan").attr("x",o.padding).text(p);g!==""&&s.attr("style",a.cssStyle),t||s.attr("dy",o.textHeight)},N={getClassTitleString:C,drawClass:Y,drawEdge:X,drawNote:Z};let T={};const E=20,L=function(i){const a=Object.entries(T).find(t=>t[1].label===i);if(a)return a[0]},R=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},F=function(i,a,t,o){const p=v().class;T={},y.info("Rendering diagram "+i);const g=v().securityLevel;let s;g==="sandbox"&&(s=B("#i"+a));const c=g==="sandbox"?B(s.nodes()[0].contentDocument.body):B("body"),n=c.select(`[id='${a}']`);R(n);const r=new J({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const f=o.db.getClasses(),h=Object.keys(f);for(const e of h){const d=f[e],l=N.drawClass(n,d,p,o);T[l.id]=l,r.setNode(l.id,l),y.info("Org height: "+l.height)}o.db.getRelations().forEach(function(e){y.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),r.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),o.db.getNotes().forEach(function(e){y.debug(`Adding note: ${JSON.stringify(e)}`);const d=N.drawNote(n,e,p,o);T[d.id]=d,r.setNode(d.id,d),e.class&&e.class in f&&r.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),O(r),r.nodes().forEach(function(e){e!==void 0&&r.node(e)!==void 0&&(y.debug("Node "+e+": "+JSON.stringify(r.node(e))),c.select("#"+(o.db.lookUpDomId(e)||e)).attr("transform","translate("+(r.node(e).x-r.node(e).width/2)+","+(r.node(e).y-r.node(e).height/2)+" )"))}),r.edges().forEach(function(e){e!==void 0&&r.edge(e)!==void 0&&(y.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r.edge(e))),N.drawEdge(n,r.edge(e),r.edge(e).relation,p,o))});const u=n.node().getBBox(),m=u.width+E*2,w=u.height+E*2;W(n,w,m,p.useMaxWidth);const k=`${u.x-E} ${u.y-E} ${m} ${w}`;y.debug(`viewBox ${k}`),n.attr("viewBox",k)},U={draw:F},et={parser:G,db:S,renderer:U,styles:A,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,S.clear()}};export{et as diagram};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s as A,d as S,p as G}from"./styles-9a916d00-BzAmphe7.js";import{g as v,l as y,d as B,e as W,an as $,A as M,ar as I}from"./mermaid.core-GIkiJOrg.js";import{G as O}from"./graph-CbDG5PTO.js";import{l as P}from"./layout-Dm28IvOg.js";import{l as X}from"./line-DTTPRZLU.js";import"./tool-windows-DWUG3k_L.js";import"./array-B5oSNiGi.js";import"./path-CY0bYimO.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(`
|
|
2
|
+
`);n.forEach(function(x){y.debug(`Adding line: ${x}`),c.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const r=s.node().getBBox(),h=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",r.width+2*t.padding).attr("height",r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return c.node().childNodes.forEach(function(x){x.setAttribute("x",(h-x.getBBox().width)/2)}),g.width=h,g.height=r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,g},_=function(i,a,t,o){const{displayText:p,cssStyle:g}=a.getDisplayDetails(),s=i.append("tspan").attr("x",o.padding).text(p);g!==""&&s.attr("style",a.cssStyle),t||s.attr("dy",o.textHeight)},N={getClassTitleString:C,drawClass:J,drawEdge:Y,drawNote:Z};let T={};const E=20,L=function(i){const a=Object.entries(T).find(t=>t[1].label===i);if(a)return a[0]},R=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},F=function(i,a,t,o){const p=v().class;T={},y.info("Rendering diagram "+i);const g=v().securityLevel;let s;g==="sandbox"&&(s=B("#i"+a));const c=g==="sandbox"?B(s.nodes()[0].contentDocument.body):B("body"),n=c.select(`[id='${a}']`);R(n);const r=new O({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const f=o.db.getClasses(),h=Object.keys(f);for(const e of h){const d=f[e],l=N.drawClass(n,d,p,o);T[l.id]=l,r.setNode(l.id,l),y.info("Org height: "+l.height)}o.db.getRelations().forEach(function(e){y.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),r.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),o.db.getNotes().forEach(function(e){y.debug(`Adding note: ${JSON.stringify(e)}`);const d=N.drawNote(n,e,p,o);T[d.id]=d,r.setNode(d.id,d),e.class&&e.class in f&&r.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),P(r),r.nodes().forEach(function(e){e!==void 0&&r.node(e)!==void 0&&(y.debug("Node "+e+": "+JSON.stringify(r.node(e))),c.select("#"+(o.db.lookUpDomId(e)||e)).attr("transform","translate("+(r.node(e).x-r.node(e).width/2)+","+(r.node(e).y-r.node(e).height/2)+" )"))}),r.edges().forEach(function(e){e!==void 0&&r.edge(e)!==void 0&&(y.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r.edge(e))),N.drawEdge(n,r.edge(e),r.edge(e).relation,p,o))});const u=n.node().getBBox(),m=u.width+E*2,w=u.height+E*2;W(n,w,m,p.useMaxWidth);const k=`${u.x-E} ${u.y-E} ${m} ${w}`;y.debug(`viewBox ${k}`),n.attr("viewBox",k)},U={draw:F},et={parser:G,db:S,renderer:U,styles:A,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,S.clear()}};export{et as diagram};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s as M,d as _,p as R}from"./styles-9a916d00-CC9GaYxg.js";import{l as d,g as c,d as w,A as B,p as G,k as D,q as E,r as A,o as C}from"./index-Dk5t_-56.js";import{G as q}from"./graph-DUQ4GGpV.js";import{r as z}from"./index-3862675e-CLvnWYyN.js";import"./layout-Bc2296BZ.js";import"./tool-windows-DWUG3k_L.js";import"./edges-e0da2a9e-C0phcDTf.js";import"./createText-2e5e7dd3-Caeqt6QH.js";import"./index-BScFd-2h.js";import"./browser-Dlc7rtso.js";import"./line-C3mpslQb.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";const S=s=>D.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,t,y,a){const e=Object.keys(s);d.info("keys:",e),d.info(s),e.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};t.setNode(l.id,p),$(l.classes,t,y,a,l.id),d.info("setNode",p)})},$=function(s,t,y,a,e){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==e).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),f=E(n.styles),m=n.label??n.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(m),classData:n,rx:u,ry:u,class:p,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,e)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};t.setNode(n.id,b),e&&t.setParent(n.id,e),d.info("setNode",b)})},F=function(s,t,y,a){d.info(s),s.forEach(function(e,i){var o,r;const l=e,n="",p={labelStyle:"",style:""},f=l.text,m=0,h={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:m,ry:m,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(t.setNode(l.id,h),d.info("setNode",h),!l.class||!(l.class in a))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:A(k.curve,C)};t.setEdge(l.id,l.class,x,b)})},H=function(s,t){const y=c().flowchart;let a=0;s.forEach(function(e){var i;a++;const o={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:`id_${e.id1}_${e.id2}_${a}`,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:N(e.relation.type1),arrowTypeEnd:N(e.relation.type2),style:"fill:none",labelStyle:"",curve:A(y==null?void 0:y.curve,C)};if(d.info(o,e),e.style!==void 0){const r=E(e.style);o.style=r.style,o.labelStyle=r.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label='<span class="edgeLabel">'+e.text+"</span>"):(o.labelType="text",o.label=e.text.replace(D.lineBreakRegex,`
|
|
2
|
+
`),e.style===void 0&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:"))),t.setEdge(e.id1,e.id2,o,a)})},V=function(s){k={...k,...s}},W=async function(s,t,y,a){d.info("Drawing class - ",t);const e=c().flowchart??c().class,i=c().securityLevel;d.info("config:",e);const o=(e==null?void 0:e.nodeSpacing)??50,r=(e==null?void 0:e.rankSpacing)??50,l=new q({multigraph:!0,compound:!0}).setGraph({rankdir:a.db.getDirection(),nodesep:o,ranksep:r,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=a.db.getNamespaces(),p=a.db.getClasses(),f=a.db.getRelations(),m=a.db.getNotes();d.info(f),P(n,l,t,a),$(p,l,t,a),H(f,l),F(m,l,f.length+1,p);let u;i==="sandbox"&&(u=w("#i"+t));const h=i==="sandbox"?w(u.nodes()[0].contentDocument.body):w("body"),b=h.select(`[id="${t}"]`),x=h.select("#"+t+" g");if(await z(x,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),B.insertTitle(b,"classTitleText",(e==null?void 0:e.titleTopMargin)??5,a.db.getDiagramTitle()),G(l,b,e==null?void 0:e.diagramPadding,e==null?void 0:e.useMaxWidth),!(e!=null&&e.htmlLabels)){const T=i==="sandbox"?u.nodes()[0].contentDocument:document,I=T.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const g of I){const L=g.getBBox(),v=T.createElementNS("http://www.w3.org/2000/svg","rect");v.setAttribute("rx",0),v.setAttribute("ry",0),v.setAttribute("width",L.width),v.setAttribute("height",L.height),g.insertBefore(v,g.firstChild)}}};function N(s){let t;switch(s){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}const J={setConf:V,draw:W},ne={parser:R,db:_,renderer:J,styles:M,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,_.clear()}};export{ne as diagram};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s as M,d as _,p as R}from"./styles-9a916d00-BzAmphe7.js";import{l as d,g as c,d as w,A as B,p as G,k as D,q as E,r as A,o as C}from"./mermaid.core-GIkiJOrg.js";import{G as q}from"./graph-CbDG5PTO.js";import{r as z}from"./index-3862675e-CxQdmW6r.js";import"./layout-Dm28IvOg.js";import"./tool-windows-DWUG3k_L.js";import"./clone-D79TnM4U.js";import"./edges-e0da2a9e-izyAbn2P.js";import"./createText-2e5e7dd3-BwZkEiuo.js";import"./line-DTTPRZLU.js";import"./array-B5oSNiGi.js";import"./path-CY0bYimO.js";const S=s=>D.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,t,y,a){const e=Object.keys(s);d.info("keys:",e),d.info(s),e.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};t.setNode(l.id,p),$(l.classes,t,y,a,l.id),d.info("setNode",p)})},$=function(s,t,y,a,e){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==e).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),f=E(n.styles),m=n.label??n.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(m),classData:n,rx:u,ry:u,class:p,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,e)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};t.setNode(n.id,b),e&&t.setParent(n.id,e),d.info("setNode",b)})},F=function(s,t,y,a){d.info(s),s.forEach(function(e,i){var o,r;const l=e,n="",p={labelStyle:"",style:""},f=l.text,m=0,h={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:m,ry:m,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(t.setNode(l.id,h),d.info("setNode",h),!l.class||!(l.class in a))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:A(k.curve,C)};t.setEdge(l.id,l.class,x,b)})},H=function(s,t){const y=c().flowchart;let a=0;s.forEach(function(e){var i;a++;const o={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:`id_${e.id1}_${e.id2}_${a}`,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:N(e.relation.type1),arrowTypeEnd:N(e.relation.type2),style:"fill:none",labelStyle:"",curve:A(y==null?void 0:y.curve,C)};if(d.info(o,e),e.style!==void 0){const r=E(e.style);o.style=r.style,o.labelStyle=r.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label='<span class="edgeLabel">'+e.text+"</span>"):(o.labelType="text",o.label=e.text.replace(D.lineBreakRegex,`
|
|
2
|
+
`),e.style===void 0&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:"))),t.setEdge(e.id1,e.id2,o,a)})},V=function(s){k={...k,...s}},W=async function(s,t,y,a){d.info("Drawing class - ",t);const e=c().flowchart??c().class,i=c().securityLevel;d.info("config:",e);const o=(e==null?void 0:e.nodeSpacing)??50,r=(e==null?void 0:e.rankSpacing)??50,l=new q({multigraph:!0,compound:!0}).setGraph({rankdir:a.db.getDirection(),nodesep:o,ranksep:r,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=a.db.getNamespaces(),p=a.db.getClasses(),f=a.db.getRelations(),m=a.db.getNotes();d.info(f),P(n,l,t,a),$(p,l,t,a),H(f,l),F(m,l,f.length+1,p);let u;i==="sandbox"&&(u=w("#i"+t));const h=i==="sandbox"?w(u.nodes()[0].contentDocument.body):w("body"),b=h.select(`[id="${t}"]`),x=h.select("#"+t+" g");if(await z(x,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),B.insertTitle(b,"classTitleText",(e==null?void 0:e.titleTopMargin)??5,a.db.getDiagramTitle()),G(l,b,e==null?void 0:e.diagramPadding,e==null?void 0:e.useMaxWidth),!(e!=null&&e.htmlLabels)){const T=i==="sandbox"?u.nodes()[0].contentDocument:document,I=T.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const g of I){const L=g.getBBox(),v=T.createElementNS("http://www.w3.org/2000/svg","rect");v.setAttribute("rx",0),v.setAttribute("ry",0),v.setAttribute("width",L.width),v.setAttribute("height",L.height),g.insertBefore(v,g.firstChild)}}};function N(s){let t;switch(s){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}const J={setConf:V,draw:W},se={parser:R,db:_,renderer:J,styles:M,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,_.clear()}};export{se as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function O(e,n,t,l,s,d){this.indented=e,this.column=n,this.type=t,this.info=l,this.align=s,this.prev=d}function D(e,n,t,l){var s=e.indented;return e.context&&e.context.type=="statement"&&t!="statement"&&(s=e.context.indented),e.context=new O(s,n,t,l,null,e.context)}function x(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}function V(e,n,t){if(n.prevToken=="variable"||n.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,t))||n.typeAtEndOfLine&&e.column()==e.indentation())return!0}function P(e){for(;;){if(!e||e.type=="top")return!0;if(e.type=="}"&&e.prev.info!="namespace")return!1;e=e.prev}}function h(e){var n=e.statementIndentUnit,t=e.dontAlignCalls,l=e.keywords||{},s=e.types||{},d=e.builtin||{},b=e.blockKeywords||{},_=e.defKeywords||{},w=e.atoms||{},y=e.hooks||{},te=e.multiLineStrings,re=e.indentStatements!==!1,ie=e.indentSwitch!==!1,F=e.namespaceSeparator,oe=e.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,ae=e.numberStart||/[\d\.]/,le=e.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,j=e.isOperatorChar||/[+\-*&%=<>!?|\/]/,B=e.isIdentifierChar||/[\w\$_\xa1-\uffff]/,U=e.isReservedIdentifier||!1,p,E;function K(i,a){var c=i.next();if(y[c]){var o=y[c](i,a);if(o!==!1)return o}if(c=='"'||c=="'")return a.tokenize=ce(c),a.tokenize(i,a);if(ae.test(c)){if(i.backUp(1),i.match(le))return"number";i.next()}if(oe.test(c))return p=c,null;if(c=="/"){if(i.eat("*"))return a.tokenize=A,A(i,a);if(i.eat("/"))return i.skipToEnd(),"comment"}if(j.test(c)){for(;!i.match(/^\/[\/*]/,!1)&&i.eat(j););return"operator"}if(i.eatWhile(B),F)for(;i.match(F);)i.eatWhile(B);var u=i.current();return m(l,u)?(m(b,u)&&(p="newstatement"),m(_,u)&&(E=!0),"keyword"):m(s,u)?"type":m(d,u)||U&&U(u)?(m(b,u)&&(p="newstatement"),"builtin"):m(w,u)?"atom":"variable"}function ce(i){return function(a,c){for(var o=!1,u,v=!1;(u=a.next())!=null;){if(u==i&&!o){v=!0;break}o=!o&&u=="\\"}return(v||!(o||te))&&(c.tokenize=null),"string"}}function A(i,a){for(var c=!1,o;o=i.next();){if(o=="/"&&c){a.tokenize=null;break}c=o=="*"}return"comment"}function $(i,a){e.typeFirstDefinitions&&i.eol()&&P(a.context)&&(a.typeAtEndOfLine=V(i,a,i.pos))}return{name:e.name,startState:function(i){return{tokenize:null,context:new O(-i,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(i,a){var c=a.context;if(i.sol()&&(c.align==null&&(c.align=!1),a.indented=i.indentation(),a.startOfLine=!0),i.eatSpace())return $(i,a),null;p=E=null;var o=(a.tokenize||K)(i,a);if(o=="comment"||o=="meta")return o;if(c.align==null&&(c.align=!0),p==";"||p==":"||p==","&&i.match(/^\s*(?:\/\/.*)?$/,!1))for(;a.context.type=="statement";)x(a);else if(p=="{")D(a,i.column(),"}");else if(p=="[")D(a,i.column(),"]");else if(p=="(")D(a,i.column(),")");else if(p=="}"){for(;c.type=="statement";)c=x(a);for(c.type=="}"&&(c=x(a));c.type=="statement";)c=x(a)}else p==c.type?x(a):re&&((c.type=="}"||c.type=="top")&&p!=";"||c.type=="statement"&&p=="newstatement")&&D(a,i.column(),"statement",i.current());if(o=="variable"&&(a.prevToken=="def"||e.typeFirstDefinitions&&V(i,a,i.start)&&P(a.context)&&i.match(/^\s*\(/,!1))&&(o="def"),y.token){var u=y.token(i,a,o);u!==void 0&&(o=u)}return o=="def"&&e.styleDefs===!1&&(o="variable"),a.startOfLine=!1,a.prevToken=E?"def":o||p,$(i,a),o},indent:function(i,a,c){if(i.tokenize!=K&&i.tokenize!=null||i.typeAtEndOfLine&&P(i.context))return null;var o=i.context,u=a&&a.charAt(0),v=u==o.type;if(o.type=="statement"&&u=="}"&&(o=o.prev),e.dontIndentStatements)for(;o.type=="statement"&&e.dontIndentStatements.test(o.info);)o=o.prev;if(y.indent){var q=y.indent(i,o,a,c.unit);if(typeof q=="number")return q}var se=o.prev&&o.prev.info=="switch";if(e.allmanIndentation&&/[{(]/.test(u)){for(;o.type!="top"&&o.type!="}";)o=o.prev;return o.indented}return o.type=="statement"?o.indented+(u=="{"?0:n||c.unit):o.align&&(!t||o.type!=")")?o.column+(v?0:1):o.type==")"&&!v?o.indented+(n||c.unit):o.indented+(v?0:c.unit)+(!v&&se&&!/^(?:case|default)\b/.test(a)?c.unit:0)},languageData:{indentOnInput:ie?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:Object.keys(l).concat(Object.keys(s)).concat(Object.keys(d)).concat(Object.keys(w)),...e.languageData}}}function r(e){for(var n={},t=e.split(" "),l=0;l<t.length;++l)n[t[l]]=!0;return n}function m(e,n){return typeof e=="function"?e(n):e.propertyIsEnumerable(n)}var T="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",H="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",Q="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",Z="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",ue=r("int long char short double float unsigned signed void bool"),fe=r("SEL instancetype id Class Protocol BOOL");function I(e){return m(ue,e)||/.+_t$/.test(e)}function X(e){return I(e)||m(fe,e)}var N="case do else for if switch while struct enum union",z="struct enum union";function g(e,n){if(!n.startOfLine)return!1;for(var t,l=null;t=e.peek();){if(t=="\\"&&e.match(/^.$/)){l=g;break}else if(t=="/"&&e.match(/^\/[\/\*]/,!1))break;e.next()}return n.tokenize=l,"meta"}function M(e,n){return n.prevToken=="type"?"type":!1}function C(e){return!e||e.length<2||e[0]!="_"?!1:e[1]=="_"||e[1]!==e[1].toLowerCase()}function f(e){return e.eatWhile(/[\w\.']/),"number"}function k(e,n){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var t=e.match(/^"([^\s\\()]{0,16})\(/);return t?(n.cpp11RawStringDelim=t[1],n.tokenize=G,G(e,n)):!1}return e.match(/^(?:u8|u|U|L)/)?e.match(/^["']/,!1)?"string":!1:(e.next(),!1)}function Y(e){var n=/(\w+)::~?(\w+)$/.exec(e);return n&&n[1]==n[2]}function W(e,n){for(var t;(t=e.next())!=null;)if(t=='"'&&!e.eat('"')){n.tokenize=null;break}return"string"}function G(e,n){var t=n.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),l=e.match(new RegExp(".*?\\)"+t+'"'));return l?n.tokenize=null:e.skipToEnd(),"string"}const ke=h({name:"c",keywords:r(T),types:I,blockKeywords:r(N),defKeywords:r(z),typeFirstDefinitions:!0,atoms:r("NULL true false"),isReservedIdentifier:C,hooks:{"#":g,"*":M}}),ge=h({name:"cpp",keywords:r(T+" "+H),types:I,blockKeywords:r(N+" class try catch"),defKeywords:r(z+" class namespace"),typeFirstDefinitions:!0,atoms:r("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:C,hooks:{"#":g,"*":M,u:k,U:k,L:k,R:k,0:f,1:f,2:f,3:f,4:f,5:f,6:f,7:f,8:f,9:f,token:function(e,n,t){if(t=="variable"&&e.peek()=="("&&(n.prevToken==";"||n.prevToken==null||n.prevToken=="}")&&Y(e.current()))return"def"}},namespaceSeparator:"::"}),be=h({name:"java",keywords:r("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:r("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:r("catch class do else finally for if switch try while"),defKeywords:r("class interface enum @interface"),typeFirstDefinitions:!0,atoms:r("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return e.match("interface",!1)?!1:(e.eatWhile(/[\w\$_]/),"meta")},'"':function(e,n){return e.match(/""$/)?(n.tokenize=J,n.tokenize(e,n)):!1}}}),we=h({name:"csharp",keywords:r("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:r("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:r("catch class do else finally for foreach if struct switch try while"),defKeywords:r("class interface namespace record struct var"),typeFirstDefinitions:!0,atoms:r("true false null"),hooks:{"@":function(e,n){return e.eat('"')?(n.tokenize=W,W(e,n)):(e.eatWhile(/[\w\$_]/),"meta")}}});function J(e,n){for(var t=!1;!e.eol();){if(!t&&e.match('"""')){n.tokenize=null;break}t=e.next()=="\\"&&!t}return"string"}function S(e){return function(n,t){for(var l;l=n.next();)if(l=="*"&&n.eat("/"))if(e==1){t.tokenize=null;break}else return t.tokenize=S(e-1),t.tokenize(n,t);else if(l=="/"&&n.eat("*"))return t.tokenize=S(e+1),t.tokenize(n,t);return"comment"}}const ve=h({name:"scala",keywords:r("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:r("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:r("catch class enum do else finally for forSome if match switch try while"),defKeywords:r("class enum def object package trait type val var"),atoms:r("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,n){return e.match('""')?(n.tokenize=J,n.tokenize(e,n)):!1},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"character":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(e,n){var t=n.context;return t.type=="}"&&t.align&&e.eat(">")?(n.context=new O(t.indented,t.column,t.type,t.info,null,t.prev),"operator"):!1},"/":function(e,n){return e.eat("*")?(n.tokenize=S(1),n.tokenize(e,n)):!1}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});function de(e){return function(n,t){for(var l=!1,s,d=!1;!n.eol();){if(!e&&!l&&n.match('"')){d=!0;break}if(e&&n.match('"""')){d=!0;break}s=n.next(),!l&&s=="$"&&n.match("{")&&n.skipTo("}"),l=!l&&s=="\\"&&!e}return(d||!e)&&(t.tokenize=null),"string"}}const _e=h({name:"kotlin",keywords:r("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:r("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(ul?|l|f)?/i,blockKeywords:r("catch class do else finally for if where try while enum"),defKeywords:r("class val var object interface fun"),atoms:r("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,n){return n.prevToken=="."?"variable":"operator"},'"':function(e,n){return n.tokenize=de(e.match('""')),n.tokenize(e,n)},"/":function(e,n){return e.eat("*")?(n.tokenize=S(1),n.tokenize(e,n)):!1},indent:function(e,n,t,l){var s=t&&t.charAt(0);if((e.prevToken=="}"||e.prevToken==")")&&t=="")return e.indented;if(e.prevToken=="operator"&&t!="}"&&e.context.type!="}"||e.prevToken=="variable"&&s=="."||(e.prevToken=="}"||e.prevToken==")")&&s==".")return l*2+n.indented;if(n.align&&n.type=="}")return n.indented+(e.context.type==(t||"").charAt(0)?0:l)}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}}),xe=h({name:"shader",keywords:r("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:r("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:r("for while do if else struct"),builtin:r("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:r("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":g}}),Se=h({name:"nesc",keywords:r(T+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:I,blockKeywords:r(N),atoms:r("null true false"),hooks:{"#":g}}),Te=h({name:"objectivec",keywords:r(T+" "+Q),types:X,builtin:r(Z),blockKeywords:r(N+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:r(z+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:r("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:C,hooks:{"#":g,"*":M}}),Ie=h({name:"objectivecpp",keywords:r(T+" "+Q+" "+H),types:X,builtin:r(Z),blockKeywords:r(N+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:r(z+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:r("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:C,hooks:{"#":g,"*":M,u:k,U:k,L:k,R:k,0:f,1:f,2:f,3:f,4:f,5:f,6:f,7:f,8:f,9:f,token:function(e,n,t){if(t=="variable"&&e.peek()=="("&&(n.prevToken==";"||n.prevToken==null||n.prevToken=="}")&&Y(e.current()))return"def"}},namespaceSeparator:"::"}),Ne=h({name:"squirrel",keywords:r("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:I,blockKeywords:r("case catch class else for foreach if switch try while"),defKeywords:r("function local class"),typeFirstDefinitions:!0,atoms:r("true false null"),hooks:{"#":g}});var L=null;function ee(e){return function(n,t){for(var l=!1,s,d=!1;!n.eol();){if(!l&&n.match('"')&&(e=="single"||n.match('""'))){d=!0;break}if(!l&&n.match("``")){L=ee(e),d=!0;break}s=n.next(),l=e=="single"&&!l&&s=="\\"}return d&&(t.tokenize=null),"string"}}const De=h({name:"ceylon",keywords:r("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var n=e.charAt(0);return n===n.toUpperCase()&&n!==n.toLowerCase()},blockKeywords:r("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:r("class dynamic function interface module object package value"),builtin:r("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:r("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,n){return n.tokenize=ee(e.match('""')?"triple":"single"),n.tokenize(e,n)},"`":function(e,n){return!L||!e.match("`")?!1:(n.tokenize=L,L=null,n.tokenize(e,n))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"string.special":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},token:function(e,n,t){if((t=="variable"||t=="type")&&n.prevToken==".")return"variableName.special"}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});function pe(e){(e.interpolationStack||(e.interpolationStack=[])).push(e.tokenize)}function ne(e){return(e.interpolationStack||(e.interpolationStack=[])).pop()}function he(e){return e.interpolationStack?e.interpolationStack.length:0}function R(e,n,t,l){var s=!1;if(n.eat(e))if(n.eat(e))s=!0;else return"string";function d(b,_){for(var w=!1;!b.eol();){if(!l&&!w&&b.peek()=="$")return pe(_),_.tokenize=ye,"string";var y=b.next();if(y==e&&!w&&(!s||b.match(e+e))){_.tokenize=null;break}w=!l&&!w&&y=="\\"}return"string"}return t.tokenize=d,d(n,t)}function ye(e,n){return e.eat("$"),e.eat("{")?n.tokenize=null:n.tokenize=me,null}function me(e,n){return e.eatWhile(/[\w_]/),n.tokenize=ne(n),"variable"}const Le=h({name:"dart",keywords:r("this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline"),blockKeywords:r("try catch finally do else for if switch while"),builtin:r("void bool num int double dynamic var String Null Never"),atoms:r("true false null"),number:/^(?:0x[a-f\d_]+|(?:[\d_]+\.?[\d_]*|\.[\d_]+)(?:e[-+]?[\d_]+)?)/i,hooks:{"@":function(e){return e.eatWhile(/[\w\$_\.]/),"meta"},"'":function(e,n){return R("'",e,n,!1)},'"':function(e,n){return R('"',e,n,!1)},r:function(e,n){var t=e.peek();return t=="'"||t=='"'?R(e.next(),e,n,!0):!1},"}":function(e,n){return he(n)>0?(n.tokenize=ne(n),null):!1},"/":function(e,n){return e.eat("*")?(n.tokenize=S(1),n.tokenize(e,n)):!1},token:function(e,n,t){if(t=="variable"){var l=RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g");if(l.test(e.current()))return"type"}}}});export{ke as c,De as ceylon,h as clike,ge as cpp,we as csharp,Le as dart,be as java,_e as kotlin,Se as nesC,Te as objectiveC,Ie as objectiveCpp,ve as scala,xe as shader,Ne as squirrel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ab as ki}from"./tool-windows-DWUG3k_L.js";function Hi(B,n){for(var w=0;w<n.length;w++){const O=n[w];if(typeof O!="string"&&!Array.isArray(O)){for(const x in O)if(x!=="default"&&!(x in B)){const d=Object.getOwnPropertyDescriptor(O,x);d&&Object.defineProperty(B,x,d.get?d:{enumerable:!0,get:()=>O[x]})}}}return Object.freeze(Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}))}var U={exports:{}},K;function Ji(){return K||(K=1,(function(B){(function(){var n={};n.version="6.4.2.2",n.use_lines=!0,n.use_xyz=!1;var w=!1;B.exports?(B.exports=n,w=!0):typeof document<"u"?window.ClipperLib=n:self.ClipperLib=n;var O;if(w){var x="chrome";O="Netscape"}else{var x=navigator.userAgent.toString().toLowerCase();O=navigator.appName}var d={};x.indexOf("chrome")!=-1&&x.indexOf("chromium")==-1?d.chrome=1:d.chrome=0,x.indexOf("chromium")!=-1?d.chromium=1:d.chromium=0,x.indexOf("safari")!=-1&&x.indexOf("chrome")==-1&&x.indexOf("chromium")==-1?d.safari=1:d.safari=0,x.indexOf("firefox")!=-1?d.firefox=1:d.firefox=0,x.indexOf("firefox/17")!=-1?d.firefox17=1:d.firefox17=0,x.indexOf("firefox/15")!=-1?d.firefox15=1:d.firefox15=0,x.indexOf("firefox/3")!=-1?d.firefox3=1:d.firefox3=0,x.indexOf("opera")!=-1?d.opera=1:d.opera=0,x.indexOf("msie 10")!=-1?d.msie10=1:d.msie10=0,x.indexOf("msie 9")!=-1?d.msie9=1:d.msie9=0,x.indexOf("msie 8")!=-1?d.msie8=1:d.msie8=0,x.indexOf("msie 7")!=-1?d.msie7=1:d.msie7=0,x.indexOf("msie ")!=-1?d.msie=1:d.msie=0,n.biginteger_used=null;var N;function p(t,i,e){n.biginteger_used=1,t!=null&&(typeof t=="number"&&typeof i>"u"?this.fromInt(t):typeof t=="number"?this.fromNumber(t,i,e):i==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,i))}function I(){return new p(null,void 0,void 0)}function $(t,i,e,r,s,l){for(;--l>=0;){var o=i*this[t++]+e[r]+s;s=Math.floor(o/67108864),e[r++]=o&67108863}return s}function j(t,i,e,r,s,l){for(var o=i&32767,u=i>>15;--l>=0;){var f=this[t]&32767,h=this[t++]>>15,P=u*f+h*o;f=o*f+((P&32767)<<15)+e[r]+(s&1073741823),s=(f>>>30)+(P>>>15)+u*h+(s>>>30),e[r++]=f&1073741823}return s}function tt(t,i,e,r,s,l){for(var o=i&16383,u=i>>14;--l>=0;){var f=this[t]&16383,h=this[t++]>>14,P=u*f+h*o;f=o*f+((P&16383)<<14)+e[r]+s,s=(f>>28)+(P>>14)+u*h,e[r++]=f&268435455}return s}O=="Microsoft Internet Explorer"?(p.prototype.am=j,N=30):O!="Netscape"?(p.prototype.am=$,N=26):(p.prototype.am=tt,N=28),p.prototype.DB=N,p.prototype.DM=(1<<N)-1,p.prototype.DV=1<<N;var Z=52;p.prototype.FV=Math.pow(2,Z),p.prototype.F1=Z-N,p.prototype.F2=2*N-Z;var it="0123456789abcdefghijklmnopqrstuvwxyz",W=new Array,D,X;for(D=48,X=0;X<=9;++X)W[D++]=X;for(D=97,X=10;X<36;++X)W[D++]=X;for(D=65,X=10;X<36;++X)W[D++]=X;function k(t){return it.charAt(t)}function H(t,i){var e=W[t.charCodeAt(i)];return e??-1}function et(t){for(var i=this.t-1;i>=0;--i)t[i]=this[i];t.t=this.t,t.s=this.s}function nt(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0}function S(t){var i=I();return i.fromInt(t),i}function rt(t,i){var e;if(i==16)e=4;else if(i==8)e=3;else if(i==256)e=8;else if(i==2)e=1;else if(i==32)e=5;else if(i==4)e=2;else{this.fromRadix(t,i);return}this.t=0,this.s=0;for(var r=t.length,s=!1,l=0;--r>=0;){var o=e==8?t[r]&255:H(t,r);if(o<0){t.charAt(r)=="-"&&(s=!0);continue}s=!1,l==0?this[this.t++]=o:l+e>this.DB?(this[this.t-1]|=(o&(1<<this.DB-l)-1)<<l,this[this.t++]=o>>this.DB-l):this[this.t-1]|=o<<l,l+=e,l>=this.DB&&(l-=this.DB)}e==8&&(t[0]&128)!=0&&(this.s=-1,l>0&&(this[this.t-1]|=(1<<this.DB-l)-1<<l)),this.clamp(),s&&p.ZERO.subTo(this,this)}function st(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t}function lt(t){if(this.s<0)return"-"+this.negate().toString(t);var i;if(t==16)i=4;else if(t==8)i=3;else if(t==2)i=1;else if(t==32)i=5;else if(t==4)i=2;else return this.toRadix(t);var e=(1<<i)-1,r,s=!1,l="",o=this.t,u=this.DB-o*this.DB%i;if(o-- >0)for(u<this.DB&&(r=this[o]>>u)>0&&(s=!0,l=k(r));o>=0;)u<i?(r=(this[o]&(1<<u)-1)<<i-u,r|=this[--o]>>(u+=this.DB-i)):(r=this[o]>>(u-=i)&e,u<=0&&(u+=this.DB,--o)),r>0&&(s=!0),s&&(l+=k(r));return s?l:"0"}function ot(){var t=I();return p.ZERO.subTo(this,t),t}function ut(){return this.s<0?this.negate():this}function ft(t){var i=this.s-t.s;if(i!=0)return i;var e=this.t;if(i=e-t.t,i!=0)return this.s<0?-i:i;for(;--e>=0;)if((i=this[e]-t[e])!=0)return i;return 0}function R(t){var i=1,e;return(e=t>>>16)!=0&&(t=e,i+=16),(e=t>>8)!=0&&(t=e,i+=8),(e=t>>4)!=0&&(t=e,i+=4),(e=t>>2)!=0&&(t=e,i+=2),(e=t>>1)!=0&&(t=e,i+=1),i}function ht(){return this.t<=0?0:this.DB*(this.t-1)+R(this[this.t-1]^this.s&this.DM)}function at(t,i){var e;for(e=this.t-1;e>=0;--e)i[e+t]=this[e];for(e=t-1;e>=0;--e)i[e]=0;i.t=this.t+t,i.s=this.s}function pt(t,i){for(var e=t;e<this.t;++e)i[e-t]=this[e];i.t=Math.max(this.t-t,0),i.s=this.s}function Pt(t,i){var e=t%this.DB,r=this.DB-e,s=(1<<r)-1,l=Math.floor(t/this.DB),o=this.s<<e&this.DM,u;for(u=this.t-1;u>=0;--u)i[u+l+1]=this[u]>>r|o,o=(this[u]&s)<<e;for(u=l-1;u>=0;--u)i[u]=0;i[l]=o,i.t=this.t+l+1,i.s=this.s,i.clamp()}function mt(t,i){i.s=this.s;var e=Math.floor(t/this.DB);if(e>=this.t){i.t=0;return}var r=t%this.DB,s=this.DB-r,l=(1<<r)-1;i[0]=this[e]>>r;for(var o=e+1;o<this.t;++o)i[o-e-1]|=(this[o]&l)<<s,i[o-e]=this[o]>>r;r>0&&(i[this.t-e-1]|=(this.s&l)<<s),i.t=this.t-e,i.clamp()}function yt(t,i){for(var e=0,r=0,s=Math.min(t.t,this.t);e<s;)r+=this[e]-t[e],i[e++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;e<this.t;)r+=this[e],i[e++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;e<t.t;)r-=t[e],i[e++]=r&this.DM,r>>=this.DB;r-=t.s}i.s=r<0?-1:0,r<-1?i[e++]=this.DV+r:r>0&&(i[e++]=r),i.t=e,i.clamp()}function dt(t,i){var e=this.abs(),r=t.abs(),s=e.t;for(i.t=s+r.t;--s>=0;)i[s]=0;for(s=0;s<r.t;++s)i[s+e.t]=e.am(0,r[s],i,s,0,e.t);i.s=0,i.clamp(),this.s!=t.s&&p.ZERO.subTo(i,i)}function vt(t){for(var i=this.abs(),e=t.t=2*i.t;--e>=0;)t[e]=0;for(e=0;e<i.t-1;++e){var r=i.am(e,i[e],t,2*e,0,1);(t[e+i.t]+=i.am(e+1,2*i[e],t,2*e+1,r,i.t-e-1))>=i.DV&&(t[e+i.t]-=i.DV,t[e+i.t+1]=1)}t.t>0&&(t[t.t-1]+=i.am(e,i[e],t,2*e,0,1)),t.s=0,t.clamp()}function Ct(t,i,e){var r=t.abs();if(!(r.t<=0)){var s=this.abs();if(s.t<r.t){i!=null&&i.fromInt(0),e!=null&&this.copyTo(e);return}e==null&&(e=I());var l=I(),o=this.s,u=t.s,f=this.DB-R(r[r.t-1]);f>0?(r.lShiftTo(f,l),s.lShiftTo(f,e)):(r.copyTo(l),s.copyTo(e));var h=l.t,P=l[h-1];if(P!=0){var a=P*(1<<this.F1)+(h>1?l[h-2]>>this.F2:0),m=this.FV/a,y=(1<<this.F1)/a,C=1<<this.F2,c=e.t,_=c-h,L=i??I();for(l.dlShiftTo(_,L),e.compareTo(L)>=0&&(e[e.t++]=1,e.subTo(L,e)),p.ONE.dlShiftTo(h,L),L.subTo(l,l);l.t<h;)l[l.t++]=0;for(;--_>=0;){var Y=e[--c]==P?this.DM:Math.floor(e[c]*m+(e[c-1]+C)*y);if((e[c]+=l.am(0,Y,e,_,0,h))<Y)for(l.dlShiftTo(_,L),e.subTo(L,e);e[c]<--Y;)e.subTo(L,e)}i!=null&&(e.drShiftTo(h,i),o!=u&&p.ZERO.subTo(i,i)),e.t=h,e.clamp(),f>0&&e.rShiftTo(f,e),o<0&&p.ZERO.subTo(e,e)}}}function ct(t){var i=I();return this.abs().divRemTo(t,null,i),this.s<0&&i.compareTo(p.ZERO)>0&&t.subTo(i,i),i}function A(t){this.m=t}function It(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t}function _t(t){return t}function xt(t){t.divRemTo(this.m,null,t)}function Tt(t,i,e){t.multiplyTo(i,e),this.reduce(e)}function Lt(t,i){t.squareTo(i),this.reduce(i)}A.prototype.convert=It,A.prototype.revert=_t,A.prototype.reduce=xt,A.prototype.mulTo=Tt,A.prototype.sqrTo=Lt;function Xt(){if(this.t<1)return 0;var t=this[0];if((t&1)==0)return 0;var i=t&3;return i=i*(2-(t&15)*i)&15,i=i*(2-(t&255)*i)&255,i=i*(2-((t&65535)*i&65535))&65535,i=i*(2-t*i%this.DV)%this.DV,i>0?this.DV-i:-i}function E(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function Ot(t){var i=I();return t.abs().dlShiftTo(this.m.t,i),i.divRemTo(this.m,null,i),t.s<0&&i.compareTo(p.ZERO)>0&&this.m.subTo(i,i),i}function Yt(t){var i=I();return t.copyTo(i),this.reduce(i),i}function Nt(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var i=0;i<this.m.t;++i){var e=t[i]&32767,r=e*this.mpl+((e*this.mph+(t[i]>>15)*this.mpl&this.um)<<15)&t.DM;for(e=i+this.m.t,t[e]+=this.m.am(0,r,t,i,0,this.m.t);t[e]>=t.DV;)t[e]-=t.DV,t[++e]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)}function St(t,i){t.squareTo(i),this.reduce(i)}function At(t,i,e){t.multiplyTo(i,e),this.reduce(e)}E.prototype.convert=Ot,E.prototype.revert=Yt,E.prototype.reduce=Nt,E.prototype.mulTo=At,E.prototype.sqrTo=St;function Et(){return(this.t>0?this[0]&1:this.s)==0}function Bt(t,i){if(t>4294967295||t<1)return p.ONE;var e=I(),r=I(),s=i.convert(this),l=R(t)-1;for(s.copyTo(e);--l>=0;)if(i.sqrTo(e,r),(t&1<<l)>0)i.mulTo(r,s,e);else{var o=e;e=r,r=o}return i.revert(e)}function wt(t,i){var e;return t<256||i.isEven()?e=new A(i):e=new E(i),this.exp(t,e)}p.prototype.copyTo=et,p.prototype.fromInt=nt,p.prototype.fromString=rt,p.prototype.clamp=st,p.prototype.dlShiftTo=at,p.prototype.drShiftTo=pt,p.prototype.lShiftTo=Pt,p.prototype.rShiftTo=mt,p.prototype.subTo=yt,p.prototype.multiplyTo=dt,p.prototype.squareTo=vt,p.prototype.divRemTo=Ct,p.prototype.invDigit=Xt,p.prototype.isEven=Et,p.prototype.exp=Bt,p.prototype.toString=lt,p.prototype.negate=ot,p.prototype.abs=ut,p.prototype.compareTo=ft,p.prototype.bitLength=ht,p.prototype.mod=ct,p.prototype.modPowInt=wt,p.ZERO=S(0),p.ONE=S(1);function Dt(){var t=I();return this.copyTo(t),t}function bt(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function Mt(){return this.t==0?this.s:this[0]<<24>>24}function Ft(){return this.t==0?this.s:this[0]<<16>>16}function gt(t){return Math.floor(Math.LN2*this.DB/Math.log(t))}function Wt(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Rt(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var i=this.chunkSize(t),e=Math.pow(t,i),r=S(e),s=I(),l=I(),o="";for(this.divRemTo(r,s,l);s.signum()>0;)o=(e+l.intValue()).toString(t).substr(1)+o,s.divRemTo(r,s,l);return l.intValue().toString(t)+o}function Zt(t,i){this.fromInt(0),i==null&&(i=10);for(var e=this.chunkSize(i),r=Math.pow(i,e),s=!1,l=0,o=0,u=0;u<t.length;++u){var f=H(t,u);if(f<0){t.charAt(u)=="-"&&this.signum()==0&&(s=!0);continue}o=i*o+f,++l>=e&&(this.dMultiply(r),this.dAddOffset(o,0),l=0,o=0)}l>0&&(this.dMultiply(Math.pow(i,l)),this.dAddOffset(o,0)),s&&p.ZERO.subTo(this,this)}function qt(t,i,e){if(typeof i=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,e),this.testBit(t-1)||this.bitwiseTo(p.ONE.shiftLeft(t-1),q,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(i);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(p.ONE.shiftLeft(t-1),this);else{var r=new Array,s=t&7;r.length=(t>>3)+1,i.nextBytes(r),s>0?r[0]&=(1<<s)-1:r[0]=0,this.fromString(r,256)}}function Ut(){var t=this.t,i=new Array;i[0]=this.s;var e=this.DB-t*this.DB%8,r,s=0;if(t-- >0)for(e<this.DB&&(r=this[t]>>e)!=(this.s&this.DM)>>e&&(i[s++]=r|this.s<<this.DB-e);t>=0;)e<8?(r=(this[t]&(1<<e)-1)<<8-e,r|=this[--t]>>(e+=this.DB-8)):(r=this[t]>>(e-=8)&255,e<=0&&(e+=this.DB,--t)),(r&128)!=0&&(r|=-256),s==0&&(this.s&128)!=(r&128)&&++s,(s>0||r!=this.s)&&(i[s++]=r);return i}function kt(t){return this.compareTo(t)==0}function Ht(t){return this.compareTo(t)<0?this:t}function Jt(t){return this.compareTo(t)>0?this:t}function Gt(t,i,e){var r,s,l=Math.min(t.t,this.t);for(r=0;r<l;++r)e[r]=i(this[r],t[r]);if(t.t<this.t){for(s=t.s&this.DM,r=l;r<this.t;++r)e[r]=i(this[r],s);e.t=this.t}else{for(s=this.s&this.DM,r=l;r<t.t;++r)e[r]=i(s,t[r]);e.t=t.t}e.s=i(this.s,t.s),e.clamp()}function Vt(t,i){return t&i}function zt(t){var i=I();return this.bitwiseTo(t,Vt,i),i}function q(t,i){return t|i}function Kt(t){var i=I();return this.bitwiseTo(t,q,i),i}function J(t,i){return t^i}function Qt(t){var i=I();return this.bitwiseTo(t,J,i),i}function G(t,i){return t&~i}function $t(t){var i=I();return this.bitwiseTo(t,G,i),i}function jt(){for(var t=I(),i=0;i<this.t;++i)t[i]=this.DM&~this[i];return t.t=this.t,t.s=~this.s,t}function ti(t){var i=I();return t<0?this.rShiftTo(-t,i):this.lShiftTo(t,i),i}function ii(t){var i=I();return t<0?this.lShiftTo(-t,i):this.rShiftTo(t,i),i}function ei(t){if(t==0)return-1;var i=0;return(t&65535)==0&&(t>>=16,i+=16),(t&255)==0&&(t>>=8,i+=8),(t&15)==0&&(t>>=4,i+=4),(t&3)==0&&(t>>=2,i+=2),(t&1)==0&&++i,i}function ni(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+ei(this[t]);return this.s<0?this.t*this.DB:-1}function ri(t){for(var i=0;t!=0;)t&=t-1,++i;return i}function si(){for(var t=0,i=this.s&this.DM,e=0;e<this.t;++e)t+=ri(this[e]^i);return t}function li(t){var i=Math.floor(t/this.DB);return i>=this.t?this.s!=0:(this[i]&1<<t%this.DB)!=0}function oi(t,i){var e=p.ONE.shiftLeft(t);return this.bitwiseTo(e,i,e),e}function ui(t){return this.changeBit(t,q)}function fi(t){return this.changeBit(t,G)}function hi(t){return this.changeBit(t,J)}function ai(t,i){for(var e=0,r=0,s=Math.min(t.t,this.t);e<s;)r+=this[e]+t[e],i[e++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;e<this.t;)r+=this[e],i[e++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;e<t.t;)r+=t[e],i[e++]=r&this.DM,r>>=this.DB;r+=t.s}i.s=r<0?-1:0,r>0?i[e++]=r:r<-1&&(i[e++]=this.DV+r),i.t=e,i.clamp()}function pi(t){var i=I();return this.addTo(t,i),i}function Pi(t){var i=I();return this.subTo(t,i),i}function mi(t){var i=I();return this.multiplyTo(t,i),i}function yi(){var t=I();return this.squareTo(t),t}function di(t){var i=I();return this.divRemTo(t,i,null),i}function vi(t){var i=I();return this.divRemTo(t,null,i),i}function Ci(t){var i=I(),e=I();return this.divRemTo(t,i,e),new Array(i,e)}function ci(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()}function Ii(t,i){if(t!=0){for(;this.t<=i;)this[this.t++]=0;for(this[i]+=t;this[i]>=this.DV;)this[i]-=this.DV,++i>=this.t&&(this[this.t++]=0),++this[i]}}function g(){}function V(t){return t}function _i(t,i,e){t.multiplyTo(i,e)}function xi(t,i){t.squareTo(i)}g.prototype.convert=V,g.prototype.revert=V,g.prototype.mulTo=_i,g.prototype.sqrTo=xi;function Ti(t){return this.exp(t,new g)}function Li(t,i,e){var r=Math.min(this.t+t.t,i);for(e.s=0,e.t=r;r>0;)e[--r]=0;var s;for(s=e.t-this.t;r<s;++r)e[r+this.t]=this.am(0,t[r],e,r,0,this.t);for(s=Math.min(t.t,i);r<s;++r)this.am(0,t[r],e,r,0,i-r);e.clamp()}function Xi(t,i,e){--i;var r=e.t=this.t+t.t-i;for(e.s=0;--r>=0;)e[r]=0;for(r=Math.max(i-this.t,0);r<t.t;++r)e[this.t+r-i]=this.am(i-r,t[r],e,0,0,this.t+r-i);e.clamp(),e.drShiftTo(1,e)}function b(t){this.r2=I(),this.q3=I(),p.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}function Oi(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var i=I();return t.copyTo(i),this.reduce(i),i}function Yi(t){return t}function Ni(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)}function Si(t,i){t.squareTo(i),this.reduce(i)}function Ai(t,i,e){t.multiplyTo(i,e),this.reduce(e)}b.prototype.convert=Oi,b.prototype.revert=Yi,b.prototype.reduce=Ni,b.prototype.mulTo=Ai,b.prototype.sqrTo=Si;function Ei(t,i){var e=t.bitLength(),r,s=S(1),l;if(e<=0)return s;e<18?r=1:e<48?r=3:e<144?r=4:e<768?r=5:r=6,e<8?l=new A(i):i.isEven()?l=new b(i):l=new E(i);var o=new Array,u=3,f=r-1,h=(1<<r)-1;if(o[1]=l.convert(this),r>1){var P=I();for(l.sqrTo(o[1],P);u<=h;)o[u]=I(),l.mulTo(P,o[u-2],o[u]),u+=2}var a=t.t-1,m,y=!0,C=I(),c;for(e=R(t[a])-1;a>=0;){for(e>=f?m=t[a]>>e-f&h:(m=(t[a]&(1<<e+1)-1)<<f-e,a>0&&(m|=t[a-1]>>this.DB+e-f)),u=r;(m&1)==0;)m>>=1,--u;if((e-=u)<0&&(e+=this.DB,--a),y)o[m].copyTo(s),y=!1;else{for(;u>1;)l.sqrTo(s,C),l.sqrTo(C,s),u-=2;u>0?l.sqrTo(s,C):(c=s,s=C,C=c),l.mulTo(C,o[m],s)}for(;a>=0&&(t[a]&1<<e)==0;)l.sqrTo(s,C),c=s,s=C,C=c,--e<0&&(e=this.DB-1,--a)}return l.revert(s)}function Bi(t){var i=this.s<0?this.negate():this.clone(),e=t.s<0?t.negate():t.clone();if(i.compareTo(e)<0){var r=i;i=e,e=r}var s=i.getLowestSetBit(),l=e.getLowestSetBit();if(l<0)return i;for(s<l&&(l=s),l>0&&(i.rShiftTo(l,i),e.rShiftTo(l,e));i.signum()>0;)(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),i.compareTo(e)>=0?(i.subTo(e,i),i.rShiftTo(1,i)):(e.subTo(i,e),e.rShiftTo(1,e));return l>0&&e.lShiftTo(l,e),e}function wi(t){if(t<=0)return 0;var i=this.DV%t,e=this.s<0?t-1:0;if(this.t>0)if(i==0)e=this[0]%t;else for(var r=this.t-1;r>=0;--r)e=(i*e+this[r])%t;return e}function Di(t){var i=t.isEven();if(this.isEven()&&i||t.signum()==0)return p.ZERO;for(var e=t.clone(),r=this.clone(),s=S(1),l=S(0),o=S(0),u=S(1);e.signum()!=0;){for(;e.isEven();)e.rShiftTo(1,e),i?((!s.isEven()||!l.isEven())&&(s.addTo(this,s),l.subTo(t,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);for(;r.isEven();)r.rShiftTo(1,r),i?((!o.isEven()||!u.isEven())&&(o.addTo(this,o),u.subTo(t,u)),o.rShiftTo(1,o)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);e.compareTo(r)>=0?(e.subTo(r,e),i&&s.subTo(o,s),l.subTo(u,l)):(r.subTo(e,r),i&&o.subTo(s,o),u.subTo(l,u))}if(r.compareTo(p.ONE)!=0)return p.ZERO;if(u.compareTo(t)>=0)return u.subtract(t);if(u.signum()<0)u.addTo(t,u);else return u;return u.signum()<0?u.add(t):u}var T=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],bi=(1<<26)/T[T.length-1];function Mi(t){var i,e=this.abs();if(e.t==1&&e[0]<=T[T.length-1]){for(i=0;i<T.length;++i)if(e[0]==T[i])return!0;return!1}if(e.isEven())return!1;for(i=1;i<T.length;){for(var r=T[i],s=i+1;s<T.length&&r<bi;)r*=T[s++];for(r=e.modInt(r);i<s;)if(r%T[i++]==0)return!1}return e.millerRabin(t)}function Fi(t){var i=this.subtract(p.ONE),e=i.getLowestSetBit();if(e<=0)return!1;var r=i.shiftRight(e);t=t+1>>1,t>T.length&&(t=T.length);for(var s=I(),l=0;l<t;++l){s.fromInt(T[Math.floor(Math.random()*T.length)]);var o=s.modPow(r,this);if(o.compareTo(p.ONE)!=0&&o.compareTo(i)!=0){for(var u=1;u++<e&&o.compareTo(i)!=0;)if(o=o.modPowInt(2,this),o.compareTo(p.ONE)==0)return!1;if(o.compareTo(i)!=0)return!1}}return!0}p.prototype.chunkSize=gt,p.prototype.toRadix=Rt,p.prototype.fromRadix=Zt,p.prototype.fromNumber=qt,p.prototype.bitwiseTo=Gt,p.prototype.changeBit=oi,p.prototype.addTo=ai,p.prototype.dMultiply=ci,p.prototype.dAddOffset=Ii,p.prototype.multiplyLowerTo=Li,p.prototype.multiplyUpperTo=Xi,p.prototype.modInt=wi,p.prototype.millerRabin=Fi,p.prototype.clone=Dt,p.prototype.intValue=bt,p.prototype.byteValue=Mt,p.prototype.shortValue=Ft,p.prototype.signum=Wt,p.prototype.toByteArray=Ut,p.prototype.equals=kt,p.prototype.min=Ht,p.prototype.max=Jt,p.prototype.and=zt,p.prototype.or=Kt,p.prototype.xor=Qt,p.prototype.andNot=$t,p.prototype.not=jt,p.prototype.shiftLeft=ti,p.prototype.shiftRight=ii,p.prototype.getLowestSetBit=ni,p.prototype.bitCount=si,p.prototype.testBit=li,p.prototype.setBit=ui,p.prototype.clearBit=fi,p.prototype.flipBit=hi,p.prototype.add=pi,p.prototype.subtract=Pi,p.prototype.multiply=mi,p.prototype.divide=di,p.prototype.remainder=vi,p.prototype.divideAndRemainder=Ci,p.prototype.modPow=Ei,p.prototype.modInverse=Di,p.prototype.pow=Ti,p.prototype.gcd=Bi,p.prototype.isProbablePrime=Mi,p.prototype.square=yi;var v=p;v.prototype.IsNegative=function(){return this.compareTo(v.ZERO)==-1},v.op_Equality=function(t,i){return t.compareTo(i)==0},v.op_Inequality=function(t,i){return t.compareTo(i)!=0},v.op_GreaterThan=function(t,i){return t.compareTo(i)>0},v.op_LessThan=function(t,i){return t.compareTo(i)<0},v.op_Addition=function(t,i){return new v(t,void 0,void 0).add(new v(i,void 0,void 0))},v.op_Subtraction=function(t,i){return new v(t,void 0,void 0).subtract(new v(i,void 0,void 0))},v.Int128Mul=function(t,i){return new v(t,void 0,void 0).multiply(new v(i,void 0,void 0))},v.op_Division=function(t,i){return t.divide(i)},v.prototype.ToDouble=function(){return parseFloat(this.toString())};var z=function(t,i){var e;if(typeof Object.getOwnPropertyNames>"u"){for(e in i.prototype)(typeof t.prototype[e]>"u"||t.prototype[e]===Object.prototype[e])&&(t.prototype[e]=i.prototype[e]);for(e in i)typeof t[e]>"u"&&(t[e]=i[e]);t.$baseCtor=i}else{for(var r=Object.getOwnPropertyNames(i.prototype),s=0;s<r.length;s++)typeof Object.getOwnPropertyDescriptor(t.prototype,r[s])>"u"&&Object.defineProperty(t.prototype,r[s],Object.getOwnPropertyDescriptor(i.prototype,r[s]));for(e in i)typeof t[e]>"u"&&(t[e]=i[e]);t.$baseCtor=i}};n.Path=function(){return[]},n.Path.prototype.push=Array.prototype.push,n.Paths=function(){return[]},n.Paths.prototype.push=Array.prototype.push,n.DoublePoint=function(){var t=arguments;this.X=0,this.Y=0,t.length===1?(this.X=t[0].X,this.Y=t[0].Y):t.length===2&&(this.X=t[0],this.Y=t[1])},n.DoublePoint0=function(){this.X=0,this.Y=0},n.DoublePoint0.prototype=n.DoublePoint.prototype,n.DoublePoint1=function(t){this.X=t.X,this.Y=t.Y},n.DoublePoint1.prototype=n.DoublePoint.prototype,n.DoublePoint2=function(t,i){this.X=t,this.Y=i},n.DoublePoint2.prototype=n.DoublePoint.prototype,n.PolyNode=function(){this.m_Parent=null,this.m_polygon=new n.Path,this.m_Index=0,this.m_jointype=0,this.m_endtype=0,this.m_Childs=[],this.IsOpen=!1},n.PolyNode.prototype.IsHoleNode=function(){for(var t=!0,i=this.m_Parent;i!==null;)t=!t,i=i.m_Parent;return t},n.PolyNode.prototype.ChildCount=function(){return this.m_Childs.length},n.PolyNode.prototype.Contour=function(){return this.m_polygon},n.PolyNode.prototype.AddChild=function(t){var i=this.m_Childs.length;this.m_Childs.push(t),t.m_Parent=this,t.m_Index=i},n.PolyNode.prototype.GetNext=function(){return this.m_Childs.length>0?this.m_Childs[0]:this.GetNextSiblingUp()},n.PolyNode.prototype.GetNextSiblingUp=function(){return this.m_Parent===null?null:this.m_Index===this.m_Parent.m_Childs.length-1?this.m_Parent.GetNextSiblingUp():this.m_Parent.m_Childs[this.m_Index+1]},n.PolyNode.prototype.Childs=function(){return this.m_Childs},n.PolyNode.prototype.Parent=function(){return this.m_Parent},n.PolyNode.prototype.IsHole=function(){return this.IsHoleNode()},n.PolyTree=function(){this.m_AllPolys=[],n.PolyNode.call(this)},n.PolyTree.prototype.Clear=function(){for(var t=0,i=this.m_AllPolys.length;t<i;t++)this.m_AllPolys[t]=null;this.m_AllPolys.length=0,this.m_Childs.length=0},n.PolyTree.prototype.GetFirst=function(){return this.m_Childs.length>0?this.m_Childs[0]:null},n.PolyTree.prototype.Total=function(){var t=this.m_AllPolys.length;return t>0&&this.m_Childs[0]!==this.m_AllPolys[0]&&t--,t},z(n.PolyTree,n.PolyNode),n.Math_Abs_Int64=n.Math_Abs_Int32=n.Math_Abs_Double=function(t){return Math.abs(t)},n.Math_Max_Int32_Int32=function(t,i){return Math.max(t,i)},d.msie||d.opera||d.safari?n.Cast_Int32=function(t){return t|0}:n.Cast_Int32=function(t){return~~t},typeof Number.toInteger>"u"&&(Number.toInteger=null),d.chrome?n.Cast_Int64=function(t){return t<-2147483648||t>2147483647?t<0?Math.ceil(t):Math.floor(t):~~t}:d.firefox&&typeof Number.toInteger=="function"?n.Cast_Int64=function(t){return Number.toInteger(t)}:d.msie7||d.msie8?n.Cast_Int64=function(t){return parseInt(t,10)}:d.msie?n.Cast_Int64=function(t){return t<-2147483648||t>2147483647?t<0?Math.ceil(t):Math.floor(t):t|0}:n.Cast_Int64=function(t){return t<0?Math.ceil(t):Math.floor(t)},n.Clear=function(t){t.length=0},n.PI=3.141592653589793,n.PI2=2*3.141592653589793,n.IntPoint=function(){var t=arguments,i=t.length;if(this.X=0,this.Y=0,n.use_xyz)if(this.Z=0,i===3)this.X=t[0],this.Y=t[1],this.Z=t[2];else if(i===2)this.X=t[0],this.Y=t[1],this.Z=0;else if(i===1)if(t[0]instanceof n.DoublePoint){var e=t[0];this.X=n.Clipper.Round(e.X),this.Y=n.Clipper.Round(e.Y),this.Z=0}else{var r=t[0];typeof r.Z>"u"&&(r.Z=0),this.X=r.X,this.Y=r.Y,this.Z=r.Z}else this.X=0,this.Y=0,this.Z=0;else if(i===2)this.X=t[0],this.Y=t[1];else if(i===1)if(t[0]instanceof n.DoublePoint){var e=t[0];this.X=n.Clipper.Round(e.X),this.Y=n.Clipper.Round(e.Y)}else{var r=t[0];this.X=r.X,this.Y=r.Y}else this.X=0,this.Y=0},n.IntPoint.op_Equality=function(t,i){return t.X===i.X&&t.Y===i.Y},n.IntPoint.op_Inequality=function(t,i){return t.X!==i.X||t.Y!==i.Y},n.IntPoint0=function(){this.X=0,this.Y=0,n.use_xyz&&(this.Z=0)},n.IntPoint0.prototype=n.IntPoint.prototype,n.IntPoint1=function(t){this.X=t.X,this.Y=t.Y,n.use_xyz&&(typeof t.Z>"u"?this.Z=0:this.Z=t.Z)},n.IntPoint1.prototype=n.IntPoint.prototype,n.IntPoint1dp=function(t){this.X=n.Clipper.Round(t.X),this.Y=n.Clipper.Round(t.Y),n.use_xyz&&(this.Z=0)},n.IntPoint1dp.prototype=n.IntPoint.prototype,n.IntPoint2=function(t,i,e){this.X=t,this.Y=i,n.use_xyz&&(typeof e>"u"?this.Z=0:this.Z=e)},n.IntPoint2.prototype=n.IntPoint.prototype,n.IntRect=function(){var t=arguments,i=t.length;if(i===4)this.left=t[0],this.top=t[1],this.right=t[2],this.bottom=t[3];else if(i===1){var e=t[0];this.left=e.left,this.top=e.top,this.right=e.right,this.bottom=e.bottom}else this.left=0,this.top=0,this.right=0,this.bottom=0},n.IntRect0=function(){this.left=0,this.top=0,this.right=0,this.bottom=0},n.IntRect0.prototype=n.IntRect.prototype,n.IntRect1=function(t){this.left=t.left,this.top=t.top,this.right=t.right,this.bottom=t.bottom},n.IntRect1.prototype=n.IntRect.prototype,n.IntRect4=function(t,i,e,r){this.left=t,this.top=i,this.right=e,this.bottom=r},n.IntRect4.prototype=n.IntRect.prototype,n.ClipType={ctIntersection:0,ctUnion:1,ctDifference:2,ctXor:3},n.PolyType={ptSubject:0,ptClip:1},n.PolyFillType={pftEvenOdd:0,pftNonZero:1,pftPositive:2,pftNegative:3},n.JoinType={jtSquare:0,jtRound:1,jtMiter:2},n.EndType={etOpenSquare:0,etOpenRound:1,etOpenButt:2,etClosedLine:3,etClosedPolygon:4},n.EdgeSide={esLeft:0,esRight:1},n.Direction={dRightToLeft:0,dLeftToRight:1},n.TEdge=function(){this.Bot=new n.IntPoint0,this.Curr=new n.IntPoint0,this.Top=new n.IntPoint0,this.Delta=new n.IntPoint0,this.Dx=0,this.PolyTyp=n.PolyType.ptSubject,this.Side=n.EdgeSide.esLeft,this.WindDelta=0,this.WindCnt=0,this.WindCnt2=0,this.OutIdx=0,this.Next=null,this.Prev=null,this.NextInLML=null,this.NextInAEL=null,this.PrevInAEL=null,this.NextInSEL=null,this.PrevInSEL=null},n.IntersectNode=function(){this.Edge1=null,this.Edge2=null,this.Pt=new n.IntPoint0},n.MyIntersectNodeSort=function(){},n.MyIntersectNodeSort.Compare=function(t,i){var e=i.Pt.Y-t.Pt.Y;return e>0?1:e<0?-1:0},n.LocalMinima=function(){this.Y=0,this.LeftBound=null,this.RightBound=null,this.Next=null},n.Scanbeam=function(){this.Y=0,this.Next=null},n.Maxima=function(){this.X=0,this.Next=null,this.Prev=null},n.OutRec=function(){this.Idx=0,this.IsHole=!1,this.IsOpen=!1,this.FirstLeft=null,this.Pts=null,this.BottomPt=null,this.PolyNode=null},n.OutPt=function(){this.Idx=0,this.Pt=new n.IntPoint0,this.Next=null,this.Prev=null},n.Join=function(){this.OutPt1=null,this.OutPt2=null,this.OffPt=new n.IntPoint0},n.ClipperBase=function(){this.m_MinimaList=null,this.m_CurrentLM=null,this.m_edges=new Array,this.m_UseFullRange=!1,this.m_HasOpenPaths=!1,this.PreserveCollinear=!1,this.m_Scanbeam=null,this.m_PolyOuts=null,this.m_ActiveEdges=null},n.ClipperBase.horizontal=-9007199254740992,n.ClipperBase.Skip=-2,n.ClipperBase.Unassigned=-1,n.ClipperBase.tolerance=1e-20,n.ClipperBase.loRange=47453132,n.ClipperBase.hiRange=0xfffffffffffff,n.ClipperBase.near_zero=function(t){return t>-n.ClipperBase.tolerance&&t<n.ClipperBase.tolerance},n.ClipperBase.IsHorizontal=function(t){return t.Delta.Y===0},n.ClipperBase.prototype.PointIsVertex=function(t,i){var e=i;do{if(n.IntPoint.op_Equality(e.Pt,t))return!0;e=e.Next}while(e!==i);return!1},n.ClipperBase.prototype.PointOnLineSegment=function(t,i,e,r){return r?t.X===i.X&&t.Y===i.Y||t.X===e.X&&t.Y===e.Y||t.X>i.X==t.X<e.X&&t.Y>i.Y==t.Y<e.Y&&v.op_Equality(v.Int128Mul(t.X-i.X,e.Y-i.Y),v.Int128Mul(e.X-i.X,t.Y-i.Y)):t.X===i.X&&t.Y===i.Y||t.X===e.X&&t.Y===e.Y||t.X>i.X==t.X<e.X&&t.Y>i.Y==t.Y<e.Y&&(t.X-i.X)*(e.Y-i.Y)===(e.X-i.X)*(t.Y-i.Y)},n.ClipperBase.prototype.PointOnPolygon=function(t,i,e){for(var r=i;;){if(this.PointOnLineSegment(t,r.Pt,r.Next.Pt,e))return!0;if(r=r.Next,r===i)break}return!1},n.ClipperBase.prototype.SlopesEqual=n.ClipperBase.SlopesEqual=function(){var t=arguments,i=t.length,e,r,s,l,o,u,f;return i===3?(e=t[0],r=t[1],f=t[2],f?v.op_Equality(v.Int128Mul(e.Delta.Y,r.Delta.X),v.Int128Mul(e.Delta.X,r.Delta.Y)):n.Cast_Int64(e.Delta.Y*r.Delta.X)===n.Cast_Int64(e.Delta.X*r.Delta.Y)):i===4?(s=t[0],l=t[1],o=t[2],f=t[3],f?v.op_Equality(v.Int128Mul(s.Y-l.Y,l.X-o.X),v.Int128Mul(s.X-l.X,l.Y-o.Y)):n.Cast_Int64((s.Y-l.Y)*(l.X-o.X))-n.Cast_Int64((s.X-l.X)*(l.Y-o.Y))===0):(s=t[0],l=t[1],o=t[2],u=t[3],f=t[4],f?v.op_Equality(v.Int128Mul(s.Y-l.Y,o.X-u.X),v.Int128Mul(s.X-l.X,o.Y-u.Y)):n.Cast_Int64((s.Y-l.Y)*(o.X-u.X))-n.Cast_Int64((s.X-l.X)*(o.Y-u.Y))===0)},n.ClipperBase.SlopesEqual3=function(t,i,e){return e?v.op_Equality(v.Int128Mul(t.Delta.Y,i.Delta.X),v.Int128Mul(t.Delta.X,i.Delta.Y)):n.Cast_Int64(t.Delta.Y*i.Delta.X)===n.Cast_Int64(t.Delta.X*i.Delta.Y)},n.ClipperBase.SlopesEqual4=function(t,i,e,r){return r?v.op_Equality(v.Int128Mul(t.Y-i.Y,i.X-e.X),v.Int128Mul(t.X-i.X,i.Y-e.Y)):n.Cast_Int64((t.Y-i.Y)*(i.X-e.X))-n.Cast_Int64((t.X-i.X)*(i.Y-e.Y))===0},n.ClipperBase.SlopesEqual5=function(t,i,e,r,s){return s?v.op_Equality(v.Int128Mul(t.Y-i.Y,e.X-r.X),v.Int128Mul(t.X-i.X,e.Y-r.Y)):n.Cast_Int64((t.Y-i.Y)*(e.X-r.X))-n.Cast_Int64((t.X-i.X)*(e.Y-r.Y))===0},n.ClipperBase.prototype.Clear=function(){this.DisposeLocalMinimaList();for(var t=0,i=this.m_edges.length;t<i;++t){for(var e=0,r=this.m_edges[t].length;e<r;++e)this.m_edges[t][e]=null;n.Clear(this.m_edges[t])}n.Clear(this.m_edges),this.m_UseFullRange=!1,this.m_HasOpenPaths=!1},n.ClipperBase.prototype.DisposeLocalMinimaList=function(){for(;this.m_MinimaList!==null;){var t=this.m_MinimaList.Next;this.m_MinimaList=null,this.m_MinimaList=t}this.m_CurrentLM=null},n.ClipperBase.prototype.RangeTest=function(t,i){i.Value?(t.X>n.ClipperBase.hiRange||t.Y>n.ClipperBase.hiRange||-t.X>n.ClipperBase.hiRange||-t.Y>n.ClipperBase.hiRange)&&n.Error("Coordinate outside allowed range in RangeTest()."):(t.X>n.ClipperBase.loRange||t.Y>n.ClipperBase.loRange||-t.X>n.ClipperBase.loRange||-t.Y>n.ClipperBase.loRange)&&(i.Value=!0,this.RangeTest(t,i))},n.ClipperBase.prototype.InitEdge=function(t,i,e,r){t.Next=i,t.Prev=e,t.Curr.X=r.X,t.Curr.Y=r.Y,n.use_xyz&&(t.Curr.Z=r.Z),t.OutIdx=-1},n.ClipperBase.prototype.InitEdge2=function(t,i){t.Curr.Y>=t.Next.Curr.Y?(t.Bot.X=t.Curr.X,t.Bot.Y=t.Curr.Y,n.use_xyz&&(t.Bot.Z=t.Curr.Z),t.Top.X=t.Next.Curr.X,t.Top.Y=t.Next.Curr.Y,n.use_xyz&&(t.Top.Z=t.Next.Curr.Z)):(t.Top.X=t.Curr.X,t.Top.Y=t.Curr.Y,n.use_xyz&&(t.Top.Z=t.Curr.Z),t.Bot.X=t.Next.Curr.X,t.Bot.Y=t.Next.Curr.Y,n.use_xyz&&(t.Bot.Z=t.Next.Curr.Z)),this.SetDx(t),t.PolyTyp=i},n.ClipperBase.prototype.FindNextLocMin=function(t){for(var i;;){for(;n.IntPoint.op_Inequality(t.Bot,t.Prev.Bot)||n.IntPoint.op_Equality(t.Curr,t.Top);)t=t.Next;if(t.Dx!==n.ClipperBase.horizontal&&t.Prev.Dx!==n.ClipperBase.horizontal)break;for(;t.Prev.Dx===n.ClipperBase.horizontal;)t=t.Prev;for(i=t;t.Dx===n.ClipperBase.horizontal;)t=t.Next;if(t.Top.Y!==t.Prev.Bot.Y){i.Prev.Bot.X<t.Bot.X&&(t=i);break}}return t},n.ClipperBase.prototype.ProcessBound=function(t,i){var e,r=t,s;if(r.OutIdx===n.ClipperBase.Skip){if(t=r,i){for(;t.Top.Y===t.Next.Bot.Y;)t=t.Next;for(;t!==r&&t.Dx===n.ClipperBase.horizontal;)t=t.Prev}else{for(;t.Top.Y===t.Prev.Bot.Y;)t=t.Prev;for(;t!==r&&t.Dx===n.ClipperBase.horizontal;)t=t.Next}if(t===r)i?r=t.Next:r=t.Prev;else{i?t=r.Next:t=r.Prev;var l=new n.LocalMinima;l.Next=null,l.Y=t.Bot.Y,l.LeftBound=null,l.RightBound=t,t.WindDelta=0,r=this.ProcessBound(t,i),this.InsertLocalMinima(l)}return r}if(t.Dx===n.ClipperBase.horizontal&&(i?e=t.Prev:e=t.Next,e.Dx===n.ClipperBase.horizontal?e.Bot.X!==t.Bot.X&&e.Top.X!==t.Bot.X&&this.ReverseHorizontal(t):e.Bot.X!==t.Bot.X&&this.ReverseHorizontal(t)),e=t,i){for(;r.Top.Y===r.Next.Bot.Y&&r.Next.OutIdx!==n.ClipperBase.Skip;)r=r.Next;if(r.Dx===n.ClipperBase.horizontal&&r.Next.OutIdx!==n.ClipperBase.Skip){for(s=r;s.Prev.Dx===n.ClipperBase.horizontal;)s=s.Prev;s.Prev.Top.X>r.Next.Top.X&&(r=s.Prev)}for(;t!==r;)t.NextInLML=t.Next,t.Dx===n.ClipperBase.horizontal&&t!==e&&t.Bot.X!==t.Prev.Top.X&&this.ReverseHorizontal(t),t=t.Next;t.Dx===n.ClipperBase.horizontal&&t!==e&&t.Bot.X!==t.Prev.Top.X&&this.ReverseHorizontal(t),r=r.Next}else{for(;r.Top.Y===r.Prev.Bot.Y&&r.Prev.OutIdx!==n.ClipperBase.Skip;)r=r.Prev;if(r.Dx===n.ClipperBase.horizontal&&r.Prev.OutIdx!==n.ClipperBase.Skip){for(s=r;s.Next.Dx===n.ClipperBase.horizontal;)s=s.Next;(s.Next.Top.X===r.Prev.Top.X||s.Next.Top.X>r.Prev.Top.X)&&(r=s.Next)}for(;t!==r;)t.NextInLML=t.Prev,t.Dx===n.ClipperBase.horizontal&&t!==e&&t.Bot.X!==t.Next.Top.X&&this.ReverseHorizontal(t),t=t.Prev;t.Dx===n.ClipperBase.horizontal&&t!==e&&t.Bot.X!==t.Next.Top.X&&this.ReverseHorizontal(t),r=r.Prev}return r},n.ClipperBase.prototype.AddPath=function(t,i,e){n.use_lines?!e&&i===n.PolyType.ptClip&&n.Error("AddPath: Open paths must be subject."):e||n.Error("AddPath: Open paths have been disabled.");var r=t.length-1;if(e)for(;r>0&&n.IntPoint.op_Equality(t[r],t[0]);)--r;for(;r>0&&n.IntPoint.op_Equality(t[r],t[r-1]);)--r;if(e&&r<2||!e&&r<1)return!1;for(var s=new Array,l=0;l<=r;l++)s.push(new n.TEdge);var o=!0;s[1].Curr.X=t[1].X,s[1].Curr.Y=t[1].Y,n.use_xyz&&(s[1].Curr.Z=t[1].Z);var u={Value:this.m_UseFullRange};this.RangeTest(t[0],u),this.m_UseFullRange=u.Value,u.Value=this.m_UseFullRange,this.RangeTest(t[r],u),this.m_UseFullRange=u.Value,this.InitEdge(s[0],s[1],s[r],t[0]),this.InitEdge(s[r],s[0],s[r-1],t[r]);for(var l=r-1;l>=1;--l)u.Value=this.m_UseFullRange,this.RangeTest(t[l],u),this.m_UseFullRange=u.Value,this.InitEdge(s[l],s[l+1],s[l-1],t[l]);for(var f=s[0],h=f,P=f;;){if(h.Curr===h.Next.Curr&&(e||h.Next!==f)){if(h===h.Next)break;h===f&&(f=h.Next),h=this.RemoveEdge(h),P=h;continue}if(h.Prev===h.Next)break;if(e&&n.ClipperBase.SlopesEqual4(h.Prev.Curr,h.Curr,h.Next.Curr,this.m_UseFullRange)&&(!this.PreserveCollinear||!this.Pt2IsBetweenPt1AndPt3(h.Prev.Curr,h.Curr,h.Next.Curr))){h===f&&(f=h.Next),h=this.RemoveEdge(h),h=h.Prev,P=h;continue}if(h=h.Next,h===P||!e&&h.Next===f)break}if(!e&&h===h.Next||e&&h.Prev===h.Next)return!1;e||(this.m_HasOpenPaths=!0,f.Prev.OutIdx=n.ClipperBase.Skip),h=f;do this.InitEdge2(h,i),h=h.Next,o&&h.Curr.Y!==f.Curr.Y&&(o=!1);while(h!==f);if(o){if(e)return!1;h.Prev.OutIdx=n.ClipperBase.Skip;var a=new n.LocalMinima;for(a.Next=null,a.Y=h.Bot.Y,a.LeftBound=null,a.RightBound=h,a.RightBound.Side=n.EdgeSide.esRight,a.RightBound.WindDelta=0;h.Bot.X!==h.Prev.Top.X&&this.ReverseHorizontal(h),h.Next.OutIdx!==n.ClipperBase.Skip;)h.NextInLML=h.Next,h=h.Next;return this.InsertLocalMinima(a),this.m_edges.push(s),!0}this.m_edges.push(s);var m,y=null;for(n.IntPoint.op_Equality(h.Prev.Bot,h.Prev.Top)&&(h=h.Next);h=this.FindNextLocMin(h),h!==y;){y===null&&(y=h);var a=new n.LocalMinima;a.Next=null,a.Y=h.Bot.Y,h.Dx<h.Prev.Dx?(a.LeftBound=h.Prev,a.RightBound=h,m=!1):(a.LeftBound=h,a.RightBound=h.Prev,m=!0),a.LeftBound.Side=n.EdgeSide.esLeft,a.RightBound.Side=n.EdgeSide.esRight,e?a.LeftBound.Next===a.RightBound?a.LeftBound.WindDelta=-1:a.LeftBound.WindDelta=1:a.LeftBound.WindDelta=0,a.RightBound.WindDelta=-a.LeftBound.WindDelta,h=this.ProcessBound(a.LeftBound,m),h.OutIdx===n.ClipperBase.Skip&&(h=this.ProcessBound(h,m));var C=this.ProcessBound(a.RightBound,!m);C.OutIdx===n.ClipperBase.Skip&&(C=this.ProcessBound(C,!m)),a.LeftBound.OutIdx===n.ClipperBase.Skip?a.LeftBound=null:a.RightBound.OutIdx===n.ClipperBase.Skip&&(a.RightBound=null),this.InsertLocalMinima(a),m||(h=C)}return!0},n.ClipperBase.prototype.AddPaths=function(t,i,e){for(var r=!1,s=0,l=t.length;s<l;++s)this.AddPath(t[s],i,e)&&(r=!0);return r},n.ClipperBase.prototype.Pt2IsBetweenPt1AndPt3=function(t,i,e){return n.IntPoint.op_Equality(t,e)||n.IntPoint.op_Equality(t,i)||n.IntPoint.op_Equality(e,i)?!1:t.X!==e.X?i.X>t.X==i.X<e.X:i.Y>t.Y==i.Y<e.Y},n.ClipperBase.prototype.RemoveEdge=function(t){t.Prev.Next=t.Next,t.Next.Prev=t.Prev;var i=t.Next;return t.Prev=null,i},n.ClipperBase.prototype.SetDx=function(t){t.Delta.X=t.Top.X-t.Bot.X,t.Delta.Y=t.Top.Y-t.Bot.Y,t.Delta.Y===0?t.Dx=n.ClipperBase.horizontal:t.Dx=t.Delta.X/t.Delta.Y},n.ClipperBase.prototype.InsertLocalMinima=function(t){if(this.m_MinimaList===null)this.m_MinimaList=t;else if(t.Y>=this.m_MinimaList.Y)t.Next=this.m_MinimaList,this.m_MinimaList=t;else{for(var i=this.m_MinimaList;i.Next!==null&&t.Y<i.Next.Y;)i=i.Next;t.Next=i.Next,i.Next=t}},n.ClipperBase.prototype.PopLocalMinima=function(t,i){return i.v=this.m_CurrentLM,this.m_CurrentLM!==null&&this.m_CurrentLM.Y===t?(this.m_CurrentLM=this.m_CurrentLM.Next,!0):!1},n.ClipperBase.prototype.ReverseHorizontal=function(t){var i=t.Top.X;t.Top.X=t.Bot.X,t.Bot.X=i,n.use_xyz&&(i=t.Top.Z,t.Top.Z=t.Bot.Z,t.Bot.Z=i)},n.ClipperBase.prototype.Reset=function(){if(this.m_CurrentLM=this.m_MinimaList,this.m_CurrentLM!==null){this.m_Scanbeam=null;for(var t=this.m_MinimaList;t!==null;){this.InsertScanbeam(t.Y);var i=t.LeftBound;i!==null&&(i.Curr.X=i.Bot.X,i.Curr.Y=i.Bot.Y,n.use_xyz&&(i.Curr.Z=i.Bot.Z),i.OutIdx=n.ClipperBase.Unassigned),i=t.RightBound,i!==null&&(i.Curr.X=i.Bot.X,i.Curr.Y=i.Bot.Y,n.use_xyz&&(i.Curr.Z=i.Bot.Z),i.OutIdx=n.ClipperBase.Unassigned),t=t.Next}this.m_ActiveEdges=null}},n.ClipperBase.prototype.InsertScanbeam=function(t){if(this.m_Scanbeam===null)this.m_Scanbeam=new n.Scanbeam,this.m_Scanbeam.Next=null,this.m_Scanbeam.Y=t;else if(t>this.m_Scanbeam.Y){var i=new n.Scanbeam;i.Y=t,i.Next=this.m_Scanbeam,this.m_Scanbeam=i}else{for(var e=this.m_Scanbeam;e.Next!==null&&t<=e.Next.Y;)e=e.Next;if(t===e.Y)return;var r=new n.Scanbeam;r.Y=t,r.Next=e.Next,e.Next=r}},n.ClipperBase.prototype.PopScanbeam=function(t){return this.m_Scanbeam===null?(t.v=0,!1):(t.v=this.m_Scanbeam.Y,this.m_Scanbeam=this.m_Scanbeam.Next,!0)},n.ClipperBase.prototype.LocalMinimaPending=function(){return this.m_CurrentLM!==null},n.ClipperBase.prototype.CreateOutRec=function(){var t=new n.OutRec;return t.Idx=n.ClipperBase.Unassigned,t.IsHole=!1,t.IsOpen=!1,t.FirstLeft=null,t.Pts=null,t.BottomPt=null,t.PolyNode=null,this.m_PolyOuts.push(t),t.Idx=this.m_PolyOuts.length-1,t},n.ClipperBase.prototype.DisposeOutRec=function(t){var i=this.m_PolyOuts[t];i.Pts=null,i=null,this.m_PolyOuts[t]=null},n.ClipperBase.prototype.UpdateEdgeIntoAEL=function(t){t.NextInLML===null&&n.Error("UpdateEdgeIntoAEL: invalid call");var i=t.PrevInAEL,e=t.NextInAEL;return t.NextInLML.OutIdx=t.OutIdx,i!==null?i.NextInAEL=t.NextInLML:this.m_ActiveEdges=t.NextInLML,e!==null&&(e.PrevInAEL=t.NextInLML),t.NextInLML.Side=t.Side,t.NextInLML.WindDelta=t.WindDelta,t.NextInLML.WindCnt=t.WindCnt,t.NextInLML.WindCnt2=t.WindCnt2,t=t.NextInLML,t.Curr.X=t.Bot.X,t.Curr.Y=t.Bot.Y,t.PrevInAEL=i,t.NextInAEL=e,n.ClipperBase.IsHorizontal(t)||this.InsertScanbeam(t.Top.Y),t},n.ClipperBase.prototype.SwapPositionsInAEL=function(t,i){if(!(t.NextInAEL===t.PrevInAEL||i.NextInAEL===i.PrevInAEL)){if(t.NextInAEL===i){var e=i.NextInAEL;e!==null&&(e.PrevInAEL=t);var r=t.PrevInAEL;r!==null&&(r.NextInAEL=i),i.PrevInAEL=r,i.NextInAEL=t,t.PrevInAEL=i,t.NextInAEL=e}else if(i.NextInAEL===t){var s=t.NextInAEL;s!==null&&(s.PrevInAEL=i);var l=i.PrevInAEL;l!==null&&(l.NextInAEL=t),t.PrevInAEL=l,t.NextInAEL=i,i.PrevInAEL=t,i.NextInAEL=s}else{var o=t.NextInAEL,u=t.PrevInAEL;t.NextInAEL=i.NextInAEL,t.NextInAEL!==null&&(t.NextInAEL.PrevInAEL=t),t.PrevInAEL=i.PrevInAEL,t.PrevInAEL!==null&&(t.PrevInAEL.NextInAEL=t),i.NextInAEL=o,i.NextInAEL!==null&&(i.NextInAEL.PrevInAEL=i),i.PrevInAEL=u,i.PrevInAEL!==null&&(i.PrevInAEL.NextInAEL=i)}t.PrevInAEL===null?this.m_ActiveEdges=t:i.PrevInAEL===null&&(this.m_ActiveEdges=i)}},n.ClipperBase.prototype.DeleteFromAEL=function(t){var i=t.PrevInAEL,e=t.NextInAEL;i===null&&e===null&&t!==this.m_ActiveEdges||(i!==null?i.NextInAEL=e:this.m_ActiveEdges=e,e!==null&&(e.PrevInAEL=i),t.NextInAEL=null,t.PrevInAEL=null)},n.Clipper=function(t){typeof t>"u"&&(t=0),this.m_PolyOuts=null,this.m_ClipType=n.ClipType.ctIntersection,this.m_Scanbeam=null,this.m_Maxima=null,this.m_ActiveEdges=null,this.m_SortedEdges=null,this.m_IntersectList=null,this.m_IntersectNodeComparer=null,this.m_ExecuteLocked=!1,this.m_ClipFillType=n.PolyFillType.pftEvenOdd,this.m_SubjFillType=n.PolyFillType.pftEvenOdd,this.m_Joins=null,this.m_GhostJoins=null,this.m_UsingPolyTree=!1,this.ReverseSolution=!1,this.StrictlySimple=!1,n.ClipperBase.call(this),this.m_Scanbeam=null,this.m_Maxima=null,this.m_ActiveEdges=null,this.m_SortedEdges=null,this.m_IntersectList=new Array,this.m_IntersectNodeComparer=n.MyIntersectNodeSort.Compare,this.m_ExecuteLocked=!1,this.m_UsingPolyTree=!1,this.m_PolyOuts=new Array,this.m_Joins=new Array,this.m_GhostJoins=new Array,this.ReverseSolution=(1&t)!==0,this.StrictlySimple=(2&t)!==0,this.PreserveCollinear=(4&t)!==0,n.use_xyz&&(this.ZFillFunction=null)},n.Clipper.ioReverseSolution=1,n.Clipper.ioStrictlySimple=2,n.Clipper.ioPreserveCollinear=4,n.Clipper.prototype.Clear=function(){this.m_edges.length!==0&&(this.DisposeAllPolyPts(),n.ClipperBase.prototype.Clear.call(this))},n.Clipper.prototype.InsertMaxima=function(t){var i=new n.Maxima;if(i.X=t,this.m_Maxima===null)this.m_Maxima=i,this.m_Maxima.Next=null,this.m_Maxima.Prev=null;else if(t<this.m_Maxima.X)i.Next=this.m_Maxima,i.Prev=null,this.m_Maxima=i;else{for(var e=this.m_Maxima;e.Next!==null&&t>=e.Next.X;)e=e.Next;if(t===e.X)return;i.Next=e.Next,i.Prev=e,e.Next!==null&&(e.Next.Prev=i),e.Next=i}},n.Clipper.prototype.Execute=function(){var t=arguments,i=t.length,e=t[1]instanceof n.PolyTree;if(i===4&&!e){var r=t[0],s=t[1],l=t[2],o=t[3];if(this.m_ExecuteLocked)return!1;this.m_HasOpenPaths&&n.Error("Error: PolyTree struct is needed for open path clipping."),this.m_ExecuteLocked=!0,n.Clear(s),this.m_SubjFillType=l,this.m_ClipFillType=o,this.m_ClipType=r,this.m_UsingPolyTree=!1;try{var u=this.ExecuteInternal();u&&this.BuildResult(s)}finally{this.DisposeAllPolyPts(),this.m_ExecuteLocked=!1}return u}else if(i===4&&e){var r=t[0],f=t[1],l=t[2],o=t[3];if(this.m_ExecuteLocked)return!1;this.m_ExecuteLocked=!0,this.m_SubjFillType=l,this.m_ClipFillType=o,this.m_ClipType=r,this.m_UsingPolyTree=!0;try{var u=this.ExecuteInternal();u&&this.BuildResult2(f)}finally{this.DisposeAllPolyPts(),this.m_ExecuteLocked=!1}return u}else if(i===2&&!e){var r=t[0],s=t[1];return this.Execute(r,s,n.PolyFillType.pftEvenOdd,n.PolyFillType.pftEvenOdd)}else if(i===2&&e){var r=t[0],f=t[1];return this.Execute(r,f,n.PolyFillType.pftEvenOdd,n.PolyFillType.pftEvenOdd)}},n.Clipper.prototype.FixHoleLinkage=function(t){if(!(t.FirstLeft===null||t.IsHole!==t.FirstLeft.IsHole&&t.FirstLeft.Pts!==null)){for(var i=t.FirstLeft;i!==null&&(i.IsHole===t.IsHole||i.Pts===null);)i=i.FirstLeft;t.FirstLeft=i}},n.Clipper.prototype.ExecuteInternal=function(){try{this.Reset(),this.m_SortedEdges=null,this.m_Maxima=null;var t={},i={};if(!this.PopScanbeam(t))return!1;for(this.InsertLocalMinimaIntoAEL(t.v);this.PopScanbeam(i)||this.LocalMinimaPending();){if(this.ProcessHorizontals(),this.m_GhostJoins.length=0,!this.ProcessIntersections(i.v))return!1;this.ProcessEdgesAtTopOfScanbeam(i.v),t.v=i.v,this.InsertLocalMinimaIntoAEL(t.v)}var e,r,s;for(r=0,s=this.m_PolyOuts.length;r<s;r++)e=this.m_PolyOuts[r],!(e.Pts===null||e.IsOpen)&&(e.IsHole^this.ReverseSolution)==this.Area$1(e)>0&&this.ReversePolyPtLinks(e.Pts);for(this.JoinCommonEdges(),r=0,s=this.m_PolyOuts.length;r<s;r++)e=this.m_PolyOuts[r],e.Pts!==null&&(e.IsOpen?this.FixupOutPolyline(e):this.FixupOutPolygon(e));return this.StrictlySimple&&this.DoSimplePolygons(),!0}finally{this.m_Joins.length=0,this.m_GhostJoins.length=0}},n.Clipper.prototype.DisposeAllPolyPts=function(){for(var t=0,i=this.m_PolyOuts.length;t<i;++t)this.DisposeOutRec(t);n.Clear(this.m_PolyOuts)},n.Clipper.prototype.AddJoin=function(t,i,e){var r=new n.Join;r.OutPt1=t,r.OutPt2=i,r.OffPt.X=e.X,r.OffPt.Y=e.Y,n.use_xyz&&(r.OffPt.Z=e.Z),this.m_Joins.push(r)},n.Clipper.prototype.AddGhostJoin=function(t,i){var e=new n.Join;e.OutPt1=t,e.OffPt.X=i.X,e.OffPt.Y=i.Y,n.use_xyz&&(e.OffPt.Z=i.Z),this.m_GhostJoins.push(e)},n.Clipper.prototype.SetZ=function(t,i,e){if(this.ZFillFunction!==null){if(t.Z!==0||this.ZFillFunction===null)return;n.IntPoint.op_Equality(t,i.Bot)?t.Z=i.Bot.Z:n.IntPoint.op_Equality(t,i.Top)?t.Z=i.Top.Z:n.IntPoint.op_Equality(t,e.Bot)?t.Z=e.Bot.Z:n.IntPoint.op_Equality(t,e.Top)?t.Z=e.Top.Z:this.ZFillFunction(i.Bot,i.Top,e.Bot,e.Top,t)}},n.Clipper.prototype.InsertLocalMinimaIntoAEL=function(t){for(var i={},e,r;this.PopLocalMinima(t,i);){e=i.v.LeftBound,r=i.v.RightBound;var s=null;if(e===null?(this.InsertEdgeIntoAEL(r,null),this.SetWindingCount(r),this.IsContributing(r)&&(s=this.AddOutPt(r,r.Bot))):r===null?(this.InsertEdgeIntoAEL(e,null),this.SetWindingCount(e),this.IsContributing(e)&&(s=this.AddOutPt(e,e.Bot)),this.InsertScanbeam(e.Top.Y)):(this.InsertEdgeIntoAEL(e,null),this.InsertEdgeIntoAEL(r,e),this.SetWindingCount(e),r.WindCnt=e.WindCnt,r.WindCnt2=e.WindCnt2,this.IsContributing(e)&&(s=this.AddLocalMinPoly(e,r,e.Bot)),this.InsertScanbeam(e.Top.Y)),r!==null&&(n.ClipperBase.IsHorizontal(r)?(r.NextInLML!==null&&this.InsertScanbeam(r.NextInLML.Top.Y),this.AddEdgeToSEL(r)):this.InsertScanbeam(r.Top.Y)),!(e===null||r===null)){if(s!==null&&n.ClipperBase.IsHorizontal(r)&&this.m_GhostJoins.length>0&&r.WindDelta!==0)for(var l=0,o=this.m_GhostJoins.length;l<o;l++){var u=this.m_GhostJoins[l];this.HorzSegmentsOverlap(u.OutPt1.Pt.X,u.OffPt.X,r.Bot.X,r.Top.X)&&this.AddJoin(u.OutPt1,s,u.OffPt)}if(e.OutIdx>=0&&e.PrevInAEL!==null&&e.PrevInAEL.Curr.X===e.Bot.X&&e.PrevInAEL.OutIdx>=0&&n.ClipperBase.SlopesEqual5(e.PrevInAEL.Curr,e.PrevInAEL.Top,e.Curr,e.Top,this.m_UseFullRange)&&e.WindDelta!==0&&e.PrevInAEL.WindDelta!==0){var f=this.AddOutPt(e.PrevInAEL,e.Bot);this.AddJoin(s,f,e.Top)}if(e.NextInAEL!==r){if(r.OutIdx>=0&&r.PrevInAEL.OutIdx>=0&&n.ClipperBase.SlopesEqual5(r.PrevInAEL.Curr,r.PrevInAEL.Top,r.Curr,r.Top,this.m_UseFullRange)&&r.WindDelta!==0&&r.PrevInAEL.WindDelta!==0){var f=this.AddOutPt(r.PrevInAEL,r.Bot);this.AddJoin(s,f,r.Top)}var h=e.NextInAEL;if(h!==null)for(;h!==r;)this.IntersectEdges(r,h,e.Curr),h=h.NextInAEL}}}},n.Clipper.prototype.InsertEdgeIntoAEL=function(t,i){if(this.m_ActiveEdges===null)t.PrevInAEL=null,t.NextInAEL=null,this.m_ActiveEdges=t;else if(i===null&&this.E2InsertsBeforeE1(this.m_ActiveEdges,t))t.PrevInAEL=null,t.NextInAEL=this.m_ActiveEdges,this.m_ActiveEdges.PrevInAEL=t,this.m_ActiveEdges=t;else{for(i===null&&(i=this.m_ActiveEdges);i.NextInAEL!==null&&!this.E2InsertsBeforeE1(i.NextInAEL,t);)i=i.NextInAEL;t.NextInAEL=i.NextInAEL,i.NextInAEL!==null&&(i.NextInAEL.PrevInAEL=t),t.PrevInAEL=i,i.NextInAEL=t}},n.Clipper.prototype.E2InsertsBeforeE1=function(t,i){return i.Curr.X===t.Curr.X?i.Top.Y>t.Top.Y?i.Top.X<n.Clipper.TopX(t,i.Top.Y):t.Top.X>n.Clipper.TopX(i,t.Top.Y):i.Curr.X<t.Curr.X},n.Clipper.prototype.IsEvenOddFillType=function(t){return t.PolyTyp===n.PolyType.ptSubject?this.m_SubjFillType===n.PolyFillType.pftEvenOdd:this.m_ClipFillType===n.PolyFillType.pftEvenOdd},n.Clipper.prototype.IsEvenOddAltFillType=function(t){return t.PolyTyp===n.PolyType.ptSubject?this.m_ClipFillType===n.PolyFillType.pftEvenOdd:this.m_SubjFillType===n.PolyFillType.pftEvenOdd},n.Clipper.prototype.IsContributing=function(t){var i,e;switch(t.PolyTyp===n.PolyType.ptSubject?(i=this.m_SubjFillType,e=this.m_ClipFillType):(i=this.m_ClipFillType,e=this.m_SubjFillType),i){case n.PolyFillType.pftEvenOdd:if(t.WindDelta===0&&t.WindCnt!==1)return!1;break;case n.PolyFillType.pftNonZero:if(Math.abs(t.WindCnt)!==1)return!1;break;case n.PolyFillType.pftPositive:if(t.WindCnt!==1)return!1;break;default:if(t.WindCnt!==-1)return!1;break}switch(this.m_ClipType){case n.ClipType.ctIntersection:switch(e){case n.PolyFillType.pftEvenOdd:case n.PolyFillType.pftNonZero:return t.WindCnt2!==0;case n.PolyFillType.pftPositive:return t.WindCnt2>0;default:return t.WindCnt2<0}case n.ClipType.ctUnion:switch(e){case n.PolyFillType.pftEvenOdd:case n.PolyFillType.pftNonZero:return t.WindCnt2===0;case n.PolyFillType.pftPositive:return t.WindCnt2<=0;default:return t.WindCnt2>=0}case n.ClipType.ctDifference:if(t.PolyTyp===n.PolyType.ptSubject)switch(e){case n.PolyFillType.pftEvenOdd:case n.PolyFillType.pftNonZero:return t.WindCnt2===0;case n.PolyFillType.pftPositive:return t.WindCnt2<=0;default:return t.WindCnt2>=0}else switch(e){case n.PolyFillType.pftEvenOdd:case n.PolyFillType.pftNonZero:return t.WindCnt2!==0;case n.PolyFillType.pftPositive:return t.WindCnt2>0;default:return t.WindCnt2<0}case n.ClipType.ctXor:if(t.WindDelta===0)switch(e){case n.PolyFillType.pftEvenOdd:case n.PolyFillType.pftNonZero:return t.WindCnt2===0;case n.PolyFillType.pftPositive:return t.WindCnt2<=0;default:return t.WindCnt2>=0}else return!0}return!0},n.Clipper.prototype.SetWindingCount=function(t){for(var i=t.PrevInAEL;i!==null&&(i.PolyTyp!==t.PolyTyp||i.WindDelta===0);)i=i.PrevInAEL;if(i===null){var e=t.PolyTyp===n.PolyType.ptSubject?this.m_SubjFillType:this.m_ClipFillType;t.WindDelta===0?t.WindCnt=e===n.PolyFillType.pftNegative?-1:1:t.WindCnt=t.WindDelta,t.WindCnt2=0,i=this.m_ActiveEdges}else if(t.WindDelta===0&&this.m_ClipType!==n.ClipType.ctUnion)t.WindCnt=1,t.WindCnt2=i.WindCnt2,i=i.NextInAEL;else if(this.IsEvenOddFillType(t)){if(t.WindDelta===0){for(var r=!0,s=i.PrevInAEL;s!==null;)s.PolyTyp===i.PolyTyp&&s.WindDelta!==0&&(r=!r),s=s.PrevInAEL;t.WindCnt=r?0:1}else t.WindCnt=t.WindDelta;t.WindCnt2=i.WindCnt2,i=i.NextInAEL}else i.WindCnt*i.WindDelta<0?Math.abs(i.WindCnt)>1?i.WindDelta*t.WindDelta<0?t.WindCnt=i.WindCnt:t.WindCnt=i.WindCnt+t.WindDelta:t.WindCnt=t.WindDelta===0?1:t.WindDelta:t.WindDelta===0?t.WindCnt=i.WindCnt<0?i.WindCnt-1:i.WindCnt+1:i.WindDelta*t.WindDelta<0?t.WindCnt=i.WindCnt:t.WindCnt=i.WindCnt+t.WindDelta,t.WindCnt2=i.WindCnt2,i=i.NextInAEL;if(this.IsEvenOddAltFillType(t))for(;i!==t;)i.WindDelta!==0&&(t.WindCnt2=t.WindCnt2===0?1:0),i=i.NextInAEL;else for(;i!==t;)t.WindCnt2+=i.WindDelta,i=i.NextInAEL},n.Clipper.prototype.AddEdgeToSEL=function(t){this.m_SortedEdges===null?(this.m_SortedEdges=t,t.PrevInSEL=null,t.NextInSEL=null):(t.NextInSEL=this.m_SortedEdges,t.PrevInSEL=null,this.m_SortedEdges.PrevInSEL=t,this.m_SortedEdges=t)},n.Clipper.prototype.PopEdgeFromSEL=function(t){if(t.v=this.m_SortedEdges,t.v===null)return!1;var i=t.v;return this.m_SortedEdges=t.v.NextInSEL,this.m_SortedEdges!==null&&(this.m_SortedEdges.PrevInSEL=null),i.NextInSEL=null,i.PrevInSEL=null,!0},n.Clipper.prototype.CopyAELToSEL=function(){var t=this.m_ActiveEdges;for(this.m_SortedEdges=t;t!==null;)t.PrevInSEL=t.PrevInAEL,t.NextInSEL=t.NextInAEL,t=t.NextInAEL},n.Clipper.prototype.SwapPositionsInSEL=function(t,i){if(!(t.NextInSEL===null&&t.PrevInSEL===null)&&!(i.NextInSEL===null&&i.PrevInSEL===null)){if(t.NextInSEL===i){var e=i.NextInSEL;e!==null&&(e.PrevInSEL=t);var r=t.PrevInSEL;r!==null&&(r.NextInSEL=i),i.PrevInSEL=r,i.NextInSEL=t,t.PrevInSEL=i,t.NextInSEL=e}else if(i.NextInSEL===t){var e=t.NextInSEL;e!==null&&(e.PrevInSEL=i);var r=i.PrevInSEL;r!==null&&(r.NextInSEL=t),t.PrevInSEL=r,t.NextInSEL=i,i.PrevInSEL=t,i.NextInSEL=e}else{var e=t.NextInSEL,r=t.PrevInSEL;t.NextInSEL=i.NextInSEL,t.NextInSEL!==null&&(t.NextInSEL.PrevInSEL=t),t.PrevInSEL=i.PrevInSEL,t.PrevInSEL!==null&&(t.PrevInSEL.NextInSEL=t),i.NextInSEL=e,i.NextInSEL!==null&&(i.NextInSEL.PrevInSEL=i),i.PrevInSEL=r,i.PrevInSEL!==null&&(i.PrevInSEL.NextInSEL=i)}t.PrevInSEL===null?this.m_SortedEdges=t:i.PrevInSEL===null&&(this.m_SortedEdges=i)}},n.Clipper.prototype.AddLocalMaxPoly=function(t,i,e){this.AddOutPt(t,e),i.WindDelta===0&&this.AddOutPt(i,e),t.OutIdx===i.OutIdx?(t.OutIdx=-1,i.OutIdx=-1):t.OutIdx<i.OutIdx?this.AppendPolygon(t,i):this.AppendPolygon(i,t)},n.Clipper.prototype.AddLocalMinPoly=function(t,i,e){var r,s,l;if(n.ClipperBase.IsHorizontal(i)||t.Dx>i.Dx?(r=this.AddOutPt(t,e),i.OutIdx=t.OutIdx,t.Side=n.EdgeSide.esLeft,i.Side=n.EdgeSide.esRight,s=t,s.PrevInAEL===i?l=i.PrevInAEL:l=s.PrevInAEL):(r=this.AddOutPt(i,e),t.OutIdx=i.OutIdx,t.Side=n.EdgeSide.esRight,i.Side=n.EdgeSide.esLeft,s=i,s.PrevInAEL===t?l=t.PrevInAEL:l=s.PrevInAEL),l!==null&&l.OutIdx>=0&&l.Top.Y<e.Y&&s.Top.Y<e.Y){var o=n.Clipper.TopX(l,e.Y),u=n.Clipper.TopX(s,e.Y);if(o===u&&s.WindDelta!==0&&l.WindDelta!==0&&n.ClipperBase.SlopesEqual5(new n.IntPoint2(o,e.Y),l.Top,new n.IntPoint2(u,e.Y),s.Top,this.m_UseFullRange)){var f=this.AddOutPt(l,e);this.AddJoin(r,f,s.Top)}}return r},n.Clipper.prototype.AddOutPt=function(t,i){if(t.OutIdx<0){var e=this.CreateOutRec();e.IsOpen=t.WindDelta===0;var r=new n.OutPt;return e.Pts=r,r.Idx=e.Idx,r.Pt.X=i.X,r.Pt.Y=i.Y,n.use_xyz&&(r.Pt.Z=i.Z),r.Next=r,r.Prev=r,e.IsOpen||this.SetHoleState(t,e),t.OutIdx=e.Idx,r}else{var e=this.m_PolyOuts[t.OutIdx],s=e.Pts,l=t.Side===n.EdgeSide.esLeft;if(l&&n.IntPoint.op_Equality(i,s.Pt))return s;if(!l&&n.IntPoint.op_Equality(i,s.Prev.Pt))return s.Prev;var r=new n.OutPt;return r.Idx=e.Idx,r.Pt.X=i.X,r.Pt.Y=i.Y,n.use_xyz&&(r.Pt.Z=i.Z),r.Next=s,r.Prev=s.Prev,r.Prev.Next=r,s.Prev=r,l&&(e.Pts=r),r}},n.Clipper.prototype.GetLastOutPt=function(t){var i=this.m_PolyOuts[t.OutIdx];return t.Side===n.EdgeSide.esLeft?i.Pts:i.Pts.Prev},n.Clipper.prototype.SwapPoints=function(t,i){var e=new n.IntPoint1(t.Value);t.Value.X=i.Value.X,t.Value.Y=i.Value.Y,n.use_xyz&&(t.Value.Z=i.Value.Z),i.Value.X=e.X,i.Value.Y=e.Y,n.use_xyz&&(i.Value.Z=e.Z)},n.Clipper.prototype.HorzSegmentsOverlap=function(t,i,e,r){var s;return t>i&&(s=t,t=i,i=s),e>r&&(s=e,e=r,r=s),t<r&&e<i},n.Clipper.prototype.SetHoleState=function(t,i){for(var e=t.PrevInAEL,r=null;e!==null;)e.OutIdx>=0&&e.WindDelta!==0&&(r===null?r=e:r.OutIdx===e.OutIdx&&(r=null)),e=e.PrevInAEL;r===null?(i.FirstLeft=null,i.IsHole=!1):(i.FirstLeft=this.m_PolyOuts[r.OutIdx],i.IsHole=!i.FirstLeft.IsHole)},n.Clipper.prototype.GetDx=function(t,i){return t.Y===i.Y?n.ClipperBase.horizontal:(i.X-t.X)/(i.Y-t.Y)},n.Clipper.prototype.FirstIsBottomPt=function(t,i){for(var e=t.Prev;n.IntPoint.op_Equality(e.Pt,t.Pt)&&e!==t;)e=e.Prev;var r=Math.abs(this.GetDx(t.Pt,e.Pt));for(e=t.Next;n.IntPoint.op_Equality(e.Pt,t.Pt)&&e!==t;)e=e.Next;var s=Math.abs(this.GetDx(t.Pt,e.Pt));for(e=i.Prev;n.IntPoint.op_Equality(e.Pt,i.Pt)&&e!==i;)e=e.Prev;var l=Math.abs(this.GetDx(i.Pt,e.Pt));for(e=i.Next;n.IntPoint.op_Equality(e.Pt,i.Pt)&&e!==i;)e=e.Next;var o=Math.abs(this.GetDx(i.Pt,e.Pt));return Math.max(r,s)===Math.max(l,o)&&Math.min(r,s)===Math.min(l,o)?this.Area(t)>0:r>=l&&r>=o||s>=l&&s>=o},n.Clipper.prototype.GetBottomPt=function(t){for(var i=null,e=t.Next;e!==t;)e.Pt.Y>t.Pt.Y?(t=e,i=null):e.Pt.Y===t.Pt.Y&&e.Pt.X<=t.Pt.X&&(e.Pt.X<t.Pt.X?(i=null,t=e):e.Next!==t&&e.Prev!==t&&(i=e)),e=e.Next;if(i!==null)for(;i!==e;)for(this.FirstIsBottomPt(e,i)||(t=i),i=i.Next;n.IntPoint.op_Inequality(i.Pt,t.Pt);)i=i.Next;return t},n.Clipper.prototype.GetLowermostRec=function(t,i){t.BottomPt===null&&(t.BottomPt=this.GetBottomPt(t.Pts)),i.BottomPt===null&&(i.BottomPt=this.GetBottomPt(i.Pts));var e=t.BottomPt,r=i.BottomPt;return e.Pt.Y>r.Pt.Y?t:e.Pt.Y<r.Pt.Y?i:e.Pt.X<r.Pt.X?t:e.Pt.X>r.Pt.X||e.Next===e?i:r.Next===r||this.FirstIsBottomPt(e,r)?t:i},n.Clipper.prototype.OutRec1RightOfOutRec2=function(t,i){do if(t=t.FirstLeft,t===i)return!0;while(t!==null);return!1},n.Clipper.prototype.GetOutRec=function(t){for(var i=this.m_PolyOuts[t];i!==this.m_PolyOuts[i.Idx];)i=this.m_PolyOuts[i.Idx];return i},n.Clipper.prototype.AppendPolygon=function(t,i){var e=this.m_PolyOuts[t.OutIdx],r=this.m_PolyOuts[i.OutIdx],s;this.OutRec1RightOfOutRec2(e,r)?s=r:this.OutRec1RightOfOutRec2(r,e)?s=e:s=this.GetLowermostRec(e,r);var l=e.Pts,o=l.Prev,u=r.Pts,f=u.Prev;t.Side===n.EdgeSide.esLeft?i.Side===n.EdgeSide.esLeft?(this.ReversePolyPtLinks(u),u.Next=l,l.Prev=u,o.Next=f,f.Prev=o,e.Pts=f):(f.Next=l,l.Prev=f,u.Prev=o,o.Next=u,e.Pts=u):i.Side===n.EdgeSide.esRight?(this.ReversePolyPtLinks(u),o.Next=f,f.Prev=o,u.Next=l,l.Prev=u):(o.Next=u,u.Prev=o,l.Prev=f,f.Next=l),e.BottomPt=null,s===r&&(r.FirstLeft!==e&&(e.FirstLeft=r.FirstLeft),e.IsHole=r.IsHole),r.Pts=null,r.BottomPt=null,r.FirstLeft=e;var h=t.OutIdx,P=i.OutIdx;t.OutIdx=-1,i.OutIdx=-1;for(var a=this.m_ActiveEdges;a!==null;){if(a.OutIdx===P){a.OutIdx=h,a.Side=t.Side;break}a=a.NextInAEL}r.Idx=e.Idx},n.Clipper.prototype.ReversePolyPtLinks=function(t){if(t!==null){var i,e;i=t;do e=i.Next,i.Next=i.Prev,i.Prev=e,i=e;while(i!==t)}},n.Clipper.SwapSides=function(t,i){var e=t.Side;t.Side=i.Side,i.Side=e},n.Clipper.SwapPolyIndexes=function(t,i){var e=t.OutIdx;t.OutIdx=i.OutIdx,i.OutIdx=e},n.Clipper.prototype.IntersectEdges=function(t,i,e){var r=t.OutIdx>=0,s=i.OutIdx>=0;if(n.use_xyz&&this.SetZ(e,t,i),n.use_lines&&(t.WindDelta===0||i.WindDelta===0)){if(t.WindDelta===0&&i.WindDelta===0)return;t.PolyTyp===i.PolyTyp&&t.WindDelta!==i.WindDelta&&this.m_ClipType===n.ClipType.ctUnion?t.WindDelta===0?s&&(this.AddOutPt(t,e),r&&(t.OutIdx=-1)):r&&(this.AddOutPt(i,e),s&&(i.OutIdx=-1)):t.PolyTyp!==i.PolyTyp&&(t.WindDelta===0&&Math.abs(i.WindCnt)===1&&(this.m_ClipType!==n.ClipType.ctUnion||i.WindCnt2===0)?(this.AddOutPt(t,e),r&&(t.OutIdx=-1)):i.WindDelta===0&&Math.abs(t.WindCnt)===1&&(this.m_ClipType!==n.ClipType.ctUnion||t.WindCnt2===0)&&(this.AddOutPt(i,e),s&&(i.OutIdx=-1)));return}if(t.PolyTyp===i.PolyTyp)if(this.IsEvenOddFillType(t)){var l=t.WindCnt;t.WindCnt=i.WindCnt,i.WindCnt=l}else t.WindCnt+i.WindDelta===0?t.WindCnt=-t.WindCnt:t.WindCnt+=i.WindDelta,i.WindCnt-t.WindDelta===0?i.WindCnt=-i.WindCnt:i.WindCnt-=t.WindDelta;else this.IsEvenOddFillType(i)?t.WindCnt2=t.WindCnt2===0?1:0:t.WindCnt2+=i.WindDelta,this.IsEvenOddFillType(t)?i.WindCnt2=i.WindCnt2===0?1:0:i.WindCnt2-=t.WindDelta;var o,u,f,h;t.PolyTyp===n.PolyType.ptSubject?(o=this.m_SubjFillType,f=this.m_ClipFillType):(o=this.m_ClipFillType,f=this.m_SubjFillType),i.PolyTyp===n.PolyType.ptSubject?(u=this.m_SubjFillType,h=this.m_ClipFillType):(u=this.m_ClipFillType,h=this.m_SubjFillType);var P,a;switch(o){case n.PolyFillType.pftPositive:P=t.WindCnt;break;case n.PolyFillType.pftNegative:P=-t.WindCnt;break;default:P=Math.abs(t.WindCnt);break}switch(u){case n.PolyFillType.pftPositive:a=i.WindCnt;break;case n.PolyFillType.pftNegative:a=-i.WindCnt;break;default:a=Math.abs(i.WindCnt);break}if(r&&s)P!==0&&P!==1||a!==0&&a!==1||t.PolyTyp!==i.PolyTyp&&this.m_ClipType!==n.ClipType.ctXor?this.AddLocalMaxPoly(t,i,e):(this.AddOutPt(t,e),this.AddOutPt(i,e),n.Clipper.SwapSides(t,i),n.Clipper.SwapPolyIndexes(t,i));else if(r)(a===0||a===1)&&(this.AddOutPt(t,e),n.Clipper.SwapSides(t,i),n.Clipper.SwapPolyIndexes(t,i));else if(s)(P===0||P===1)&&(this.AddOutPt(i,e),n.Clipper.SwapSides(t,i),n.Clipper.SwapPolyIndexes(t,i));else if((P===0||P===1)&&(a===0||a===1)){var m,y;switch(f){case n.PolyFillType.pftPositive:m=t.WindCnt2;break;case n.PolyFillType.pftNegative:m=-t.WindCnt2;break;default:m=Math.abs(t.WindCnt2);break}switch(h){case n.PolyFillType.pftPositive:y=i.WindCnt2;break;case n.PolyFillType.pftNegative:y=-i.WindCnt2;break;default:y=Math.abs(i.WindCnt2);break}if(t.PolyTyp!==i.PolyTyp)this.AddLocalMinPoly(t,i,e);else if(P===1&&a===1)switch(this.m_ClipType){case n.ClipType.ctIntersection:m>0&&y>0&&this.AddLocalMinPoly(t,i,e);break;case n.ClipType.ctUnion:m<=0&&y<=0&&this.AddLocalMinPoly(t,i,e);break;case n.ClipType.ctDifference:(t.PolyTyp===n.PolyType.ptClip&&m>0&&y>0||t.PolyTyp===n.PolyType.ptSubject&&m<=0&&y<=0)&&this.AddLocalMinPoly(t,i,e);break;case n.ClipType.ctXor:this.AddLocalMinPoly(t,i,e);break}else n.Clipper.SwapSides(t,i)}},n.Clipper.prototype.DeleteFromSEL=function(t){var i=t.PrevInSEL,e=t.NextInSEL;i===null&&e===null&&t!==this.m_SortedEdges||(i!==null?i.NextInSEL=e:this.m_SortedEdges=e,e!==null&&(e.PrevInSEL=i),t.NextInSEL=null,t.PrevInSEL=null)},n.Clipper.prototype.ProcessHorizontals=function(){for(var t={};this.PopEdgeFromSEL(t);)this.ProcessHorizontal(t.v)},n.Clipper.prototype.GetHorzDirection=function(t,i){t.Bot.X<t.Top.X?(i.Left=t.Bot.X,i.Right=t.Top.X,i.Dir=n.Direction.dLeftToRight):(i.Left=t.Top.X,i.Right=t.Bot.X,i.Dir=n.Direction.dRightToLeft)},n.Clipper.prototype.ProcessHorizontal=function(t){var i={Dir:null,Left:null,Right:null};this.GetHorzDirection(t,i);for(var e=i.Dir,r=i.Left,s=i.Right,l=t.WindDelta===0,o=t,u=null;o.NextInLML!==null&&n.ClipperBase.IsHorizontal(o.NextInLML);)o=o.NextInLML;o.NextInLML===null&&(u=this.GetMaximaPair(o));var f=this.m_Maxima;if(f!==null)if(e===n.Direction.dLeftToRight){for(;f!==null&&f.X<=t.Bot.X;)f=f.Next;f!==null&&f.X>=o.Top.X&&(f=null)}else{for(;f.Next!==null&&f.Next.X<t.Bot.X;)f=f.Next;f.X<=o.Top.X&&(f=null)}for(var h=null;;){for(var P=t===o,a=this.GetNextInAEL(t,e);a!==null;){if(f!==null)if(e===n.Direction.dLeftToRight)for(;f!==null&&f.X<a.Curr.X;)t.OutIdx>=0&&!l&&this.AddOutPt(t,new n.IntPoint2(f.X,t.Bot.Y)),f=f.Next;else for(;f!==null&&f.X>a.Curr.X;)t.OutIdx>=0&&!l&&this.AddOutPt(t,new n.IntPoint2(f.X,t.Bot.Y)),f=f.Prev;if(e===n.Direction.dLeftToRight&&a.Curr.X>s||e===n.Direction.dRightToLeft&&a.Curr.X<r||a.Curr.X===t.Top.X&&t.NextInLML!==null&&a.Dx<t.NextInLML.Dx)break;if(t.OutIdx>=0&&!l){n.use_xyz&&(e===n.Direction.dLeftToRight?this.SetZ(a.Curr,t,a):this.SetZ(a.Curr,a,t)),h=this.AddOutPt(t,a.Curr);for(var m=this.m_SortedEdges;m!==null;){if(m.OutIdx>=0&&this.HorzSegmentsOverlap(t.Bot.X,t.Top.X,m.Bot.X,m.Top.X)){var y=this.GetLastOutPt(m);this.AddJoin(y,h,m.Top)}m=m.NextInSEL}this.AddGhostJoin(h,t.Bot)}if(a===u&&P){t.OutIdx>=0&&this.AddLocalMaxPoly(t,u,t.Top),this.DeleteFromAEL(t),this.DeleteFromAEL(u);return}if(e===n.Direction.dLeftToRight){var C=new n.IntPoint2(a.Curr.X,t.Curr.Y);this.IntersectEdges(t,a,C)}else{var C=new n.IntPoint2(a.Curr.X,t.Curr.Y);this.IntersectEdges(a,t,C)}var c=this.GetNextInAEL(a,e);this.SwapPositionsInAEL(t,a),a=c}if(t.NextInLML===null||!n.ClipperBase.IsHorizontal(t.NextInLML))break;t=this.UpdateEdgeIntoAEL(t),t.OutIdx>=0&&this.AddOutPt(t,t.Bot),i={Dir:e,Left:r,Right:s},this.GetHorzDirection(t,i),e=i.Dir,r=i.Left,s=i.Right}if(t.OutIdx>=0&&h===null){h=this.GetLastOutPt(t);for(var m=this.m_SortedEdges;m!==null;){if(m.OutIdx>=0&&this.HorzSegmentsOverlap(t.Bot.X,t.Top.X,m.Bot.X,m.Top.X)){var y=this.GetLastOutPt(m);this.AddJoin(y,h,m.Top)}m=m.NextInSEL}this.AddGhostJoin(h,t.Top)}if(t.NextInLML!==null)if(t.OutIdx>=0){if(h=this.AddOutPt(t,t.Top),t=this.UpdateEdgeIntoAEL(t),t.WindDelta===0)return;var _=t.PrevInAEL,c=t.NextInAEL;if(_!==null&&_.Curr.X===t.Bot.X&&_.Curr.Y===t.Bot.Y&&_.WindDelta===0&&_.OutIdx>=0&&_.Curr.Y>_.Top.Y&&n.ClipperBase.SlopesEqual3(t,_,this.m_UseFullRange)){var y=this.AddOutPt(_,t.Bot);this.AddJoin(h,y,t.Top)}else if(c!==null&&c.Curr.X===t.Bot.X&&c.Curr.Y===t.Bot.Y&&c.WindDelta!==0&&c.OutIdx>=0&&c.Curr.Y>c.Top.Y&&n.ClipperBase.SlopesEqual3(t,c,this.m_UseFullRange)){var y=this.AddOutPt(c,t.Bot);this.AddJoin(h,y,t.Top)}}else t=this.UpdateEdgeIntoAEL(t);else t.OutIdx>=0&&this.AddOutPt(t,t.Top),this.DeleteFromAEL(t)},n.Clipper.prototype.GetNextInAEL=function(t,i){return i===n.Direction.dLeftToRight?t.NextInAEL:t.PrevInAEL},n.Clipper.prototype.IsMinima=function(t){return t!==null&&t.Prev.NextInLML!==t&&t.Next.NextInLML!==t},n.Clipper.prototype.IsMaxima=function(t,i){return t!==null&&t.Top.Y===i&&t.NextInLML===null},n.Clipper.prototype.IsIntermediate=function(t,i){return t.Top.Y===i&&t.NextInLML!==null},n.Clipper.prototype.GetMaximaPair=function(t){return n.IntPoint.op_Equality(t.Next.Top,t.Top)&&t.Next.NextInLML===null?t.Next:n.IntPoint.op_Equality(t.Prev.Top,t.Top)&&t.Prev.NextInLML===null?t.Prev:null},n.Clipper.prototype.GetMaximaPairEx=function(t){var i=this.GetMaximaPair(t);return i===null||i.OutIdx===n.ClipperBase.Skip||i.NextInAEL===i.PrevInAEL&&!n.ClipperBase.IsHorizontal(i)?null:i},n.Clipper.prototype.ProcessIntersections=function(t){if(this.m_ActiveEdges===null)return!0;try{if(this.BuildIntersectList(t),this.m_IntersectList.length===0)return!0;if(this.m_IntersectList.length===1||this.FixupIntersectionOrder())this.ProcessIntersectList();else return!1}catch{this.m_SortedEdges=null,this.m_IntersectList.length=0,n.Error("ProcessIntersections error")}return this.m_SortedEdges=null,!0},n.Clipper.prototype.BuildIntersectList=function(t){if(this.m_ActiveEdges!==null){var i=this.m_ActiveEdges;for(this.m_SortedEdges=i;i!==null;)i.PrevInSEL=i.PrevInAEL,i.NextInSEL=i.NextInAEL,i.Curr.X=n.Clipper.TopX(i,t),i=i.NextInAEL;for(var e=!0;e&&this.m_SortedEdges!==null;){for(e=!1,i=this.m_SortedEdges;i.NextInSEL!==null;){var r=i.NextInSEL,s=new n.IntPoint0;if(i.Curr.X>r.Curr.X){this.IntersectPoint(i,r,s),s.Y<t&&(s=new n.IntPoint2(n.Clipper.TopX(i,t),t));var l=new n.IntersectNode;l.Edge1=i,l.Edge2=r,l.Pt.X=s.X,l.Pt.Y=s.Y,n.use_xyz&&(l.Pt.Z=s.Z),this.m_IntersectList.push(l),this.SwapPositionsInSEL(i,r),e=!0}else i=r}if(i.PrevInSEL!==null)i.PrevInSEL.NextInSEL=null;else break}this.m_SortedEdges=null}},n.Clipper.prototype.EdgesAdjacent=function(t){return t.Edge1.NextInSEL===t.Edge2||t.Edge1.PrevInSEL===t.Edge2},n.Clipper.IntersectNodeSort=function(t,i){return i.Pt.Y-t.Pt.Y},n.Clipper.prototype.FixupIntersectionOrder=function(){this.m_IntersectList.sort(this.m_IntersectNodeComparer),this.CopyAELToSEL();for(var t=this.m_IntersectList.length,i=0;i<t;i++){if(!this.EdgesAdjacent(this.m_IntersectList[i])){for(var e=i+1;e<t&&!this.EdgesAdjacent(this.m_IntersectList[e]);)e++;if(e===t)return!1;var r=this.m_IntersectList[i];this.m_IntersectList[i]=this.m_IntersectList[e],this.m_IntersectList[e]=r}this.SwapPositionsInSEL(this.m_IntersectList[i].Edge1,this.m_IntersectList[i].Edge2)}return!0},n.Clipper.prototype.ProcessIntersectList=function(){for(var t=0,i=this.m_IntersectList.length;t<i;t++){var e=this.m_IntersectList[t];this.IntersectEdges(e.Edge1,e.Edge2,e.Pt),this.SwapPositionsInAEL(e.Edge1,e.Edge2)}this.m_IntersectList.length=0};var gi=function(t){return t<0?Math.ceil(t-.5):Math.round(t)},Wi=function(t){return t<0?Math.ceil(t-.5):Math.floor(t+.5)},Ri=function(t){return t<0?-Math.round(Math.abs(t)):Math.round(t)},Zi=function(t){return t<0?(t-=.5,t<-2147483648?Math.ceil(t):t|0):(t+=.5,t>2147483647?Math.floor(t):t|0)};d.msie?n.Clipper.Round=gi:d.chromium?n.Clipper.Round=Ri:d.safari?n.Clipper.Round=Zi:n.Clipper.Round=Wi,n.Clipper.TopX=function(t,i){return i===t.Top.Y?t.Top.X:t.Bot.X+n.Clipper.Round(t.Dx*(i-t.Bot.Y))},n.Clipper.prototype.IntersectPoint=function(t,i,e){e.X=0,e.Y=0;var r,s;if(t.Dx===i.Dx){e.Y=t.Curr.Y,e.X=n.Clipper.TopX(t,e.Y);return}if(t.Delta.X===0)e.X=t.Bot.X,n.ClipperBase.IsHorizontal(i)?e.Y=i.Bot.Y:(s=i.Bot.Y-i.Bot.X/i.Dx,e.Y=n.Clipper.Round(e.X/i.Dx+s));else if(i.Delta.X===0)e.X=i.Bot.X,n.ClipperBase.IsHorizontal(t)?e.Y=t.Bot.Y:(r=t.Bot.Y-t.Bot.X/t.Dx,e.Y=n.Clipper.Round(e.X/t.Dx+r));else{r=t.Bot.X-t.Bot.Y*t.Dx,s=i.Bot.X-i.Bot.Y*i.Dx;var l=(s-r)/(t.Dx-i.Dx);e.Y=n.Clipper.Round(l),Math.abs(t.Dx)<Math.abs(i.Dx)?e.X=n.Clipper.Round(t.Dx*l+r):e.X=n.Clipper.Round(i.Dx*l+s)}if(e.Y<t.Top.Y||e.Y<i.Top.Y){if(t.Top.Y>i.Top.Y)return e.Y=t.Top.Y,e.X=n.Clipper.TopX(i,t.Top.Y),e.X<t.Top.X;e.Y=i.Top.Y,Math.abs(t.Dx)<Math.abs(i.Dx)?e.X=n.Clipper.TopX(t,e.Y):e.X=n.Clipper.TopX(i,e.Y)}e.Y>t.Curr.Y&&(e.Y=t.Curr.Y,Math.abs(t.Dx)>Math.abs(i.Dx)?e.X=n.Clipper.TopX(i,e.Y):e.X=n.Clipper.TopX(t,e.Y))},n.Clipper.prototype.ProcessEdgesAtTopOfScanbeam=function(t){for(var i=this.m_ActiveEdges;i!==null;){var e=this.IsMaxima(i,t);if(e){var r=this.GetMaximaPairEx(i);e=r===null||!n.ClipperBase.IsHorizontal(r)}if(e){this.StrictlySimple&&this.InsertMaxima(i.Top.X);var s=i.PrevInAEL;this.DoMaxima(i),s===null?i=this.m_ActiveEdges:i=s.NextInAEL}else{if(this.IsIntermediate(i,t)&&n.ClipperBase.IsHorizontal(i.NextInLML)?(i=this.UpdateEdgeIntoAEL(i),i.OutIdx>=0&&this.AddOutPt(i,i.Bot),this.AddEdgeToSEL(i)):(i.Curr.X=n.Clipper.TopX(i,t),i.Curr.Y=t),n.use_xyz&&(i.Top.Y===t?i.Curr.Z=i.Top.Z:i.Bot.Y===t?i.Curr.Z=i.Bot.Z:i.Curr.Z=0),this.StrictlySimple){var s=i.PrevInAEL;if(i.OutIdx>=0&&i.WindDelta!==0&&s!==null&&s.OutIdx>=0&&s.Curr.X===i.Curr.X&&s.WindDelta!==0){var l=new n.IntPoint1(i.Curr);n.use_xyz&&this.SetZ(l,s,i);var o=this.AddOutPt(s,l),u=this.AddOutPt(i,l);this.AddJoin(o,u,l)}}i=i.NextInAEL}}for(this.ProcessHorizontals(),this.m_Maxima=null,i=this.m_ActiveEdges;i!==null;){if(this.IsIntermediate(i,t)){var o=null;i.OutIdx>=0&&(o=this.AddOutPt(i,i.Top)),i=this.UpdateEdgeIntoAEL(i);var s=i.PrevInAEL,f=i.NextInAEL;if(s!==null&&s.Curr.X===i.Bot.X&&s.Curr.Y===i.Bot.Y&&o!==null&&s.OutIdx>=0&&s.Curr.Y===s.Top.Y&&n.ClipperBase.SlopesEqual5(i.Curr,i.Top,s.Curr,s.Top,this.m_UseFullRange)&&i.WindDelta!==0&&s.WindDelta!==0){var u=this.AddOutPt(ePrev2,i.Bot);this.AddJoin(o,u,i.Top)}else if(f!==null&&f.Curr.X===i.Bot.X&&f.Curr.Y===i.Bot.Y&&o!==null&&f.OutIdx>=0&&f.Curr.Y===f.Top.Y&&n.ClipperBase.SlopesEqual5(i.Curr,i.Top,f.Curr,f.Top,this.m_UseFullRange)&&i.WindDelta!==0&&f.WindDelta!==0){var u=this.AddOutPt(f,i.Bot);this.AddJoin(o,u,i.Top)}}i=i.NextInAEL}},n.Clipper.prototype.DoMaxima=function(t){var i=this.GetMaximaPairEx(t);if(i===null){t.OutIdx>=0&&this.AddOutPt(t,t.Top),this.DeleteFromAEL(t);return}for(var e=t.NextInAEL;e!==null&&e!==i;)this.IntersectEdges(t,e,t.Top),this.SwapPositionsInAEL(t,e),e=t.NextInAEL;t.OutIdx===-1&&i.OutIdx===-1?(this.DeleteFromAEL(t),this.DeleteFromAEL(i)):t.OutIdx>=0&&i.OutIdx>=0?(t.OutIdx>=0&&this.AddLocalMaxPoly(t,i,t.Top),this.DeleteFromAEL(t),this.DeleteFromAEL(i)):n.use_lines&&t.WindDelta===0?(t.OutIdx>=0&&(this.AddOutPt(t,t.Top),t.OutIdx=n.ClipperBase.Unassigned),this.DeleteFromAEL(t),i.OutIdx>=0&&(this.AddOutPt(i,t.Top),i.OutIdx=n.ClipperBase.Unassigned),this.DeleteFromAEL(i)):n.Error("DoMaxima error")},n.Clipper.ReversePaths=function(t){for(var i=0,e=t.length;i<e;i++)t[i].reverse()},n.Clipper.Orientation=function(t){return n.Clipper.Area(t)>=0},n.Clipper.prototype.PointCount=function(t){if(t===null)return 0;var i=0,e=t;do i++,e=e.Next;while(e!==t);return i},n.Clipper.prototype.BuildResult=function(t){n.Clear(t);for(var i=0,e=this.m_PolyOuts.length;i<e;i++){var r=this.m_PolyOuts[i];if(r.Pts!==null){var s=r.Pts.Prev,l=this.PointCount(s);if(!(l<2)){for(var o=new Array(l),u=0;u<l;u++)o[u]=s.Pt,s=s.Prev;t.push(o)}}}},n.Clipper.prototype.BuildResult2=function(t){t.Clear();for(var i=0,e=this.m_PolyOuts.length;i<e;i++){var r=this.m_PolyOuts[i],s=this.PointCount(r.Pts);if(!(r.IsOpen&&s<2||!r.IsOpen&&s<3)){this.FixHoleLinkage(r);var l=new n.PolyNode;t.m_AllPolys.push(l),r.PolyNode=l,l.m_polygon.length=s;for(var o=r.Pts.Prev,u=0;u<s;u++)l.m_polygon[u]=o.Pt,o=o.Prev}}for(var i=0,e=this.m_PolyOuts.length;i<e;i++){var r=this.m_PolyOuts[i];r.PolyNode!==null&&(r.IsOpen?(r.PolyNode.IsOpen=!0,t.AddChild(r.PolyNode)):r.FirstLeft!==null&&r.FirstLeft.PolyNode!==null?r.FirstLeft.PolyNode.AddChild(r.PolyNode):t.AddChild(r.PolyNode))}},n.Clipper.prototype.FixupOutPolyline=function(t){for(var i=t.Pts,e=i.Prev;i!==e;)if(i=i.Next,n.IntPoint.op_Equality(i.Pt,i.Prev.Pt)){i===e&&(e=i.Prev);var r=i.Prev;r.Next=i.Next,i.Next.Prev=r,i=r}i===i.Prev&&(t.Pts=null)},n.Clipper.prototype.FixupOutPolygon=function(t){var i=null;t.BottomPt=null;for(var e=t.Pts,r=this.PreserveCollinear||this.StrictlySimple;;){if(e.Prev===e||e.Prev===e.Next){t.Pts=null;return}if(n.IntPoint.op_Equality(e.Pt,e.Next.Pt)||n.IntPoint.op_Equality(e.Pt,e.Prev.Pt)||n.ClipperBase.SlopesEqual4(e.Prev.Pt,e.Pt,e.Next.Pt,this.m_UseFullRange)&&(!r||!this.Pt2IsBetweenPt1AndPt3(e.Prev.Pt,e.Pt,e.Next.Pt)))i=null,e.Prev.Next=e.Next,e.Next.Prev=e.Prev,e=e.Prev;else{if(e===i)break;i===null&&(i=e),e=e.Next}}t.Pts=e},n.Clipper.prototype.DupOutPt=function(t,i){var e=new n.OutPt;return e.Pt.X=t.Pt.X,e.Pt.Y=t.Pt.Y,n.use_xyz&&(e.Pt.Z=t.Pt.Z),e.Idx=t.Idx,i?(e.Next=t.Next,e.Prev=t,t.Next.Prev=e,t.Next=e):(e.Prev=t.Prev,e.Next=t,t.Prev.Next=e,t.Prev=e),e},n.Clipper.prototype.GetOverlap=function(t,i,e,r,s){return t<i?e<r?(s.Left=Math.max(t,e),s.Right=Math.min(i,r)):(s.Left=Math.max(t,r),s.Right=Math.min(i,e)):e<r?(s.Left=Math.max(i,e),s.Right=Math.min(t,r)):(s.Left=Math.max(i,r),s.Right=Math.min(t,e)),s.Left<s.Right},n.Clipper.prototype.JoinHorz=function(t,i,e,r,s,l){var o=t.Pt.X>i.Pt.X?n.Direction.dRightToLeft:n.Direction.dLeftToRight,u=e.Pt.X>r.Pt.X?n.Direction.dRightToLeft:n.Direction.dLeftToRight;if(o===u)return!1;if(o===n.Direction.dLeftToRight){for(;t.Next.Pt.X<=s.X&&t.Next.Pt.X>=t.Pt.X&&t.Next.Pt.Y===s.Y;)t=t.Next;l&&t.Pt.X!==s.X&&(t=t.Next),i=this.DupOutPt(t,!l),n.IntPoint.op_Inequality(i.Pt,s)&&(t=i,t.Pt.X=s.X,t.Pt.Y=s.Y,n.use_xyz&&(t.Pt.Z=s.Z),i=this.DupOutPt(t,!l))}else{for(;t.Next.Pt.X>=s.X&&t.Next.Pt.X<=t.Pt.X&&t.Next.Pt.Y===s.Y;)t=t.Next;!l&&t.Pt.X!==s.X&&(t=t.Next),i=this.DupOutPt(t,l),n.IntPoint.op_Inequality(i.Pt,s)&&(t=i,t.Pt.X=s.X,t.Pt.Y=s.Y,n.use_xyz&&(t.Pt.Z=s.Z),i=this.DupOutPt(t,l))}if(u===n.Direction.dLeftToRight){for(;e.Next.Pt.X<=s.X&&e.Next.Pt.X>=e.Pt.X&&e.Next.Pt.Y===s.Y;)e=e.Next;l&&e.Pt.X!==s.X&&(e=e.Next),r=this.DupOutPt(e,!l),n.IntPoint.op_Inequality(r.Pt,s)&&(e=r,e.Pt.X=s.X,e.Pt.Y=s.Y,n.use_xyz&&(e.Pt.Z=s.Z),r=this.DupOutPt(e,!l))}else{for(;e.Next.Pt.X>=s.X&&e.Next.Pt.X<=e.Pt.X&&e.Next.Pt.Y===s.Y;)e=e.Next;!l&&e.Pt.X!==s.X&&(e=e.Next),r=this.DupOutPt(e,l),n.IntPoint.op_Inequality(r.Pt,s)&&(e=r,e.Pt.X=s.X,e.Pt.Y=s.Y,n.use_xyz&&(e.Pt.Z=s.Z),r=this.DupOutPt(e,l))}return o===n.Direction.dLeftToRight===l?(t.Prev=e,e.Next=t,i.Next=r,r.Prev=i):(t.Next=e,e.Prev=t,i.Prev=r,r.Next=i),!0},n.Clipper.prototype.JoinPoints=function(t,i,e){var r=t.OutPt1,s=new n.OutPt,l=t.OutPt2,o=new n.OutPt,u=t.OutPt1.Pt.Y===t.OffPt.Y;if(u&&n.IntPoint.op_Equality(t.OffPt,t.OutPt1.Pt)&&n.IntPoint.op_Equality(t.OffPt,t.OutPt2.Pt)){if(i!==e)return!1;for(s=t.OutPt1.Next;s!==r&&n.IntPoint.op_Equality(s.Pt,t.OffPt);)s=s.Next;var f=s.Pt.Y>t.OffPt.Y;for(o=t.OutPt2.Next;o!==l&&n.IntPoint.op_Equality(o.Pt,t.OffPt);)o=o.Next;var h=o.Pt.Y>t.OffPt.Y;return f===h?!1:f?(s=this.DupOutPt(r,!1),o=this.DupOutPt(l,!0),r.Prev=l,l.Next=r,s.Next=o,o.Prev=s,t.OutPt1=r,t.OutPt2=s,!0):(s=this.DupOutPt(r,!0),o=this.DupOutPt(l,!1),r.Next=l,l.Prev=r,s.Prev=o,o.Next=s,t.OutPt1=r,t.OutPt2=s,!0)}else if(u){for(s=r;r.Prev.Pt.Y===r.Pt.Y&&r.Prev!==s&&r.Prev!==l;)r=r.Prev;for(;s.Next.Pt.Y===s.Pt.Y&&s.Next!==r&&s.Next!==l;)s=s.Next;if(s.Next===r||s.Next===l)return!1;for(o=l;l.Prev.Pt.Y===l.Pt.Y&&l.Prev!==o&&l.Prev!==s;)l=l.Prev;for(;o.Next.Pt.Y===o.Pt.Y&&o.Next!==l&&o.Next!==r;)o=o.Next;if(o.Next===l||o.Next===r)return!1;var P={Left:null,Right:null};if(!this.GetOverlap(r.Pt.X,s.Pt.X,l.Pt.X,o.Pt.X,P))return!1;var a=P.Left,m=P.Right,y=new n.IntPoint0,C;return r.Pt.X>=a&&r.Pt.X<=m?(y.X=r.Pt.X,y.Y=r.Pt.Y,n.use_xyz&&(y.Z=r.Pt.Z),C=r.Pt.X>s.Pt.X):l.Pt.X>=a&&l.Pt.X<=m?(y.X=l.Pt.X,y.Y=l.Pt.Y,n.use_xyz&&(y.Z=l.Pt.Z),C=l.Pt.X>o.Pt.X):s.Pt.X>=a&&s.Pt.X<=m?(y.X=s.Pt.X,y.Y=s.Pt.Y,n.use_xyz&&(y.Z=s.Pt.Z),C=s.Pt.X>r.Pt.X):(y.X=o.Pt.X,y.Y=o.Pt.Y,n.use_xyz&&(y.Z=o.Pt.Z),C=o.Pt.X>l.Pt.X),t.OutPt1=r,t.OutPt2=l,this.JoinHorz(r,s,l,o,y,C)}else{for(s=r.Next;n.IntPoint.op_Equality(s.Pt,r.Pt)&&s!==r;)s=s.Next;var c=s.Pt.Y>r.Pt.Y||!n.ClipperBase.SlopesEqual4(r.Pt,s.Pt,t.OffPt,this.m_UseFullRange);if(c){for(s=r.Prev;n.IntPoint.op_Equality(s.Pt,r.Pt)&&s!==r;)s=s.Prev;if(s.Pt.Y>r.Pt.Y||!n.ClipperBase.SlopesEqual4(r.Pt,s.Pt,t.OffPt,this.m_UseFullRange))return!1}for(o=l.Next;n.IntPoint.op_Equality(o.Pt,l.Pt)&&o!==l;)o=o.Next;var _=o.Pt.Y>l.Pt.Y||!n.ClipperBase.SlopesEqual4(l.Pt,o.Pt,t.OffPt,this.m_UseFullRange);if(_){for(o=l.Prev;n.IntPoint.op_Equality(o.Pt,l.Pt)&&o!==l;)o=o.Prev;if(o.Pt.Y>l.Pt.Y||!n.ClipperBase.SlopesEqual4(l.Pt,o.Pt,t.OffPt,this.m_UseFullRange))return!1}return s===r||o===l||s===o||i===e&&c===_?!1:c?(s=this.DupOutPt(r,!1),o=this.DupOutPt(l,!0),r.Prev=l,l.Next=r,s.Next=o,o.Prev=s,t.OutPt1=r,t.OutPt2=s,!0):(s=this.DupOutPt(r,!0),o=this.DupOutPt(l,!1),r.Next=l,l.Prev=r,s.Prev=o,o.Next=s,t.OutPt1=r,t.OutPt2=s,!0)}},n.Clipper.GetBounds=function(t){for(var i=0,e=t.length;i<e&&t[i].length===0;)i++;if(i===e)return new n.IntRect(0,0,0,0);var r=new n.IntRect;for(r.left=t[i][0].X,r.right=r.left,r.top=t[i][0].Y,r.bottom=r.top;i<e;i++)for(var s=0,l=t[i].length;s<l;s++)t[i][s].X<r.left?r.left=t[i][s].X:t[i][s].X>r.right&&(r.right=t[i][s].X),t[i][s].Y<r.top?r.top=t[i][s].Y:t[i][s].Y>r.bottom&&(r.bottom=t[i][s].Y);return r},n.Clipper.prototype.GetBounds2=function(t){var i=t,e=new n.IntRect;for(e.left=t.Pt.X,e.right=t.Pt.X,e.top=t.Pt.Y,e.bottom=t.Pt.Y,t=t.Next;t!==i;)t.Pt.X<e.left&&(e.left=t.Pt.X),t.Pt.X>e.right&&(e.right=t.Pt.X),t.Pt.Y<e.top&&(e.top=t.Pt.Y),t.Pt.Y>e.bottom&&(e.bottom=t.Pt.Y),t=t.Next;return e},n.Clipper.PointInPolygon=function(t,i){var e=0,r=i.length;if(r<3)return 0;for(var s=i[0],l=1;l<=r;++l){var o=l===r?i[0]:i[l];if(o.Y===t.Y&&(o.X===t.X||s.Y===t.Y&&o.X>t.X==s.X<t.X))return-1;if(s.Y<t.Y!=o.Y<t.Y){if(s.X>=t.X)if(o.X>t.X)e=1-e;else{var u=(s.X-t.X)*(o.Y-t.Y)-(o.X-t.X)*(s.Y-t.Y);if(u===0)return-1;u>0==o.Y>s.Y&&(e=1-e)}else if(o.X>t.X){var u=(s.X-t.X)*(o.Y-t.Y)-(o.X-t.X)*(s.Y-t.Y);if(u===0)return-1;u>0==o.Y>s.Y&&(e=1-e)}}s=o}return e},n.Clipper.prototype.PointInPolygon=function(t,i){var e=0,r=i,s=t.X,l=t.Y,o=i.Pt.X,u=i.Pt.Y;do{i=i.Next;var f=i.Pt.X,h=i.Pt.Y;if(h===l&&(f===s||u===l&&f>s==o<s))return-1;if(u<l!=h<l){if(o>=s)if(f>s)e=1-e;else{var P=(o-s)*(h-l)-(f-s)*(u-l);if(P===0)return-1;P>0==h>u&&(e=1-e)}else if(f>s){var P=(o-s)*(h-l)-(f-s)*(u-l);if(P===0)return-1;P>0==h>u&&(e=1-e)}}o=f,u=h}while(r!==i);return e},n.Clipper.prototype.Poly2ContainsPoly1=function(t,i){var e=t;do{var r=this.PointInPolygon(e.Pt,i);if(r>=0)return r>0;e=e.Next}while(e!==t);return!0},n.Clipper.prototype.FixupFirstLefts1=function(t,i){for(var e,r,s=0,l=this.m_PolyOuts.length;s<l;s++)e=this.m_PolyOuts[s],r=n.Clipper.ParseFirstLeft(e.FirstLeft),e.Pts!==null&&r===t&&this.Poly2ContainsPoly1(e.Pts,i.Pts)&&(e.FirstLeft=i)},n.Clipper.prototype.FixupFirstLefts2=function(t,i){for(var e=i.FirstLeft,r,s,l=0,o=this.m_PolyOuts.length;l<o;l++)r=this.m_PolyOuts[l],!(r.Pts===null||r===i||r===t)&&(s=n.Clipper.ParseFirstLeft(r.FirstLeft),!(s!==e&&s!==t&&s!==i)&&(this.Poly2ContainsPoly1(r.Pts,t.Pts)?r.FirstLeft=t:this.Poly2ContainsPoly1(r.Pts,i.Pts)?r.FirstLeft=i:(r.FirstLeft===t||r.FirstLeft===i)&&(r.FirstLeft=e)))},n.Clipper.prototype.FixupFirstLefts3=function(t,i){for(var e,r,s=0,l=this.m_PolyOuts.length;s<l;s++)e=this.m_PolyOuts[s],r=n.Clipper.ParseFirstLeft(e.FirstLeft),e.Pts!==null&&r===t&&(e.FirstLeft=i)},n.Clipper.ParseFirstLeft=function(t){for(;t!==null&&t.Pts===null;)t=t.FirstLeft;return t},n.Clipper.prototype.JoinCommonEdges=function(){for(var t=0,i=this.m_Joins.length;t<i;t++){var e=this.m_Joins[t],r=this.GetOutRec(e.OutPt1.Idx),s=this.GetOutRec(e.OutPt2.Idx);if(!(r.Pts===null||s.Pts===null)&&!(r.IsOpen||s.IsOpen)){var l;r===s?l=r:this.OutRec1RightOfOutRec2(r,s)?l=s:this.OutRec1RightOfOutRec2(s,r)?l=r:l=this.GetLowermostRec(r,s),this.JoinPoints(e,r,s)&&(r===s?(r.Pts=e.OutPt1,r.BottomPt=null,s=this.CreateOutRec(),s.Pts=e.OutPt2,this.UpdateOutPtIdxs(s),this.Poly2ContainsPoly1(s.Pts,r.Pts)?(s.IsHole=!r.IsHole,s.FirstLeft=r,this.m_UsingPolyTree&&this.FixupFirstLefts2(s,r),(s.IsHole^this.ReverseSolution)==this.Area$1(s)>0&&this.ReversePolyPtLinks(s.Pts)):this.Poly2ContainsPoly1(r.Pts,s.Pts)?(s.IsHole=r.IsHole,r.IsHole=!s.IsHole,s.FirstLeft=r.FirstLeft,r.FirstLeft=s,this.m_UsingPolyTree&&this.FixupFirstLefts2(r,s),(r.IsHole^this.ReverseSolution)==this.Area$1(r)>0&&this.ReversePolyPtLinks(r.Pts)):(s.IsHole=r.IsHole,s.FirstLeft=r.FirstLeft,this.m_UsingPolyTree&&this.FixupFirstLefts1(r,s))):(s.Pts=null,s.BottomPt=null,s.Idx=r.Idx,r.IsHole=l.IsHole,l===s&&(r.FirstLeft=s.FirstLeft),s.FirstLeft=r,this.m_UsingPolyTree&&this.FixupFirstLefts3(s,r)))}}},n.Clipper.prototype.UpdateOutPtIdxs=function(t){var i=t.Pts;do i.Idx=t.Idx,i=i.Prev;while(i!==t.Pts)},n.Clipper.prototype.DoSimplePolygons=function(){for(var t=0;t<this.m_PolyOuts.length;){var i=this.m_PolyOuts[t++],e=i.Pts;if(!(e===null||i.IsOpen))do{for(var r=e.Next;r!==i.Pts;){if(n.IntPoint.op_Equality(e.Pt,r.Pt)&&r.Next!==e&&r.Prev!==e){var s=e.Prev,l=r.Prev;e.Prev=l,l.Next=e,r.Prev=s,s.Next=r,i.Pts=e;var o=this.CreateOutRec();o.Pts=r,this.UpdateOutPtIdxs(o),this.Poly2ContainsPoly1(o.Pts,i.Pts)?(o.IsHole=!i.IsHole,o.FirstLeft=i,this.m_UsingPolyTree&&this.FixupFirstLefts2(o,i)):this.Poly2ContainsPoly1(i.Pts,o.Pts)?(o.IsHole=i.IsHole,i.IsHole=!o.IsHole,o.FirstLeft=i.FirstLeft,i.FirstLeft=o,this.m_UsingPolyTree&&this.FixupFirstLefts2(i,o)):(o.IsHole=i.IsHole,o.FirstLeft=i.FirstLeft,this.m_UsingPolyTree&&this.FixupFirstLefts1(i,o)),r=e}r=r.Next}e=e.Next}while(e!==i.Pts)}},n.Clipper.Area=function(t){if(!Array.isArray(t))return 0;var i=t.length;if(i<3)return 0;for(var e=0,r=0,s=i-1;r<i;++r)e+=(t[s].X+t[r].X)*(t[s].Y-t[r].Y),s=r;return-e*.5},n.Clipper.prototype.Area=function(t){var i=t;if(t===null)return 0;var e=0;do e=e+(t.Prev.Pt.X+t.Pt.X)*(t.Prev.Pt.Y-t.Pt.Y),t=t.Next;while(t!==i);return e*.5},n.Clipper.prototype.Area$1=function(t){return this.Area(t.Pts)},n.Clipper.SimplifyPolygon=function(t,i){var e=new Array,r=new n.Clipper(0);return r.StrictlySimple=!0,r.AddPath(t,n.PolyType.ptSubject,!0),r.Execute(n.ClipType.ctUnion,e,i,i),e},n.Clipper.SimplifyPolygons=function(t,i){typeof i>"u"&&(i=n.PolyFillType.pftEvenOdd);var e=new Array,r=new n.Clipper(0);return r.StrictlySimple=!0,r.AddPaths(t,n.PolyType.ptSubject,!0),r.Execute(n.ClipType.ctUnion,e,i,i),e},n.Clipper.DistanceSqrd=function(t,i){var e=t.X-i.X,r=t.Y-i.Y;return e*e+r*r},n.Clipper.DistanceFromLineSqrd=function(t,i,e){var r=i.Y-e.Y,s=e.X-i.X,l=r*i.X+s*i.Y;return l=r*t.X+s*t.Y-l,l*l/(r*r+s*s)},n.Clipper.SlopesNearCollinear=function(t,i,e,r){return Math.abs(t.X-i.X)>Math.abs(t.Y-i.Y)?t.X>i.X==t.X<e.X?n.Clipper.DistanceFromLineSqrd(t,i,e)<r:i.X>t.X==i.X<e.X?n.Clipper.DistanceFromLineSqrd(i,t,e)<r:n.Clipper.DistanceFromLineSqrd(e,t,i)<r:t.Y>i.Y==t.Y<e.Y?n.Clipper.DistanceFromLineSqrd(t,i,e)<r:i.Y>t.Y==i.Y<e.Y?n.Clipper.DistanceFromLineSqrd(i,t,e)<r:n.Clipper.DistanceFromLineSqrd(e,t,i)<r},n.Clipper.PointsAreClose=function(t,i,e){var r=t.X-i.X,s=t.Y-i.Y;return r*r+s*s<=e},n.Clipper.ExcludeOp=function(t){var i=t.Prev;return i.Next=t.Next,t.Next.Prev=i,i.Idx=0,i},n.Clipper.CleanPolygon=function(t,i){typeof i>"u"&&(i=1.415);var e=t.length;if(e===0)return new Array;for(var r=new Array(e),s=0;s<e;++s)r[s]=new n.OutPt;for(var s=0;s<e;++s)r[s].Pt=t[s],r[s].Next=r[(s+1)%e],r[s].Next.Prev=r[s],r[s].Idx=0;for(var l=i*i,o=r[0];o.Idx===0&&o.Next!==o.Prev;)n.Clipper.PointsAreClose(o.Pt,o.Prev.Pt,l)?(o=n.Clipper.ExcludeOp(o),e--):n.Clipper.PointsAreClose(o.Prev.Pt,o.Next.Pt,l)?(n.Clipper.ExcludeOp(o.Next),o=n.Clipper.ExcludeOp(o),e-=2):n.Clipper.SlopesNearCollinear(o.Prev.Pt,o.Pt,o.Next.Pt,l)?(o=n.Clipper.ExcludeOp(o),e--):(o.Idx=1,o=o.Next);e<3&&(e=0);for(var u=new Array(e),s=0;s<e;++s)u[s]=new n.IntPoint1(o.Pt),o=o.Next;return r=null,u},n.Clipper.CleanPolygons=function(t,i){for(var e=new Array(t.length),r=0,s=t.length;r<s;r++)e[r]=n.Clipper.CleanPolygon(t[r],i);return e},n.Clipper.Minkowski=function(t,i,e,r){var s=r?1:0,l=t.length,o=i.length,u=new Array;if(e)for(var f=0;f<o;f++){for(var h=new Array(l),P=0,a=t.length,m=t[P];P<a;P++,m=t[P])h[P]=new n.IntPoint2(i[f].X+m.X,i[f].Y+m.Y);u.push(h)}else for(var f=0;f<o;f++){for(var h=new Array(l),P=0,a=t.length,m=t[P];P<a;P++,m=t[P])h[P]=new n.IntPoint2(i[f].X-m.X,i[f].Y-m.Y);u.push(h)}for(var y=new Array,f=0;f<o-1+s;f++)for(var P=0;P<l;P++){var C=new Array;C.push(u[f%o][P%l]),C.push(u[(f+1)%o][P%l]),C.push(u[(f+1)%o][(P+1)%l]),C.push(u[f%o][(P+1)%l]),n.Clipper.Orientation(C)||C.reverse(),y.push(C)}return y},n.Clipper.MinkowskiSum=function(t,i,e){if(i[0]instanceof Array){for(var s=i,o=new n.Paths,l=new n.Clipper,u=0;u<s.length;++u){var f=n.Clipper.Minkowski(t,s[u],!0,e);if(l.AddPaths(f,n.PolyType.ptSubject,!0),e){var r=n.Clipper.TranslatePath(s[u],t[0]);l.AddPath(r,n.PolyType.ptClip,!0)}}return l.Execute(n.ClipType.ctUnion,o,n.PolyFillType.pftNonZero,n.PolyFillType.pftNonZero),o}else{var r=i,s=n.Clipper.Minkowski(t,r,!0,e),l=new n.Clipper;return l.AddPaths(s,n.PolyType.ptSubject,!0),l.Execute(n.ClipType.ctUnion,s,n.PolyFillType.pftNonZero,n.PolyFillType.pftNonZero),s}},n.Clipper.TranslatePath=function(t,i){for(var e=new n.Path,r=0;r<t.length;r++)e.push(new n.IntPoint2(t[r].X+i.X,t[r].Y+i.Y));return e},n.Clipper.MinkowskiDiff=function(t,i){var e=n.Clipper.Minkowski(t,i,!1,!0),r=new n.Clipper;return r.AddPaths(e,n.PolyType.ptSubject,!0),r.Execute(n.ClipType.ctUnion,e,n.PolyFillType.pftNonZero,n.PolyFillType.pftNonZero),e},n.Clipper.PolyTreeToPaths=function(t){var i=new Array;return n.Clipper.AddPolyNodeToPaths(t,n.Clipper.NodeType.ntAny,i),i},n.Clipper.AddPolyNodeToPaths=function(t,i,e){var r=!0;switch(i){case n.Clipper.NodeType.ntOpen:return;case n.Clipper.NodeType.ntClosed:r=!t.IsOpen;break}t.m_polygon.length>0&&r&&e.push(t.m_polygon);for(var s=0,l=t.Childs(),o=l.length,u=l[s];s<o;s++,u=l[s])n.Clipper.AddPolyNodeToPaths(u,i,e)},n.Clipper.OpenPathsFromPolyTree=function(t){for(var i=new n.Paths,e=0,r=t.ChildCount();e<r;e++)t.Childs()[e].IsOpen&&i.push(t.Childs()[e].m_polygon);return i},n.Clipper.ClosedPathsFromPolyTree=function(t){var i=new n.Paths;return n.Clipper.AddPolyNodeToPaths(t,n.Clipper.NodeType.ntClosed,i),i},z(n.Clipper,n.ClipperBase),n.Clipper.NodeType={ntAny:0,ntOpen:1,ntClosed:2},n.ClipperOffset=function(t,i){typeof t>"u"&&(t=2),typeof i>"u"&&(i=n.ClipperOffset.def_arc_tolerance),this.m_destPolys=new n.Paths,this.m_srcPoly=new n.Path,this.m_destPoly=new n.Path,this.m_normals=new Array,this.m_delta=0,this.m_sinA=0,this.m_sin=0,this.m_cos=0,this.m_miterLim=0,this.m_StepsPerRad=0,this.m_lowest=new n.IntPoint0,this.m_polyNodes=new n.PolyNode,this.MiterLimit=t,this.ArcTolerance=i,this.m_lowest.X=-1},n.ClipperOffset.two_pi=6.28318530717959,n.ClipperOffset.def_arc_tolerance=.25,n.ClipperOffset.prototype.Clear=function(){n.Clear(this.m_polyNodes.Childs()),this.m_lowest.X=-1},n.ClipperOffset.Round=n.Clipper.Round,n.ClipperOffset.prototype.AddPath=function(t,i,e){var r=t.length-1;if(!(r<0)){var s=new n.PolyNode;if(s.m_jointype=i,s.m_endtype=e,e===n.EndType.etClosedLine||e===n.EndType.etClosedPolygon)for(;r>0&&n.IntPoint.op_Equality(t[0],t[r]);)r--;s.m_polygon.push(t[0]);for(var l=0,o=0,u=1;u<=r;u++)n.IntPoint.op_Inequality(s.m_polygon[l],t[u])&&(l++,s.m_polygon.push(t[u]),(t[u].Y>s.m_polygon[o].Y||t[u].Y===s.m_polygon[o].Y&&t[u].X<s.m_polygon[o].X)&&(o=l));if(!(e===n.EndType.etClosedPolygon&&l<2)&&(this.m_polyNodes.AddChild(s),e===n.EndType.etClosedPolygon))if(this.m_lowest.X<0)this.m_lowest=new n.IntPoint2(this.m_polyNodes.ChildCount()-1,o);else{var f=this.m_polyNodes.Childs()[this.m_lowest.X].m_polygon[this.m_lowest.Y];(s.m_polygon[o].Y>f.Y||s.m_polygon[o].Y===f.Y&&s.m_polygon[o].X<f.X)&&(this.m_lowest=new n.IntPoint2(this.m_polyNodes.ChildCount()-1,o))}}},n.ClipperOffset.prototype.AddPaths=function(t,i,e){for(var r=0,s=t.length;r<s;r++)this.AddPath(t[r],i,e)},n.ClipperOffset.prototype.FixOrientations=function(){if(this.m_lowest.X>=0&&!n.Clipper.Orientation(this.m_polyNodes.Childs()[this.m_lowest.X].m_polygon))for(var t=0;t<this.m_polyNodes.ChildCount();t++){var i=this.m_polyNodes.Childs()[t];(i.m_endtype===n.EndType.etClosedPolygon||i.m_endtype===n.EndType.etClosedLine&&n.Clipper.Orientation(i.m_polygon))&&i.m_polygon.reverse()}else for(var t=0;t<this.m_polyNodes.ChildCount();t++){var i=this.m_polyNodes.Childs()[t];i.m_endtype===n.EndType.etClosedLine&&!n.Clipper.Orientation(i.m_polygon)&&i.m_polygon.reverse()}},n.ClipperOffset.GetUnitNormal=function(t,i){var e=i.X-t.X,r=i.Y-t.Y;if(e===0&&r===0)return new n.DoublePoint2(0,0);var s=1/Math.sqrt(e*e+r*r);return e*=s,r*=s,new n.DoublePoint2(r,-e)},n.ClipperOffset.prototype.DoOffset=function(t){if(this.m_destPolys=new Array,this.m_delta=t,n.ClipperBase.near_zero(t)){for(var i=0;i<this.m_polyNodes.ChildCount();i++){var e=this.m_polyNodes.Childs()[i];e.m_endtype===n.EndType.etClosedPolygon&&this.m_destPolys.push(e.m_polygon)}return}this.MiterLimit>2?this.m_miterLim=2/(this.MiterLimit*this.MiterLimit):this.m_miterLim=.5;var r;this.ArcTolerance<=0?r=n.ClipperOffset.def_arc_tolerance:this.ArcTolerance>Math.abs(t)*n.ClipperOffset.def_arc_tolerance?r=Math.abs(t)*n.ClipperOffset.def_arc_tolerance:r=this.ArcTolerance;var s=3.14159265358979/Math.acos(1-r/Math.abs(t));this.m_sin=Math.sin(n.ClipperOffset.two_pi/s),this.m_cos=Math.cos(n.ClipperOffset.two_pi/s),this.m_StepsPerRad=s/n.ClipperOffset.two_pi,t<0&&(this.m_sin=-this.m_sin);for(var i=0;i<this.m_polyNodes.ChildCount();i++){var e=this.m_polyNodes.Childs()[i];this.m_srcPoly=e.m_polygon;var l=this.m_srcPoly.length;if(!(l===0||t<=0&&(l<3||e.m_endtype!==n.EndType.etClosedPolygon))){if(this.m_destPoly=new Array,l===1){if(e.m_jointype===n.JoinType.jtRound)for(var o=1,u=0,f=1;f<=s;f++){this.m_destPoly.push(new n.IntPoint2(n.ClipperOffset.Round(this.m_srcPoly[0].X+o*t),n.ClipperOffset.Round(this.m_srcPoly[0].Y+u*t)));var h=o;o=o*this.m_cos-this.m_sin*u,u=h*this.m_sin+u*this.m_cos}else for(var o=-1,u=-1,f=0;f<4;++f)this.m_destPoly.push(new n.IntPoint2(n.ClipperOffset.Round(this.m_srcPoly[0].X+o*t),n.ClipperOffset.Round(this.m_srcPoly[0].Y+u*t))),o<0?o=1:u<0?u=1:o=-1;this.m_destPolys.push(this.m_destPoly);continue}this.m_normals.length=0;for(var f=0;f<l-1;f++)this.m_normals.push(n.ClipperOffset.GetUnitNormal(this.m_srcPoly[f],this.m_srcPoly[f+1]));if(e.m_endtype===n.EndType.etClosedLine||e.m_endtype===n.EndType.etClosedPolygon?this.m_normals.push(n.ClipperOffset.GetUnitNormal(this.m_srcPoly[l-1],this.m_srcPoly[0])):this.m_normals.push(new n.DoublePoint1(this.m_normals[l-2])),e.m_endtype===n.EndType.etClosedPolygon){for(var P=l-1,f=0;f<l;f++)P=this.OffsetPoint(f,P,e.m_jointype);this.m_destPolys.push(this.m_destPoly)}else if(e.m_endtype===n.EndType.etClosedLine){for(var P=l-1,f=0;f<l;f++)P=this.OffsetPoint(f,P,e.m_jointype);this.m_destPolys.push(this.m_destPoly),this.m_destPoly=new Array;for(var a=this.m_normals[l-1],f=l-1;f>0;f--)this.m_normals[f]=new n.DoublePoint2(-this.m_normals[f-1].X,-this.m_normals[f-1].Y);this.m_normals[0]=new n.DoublePoint2(-a.X,-a.Y),P=0;for(var f=l-1;f>=0;f--)P=this.OffsetPoint(f,P,e.m_jointype);this.m_destPolys.push(this.m_destPoly)}else{for(var P=0,f=1;f<l-1;++f)P=this.OffsetPoint(f,P,e.m_jointype);var m;if(e.m_endtype===n.EndType.etOpenButt){var f=l-1;m=new n.IntPoint2(n.ClipperOffset.Round(this.m_srcPoly[f].X+this.m_normals[f].X*t),n.ClipperOffset.Round(this.m_srcPoly[f].Y+this.m_normals[f].Y*t)),this.m_destPoly.push(m),m=new n.IntPoint2(n.ClipperOffset.Round(this.m_srcPoly[f].X-this.m_normals[f].X*t),n.ClipperOffset.Round(this.m_srcPoly[f].Y-this.m_normals[f].Y*t)),this.m_destPoly.push(m)}else{var f=l-1;P=l-2,this.m_sinA=0,this.m_normals[f]=new n.DoublePoint2(-this.m_normals[f].X,-this.m_normals[f].Y),e.m_endtype===n.EndType.etOpenSquare?this.DoSquare(f,P):this.DoRound(f,P)}for(var f=l-1;f>0;f--)this.m_normals[f]=new n.DoublePoint2(-this.m_normals[f-1].X,-this.m_normals[f-1].Y);this.m_normals[0]=new n.DoublePoint2(-this.m_normals[1].X,-this.m_normals[1].Y),P=l-1;for(var f=P-1;f>0;--f)P=this.OffsetPoint(f,P,e.m_jointype);e.m_endtype===n.EndType.etOpenButt?(m=new n.IntPoint2(n.ClipperOffset.Round(this.m_srcPoly[0].X-this.m_normals[0].X*t),n.ClipperOffset.Round(this.m_srcPoly[0].Y-this.m_normals[0].Y*t)),this.m_destPoly.push(m),m=new n.IntPoint2(n.ClipperOffset.Round(this.m_srcPoly[0].X+this.m_normals[0].X*t),n.ClipperOffset.Round(this.m_srcPoly[0].Y+this.m_normals[0].Y*t)),this.m_destPoly.push(m)):(P=1,this.m_sinA=0,e.m_endtype===n.EndType.etOpenSquare?this.DoSquare(0,1):this.DoRound(0,1)),this.m_destPolys.push(this.m_destPoly)}}}},n.ClipperOffset.prototype.Execute=function(){var t=arguments,i=t[0]instanceof n.PolyTree;if(i){var e=t[0],r=t[1];e.Clear(),this.FixOrientations(),this.DoOffset(r);var s=new n.Clipper(0);if(s.AddPaths(this.m_destPolys,n.PolyType.ptSubject,!0),r>0)s.Execute(n.ClipType.ctUnion,e,n.PolyFillType.pftPositive,n.PolyFillType.pftPositive);else{var l=n.Clipper.GetBounds(this.m_destPolys),o=new n.Path;if(o.push(new n.IntPoint2(l.left-10,l.bottom+10)),o.push(new n.IntPoint2(l.right+10,l.bottom+10)),o.push(new n.IntPoint2(l.right+10,l.top-10)),o.push(new n.IntPoint2(l.left-10,l.top-10)),s.AddPath(o,n.PolyType.ptSubject,!0),s.ReverseSolution=!0,s.Execute(n.ClipType.ctUnion,e,n.PolyFillType.pftNegative,n.PolyFillType.pftNegative),e.ChildCount()===1&&e.Childs()[0].ChildCount()>0){var u=e.Childs()[0];e.Childs()[0]=u.Childs()[0],e.Childs()[0].m_Parent=e;for(var f=1;f<u.ChildCount();f++)e.AddChild(u.Childs()[f])}else e.Clear()}}else{var e=t[0],r=t[1];n.Clear(e),this.FixOrientations(),this.DoOffset(r);var s=new n.Clipper(0);if(s.AddPaths(this.m_destPolys,n.PolyType.ptSubject,!0),r>0)s.Execute(n.ClipType.ctUnion,e,n.PolyFillType.pftPositive,n.PolyFillType.pftPositive);else{var l=n.Clipper.GetBounds(this.m_destPolys),o=new n.Path;o.push(new n.IntPoint2(l.left-10,l.bottom+10)),o.push(new n.IntPoint2(l.right+10,l.bottom+10)),o.push(new n.IntPoint2(l.right+10,l.top-10)),o.push(new n.IntPoint2(l.left-10,l.top-10)),s.AddPath(o,n.PolyType.ptSubject,!0),s.ReverseSolution=!0,s.Execute(n.ClipType.ctUnion,e,n.PolyFillType.pftNegative,n.PolyFillType.pftNegative),e.length>0&&e.splice(0,1)}}},n.ClipperOffset.prototype.OffsetPoint=function(t,i,e){if(this.m_sinA=this.m_normals[i].X*this.m_normals[t].Y-this.m_normals[t].X*this.m_normals[i].Y,Math.abs(this.m_sinA*this.m_delta)<1){var r=this.m_normals[i].X*this.m_normals[t].X+this.m_normals[t].Y*this.m_normals[i].Y;if(r>0)return this.m_destPoly.push(new n.IntPoint2(n.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_normals[i].X*this.m_delta),n.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_normals[i].Y*this.m_delta))),i}else this.m_sinA>1?this.m_sinA=1:this.m_sinA<-1&&(this.m_sinA=-1);if(this.m_sinA*this.m_delta<0)this.m_destPoly.push(new n.IntPoint2(n.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_normals[i].X*this.m_delta),n.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_normals[i].Y*this.m_delta))),this.m_destPoly.push(new n.IntPoint1(this.m_srcPoly[t])),this.m_destPoly.push(new n.IntPoint2(n.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_normals[t].X*this.m_delta),n.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_normals[t].Y*this.m_delta)));else switch(e){case n.JoinType.jtMiter:{var s=1+(this.m_normals[t].X*this.m_normals[i].X+this.m_normals[t].Y*this.m_normals[i].Y);s>=this.m_miterLim?this.DoMiter(t,i,s):this.DoSquare(t,i);break}case n.JoinType.jtSquare:this.DoSquare(t,i);break;case n.JoinType.jtRound:this.DoRound(t,i);break}return i=t,i},n.ClipperOffset.prototype.DoSquare=function(t,i){var e=Math.tan(Math.atan2(this.m_sinA,this.m_normals[i].X*this.m_normals[t].X+this.m_normals[i].Y*this.m_normals[t].Y)/4);this.m_destPoly.push(new n.IntPoint2(n.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_delta*(this.m_normals[i].X-this.m_normals[i].Y*e)),n.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_delta*(this.m_normals[i].Y+this.m_normals[i].X*e)))),this.m_destPoly.push(new n.IntPoint2(n.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_delta*(this.m_normals[t].X+this.m_normals[t].Y*e)),n.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_delta*(this.m_normals[t].Y-this.m_normals[t].X*e))))},n.ClipperOffset.prototype.DoMiter=function(t,i,e){var r=this.m_delta/e;this.m_destPoly.push(new n.IntPoint2(n.ClipperOffset.Round(this.m_srcPoly[t].X+(this.m_normals[i].X+this.m_normals[t].X)*r),n.ClipperOffset.Round(this.m_srcPoly[t].Y+(this.m_normals[i].Y+this.m_normals[t].Y)*r)))},n.ClipperOffset.prototype.DoRound=function(t,i){for(var e=Math.atan2(this.m_sinA,this.m_normals[i].X*this.m_normals[t].X+this.m_normals[i].Y*this.m_normals[t].Y),r=Math.max(n.Cast_Int32(n.ClipperOffset.Round(this.m_StepsPerRad*Math.abs(e))),1),s=this.m_normals[i].X,l=this.m_normals[i].Y,o,u=0;u<r;++u)this.m_destPoly.push(new n.IntPoint2(n.ClipperOffset.Round(this.m_srcPoly[t].X+s*this.m_delta),n.ClipperOffset.Round(this.m_srcPoly[t].Y+l*this.m_delta))),o=s,s=s*this.m_cos-this.m_sin*l,l=o*this.m_sin+l*this.m_cos;this.m_destPoly.push(new n.IntPoint2(n.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_normals[t].X*this.m_delta),n.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_normals[t].Y*this.m_delta)))},n.Error=function(t){try{throw new Error(t)}catch(i){alert(i.message)}},n.JS={},n.JS.AreaOfPolygon=function(t,i){return i||(i=1),n.Clipper.Area(t)/(i*i)},n.JS.AreaOfPolygons=function(t,i){i||(i=1);for(var e=0,r=0;r<t.length;r++)e+=n.Clipper.Area(t[r]);return e/(i*i)},n.JS.BoundsOfPath=function(t,i){return n.JS.BoundsOfPaths([t],i)},n.JS.BoundsOfPaths=function(t,i){i||(i=1);var e=n.Clipper.GetBounds(t);return e.left/=i,e.bottom/=i,e.right/=i,e.top/=i,e},n.JS.Clean=function(r,i){if(!(r instanceof Array))return[];var e=r[0]instanceof Array,r=n.JS.Clone(r);if(typeof i!="number"||i===null)return n.Error("Delta is not a number in Clean()."),r;if(r.length===0||r.length===1&&r[0].length===0||i<0)return r;e||(r=[r]);for(var s=r.length,l,o,u,f,h,P,a,m=[],y=0;y<s;y++)if(o=r[y],l=o.length,l!==0){if(l<3){u=o,m.push(u);continue}for(u=o,f=i*i,h=o[0],P=1,a=1;a<l;a++)(o[a].X-h.X)*(o[a].X-h.X)+(o[a].Y-h.Y)*(o[a].Y-h.Y)<=f||(u[P]=o[a],h=o[a],P++);h=o[P-1],(o[0].X-h.X)*(o[0].X-h.X)+(o[0].Y-h.Y)*(o[0].Y-h.Y)<=f&&P--,P<l&&u.splice(P,l-P),u.length&&m.push(u)}return!e&&m.length?m=m[0]:!e&&m.length===0?m=[]:e&&m.length===0&&(m=[[]]),m},n.JS.Clone=function(t){if(!(t instanceof Array))return[];if(t.length===0)return[];if(t.length===1&&t[0].length===0)return[[]];var i=t[0]instanceof Array;i||(t=[t]);var e=t.length,r,s,l,o,u=new Array(e);for(s=0;s<e;s++){for(r=t[s].length,o=new Array(r),l=0;l<r;l++)o[l]={X:t[s][l].X,Y:t[s][l].Y};u[s]=o}return i||(u=u[0]),u},n.JS.Lighten=function(t,i){if(!(t instanceof Array))return[];if(typeof i!="number"||i===null)return n.Error("Tolerance is not a number in Lighten()."),n.JS.Clone(t);if(t.length===0||t.length===1&&t[0].length===0||i<0)return n.JS.Clone(t);var e=t[0]instanceof Array;e||(t=[t]);var r,s,l,o,u,f,h,P,a,m,y,C,c,_,L,Y,M,qi=t.length,Ui=i*i,F=[];for(r=0;r<qi;r++)if(l=t[r],f=l.length,f!==0){for(o=0;o<1e6;o++){for(u=[],f=l.length,l[f-1].X!==l[0].X||l[f-1].Y!==l[0].Y?(C=1,l.push({X:l[0].X,Y:l[0].Y}),f=l.length):C=0,y=[],s=0;s<f-2;s++)h=l[s],a=l[s+1],P=l[s+2],Y=h.X,M=h.Y,c=P.X-Y,_=P.Y-M,(c!==0||_!==0)&&(L=((a.X-Y)*c+(a.Y-M)*_)/(c*c+_*_),L>1?(Y=P.X,M=P.Y):L>0&&(Y+=c*L,M+=_*L)),c=a.X-Y,_=a.Y-M,m=c*c+_*_,m<=Ui&&(y[s+1]=1,s++);for(u.push({X:l[0].X,Y:l[0].Y}),s=1;s<f-1;s++)y[s]||u.push({X:l[s].X,Y:l[s].Y});if(u.push({X:l[f-1].X,Y:l[f-1].Y}),C&&l.pop(),y.length)l=u;else break}f=u.length,u[f-1].X===u[0].X&&u[f-1].Y===u[0].Y&&u.pop(),u.length>2&&F.push(u)}return e||(F=F[0]),typeof F>"u"&&(F=[]),F},n.JS.PerimeterOfPath=function(t,i,e){if(typeof t>"u")return 0;var r=Math.sqrt,s=0,l,o,u=0,f=0,h=0,P=0,a=t.length;if(a<2)return 0;for(i&&(t[a]=t[0],a++);--a;)l=t[a],u=l.X,f=l.Y,o=t[a-1],h=o.X,P=o.Y,s+=r((u-h)*(u-h)+(f-P)*(f-P));return i&&t.pop(),s/e},n.JS.PerimeterOfPaths=function(t,i,e){e||(e=1);for(var r=0,s=0;s<t.length;s++)r+=n.JS.PerimeterOfPath(t[s],i,e);return r},n.JS.ScaleDownPath=function(t,i){var e,r;for(i||(i=1),e=t.length;e--;)r=t[e],r.X=r.X/i,r.Y=r.Y/i},n.JS.ScaleDownPaths=function(t,i){var e,r,s;for(i||(i=1),e=t.length;e--;)for(r=t[e].length;r--;)s=t[e][r],s.X=s.X/i,s.Y=s.Y/i},n.JS.ScaleUpPath=function(t,i){var e,r,s=Math.round;for(i||(i=1),e=t.length;e--;)r=t[e],r.X=s(r.X*i),r.Y=s(r.Y*i)},n.JS.ScaleUpPaths=function(t,i){var e,r,s,l=Math.round;for(i||(i=1),e=t.length;e--;)for(r=t[e].length;r--;)s=t[e][r],s.X=l(s.X*i),s.Y=l(s.Y*i)},n.ExPolygons=function(){return[]},n.ExPolygon=function(){this.outer=null,this.holes=null},n.JS.AddOuterPolyNodeToExPolygons=function(t,i){var e=new n.ExPolygon;e.outer=t.Contour();var r=t.Childs(),s=r.length;e.holes=new Array(s);var l,o,u,f,h,P;for(u=0;u<s;u++)for(l=r[u],e.holes[u]=l.Contour(),f=0,h=l.Childs(),P=h.length;f<P;f++)o=h[f],n.JS.AddOuterPolyNodeToExPolygons(o,i);i.push(e)},n.JS.ExPolygonsToPaths=function(t){var i,e,r,s,l=new n.Paths;for(i=0,r=t.length;i<r;i++)for(l.push(t[i].outer),e=0,s=t[i].holes.length;e<s;e++)l.push(t[i].holes[e]);return l},n.JS.PolyTreeToExPolygons=function(t){var i=new n.ExPolygons,e,r,s,l;for(r=0,s=t.Childs(),l=s.length;r<l;r++)e=s[r],n.JS.AddOuterPolyNodeToExPolygons(e,i);return i}})()})(U)),U.exports}var Q=Ji();const Gi=ki(Q),zi=Hi({__proto__:null,default:Gi},[Q]);export{zi as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var d=["false","nil","true"],l=[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],u=["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],p=["->","->>","as->","binding","bound-fn","case","catch","comment","cond","cond->","cond->>","condp","def","definterface","defmethod","defn","defmacro","defprotocol","defrecord","defstruct","deftype","do","doseq","dotimes","doto","extend","extend-protocol","extend-type","fn","for","future","if","if-let","if-not","if-some","let","letfn","locking","loop","ns","proxy","reify","struct-map","some->","some->>","try","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn"],f=o(d),m=o(l),h=o(u),y=o(p),b=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,v=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,g=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,k=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function s(t,e){if(t.eatSpace()||t.eat(","))return["space",null];if(t.match(v))return[null,"number"];if(t.match(g))return[null,"string.special"];if(t.eat(/^"/))return(e.tokenize=x)(t,e);if(t.eat(/^[(\[{]/))return["open","bracket"];if(t.eat(/^[)\]}]/))return["close","bracket"];if(t.eat(/^;/))return t.skipToEnd(),["space","comment"];if(t.eat(/^[#'@^`~]/))return[null,"meta"];var r=t.match(k),n=r&&r[0];return n?n==="comment"&&e.lastToken==="("?(e.tokenize=w)(t,e):a(n,f)||n.charAt(0)===":"?["symbol","atom"]:a(n,m)||a(n,h)?["symbol","keyword"]:e.lastToken==="("?["symbol","builtin"]:["symbol","variable"]:(t.next(),t.eatWhile(function(i){return!a(i,b)}),[null,"error"])}function x(t,e){for(var r=!1,n;n=t.next();){if(n==='"'&&!r){e.tokenize=s;break}r=!r&&n==="\\"}return[null,"string"]}function w(t,e){for(var r=1,n;n=t.next();)if(n===")"&&r--,n==="("&&r++,r===0){t.backUp(1),e.tokenize=s;break}return["space","comment"]}function o(t){for(var e={},r=0;r<t.length;++r)e[t[r]]=!0;return e}function a(t,e){if(e instanceof RegExp)return e.test(t);if(e instanceof Object)return e.propertyIsEnumerable(t)}const q={name:"clojure",startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastToken:null,tokenize:s}},token:function(t,e){t.sol()&&typeof e.ctx.indentTo!="number"&&(e.ctx.indentTo=e.ctx.start+1);var r=e.tokenize(t,e),n=r[0],i=r[1],c=t.current();return n!=="space"&&(e.lastToken==="("&&e.ctx.indentTo===null?n==="symbol"&&a(c,y)?e.ctx.indentTo=e.ctx.start+t.indentUnit:e.ctx.indentTo="next":e.ctx.indentTo==="next"&&(e.ctx.indentTo=t.column()),e.lastToken=c),n==="open"?e.ctx={prev:e.ctx,start:t.column(),indentTo:null}:n==="close"&&(e.ctx=e.ctx.prev||e.ctx),i},indent:function(t){var e=t.ctx.indentTo;return typeof e=="number"?e:t.ctx.start+1},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:";;"},autocomplete:[].concat(d,l,u)}};export{q as clojure};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./graph-CbDG5PTO.js";var a=4;function n(o){return r(o,a)}export{n as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c=/({)?[a-zA-Z0-9_]+(})?/;function t(n,i){for(var e,r,u=!1;!n.eol()&&(e=n.next())!=i.pending;){if(e==="$"&&r!="\\"&&i.pending=='"'){u=!0;break}r=e}return u&&n.backUp(1),e==i.pending?i.continueString=!1:i.continueString=!0,"string"}function f(n,i){var e=n.next();return e==="$"?n.match(c)?"variableName.special":"variable":i.continueString?(n.backUp(1),t(n,i)):n.match(/(\s+)?\w+\(/)||n.match(/(\s+)?\w+\ \(/)?(n.backUp(1),"def"):e=="#"?(n.skipToEnd(),"comment"):e=="'"||e=='"'?(i.pending=e,t(n,i)):e=="("||e==")"?"bracket":e.match(/[0-9]/)?"number":(n.eatWhile(/[\w-]/),null)}const a={name:"cmake",startState:function(){var n={};return n.inDefinition=!1,n.inInclude=!1,n.continueString=!1,n.pending=!1,n},token:function(n,i){return n.eatSpace()?null:f(n,i)}};export{a as cmake};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var M="builtin",e="comment",C="string",D="atom",G="number",n="keyword",i="header",B="def",t="link";function L(E){for(var T={},I=E.split(" "),R=0;R<I.length;++R)T[I[R]]=!0;return T}var S=L("TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES "),U=L("ACCEPT ACCESS ACQUIRE ADD ADDRESS ADVANCING AFTER ALIAS ALL ALPHABET ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER ALPHANUMERIC ALPHANUMERIC-EDITED ALSO ALTER ALTERNATE AND ANY ARE AREA AREAS ARITHMETIC ASCENDING ASSIGN AT ATTRIBUTE AUTHOR AUTO AUTO-SKIP AUTOMATIC B-AND B-EXOR B-LESS B-NOT B-OR BACKGROUND-COLOR BACKGROUND-COLOUR BEEP BEFORE BELL BINARY BIT BITS BLANK BLINK BLOCK BOOLEAN BOTTOM BY CALL CANCEL CD CF CH CHARACTER CHARACTERS CLASS CLOCK-UNITS CLOSE COBOL CODE CODE-SET COL COLLATING COLUMN COMMA COMMIT COMMITMENT COMMON COMMUNICATION COMP COMP-0 COMP-1 COMP-2 COMP-3 COMP-4 COMP-5 COMP-6 COMP-7 COMP-8 COMP-9 COMPUTATIONAL COMPUTATIONAL-0 COMPUTATIONAL-1 COMPUTATIONAL-2 COMPUTATIONAL-3 COMPUTATIONAL-4 COMPUTATIONAL-5 COMPUTATIONAL-6 COMPUTATIONAL-7 COMPUTATIONAL-8 COMPUTATIONAL-9 COMPUTE CONFIGURATION CONNECT CONSOLE CONTAINED CONTAINS CONTENT CONTINUE CONTROL CONTROL-AREA CONTROLS CONVERTING COPY CORR CORRESPONDING COUNT CRT CRT-UNDER CURRENCY CURRENT CURSOR DATA DATE DATE-COMPILED DATE-WRITTEN DAY DAY-OF-WEEK DB DB-ACCESS-CONTROL-KEY DB-DATA-NAME DB-EXCEPTION DB-FORMAT-NAME DB-RECORD-NAME DB-SET-NAME DB-STATUS DBCS DBCS-EDITED DE DEBUG-CONTENTS DEBUG-ITEM DEBUG-LINE DEBUG-NAME DEBUG-SUB-1 DEBUG-SUB-2 DEBUG-SUB-3 DEBUGGING DECIMAL-POINT DECLARATIVES DEFAULT DELETE DELIMITED DELIMITER DEPENDING DESCENDING DESCRIBED DESTINATION DETAIL DISABLE DISCONNECT DISPLAY DISPLAY-1 DISPLAY-2 DISPLAY-3 DISPLAY-4 DISPLAY-5 DISPLAY-6 DISPLAY-7 DISPLAY-8 DISPLAY-9 DIVIDE DIVISION DOWN DROP DUPLICATE DUPLICATES DYNAMIC EBCDIC EGI EJECT ELSE EMI EMPTY EMPTY-CHECK ENABLE END END. END-ACCEPT END-ACCEPT. END-ADD END-CALL END-COMPUTE END-DELETE END-DISPLAY END-DIVIDE END-EVALUATE END-IF END-INVOKE END-MULTIPLY END-OF-PAGE END-PERFORM END-READ END-RECEIVE END-RETURN END-REWRITE END-SEARCH END-START END-STRING END-SUBTRACT END-UNSTRING END-WRITE END-XML ENTER ENTRY ENVIRONMENT EOP EQUAL EQUALS ERASE ERROR ESI EVALUATE EVERY EXCEEDS EXCEPTION EXCLUSIVE EXIT EXTEND EXTERNAL EXTERNALLY-DESCRIBED-KEY FD FETCH FILE FILE-CONTROL FILE-STREAM FILES FILLER FINAL FIND FINISH FIRST FOOTING FOR FOREGROUND-COLOR FOREGROUND-COLOUR FORMAT FREE FROM FULL FUNCTION GENERATE GET GIVING GLOBAL GO GOBACK GREATER GROUP HEADING HIGH-VALUE HIGH-VALUES HIGHLIGHT I-O I-O-CONTROL ID IDENTIFICATION IF IN INDEX INDEX-1 INDEX-2 INDEX-3 INDEX-4 INDEX-5 INDEX-6 INDEX-7 INDEX-8 INDEX-9 INDEXED INDIC INDICATE INDICATOR INDICATORS INITIAL INITIALIZE INITIATE INPUT INPUT-OUTPUT INSPECT INSTALLATION INTO INVALID INVOKE IS JUST JUSTIFIED KANJI KEEP KEY LABEL LAST LD LEADING LEFT LEFT-JUSTIFY LENGTH LENGTH-CHECK LESS LIBRARY LIKE LIMIT LIMITS LINAGE LINAGE-COUNTER LINE LINE-COUNTER LINES LINKAGE LOCAL-STORAGE LOCALE LOCALLY LOCK MEMBER MEMORY MERGE MESSAGE METACLASS MODE MODIFIED MODIFY MODULES MOVE MULTIPLE MULTIPLY NATIONAL NATIVE NEGATIVE NEXT NO NO-ECHO NONE NOT NULL NULL-KEY-MAP NULL-MAP NULLS NUMBER NUMERIC NUMERIC-EDITED OBJECT OBJECT-COMPUTER OCCURS OF OFF OMITTED ON ONLY OPEN OPTIONAL OR ORDER ORGANIZATION OTHER OUTPUT OVERFLOW OWNER PACKED-DECIMAL PADDING PAGE PAGE-COUNTER PARSE PERFORM PF PH PIC PICTURE PLUS POINTER POSITION POSITIVE PREFIX PRESENT PRINTING PRIOR PROCEDURE PROCEDURE-POINTER PROCEDURES PROCEED PROCESS PROCESSING PROGRAM PROGRAM-ID PROMPT PROTECTED PURGE QUEUE QUOTE QUOTES RANDOM RD READ READY REALM RECEIVE RECONNECT RECORD RECORD-NAME RECORDS RECURSIVE REDEFINES REEL REFERENCE REFERENCE-MONITOR REFERENCES RELATION RELATIVE RELEASE REMAINDER REMOVAL RENAMES REPEATED REPLACE REPLACING REPORT REPORTING REPORTS REPOSITORY REQUIRED RERUN RESERVE RESET RETAINING RETRIEVAL RETURN RETURN-CODE RETURNING REVERSE-VIDEO REVERSED REWIND REWRITE RF RH RIGHT RIGHT-JUSTIFY ROLLBACK ROLLING ROUNDED RUN SAME SCREEN SD SEARCH SECTION SECURE SECURITY SEGMENT SEGMENT-LIMIT SELECT SEND SENTENCE SEPARATE SEQUENCE SEQUENTIAL SET SHARED SIGN SIZE SKIP1 SKIP2 SKIP3 SORT SORT-MERGE SORT-RETURN SOURCE SOURCE-COMPUTER SPACE-FILL SPECIAL-NAMES STANDARD STANDARD-1 STANDARD-2 START STARTING STATUS STOP STORE STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3 SUB-SCHEMA SUBFILE SUBSTITUTE SUBTRACT SUM SUPPRESS SYMBOLIC SYNC SYNCHRONIZED SYSIN SYSOUT TABLE TALLYING TAPE TENANT TERMINAL TERMINATE TEST TEXT THAN THEN THROUGH THRU TIME TIMES TITLE TO TOP TRAILING TRAILING-SIGN TRANSACTION TYPE TYPEDEF UNDERLINE UNEQUAL UNIT UNSTRING UNTIL UP UPDATE UPON USAGE USAGE-MODE USE USING VALID VALIDATE VALUE VALUES VARYING VLR WAIT WHEN WHEN-COMPILED WITH WITHIN WORDS WORKING-STORAGE WRITE XML XML-CODE XML-EVENT XML-NTEXT XML-TEXT ZERO ZERO-FILL "),P=L("- * ** / + < <= = > >= "),N={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,symbol:/[\w*+\-]/};function F(E,T){return E==="0"&&T.eat(/x/i)?(T.eatWhile(N.hex),!0):((E=="+"||E=="-")&&N.digit.test(T.peek())&&(T.eat(N.sign),E=T.next()),N.digit.test(E)?(T.eat(E),T.eatWhile(N.digit),T.peek()=="."&&(T.eat("."),T.eatWhile(N.digit)),T.eat(N.exponent)&&(T.eat(N.sign),T.eatWhile(N.digit)),!0):!1)}const Y={name:"cobol",startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(E,T){if(T.indentStack==null&&E.sol()&&(T.indentation=6),E.eatSpace())return null;var I=null;switch(T.mode){case"string":for(var R=!1;(R=E.next())!=null;)if((R=='"'||R=="'")&&!E.match(/['"]/,!1)){T.mode=!1;break}I=C;break;default:var O=E.next(),A=E.column();if(A>=0&&A<=5)I=B;else if(A>=72&&A<=79)E.skipToEnd(),I=i;else if(O=="*"&&A==6)E.skipToEnd(),I=e;else if(O=='"'||O=="'")T.mode="string",I=C;else if(O=="'"&&!N.digit_or_colon.test(E.peek()))I=D;else if(O==".")I=t;else if(F(O,E))I=G;else{if(E.current().match(N.symbol))for(;A<71&&E.eat(N.symbol)!==void 0;)A++;U&&U.propertyIsEnumerable(E.current().toUpperCase())?I=n:P&&P.propertyIsEnumerable(E.current().toUpperCase())?I=M:S&&S.propertyIsEnumerable(E.current().toUpperCase())?I=D:I=null}}return I},indent:function(E){return E.indentStack==null?E.indentation:E.indentStack.indent}};export{Y as cobol};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var k="error";function p(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var g=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,y=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,h=/^[_A-Za-z$][_A-Za-z$0-9]*/,w=/^@[_A-Za-z$][_A-Za-z$0-9]*/,z=p(["and","or","not","is","isnt","in","instanceof","typeof"]),l=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],a=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],x=p(l.concat(a));l=p(l);var b=/^('{3}|\"{3}|['\"])/,A=/^(\/{3}|\/)/,S=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"],O=p(S);function u(e,n){if(e.sol()){n.scope.align===null&&(n.scope.align=!1);var i=n.scope.offset;if(e.eatSpace()){var f=e.indentation();return f>i&&n.scope.type=="coffee"?"indent":f<i?"dedent":null}else i>0&&v(e,n)}if(e.eatSpace())return null;var r=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return n.tokenize=R,n.tokenize(e,n);if(r==="#")return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var c=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(c=!0),e.match(/^-?\d+\.\d*/)&&(c=!0),e.match(/^-?\.\d+/)&&(c=!0),c)return e.peek()=="."&&e.backUp(1),"number";var o=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(o=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(o=!0),e.match(/^-?0(?![\dx])/i)&&(o=!0),o)return"number"}if(e.match(b))return n.tokenize=t(e.current(),!1,"string"),n.tokenize(e,n);if(e.match(A)){if(e.current()!="/"||e.match(/^.*\//,!1))return n.tokenize=t(e.current(),!0,"string.special"),n.tokenize(e,n);e.backUp(1)}return e.match(g)||e.match(z)?"operator":e.match(y)?"punctuation":e.match(O)?"atom":e.match(w)||n.prop&&e.match(h)?"property":e.match(x)?"keyword":e.match(h)?"variable":(e.next(),k)}function t(e,n,i){return function(f,r){for(;!f.eol();)if(f.eatWhile(/[^'"\/\\]/),f.eat("\\")){if(f.next(),n&&f.eol())return i}else{if(f.match(e))return r.tokenize=u,i;f.eat(/['"\/]/)}return n&&(r.tokenize=u),i}}function R(e,n){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){n.tokenize=u;break}e.eatWhile("#")}return"comment"}function d(e,n,i="coffee"){for(var f=0,r=!1,c=null,o=n.scope;o;o=o.prev)if(o.type==="coffee"||o.type=="}"){f=o.offset+e.indentUnit;break}i!=="coffee"?(r=null,c=e.column()+e.current().length):n.scope.align&&(n.scope.align=!1),n.scope={offset:f,type:i,prev:n.scope,align:r,alignOffset:c}}function v(e,n){if(n.scope.prev)if(n.scope.type==="coffee"){for(var i=e.indentation(),f=!1,r=n.scope;r;r=r.prev)if(i===r.offset){f=!0;break}if(!f)return!0;for(;n.scope.prev&&n.scope.offset!==i;)n.scope=n.scope.prev;return!1}else return n.scope=n.scope.prev,!1}function E(e,n){var i=n.tokenize(e,n),f=e.current();f==="return"&&(n.dedent=!0),((f==="->"||f==="=>")&&e.eol()||i==="indent")&&d(e,n);var r="[({".indexOf(f);if(r!==-1&&d(e,n,"])}".slice(r,r+1)),l.exec(f)&&d(e,n),f=="then"&&v(e,n),i==="dedent"&&v(e,n))return k;if(r="])}".indexOf(f),r!==-1){for(;n.scope.type=="coffee"&&n.scope.prev;)n.scope=n.scope.prev;n.scope.type==f&&(n.scope=n.scope.prev)}return n.dedent&&e.eol()&&(n.scope.type=="coffee"&&n.scope.prev&&(n.scope=n.scope.prev),n.dedent=!1),i=="indent"||i=="dedent"?null:i}const Z={name:"coffeescript",startState:function(){return{tokenize:u,scope:{offset:0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,n){var i=n.scope.align===null&&n.scope;i&&e.sol()&&(i.align=!1);var f=E(e,n);return f&&f!="comment"&&(i&&(i.align=!0),n.prop=f=="punctuation"&&e.current()=="."),f},indent:function(e,n){if(e.tokenize!=u)return 0;var i=e.scope,f=n&&"])}".indexOf(n.charAt(0))>-1;if(f)for(;i.type=="coffee"&&i.prev;)i=i.prev;var r=f&&i.type===n.charAt(0);return i.align?i.alignOffset-(r?1:0):(r?i.prev:i).offset},languageData:{commentTokens:{line:"#"}}};export{Z as coffeeScript};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var u=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,c=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,f=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,d=/[^\s'`,@()\[\]";]/,l;function i(e){for(var n;n=e.next();)if(n=="\\")e.next();else if(!d.test(n)){e.backUp(1);break}return e.current()}function o(e,n){if(e.eatSpace())return l="ws",null;if(e.match(f))return"number";var t=e.next();if(t=="\\"&&(t=e.next()),t=='"')return(n.tokenize=p)(e,n);if(t=="(")return l="open","bracket";if(t==")")return l="close","bracket";if(t==";")return e.skipToEnd(),l="ws","comment";if(/['`,@]/.test(t))return null;if(t=="|")return e.skipTo("|")?(e.next(),"variableName"):(e.skipToEnd(),"error");if(t=="#"){var t=e.next();return t=="("?(l="open","bracket"):/[+\-=\.']/.test(t)||/\d/.test(t)&&e.match(/^\d*#/)?null:t=="|"?(n.tokenize=x)(e,n):t==":"?(i(e),"meta"):t=="\\"?(e.next(),i(e),"string.special"):"error"}else{var r=i(e);return r=="."?null:(l="symbol",r=="nil"||r=="t"||r.charAt(0)==":"?"atom":n.lastType=="open"&&(u.test(r)||c.test(r))?"keyword":r.charAt(0)=="&"?"variableName.special":"variableName")}}function p(e,n){for(var t=!1,r;r=e.next();){if(r=='"'&&!t){n.tokenize=o;break}t=!t&&r=="\\"}return"string"}function x(e,n){for(var t,r;t=e.next();){if(t=="#"&&r=="|"){n.tokenize=o;break}r=t}return l="ws","comment"}const s={name:"commonlisp",startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:o}},token:function(e,n){e.sol()&&typeof n.ctx.indentTo!="number"&&(n.ctx.indentTo=n.ctx.start+1),l=null;var t=n.tokenize(e,n);return l!="ws"&&(n.ctx.indentTo==null?l=="symbol"&&c.test(e.current())?n.ctx.indentTo=n.ctx.start+e.indentUnit:n.ctx.indentTo="next":n.ctx.indentTo=="next"&&(n.ctx.indentTo=e.column()),n.lastType=l),l=="open"?n.ctx={prev:n.ctx,start:e.column(),indentTo:null}:l=="close"&&(n.ctx=n.ctx.prev||n.ctx),t},indent:function(e){var n=e.ctx.indentTo;return typeof n=="number"?n:e.ctx.start+1},languageData:{commentTokens:{line:";;",block:{open:"#|",close:"|#"}},closeBrackets:{brackets:["(","[","{",'"']}}};export{s as commonLisp};
|